@dynamic-labs/global-wallet-client 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/lib/functions/createZksyncSessionClient/createZksyncSessionClient.d.ts +856 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.104.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.103.0...v4.104.0) (2026-11-03)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **sdk-react-core:** offer passkey recovery when export fails in upgrade flow [v4] ([#12641](https://github.com/dynamic-labs/dynamic-auth/issues/12641)) ([916829f](https://github.com/dynamic-labs/dynamic-auth/commit/916829f1eaf9f6cae7d8c0b5069512fceafa15a4))
|
|
8
|
+
* **webview:** forward policiesConsentLabels manifest field to SDK settings [v4] ([#12608](https://github.com/dynamic-labs/dynamic-auth/issues/12608)) ([b9ef167](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef1676576eea8452c7149308492aea578b6c91))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **iconic:** add Zerion wallet icon [v4] ([#12651](https://github.com/dynamic-labs/dynamic-auth/issues/12651)) ([f5257ee](https://github.com/dynamic-labs/dynamic-auth/commit/f5257ee28fc7e8d46657957f59c13503e7eccce8))
|
|
14
|
+
* **react-native:** serialize WalletConnect native storage values as JSON strings ([#12682](https://github.com/dynamic-labs/dynamic-auth/issues/12682)) ([df2795a](https://github.com/dynamic-labs/dynamic-auth/commit/df2795aa432a94e429859082468b89705226dc70))
|
|
15
|
+
* **sdk-react-core:** default wallet return redirectUrl to current page [v4] ([#12660](https://github.com/dynamic-labs/dynamic-auth/issues/12660)) ([29b8f38](https://github.com/dynamic-labs/dynamic-auth/commit/29b8f380858ef65c52187aeb50123a287eb7b4ec))
|
|
16
|
+
* **waas-svm:** keep the blockhash of a transaction another key already signed ([#12678](https://github.com/dynamic-labs/dynamic-auth/issues/12678)) ([549553c](https://github.com/dynamic-labs/dynamic-auth/commit/549553c1275b3cc3995e183966a32a5f6ae63534)), closes [#12676](https://github.com/dynamic-labs/dynamic-auth/issues/12676)
|
|
17
|
+
|
|
2
18
|
## [4.103.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.102.0...v4.103.0) (2026-10-27)
|
|
3
19
|
|
|
4
20
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/global-wallet-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.104.0",
|
|
4
4
|
"description": "Core package for building Dynamic's Global Wallet",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,17 +71,17 @@
|
|
|
71
71
|
},
|
|
72
72
|
"homepage": "https://www.dynamic.xyz/",
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
75
|
-
"@dynamic-labs/ethereum-aa-zksync": "4.
|
|
76
|
-
"@dynamic-labs/logger": "4.
|
|
77
|
-
"@dynamic-labs/message-transport": "4.
|
|
78
|
-
"@dynamic-labs/store": "4.
|
|
79
|
-
"@dynamic-labs/types": "4.
|
|
80
|
-
"@dynamic-labs/utils": "4.
|
|
74
|
+
"@dynamic-labs/assert-package-version": "4.104.0",
|
|
75
|
+
"@dynamic-labs/ethereum-aa-zksync": "4.104.0",
|
|
76
|
+
"@dynamic-labs/logger": "4.104.0",
|
|
77
|
+
"@dynamic-labs/message-transport": "4.104.0",
|
|
78
|
+
"@dynamic-labs/store": "4.104.0",
|
|
79
|
+
"@dynamic-labs/types": "4.104.0",
|
|
80
|
+
"@dynamic-labs/utils": "4.104.0",
|
|
81
81
|
"eventemitter3": "5.0.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"viem": "^2.
|
|
84
|
+
"viem": "^2.54.2",
|
|
85
85
|
"@solana/web3.js": "1.98.1",
|
|
86
86
|
"@solana/wallet-standard-features": "^1.2.0",
|
|
87
87
|
"@wallet-standard/features": "^1.0.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"zksync-sso": "0.2.0",
|
|
90
90
|
"@wallet-standard/wallet": "^1.1.0",
|
|
91
91
|
"@zerodev/sdk": "5.5.7",
|
|
92
|
-
"@dynamic-labs/ethereum-aa": "4.
|
|
92
|
+
"@dynamic-labs/ethereum-aa": "4.104.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"viem": {
|
|
@@ -105,6 +105,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
105
105
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
106
106
|
ReturnType: {
|
|
107
107
|
accessList: import("viem").AccessList;
|
|
108
|
+
error?: string | undefined;
|
|
108
109
|
gasUsed: `0x${string}`;
|
|
109
110
|
};
|
|
110
111
|
}, {
|
|
@@ -123,6 +124,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
123
124
|
Method: "eth_fillTransaction";
|
|
124
125
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
125
126
|
ReturnType: {
|
|
127
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
126
128
|
raw: `0x${string}`;
|
|
127
129
|
tx: import("viem").RpcTransaction<boolean>;
|
|
128
130
|
};
|
|
@@ -146,6 +148,10 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
146
148
|
Method: "eth_getBlockByNumber";
|
|
147
149
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
148
150
|
ReturnType: import("viem").RpcBlock<import("viem").BlockTag, boolean, import("viem").RpcTransaction<boolean>> | null;
|
|
151
|
+
}, {
|
|
152
|
+
Method: "eth_getBlockReceipts";
|
|
153
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
154
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
149
155
|
}, {
|
|
150
156
|
Method: "eth_getBlockTransactionCountByHash";
|
|
151
157
|
Parameters: [hash: `0x${string}`];
|
|
@@ -183,7 +189,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
183
189
|
ReturnType: import("viem").RpcLog[];
|
|
184
190
|
}, {
|
|
185
191
|
Method: "eth_getProof";
|
|
186
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
192
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
187
193
|
ReturnType: import("viem").RpcProof;
|
|
188
194
|
}, {
|
|
189
195
|
Method: "eth_getStorageAt";
|
|
@@ -307,6 +313,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
307
313
|
Method: "eth_fillTransaction";
|
|
308
314
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
309
315
|
ReturnType: {
|
|
316
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
310
317
|
raw: `0x${string}`;
|
|
311
318
|
tx: import("viem").RpcTransaction<boolean>;
|
|
312
319
|
};
|
|
@@ -488,6 +495,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
488
495
|
Parameters: import("viem").WatchAssetParams;
|
|
489
496
|
ReturnType: boolean;
|
|
490
497
|
}], false>;
|
|
498
|
+
tokens: import("viem").Tokens | undefined;
|
|
491
499
|
transport: import("viem").TransportConfig<"http", import("viem").EIP1193RequestFn<undefined, false>> & {
|
|
492
500
|
fetchOptions?: Omit<RequestInit, "body"> | undefined;
|
|
493
501
|
url?: string | undefined;
|
|
@@ -2744,7 +2752,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2744
2752
|
statusCode: number;
|
|
2745
2753
|
status: "pending" | "success" | "failure" | undefined;
|
|
2746
2754
|
}>;
|
|
2747
|
-
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "
|
|
2755
|
+
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<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined> | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, {
|
|
2748
2756
|
blockExplorers?: {
|
|
2749
2757
|
[key: string]: {
|
|
2750
2758
|
name: string;
|
|
@@ -2788,7 +2796,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2788
2796
|
};
|
|
2789
2797
|
sourceId?: number | undefined;
|
|
2790
2798
|
testnet?: boolean | undefined;
|
|
2791
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, chainOverride_7, import("viem").ContractFunctionName<abi_1, "
|
|
2799
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, chainOverride_7, import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, import("viem").DeriveChain<{
|
|
2792
2800
|
blockExplorers?: {
|
|
2793
2801
|
[key: string]: {
|
|
2794
2802
|
name: string;
|
|
@@ -2833,7 +2841,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2833
2841
|
sourceId?: number | undefined;
|
|
2834
2842
|
testnet?: boolean | undefined;
|
|
2835
2843
|
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, chainOverride_7>>) => Promise<`0x${string}`>;
|
|
2836
|
-
writeContractSync: <const abi_2 extends import("viem").Abi | readonly unknown[], functionName_1 extends import("viem").ContractFunctionName<abi_2, "
|
|
2844
|
+
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<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined> | undefined = undefined>(args: import("viem").WriteContractSyncParameters<abi_2, functionName_1, args_1, {
|
|
2837
2845
|
blockExplorers?: {
|
|
2838
2846
|
[key: string]: {
|
|
2839
2847
|
name: string;
|
|
@@ -2878,6 +2886,829 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2878
2886
|
sourceId?: number | undefined;
|
|
2879
2887
|
testnet?: boolean | undefined;
|
|
2880
2888
|
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, chainOverride_8>) => Promise<import("viem").TransactionReceipt<bigint, number, "success" | "reverted", import("viem").TransactionType>>;
|
|
2889
|
+
token: {
|
|
2890
|
+
approveSync: (parameters: import("node_modules/viem/_types/actions/token").approveSync.Parameters<{
|
|
2891
|
+
blockExplorers?: {
|
|
2892
|
+
[key: string]: {
|
|
2893
|
+
name: string;
|
|
2894
|
+
url: string;
|
|
2895
|
+
apiUrl?: string | undefined;
|
|
2896
|
+
};
|
|
2897
|
+
default: {
|
|
2898
|
+
name: string;
|
|
2899
|
+
url: string;
|
|
2900
|
+
apiUrl?: string | undefined;
|
|
2901
|
+
};
|
|
2902
|
+
} | undefined;
|
|
2903
|
+
blockTime?: number | undefined;
|
|
2904
|
+
contracts?: {
|
|
2905
|
+
[x: string]: import("viem").ChainContract | {
|
|
2906
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2907
|
+
} | undefined;
|
|
2908
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2909
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2910
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2911
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2912
|
+
} | undefined;
|
|
2913
|
+
ensTlds?: readonly string[] | undefined;
|
|
2914
|
+
id: number;
|
|
2915
|
+
name: string;
|
|
2916
|
+
nativeCurrency: {
|
|
2917
|
+
name: string;
|
|
2918
|
+
symbol: string;
|
|
2919
|
+
decimals: number;
|
|
2920
|
+
};
|
|
2921
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2922
|
+
rpcUrls: {
|
|
2923
|
+
[key: string]: {
|
|
2924
|
+
http: readonly string[];
|
|
2925
|
+
webSocket?: readonly string[] | undefined;
|
|
2926
|
+
};
|
|
2927
|
+
default: {
|
|
2928
|
+
http: readonly string[];
|
|
2929
|
+
webSocket?: readonly string[] | undefined;
|
|
2930
|
+
};
|
|
2931
|
+
};
|
|
2932
|
+
sourceId?: number | undefined;
|
|
2933
|
+
testnet?: boolean | undefined;
|
|
2934
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<{
|
|
2935
|
+
owner: `0x${string}`;
|
|
2936
|
+
spender: `0x${string}`;
|
|
2937
|
+
value: bigint;
|
|
2938
|
+
decimals?: number | undefined;
|
|
2939
|
+
formatted?: string | undefined;
|
|
2940
|
+
receipt: import("viem").TransactionReceipt<bigint, number, "success" | "reverted", import("viem").TransactionType>;
|
|
2941
|
+
}>;
|
|
2942
|
+
approve: ((parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
2943
|
+
blockExplorers?: {
|
|
2944
|
+
[key: string]: {
|
|
2945
|
+
name: string;
|
|
2946
|
+
url: string;
|
|
2947
|
+
apiUrl?: string | undefined;
|
|
2948
|
+
};
|
|
2949
|
+
default: {
|
|
2950
|
+
name: string;
|
|
2951
|
+
url: string;
|
|
2952
|
+
apiUrl?: string | undefined;
|
|
2953
|
+
};
|
|
2954
|
+
} | undefined;
|
|
2955
|
+
blockTime?: number | undefined;
|
|
2956
|
+
contracts?: {
|
|
2957
|
+
[x: string]: import("viem").ChainContract | {
|
|
2958
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
2959
|
+
} | undefined;
|
|
2960
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
2961
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
2962
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
2963
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
2964
|
+
} | undefined;
|
|
2965
|
+
ensTlds?: readonly string[] | undefined;
|
|
2966
|
+
id: number;
|
|
2967
|
+
name: string;
|
|
2968
|
+
nativeCurrency: {
|
|
2969
|
+
name: string;
|
|
2970
|
+
symbol: string;
|
|
2971
|
+
decimals: number;
|
|
2972
|
+
};
|
|
2973
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
2974
|
+
rpcUrls: {
|
|
2975
|
+
[key: string]: {
|
|
2976
|
+
http: readonly string[];
|
|
2977
|
+
webSocket?: readonly string[] | undefined;
|
|
2978
|
+
};
|
|
2979
|
+
default: {
|
|
2980
|
+
http: readonly string[];
|
|
2981
|
+
webSocket?: readonly string[] | undefined;
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
sourceId?: number | undefined;
|
|
2985
|
+
testnet?: boolean | undefined;
|
|
2986
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<`0x${string}`>) & {
|
|
2987
|
+
call: (args: import("node_modules/viem/_types/actions/token").approve.Args<{
|
|
2988
|
+
blockExplorers?: {
|
|
2989
|
+
[key: string]: {
|
|
2990
|
+
name: string;
|
|
2991
|
+
url: string;
|
|
2992
|
+
apiUrl?: string | undefined;
|
|
2993
|
+
};
|
|
2994
|
+
default: {
|
|
2995
|
+
name: string;
|
|
2996
|
+
url: string;
|
|
2997
|
+
apiUrl?: string | undefined;
|
|
2998
|
+
};
|
|
2999
|
+
} | undefined;
|
|
3000
|
+
blockTime?: number | undefined;
|
|
3001
|
+
contracts?: {
|
|
3002
|
+
[x: string]: import("viem").ChainContract | {
|
|
3003
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3004
|
+
} | undefined;
|
|
3005
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3006
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3007
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3008
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3009
|
+
} | undefined;
|
|
3010
|
+
ensTlds?: readonly string[] | undefined;
|
|
3011
|
+
id: number;
|
|
3012
|
+
name: string;
|
|
3013
|
+
nativeCurrency: {
|
|
3014
|
+
name: string;
|
|
3015
|
+
symbol: string;
|
|
3016
|
+
decimals: number;
|
|
3017
|
+
};
|
|
3018
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3019
|
+
rpcUrls: {
|
|
3020
|
+
[key: string]: {
|
|
3021
|
+
http: readonly string[];
|
|
3022
|
+
webSocket?: readonly string[] | undefined;
|
|
3023
|
+
};
|
|
3024
|
+
default: {
|
|
3025
|
+
http: readonly string[];
|
|
3026
|
+
webSocket?: readonly string[] | undefined;
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
sourceId?: number | undefined;
|
|
3030
|
+
testnet?: boolean | undefined;
|
|
3031
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Tokens | undefined>) => {
|
|
3032
|
+
abi: [{
|
|
3033
|
+
readonly type: "function";
|
|
3034
|
+
readonly name: "approve";
|
|
3035
|
+
readonly stateMutability: "nonpayable";
|
|
3036
|
+
readonly inputs: readonly [{
|
|
3037
|
+
readonly name: "spender";
|
|
3038
|
+
readonly type: "address";
|
|
3039
|
+
}, {
|
|
3040
|
+
readonly name: "amount";
|
|
3041
|
+
readonly type: "uint256";
|
|
3042
|
+
}];
|
|
3043
|
+
readonly outputs: readonly [{
|
|
3044
|
+
readonly type: "bool";
|
|
3045
|
+
}];
|
|
3046
|
+
}];
|
|
3047
|
+
functionName: "approve";
|
|
3048
|
+
} & {
|
|
3049
|
+
args: readonly [spender: `0x${string}`, amount: bigint];
|
|
3050
|
+
} & {
|
|
3051
|
+
address: `0x${string}`;
|
|
3052
|
+
} & {
|
|
3053
|
+
data: `0x${string}`;
|
|
3054
|
+
to: `0x${string}`;
|
|
3055
|
+
};
|
|
3056
|
+
estimateGas: (parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
3057
|
+
blockExplorers?: {
|
|
3058
|
+
[key: string]: {
|
|
3059
|
+
name: string;
|
|
3060
|
+
url: string;
|
|
3061
|
+
apiUrl?: string | undefined;
|
|
3062
|
+
};
|
|
3063
|
+
default: {
|
|
3064
|
+
name: string;
|
|
3065
|
+
url: string;
|
|
3066
|
+
apiUrl?: string | undefined;
|
|
3067
|
+
};
|
|
3068
|
+
} | undefined;
|
|
3069
|
+
blockTime?: number | undefined;
|
|
3070
|
+
contracts?: {
|
|
3071
|
+
[x: string]: import("viem").ChainContract | {
|
|
3072
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3073
|
+
} | undefined;
|
|
3074
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3075
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3076
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3077
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3078
|
+
} | undefined;
|
|
3079
|
+
ensTlds?: readonly string[] | undefined;
|
|
3080
|
+
id: number;
|
|
3081
|
+
name: string;
|
|
3082
|
+
nativeCurrency: {
|
|
3083
|
+
name: string;
|
|
3084
|
+
symbol: string;
|
|
3085
|
+
decimals: number;
|
|
3086
|
+
};
|
|
3087
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3088
|
+
rpcUrls: {
|
|
3089
|
+
[key: string]: {
|
|
3090
|
+
http: readonly string[];
|
|
3091
|
+
webSocket?: readonly string[] | undefined;
|
|
3092
|
+
};
|
|
3093
|
+
default: {
|
|
3094
|
+
http: readonly string[];
|
|
3095
|
+
webSocket?: readonly string[] | undefined;
|
|
3096
|
+
};
|
|
3097
|
+
};
|
|
3098
|
+
sourceId?: number | undefined;
|
|
3099
|
+
testnet?: boolean | undefined;
|
|
3100
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<bigint>;
|
|
3101
|
+
extractEvent: typeof import("node_modules/viem/_types/actions/token").approve.extractEvent;
|
|
3102
|
+
simulate: (parameters: import("node_modules/viem/_types/actions/token").approve.Parameters<{
|
|
3103
|
+
blockExplorers?: {
|
|
3104
|
+
[key: string]: {
|
|
3105
|
+
name: string;
|
|
3106
|
+
url: string;
|
|
3107
|
+
apiUrl?: string | undefined;
|
|
3108
|
+
};
|
|
3109
|
+
default: {
|
|
3110
|
+
name: string;
|
|
3111
|
+
url: string;
|
|
3112
|
+
apiUrl?: string | undefined;
|
|
3113
|
+
};
|
|
3114
|
+
} | undefined;
|
|
3115
|
+
blockTime?: number | undefined;
|
|
3116
|
+
contracts?: {
|
|
3117
|
+
[x: string]: import("viem").ChainContract | {
|
|
3118
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3119
|
+
} | undefined;
|
|
3120
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3121
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3122
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3123
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3124
|
+
} | undefined;
|
|
3125
|
+
ensTlds?: readonly string[] | undefined;
|
|
3126
|
+
id: number;
|
|
3127
|
+
name: string;
|
|
3128
|
+
nativeCurrency: {
|
|
3129
|
+
name: string;
|
|
3130
|
+
symbol: string;
|
|
3131
|
+
decimals: number;
|
|
3132
|
+
};
|
|
3133
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3134
|
+
rpcUrls: {
|
|
3135
|
+
[key: string]: {
|
|
3136
|
+
http: readonly string[];
|
|
3137
|
+
webSocket?: readonly string[] | undefined;
|
|
3138
|
+
};
|
|
3139
|
+
default: {
|
|
3140
|
+
http: readonly string[];
|
|
3141
|
+
webSocket?: readonly string[] | undefined;
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
sourceId?: number | undefined;
|
|
3145
|
+
testnet?: boolean | undefined;
|
|
3146
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
3147
|
+
readonly type: "event";
|
|
3148
|
+
readonly name: "Approval";
|
|
3149
|
+
readonly inputs: readonly [{
|
|
3150
|
+
readonly indexed: true;
|
|
3151
|
+
readonly name: "owner";
|
|
3152
|
+
readonly type: "address";
|
|
3153
|
+
}, {
|
|
3154
|
+
readonly indexed: true;
|
|
3155
|
+
readonly name: "spender";
|
|
3156
|
+
readonly type: "address";
|
|
3157
|
+
}, {
|
|
3158
|
+
readonly indexed: false;
|
|
3159
|
+
readonly name: "value";
|
|
3160
|
+
readonly type: "uint256";
|
|
3161
|
+
}];
|
|
3162
|
+
}, {
|
|
3163
|
+
readonly type: "event";
|
|
3164
|
+
readonly name: "Transfer";
|
|
3165
|
+
readonly inputs: readonly [{
|
|
3166
|
+
readonly indexed: true;
|
|
3167
|
+
readonly name: "from";
|
|
3168
|
+
readonly type: "address";
|
|
3169
|
+
}, {
|
|
3170
|
+
readonly indexed: true;
|
|
3171
|
+
readonly name: "to";
|
|
3172
|
+
readonly type: "address";
|
|
3173
|
+
}, {
|
|
3174
|
+
readonly indexed: false;
|
|
3175
|
+
readonly name: "value";
|
|
3176
|
+
readonly type: "uint256";
|
|
3177
|
+
}];
|
|
3178
|
+
}, {
|
|
3179
|
+
readonly type: "function";
|
|
3180
|
+
readonly name: "allowance";
|
|
3181
|
+
readonly stateMutability: "view";
|
|
3182
|
+
readonly inputs: readonly [{
|
|
3183
|
+
readonly name: "owner";
|
|
3184
|
+
readonly type: "address";
|
|
3185
|
+
}, {
|
|
3186
|
+
readonly name: "spender";
|
|
3187
|
+
readonly type: "address";
|
|
3188
|
+
}];
|
|
3189
|
+
readonly outputs: readonly [{
|
|
3190
|
+
readonly type: "uint256";
|
|
3191
|
+
}];
|
|
3192
|
+
}, {
|
|
3193
|
+
readonly type: "function";
|
|
3194
|
+
readonly name: "approve";
|
|
3195
|
+
readonly stateMutability: "nonpayable";
|
|
3196
|
+
readonly inputs: readonly [{
|
|
3197
|
+
readonly name: "spender";
|
|
3198
|
+
readonly type: "address";
|
|
3199
|
+
}, {
|
|
3200
|
+
readonly name: "amount";
|
|
3201
|
+
readonly type: "uint256";
|
|
3202
|
+
}];
|
|
3203
|
+
readonly outputs: readonly [{
|
|
3204
|
+
readonly type: "bool";
|
|
3205
|
+
}];
|
|
3206
|
+
}, {
|
|
3207
|
+
readonly type: "function";
|
|
3208
|
+
readonly name: "balanceOf";
|
|
3209
|
+
readonly stateMutability: "view";
|
|
3210
|
+
readonly inputs: readonly [{
|
|
3211
|
+
readonly name: "account";
|
|
3212
|
+
readonly type: "address";
|
|
3213
|
+
}];
|
|
3214
|
+
readonly outputs: readonly [{
|
|
3215
|
+
readonly type: "uint256";
|
|
3216
|
+
}];
|
|
3217
|
+
}, {
|
|
3218
|
+
readonly type: "function";
|
|
3219
|
+
readonly name: "decimals";
|
|
3220
|
+
readonly stateMutability: "view";
|
|
3221
|
+
readonly inputs: readonly [];
|
|
3222
|
+
readonly outputs: readonly [{
|
|
3223
|
+
readonly type: "uint8";
|
|
3224
|
+
}];
|
|
3225
|
+
}, {
|
|
3226
|
+
readonly type: "function";
|
|
3227
|
+
readonly name: "name";
|
|
3228
|
+
readonly stateMutability: "view";
|
|
3229
|
+
readonly inputs: readonly [];
|
|
3230
|
+
readonly outputs: readonly [{
|
|
3231
|
+
readonly type: "string";
|
|
3232
|
+
}];
|
|
3233
|
+
}, {
|
|
3234
|
+
readonly type: "function";
|
|
3235
|
+
readonly name: "symbol";
|
|
3236
|
+
readonly stateMutability: "view";
|
|
3237
|
+
readonly inputs: readonly [];
|
|
3238
|
+
readonly outputs: readonly [{
|
|
3239
|
+
readonly type: "string";
|
|
3240
|
+
}];
|
|
3241
|
+
}, {
|
|
3242
|
+
readonly type: "function";
|
|
3243
|
+
readonly name: "totalSupply";
|
|
3244
|
+
readonly stateMutability: "view";
|
|
3245
|
+
readonly inputs: readonly [];
|
|
3246
|
+
readonly outputs: readonly [{
|
|
3247
|
+
readonly type: "uint256";
|
|
3248
|
+
}];
|
|
3249
|
+
}, {
|
|
3250
|
+
readonly type: "function";
|
|
3251
|
+
readonly name: "transfer";
|
|
3252
|
+
readonly stateMutability: "nonpayable";
|
|
3253
|
+
readonly inputs: readonly [{
|
|
3254
|
+
readonly name: "recipient";
|
|
3255
|
+
readonly type: "address";
|
|
3256
|
+
}, {
|
|
3257
|
+
readonly name: "amount";
|
|
3258
|
+
readonly type: "uint256";
|
|
3259
|
+
}];
|
|
3260
|
+
readonly outputs: readonly [{
|
|
3261
|
+
readonly type: "bool";
|
|
3262
|
+
}];
|
|
3263
|
+
}, {
|
|
3264
|
+
readonly type: "function";
|
|
3265
|
+
readonly name: "transferFrom";
|
|
3266
|
+
readonly stateMutability: "nonpayable";
|
|
3267
|
+
readonly inputs: readonly [{
|
|
3268
|
+
readonly name: "sender";
|
|
3269
|
+
readonly type: "address";
|
|
3270
|
+
}, {
|
|
3271
|
+
readonly name: "recipient";
|
|
3272
|
+
readonly type: "address";
|
|
3273
|
+
}, {
|
|
3274
|
+
readonly name: "amount";
|
|
3275
|
+
readonly type: "uint256";
|
|
3276
|
+
}];
|
|
3277
|
+
readonly outputs: readonly [{
|
|
3278
|
+
readonly type: "bool";
|
|
3279
|
+
}];
|
|
3280
|
+
}], "approve", readonly [spender: `0x${string}`, amount: bigint], import("viem").Chain | undefined, import("viem").Account | undefined, import("viem").Chain | undefined, `0x${string}` | import("viem").Account | null | undefined, readonly [{
|
|
3281
|
+
readonly type: "function";
|
|
3282
|
+
readonly name: "approve";
|
|
3283
|
+
readonly stateMutability: "nonpayable";
|
|
3284
|
+
readonly inputs: readonly [{
|
|
3285
|
+
readonly name: "spender";
|
|
3286
|
+
readonly type: "address";
|
|
3287
|
+
}, {
|
|
3288
|
+
readonly name: "amount";
|
|
3289
|
+
readonly type: "uint256";
|
|
3290
|
+
}];
|
|
3291
|
+
readonly outputs: readonly [{
|
|
3292
|
+
readonly type: "bool";
|
|
3293
|
+
}];
|
|
3294
|
+
}], import("viem").Account | {
|
|
3295
|
+
address: `0x${string}`;
|
|
3296
|
+
type: "json-rpc";
|
|
3297
|
+
} | null | undefined>>;
|
|
3298
|
+
};
|
|
3299
|
+
transferSync: (parameters: import("node_modules/viem/_types/actions/token").transferSync.Parameters<{
|
|
3300
|
+
blockExplorers?: {
|
|
3301
|
+
[key: string]: {
|
|
3302
|
+
name: string;
|
|
3303
|
+
url: string;
|
|
3304
|
+
apiUrl?: string | undefined;
|
|
3305
|
+
};
|
|
3306
|
+
default: {
|
|
3307
|
+
name: string;
|
|
3308
|
+
url: string;
|
|
3309
|
+
apiUrl?: string | undefined;
|
|
3310
|
+
};
|
|
3311
|
+
} | undefined;
|
|
3312
|
+
blockTime?: number | undefined;
|
|
3313
|
+
contracts?: {
|
|
3314
|
+
[x: string]: import("viem").ChainContract | {
|
|
3315
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3316
|
+
} | undefined;
|
|
3317
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3318
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3319
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3320
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3321
|
+
} | undefined;
|
|
3322
|
+
ensTlds?: readonly string[] | undefined;
|
|
3323
|
+
id: number;
|
|
3324
|
+
name: string;
|
|
3325
|
+
nativeCurrency: {
|
|
3326
|
+
name: string;
|
|
3327
|
+
symbol: string;
|
|
3328
|
+
decimals: number;
|
|
3329
|
+
};
|
|
3330
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3331
|
+
rpcUrls: {
|
|
3332
|
+
[key: string]: {
|
|
3333
|
+
http: readonly string[];
|
|
3334
|
+
webSocket?: readonly string[] | undefined;
|
|
3335
|
+
};
|
|
3336
|
+
default: {
|
|
3337
|
+
http: readonly string[];
|
|
3338
|
+
webSocket?: readonly string[] | undefined;
|
|
3339
|
+
};
|
|
3340
|
+
};
|
|
3341
|
+
sourceId?: number | undefined;
|
|
3342
|
+
testnet?: boolean | undefined;
|
|
3343
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<{
|
|
3344
|
+
from: `0x${string}`;
|
|
3345
|
+
to: `0x${string}`;
|
|
3346
|
+
value: bigint;
|
|
3347
|
+
decimals?: number | undefined;
|
|
3348
|
+
formatted?: string | undefined;
|
|
3349
|
+
receipt: import("viem").TransactionReceipt<bigint, number, "success" | "reverted", import("viem").TransactionType>;
|
|
3350
|
+
}>;
|
|
3351
|
+
transfer: ((parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
3352
|
+
blockExplorers?: {
|
|
3353
|
+
[key: string]: {
|
|
3354
|
+
name: string;
|
|
3355
|
+
url: string;
|
|
3356
|
+
apiUrl?: string | undefined;
|
|
3357
|
+
};
|
|
3358
|
+
default: {
|
|
3359
|
+
name: string;
|
|
3360
|
+
url: string;
|
|
3361
|
+
apiUrl?: string | undefined;
|
|
3362
|
+
};
|
|
3363
|
+
} | undefined;
|
|
3364
|
+
blockTime?: number | undefined;
|
|
3365
|
+
contracts?: {
|
|
3366
|
+
[x: string]: import("viem").ChainContract | {
|
|
3367
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3368
|
+
} | undefined;
|
|
3369
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3370
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3371
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3372
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3373
|
+
} | undefined;
|
|
3374
|
+
ensTlds?: readonly string[] | undefined;
|
|
3375
|
+
id: number;
|
|
3376
|
+
name: string;
|
|
3377
|
+
nativeCurrency: {
|
|
3378
|
+
name: string;
|
|
3379
|
+
symbol: string;
|
|
3380
|
+
decimals: number;
|
|
3381
|
+
};
|
|
3382
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3383
|
+
rpcUrls: {
|
|
3384
|
+
[key: string]: {
|
|
3385
|
+
http: readonly string[];
|
|
3386
|
+
webSocket?: readonly string[] | undefined;
|
|
3387
|
+
};
|
|
3388
|
+
default: {
|
|
3389
|
+
http: readonly string[];
|
|
3390
|
+
webSocket?: readonly string[] | undefined;
|
|
3391
|
+
};
|
|
3392
|
+
};
|
|
3393
|
+
sourceId?: number | undefined;
|
|
3394
|
+
testnet?: boolean | undefined;
|
|
3395
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<`0x${string}`>) & {
|
|
3396
|
+
call: (args: import("node_modules/viem/_types/actions/token").transfer.Args<{
|
|
3397
|
+
blockExplorers?: {
|
|
3398
|
+
[key: string]: {
|
|
3399
|
+
name: string;
|
|
3400
|
+
url: string;
|
|
3401
|
+
apiUrl?: string | undefined;
|
|
3402
|
+
};
|
|
3403
|
+
default: {
|
|
3404
|
+
name: string;
|
|
3405
|
+
url: string;
|
|
3406
|
+
apiUrl?: string | undefined;
|
|
3407
|
+
};
|
|
3408
|
+
} | undefined;
|
|
3409
|
+
blockTime?: number | undefined;
|
|
3410
|
+
contracts?: {
|
|
3411
|
+
[x: string]: import("viem").ChainContract | {
|
|
3412
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3413
|
+
} | undefined;
|
|
3414
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3415
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3416
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3417
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3418
|
+
} | undefined;
|
|
3419
|
+
ensTlds?: readonly string[] | undefined;
|
|
3420
|
+
id: number;
|
|
3421
|
+
name: string;
|
|
3422
|
+
nativeCurrency: {
|
|
3423
|
+
name: string;
|
|
3424
|
+
symbol: string;
|
|
3425
|
+
decimals: number;
|
|
3426
|
+
};
|
|
3427
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3428
|
+
rpcUrls: {
|
|
3429
|
+
[key: string]: {
|
|
3430
|
+
http: readonly string[];
|
|
3431
|
+
webSocket?: readonly string[] | undefined;
|
|
3432
|
+
};
|
|
3433
|
+
default: {
|
|
3434
|
+
http: readonly string[];
|
|
3435
|
+
webSocket?: readonly string[] | undefined;
|
|
3436
|
+
};
|
|
3437
|
+
};
|
|
3438
|
+
sourceId?: number | undefined;
|
|
3439
|
+
testnet?: boolean | undefined;
|
|
3440
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Tokens | undefined>) => {
|
|
3441
|
+
abi: [{
|
|
3442
|
+
readonly type: "function";
|
|
3443
|
+
readonly name: "transfer";
|
|
3444
|
+
readonly stateMutability: "nonpayable";
|
|
3445
|
+
readonly inputs: readonly [{
|
|
3446
|
+
readonly name: "recipient";
|
|
3447
|
+
readonly type: "address";
|
|
3448
|
+
}, {
|
|
3449
|
+
readonly name: "amount";
|
|
3450
|
+
readonly type: "uint256";
|
|
3451
|
+
}];
|
|
3452
|
+
readonly outputs: readonly [{
|
|
3453
|
+
readonly type: "bool";
|
|
3454
|
+
}];
|
|
3455
|
+
} | {
|
|
3456
|
+
readonly type: "function";
|
|
3457
|
+
readonly name: "transferFrom";
|
|
3458
|
+
readonly stateMutability: "nonpayable";
|
|
3459
|
+
readonly inputs: readonly [{
|
|
3460
|
+
readonly name: "sender";
|
|
3461
|
+
readonly type: "address";
|
|
3462
|
+
}, {
|
|
3463
|
+
readonly name: "recipient";
|
|
3464
|
+
readonly type: "address";
|
|
3465
|
+
}, {
|
|
3466
|
+
readonly name: "amount";
|
|
3467
|
+
readonly type: "uint256";
|
|
3468
|
+
}];
|
|
3469
|
+
readonly outputs: readonly [{
|
|
3470
|
+
readonly type: "bool";
|
|
3471
|
+
}];
|
|
3472
|
+
}];
|
|
3473
|
+
functionName: "transfer" | "transferFrom";
|
|
3474
|
+
} & {
|
|
3475
|
+
args: readonly [recipient: `0x${string}`, amount: bigint] | readonly [sender: `0x${string}`, recipient: `0x${string}`, amount: bigint];
|
|
3476
|
+
} & {
|
|
3477
|
+
address: `0x${string}`;
|
|
3478
|
+
} & {
|
|
3479
|
+
data: `0x${string}`;
|
|
3480
|
+
to: `0x${string}`;
|
|
3481
|
+
};
|
|
3482
|
+
estimateGas: (parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
3483
|
+
blockExplorers?: {
|
|
3484
|
+
[key: string]: {
|
|
3485
|
+
name: string;
|
|
3486
|
+
url: string;
|
|
3487
|
+
apiUrl?: string | undefined;
|
|
3488
|
+
};
|
|
3489
|
+
default: {
|
|
3490
|
+
name: string;
|
|
3491
|
+
url: string;
|
|
3492
|
+
apiUrl?: string | undefined;
|
|
3493
|
+
};
|
|
3494
|
+
} | undefined;
|
|
3495
|
+
blockTime?: number | undefined;
|
|
3496
|
+
contracts?: {
|
|
3497
|
+
[x: string]: import("viem").ChainContract | {
|
|
3498
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3499
|
+
} | undefined;
|
|
3500
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3501
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3502
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3503
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3504
|
+
} | undefined;
|
|
3505
|
+
ensTlds?: readonly string[] | undefined;
|
|
3506
|
+
id: number;
|
|
3507
|
+
name: string;
|
|
3508
|
+
nativeCurrency: {
|
|
3509
|
+
name: string;
|
|
3510
|
+
symbol: string;
|
|
3511
|
+
decimals: number;
|
|
3512
|
+
};
|
|
3513
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3514
|
+
rpcUrls: {
|
|
3515
|
+
[key: string]: {
|
|
3516
|
+
http: readonly string[];
|
|
3517
|
+
webSocket?: readonly string[] | undefined;
|
|
3518
|
+
};
|
|
3519
|
+
default: {
|
|
3520
|
+
http: readonly string[];
|
|
3521
|
+
webSocket?: readonly string[] | undefined;
|
|
3522
|
+
};
|
|
3523
|
+
};
|
|
3524
|
+
sourceId?: number | undefined;
|
|
3525
|
+
testnet?: boolean | undefined;
|
|
3526
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<bigint>;
|
|
3527
|
+
extractEvent: typeof import("node_modules/viem/_types/actions/token").transfer.extractEvent;
|
|
3528
|
+
simulate: (parameters: import("node_modules/viem/_types/actions/token").transfer.Parameters<{
|
|
3529
|
+
blockExplorers?: {
|
|
3530
|
+
[key: string]: {
|
|
3531
|
+
name: string;
|
|
3532
|
+
url: string;
|
|
3533
|
+
apiUrl?: string | undefined;
|
|
3534
|
+
};
|
|
3535
|
+
default: {
|
|
3536
|
+
name: string;
|
|
3537
|
+
url: string;
|
|
3538
|
+
apiUrl?: string | undefined;
|
|
3539
|
+
};
|
|
3540
|
+
} | undefined;
|
|
3541
|
+
blockTime?: number | undefined;
|
|
3542
|
+
contracts?: {
|
|
3543
|
+
[x: string]: import("viem").ChainContract | {
|
|
3544
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
3545
|
+
} | undefined;
|
|
3546
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
3547
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
3548
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
3549
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
3550
|
+
} | undefined;
|
|
3551
|
+
ensTlds?: readonly string[] | undefined;
|
|
3552
|
+
id: number;
|
|
3553
|
+
name: string;
|
|
3554
|
+
nativeCurrency: {
|
|
3555
|
+
name: string;
|
|
3556
|
+
symbol: string;
|
|
3557
|
+
decimals: number;
|
|
3558
|
+
};
|
|
3559
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
3560
|
+
rpcUrls: {
|
|
3561
|
+
[key: string]: {
|
|
3562
|
+
http: readonly string[];
|
|
3563
|
+
webSocket?: readonly string[] | undefined;
|
|
3564
|
+
};
|
|
3565
|
+
default: {
|
|
3566
|
+
http: readonly string[];
|
|
3567
|
+
webSocket?: readonly string[] | undefined;
|
|
3568
|
+
};
|
|
3569
|
+
};
|
|
3570
|
+
sourceId?: number | undefined;
|
|
3571
|
+
testnet?: boolean | undefined;
|
|
3572
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
3573
|
+
readonly type: "event";
|
|
3574
|
+
readonly name: "Approval";
|
|
3575
|
+
readonly inputs: readonly [{
|
|
3576
|
+
readonly indexed: true;
|
|
3577
|
+
readonly name: "owner";
|
|
3578
|
+
readonly type: "address";
|
|
3579
|
+
}, {
|
|
3580
|
+
readonly indexed: true;
|
|
3581
|
+
readonly name: "spender";
|
|
3582
|
+
readonly type: "address";
|
|
3583
|
+
}, {
|
|
3584
|
+
readonly indexed: false;
|
|
3585
|
+
readonly name: "value";
|
|
3586
|
+
readonly type: "uint256";
|
|
3587
|
+
}];
|
|
3588
|
+
}, {
|
|
3589
|
+
readonly type: "event";
|
|
3590
|
+
readonly name: "Transfer";
|
|
3591
|
+
readonly inputs: readonly [{
|
|
3592
|
+
readonly indexed: true;
|
|
3593
|
+
readonly name: "from";
|
|
3594
|
+
readonly type: "address";
|
|
3595
|
+
}, {
|
|
3596
|
+
readonly indexed: true;
|
|
3597
|
+
readonly name: "to";
|
|
3598
|
+
readonly type: "address";
|
|
3599
|
+
}, {
|
|
3600
|
+
readonly indexed: false;
|
|
3601
|
+
readonly name: "value";
|
|
3602
|
+
readonly type: "uint256";
|
|
3603
|
+
}];
|
|
3604
|
+
}, {
|
|
3605
|
+
readonly type: "function";
|
|
3606
|
+
readonly name: "allowance";
|
|
3607
|
+
readonly stateMutability: "view";
|
|
3608
|
+
readonly inputs: readonly [{
|
|
3609
|
+
readonly name: "owner";
|
|
3610
|
+
readonly type: "address";
|
|
3611
|
+
}, {
|
|
3612
|
+
readonly name: "spender";
|
|
3613
|
+
readonly type: "address";
|
|
3614
|
+
}];
|
|
3615
|
+
readonly outputs: readonly [{
|
|
3616
|
+
readonly type: "uint256";
|
|
3617
|
+
}];
|
|
3618
|
+
}, {
|
|
3619
|
+
readonly type: "function";
|
|
3620
|
+
readonly name: "approve";
|
|
3621
|
+
readonly stateMutability: "nonpayable";
|
|
3622
|
+
readonly inputs: readonly [{
|
|
3623
|
+
readonly name: "spender";
|
|
3624
|
+
readonly type: "address";
|
|
3625
|
+
}, {
|
|
3626
|
+
readonly name: "amount";
|
|
3627
|
+
readonly type: "uint256";
|
|
3628
|
+
}];
|
|
3629
|
+
readonly outputs: readonly [{
|
|
3630
|
+
readonly type: "bool";
|
|
3631
|
+
}];
|
|
3632
|
+
}, {
|
|
3633
|
+
readonly type: "function";
|
|
3634
|
+
readonly name: "balanceOf";
|
|
3635
|
+
readonly stateMutability: "view";
|
|
3636
|
+
readonly inputs: readonly [{
|
|
3637
|
+
readonly name: "account";
|
|
3638
|
+
readonly type: "address";
|
|
3639
|
+
}];
|
|
3640
|
+
readonly outputs: readonly [{
|
|
3641
|
+
readonly type: "uint256";
|
|
3642
|
+
}];
|
|
3643
|
+
}, {
|
|
3644
|
+
readonly type: "function";
|
|
3645
|
+
readonly name: "decimals";
|
|
3646
|
+
readonly stateMutability: "view";
|
|
3647
|
+
readonly inputs: readonly [];
|
|
3648
|
+
readonly outputs: readonly [{
|
|
3649
|
+
readonly type: "uint8";
|
|
3650
|
+
}];
|
|
3651
|
+
}, {
|
|
3652
|
+
readonly type: "function";
|
|
3653
|
+
readonly name: "name";
|
|
3654
|
+
readonly stateMutability: "view";
|
|
3655
|
+
readonly inputs: readonly [];
|
|
3656
|
+
readonly outputs: readonly [{
|
|
3657
|
+
readonly type: "string";
|
|
3658
|
+
}];
|
|
3659
|
+
}, {
|
|
3660
|
+
readonly type: "function";
|
|
3661
|
+
readonly name: "symbol";
|
|
3662
|
+
readonly stateMutability: "view";
|
|
3663
|
+
readonly inputs: readonly [];
|
|
3664
|
+
readonly outputs: readonly [{
|
|
3665
|
+
readonly type: "string";
|
|
3666
|
+
}];
|
|
3667
|
+
}, {
|
|
3668
|
+
readonly type: "function";
|
|
3669
|
+
readonly name: "totalSupply";
|
|
3670
|
+
readonly stateMutability: "view";
|
|
3671
|
+
readonly inputs: readonly [];
|
|
3672
|
+
readonly outputs: readonly [{
|
|
3673
|
+
readonly type: "uint256";
|
|
3674
|
+
}];
|
|
3675
|
+
}, {
|
|
3676
|
+
readonly type: "function";
|
|
3677
|
+
readonly name: "transfer";
|
|
3678
|
+
readonly stateMutability: "nonpayable";
|
|
3679
|
+
readonly inputs: readonly [{
|
|
3680
|
+
readonly name: "recipient";
|
|
3681
|
+
readonly type: "address";
|
|
3682
|
+
}, {
|
|
3683
|
+
readonly name: "amount";
|
|
3684
|
+
readonly type: "uint256";
|
|
3685
|
+
}];
|
|
3686
|
+
readonly outputs: readonly [{
|
|
3687
|
+
readonly type: "bool";
|
|
3688
|
+
}];
|
|
3689
|
+
}, {
|
|
3690
|
+
readonly type: "function";
|
|
3691
|
+
readonly name: "transferFrom";
|
|
3692
|
+
readonly stateMutability: "nonpayable";
|
|
3693
|
+
readonly inputs: readonly [{
|
|
3694
|
+
readonly name: "sender";
|
|
3695
|
+
readonly type: "address";
|
|
3696
|
+
}, {
|
|
3697
|
+
readonly name: "recipient";
|
|
3698
|
+
readonly type: "address";
|
|
3699
|
+
}, {
|
|
3700
|
+
readonly name: "amount";
|
|
3701
|
+
readonly type: "uint256";
|
|
3702
|
+
}];
|
|
3703
|
+
readonly outputs: readonly [{
|
|
3704
|
+
readonly type: "bool";
|
|
3705
|
+
}];
|
|
3706
|
+
}], "transfer" | "transferFrom", readonly [recipient: `0x${string}`, amount: bigint] | readonly [sender: `0x${string}`, recipient: `0x${string}`, amount: bigint], import("viem").Chain | undefined, import("viem").Account | undefined, import("viem").Chain | undefined, `0x${string}` | import("viem").Account | null | undefined, readonly [never], import("viem").Account | {
|
|
3707
|
+
address: `0x${string}`;
|
|
3708
|
+
type: "json-rpc";
|
|
3709
|
+
} | null | undefined>>;
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
2881
3712
|
extend: <const client extends {
|
|
2882
3713
|
[x: string]: unknown;
|
|
2883
3714
|
account?: undefined;
|
|
@@ -2891,6 +3722,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2891
3722
|
name?: undefined;
|
|
2892
3723
|
pollingInterval?: undefined;
|
|
2893
3724
|
request?: undefined;
|
|
3725
|
+
tokens?: undefined;
|
|
2894
3726
|
transport?: undefined;
|
|
2895
3727
|
type?: undefined;
|
|
2896
3728
|
uid?: undefined;
|
|
@@ -2938,7 +3770,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2938
3770
|
};
|
|
2939
3771
|
sourceId?: number | undefined;
|
|
2940
3772
|
testnet?: boolean | undefined;
|
|
2941
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}
|
|
3773
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, 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<{
|
|
2942
3774
|
blockExplorers?: {
|
|
2943
3775
|
[key: string]: {
|
|
2944
3776
|
name: string;
|
|
@@ -2982,7 +3814,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
2982
3814
|
};
|
|
2983
3815
|
sourceId?: number | undefined;
|
|
2984
3816
|
testnet?: boolean | undefined;
|
|
2985
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}
|
|
3817
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>, import("viem").Tokens | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").HttpTransport<undefined, false>, {
|
|
2986
3818
|
blockExplorers?: {
|
|
2987
3819
|
[key: string]: {
|
|
2988
3820
|
name: string;
|
|
@@ -3063,6 +3895,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3063
3895
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3064
3896
|
ReturnType: {
|
|
3065
3897
|
accessList: import("viem").AccessList;
|
|
3898
|
+
error?: string | undefined;
|
|
3066
3899
|
gasUsed: `0x${string}`;
|
|
3067
3900
|
};
|
|
3068
3901
|
}, {
|
|
@@ -3081,6 +3914,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3081
3914
|
Method: "eth_fillTransaction";
|
|
3082
3915
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3083
3916
|
ReturnType: {
|
|
3917
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3084
3918
|
raw: `0x${string}`;
|
|
3085
3919
|
tx: import("viem").RpcTransaction<boolean>;
|
|
3086
3920
|
};
|
|
@@ -3104,6 +3938,10 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3104
3938
|
Method: "eth_getBlockByNumber";
|
|
3105
3939
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
3106
3940
|
ReturnType: import("viem").RpcBlock<import("viem").BlockTag, boolean, import("viem").RpcTransaction<boolean>> | null;
|
|
3941
|
+
}, {
|
|
3942
|
+
Method: "eth_getBlockReceipts";
|
|
3943
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
3944
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
3107
3945
|
}, {
|
|
3108
3946
|
Method: "eth_getBlockTransactionCountByHash";
|
|
3109
3947
|
Parameters: [hash: `0x${string}`];
|
|
@@ -3141,7 +3979,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3141
3979
|
ReturnType: import("viem").RpcLog[];
|
|
3142
3980
|
}, {
|
|
3143
3981
|
Method: "eth_getProof";
|
|
3144
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
3982
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3145
3983
|
ReturnType: import("viem").RpcProof;
|
|
3146
3984
|
}, {
|
|
3147
3985
|
Method: "eth_getStorageAt";
|
|
@@ -3265,6 +4103,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3265
4103
|
Method: "eth_fillTransaction";
|
|
3266
4104
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3267
4105
|
ReturnType: {
|
|
4106
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3268
4107
|
raw: `0x${string}`;
|
|
3269
4108
|
tx: import("viem").RpcTransaction<boolean>;
|
|
3270
4109
|
};
|
|
@@ -3489,7 +4328,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3489
4328
|
};
|
|
3490
4329
|
sourceId?: number | undefined;
|
|
3491
4330
|
testnet?: boolean | undefined;
|
|
3492
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}
|
|
4331
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>>, import("viem").Tokens | undefined>) => client) => import("viem").Client<import("viem").HttpTransport<undefined, false>, {
|
|
3493
4332
|
blockExplorers?: {
|
|
3494
4333
|
[key: string]: {
|
|
3495
4334
|
name: string;
|
|
@@ -3570,6 +4409,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3570
4409
|
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3571
4410
|
ReturnType: {
|
|
3572
4411
|
accessList: import("viem").AccessList;
|
|
4412
|
+
error?: string | undefined;
|
|
3573
4413
|
gasUsed: `0x${string}`;
|
|
3574
4414
|
};
|
|
3575
4415
|
}, {
|
|
@@ -3588,6 +4428,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3588
4428
|
Method: "eth_fillTransaction";
|
|
3589
4429
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3590
4430
|
ReturnType: {
|
|
4431
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3591
4432
|
raw: `0x${string}`;
|
|
3592
4433
|
tx: import("viem").RpcTransaction<boolean>;
|
|
3593
4434
|
};
|
|
@@ -3611,6 +4452,10 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3611
4452
|
Method: "eth_getBlockByNumber";
|
|
3612
4453
|
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
3613
4454
|
ReturnType: import("viem").RpcBlock<import("viem").BlockTag, boolean, import("viem").RpcTransaction<boolean>> | null;
|
|
4455
|
+
}, {
|
|
4456
|
+
Method: "eth_getBlockReceipts";
|
|
4457
|
+
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
4458
|
+
ReturnType: import("viem").RpcTransactionReceipt[] | null;
|
|
3614
4459
|
}, {
|
|
3615
4460
|
Method: "eth_getBlockTransactionCountByHash";
|
|
3616
4461
|
Parameters: [hash: `0x${string}`];
|
|
@@ -3648,7 +4493,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3648
4493
|
ReturnType: import("viem").RpcLog[];
|
|
3649
4494
|
}, {
|
|
3650
4495
|
Method: "eth_getProof";
|
|
3651
|
-
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
|
|
4496
|
+
Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
3652
4497
|
ReturnType: import("viem").RpcProof;
|
|
3653
4498
|
}, {
|
|
3654
4499
|
Method: "eth_getStorageAt";
|
|
@@ -3772,6 +4617,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3772
4617
|
Method: "eth_fillTransaction";
|
|
3773
4618
|
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
3774
4619
|
ReturnType: {
|
|
4620
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
3775
4621
|
raw: `0x${string}`;
|
|
3776
4622
|
tx: import("viem").RpcTransaction<boolean>;
|
|
3777
4623
|
};
|
|
@@ -3996,7 +4842,7 @@ export declare const createZksyncSessionClient: (wallet: BaseWallet, { sessionKe
|
|
|
3996
4842
|
};
|
|
3997
4843
|
sourceId?: number | undefined;
|
|
3998
4844
|
testnet?: boolean | undefined;
|
|
3999
|
-
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}
|
|
4845
|
+
} & import("viem").ChainConfig<import("viem").ChainFormatters | undefined, Record<string, unknown> | undefined>, import("viem").Account<`0x${string}`>>, import("viem").Tokens | undefined>;
|
|
4000
4846
|
sessionKey: `0x${string}`;
|
|
4001
4847
|
sessionConfig: SessionConfig;
|
|
4002
4848
|
contracts: import("zksync-sso/client").SessionRequiredContracts;
|