@dynamic-labs/ethereum-aa-zksync 4.103.0 → 4.104.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 +16 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/connector/ZKsyncConnector.d.ts +16765 -11021
- package/src/utils/session.d.ts +835 -9
package/src/utils/session.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
110
110
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
111
111
|
ReturnType: {
|
|
112
112
|
accessList: import("viem").AccessList;
|
|
113
|
+
error?: string | undefined;
|
|
113
114
|
gasUsed: `0x${string}`;
|
|
114
115
|
};
|
|
115
116
|
}, {
|
|
@@ -128,6 +129,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
128
129
|
Method: "eth_fillTransaction";
|
|
129
130
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
130
131
|
ReturnType: {
|
|
132
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
131
133
|
raw: `0x${string}`;
|
|
132
134
|
tx: import("viem").RpcTransaction;
|
|
133
135
|
};
|
|
@@ -151,6 +153,10 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
151
153
|
Method: "eth_getBlockByNumber";
|
|
152
154
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
153
155
|
ReturnType: import("viem").RpcBlock | null;
|
|
156
|
+
}, {
|
|
157
|
+
Method: "eth_getBlockReceipts";
|
|
158
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
159
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
154
160
|
}, {
|
|
155
161
|
Method: "eth_getBlockTransactionCountByHash";
|
|
156
162
|
Parameters: [hash: `0x${string}`];
|
|
@@ -188,7 +194,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
188
194
|
ReturnType: import("viem").RpcLog[];
|
|
189
195
|
}, {
|
|
190
196
|
Method: "eth_getProof";
|
|
191
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
197
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
192
198
|
ReturnType: import("viem").RpcProof;
|
|
193
199
|
}, {
|
|
194
200
|
Method: "eth_getStorageAt";
|
|
@@ -312,6 +318,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
312
318
|
Method: "eth_fillTransaction";
|
|
313
319
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
314
320
|
ReturnType: {
|
|
321
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
315
322
|
raw: `0x${string}`;
|
|
316
323
|
tx: import("viem").RpcTransaction;
|
|
317
324
|
};
|
|
@@ -485,6 +492,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
485
492
|
Parameters: import("viem").WatchAssetParams;
|
|
486
493
|
ReturnType: boolean;
|
|
487
494
|
}]>;
|
|
495
|
+
tokens: import("viem").Tokens | undefined;
|
|
488
496
|
transport: import("viem").TransportConfig<"http", import("viem").EIP1193RequestFn> & {
|
|
489
497
|
fetchOptions?: Omit<RequestInit, "body"> | undefined;
|
|
490
498
|
url?: string | undefined;
|
|
@@ -2228,7 +2236,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2228
2236
|
statusCode: number;
|
|
2229
2237
|
status: "success" | "pending" | "failure" | undefined;
|
|
2230
2238
|
}>;
|
|
2231
|
-
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "
|
|
2239
|
+
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, args extends import("viem").ContractFunctionArgs<abi_1, "nonpayable" | "payable", functionName>, chainOverride_7 extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, {
|
|
2232
2240
|
blockExplorers?: {
|
|
2233
2241
|
[key: string]: {
|
|
2234
2242
|
name: string;
|
|
@@ -2273,7 +2281,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2273
2281
|
sourceId?: number | undefined;
|
|
2274
2282
|
testnet?: boolean | undefined;
|
|
2275
2283
|
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, chainOverride_7>) => Promise<`0x${string}`>;
|
|
2276
|
-
writeContractSync: <const abi_2 extends import("viem").Abi | readonly unknown[], functionName_1 extends import("viem").ContractFunctionName<abi_2, "
|
|
2284
|
+
writeContractSync: <const abi_2 extends import("viem").Abi | readonly unknown[], functionName_1 extends import("viem").ContractFunctionName<abi_2, "nonpayable" | "payable">, args_1 extends import("viem").ContractFunctionArgs<abi_2, "nonpayable" | "payable", functionName_1>, chainOverride_8 extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractSyncParameters<abi_2, functionName_1, args_1, {
|
|
2277
2285
|
blockExplorers?: {
|
|
2278
2286
|
[key: string]: {
|
|
2279
2287
|
name: string;
|
|
@@ -2318,6 +2326,809 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2318
2326
|
sourceId?: number | undefined;
|
|
2319
2327
|
testnet?: boolean | undefined;
|
|
2320
2328
|
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, chainOverride_8>) => Promise<import("viem").TransactionReceipt>;
|
|
2329
|
+
token: {
|
|
2330
|
+
approveSync: (parameters: import("node_modules/viem/_types/actions/token").approveSync.Parameters<{
|
|
2331
|
+
blockExplorers?: {
|
|
2332
|
+
[key: string]: {
|
|
2333
|
+
name: string;
|
|
2334
|
+
url: string;
|
|
2335
|
+
apiUrl?: string | undefined;
|
|
2336
|
+
};
|
|
2337
|
+
default: {
|
|
2338
|
+
name: string;
|
|
2339
|
+
url: string;
|
|
2340
|
+
apiUrl?: string | undefined;
|
|
2341
|
+
};
|
|
2342
|
+
} | undefined;
|
|
2343
|
+
blockTime?: number | undefined;
|
|
2344
|
+
contracts?: {
|
|
2345
|
+
[x: string]: import("viem").ChainContract | {
|
|
2346
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2347
|
+
} | undefined;
|
|
2348
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2349
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2350
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2351
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2352
|
+
} | undefined;
|
|
2353
|
+
ensTlds?: readonly string[] | undefined;
|
|
2354
|
+
id: number;
|
|
2355
|
+
name: string;
|
|
2356
|
+
nativeCurrency: {
|
|
2357
|
+
name: string;
|
|
2358
|
+
symbol: string;
|
|
2359
|
+
decimals: number;
|
|
2360
|
+
};
|
|
2361
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2362
|
+
rpcUrls: {
|
|
2363
|
+
[key: string]: {
|
|
2364
|
+
http: readonly string[];
|
|
2365
|
+
webSocket?: readonly string[] | undefined;
|
|
2366
|
+
};
|
|
2367
|
+
default: {
|
|
2368
|
+
http: readonly string[];
|
|
2369
|
+
webSocket?: readonly string[] | undefined;
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
sourceId?: number | undefined;
|
|
2373
|
+
testnet?: boolean | undefined;
|
|
2374
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<{
|
|
2375
|
+
owner: `0x${string}`;
|
|
2376
|
+
spender: `0x${string}`;
|
|
2377
|
+
value: bigint;
|
|
2378
|
+
decimals?: number | undefined;
|
|
2379
|
+
formatted?: string | undefined;
|
|
2380
|
+
receipt: import("viem").TransactionReceipt;
|
|
2381
|
+
}>;
|
|
2382
|
+
approve: ((parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
2383
|
+
blockExplorers?: {
|
|
2384
|
+
[key: string]: {
|
|
2385
|
+
name: string;
|
|
2386
|
+
url: string;
|
|
2387
|
+
apiUrl?: string | undefined;
|
|
2388
|
+
};
|
|
2389
|
+
default: {
|
|
2390
|
+
name: string;
|
|
2391
|
+
url: string;
|
|
2392
|
+
apiUrl?: string | undefined;
|
|
2393
|
+
};
|
|
2394
|
+
} | undefined;
|
|
2395
|
+
blockTime?: number | undefined;
|
|
2396
|
+
contracts?: {
|
|
2397
|
+
[x: string]: import("viem").ChainContract | {
|
|
2398
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2399
|
+
} | undefined;
|
|
2400
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2401
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2402
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2403
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2404
|
+
} | undefined;
|
|
2405
|
+
ensTlds?: readonly string[] | undefined;
|
|
2406
|
+
id: number;
|
|
2407
|
+
name: string;
|
|
2408
|
+
nativeCurrency: {
|
|
2409
|
+
name: string;
|
|
2410
|
+
symbol: string;
|
|
2411
|
+
decimals: number;
|
|
2412
|
+
};
|
|
2413
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2414
|
+
rpcUrls: {
|
|
2415
|
+
[key: string]: {
|
|
2416
|
+
http: readonly string[];
|
|
2417
|
+
webSocket?: readonly string[] | undefined;
|
|
2418
|
+
};
|
|
2419
|
+
default: {
|
|
2420
|
+
http: readonly string[];
|
|
2421
|
+
webSocket?: readonly string[] | undefined;
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
sourceId?: number | undefined;
|
|
2425
|
+
testnet?: boolean | undefined;
|
|
2426
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<`0x${string}`>) & {
|
|
2427
|
+
call: (args: import("node_modules/viem/_types/actions/token").approve.Args<{
|
|
2428
|
+
blockExplorers?: {
|
|
2429
|
+
[key: string]: {
|
|
2430
|
+
name: string;
|
|
2431
|
+
url: string;
|
|
2432
|
+
apiUrl?: string | undefined;
|
|
2433
|
+
};
|
|
2434
|
+
default: {
|
|
2435
|
+
name: string;
|
|
2436
|
+
url: string;
|
|
2437
|
+
apiUrl?: string | undefined;
|
|
2438
|
+
};
|
|
2439
|
+
} | undefined;
|
|
2440
|
+
blockTime?: number | undefined;
|
|
2441
|
+
contracts?: {
|
|
2442
|
+
[x: string]: import("viem").ChainContract | {
|
|
2443
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2444
|
+
} | undefined;
|
|
2445
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2446
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2447
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2448
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2449
|
+
} | undefined;
|
|
2450
|
+
ensTlds?: readonly string[] | undefined;
|
|
2451
|
+
id: number;
|
|
2452
|
+
name: string;
|
|
2453
|
+
nativeCurrency: {
|
|
2454
|
+
name: string;
|
|
2455
|
+
symbol: string;
|
|
2456
|
+
decimals: number;
|
|
2457
|
+
};
|
|
2458
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2459
|
+
rpcUrls: {
|
|
2460
|
+
[key: string]: {
|
|
2461
|
+
http: readonly string[];
|
|
2462
|
+
webSocket?: readonly string[] | undefined;
|
|
2463
|
+
};
|
|
2464
|
+
default: {
|
|
2465
|
+
http: readonly string[];
|
|
2466
|
+
webSocket?: readonly string[] | undefined;
|
|
2467
|
+
};
|
|
2468
|
+
};
|
|
2469
|
+
sourceId?: number | undefined;
|
|
2470
|
+
testnet?: boolean | undefined;
|
|
2471
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Tokens | undefined>) => {
|
|
2472
|
+
abi: [{
|
|
2473
|
+
readonly type: "function";
|
|
2474
|
+
readonly name: "approve";
|
|
2475
|
+
readonly stateMutability: "nonpayable";
|
|
2476
|
+
readonly inputs: readonly [{
|
|
2477
|
+
readonly name: "spender";
|
|
2478
|
+
readonly type: "address";
|
|
2479
|
+
}, {
|
|
2480
|
+
readonly name: "amount";
|
|
2481
|
+
readonly type: "uint256";
|
|
2482
|
+
}];
|
|
2483
|
+
readonly outputs: readonly [{
|
|
2484
|
+
readonly type: "bool";
|
|
2485
|
+
}];
|
|
2486
|
+
}];
|
|
2487
|
+
functionName: "approve";
|
|
2488
|
+
} & {
|
|
2489
|
+
args: readonly [spender: `0x${string}`, amount: bigint];
|
|
2490
|
+
} & {
|
|
2491
|
+
address: `0x${string}`;
|
|
2492
|
+
} & {
|
|
2493
|
+
data: `0x${string}`;
|
|
2494
|
+
to: `0x${string}`;
|
|
2495
|
+
};
|
|
2496
|
+
estimateGas: (parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
2497
|
+
blockExplorers?: {
|
|
2498
|
+
[key: string]: {
|
|
2499
|
+
name: string;
|
|
2500
|
+
url: string;
|
|
2501
|
+
apiUrl?: string | undefined;
|
|
2502
|
+
};
|
|
2503
|
+
default: {
|
|
2504
|
+
name: string;
|
|
2505
|
+
url: string;
|
|
2506
|
+
apiUrl?: string | undefined;
|
|
2507
|
+
};
|
|
2508
|
+
} | undefined;
|
|
2509
|
+
blockTime?: number | undefined;
|
|
2510
|
+
contracts?: {
|
|
2511
|
+
[x: string]: import("viem").ChainContract | {
|
|
2512
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2513
|
+
} | undefined;
|
|
2514
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2515
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2516
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2517
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2518
|
+
} | undefined;
|
|
2519
|
+
ensTlds?: readonly string[] | undefined;
|
|
2520
|
+
id: number;
|
|
2521
|
+
name: string;
|
|
2522
|
+
nativeCurrency: {
|
|
2523
|
+
name: string;
|
|
2524
|
+
symbol: string;
|
|
2525
|
+
decimals: number;
|
|
2526
|
+
};
|
|
2527
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2528
|
+
rpcUrls: {
|
|
2529
|
+
[key: string]: {
|
|
2530
|
+
http: readonly string[];
|
|
2531
|
+
webSocket?: readonly string[] | undefined;
|
|
2532
|
+
};
|
|
2533
|
+
default: {
|
|
2534
|
+
http: readonly string[];
|
|
2535
|
+
webSocket?: readonly string[] | undefined;
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
sourceId?: number | undefined;
|
|
2539
|
+
testnet?: boolean | undefined;
|
|
2540
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<bigint>;
|
|
2541
|
+
extractEvent: typeof import("node_modules/viem/_types/actions/token").approve.extractEvent;
|
|
2542
|
+
simulate: (parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
2543
|
+
blockExplorers?: {
|
|
2544
|
+
[key: string]: {
|
|
2545
|
+
name: string;
|
|
2546
|
+
url: string;
|
|
2547
|
+
apiUrl?: string | undefined;
|
|
2548
|
+
};
|
|
2549
|
+
default: {
|
|
2550
|
+
name: string;
|
|
2551
|
+
url: string;
|
|
2552
|
+
apiUrl?: string | undefined;
|
|
2553
|
+
};
|
|
2554
|
+
} | undefined;
|
|
2555
|
+
blockTime?: number | undefined;
|
|
2556
|
+
contracts?: {
|
|
2557
|
+
[x: string]: import("viem").ChainContract | {
|
|
2558
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2559
|
+
} | undefined;
|
|
2560
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2561
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2562
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2563
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2564
|
+
} | undefined;
|
|
2565
|
+
ensTlds?: readonly string[] | undefined;
|
|
2566
|
+
id: number;
|
|
2567
|
+
name: string;
|
|
2568
|
+
nativeCurrency: {
|
|
2569
|
+
name: string;
|
|
2570
|
+
symbol: string;
|
|
2571
|
+
decimals: number;
|
|
2572
|
+
};
|
|
2573
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2574
|
+
rpcUrls: {
|
|
2575
|
+
[key: string]: {
|
|
2576
|
+
http: readonly string[];
|
|
2577
|
+
webSocket?: readonly string[] | undefined;
|
|
2578
|
+
};
|
|
2579
|
+
default: {
|
|
2580
|
+
http: readonly string[];
|
|
2581
|
+
webSocket?: readonly string[] | undefined;
|
|
2582
|
+
};
|
|
2583
|
+
};
|
|
2584
|
+
sourceId?: number | undefined;
|
|
2585
|
+
testnet?: boolean | undefined;
|
|
2586
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
2587
|
+
readonly type: "event";
|
|
2588
|
+
readonly name: "Approval";
|
|
2589
|
+
readonly inputs: readonly [{
|
|
2590
|
+
readonly indexed: true;
|
|
2591
|
+
readonly name: "owner";
|
|
2592
|
+
readonly type: "address";
|
|
2593
|
+
}, {
|
|
2594
|
+
readonly indexed: true;
|
|
2595
|
+
readonly name: "spender";
|
|
2596
|
+
readonly type: "address";
|
|
2597
|
+
}, {
|
|
2598
|
+
readonly indexed: false;
|
|
2599
|
+
readonly name: "value";
|
|
2600
|
+
readonly type: "uint256";
|
|
2601
|
+
}];
|
|
2602
|
+
}, {
|
|
2603
|
+
readonly type: "event";
|
|
2604
|
+
readonly name: "Transfer";
|
|
2605
|
+
readonly inputs: readonly [{
|
|
2606
|
+
readonly indexed: true;
|
|
2607
|
+
readonly name: "from";
|
|
2608
|
+
readonly type: "address";
|
|
2609
|
+
}, {
|
|
2610
|
+
readonly indexed: true;
|
|
2611
|
+
readonly name: "to";
|
|
2612
|
+
readonly type: "address";
|
|
2613
|
+
}, {
|
|
2614
|
+
readonly indexed: false;
|
|
2615
|
+
readonly name: "value";
|
|
2616
|
+
readonly type: "uint256";
|
|
2617
|
+
}];
|
|
2618
|
+
}, {
|
|
2619
|
+
readonly type: "function";
|
|
2620
|
+
readonly name: "allowance";
|
|
2621
|
+
readonly stateMutability: "view";
|
|
2622
|
+
readonly inputs: readonly [{
|
|
2623
|
+
readonly name: "owner";
|
|
2624
|
+
readonly type: "address";
|
|
2625
|
+
}, {
|
|
2626
|
+
readonly name: "spender";
|
|
2627
|
+
readonly type: "address";
|
|
2628
|
+
}];
|
|
2629
|
+
readonly outputs: readonly [{
|
|
2630
|
+
readonly type: "uint256";
|
|
2631
|
+
}];
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly type: "function";
|
|
2634
|
+
readonly name: "approve";
|
|
2635
|
+
readonly stateMutability: "nonpayable";
|
|
2636
|
+
readonly inputs: readonly [{
|
|
2637
|
+
readonly name: "spender";
|
|
2638
|
+
readonly type: "address";
|
|
2639
|
+
}, {
|
|
2640
|
+
readonly name: "amount";
|
|
2641
|
+
readonly type: "uint256";
|
|
2642
|
+
}];
|
|
2643
|
+
readonly outputs: readonly [{
|
|
2644
|
+
readonly type: "bool";
|
|
2645
|
+
}];
|
|
2646
|
+
}, {
|
|
2647
|
+
readonly type: "function";
|
|
2648
|
+
readonly name: "balanceOf";
|
|
2649
|
+
readonly stateMutability: "view";
|
|
2650
|
+
readonly inputs: readonly [{
|
|
2651
|
+
readonly name: "account";
|
|
2652
|
+
readonly type: "address";
|
|
2653
|
+
}];
|
|
2654
|
+
readonly outputs: readonly [{
|
|
2655
|
+
readonly type: "uint256";
|
|
2656
|
+
}];
|
|
2657
|
+
}, {
|
|
2658
|
+
readonly type: "function";
|
|
2659
|
+
readonly name: "decimals";
|
|
2660
|
+
readonly stateMutability: "view";
|
|
2661
|
+
readonly inputs: readonly [];
|
|
2662
|
+
readonly outputs: readonly [{
|
|
2663
|
+
readonly type: "uint8";
|
|
2664
|
+
}];
|
|
2665
|
+
}, {
|
|
2666
|
+
readonly type: "function";
|
|
2667
|
+
readonly name: "name";
|
|
2668
|
+
readonly stateMutability: "view";
|
|
2669
|
+
readonly inputs: readonly [];
|
|
2670
|
+
readonly outputs: readonly [{
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
}];
|
|
2673
|
+
}, {
|
|
2674
|
+
readonly type: "function";
|
|
2675
|
+
readonly name: "symbol";
|
|
2676
|
+
readonly stateMutability: "view";
|
|
2677
|
+
readonly inputs: readonly [];
|
|
2678
|
+
readonly outputs: readonly [{
|
|
2679
|
+
readonly type: "string";
|
|
2680
|
+
}];
|
|
2681
|
+
}, {
|
|
2682
|
+
readonly type: "function";
|
|
2683
|
+
readonly name: "totalSupply";
|
|
2684
|
+
readonly stateMutability: "view";
|
|
2685
|
+
readonly inputs: readonly [];
|
|
2686
|
+
readonly outputs: readonly [{
|
|
2687
|
+
readonly type: "uint256";
|
|
2688
|
+
}];
|
|
2689
|
+
}, {
|
|
2690
|
+
readonly type: "function";
|
|
2691
|
+
readonly name: "transfer";
|
|
2692
|
+
readonly stateMutability: "nonpayable";
|
|
2693
|
+
readonly inputs: readonly [{
|
|
2694
|
+
readonly name: "recipient";
|
|
2695
|
+
readonly type: "address";
|
|
2696
|
+
}, {
|
|
2697
|
+
readonly name: "amount";
|
|
2698
|
+
readonly type: "uint256";
|
|
2699
|
+
}];
|
|
2700
|
+
readonly outputs: readonly [{
|
|
2701
|
+
readonly type: "bool";
|
|
2702
|
+
}];
|
|
2703
|
+
}, {
|
|
2704
|
+
readonly type: "function";
|
|
2705
|
+
readonly name: "transferFrom";
|
|
2706
|
+
readonly stateMutability: "nonpayable";
|
|
2707
|
+
readonly inputs: readonly [{
|
|
2708
|
+
readonly name: "sender";
|
|
2709
|
+
readonly type: "address";
|
|
2710
|
+
}, {
|
|
2711
|
+
readonly name: "recipient";
|
|
2712
|
+
readonly type: "address";
|
|
2713
|
+
}, {
|
|
2714
|
+
readonly name: "amount";
|
|
2715
|
+
readonly type: "uint256";
|
|
2716
|
+
}];
|
|
2717
|
+
readonly outputs: readonly [{
|
|
2718
|
+
readonly type: "bool";
|
|
2719
|
+
}];
|
|
2720
|
+
}], "approve">>;
|
|
2721
|
+
};
|
|
2722
|
+
transferSync: (parameters: import("node_modules/viem/_types/actions/token").transferSync.Parameters<{
|
|
2723
|
+
blockExplorers?: {
|
|
2724
|
+
[key: string]: {
|
|
2725
|
+
name: string;
|
|
2726
|
+
url: string;
|
|
2727
|
+
apiUrl?: string | undefined;
|
|
2728
|
+
};
|
|
2729
|
+
default: {
|
|
2730
|
+
name: string;
|
|
2731
|
+
url: string;
|
|
2732
|
+
apiUrl?: string | undefined;
|
|
2733
|
+
};
|
|
2734
|
+
} | undefined;
|
|
2735
|
+
blockTime?: number | undefined;
|
|
2736
|
+
contracts?: {
|
|
2737
|
+
[x: string]: import("viem").ChainContract | {
|
|
2738
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2739
|
+
} | undefined;
|
|
2740
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2741
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2742
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2743
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2744
|
+
} | undefined;
|
|
2745
|
+
ensTlds?: readonly string[] | undefined;
|
|
2746
|
+
id: number;
|
|
2747
|
+
name: string;
|
|
2748
|
+
nativeCurrency: {
|
|
2749
|
+
name: string;
|
|
2750
|
+
symbol: string;
|
|
2751
|
+
decimals: number;
|
|
2752
|
+
};
|
|
2753
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2754
|
+
rpcUrls: {
|
|
2755
|
+
[key: string]: {
|
|
2756
|
+
http: readonly string[];
|
|
2757
|
+
webSocket?: readonly string[] | undefined;
|
|
2758
|
+
};
|
|
2759
|
+
default: {
|
|
2760
|
+
http: readonly string[];
|
|
2761
|
+
webSocket?: readonly string[] | undefined;
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2764
|
+
sourceId?: number | undefined;
|
|
2765
|
+
testnet?: boolean | undefined;
|
|
2766
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<{
|
|
2767
|
+
from: `0x${string}`;
|
|
2768
|
+
to: `0x${string}`;
|
|
2769
|
+
value: bigint;
|
|
2770
|
+
decimals?: number | undefined;
|
|
2771
|
+
formatted?: string | undefined;
|
|
2772
|
+
receipt: import("viem").TransactionReceipt;
|
|
2773
|
+
}>;
|
|
2774
|
+
transfer: ((parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
2775
|
+
blockExplorers?: {
|
|
2776
|
+
[key: string]: {
|
|
2777
|
+
name: string;
|
|
2778
|
+
url: string;
|
|
2779
|
+
apiUrl?: string | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
default: {
|
|
2782
|
+
name: string;
|
|
2783
|
+
url: string;
|
|
2784
|
+
apiUrl?: string | undefined;
|
|
2785
|
+
};
|
|
2786
|
+
} | undefined;
|
|
2787
|
+
blockTime?: number | undefined;
|
|
2788
|
+
contracts?: {
|
|
2789
|
+
[x: string]: import("viem").ChainContract | {
|
|
2790
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2791
|
+
} | undefined;
|
|
2792
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2793
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2794
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2795
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2796
|
+
} | undefined;
|
|
2797
|
+
ensTlds?: readonly string[] | undefined;
|
|
2798
|
+
id: number;
|
|
2799
|
+
name: string;
|
|
2800
|
+
nativeCurrency: {
|
|
2801
|
+
name: string;
|
|
2802
|
+
symbol: string;
|
|
2803
|
+
decimals: number;
|
|
2804
|
+
};
|
|
2805
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2806
|
+
rpcUrls: {
|
|
2807
|
+
[key: string]: {
|
|
2808
|
+
http: readonly string[];
|
|
2809
|
+
webSocket?: readonly string[] | undefined;
|
|
2810
|
+
};
|
|
2811
|
+
default: {
|
|
2812
|
+
http: readonly string[];
|
|
2813
|
+
webSocket?: readonly string[] | undefined;
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2816
|
+
sourceId?: number | undefined;
|
|
2817
|
+
testnet?: boolean | undefined;
|
|
2818
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<`0x${string}`>) & {
|
|
2819
|
+
call: (args: import("node_modules/viem/_types/actions/token").transfer.Args<{
|
|
2820
|
+
blockExplorers?: {
|
|
2821
|
+
[key: string]: {
|
|
2822
|
+
name: string;
|
|
2823
|
+
url: string;
|
|
2824
|
+
apiUrl?: string | undefined;
|
|
2825
|
+
};
|
|
2826
|
+
default: {
|
|
2827
|
+
name: string;
|
|
2828
|
+
url: string;
|
|
2829
|
+
apiUrl?: string | undefined;
|
|
2830
|
+
};
|
|
2831
|
+
} | undefined;
|
|
2832
|
+
blockTime?: number | undefined;
|
|
2833
|
+
contracts?: {
|
|
2834
|
+
[x: string]: import("viem").ChainContract | {
|
|
2835
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2836
|
+
} | undefined;
|
|
2837
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2838
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2839
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2840
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2841
|
+
} | undefined;
|
|
2842
|
+
ensTlds?: readonly string[] | undefined;
|
|
2843
|
+
id: number;
|
|
2844
|
+
name: string;
|
|
2845
|
+
nativeCurrency: {
|
|
2846
|
+
name: string;
|
|
2847
|
+
symbol: string;
|
|
2848
|
+
decimals: number;
|
|
2849
|
+
};
|
|
2850
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2851
|
+
rpcUrls: {
|
|
2852
|
+
[key: string]: {
|
|
2853
|
+
http: readonly string[];
|
|
2854
|
+
webSocket?: readonly string[] | undefined;
|
|
2855
|
+
};
|
|
2856
|
+
default: {
|
|
2857
|
+
http: readonly string[];
|
|
2858
|
+
webSocket?: readonly string[] | undefined;
|
|
2859
|
+
};
|
|
2860
|
+
};
|
|
2861
|
+
sourceId?: number | undefined;
|
|
2862
|
+
testnet?: boolean | undefined;
|
|
2863
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Tokens | undefined>) => {
|
|
2864
|
+
abi: [{
|
|
2865
|
+
readonly type: "function";
|
|
2866
|
+
readonly name: "transfer";
|
|
2867
|
+
readonly stateMutability: "nonpayable";
|
|
2868
|
+
readonly inputs: readonly [{
|
|
2869
|
+
readonly name: "recipient";
|
|
2870
|
+
readonly type: "address";
|
|
2871
|
+
}, {
|
|
2872
|
+
readonly name: "amount";
|
|
2873
|
+
readonly type: "uint256";
|
|
2874
|
+
}];
|
|
2875
|
+
readonly outputs: readonly [{
|
|
2876
|
+
readonly type: "bool";
|
|
2877
|
+
}];
|
|
2878
|
+
} | {
|
|
2879
|
+
readonly type: "function";
|
|
2880
|
+
readonly name: "transferFrom";
|
|
2881
|
+
readonly stateMutability: "nonpayable";
|
|
2882
|
+
readonly inputs: readonly [{
|
|
2883
|
+
readonly name: "sender";
|
|
2884
|
+
readonly type: "address";
|
|
2885
|
+
}, {
|
|
2886
|
+
readonly name: "recipient";
|
|
2887
|
+
readonly type: "address";
|
|
2888
|
+
}, {
|
|
2889
|
+
readonly name: "amount";
|
|
2890
|
+
readonly type: "uint256";
|
|
2891
|
+
}];
|
|
2892
|
+
readonly outputs: readonly [{
|
|
2893
|
+
readonly type: "bool";
|
|
2894
|
+
}];
|
|
2895
|
+
}];
|
|
2896
|
+
functionName: "transfer" | "transferFrom";
|
|
2897
|
+
} & {
|
|
2898
|
+
args: readonly [recipient: `0x${string}`, amount: bigint] | readonly [sender: `0x${string}`, recipient: `0x${string}`, amount: bigint];
|
|
2899
|
+
} & {
|
|
2900
|
+
address: `0x${string}`;
|
|
2901
|
+
} & {
|
|
2902
|
+
data: `0x${string}`;
|
|
2903
|
+
to: `0x${string}`;
|
|
2904
|
+
};
|
|
2905
|
+
estimateGas: (parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
2906
|
+
blockExplorers?: {
|
|
2907
|
+
[key: string]: {
|
|
2908
|
+
name: string;
|
|
2909
|
+
url: string;
|
|
2910
|
+
apiUrl?: string | undefined;
|
|
2911
|
+
};
|
|
2912
|
+
default: {
|
|
2913
|
+
name: string;
|
|
2914
|
+
url: string;
|
|
2915
|
+
apiUrl?: string | undefined;
|
|
2916
|
+
};
|
|
2917
|
+
} | undefined;
|
|
2918
|
+
blockTime?: number | undefined;
|
|
2919
|
+
contracts?: {
|
|
2920
|
+
[x: string]: import("viem").ChainContract | {
|
|
2921
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2922
|
+
} | undefined;
|
|
2923
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2924
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2925
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2926
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2927
|
+
} | undefined;
|
|
2928
|
+
ensTlds?: readonly string[] | undefined;
|
|
2929
|
+
id: number;
|
|
2930
|
+
name: string;
|
|
2931
|
+
nativeCurrency: {
|
|
2932
|
+
name: string;
|
|
2933
|
+
symbol: string;
|
|
2934
|
+
decimals: number;
|
|
2935
|
+
};
|
|
2936
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2937
|
+
rpcUrls: {
|
|
2938
|
+
[key: string]: {
|
|
2939
|
+
http: readonly string[];
|
|
2940
|
+
webSocket?: readonly string[] | undefined;
|
|
2941
|
+
};
|
|
2942
|
+
default: {
|
|
2943
|
+
http: readonly string[];
|
|
2944
|
+
webSocket?: readonly string[] | undefined;
|
|
2945
|
+
};
|
|
2946
|
+
};
|
|
2947
|
+
sourceId?: number | undefined;
|
|
2948
|
+
testnet?: boolean | undefined;
|
|
2949
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<bigint>;
|
|
2950
|
+
extractEvent: typeof import("node_modules/viem/_types/actions/token").transfer.extractEvent;
|
|
2951
|
+
simulate: (parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
2952
|
+
blockExplorers?: {
|
|
2953
|
+
[key: string]: {
|
|
2954
|
+
name: string;
|
|
2955
|
+
url: string;
|
|
2956
|
+
apiUrl?: string | undefined;
|
|
2957
|
+
};
|
|
2958
|
+
default: {
|
|
2959
|
+
name: string;
|
|
2960
|
+
url: string;
|
|
2961
|
+
apiUrl?: string | undefined;
|
|
2962
|
+
};
|
|
2963
|
+
} | undefined;
|
|
2964
|
+
blockTime?: number | undefined;
|
|
2965
|
+
contracts?: {
|
|
2966
|
+
[x: string]: import("viem").ChainContract | {
|
|
2967
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2968
|
+
} | undefined;
|
|
2969
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2970
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2971
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2972
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2973
|
+
} | undefined;
|
|
2974
|
+
ensTlds?: readonly string[] | undefined;
|
|
2975
|
+
id: number;
|
|
2976
|
+
name: string;
|
|
2977
|
+
nativeCurrency: {
|
|
2978
|
+
name: string;
|
|
2979
|
+
symbol: string;
|
|
2980
|
+
decimals: number;
|
|
2981
|
+
};
|
|
2982
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2983
|
+
rpcUrls: {
|
|
2984
|
+
[key: string]: {
|
|
2985
|
+
http: readonly string[];
|
|
2986
|
+
webSocket?: readonly string[] | undefined;
|
|
2987
|
+
};
|
|
2988
|
+
default: {
|
|
2989
|
+
http: readonly string[];
|
|
2990
|
+
webSocket?: readonly string[] | undefined;
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
sourceId?: number | undefined;
|
|
2994
|
+
testnet?: boolean | undefined;
|
|
2995
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
2996
|
+
readonly type: "event";
|
|
2997
|
+
readonly name: "Approval";
|
|
2998
|
+
readonly inputs: readonly [{
|
|
2999
|
+
readonly indexed: true;
|
|
3000
|
+
readonly name: "owner";
|
|
3001
|
+
readonly type: "address";
|
|
3002
|
+
}, {
|
|
3003
|
+
readonly indexed: true;
|
|
3004
|
+
readonly name: "spender";
|
|
3005
|
+
readonly type: "address";
|
|
3006
|
+
}, {
|
|
3007
|
+
readonly indexed: false;
|
|
3008
|
+
readonly name: "value";
|
|
3009
|
+
readonly type: "uint256";
|
|
3010
|
+
}];
|
|
3011
|
+
}, {
|
|
3012
|
+
readonly type: "event";
|
|
3013
|
+
readonly name: "Transfer";
|
|
3014
|
+
readonly inputs: readonly [{
|
|
3015
|
+
readonly indexed: true;
|
|
3016
|
+
readonly name: "from";
|
|
3017
|
+
readonly type: "address";
|
|
3018
|
+
}, {
|
|
3019
|
+
readonly indexed: true;
|
|
3020
|
+
readonly name: "to";
|
|
3021
|
+
readonly type: "address";
|
|
3022
|
+
}, {
|
|
3023
|
+
readonly indexed: false;
|
|
3024
|
+
readonly name: "value";
|
|
3025
|
+
readonly type: "uint256";
|
|
3026
|
+
}];
|
|
3027
|
+
}, {
|
|
3028
|
+
readonly type: "function";
|
|
3029
|
+
readonly name: "allowance";
|
|
3030
|
+
readonly stateMutability: "view";
|
|
3031
|
+
readonly inputs: readonly [{
|
|
3032
|
+
readonly name: "owner";
|
|
3033
|
+
readonly type: "address";
|
|
3034
|
+
}, {
|
|
3035
|
+
readonly name: "spender";
|
|
3036
|
+
readonly type: "address";
|
|
3037
|
+
}];
|
|
3038
|
+
readonly outputs: readonly [{
|
|
3039
|
+
readonly type: "uint256";
|
|
3040
|
+
}];
|
|
3041
|
+
}, {
|
|
3042
|
+
readonly type: "function";
|
|
3043
|
+
readonly name: "approve";
|
|
3044
|
+
readonly stateMutability: "nonpayable";
|
|
3045
|
+
readonly inputs: readonly [{
|
|
3046
|
+
readonly name: "spender";
|
|
3047
|
+
readonly type: "address";
|
|
3048
|
+
}, {
|
|
3049
|
+
readonly name: "amount";
|
|
3050
|
+
readonly type: "uint256";
|
|
3051
|
+
}];
|
|
3052
|
+
readonly outputs: readonly [{
|
|
3053
|
+
readonly type: "bool";
|
|
3054
|
+
}];
|
|
3055
|
+
}, {
|
|
3056
|
+
readonly type: "function";
|
|
3057
|
+
readonly name: "balanceOf";
|
|
3058
|
+
readonly stateMutability: "view";
|
|
3059
|
+
readonly inputs: readonly [{
|
|
3060
|
+
readonly name: "account";
|
|
3061
|
+
readonly type: "address";
|
|
3062
|
+
}];
|
|
3063
|
+
readonly outputs: readonly [{
|
|
3064
|
+
readonly type: "uint256";
|
|
3065
|
+
}];
|
|
3066
|
+
}, {
|
|
3067
|
+
readonly type: "function";
|
|
3068
|
+
readonly name: "decimals";
|
|
3069
|
+
readonly stateMutability: "view";
|
|
3070
|
+
readonly inputs: readonly [];
|
|
3071
|
+
readonly outputs: readonly [{
|
|
3072
|
+
readonly type: "uint8";
|
|
3073
|
+
}];
|
|
3074
|
+
}, {
|
|
3075
|
+
readonly type: "function";
|
|
3076
|
+
readonly name: "name";
|
|
3077
|
+
readonly stateMutability: "view";
|
|
3078
|
+
readonly inputs: readonly [];
|
|
3079
|
+
readonly outputs: readonly [{
|
|
3080
|
+
readonly type: "string";
|
|
3081
|
+
}];
|
|
3082
|
+
}, {
|
|
3083
|
+
readonly type: "function";
|
|
3084
|
+
readonly name: "symbol";
|
|
3085
|
+
readonly stateMutability: "view";
|
|
3086
|
+
readonly inputs: readonly [];
|
|
3087
|
+
readonly outputs: readonly [{
|
|
3088
|
+
readonly type: "string";
|
|
3089
|
+
}];
|
|
3090
|
+
}, {
|
|
3091
|
+
readonly type: "function";
|
|
3092
|
+
readonly name: "totalSupply";
|
|
3093
|
+
readonly stateMutability: "view";
|
|
3094
|
+
readonly inputs: readonly [];
|
|
3095
|
+
readonly outputs: readonly [{
|
|
3096
|
+
readonly type: "uint256";
|
|
3097
|
+
}];
|
|
3098
|
+
}, {
|
|
3099
|
+
readonly type: "function";
|
|
3100
|
+
readonly name: "transfer";
|
|
3101
|
+
readonly stateMutability: "nonpayable";
|
|
3102
|
+
readonly inputs: readonly [{
|
|
3103
|
+
readonly name: "recipient";
|
|
3104
|
+
readonly type: "address";
|
|
3105
|
+
}, {
|
|
3106
|
+
readonly name: "amount";
|
|
3107
|
+
readonly type: "uint256";
|
|
3108
|
+
}];
|
|
3109
|
+
readonly outputs: readonly [{
|
|
3110
|
+
readonly type: "bool";
|
|
3111
|
+
}];
|
|
3112
|
+
}, {
|
|
3113
|
+
readonly type: "function";
|
|
3114
|
+
readonly name: "transferFrom";
|
|
3115
|
+
readonly stateMutability: "nonpayable";
|
|
3116
|
+
readonly inputs: readonly [{
|
|
3117
|
+
readonly name: "sender";
|
|
3118
|
+
readonly type: "address";
|
|
3119
|
+
}, {
|
|
3120
|
+
readonly name: "recipient";
|
|
3121
|
+
readonly type: "address";
|
|
3122
|
+
}, {
|
|
3123
|
+
readonly name: "amount";
|
|
3124
|
+
readonly type: "uint256";
|
|
3125
|
+
}];
|
|
3126
|
+
readonly outputs: readonly [{
|
|
3127
|
+
readonly type: "bool";
|
|
3128
|
+
}];
|
|
3129
|
+
}], "transfer" | "transferFrom">>;
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
2321
3132
|
extend: <const client extends {
|
|
2322
3133
|
[x: string]: unknown;
|
|
2323
3134
|
account?: undefined;
|
|
@@ -2331,6 +3142,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2331
3142
|
name?: undefined;
|
|
2332
3143
|
pollingInterval?: undefined;
|
|
2333
3144
|
request?: undefined;
|
|
3145
|
+
tokens?: undefined;
|
|
2334
3146
|
transport?: undefined;
|
|
2335
3147
|
type?: undefined;
|
|
2336
3148
|
uid?: undefined;
|
|
@@ -2378,7 +3190,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2378
3190
|
};
|
|
2379
3191
|
sourceId?: number | undefined;
|
|
2380
3192
|
testnet?: boolean | undefined;
|
|
2381
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<{
|
|
3193
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<{
|
|
2382
3194
|
blockExplorers?: {
|
|
2383
3195
|
[key: string]: {
|
|
2384
3196
|
name: string;
|
|
@@ -2422,7 +3234,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2422
3234
|
};
|
|
2423
3235
|
sourceId?: number | undefined;
|
|
2424
3236
|
testnet?: boolean | undefined;
|
|
2425
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").HttpTransport<undefined, false>, {
|
|
3237
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account, import("viem").Tokens | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").HttpTransport<undefined, false>, {
|
|
2426
3238
|
blockExplorers?: {
|
|
2427
3239
|
[key: string]: {
|
|
2428
3240
|
name: string;
|
|
@@ -2503,6 +3315,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2503
3315
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
2504
3316
|
ReturnType: {
|
|
2505
3317
|
accessList: import("viem").AccessList;
|
|
3318
|
+
error?: string | undefined;
|
|
2506
3319
|
gasUsed: `0x${string}`;
|
|
2507
3320
|
};
|
|
2508
3321
|
}, {
|
|
@@ -2521,6 +3334,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2521
3334
|
Method: "eth_fillTransaction";
|
|
2522
3335
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
2523
3336
|
ReturnType: {
|
|
3337
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
2524
3338
|
raw: `0x${string}`;
|
|
2525
3339
|
tx: import("viem").RpcTransaction;
|
|
2526
3340
|
};
|
|
@@ -2544,6 +3358,10 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2544
3358
|
Method: "eth_getBlockByNumber";
|
|
2545
3359
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
2546
3360
|
ReturnType: import("viem").RpcBlock | null;
|
|
3361
|
+
}, {
|
|
3362
|
+
Method: "eth_getBlockReceipts";
|
|
3363
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
3364
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
2547
3365
|
}, {
|
|
2548
3366
|
Method: "eth_getBlockTransactionCountByHash";
|
|
2549
3367
|
Parameters: [hash: `0x${string}`];
|
|
@@ -2581,7 +3399,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2581
3399
|
ReturnType: import("viem").RpcLog[];
|
|
2582
3400
|
}, {
|
|
2583
3401
|
Method: "eth_getProof";
|
|
2584
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
3402
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
2585
3403
|
ReturnType: import("viem").RpcProof;
|
|
2586
3404
|
}, {
|
|
2587
3405
|
Method: "eth_getStorageAt";
|
|
@@ -2705,6 +3523,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2705
3523
|
Method: "eth_fillTransaction";
|
|
2706
3524
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
2707
3525
|
ReturnType: {
|
|
3526
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
2708
3527
|
raw: `0x${string}`;
|
|
2709
3528
|
tx: import("viem").RpcTransaction;
|
|
2710
3529
|
};
|
|
@@ -2921,7 +3740,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
2921
3740
|
};
|
|
2922
3741
|
sourceId?: number | undefined;
|
|
2923
3742
|
testnet?: boolean | undefined;
|
|
2924
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account
|
|
3743
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account>, import("viem").Tokens | undefined>) => client) => import("viem").Client<import("viem").HttpTransport<undefined, false>, {
|
|
2925
3744
|
blockExplorers?: {
|
|
2926
3745
|
[key: string]: {
|
|
2927
3746
|
name: string;
|
|
@@ -3002,6 +3821,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3002
3821
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3003
3822
|
ReturnType: {
|
|
3004
3823
|
accessList: import("viem").AccessList;
|
|
3824
|
+
error?: string | undefined;
|
|
3005
3825
|
gasUsed: `0x${string}`;
|
|
3006
3826
|
};
|
|
3007
3827
|
}, {
|
|
@@ -3020,6 +3840,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3020
3840
|
Method: "eth_fillTransaction";
|
|
3021
3841
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3022
3842
|
ReturnType: {
|
|
3843
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3023
3844
|
raw: `0x${string}`;
|
|
3024
3845
|
tx: import("viem").RpcTransaction;
|
|
3025
3846
|
};
|
|
@@ -3043,6 +3864,10 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3043
3864
|
Method: "eth_getBlockByNumber";
|
|
3044
3865
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
3045
3866
|
ReturnType: import("viem").RpcBlock | null;
|
|
3867
|
+
}, {
|
|
3868
|
+
Method: "eth_getBlockReceipts";
|
|
3869
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
3870
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
3046
3871
|
}, {
|
|
3047
3872
|
Method: "eth_getBlockTransactionCountByHash";
|
|
3048
3873
|
Parameters: [hash: `0x${string}`];
|
|
@@ -3080,7 +3905,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3080
3905
|
ReturnType: import("viem").RpcLog[];
|
|
3081
3906
|
}, {
|
|
3082
3907
|
Method: "eth_getProof";
|
|
3083
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
3908
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3084
3909
|
ReturnType: import("viem").RpcProof;
|
|
3085
3910
|
}, {
|
|
3086
3911
|
Method: "eth_getStorageAt";
|
|
@@ -3204,6 +4029,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3204
4029
|
Method: "eth_fillTransaction";
|
|
3205
4030
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3206
4031
|
ReturnType: {
|
|
4032
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3207
4033
|
raw: `0x${string}`;
|
|
3208
4034
|
tx: import("viem").RpcTransaction;
|
|
3209
4035
|
};
|
|
@@ -3420,7 +4246,7 @@ export declare const createSessionClient: ({ smartAccountAddress, sessionKeyVali
|
|
|
3420
4246
|
};
|
|
3421
4247
|
sourceId?: number | undefined;
|
|
3422
4248
|
testnet?: boolean | undefined;
|
|
3423
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account
|
|
4249
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account>, import("viem").Tokens | undefined>;
|
|
3424
4250
|
sessionKey: `0x${string}`;
|
|
3425
4251
|
sessionConfig: SessionConfig;
|
|
3426
4252
|
contracts: import("zksync-sso/client").SessionRequiredContracts;
|