@account-kit/wallet-client 0.1.0-alpha.2 → 0.1.0-alpha.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 (110) hide show
  1. package/dist/esm/capabilities/index.d.ts +5 -2
  2. package/dist/esm/capabilities/index.js +1 -1
  3. package/dist/esm/capabilities/index.js.map +1 -1
  4. package/dist/esm/capabilities/overrides.js +8 -8
  5. package/dist/esm/capabilities/overrides.js.map +1 -1
  6. package/dist/esm/capabilities/permissions/index.d.ts +10 -3
  7. package/dist/esm/capabilities/permissions/index.js +11 -2
  8. package/dist/esm/capabilities/permissions/index.js.map +1 -1
  9. package/dist/esm/capabilities/permissions/mav2.d.ts +2 -2
  10. package/dist/esm/capabilities/permissions/mav2.js +9 -1
  11. package/dist/esm/capabilities/permissions/mav2.js.map +1 -1
  12. package/dist/esm/client/actions/grantPermissions.d.ts +57 -3
  13. package/dist/esm/client/actions/grantPermissions.js +1 -0
  14. package/dist/esm/client/actions/grantPermissions.js.map +1 -1
  15. package/dist/esm/client/actions/requestAccount.js +2 -2
  16. package/dist/esm/client/actions/requestAccount.js.map +1 -1
  17. package/dist/esm/client/actions/signSignatureRequest.d.ts +4 -1
  18. package/dist/esm/client/actions/signSignatureRequest.js +22 -1
  19. package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
  20. package/dist/esm/client/client.e2e-test.js +13 -19
  21. package/dist/esm/client/client.e2e-test.js.map +1 -1
  22. package/dist/esm/client/index.js +1 -1
  23. package/dist/esm/client/index.js.map +1 -1
  24. package/dist/esm/isomorphic/actions/createSession.js +25 -7
  25. package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
  26. package/dist/esm/isomorphic/actions/prepareCalls.js +35 -12
  27. package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -1
  28. package/dist/esm/isomorphic/actions/sendPreparedCalls.js +26 -6
  29. package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -1
  30. package/dist/esm/isomorphic/client.d.ts +11 -5
  31. package/dist/esm/isomorphic/utils/7702.d.ts +11 -0
  32. package/dist/esm/isomorphic/utils/7702.js +26 -0
  33. package/dist/esm/isomorphic/utils/7702.js.map +1 -0
  34. package/dist/esm/isomorphic/utils/createAccount.d.ts +2 -1
  35. package/dist/esm/isomorphic/utils/createAccount.js +30 -5
  36. package/dist/esm/isomorphic/utils/createAccount.js.map +1 -1
  37. package/dist/esm/isomorphic/utils/createDummySigner.js +3 -3
  38. package/dist/esm/isomorphic/utils/createDummySigner.js.map +1 -1
  39. package/dist/esm/isomorphic/utils/parsePermissionsContext.d.ts +2 -1
  40. package/dist/esm/isomorphic/utils/parsePermissionsContext.js +17 -5
  41. package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -1
  42. package/dist/esm/local/client.js +2 -1
  43. package/dist/esm/local/client.js.map +1 -1
  44. package/dist/esm/remote/client.js +6 -2
  45. package/dist/esm/remote/client.js.map +1 -1
  46. package/dist/esm/rpc/examples.d.ts +230 -0
  47. package/dist/esm/rpc/examples.js +314 -0
  48. package/dist/esm/rpc/examples.js.map +1 -0
  49. package/dist/esm/rpc/request.d.ts +48 -17
  50. package/dist/esm/rpc/request.js +53 -14
  51. package/dist/esm/rpc/request.js.map +1 -1
  52. package/dist/esm/rpc/schema.d.ts +42 -11
  53. package/dist/esm/schemas.d.ts +29 -7
  54. package/dist/esm/schemas.js +120 -38
  55. package/dist/esm/schemas.js.map +1 -1
  56. package/dist/types/capabilities/index.d.ts +5 -2
  57. package/dist/types/capabilities/index.d.ts.map +1 -1
  58. package/dist/types/capabilities/overrides.d.ts.map +1 -1
  59. package/dist/types/capabilities/permissions/index.d.ts +10 -3
  60. package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
  61. package/dist/types/capabilities/permissions/mav2.d.ts +2 -2
  62. package/dist/types/capabilities/permissions/mav2.d.ts.map +1 -1
  63. package/dist/types/client/actions/grantPermissions.d.ts +57 -3
  64. package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
  65. package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
  66. package/dist/types/client/actions/signSignatureRequest.d.ts +4 -1
  67. package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -1
  68. package/dist/types/isomorphic/actions/createSession.d.ts.map +1 -1
  69. package/dist/types/isomorphic/actions/prepareCalls.d.ts.map +1 -1
  70. package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts.map +1 -1
  71. package/dist/types/isomorphic/client.d.ts +11 -5
  72. package/dist/types/isomorphic/client.d.ts.map +1 -1
  73. package/dist/types/isomorphic/utils/7702.d.ts +12 -0
  74. package/dist/types/isomorphic/utils/7702.d.ts.map +1 -0
  75. package/dist/types/isomorphic/utils/createAccount.d.ts +2 -1
  76. package/dist/types/isomorphic/utils/createAccount.d.ts.map +1 -1
  77. package/dist/types/isomorphic/utils/createDummySigner.d.ts.map +1 -1
  78. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts +2 -1
  79. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -1
  80. package/dist/types/remote/client.d.ts.map +1 -1
  81. package/dist/types/rpc/examples.d.ts +231 -0
  82. package/dist/types/rpc/examples.d.ts.map +1 -0
  83. package/dist/types/rpc/request.d.ts +48 -17
  84. package/dist/types/rpc/request.d.ts.map +1 -1
  85. package/dist/types/rpc/schema.d.ts +42 -11
  86. package/dist/types/rpc/schema.d.ts.map +1 -1
  87. package/dist/types/schemas.d.ts +29 -7
  88. package/dist/types/schemas.d.ts.map +1 -1
  89. package/package.json +2 -2
  90. package/src/capabilities/index.ts +5 -8
  91. package/src/capabilities/overrides.ts +23 -8
  92. package/src/capabilities/permissions/index.ts +21 -5
  93. package/src/capabilities/permissions/mav2.ts +12 -2
  94. package/src/client/actions/grantPermissions.ts +57 -3
  95. package/src/client/actions/requestAccount.ts +2 -3
  96. package/src/client/actions/signSignatureRequest.ts +31 -3
  97. package/src/client/client.e2e-test.ts +14 -21
  98. package/src/client/index.ts +1 -1
  99. package/src/isomorphic/actions/createSession.ts +28 -7
  100. package/src/isomorphic/actions/prepareCalls.ts +38 -11
  101. package/src/isomorphic/actions/sendPreparedCalls.ts +47 -20
  102. package/src/isomorphic/utils/7702.ts +58 -0
  103. package/src/isomorphic/utils/createAccount.ts +38 -6
  104. package/src/isomorphic/utils/createDummySigner.ts +3 -2
  105. package/src/isomorphic/utils/parsePermissionsContext.ts +23 -7
  106. package/src/local/client.ts +2 -3
  107. package/src/remote/client.ts +12 -2
  108. package/src/rpc/examples.ts +343 -0
  109. package/src/rpc/request.ts +75 -26
  110. package/src/schemas.ts +218 -87
@@ -13,7 +13,7 @@ type ClientParams = {
13
13
  };
14
14
  export declare function isomorphicClientActions(client: SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, Record<string, unknown>, WalletServerViemRpcSchema>): {
15
15
  prepareCalls: (params: PrepareCallsParams) => Promise<{
16
- type: "user-operation-v060" | "user-operation-v070";
16
+ type: "user-operation-v070" | "user-operation-v060";
17
17
  chainId: `0x${string}`;
18
18
  data: {
19
19
  sender: `0x${string}`;
@@ -42,7 +42,7 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
42
42
  maxFeePerGas: `0x${string}`;
43
43
  maxPriorityFeePerGas: `0x${string}`;
44
44
  };
45
- signatureRequest: {
45
+ signatureRequest: ({
46
46
  type: "personal_sign";
47
47
  data: string | {
48
48
  raw: `0x${string}`;
@@ -51,8 +51,8 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
51
51
  type: "eth_signTypedData_v4";
52
52
  data: {
53
53
  domain?: {
54
- salt?: `0x${string}` | undefined;
55
54
  chainId?: number | undefined;
55
+ salt?: `0x${string}` | undefined;
56
56
  name?: string | undefined;
57
57
  verifyingContract?: `0x${string}` | undefined;
58
58
  version?: string | undefined;
@@ -68,6 +68,12 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
68
68
  [x: string]: unknown;
69
69
  };
70
70
  };
71
+ }) & {
72
+ authorizationRequest?: {
73
+ nonce: number;
74
+ chainId: number;
75
+ address: `0x${string}`;
76
+ } | undefined;
71
77
  };
72
78
  }>;
73
79
  sendPreparedCalls: (params: SendPreparedCallsParams) => Promise<{
@@ -77,8 +83,8 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
77
83
  receipts?: {
78
84
  status: `0x${string}`;
79
85
  logs: {
80
- data: `0x${string}`;
81
86
  address: `0x${string}`;
87
+ data: `0x${string}`;
82
88
  topics: `0x${string}`[];
83
89
  }[];
84
90
  blockHash: `0x${string}`;
@@ -89,7 +95,7 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
89
95
  chainId: `0x${string}`;
90
96
  id: `0x${string}`;
91
97
  atomic: boolean;
92
- status: 100 | 200 | 400 | 500 | 600;
98
+ status: 200 | 100 | 400 | 500 | 600;
93
99
  }>;
94
100
  createSession: (params: CreateSessionParams) => Promise<import("./actions/createSession.js").CreateSessionResult>;
95
101
  };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/isomorphic/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAGxC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B;2BAGwB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACb,uBAAuB;;;6BAE1B,oBAAoB;;;;;;;;;;;;;;;;;;4BAErB,mBAAmB;EAG9C;AAID,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,oBAA2B,GAC5B,EAAE,YAAY,GAAG,kBAAkB,CAClC,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,UAAU,CAAC,OAAO,uBAAuB,CAAC,EAC1C,yBAAyB,GAAG,2BAA2B,CACxD,CAmBA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/isomorphic/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAGxC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B;2BAGwB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACb,uBAAuB;;;6BAE1B,oBAAoB;;;;;;;;;;;;;;;;;;4BAErB,mBAAmB;EAG9C;AAID,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,oBAA2B,GAC5B,EAAE,YAAY,GAAG,kBAAkB,CAClC,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,UAAU,CAAC,OAAO,uBAAuB,CAAC,EAC1C,yBAAyB,GAAG,2BAA2B,CACxD,CAmBA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { SmartAccountClient, SmartContractAccount } from "@aa-sdk/core";
2
+ import { type Authorization, type Address, type Chain, type Transport } from "viem";
3
+ import type { WalletServerViemRpcSchema } from "../../rpc/schema.js";
4
+ export declare const createAuthorization: (client: SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, Record<string, unknown>, WalletServerViemRpcSchema>, params: {
5
+ address: Address;
6
+ delegation: Address;
7
+ }) => Promise<Authorization<number, false> | undefined>;
8
+ type Supported7702AccountType = "ModularAccountV2";
9
+ export declare const getAccountTypeForImplementationAddress7702: (address: Address) => Supported7702AccountType | undefined;
10
+ export declare const isSupportedImplementationAddress7702: (address: string) => boolean;
11
+ export {};
12
+ //# sourceMappingURL=7702.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"7702.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/7702.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B,EACD,QAAQ;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,KAChD,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,SAAS,CAalD,CAAC;AAEF,KAAK,wBAAwB,GAAG,kBAAkB,CAAC;AASnD,eAAO,MAAM,0CAA0C,GACrD,SAAS,OAAO,KACf,wBAAwB,GAAG,SAE7B,CAAC;AAMF,eAAO,MAAM,oCAAoC,GAC/C,SAAS,MAAM,KACd,OAEF,CAAC"}
@@ -9,7 +9,8 @@ type CreateAccountParams = {
9
9
  transport: Transport;
10
10
  signer: SmartAccountSigner;
11
11
  accountAddress: Address;
12
- counterfactualInfo: StaticDecode<typeof TypeSerializedInitcode>;
12
+ counterfactualInfo?: StaticDecode<typeof TypeSerializedInitcode>;
13
+ delegation?: Address;
13
14
  capabilities?: StaticDecode<typeof Capabilities>;
14
15
  };
15
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,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,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;IAChE,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;CAClD,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAuB/B;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,IAAI,gBAAgB,CAE7B"}
1
+ {"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAM/D,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,sBAAsB,CAAC,CAAC;IACjE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;CAClD,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAmD/B;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,IAAI,gBAAgB,CAE7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"createDummySigner.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createDummySigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EACL,KAAK,OAAO,EAIb,MAAM,MAAM,CAAC;AAEd,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,kBAgBnD,CAAC"}
1
+ {"version":3,"file":"createDummySigner.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createDummySigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAEL,KAAK,OAAO,EAIb,MAAM,MAAM,CAAC;AAEd,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,kBAgBnD,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import type { StaticDecode } from "@sinclair/typebox";
2
2
  import type { TypeSerializedInitcode } from "../../schemas.js";
3
3
  import type { PrepareCallsParams } from "../actions/prepareCalls.js";
4
- export declare function parsePermissionsContext(capabilities: PrepareCallsParams["capabilities"], parsedCi: StaticDecode<typeof TypeSerializedInitcode>): ({
4
+ import type { Address } from "viem";
5
+ export declare function parsePermissionsContext(capabilities: PrepareCallsParams["capabilities"], parsedCi: StaticDecode<typeof TypeSerializedInitcode> | undefined, delegation7702?: Address): ({
5
6
  contextVersion: keyof typeof import("../../exports/internal.js").PermissionsContextVersion;
6
7
  } & {
7
8
  contextVersion: "LOCAL_MODE_DEFERRED_ACTION";
@@ -1 +1 @@
1
- {"version":3,"file":"parsePermissionsContext.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/parsePermissionsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,EAChD,QAAQ,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC;;;;;;;;;;;;;;;;eAwBtD"}
1
+ {"version":3,"file":"parsePermissionsContext.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/parsePermissionsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,EAChD,QAAQ,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC,GAAG,SAAS,EACjE,cAAc,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;eAqCzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/remote/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAK/E,OAAO,KAAK,EACV,uBAAuB,EAEvB,oBAAoB,EAErB,MAAM,aAAa,CAAC;AAErB,wBAAgB,kBAAkB,CAChC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EACb,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/remote/client.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,cAAc,EACpB,MAAM,MAAM,CAAC;AAKd,OAAO,KAAK,EACV,uBAAuB,EAEvB,oBAAoB,EAErB,MAAM,aAAa,CAAC;AAErB,wBAAgB,kBAAkB,CAChC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EACb,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,231 @@
1
+ export declare const Examples: {
2
+ PrepareCalls: readonly [{
3
+ readonly name: "wallet_prepareCalls example";
4
+ readonly params: readonly [{
5
+ readonly name: "Request";
6
+ readonly value: readonly [{
7
+ readonly calls: readonly [{
8
+ readonly to: "0x1234567890123456789012345678901234567890";
9
+ readonly data: "0x";
10
+ }];
11
+ readonly from: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
12
+ readonly chainId: "0x01";
13
+ readonly capabilities: {
14
+ readonly paymasterService: {
15
+ readonly policyId: "11111111-2222-3333-4444-555555555555";
16
+ };
17
+ };
18
+ }];
19
+ }];
20
+ readonly result: {
21
+ readonly name: "Response";
22
+ readonly value: {
23
+ readonly type: "user-operation-v070";
24
+ readonly data: {
25
+ readonly sender: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
26
+ readonly nonce: "0x10000000000000000";
27
+ readonly callData: "0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000";
28
+ readonly paymaster: "0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048";
29
+ readonly paymasterData: "0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c";
30
+ readonly paymasterPostOpGasLimit: "0x0";
31
+ readonly paymasterVerificationGasLimit: "0x74d3";
32
+ readonly maxPriorityFeePerGas: "0x60e4b0";
33
+ readonly maxFeePerGas: "0x1bf52290";
34
+ readonly callGasLimit: "0x2bb8";
35
+ readonly verificationGasLimit: "0xc845";
36
+ readonly preVerificationGas: "0x14b74";
37
+ };
38
+ readonly chainId: "0x66eee";
39
+ readonly signatureRequest: {
40
+ readonly type: "personal_sign";
41
+ readonly data: {
42
+ readonly raw: "0xc69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392";
43
+ };
44
+ };
45
+ };
46
+ };
47
+ }];
48
+ SendPreparedCalls: readonly [{
49
+ readonly name: "wallet_sendPreparedCalls example";
50
+ readonly params: readonly [{
51
+ readonly name: "Request";
52
+ readonly value: readonly [{
53
+ readonly type: "user-operation-v070";
54
+ readonly data: {
55
+ readonly sender: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
56
+ readonly nonce: "0x10000000000000000";
57
+ readonly callData: "0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000";
58
+ readonly paymaster: "0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048";
59
+ readonly paymasterData: "0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c";
60
+ readonly paymasterPostOpGasLimit: "0x0";
61
+ readonly paymasterVerificationGasLimit: "0x74d3";
62
+ readonly maxPriorityFeePerGas: "0x60e4b0";
63
+ readonly maxFeePerGas: "0x1bf52290";
64
+ readonly callGasLimit: "0x2bb8";
65
+ readonly verificationGasLimit: "0xc845";
66
+ readonly preVerificationGas: "0x14b74";
67
+ };
68
+ readonly chainId: "0x66eee";
69
+ readonly signature: {
70
+ readonly type: "ecdsa";
71
+ readonly signature: "0xb1a055089b1ba8387ed435f2bd0afe7ff69f22b928cdfdea1b5323c64d6af387164de3fa6febf031b544de46a84d6fb7f084b9798ddfaba820950c257139a7321b";
72
+ };
73
+ }];
74
+ }];
75
+ readonly result: {
76
+ readonly name: "Response";
77
+ readonly value: {
78
+ readonly preparedCallIds: readonly ["0x0000000000000000000000000000000000000000000000000000000000066eeec69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392"];
79
+ };
80
+ };
81
+ }];
82
+ RequestAccount: readonly [{
83
+ readonly name: "wallet_requestAccount example";
84
+ readonly params: readonly [{
85
+ readonly name: "Request";
86
+ readonly value: readonly [{
87
+ readonly signerAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
88
+ }];
89
+ }];
90
+ readonly result: {
91
+ readonly name: "Response";
92
+ readonly value: {
93
+ readonly accountAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
94
+ readonly id: "3061cc5f-1f96-48a9-ab45-41faad2dd23b";
95
+ };
96
+ };
97
+ }];
98
+ CreateAccount: readonly [{
99
+ readonly name: "wallet_createAccount example";
100
+ readonly params: readonly [{
101
+ readonly name: "Request";
102
+ readonly value: readonly [{
103
+ readonly signerAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
104
+ readonly creationOption: {
105
+ readonly salt: "0x10";
106
+ };
107
+ }];
108
+ }];
109
+ readonly result: {
110
+ readonly name: "Response";
111
+ readonly value: {
112
+ readonly accountAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A";
113
+ readonly id: "3061cc5f-1f96-48a9-ab45-41faad2dd23b";
114
+ };
115
+ };
116
+ }];
117
+ ListAccounts: readonly [{
118
+ readonly name: "wallet_listAccounts example";
119
+ readonly params: readonly [{
120
+ readonly name: "Request";
121
+ readonly value: readonly [{
122
+ readonly signerAddress: "0x6275B53E98D07c729108A177207634eA22F5A748";
123
+ }];
124
+ }];
125
+ readonly result: {
126
+ readonly name: "Response";
127
+ readonly value: {
128
+ readonly accounts: readonly [{
129
+ readonly accountAddress: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2";
130
+ readonly id: "3d8b3315-4aa1-4c67-8c82-20221e8dbf16";
131
+ }];
132
+ readonly meta: {
133
+ readonly totalCount: 1;
134
+ readonly after: null;
135
+ };
136
+ };
137
+ };
138
+ }];
139
+ CreateSession: readonly [{
140
+ readonly name: "wallet_createSession example";
141
+ readonly params: readonly [{
142
+ readonly name: "Request";
143
+ readonly value: readonly [{
144
+ readonly account: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2";
145
+ readonly chainId: "0x01";
146
+ readonly key: {
147
+ readonly publicKey: "0x647bbf38CD0E116d1672405aE17a775572a84e03";
148
+ readonly type: "secp256k1";
149
+ };
150
+ readonly permissions: readonly [{
151
+ readonly type: "root";
152
+ }];
153
+ readonly expiry: 1747969653;
154
+ }];
155
+ }];
156
+ readonly result: {
157
+ readonly name: "Response";
158
+ readonly value: {
159
+ readonly sessionId: "0xcd8b2d07a6fa76f1e8a5eaa8f3a7883c";
160
+ readonly signatureRequest: {
161
+ readonly type: "eth_signTypedData_v4";
162
+ readonly data: {
163
+ readonly domain: {
164
+ readonly chainId: 1;
165
+ readonly verifyingContract: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2";
166
+ };
167
+ readonly types: {
168
+ readonly DeferredAction: readonly [{
169
+ readonly name: "nonce";
170
+ readonly type: "uint256";
171
+ }, {
172
+ readonly name: "deadline";
173
+ readonly type: "uint48";
174
+ }, {
175
+ readonly name: "call";
176
+ readonly type: "bytes";
177
+ }];
178
+ };
179
+ readonly primaryType: "DeferredAction";
180
+ readonly message: {
181
+ readonly nonce: "0x1030000000000000000";
182
+ readonly deadline: 1747969653;
183
+ readonly call: "0x1bbf564c00000000000099DE0BF6fA90dEB851E2A2df7d83000000010500000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000647bbf38cd0e116d1672405ae17a775572a84e0300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007900000000000082B8e2012be914dFA4f62A0573eA0000000101000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000682fe675000000000000000000000000000000000000000000000000000000000000000000000000000000";
184
+ };
185
+ };
186
+ };
187
+ };
188
+ };
189
+ }];
190
+ GetCallsStatus: readonly [{
191
+ readonly name: "wallet_getCallsStatus example";
192
+ readonly params: readonly [{
193
+ readonly name: "Request";
194
+ readonly value: readonly ["0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477"];
195
+ }];
196
+ readonly result: {
197
+ readonly name: "Response";
198
+ readonly value: {
199
+ readonly id: "0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477";
200
+ readonly chainId: "0x66eee";
201
+ readonly atomic: true;
202
+ readonly status: 200;
203
+ readonly receipts: readonly [{
204
+ readonly status: "0x1";
205
+ readonly blockHash: "0x7c6f2f548c0ad4434dfb64f49a810bc795dadcd4cbec948bf8d4ae81a10fed5e";
206
+ readonly blockNumber: "0x8ba5f79";
207
+ readonly gasUsed: "0x33c65";
208
+ readonly transactionHash: "0x8ec28074a461102e4dbe43cb4aa9fed3e8c1274f1f1b0d5f6a0919ce7e20f517";
209
+ readonly logs: readonly [{
210
+ readonly address: "0x00000000000017c61b5bee81050ec8efc9c6fecd";
211
+ readonly data: "0x0000000000000000000000000000000000000000000000000000000000000000";
212
+ readonly topics: readonly ["0xd32049610f0cd3babd266cf338d726cc8c34c8ff97356c0f33c13fa59962ac92", "0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d", "0x0000000000000000000000003f3503e682bf27330f9e5065043d47207e609e7d"];
213
+ }, {
214
+ readonly address: "0x0000000071727de22e5e9d8baf0edac6f37da032";
215
+ readonly data: "0x00000000000000000000000000000000000017c61b5bee81050ec8efc9c6fecd0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633";
216
+ readonly topics: readonly ["0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d", "0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477", "0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d"];
217
+ }, {
218
+ readonly address: "0x0000000071727de22e5e9d8baf0edac6f37da032";
219
+ readonly data: "0x";
220
+ readonly topics: readonly ["0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"];
221
+ }, {
222
+ readonly address: "0x0000000071727de22e5e9d8baf0edac6f37da032";
223
+ readonly data: "0x00000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000014ba6c2cd4f0000000000000000000000000000000000000000000000000000000000003451d";
224
+ readonly topics: readonly ["0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f", "0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477", "0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d", "0x0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633"];
225
+ }];
226
+ }];
227
+ };
228
+ };
229
+ }];
230
+ };
231
+ //# sourceMappingURL=examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../src/rpc/examples.ts"],"names":[],"mappings":"AA8UA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQc,CAAC"}
@@ -32,13 +32,24 @@ export declare const wallet_sendPreparedCalls: import("@sinclair/typebox").TObje
32
32
  }>]>;
33
33
  chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
34
34
  signature: import("@sinclair/typebox").TObject<{
35
- type: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, "ecdsa">;
35
+ type: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TLiteral<"ecdsa">, "ecdsa">;
36
36
  signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
37
37
  }>;
38
+ signedAuthorization: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
39
+ chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
40
+ nonce: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
41
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
42
+ r: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
43
+ s: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
44
+ yParity: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
45
+ }>>;
38
46
  capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
39
- permissions: import("@sinclair/typebox").TObject<{
47
+ permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
40
48
  context: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
41
- }>;
49
+ }>, import("@sinclair/typebox").TObject<{
50
+ sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
51
+ signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
52
+ }>]>>;
42
53
  }>>;
43
54
  }>]>;
44
55
  }>;
@@ -58,9 +69,12 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
58
69
  from: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
59
70
  chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
60
71
  capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
61
- permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
72
+ permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
62
73
  context: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
63
- }>>;
74
+ }>, import("@sinclair/typebox").TObject<{
75
+ sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
76
+ signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
77
+ }>]>>;
64
78
  paymasterService: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
65
79
  policyId: import("@sinclair/typebox").TString;
66
80
  }>>;
@@ -120,7 +134,7 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
120
134
  paymasterPostOpGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
121
135
  }>]>;
122
136
  chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
123
- signatureRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
137
+ signatureRequest: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
124
138
  type: import("@sinclair/typebox").TLiteral<"personal_sign">;
125
139
  data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
126
140
  raw: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
@@ -129,7 +143,7 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
129
143
  type: import("@sinclair/typebox").TLiteral<"eth_signTypedData_v4">;
130
144
  data: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TObject<{
131
145
  domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
132
- chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
146
+ chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
133
147
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
134
148
  salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
135
149
  verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
@@ -143,8 +157,8 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
143
157
  message: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
144
158
  }>, {
145
159
  domain?: {
146
- salt?: `0x${string}` | undefined;
147
160
  chainId?: number | undefined;
161
+ salt?: `0x${string}` | undefined;
148
162
  name?: string | undefined;
149
163
  verifyingContract?: `0x${string}` | undefined;
150
164
  version?: string | undefined;
@@ -160,6 +174,12 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
160
174
  [x: string]: unknown;
161
175
  };
162
176
  }>;
177
+ }>]>, import("@sinclair/typebox").TObject<{
178
+ authorizationRequest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
179
+ chainId: import("@sinclair/typebox").TInteger;
180
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
181
+ nonce: import("@sinclair/typebox").TInteger;
182
+ }>>;
163
183
  }>]>;
164
184
  }>;
165
185
  }>;
@@ -169,10 +189,12 @@ export declare const wallet_requestAccount: import("@sinclair/typebox").TObject<
169
189
  params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
170
190
  signerAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
171
191
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
172
- creationHint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
192
+ creationHint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
173
193
  accountType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"sma-b">>;
174
194
  salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
175
- }>>;
195
+ }>, import("@sinclair/typebox").TObject<{
196
+ accountType: import("@sinclair/typebox").TLiteral<"7702">;
197
+ }>]>>;
176
198
  includeCounterfactualInfo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
177
199
  }>, import("@sinclair/typebox").TObject<{
178
200
  accountAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
@@ -187,6 +209,7 @@ export declare const wallet_requestAccount: import("@sinclair/typebox").TObject<
187
209
  factoryAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
188
210
  factoryData: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
189
211
  }>>;
212
+ delegation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
190
213
  }>;
191
214
  }>;
192
215
  export declare const wallet_createAccount: import("@sinclair/typebox").TObject<{
@@ -195,10 +218,12 @@ export declare const wallet_createAccount: import("@sinclair/typebox").TObject<{
195
218
  params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TObject<{
196
219
  signerAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
197
220
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
198
- creationOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
221
+ creationOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
199
222
  accountType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"sma-b">>;
200
223
  salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
201
- }>>;
224
+ }>, import("@sinclair/typebox").TObject<{
225
+ accountType: import("@sinclair/typebox").TLiteral<"7702">;
226
+ }>]>>;
202
227
  }>]>;
203
228
  }>;
204
229
  ReturnType: import("@sinclair/typebox").TObject<{
@@ -221,7 +246,7 @@ export declare const wallet_listAccounts: import("@sinclair/typebox").TObject<{
221
246
  id: import("@sinclair/typebox").TString;
222
247
  }>>;
223
248
  meta: import("@sinclair/typebox").TObject<{
224
- totalCount: import("@sinclair/typebox").TNumber;
249
+ totalCount: import("@sinclair/typebox").TInteger;
225
250
  after: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
226
251
  }>;
227
252
  }>;
@@ -231,7 +256,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
231
256
  method: import("@sinclair/typebox").TLiteral<"wallet_createSession">;
232
257
  params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
233
258
  chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
234
- expiry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
259
+ expiry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
235
260
  key: import("@sinclair/typebox").TObject<{
236
261
  type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"secp256k1">, import("@sinclair/typebox").TLiteral<"contract">]>;
237
262
  publicKey: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
@@ -283,7 +308,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
283
308
  }>;
284
309
  ReturnType: import("@sinclair/typebox").TObject<{
285
310
  sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
286
- signatureRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
311
+ signatureRequest: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
287
312
  type: import("@sinclair/typebox").TLiteral<"personal_sign">;
288
313
  data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
289
314
  raw: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
@@ -292,7 +317,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
292
317
  type: import("@sinclair/typebox").TLiteral<"eth_signTypedData_v4">;
293
318
  data: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TObject<{
294
319
  domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
295
- chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
320
+ chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
296
321
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
297
322
  salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
298
323
  verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
@@ -306,8 +331,8 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
306
331
  message: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
307
332
  }>, {
308
333
  domain?: {
309
- salt?: `0x${string}` | undefined;
310
334
  chainId?: number | undefined;
335
+ salt?: `0x${string}` | undefined;
311
336
  name?: string | undefined;
312
337
  verifyingContract?: `0x${string}` | undefined;
313
338
  version?: string | undefined;
@@ -323,6 +348,12 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
323
348
  [x: string]: unknown;
324
349
  };
325
350
  }>;
351
+ }>]>, import("@sinclair/typebox").TObject<{
352
+ authorizationRequest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
353
+ chainId: import("@sinclair/typebox").TInteger;
354
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
355
+ nonce: import("@sinclair/typebox").TInteger;
356
+ }>>;
326
357
  }>]>;
327
358
  }>;
328
359
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCpC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;EAgCjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;EAoBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EA+B/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EA8DjC,CAAC"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDpC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C/B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EAgC/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EAoEjC,CAAC"}