@dynamic-labs/ethereum-aa-zksync 4.17.0 → 4.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
1
 
2
+ ## [4.18.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.17.0...v4.18.0) (2025-05-07)
3
+
4
+
5
+ ### Features
6
+
7
+ * 7702 authorization now happens on the first transaction and could use sponsored user operation if paymaster provided (IMPORTANT: viem need to be upgraded to at least 2.28.4)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * inline email submit button color when active ([#8663](https://github.com/dynamic-labs/dynamic-auth/issues/8663)) ([ea556e9](https://github.com/dynamic-labs/dynamic-auth/commit/ea556e9116e876fb2180870e74b6c8c6a13faecb))
13
+
2
14
  ## [4.17.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.16.0...v4.17.0) (2025-05-06)
3
15
 
4
16
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.17.0";
6
+ var version = "4.18.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.17.0";
2
+ var version = "4.18.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa-zksync",
3
- "version": "4.17.0",
3
+ "version": "4.18.0",
4
4
  "description": "Core package for Ethereum Account Abstraction utilities and types",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -20,13 +20,13 @@
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.660",
22
22
  "zksync-sso": "0.1.0",
23
- "@dynamic-labs/assert-package-version": "4.17.0",
24
- "@dynamic-labs/ethereum-aa-core": "4.17.0",
25
- "@dynamic-labs/ethereum-core": "4.17.0",
26
- "@dynamic-labs/types": "4.17.0",
27
- "@dynamic-labs/utils": "4.17.0",
28
- "@dynamic-labs/wallet-book": "4.17.0",
29
- "@dynamic-labs/wallet-connector-core": "4.17.0"
23
+ "@dynamic-labs/assert-package-version": "4.18.0",
24
+ "@dynamic-labs/ethereum-aa-core": "4.18.0",
25
+ "@dynamic-labs/ethereum-core": "4.18.0",
26
+ "@dynamic-labs/types": "4.18.0",
27
+ "@dynamic-labs/utils": "4.18.0",
28
+ "@dynamic-labs/wallet-book": "4.18.0",
29
+ "@dynamic-labs/wallet-connector-core": "4.18.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "viem": "^2.21.60"
@@ -381,15 +381,66 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
381
381
  Method: "wallet_addEthereumChain";
382
382
  Parameters: [chain: import("viem").AddEthereumChainParameter];
383
383
  ReturnType: null;
384
+ }, {
385
+ Method: "wallet_addSubAccount";
386
+ Parameters: [{
387
+ account: import("viem").OneOf<{
388
+ keys: readonly {
389
+ publicKey: `0x${string}`;
390
+ type: "address" | "p256" | "webcrypto-p256" | "webauthn-p256";
391
+ }[];
392
+ type: "create";
393
+ } | {
394
+ address: `0x${string}`;
395
+ chainId?: number | undefined;
396
+ type: "deployed";
397
+ } | {
398
+ address: `0x${string}`;
399
+ chainId?: number | undefined;
400
+ factory: `0x${string}`;
401
+ factoryData: `0x${string}`;
402
+ type: "undeployed";
403
+ }>;
404
+ version: string;
405
+ }];
406
+ ReturnType: {
407
+ address: `0x${string}`;
408
+ factory?: `0x${string}` | undefined;
409
+ factoryData?: `0x${string}` | undefined;
410
+ };
411
+ }, {
412
+ Method: "wallet_connect";
413
+ Parameters: [{
414
+ capabilities?: {
415
+ [key: string]: any;
416
+ } | undefined;
417
+ version: string;
418
+ }];
419
+ ReturnType: {
420
+ accounts: readonly {
421
+ address: `0x${string}`;
422
+ capabilities?: {
423
+ [key: string]: any;
424
+ } | undefined;
425
+ }[];
426
+ };
427
+ }, {
428
+ Method: "wallet_disconnect";
429
+ Parameters?: undefined;
430
+ ReturnType: void;
384
431
  }, {
385
432
  Method: "wallet_getCallsStatus";
386
433
  Parameters?: [string] | undefined;
387
- ReturnType: import("viem").WalletGetCallsStatusReturnType<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`, `0x${string}`>;
434
+ ReturnType: import("viem").WalletGetCallsStatusReturnType<{
435
+ [key: string]: any;
436
+ }, `0x${string}`, `0x${string}`, `0x${string}`>;
388
437
  }, {
389
438
  Method: "wallet_getCapabilities";
390
- Parameters?: [`0x${string}` | undefined] | undefined;
439
+ Parameters?: readonly [] | readonly [`0x${string}` | undefined] | readonly [`0x${string}` | undefined, readonly `0x${string}`[] | undefined] | undefined;
391
440
  ReturnType: {
392
- [x: `0x${string}`]: import("viem").WalletCapabilities;
441
+ [x: `0x${string}`]: {
442
+ [key: string]: any;
443
+ };
393
444
  };
394
445
  }, {
395
446
  Method: "wallet_getPermissions";
@@ -431,8 +482,12 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
431
482
  ReturnType: null;
432
483
  }, {
433
484
  Method: "wallet_sendCalls";
434
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`> | undefined;
435
- ReturnType: import("viem").WalletSendCallsReturnType<import("viem").WalletCapabilities>;
485
+ Parameters?: import("viem").WalletSendCallsParameters<{
486
+ [key: string]: any;
487
+ }, `0x${string}`, `0x${string}`> | undefined;
488
+ ReturnType: import("viem").WalletSendCallsReturnType<{
489
+ [key: string]: any;
490
+ }>;
436
491
  }, {
437
492
  Method: "wallet_sendTransaction";
438
493
  Parameters: [transaction: import("viem").RpcTransactionRequest];
@@ -14830,7 +14885,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
14830
14885
  blockTag?: import("viem").BlockTag | undefined;
14831
14886
  factory?: `0x${string}` | undefined;
14832
14887
  factoryData?: `0x${string}` | undefined;
14833
- signature: `0x${string}` | import("viem").Signature | Uint8Array;
14888
+ signature: `0x${string}` | Uint8Array | import("viem").Signature;
14834
14889
  universalSignatureVerifierAddress?: `0x${string}` | undefined;
14835
14890
  message: import("viem").SignableMessage;
14836
14891
  }) => Promise<boolean>;
@@ -14982,6 +15037,69 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
14982
15037
  testnet?: boolean | undefined;
14983
15038
  } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_5>) => Promise<`0x${string}`>;
14984
15039
  getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
15040
+ getCallsStatus: (parameters: import("viem").GetCallsStatusParameters) => Promise<{
15041
+ chainId: number;
15042
+ atomic: boolean;
15043
+ capabilities?: {
15044
+ [key: string]: any;
15045
+ } | {
15046
+ [x: string]: any;
15047
+ } | undefined;
15048
+ id: string;
15049
+ receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
15050
+ version: string;
15051
+ statusCode: number;
15052
+ status: "success" | "pending" | "failure" | undefined;
15053
+ }>;
15054
+ getCapabilities: <chainId extends number | undefined>(parameters?: import("viem").GetCapabilitiesParameters<chainId> | undefined) => Promise<(chainId extends number ? {
15055
+ [x: string]: any;
15056
+ atomic?: {
15057
+ status: "supported" | "ready" | "unsupported";
15058
+ } | undefined;
15059
+ unstable_addSubAccount?: {
15060
+ keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
15061
+ supported: boolean;
15062
+ } | undefined;
15063
+ paymasterService?: {
15064
+ supported: boolean;
15065
+ } | undefined;
15066
+ } : import("viem").WalletCapabilitiesRecord<import("viem").Capabilities<{
15067
+ [x: string]: any;
15068
+ atomic?: {
15069
+ status: "supported" | "ready" | "unsupported";
15070
+ } | undefined;
15071
+ unstable_addSubAccount?: {
15072
+ keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
15073
+ supported: boolean;
15074
+ } | undefined;
15075
+ paymasterService?: {
15076
+ supported: boolean;
15077
+ } | undefined;
15078
+ }>, number>) extends infer T_85 ? { [K_3 in keyof T_85]: (chainId extends number ? {
15079
+ [x: string]: any;
15080
+ atomic?: {
15081
+ status: "supported" | "ready" | "unsupported";
15082
+ } | undefined;
15083
+ unstable_addSubAccount?: {
15084
+ keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
15085
+ supported: boolean;
15086
+ } | undefined;
15087
+ paymasterService?: {
15088
+ supported: boolean;
15089
+ } | undefined;
15090
+ } : import("viem").WalletCapabilitiesRecord<import("viem").Capabilities<{
15091
+ [x: string]: any;
15092
+ atomic?: {
15093
+ status: "supported" | "ready" | "unsupported";
15094
+ } | undefined;
15095
+ unstable_addSubAccount?: {
15096
+ keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
15097
+ supported: boolean;
15098
+ } | undefined;
15099
+ paymasterService?: {
15100
+ supported: boolean;
15101
+ } | undefined;
15102
+ }>, number>)[K_3]; } : never>;
14985
15103
  getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
14986
15104
  prepareAuthorization: (parameters: import("viem/experimental").PrepareAuthorizationParameters<Account>) => Promise<import("viem/experimental").PrepareAuthorizationReturnType>;
14987
15105
  requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
@@ -14989,6 +15107,54 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
14989
15107
  [x: string]: Record<string, any>;
14990
15108
  eth_accounts: Record<string, any>;
14991
15109
  }) => Promise<import("viem").RequestPermissionsReturnType>;
15110
+ sendCalls: <const calls_3 extends readonly unknown[], chainOverride_6 extends ViemChain | undefined = undefined>(parameters: import("viem").SendCallsParameters<{
15111
+ blockExplorers?: {
15112
+ [key: string]: {
15113
+ name: string;
15114
+ url: string;
15115
+ apiUrl?: string | undefined;
15116
+ };
15117
+ default: {
15118
+ name: string;
15119
+ url: string;
15120
+ apiUrl?: string | undefined;
15121
+ };
15122
+ } | undefined;
15123
+ contracts?: {
15124
+ [x: string]: import("viem").ChainContract | {
15125
+ [sourceId: number]: import("viem").ChainContract | undefined;
15126
+ } | undefined;
15127
+ ensRegistry?: import("viem").ChainContract | undefined;
15128
+ ensUniversalResolver?: import("viem").ChainContract | undefined;
15129
+ multicall3?: import("viem").ChainContract | undefined;
15130
+ universalSignatureVerifier?: import("viem").ChainContract | undefined;
15131
+ } | undefined;
15132
+ ensTlds?: readonly string[] | undefined;
15133
+ id: number;
15134
+ name: string;
15135
+ nativeCurrency: {
15136
+ name: string;
15137
+ symbol: string;
15138
+ decimals: number;
15139
+ };
15140
+ rpcUrls: {
15141
+ [key: string]: {
15142
+ http: readonly string[];
15143
+ webSocket?: readonly string[] | undefined;
15144
+ };
15145
+ default: {
15146
+ http: readonly string[];
15147
+ webSocket?: readonly string[] | undefined;
15148
+ };
15149
+ };
15150
+ sourceId?: number | undefined;
15151
+ testnet?: boolean | undefined;
15152
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_6, calls_3>) => Promise<{
15153
+ capabilities?: {
15154
+ [x: string]: any;
15155
+ } | undefined;
15156
+ id: string;
15157
+ }>;
14992
15158
  sendTransaction: <const request_2 extends import("viem").SendTransactionRequest<{
14993
15159
  blockExplorers?: {
14994
15160
  [key: string]: {
@@ -15031,7 +15197,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15031
15197
  };
15032
15198
  sourceId?: number | undefined;
15033
15199
  testnet?: boolean | undefined;
15034
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_6>, chainOverride_6 extends ViemChain | undefined = undefined>(args: import("viem").SendTransactionParameters<{
15200
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_7>, chainOverride_7 extends ViemChain | undefined = undefined>(args: import("viem").SendTransactionParameters<{
15035
15201
  blockExplorers?: {
15036
15202
  [key: string]: {
15037
15203
  name: string;
@@ -15073,10 +15239,11 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15073
15239
  };
15074
15240
  sourceId?: number | undefined;
15075
15241
  testnet?: boolean | undefined;
15076
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_6, request_2>) => Promise<`0x${string}`>;
15242
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_7, request_2>) => Promise<`0x${string}`>;
15243
+ showCallsStatus: (parameters: import("viem").ShowCallsStatusParameters) => Promise<void>;
15077
15244
  signAuthorization: (parameters: import("viem/experimental").SignAuthorizationParameters<Account>) => Promise<import("viem/experimental").SignAuthorizationReturnType>;
15078
15245
  signMessage: (args: import("viem").SignMessageParameters<Account>) => Promise<`0x${string}`>;
15079
- signTransaction: <chainOverride_7 extends ViemChain | undefined, const request_3 extends import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<{
15246
+ signTransaction: <chainOverride_8 extends ViemChain | undefined, const request_3 extends import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<{
15080
15247
  blockExplorers?: {
15081
15248
  [key: string]: {
15082
15249
  name: string;
@@ -15118,7 +15285,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15118
15285
  };
15119
15286
  sourceId?: number | undefined;
15120
15287
  testnet?: boolean | undefined;
15121
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_7>, "transactionRequest", import("viem").TransactionRequest>, "from"> = import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<{
15288
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_8>, "transactionRequest", import("viem").TransactionRequest>, "from"> = import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<{
15122
15289
  blockExplorers?: {
15123
15290
  [key: string]: {
15124
15291
  name: string;
@@ -15160,7 +15327,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15160
15327
  };
15161
15328
  sourceId?: number | undefined;
15162
15329
  testnet?: boolean | undefined;
15163
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_7>, "transactionRequest", import("viem").TransactionRequest>, "from">>(args: import("viem").SignTransactionParameters<{
15330
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_8>, "transactionRequest", import("viem").TransactionRequest>, "from">>(args: import("viem").SignTransactionParameters<{
15164
15331
  blockExplorers?: {
15165
15332
  [key: string]: {
15166
15333
  name: string;
@@ -15202,7 +15369,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15202
15369
  };
15203
15370
  sourceId?: number | undefined;
15204
15371
  testnet?: boolean | undefined;
15205
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_7, request_3>) => Promise<import("viem").TransactionSerialized<import("viem").GetTransactionType<request_3, (request_3 extends {
15372
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_8, request_3>) => Promise<import("viem").TransactionSerialized<import("viem").GetTransactionType<request_3, (request_3 extends {
15206
15373
  accessList?: undefined;
15207
15374
  authorizationList?: undefined;
15208
15375
  blobs?: undefined;
@@ -15364,7 +15531,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15364
15531
  sidecars?: undefined;
15365
15532
  }) & {
15366
15533
  authorizationList: import("viem").SignedAuthorizationList;
15367
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_85 ? T_85 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15534
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_86 ? T_86 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15368
15535
  accessList?: undefined;
15369
15536
  authorizationList?: undefined;
15370
15537
  blobs?: undefined;
@@ -15445,7 +15612,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15445
15612
  sidecars?: undefined;
15446
15613
  }) & {
15447
15614
  authorizationList: import("viem").SignedAuthorizationList;
15448
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_85 extends "eip1559" ? `0x02${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15615
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_86 extends "eip1559" ? `0x02${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15449
15616
  accessList?: undefined;
15450
15617
  authorizationList?: undefined;
15451
15618
  blobs?: undefined;
@@ -15526,7 +15693,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15526
15693
  sidecars?: undefined;
15527
15694
  }) & {
15528
15695
  authorizationList: import("viem").SignedAuthorizationList;
15529
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_86 ? T_86 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15696
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_87 ? T_87 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15530
15697
  accessList?: undefined;
15531
15698
  authorizationList?: undefined;
15532
15699
  blobs?: undefined;
@@ -15607,7 +15774,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15607
15774
  sidecars?: undefined;
15608
15775
  }) & {
15609
15776
  authorizationList: import("viem").SignedAuthorizationList;
15610
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_86 extends "eip2930" ? `0x01${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15777
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_87 extends "eip2930" ? `0x01${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15611
15778
  accessList?: undefined;
15612
15779
  authorizationList?: undefined;
15613
15780
  blobs?: undefined;
@@ -15688,7 +15855,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15688
15855
  sidecars?: undefined;
15689
15856
  }) & {
15690
15857
  authorizationList: import("viem").SignedAuthorizationList;
15691
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_87 ? T_87 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15858
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_88 ? T_88 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15692
15859
  accessList?: undefined;
15693
15860
  authorizationList?: undefined;
15694
15861
  blobs?: undefined;
@@ -15769,7 +15936,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15769
15936
  sidecars?: undefined;
15770
15937
  }) & {
15771
15938
  authorizationList: import("viem").SignedAuthorizationList;
15772
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_87 extends "eip4844" ? `0x03${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15939
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_88 extends "eip4844" ? `0x03${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15773
15940
  accessList?: undefined;
15774
15941
  authorizationList?: undefined;
15775
15942
  blobs?: undefined;
@@ -15850,7 +16017,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15850
16017
  sidecars?: undefined;
15851
16018
  }) & {
15852
16019
  authorizationList: import("viem").SignedAuthorizationList;
15853
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_88 ? T_88 extends import("viem").GetTransactionType<request_3, (request_3 extends {
16020
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_89 ? T_89 extends import("viem").GetTransactionType<request_3, (request_3 extends {
15854
16021
  accessList?: undefined;
15855
16022
  authorizationList?: undefined;
15856
16023
  blobs?: undefined;
@@ -15931,7 +16098,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
15931
16098
  sidecars?: undefined;
15932
16099
  }) & {
15933
16100
  authorizationList: import("viem").SignedAuthorizationList;
15934
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_88 extends "eip7702" ? `0x04${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
16101
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_89 extends "eip7702" ? `0x04${string}` : never : never : never) | (import("viem").GetTransactionType<request_3, (request_3 extends {
15935
16102
  accessList?: undefined;
15936
16103
  authorizationList?: undefined;
15937
16104
  blobs?: undefined;
@@ -16012,7 +16179,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16012
16179
  sidecars?: undefined;
16013
16180
  }) & {
16014
16181
  authorizationList: import("viem").SignedAuthorizationList;
16015
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_89 ? T_89 extends import("viem").GetTransactionType<request_3, (request_3 extends {
16182
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> extends infer T_90 ? T_90 extends import("viem").GetTransactionType<request_3, (request_3 extends {
16016
16183
  accessList?: undefined;
16017
16184
  authorizationList?: undefined;
16018
16185
  blobs?: undefined;
@@ -16093,7 +16260,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16093
16260
  sidecars?: undefined;
16094
16261
  }) & {
16095
16262
  authorizationList: import("viem").SignedAuthorizationList;
16096
- } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_89 extends "legacy" ? import("viem").TransactionSerializedLegacy : never : never : never)>>;
16263
+ } ? "eip7702" : never) | (request_3["type"] extends string | undefined ? Extract<request_3["type"], string> : never)> ? T_90 extends "legacy" ? import("viem").TransactionSerializedLegacy : never : never : never)>>;
16097
16264
  signTypedData: <const typedData extends {
16098
16265
  [x: string]: readonly import("viem").TypedDataParameter[];
16099
16266
  [x: `string[${string}]`]: undefined;
@@ -16103,7 +16270,6 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16103
16270
  [x: `bytes[${string}]`]: undefined;
16104
16271
  [x: `bytes11[${string}]`]: undefined;
16105
16272
  [x: `bytes1[${string}]`]: undefined;
16106
- [x: `bytes23[${string}]`]: undefined;
16107
16273
  [x: `bytes2[${string}]`]: undefined;
16108
16274
  [x: `bytes3[${string}]`]: undefined;
16109
16275
  [x: `bytes4[${string}]`]: undefined;
@@ -16124,6 +16290,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16124
16290
  [x: `bytes20[${string}]`]: undefined;
16125
16291
  [x: `bytes21[${string}]`]: undefined;
16126
16292
  [x: `bytes22[${string}]`]: undefined;
16293
+ [x: `bytes23[${string}]`]: undefined;
16127
16294
  [x: `bytes24[${string}]`]: undefined;
16128
16295
  [x: `bytes25[${string}]`]: undefined;
16129
16296
  [x: `bytes26[${string}]`]: undefined;
@@ -16205,7 +16372,6 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16205
16372
  bytes?: undefined;
16206
16373
  bytes11?: undefined;
16207
16374
  bytes1?: undefined;
16208
- bytes23?: undefined;
16209
16375
  bytes2?: undefined;
16210
16376
  bytes3?: undefined;
16211
16377
  bytes4?: undefined;
@@ -16226,6 +16392,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16226
16392
  bytes20?: undefined;
16227
16393
  bytes21?: undefined;
16228
16394
  bytes22?: undefined;
16395
+ bytes23?: undefined;
16229
16396
  bytes24?: undefined;
16230
16397
  bytes25?: undefined;
16231
16398
  bytes26?: undefined;
@@ -16303,8 +16470,22 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16303
16470
  [key: string]: unknown;
16304
16471
  }, primaryType extends string>(args: SignTypedDataParameters<typedData, primaryType, Account>) => Promise<`0x${string}`>;
16305
16472
  switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
16473
+ waitForCallsStatus: (parameters: import("viem").WaitForCallsStatusParameters) => Promise<{
16474
+ chainId: number;
16475
+ atomic: boolean;
16476
+ capabilities?: {
16477
+ [key: string]: any;
16478
+ } | {
16479
+ [x: string]: any;
16480
+ } | undefined;
16481
+ id: string;
16482
+ receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
16483
+ version: string;
16484
+ statusCode: number;
16485
+ status: "success" | "pending" | "failure" | undefined;
16486
+ }>;
16306
16487
  watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
16307
- writeContract: <const abi_9 extends import("viem").Abi | readonly unknown[], functionName_3 extends import("viem").ContractFunctionName<abi_9, "nonpayable" | "payable">, args_4 extends import("viem").ContractFunctionArgs<abi_9, "nonpayable" | "payable", functionName_3>, chainOverride_8 extends ViemChain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_9, functionName_3, args_4, {
16488
+ writeContract: <const abi_9 extends import("viem").Abi | readonly unknown[], functionName_3 extends import("viem").ContractFunctionName<abi_9, "nonpayable" | "payable">, args_4 extends import("viem").ContractFunctionArgs<abi_9, "nonpayable" | "payable", functionName_3>, chainOverride_9 extends ViemChain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_9, functionName_3, args_4, {
16308
16489
  blockExplorers?: {
16309
16490
  [key: string]: {
16310
16491
  name: string;
@@ -16346,7 +16527,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16346
16527
  };
16347
16528
  sourceId?: number | undefined;
16348
16529
  testnet?: boolean | undefined;
16349
- } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_8>) => Promise<`0x${string}`>;
16530
+ } & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, Account, chainOverride_9>) => Promise<`0x${string}`>;
16350
16531
  createSession: (args: Omit<import("node_modules/zksync-sso/dist/_types/client/session/actions/session").CreateSessionArgs, "contracts">) => Promise<import("node_modules/zksync-sso/dist/_types/client/session/actions/session").CreateSessionReturnType>;
16351
16532
  revokeSession: (args: Omit<import("node_modules/zksync-sso/dist/_types/client/session/actions/session").RevokeSessionArgs, "contracts">) => Promise<import("node_modules/zksync-sso/dist/_types/client/session/actions/session").RevokeSessionReturnType>;
16352
16533
  extend: <const client extends {
@@ -16745,15 +16926,66 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16745
16926
  Method: "wallet_addEthereumChain";
16746
16927
  Parameters: [chain: import("viem").AddEthereumChainParameter];
16747
16928
  ReturnType: null;
16929
+ }, {
16930
+ Method: "wallet_addSubAccount";
16931
+ Parameters: [{
16932
+ account: import("viem").OneOf<{
16933
+ keys: readonly {
16934
+ publicKey: `0x${string}`;
16935
+ type: "address" | "p256" | "webcrypto-p256" | "webauthn-p256";
16936
+ }[];
16937
+ type: "create";
16938
+ } | {
16939
+ address: `0x${string}`;
16940
+ chainId?: number | undefined;
16941
+ type: "deployed";
16942
+ } | {
16943
+ address: `0x${string}`;
16944
+ chainId?: number | undefined;
16945
+ factory: `0x${string}`;
16946
+ factoryData: `0x${string}`;
16947
+ type: "undeployed";
16948
+ }>;
16949
+ version: string;
16950
+ }];
16951
+ ReturnType: {
16952
+ address: `0x${string}`;
16953
+ factory?: `0x${string}` | undefined;
16954
+ factoryData?: `0x${string}` | undefined;
16955
+ };
16956
+ }, {
16957
+ Method: "wallet_connect";
16958
+ Parameters: [{
16959
+ capabilities?: {
16960
+ [key: string]: any;
16961
+ } | undefined;
16962
+ version: string;
16963
+ }];
16964
+ ReturnType: {
16965
+ accounts: readonly {
16966
+ address: `0x${string}`;
16967
+ capabilities?: {
16968
+ [key: string]: any;
16969
+ } | undefined;
16970
+ }[];
16971
+ };
16972
+ }, {
16973
+ Method: "wallet_disconnect";
16974
+ Parameters?: undefined;
16975
+ ReturnType: void;
16748
16976
  }, {
16749
16977
  Method: "wallet_getCallsStatus";
16750
16978
  Parameters?: [string] | undefined;
16751
- ReturnType: import("viem").WalletGetCallsStatusReturnType<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`, `0x${string}`>;
16979
+ ReturnType: import("viem").WalletGetCallsStatusReturnType<{
16980
+ [key: string]: any;
16981
+ }, `0x${string}`, `0x${string}`, `0x${string}`>;
16752
16982
  }, {
16753
16983
  Method: "wallet_getCapabilities";
16754
- Parameters?: [`0x${string}` | undefined] | undefined;
16984
+ Parameters?: readonly [] | readonly [`0x${string}` | undefined] | readonly [`0x${string}` | undefined, readonly `0x${string}`[] | undefined] | undefined;
16755
16985
  ReturnType: {
16756
- [x: `0x${string}`]: import("viem").WalletCapabilities;
16986
+ [x: `0x${string}`]: {
16987
+ [key: string]: any;
16988
+ };
16757
16989
  };
16758
16990
  }, {
16759
16991
  Method: "wallet_getPermissions";
@@ -16795,8 +17027,12 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
16795
17027
  ReturnType: null;
16796
17028
  }, {
16797
17029
  Method: "wallet_sendCalls";
16798
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`> | undefined;
16799
- ReturnType: import("viem").WalletSendCallsReturnType<import("viem").WalletCapabilities>;
17030
+ Parameters?: import("viem").WalletSendCallsParameters<{
17031
+ [key: string]: any;
17032
+ }, `0x${string}`, `0x${string}`> | undefined;
17033
+ ReturnType: import("viem").WalletSendCallsReturnType<{
17034
+ [key: string]: any;
17035
+ }>;
16800
17036
  }, {
16801
17037
  Method: "wallet_sendTransaction";
16802
17038
  Parameters: [transaction: import("viem").RpcTransactionRequest];
@@ -17197,15 +17433,66 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
17197
17433
  Method: "wallet_addEthereumChain";
17198
17434
  Parameters: [chain: import("viem").AddEthereumChainParameter];
17199
17435
  ReturnType: null;
17436
+ }, {
17437
+ Method: "wallet_addSubAccount";
17438
+ Parameters: [{
17439
+ account: import("viem").OneOf<{
17440
+ keys: readonly {
17441
+ publicKey: `0x${string}`;
17442
+ type: "address" | "p256" | "webcrypto-p256" | "webauthn-p256";
17443
+ }[];
17444
+ type: "create";
17445
+ } | {
17446
+ address: `0x${string}`;
17447
+ chainId?: number | undefined;
17448
+ type: "deployed";
17449
+ } | {
17450
+ address: `0x${string}`;
17451
+ chainId?: number | undefined;
17452
+ factory: `0x${string}`;
17453
+ factoryData: `0x${string}`;
17454
+ type: "undeployed";
17455
+ }>;
17456
+ version: string;
17457
+ }];
17458
+ ReturnType: {
17459
+ address: `0x${string}`;
17460
+ factory?: `0x${string}` | undefined;
17461
+ factoryData?: `0x${string}` | undefined;
17462
+ };
17463
+ }, {
17464
+ Method: "wallet_connect";
17465
+ Parameters: [{
17466
+ capabilities?: {
17467
+ [key: string]: any;
17468
+ } | undefined;
17469
+ version: string;
17470
+ }];
17471
+ ReturnType: {
17472
+ accounts: readonly {
17473
+ address: `0x${string}`;
17474
+ capabilities?: {
17475
+ [key: string]: any;
17476
+ } | undefined;
17477
+ }[];
17478
+ };
17479
+ }, {
17480
+ Method: "wallet_disconnect";
17481
+ Parameters?: undefined;
17482
+ ReturnType: void;
17200
17483
  }, {
17201
17484
  Method: "wallet_getCallsStatus";
17202
17485
  Parameters?: [string] | undefined;
17203
- ReturnType: import("viem").WalletGetCallsStatusReturnType<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`, `0x${string}`>;
17486
+ ReturnType: import("viem").WalletGetCallsStatusReturnType<{
17487
+ [key: string]: any;
17488
+ }, `0x${string}`, `0x${string}`, `0x${string}`>;
17204
17489
  }, {
17205
17490
  Method: "wallet_getCapabilities";
17206
- Parameters?: [`0x${string}` | undefined] | undefined;
17491
+ Parameters?: readonly [] | readonly [`0x${string}` | undefined] | readonly [`0x${string}` | undefined, readonly `0x${string}`[] | undefined] | undefined;
17207
17492
  ReturnType: {
17208
- [x: `0x${string}`]: import("viem").WalletCapabilities;
17493
+ [x: `0x${string}`]: {
17494
+ [key: string]: any;
17495
+ };
17209
17496
  };
17210
17497
  }, {
17211
17498
  Method: "wallet_getPermissions";
@@ -17247,8 +17534,12 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
17247
17534
  ReturnType: null;
17248
17535
  }, {
17249
17536
  Method: "wallet_sendCalls";
17250
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`> | undefined;
17251
- ReturnType: import("viem").WalletSendCallsReturnType<import("viem").WalletCapabilities>;
17537
+ Parameters?: import("viem").WalletSendCallsParameters<{
17538
+ [key: string]: any;
17539
+ }, `0x${string}`, `0x${string}`> | undefined;
17540
+ ReturnType: import("viem").WalletSendCallsReturnType<{
17541
+ [key: string]: any;
17542
+ }>;
17252
17543
  }, {
17253
17544
  Method: "wallet_sendTransaction";
17254
17545
  Parameters: [transaction: import("viem").RpcTransactionRequest];
@@ -17267,7 +17558,7 @@ export declare class ZKsyncConnector extends AccountAbstractionBaseConnector imp
17267
17558
  Method: "wallet_watchAsset";
17268
17559
  Parameters: import("viem").WatchAssetParams;
17269
17560
  ReturnType: boolean;
17270
- }], { [K_3 in keyof client]: client[K_3]; } & import("viem").PublicActions<CustomTransport, {
17561
+ }], { [K_4 in keyof client]: client[K_4]; } & import("viem").PublicActions<CustomTransport, {
17271
17562
  blockExplorers?: {
17272
17563
  [key: string]: {
17273
17564
  name: string;