@account-kit/wallet-client 4.75.1 → 4.75.3

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 (69) hide show
  1. package/dist/esm/client/actions/formatSign.d.ts +9 -4
  2. package/dist/esm/client/actions/formatSign.js.map +1 -1
  3. package/dist/esm/client/actions/getCallsStatus.d.ts +9 -4
  4. package/dist/esm/client/actions/getCallsStatus.js.map +1 -1
  5. package/dist/esm/client/actions/grantPermissions.d.ts +8 -3
  6. package/dist/esm/client/actions/grantPermissions.js.map +1 -1
  7. package/dist/esm/client/actions/listAccounts.d.ts +9 -4
  8. package/dist/esm/client/actions/listAccounts.js.map +1 -1
  9. package/dist/esm/client/actions/prepareCalls.d.ts +9 -4
  10. package/dist/esm/client/actions/prepareCalls.js.map +1 -1
  11. package/dist/esm/client/actions/prepareSign.d.ts +9 -4
  12. package/dist/esm/client/actions/prepareSign.js.map +1 -1
  13. package/dist/esm/client/actions/requestAccount.d.ts +8 -3
  14. package/dist/esm/client/actions/requestAccount.js.map +1 -1
  15. package/dist/esm/client/actions/sendPreparedCalls.d.ts +9 -4
  16. package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
  17. package/dist/esm/client/actions/signPreparedCalls.d.ts +8 -3
  18. package/dist/esm/client/actions/signPreparedCalls.js +0 -1
  19. package/dist/esm/client/actions/signPreparedCalls.js.map +1 -1
  20. package/dist/esm/client/actions/waitForCallsStatus.d.ts +2 -2
  21. package/dist/esm/experimental/actions/requestQuoteV0.d.ts +9 -4
  22. package/dist/esm/experimental/actions/requestQuoteV0.js.map +1 -1
  23. package/dist/esm/internal/account.d.ts +1 -2
  24. package/dist/esm/internal/account.js.map +1 -1
  25. package/dist/esm/metrics.d.ts +1 -2
  26. package/dist/esm/metrics.js.map +1 -1
  27. package/dist/esm/version.d.ts +1 -1
  28. package/dist/esm/version.js +1 -1
  29. package/dist/esm/version.js.map +1 -1
  30. package/dist/types/client/actions/formatSign.d.ts +9 -4
  31. package/dist/types/client/actions/formatSign.d.ts.map +1 -1
  32. package/dist/types/client/actions/getCallsStatus.d.ts +9 -4
  33. package/dist/types/client/actions/getCallsStatus.d.ts.map +1 -1
  34. package/dist/types/client/actions/grantPermissions.d.ts +8 -3
  35. package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
  36. package/dist/types/client/actions/listAccounts.d.ts +9 -4
  37. package/dist/types/client/actions/listAccounts.d.ts.map +1 -1
  38. package/dist/types/client/actions/prepareCalls.d.ts +9 -4
  39. package/dist/types/client/actions/prepareCalls.d.ts.map +1 -1
  40. package/dist/types/client/actions/prepareSign.d.ts +9 -4
  41. package/dist/types/client/actions/prepareSign.d.ts.map +1 -1
  42. package/dist/types/client/actions/requestAccount.d.ts +8 -3
  43. package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
  44. package/dist/types/client/actions/sendPreparedCalls.d.ts +9 -4
  45. package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
  46. package/dist/types/client/actions/signPreparedCalls.d.ts +8 -3
  47. package/dist/types/client/actions/signPreparedCalls.d.ts.map +1 -1
  48. package/dist/types/client/actions/waitForCallsStatus.d.ts +2 -2
  49. package/dist/types/experimental/actions/requestQuoteV0.d.ts +9 -4
  50. package/dist/types/experimental/actions/requestQuoteV0.d.ts.map +1 -1
  51. package/dist/types/internal/account.d.ts +1 -2
  52. package/dist/types/internal/account.d.ts.map +1 -1
  53. package/dist/types/metrics.d.ts +1 -2
  54. package/dist/types/metrics.d.ts.map +1 -1
  55. package/dist/types/version.d.ts +1 -1
  56. package/package.json +5 -5
  57. package/src/client/actions/formatSign.ts +12 -11
  58. package/src/client/actions/getCallsStatus.ts +12 -8
  59. package/src/client/actions/grantPermissions.ts +11 -8
  60. package/src/client/actions/listAccounts.ts +12 -6
  61. package/src/client/actions/prepareCalls.ts +12 -11
  62. package/src/client/actions/prepareSign.ts +12 -9
  63. package/src/client/actions/requestAccount.ts +11 -6
  64. package/src/client/actions/sendPreparedCalls.ts +12 -8
  65. package/src/client/actions/signPreparedCalls.ts +15 -9
  66. package/src/experimental/actions/requestQuoteV0.ts +12 -13
  67. package/src/internal/account.ts +1 -2
  68. package/src/metrics.ts +1 -2
  69. package/src/version.ts +1 -1
@@ -1,13 +1,17 @@
1
- import type { Static } from "typebox";
2
- import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
1
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
2
  import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
4
3
  import { type Address, type IsUndefined } from "viem";
5
- export type FormatSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<WithoutChainId<Static<(typeof wallet_formatSign)["properties"]["Request"]["properties"]["params"]>[0]>, "from"> & (IsUndefined<TAccount> extends true ? {
4
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
5
+ Request: {
6
+ method: "wallet_formatSign";
7
+ };
8
+ }>;
9
+ export type FormatSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<WithoutChainId<RpcSchema["Request"]["params"][0]>, "from"> & (IsUndefined<TAccount> extends true ? {
6
10
  from: Address;
7
11
  } : {
8
12
  from?: never;
9
13
  });
10
- export type FormatSignResult = Static<typeof wallet_formatSign>["ReturnType"];
14
+ export type FormatSignResult = RpcSchema["ReturnType"];
11
15
  /**
12
16
  * Formats a signature request for signing messages or transactions.
13
17
  *
@@ -28,4 +32,5 @@ export type FormatSignResult = Static<typeof wallet_formatSign>["ReturnType"];
28
32
  * ```
29
33
  */
30
34
  export declare function formatSign<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: FormatSignParams<TAccount>): Promise<FormatSignResult>;
35
+ export {};
31
36
  //# sourceMappingURL=formatSign.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/formatSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,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C;AAI7D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,mBAAmB,CAAC;KAC7B,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAC1B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GACjE,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GACjC,OAAO,CAAC,gBAAgB,CAAC,CAc3B"}
@@ -1,8 +1,12 @@
1
1
  import type { InnerWalletApiClient } from "../../types.ts";
2
- import type { Static } from "typebox";
3
- import type { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
4
- export type GetCallsStatusParams = Static<typeof wallet_getCallsStatus>["Request"]["params"][0];
5
- export type GetCallsStatusResult = Static<typeof wallet_getCallsStatus>["ReturnType"];
2
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
4
+ Request: {
5
+ method: "wallet_getCallsStatus";
6
+ };
7
+ }>;
8
+ export type GetCallsStatusParams = RpcSchema["Request"]["params"][0];
9
+ export type GetCallsStatusResult = RpcSchema["ReturnType"];
6
10
  /**
7
11
  * Gets the status of a prepared call by its ID.
8
12
  * This method is used to check the execution status of calls sent via sendPreparedCalls.
@@ -25,4 +29,5 @@ export type GetCallsStatusResult = Static<typeof wallet_getCallsStatus>["ReturnT
25
29
  * ```
26
30
  */
27
31
  export declare function getCallsStatus(client: InnerWalletApiClient, params: GetCallsStatusParams): Promise<GetCallsStatusResult>;
32
+ export {};
28
33
  //# sourceMappingURL=getCallsStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG3E,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,OAAO,qBAAqB,CAC7B,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,OAAO,qBAAqB,CAC7B,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAS/B"}
1
+ {"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAS/B"}
@@ -1,9 +1,13 @@
1
1
  import { type SmartAccountSigner } from "@aa-sdk/core";
2
2
  import { type Address, type Hex, type IsUndefined, type Prettify } from "viem";
3
3
  import type { InnerWalletApiClient } from "../../types.ts";
4
- import type { Static } from "typebox";
5
- import type { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
6
- export type GrantPermissionsParams<TAccount extends Address | undefined = Address | undefined> = Prettify<Omit<Static<(typeof wallet_createSession)["properties"]["Request"]["properties"]["params"]>[0], "account" | "chainId"> & (IsUndefined<TAccount> extends true ? {
4
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
5
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
6
+ Request: {
7
+ method: "wallet_createSession";
8
+ };
9
+ }>;
10
+ export type GrantPermissionsParams<TAccount extends Address | undefined = Address | undefined> = Prettify<Omit<RpcSchema["Request"]["params"][0], "account" | "chainId"> & (IsUndefined<TAccount> extends true ? {
7
11
  account: Address;
8
12
  } : {
9
13
  account?: never;
@@ -67,4 +71,5 @@ export type GrantPermissionsResult = {
67
71
  * ```
68
72
  */
69
73
  export declare function grantPermissions<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, signer: SmartAccountSigner, params: GrantPermissionsParams<TAccount>): Promise<GrantPermissionsResult>;
74
+ export {};
70
75
  //# sourceMappingURL=grantPermissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grantPermissions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A8BjC"}
@@ -1,12 +1,16 @@
1
- import type { Static } from "typebox";
2
- import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
1
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
2
  import type { InnerWalletApiClient } from "../../types.ts";
4
3
  import type { SmartAccountSigner } from "@aa-sdk/core";
5
4
  import type { Address } from "viem";
6
- export type ListAccountsParams = Omit<Static<typeof wallet_listAccounts>["Request"]["params"][0], "signerAddress"> & {
5
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
6
+ Request: {
7
+ method: "wallet_listAccounts";
8
+ };
9
+ }>;
10
+ export type ListAccountsParams = Omit<RpcSchema["Request"]["params"][0], "signerAddress"> & {
7
11
  signerAddress?: Address;
8
12
  };
9
- export type ListAccountsResult = Static<typeof wallet_listAccounts>["ReturnType"];
13
+ export type ListAccountsResult = RpcSchema["ReturnType"];
10
14
  /**
11
15
  * Lists all smart accounts for a given signer using the wallet API client.
12
16
  *
@@ -35,4 +39,5 @@ export type ListAccountsResult = Static<typeof wallet_listAccounts>["ReturnType"
35
39
  * ```
36
40
  */
37
41
  export declare function listAccounts(client: InnerWalletApiClient, signer: SmartAccountSigner, params: ListAccountsParams): Promise<ListAccountsResult>;
42
+ export {};
38
43
  //# sourceMappingURL=listAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listAccounts.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/listAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,MAAM,MAAM,kBAAkB,GAAG,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C5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
@@ -1,18 +1,22 @@
1
1
  import { type Address, type IsUndefined } from "viem";
2
2
  import type { InnerWalletApiClient } from "../../types.ts";
3
- import type { Static } from "typebox";
4
- import type { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
3
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
4
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
5
+ Request: {
6
+ method: "wallet_prepareCalls";
7
+ };
8
+ }>;
5
9
  export type GetAccountParam<TAccount> = IsUndefined<TAccount> extends true ? {
6
10
  account: Address;
7
11
  } : {
8
12
  account?: Address;
9
13
  };
10
- export type PrepareCallsParams<TAccount extends Address | undefined = Address | undefined> = Omit<Static<(typeof wallet_prepareCalls)["properties"]["Request"]["properties"]["params"]>[0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
14
+ export type PrepareCallsParams<TAccount extends Address | undefined = Address | undefined> = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
11
15
  from: Address;
12
16
  } : {
13
17
  from?: never;
14
18
  });
15
- export type PrepareCallsResult = Static<typeof wallet_prepareCalls>["ReturnType"];
19
+ export type PrepareCallsResult = RpcSchema["ReturnType"];
16
20
  /**
17
21
  * Prepares a set of contract calls for execution by building a user operation.
18
22
  * Returns the built user operation and a signature request that needs to be signed
@@ -42,4 +46,5 @@ export type PrepareCallsResult = Static<typeof wallet_prepareCalls>["ReturnType"
42
46
  * ```
43
47
  */
44
48
  export declare function prepareCalls<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: PrepareCallsParams<TAccount>): Promise<PrepareCallsResult>;
49
+ export {};
45
50
  //# sourceMappingURL=prepareCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions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,13 +1,17 @@
1
1
  import type { InnerWalletApiClient } from "../../types.ts";
2
2
  import { type Address, type IsUndefined } from "viem";
3
- import type { Static } from "typebox";
4
- import type { wallet_prepareSign } from "@alchemy/wallet-api-types/rpc";
5
- export type PrepareSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<Static<(typeof wallet_prepareSign)["properties"]["Request"]["properties"]["params"]>[0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
3
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
4
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
5
+ Request: {
6
+ method: "wallet_prepareSign";
7
+ };
8
+ }>;
9
+ export type PrepareSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
6
10
  from: Address;
7
11
  } : {
8
12
  from?: never;
9
13
  });
10
- export type PrepareSignResult = Static<typeof wallet_prepareSign>["ReturnType"];
14
+ export type PrepareSignResult = RpcSchema["ReturnType"];
11
15
  /**
12
16
  * Prepares a signature request for signing messages or transactions.
13
17
  *
@@ -26,4 +30,5 @@ export type PrepareSignResult = Static<typeof wallet_prepareSign>["ReturnType"];
26
30
  * ```
27
31
  */
28
32
  export declare function prepareSign<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: PrepareSignParams<TAccount>): Promise<PrepareSignResult>;
33
+ export {};
29
34
  //# sourceMappingURL=prepareSign.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/prepareSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,kBA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AO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAC7D,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAc5B"}
@@ -1,9 +1,13 @@
1
1
  import { type SmartAccountSigner, type SmartContractAccount } from "@aa-sdk/core";
2
- import type { Static } from "typebox";
3
2
  import type { Address } from "abitype";
4
- import type { wallet_requestAccount } from "@alchemy/wallet-api-types/rpc";
3
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
5
4
  import type { InnerWalletApiClient } from "../../types.js";
6
- export type RequestAccountParams = Omit<Extract<Static<typeof wallet_requestAccount>["Request"]["params"][0], {
5
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
6
+ Request: {
7
+ method: "wallet_requestAccount";
8
+ };
9
+ }>;
10
+ export type RequestAccountParams = Omit<Extract<RpcSchema["Request"]["params"][0], {
7
11
  signerAddress: Address;
8
12
  }>, "signerAddress" | "includeCounterfactualInfo"> & {
9
13
  accountAddress?: Address;
@@ -29,4 +33,5 @@ export type RequestAccountResult = SmartContractAccount;
29
33
  * ```
30
34
  */
31
35
  export declare function requestAccount(client: InnerWalletApiClient, signer: SmartAccountSigner, params?: RequestAccountParams): Promise<RequestAccountResult>;
36
+ export {};
32
37
  //# sourceMappingURL=requestAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestAccount.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/requestAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,OAAO,CACL,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC5D;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAC3B,EACD,eAAe,GAAG,2BAA2B,CAC9C,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CA0C/B"}
1
+ {"version":3,"file":"requestAccount.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/requestAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAAC,EACtE,eAAe,GAAG,2BAA2B,CAC9C,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CA0C/B"}
@@ -1,8 +1,12 @@
1
- import type { Static } from "typebox";
2
- import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
1
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
2
  import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
4
- export type SendPreparedCallsParams = WithoutChainId<Static<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0]>;
5
- export type SendPreparedCallsResult = Static<typeof wallet_sendPreparedCalls>["ReturnType"];
3
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
4
+ Request: {
5
+ method: "wallet_sendPreparedCalls";
6
+ };
7
+ }>;
8
+ export type SendPreparedCallsParams = WithoutChainId<RpcSchema["Request"]["params"][0]>;
9
+ export type SendPreparedCallsResult = RpcSchema["ReturnType"];
6
10
  /**
7
11
  * Sends prepared calls by submitting a signed user operation.
8
12
  * This method is used after signing the signature request returned from prepareCalls.
@@ -35,4 +39,5 @@ export type SendPreparedCallsResult = Static<typeof wallet_sendPreparedCalls>["R
35
39
  * ```
36
40
  */
37
41
  export declare function sendPreparedCalls(client: InnerWalletApiClient, params: SendPreparedCallsParams): Promise<SendPreparedCallsResult>;
42
+ export {};
38
43
  //# sourceMappingURL=sendPreparedCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3E,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAClD,MAAM,CACJ,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACnF,CAAC,CAAC,CAAC,CACL,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,OAAO,wBAAwB,CAChC,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmBlC"}
1
+ {"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,0BAA0B,CAAC;KACpC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAClD,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmBlC"}
@@ -1,9 +1,13 @@
1
1
  import type { PrepareCallsResult } from "./prepareCalls.ts";
2
2
  import { type SmartAccountSigner } from "@aa-sdk/core";
3
- import type { Static } from "typebox";
4
- import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
3
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
4
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
5
+ Request: {
6
+ method: "wallet_sendPreparedCalls";
7
+ };
8
+ }>;
5
9
  export type SignPreparedCallsParams = PrepareCallsResult;
6
- export type SignPreparedCallsResult = Static<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0];
10
+ export type SignPreparedCallsResult = RpcSchema["Request"]["params"][0];
7
11
  /**
8
12
  * Signs prepared calls using the provided signer.
9
13
  *
@@ -12,4 +16,5 @@ export type SignPreparedCallsResult = Static<(typeof wallet_sendPreparedCalls)["
12
16
  * @returns {Promise<SignPreparedCallsResult>} A Promise that resolves to the signed calls
13
17
  */
14
18
  export declare function signPreparedCalls(signer: SmartAccountSigner, params: SignPreparedCallsParams): Promise<SignPreparedCallsResult>;
19
+ export {};
15
20
  //# sourceMappingURL=signPreparedCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAS9E,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACnF,CAAC,CAAC,CAAC,CAAC;AAEL;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmElC"}
1
+ {"version":3,"file":"signPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAS/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,0BAA0B,CAAC;KACpC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAExE;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmElC"}
@@ -17,13 +17,13 @@ export declare function waitForCallsStatus(client: InnerWalletApiClient, params:
17
17
  version: string;
18
18
  id: string;
19
19
  chainId: number;
20
- atomic: boolean;
21
- receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
22
20
  capabilities?: {
23
21
  [key: string]: any;
24
22
  } | {
25
23
  [x: string]: any;
26
24
  } | undefined;
25
+ atomic: boolean;
26
+ receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
27
27
  statusCode: number;
28
28
  status: "pending" | "success" | "failure" | undefined;
29
29
  }>;
@@ -1,12 +1,17 @@
1
- import type { Static } from "typebox";
2
1
  import { type Address, type IsUndefined, type Prettify, type UnionOmit } from "viem";
3
- import type { wallet_requestQuote_v0 } from "@alchemy/wallet-api-types/rpc";
2
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
4
3
  import type { InnerWalletApiClientBase } from "../../types.js";
5
- export type RequestQuoteV0Params<TAccount extends Address | undefined = Address | undefined> = Prettify<UnionOmit<Static<(typeof wallet_requestQuote_v0)["properties"]["Request"]["properties"]["params"]>[0], "from" | "chainId">> & (IsUndefined<TAccount> extends true ? {
4
+ type RpcSchema = Extract<WalletServerRpcSchemaType, {
5
+ Request: {
6
+ method: "wallet_requestQuote_v0";
7
+ };
8
+ }>;
9
+ export type RequestQuoteV0Params<TAccount extends Address | undefined = Address | undefined> = Prettify<UnionOmit<RpcSchema["Request"]["params"][0], "from" | "chainId">> & (IsUndefined<TAccount> extends true ? {
6
10
  from: Address;
7
11
  } : {
8
12
  from?: never;
9
13
  });
10
- export type RequestQuoteV0Result = Prettify<Static<typeof wallet_requestQuote_v0>["ReturnType"]>;
14
+ export type RequestQuoteV0Result = Prettify<RpcSchema["ReturnType"]>;
11
15
  export declare function requestQuoteV0<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClientBase, params: RequestQuoteV0Params<TAccount>): Promise<RequestQuoteV0Result>;
16
+ export {};
12
17
  //# sourceMappingURL=requestQuoteV0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV,SAAS,CACP,MAAM,CACJ,CAAC,OAAO,sBAAsB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACjF,CAAC,CAAC,CAAC,EACJ,MAAM,GAAG,SAAS,CACnB,CACF,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC,YAAY,CAAC,CACpD,CAAC;AAEF,wBAAsB,cAAc,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GACrC,OAAO,CAAC,oBAAoB,CAAC,CAqB/B"}
1
+ {"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,wBAAwB,CAAC;KAClC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAC5E,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AAErE,wBAAsB,cAAc,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GACrC,OAAO,CAAC,oBAAoB,CAAC,CAqB/B"}
@@ -1,13 +1,12 @@
1
1
  import type { SmartAccountSigner, SmartContractAccount } from "@aa-sdk/core";
2
2
  import { type Chain, type Transport, type Address } from "viem";
3
- import type { StaticDecode } from "typebox";
4
3
  import type { SerializedInitcode } from "@alchemy/wallet-api-types";
5
4
  type CreateAccountParams = {
6
5
  chain: Chain;
7
6
  transport: Transport;
8
7
  signer: SmartAccountSigner;
9
8
  accountAddress: Address;
10
- counterfactualInfo?: StaticDecode<typeof SerializedInitcode>;
9
+ counterfactualInfo?: SerializedInitcode;
11
10
  delegation?: Address;
12
11
  };
13
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/internal/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAO7E,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAkF/B"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/internal/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAO7E,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAkF/B"}
@@ -1,4 +1,3 @@
1
- import type { StaticDecode } from "typebox";
2
1
  import type { SerializedInitcode } from "@alchemy/wallet-api-types";
3
2
  export type CoreEventsSchema = [
4
3
  {
@@ -11,7 +10,7 @@ export type CoreEventsSchema = [
11
10
  EventName: "account_initialized";
12
11
  EventData: {
13
12
  chainId: number;
14
- factory: StaticDecode<typeof SerializedInitcode>["factoryType"] | "7702";
13
+ factory: SerializedInitcode["factoryType"] | "7702";
15
14
  };
16
15
  },
17
16
  {
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;QACE,SAAS,EAAE,gBAAgB,CAAC;QAC5B,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;SAC1E,CAAC;KACH;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,aAAa,CAAC;KAC1B;IACD;QACE,SAAS,EAAE,kBAAkB,CAAC;KAC/B;IACD;QACE,SAAS,EAAE,mBAAmB,CAAC;KAChC;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,YAAY,CAAC;KACzB;IACD;QACE,SAAS,EAAE,uBAAuB,CAAC;KACpC;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,iBAAiB,CAAC;KAC9B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,wBAAwB,CAAC;QACpC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;CACF,CAAC;AAEF,eAAO,MAAM,OAAO,8DAGlB,CAAC"}
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;QACE,SAAS,EAAE,gBAAgB,CAAC;QAC5B,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,kBAAkB,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;SACrD,CAAC;KACH;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,aAAa,CAAC;KAC1B;IACD;QACE,SAAS,EAAE,kBAAkB,CAAC;KAC/B;IACD;QACE,SAAS,EAAE,mBAAmB,CAAC;KAChC;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,YAAY,CAAC;KACzB;IACD;QACE,SAAS,EAAE,uBAAuB,CAAC;KACpC;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,iBAAiB,CAAC;KAC9B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,wBAAwB,CAAC;QACpC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;CACF,CAAC;AAEF,eAAO,MAAM,OAAO,8DAGlB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.75.1";
1
+ export declare const VERSION = "4.75.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@account-kit/wallet-client",
3
- "version": "4.75.1",
3
+ "version": "4.75.3",
4
4
  "description": "Wallet Client for Alchemy Account Kit",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -44,9 +44,9 @@
44
44
  "test:e2e": "bun test ./src/**/*.e2e.test.*"
45
45
  },
46
46
  "dependencies": {
47
- "@aa-sdk/core": "^4.75.1",
48
- "@account-kit/infra": "^4.75.1",
49
- "@account-kit/smart-contracts": "^4.75.1",
47
+ "@aa-sdk/core": "^4.75.3",
48
+ "@account-kit/infra": "^4.75.3",
49
+ "@account-kit/smart-contracts": "^4.75.3",
50
50
  "deep-equal": "^2.2.3",
51
51
  "ox": "^0.6.12"
52
52
  },
@@ -73,5 +73,5 @@
73
73
  "url": "https://github.com/alchemyplatform/aa-sdk/issues"
74
74
  },
75
75
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
76
- "gitHead": "092f331c6308273f6b705952e256a933c0cb5813"
76
+ "gitHead": "1ce6848e7c03092f316607ae9703477f873fc9bf"
77
77
  }
@@ -1,23 +1,24 @@
1
- import type { Static } from "typebox";
2
- import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
1
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
2
  import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
4
3
  import { toHex, type Address, type IsUndefined } from "viem";
5
4
  import { AccountNotFoundError } from "@aa-sdk/core";
6
5
  import { metrics } from "../../metrics.js";
7
6
 
7
+ type RpcSchema = Extract<
8
+ WalletServerRpcSchemaType,
9
+ {
10
+ Request: {
11
+ method: "wallet_formatSign";
12
+ };
13
+ }
14
+ >;
15
+
8
16
  export type FormatSignParams<
9
17
  TAccount extends Address | undefined = Address | undefined,
10
- > = Omit<
11
- WithoutChainId<
12
- Static<
13
- (typeof wallet_formatSign)["properties"]["Request"]["properties"]["params"]
14
- >[0]
15
- >,
16
- "from"
17
- > &
18
+ > = Omit<WithoutChainId<RpcSchema["Request"]["params"][0]>, "from"> &
18
19
  (IsUndefined<TAccount> extends true ? { from: Address } : { from?: never });
19
20
 
20
- export type FormatSignResult = Static<typeof wallet_formatSign>["ReturnType"];
21
+ export type FormatSignResult = RpcSchema["ReturnType"];
21
22
 
22
23
  /**
23
24
  * Formats a signature request for signing messages or transactions.
@@ -1,15 +1,19 @@
1
1
  import type { InnerWalletApiClient } from "../../types.ts";
2
- import type { Static } from "typebox";
3
- import type { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
2
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
4
3
  import { metrics } from "../../metrics.js";
5
4
 
6
- export type GetCallsStatusParams = Static<
7
- typeof wallet_getCallsStatus
8
- >["Request"]["params"][0];
5
+ type RpcSchema = Extract<
6
+ WalletServerRpcSchemaType,
7
+ {
8
+ Request: {
9
+ method: "wallet_getCallsStatus";
10
+ };
11
+ }
12
+ >;
9
13
 
10
- export type GetCallsStatusResult = Static<
11
- typeof wallet_getCallsStatus
12
- >["ReturnType"];
14
+ export type GetCallsStatusParams = RpcSchema["Request"]["params"][0];
15
+
16
+ export type GetCallsStatusResult = RpcSchema["ReturnType"];
13
17
 
14
18
  /**
15
19
  * Gets the status of a prepared call by its ID.
@@ -8,20 +8,23 @@ import {
8
8
  concatHex,
9
9
  } from "viem";
10
10
  import type { InnerWalletApiClient } from "../../types.ts";
11
- import type { Static } from "typebox";
12
- import type { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
11
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
13
12
  import { signSignatureRequest } from "./signSignatureRequest.js";
14
13
  import { metrics } from "../../metrics.js";
15
14
 
15
+ type RpcSchema = Extract<
16
+ WalletServerRpcSchemaType,
17
+ {
18
+ Request: {
19
+ method: "wallet_createSession";
20
+ };
21
+ }
22
+ >;
23
+
16
24
  export type GrantPermissionsParams<
17
25
  TAccount extends Address | undefined = Address | undefined,
18
26
  > = Prettify<
19
- Omit<
20
- Static<
21
- (typeof wallet_createSession)["properties"]["Request"]["properties"]["params"]
22
- >[0],
23
- "account" | "chainId"
24
- > &
27
+ Omit<RpcSchema["Request"]["params"][0], "account" | "chainId"> &
25
28
  (IsUndefined<TAccount> extends true
26
29
  ? { account: Address }
27
30
  : { account?: never })
@@ -1,18 +1,24 @@
1
- import type { Static } from "typebox";
2
- import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
1
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
3
2
  import type { InnerWalletApiClient } from "../../types.ts";
4
3
  import type { SmartAccountSigner } from "@aa-sdk/core";
5
4
  import type { Address } from "viem";
6
5
  import { metrics } from "../../metrics.js";
7
6
 
7
+ type RpcSchema = Extract<
8
+ WalletServerRpcSchemaType,
9
+ {
10
+ Request: {
11
+ method: "wallet_listAccounts";
12
+ };
13
+ }
14
+ >;
15
+
8
16
  export type ListAccountsParams = Omit<
9
- Static<typeof wallet_listAccounts>["Request"]["params"][0],
17
+ RpcSchema["Request"]["params"][0],
10
18
  "signerAddress"
11
19
  > & { signerAddress?: Address };
12
20
 
13
- export type ListAccountsResult = Static<
14
- typeof wallet_listAccounts
15
- >["ReturnType"];
21
+ export type ListAccountsResult = RpcSchema["ReturnType"];
16
22
 
17
23
  /**
18
24
  * Lists all smart accounts for a given signer using the wallet API client.
@@ -1,11 +1,19 @@
1
1
  import { AccountNotFoundError } from "@aa-sdk/core";
2
2
  import { toHex, type Address, type IsUndefined } from "viem";
3
3
  import type { InnerWalletApiClient } from "../../types.ts";
4
- import type { Static } from "typebox";
5
- import type { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
4
+ import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
6
5
  import { metrics } from "../../metrics.js";
7
6
  import { mergeClientCapabilities } from "../../internal/capabilities.js";
8
7
 
8
+ type RpcSchema = Extract<
9
+ WalletServerRpcSchemaType,
10
+ {
11
+ Request: {
12
+ method: "wallet_prepareCalls";
13
+ };
14
+ }
15
+ >;
16
+
9
17
  export type GetAccountParam<TAccount> =
10
18
  IsUndefined<TAccount> extends true
11
19
  ? { account: Address }
@@ -13,17 +21,10 @@ export type GetAccountParam<TAccount> =
13
21
 
14
22
  export type PrepareCallsParams<
15
23
  TAccount extends Address | undefined = Address | undefined,
16
- > = Omit<
17
- Static<
18
- (typeof wallet_prepareCalls)["properties"]["Request"]["properties"]["params"]
19
- >[0],
20
- "from" | "chainId"
21
- > &
24
+ > = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> &
22
25
  (IsUndefined<TAccount> extends true ? { from: Address } : { from?: never });
23
26
 
24
- export type PrepareCallsResult = Static<
25
- typeof wallet_prepareCalls
26
- >["ReturnType"];
27
+ export type PrepareCallsResult = RpcSchema["ReturnType"];
27
28
 
28
29
  /**
29
30
  * Prepares a set of contract calls for execution by building a user operation.