solid-wagmi 0.0.5 → 0.2.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/README.md +44 -0
- package/dist/esm/src/context.js.map +1 -0
- package/dist/esm/src/errors/context.js +12 -0
- package/dist/esm/src/errors/context.js.map +1 -0
- package/dist/esm/src/exports/actions.js +2 -0
- package/dist/esm/src/exports/actions.js.map +1 -0
- package/dist/esm/src/exports/chains.js +2 -0
- package/dist/esm/src/exports/chains.js.map +1 -0
- package/dist/esm/src/exports/connectors.js +2 -0
- package/dist/esm/src/exports/connectors.js.map +1 -0
- package/dist/esm/src/exports/index.js +30 -0
- package/dist/esm/src/exports/index.js.map +1 -0
- package/dist/esm/src/exports/query.js +2 -0
- package/dist/esm/src/exports/query.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useAccount.js +1 -1
- package/dist/esm/src/hooks/useAccount.js.map +1 -0
- package/dist/esm/src/hooks/useAccount.test.js +16 -0
- package/dist/esm/src/hooks/useAccount.test.js.map +1 -0
- package/dist/esm/src/hooks/useBalance.js +15 -0
- package/dist/esm/src/hooks/useBalance.js.map +1 -0
- package/dist/esm/src/hooks/useBalance.test.js +64 -0
- package/dist/esm/src/hooks/useBalance.test.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useChainId.js +1 -1
- package/dist/esm/src/hooks/useChainId.js.map +1 -0
- package/dist/esm/src/hooks/useChainId.test.js +15 -0
- package/dist/esm/src/hooks/useChainId.test.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useConfig.js +2 -2
- package/dist/esm/src/hooks/useConfig.js.map +1 -0
- package/dist/esm/src/hooks/useConfig.test.js +19 -0
- package/dist/esm/src/hooks/useConfig.test.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useConnect.js +1 -1
- package/dist/esm/src/hooks/useConnect.js.map +1 -0
- package/dist/esm/src/hooks/useConnect.test.js +19 -0
- package/dist/esm/src/hooks/useConnect.test.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useConnections.js +1 -1
- package/dist/esm/src/hooks/useConnections.js.map +1 -0
- package/dist/esm/src/hooks/useConnections.test.js +13 -0
- package/dist/esm/src/hooks/useConnections.test.js.map +1 -0
- package/dist/esm/{hooks → src/hooks}/useDisconnect.js +1 -1
- package/dist/esm/src/hooks/useDisconnect.js.map +1 -0
- package/dist/esm/src/hooks/useDisconnect.test.js +25 -0
- package/dist/esm/src/hooks/useDisconnect.test.js.map +1 -0
- package/dist/esm/src/hooks/useReadContract.js +24 -0
- package/dist/esm/src/hooks/useReadContract.js.map +1 -0
- package/dist/esm/src/hooks/useReadContract.test.js +16 -0
- package/dist/esm/src/hooks/useReadContract.test.js.map +1 -0
- package/dist/esm/src/hooks/useReadContracts.js +42 -0
- package/dist/esm/src/hooks/useReadContracts.js.map +1 -0
- package/dist/esm/src/hooks/useReadContracts.test.js +26 -0
- package/dist/esm/src/hooks/useReadContracts.test.js.map +1 -0
- package/dist/esm/src/hooks/useWriteContract.js +17 -0
- package/dist/esm/src/hooks/useWriteContract.js.map +1 -0
- package/dist/esm/src/hooks/useWriteContract.test.js +17 -0
- package/dist/esm/src/hooks/useWriteContract.test.js.map +1 -0
- package/dist/esm/src/types/index.js +2 -0
- package/dist/esm/src/types/index.js.map +1 -0
- package/dist/esm/test/chains.js +43 -0
- package/dist/esm/test/chains.js.map +1 -0
- package/dist/esm/test/clients.js +41 -0
- package/dist/esm/test/clients.js.map +1 -0
- package/dist/esm/test/config.js +19 -0
- package/dist/esm/test/config.js.map +1 -0
- package/dist/esm/test/constants.js +295 -0
- package/dist/esm/test/constants.js.map +1 -0
- package/dist/esm/test/lib.js +18 -0
- package/dist/esm/test/lib.js.map +1 -0
- package/dist/esm/test/utils.js +27 -0
- package/dist/esm/test/utils.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/context.d.ts.map +1 -0
- package/dist/types/{errors → src/errors}/context.d.ts +1 -0
- package/dist/types/src/errors/context.d.ts.map +1 -0
- package/dist/types/src/exports/actions.d.ts +2 -0
- package/dist/types/src/exports/actions.d.ts.map +1 -0
- package/dist/types/src/exports/chains.d.ts +2 -0
- package/dist/types/src/exports/chains.d.ts.map +1 -0
- package/dist/types/src/exports/connectors.d.ts +2 -0
- package/dist/types/src/exports/connectors.d.ts.map +1 -0
- package/dist/types/src/exports/index.d.ts +14 -0
- package/dist/types/src/exports/index.d.ts.map +1 -0
- package/dist/types/src/exports/query.d.ts +2 -0
- package/dist/types/src/exports/query.d.ts.map +1 -0
- package/dist/types/src/hooks/useAccount.d.ts.map +1 -0
- package/dist/types/src/hooks/useAccount.test.d.ts +2 -0
- package/dist/types/src/hooks/useAccount.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useBalance.d.ts +7 -0
- package/dist/types/src/hooks/useBalance.d.ts.map +1 -0
- package/dist/types/src/hooks/useBalance.test.d.ts +2 -0
- package/dist/types/src/hooks/useBalance.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useChainId.d.ts.map +1 -0
- package/dist/types/src/hooks/useChainId.test.d.ts +2 -0
- package/dist/types/src/hooks/useChainId.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useConfig.d.ts +7 -0
- package/dist/types/src/hooks/useConfig.d.ts.map +1 -0
- package/dist/types/src/hooks/useConfig.test.d.ts +2 -0
- package/dist/types/src/hooks/useConfig.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useConnect.d.ts.map +1 -0
- package/dist/types/src/hooks/useConnect.test.d.ts +2 -0
- package/dist/types/src/hooks/useConnect.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useConnections.d.ts.map +1 -0
- package/dist/types/src/hooks/useConnections.test.d.ts +2 -0
- package/dist/types/src/hooks/useConnections.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useDisconnect.d.ts.map +1 -0
- package/dist/types/src/hooks/useDisconnect.test.d.ts +2 -0
- package/dist/types/src/hooks/useDisconnect.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useReadContract.d.ts +10 -0
- package/dist/types/src/hooks/useReadContract.d.ts.map +1 -0
- package/dist/types/src/hooks/useReadContract.test.d.ts +2 -0
- package/dist/types/src/hooks/useReadContract.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useReadContracts.d.ts +10 -0
- package/dist/types/src/hooks/useReadContracts.d.ts.map +1 -0
- package/dist/types/src/hooks/useReadContracts.test.d.ts +2 -0
- package/dist/types/src/hooks/useReadContracts.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useWriteContract.d.ts +13 -0
- package/dist/types/src/hooks/useWriteContract.d.ts.map +1 -0
- package/dist/types/src/hooks/useWriteContract.test.d.ts +2 -0
- package/dist/types/src/hooks/useWriteContract.test.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +25 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/test/chains.d.ts +898 -0
- package/dist/types/test/chains.d.ts.map +1 -0
- package/dist/types/test/clients.d.ts +920 -0
- package/dist/types/test/clients.d.ts.map +1 -0
- package/dist/types/test/config.d.ts +488 -0
- package/dist/types/test/config.d.ts.map +1 -0
- package/dist/types/test/constants.d.ts +1857 -0
- package/dist/types/test/constants.d.ts.map +1 -0
- package/dist/types/test/lib.d.ts +2 -0
- package/dist/types/test/lib.d.ts.map +1 -0
- package/dist/types/test/utils.d.ts +17 -0
- package/dist/types/test/utils.d.ts.map +1 -0
- package/package.json +44 -4
- package/src/errors/context.ts +3 -1
- package/src/exports/actions.ts +1 -0
- package/src/exports/chains.ts +1 -0
- package/src/exports/connectors.ts +1 -0
- package/src/exports/index.ts +65 -0
- package/src/exports/query.ts +1 -0
- package/src/hooks/useAccount.ts +1 -1
- package/src/hooks/useBalance.ts +45 -0
- package/src/hooks/useChainId.ts +1 -1
- package/src/hooks/useConfig.ts +14 -4
- package/src/hooks/useConnect.ts +1 -1
- package/src/hooks/useConnections.ts +1 -1
- package/src/hooks/useDisconnect.ts +1 -1
- package/src/hooks/useReadContract.ts +101 -0
- package/src/hooks/useReadContracts.ts +104 -0
- package/src/hooks/useWriteContract.ts +78 -0
- package/src/types/index.ts +116 -0
- package/dist/esm/context.js.map +0 -1
- package/dist/esm/errors/context.js +0 -6
- package/dist/esm/errors/context.js.map +0 -1
- package/dist/esm/exports/index.js +0 -18
- package/dist/esm/exports/index.js.map +0 -1
- package/dist/esm/hooks/useAccount.js.map +0 -1
- package/dist/esm/hooks/useChainId.js.map +0 -1
- package/dist/esm/hooks/useConfig.js.map +0 -1
- package/dist/esm/hooks/useConnect.js.map +0 -1
- package/dist/esm/hooks/useConnections.js.map +0 -1
- package/dist/esm/hooks/useDisconnect.js.map +0 -1
- package/dist/types/context.d.ts.map +0 -1
- package/dist/types/errors/context.d.ts.map +0 -1
- package/dist/types/exports/index.d.ts +0 -9
- package/dist/types/exports/index.d.ts.map +0 -1
- package/dist/types/hooks/useAccount.d.ts.map +0 -1
- package/dist/types/hooks/useChainId.d.ts.map +0 -1
- package/dist/types/hooks/useConfig.d.ts +0 -2
- package/dist/types/hooks/useConfig.d.ts.map +0 -1
- package/dist/types/hooks/useConnect.d.ts.map +0 -1
- package/dist/types/hooks/useConnections.d.ts.map +0 -1
- package/dist/types/hooks/useDisconnect.d.ts.map +0 -1
- /package/dist/esm/{context.js → src/context.js} +0 -0
- /package/dist/types/{context.d.ts → src/context.d.ts} +0 -0
- /package/dist/types/{hooks → src/hooks}/useAccount.d.ts +0 -0
- /package/dist/types/{hooks → src/hooks}/useChainId.d.ts +0 -0
- /package/dist/types/{hooks → src/hooks}/useConnect.d.ts +0 -0
- /package/dist/types/{hooks → src/hooks}/useConnections.d.ts +0 -0
- /package/dist/types/{hooks → src/hooks}/useDisconnect.d.ts +0 -0
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
import { type Client, type TestActions, type TestRpcSchema } from "viem";
|
|
2
|
+
export declare const mainnetTestClient: Client<import("viem").HttpTransport<undefined, false>, {
|
|
3
|
+
readonly fork: {
|
|
4
|
+
readonly blockNumber: 23535880n;
|
|
5
|
+
readonly url: string;
|
|
6
|
+
};
|
|
7
|
+
readonly port: number;
|
|
8
|
+
readonly rpcUrls: {
|
|
9
|
+
readonly default: {
|
|
10
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
11
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
12
|
+
};
|
|
13
|
+
readonly public: {
|
|
14
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
15
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly blockExplorers: {
|
|
19
|
+
readonly default: {
|
|
20
|
+
readonly name: "Etherscan";
|
|
21
|
+
readonly url: "https://etherscan.io";
|
|
22
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly blockTime: 12000;
|
|
26
|
+
readonly contracts: {
|
|
27
|
+
readonly ensUniversalResolver: {
|
|
28
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
29
|
+
readonly blockCreated: 23085558;
|
|
30
|
+
};
|
|
31
|
+
readonly multicall3: {
|
|
32
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
33
|
+
readonly blockCreated: 14353601;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
37
|
+
readonly id: 1;
|
|
38
|
+
readonly name: "Ethereum";
|
|
39
|
+
readonly nativeCurrency: {
|
|
40
|
+
readonly name: "Ether";
|
|
41
|
+
readonly symbol: "ETH";
|
|
42
|
+
readonly decimals: 18;
|
|
43
|
+
};
|
|
44
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
45
|
+
readonly sourceId?: number | undefined | undefined;
|
|
46
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
47
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
48
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
49
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
50
|
+
readonly formatters?: undefined;
|
|
51
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
52
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
53
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
54
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
55
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
56
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
57
|
+
}] | undefined;
|
|
58
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
59
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
60
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
61
|
+
restart: () => Promise<Response>;
|
|
62
|
+
resetFork: () => Promise<void>;
|
|
63
|
+
} & {
|
|
64
|
+
mode: "anvil";
|
|
65
|
+
} & TestActions>;
|
|
66
|
+
export declare const mainnet2TestClient: Client<import("viem").HttpTransport<undefined, false>, {
|
|
67
|
+
readonly id: 456;
|
|
68
|
+
readonly nativeCurrency: {
|
|
69
|
+
readonly decimals: 18;
|
|
70
|
+
readonly name: "wagmi";
|
|
71
|
+
readonly symbol: "WAG";
|
|
72
|
+
};
|
|
73
|
+
readonly fork: {
|
|
74
|
+
readonly blockNumber: 23535880n;
|
|
75
|
+
readonly url: string;
|
|
76
|
+
};
|
|
77
|
+
readonly port: number;
|
|
78
|
+
readonly rpcUrls: {
|
|
79
|
+
readonly default: {
|
|
80
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
81
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
82
|
+
};
|
|
83
|
+
readonly public: {
|
|
84
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
85
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly blockExplorers: {
|
|
89
|
+
readonly default: {
|
|
90
|
+
readonly name: "Etherscan";
|
|
91
|
+
readonly url: "https://etherscan.io";
|
|
92
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly blockTime: 12000;
|
|
96
|
+
readonly contracts: {
|
|
97
|
+
readonly ensUniversalResolver: {
|
|
98
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
99
|
+
readonly blockCreated: 23085558;
|
|
100
|
+
};
|
|
101
|
+
readonly multicall3: {
|
|
102
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
103
|
+
readonly blockCreated: 14353601;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
107
|
+
readonly name: "Ethereum";
|
|
108
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
109
|
+
readonly sourceId?: number | undefined | undefined;
|
|
110
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
111
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
112
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
113
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
114
|
+
readonly formatters?: undefined;
|
|
115
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
116
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
117
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
118
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
119
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
120
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
121
|
+
}] | undefined;
|
|
122
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
123
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
124
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
125
|
+
restart: () => Promise<Response>;
|
|
126
|
+
resetFork: () => Promise<void>;
|
|
127
|
+
} & {
|
|
128
|
+
mode: "anvil";
|
|
129
|
+
} & TestActions>;
|
|
130
|
+
export declare const optimismTestClient: Client<import("viem").HttpTransport<undefined, false>, {
|
|
131
|
+
readonly fork: {
|
|
132
|
+
readonly blockNumber: 107317577n;
|
|
133
|
+
readonly url: string;
|
|
134
|
+
};
|
|
135
|
+
readonly port: number;
|
|
136
|
+
readonly rpcUrls: {
|
|
137
|
+
readonly default: {
|
|
138
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
139
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
140
|
+
};
|
|
141
|
+
readonly public: {
|
|
142
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
143
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly blockExplorers: {
|
|
147
|
+
readonly default: {
|
|
148
|
+
readonly name: "Optimism Explorer";
|
|
149
|
+
readonly url: "https://optimistic.etherscan.io";
|
|
150
|
+
readonly apiUrl: "https://api-optimistic.etherscan.io/api";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly blockTime: 2000;
|
|
154
|
+
readonly contracts: {
|
|
155
|
+
readonly disputeGameFactory: {
|
|
156
|
+
readonly 1: {
|
|
157
|
+
readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly l2OutputOracle: {
|
|
161
|
+
readonly 1: {
|
|
162
|
+
readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly multicall3: {
|
|
166
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
167
|
+
readonly blockCreated: 4286263;
|
|
168
|
+
};
|
|
169
|
+
readonly portal: {
|
|
170
|
+
readonly 1: {
|
|
171
|
+
readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly l1StandardBridge: {
|
|
175
|
+
readonly 1: {
|
|
176
|
+
readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
readonly gasPriceOracle: {
|
|
180
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
181
|
+
};
|
|
182
|
+
readonly l1Block: {
|
|
183
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
184
|
+
};
|
|
185
|
+
readonly l2CrossDomainMessenger: {
|
|
186
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
187
|
+
};
|
|
188
|
+
readonly l2Erc721Bridge: {
|
|
189
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
190
|
+
};
|
|
191
|
+
readonly l2StandardBridge: {
|
|
192
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
193
|
+
};
|
|
194
|
+
readonly l2ToL1MessagePasser: {
|
|
195
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
199
|
+
readonly id: 10;
|
|
200
|
+
readonly name: "OP Mainnet";
|
|
201
|
+
readonly nativeCurrency: {
|
|
202
|
+
readonly name: "Ether";
|
|
203
|
+
readonly symbol: "ETH";
|
|
204
|
+
readonly decimals: 18;
|
|
205
|
+
};
|
|
206
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
207
|
+
readonly sourceId: 1;
|
|
208
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
209
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
210
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
211
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
212
|
+
readonly formatters: {
|
|
213
|
+
readonly block: {
|
|
214
|
+
exclude: [] | undefined;
|
|
215
|
+
format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
|
|
216
|
+
baseFeePerGas: bigint | null;
|
|
217
|
+
blobGasUsed: bigint;
|
|
218
|
+
difficulty: bigint;
|
|
219
|
+
excessBlobGas: bigint;
|
|
220
|
+
extraData: import("viem").Hex;
|
|
221
|
+
gasLimit: bigint;
|
|
222
|
+
gasUsed: bigint;
|
|
223
|
+
hash: `0x${string}` | null;
|
|
224
|
+
logsBloom: `0x${string}` | null;
|
|
225
|
+
miner: import("viem").Address;
|
|
226
|
+
mixHash: import("viem").Hash;
|
|
227
|
+
nonce: `0x${string}` | null;
|
|
228
|
+
number: bigint | null;
|
|
229
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
230
|
+
parentHash: import("viem").Hash;
|
|
231
|
+
receiptsRoot: import("viem").Hex;
|
|
232
|
+
sealFields: import("viem").Hex[];
|
|
233
|
+
sha3Uncles: import("viem").Hash;
|
|
234
|
+
size: bigint;
|
|
235
|
+
stateRoot: import("viem").Hash;
|
|
236
|
+
timestamp: bigint;
|
|
237
|
+
totalDifficulty: bigint | null;
|
|
238
|
+
transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
|
|
239
|
+
transactionsRoot: import("viem").Hash;
|
|
240
|
+
uncles: import("viem").Hash[];
|
|
241
|
+
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
242
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
243
|
+
} & {};
|
|
244
|
+
type: "block";
|
|
245
|
+
};
|
|
246
|
+
readonly transaction: {
|
|
247
|
+
exclude: [] | undefined;
|
|
248
|
+
format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
|
|
249
|
+
blockHash: `0x${string}` | null;
|
|
250
|
+
blockNumber: bigint | null;
|
|
251
|
+
from: import("viem").Address;
|
|
252
|
+
gas: bigint;
|
|
253
|
+
hash: import("viem").Hash;
|
|
254
|
+
input: import("viem").Hex;
|
|
255
|
+
nonce: number;
|
|
256
|
+
r: import("viem").Hex;
|
|
257
|
+
s: import("viem").Hex;
|
|
258
|
+
to: import("viem").Address | null;
|
|
259
|
+
transactionIndex: number | null;
|
|
260
|
+
typeHex: import("viem").Hex | null;
|
|
261
|
+
v: bigint;
|
|
262
|
+
value: bigint;
|
|
263
|
+
yParity: number;
|
|
264
|
+
gasPrice?: undefined | undefined;
|
|
265
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
266
|
+
maxFeePerGas: bigint;
|
|
267
|
+
maxPriorityFeePerGas: bigint;
|
|
268
|
+
isSystemTx?: boolean;
|
|
269
|
+
mint?: bigint | undefined | undefined;
|
|
270
|
+
sourceHash: import("viem").Hex;
|
|
271
|
+
type: "deposit";
|
|
272
|
+
} | {
|
|
273
|
+
r: import("viem").Hex;
|
|
274
|
+
s: import("viem").Hex;
|
|
275
|
+
v: bigint;
|
|
276
|
+
value: bigint;
|
|
277
|
+
gas: bigint;
|
|
278
|
+
to: import("viem").Address | null;
|
|
279
|
+
from: import("viem").Address;
|
|
280
|
+
nonce: number;
|
|
281
|
+
blockHash: `0x${string}` | null;
|
|
282
|
+
blockNumber: bigint | null;
|
|
283
|
+
transactionIndex: number | null;
|
|
284
|
+
hash: import("viem").Hash;
|
|
285
|
+
input: import("viem").Hex;
|
|
286
|
+
typeHex: import("viem").Hex | null;
|
|
287
|
+
accessList?: undefined | undefined;
|
|
288
|
+
authorizationList?: undefined | undefined;
|
|
289
|
+
blobVersionedHashes?: undefined | undefined;
|
|
290
|
+
chainId?: number | undefined;
|
|
291
|
+
yParity?: undefined | undefined;
|
|
292
|
+
type: "legacy";
|
|
293
|
+
gasPrice: bigint;
|
|
294
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
295
|
+
maxFeePerGas?: undefined | undefined;
|
|
296
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
297
|
+
isSystemTx?: undefined | undefined;
|
|
298
|
+
mint?: undefined | undefined;
|
|
299
|
+
sourceHash?: undefined | undefined;
|
|
300
|
+
} | {
|
|
301
|
+
blockHash: `0x${string}` | null;
|
|
302
|
+
blockNumber: bigint | null;
|
|
303
|
+
from: import("viem").Address;
|
|
304
|
+
gas: bigint;
|
|
305
|
+
hash: import("viem").Hash;
|
|
306
|
+
input: import("viem").Hex;
|
|
307
|
+
nonce: number;
|
|
308
|
+
r: import("viem").Hex;
|
|
309
|
+
s: import("viem").Hex;
|
|
310
|
+
to: import("viem").Address | null;
|
|
311
|
+
transactionIndex: number | null;
|
|
312
|
+
typeHex: import("viem").Hex | null;
|
|
313
|
+
v: bigint;
|
|
314
|
+
value: bigint;
|
|
315
|
+
yParity: number;
|
|
316
|
+
accessList: import("viem").AccessList;
|
|
317
|
+
authorizationList?: undefined | undefined;
|
|
318
|
+
blobVersionedHashes?: undefined | undefined;
|
|
319
|
+
chainId: number;
|
|
320
|
+
type: "eip2930";
|
|
321
|
+
gasPrice: bigint;
|
|
322
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
323
|
+
maxFeePerGas?: undefined | undefined;
|
|
324
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
325
|
+
isSystemTx?: undefined | undefined;
|
|
326
|
+
mint?: undefined | undefined;
|
|
327
|
+
sourceHash?: undefined | undefined;
|
|
328
|
+
} | {
|
|
329
|
+
blockHash: `0x${string}` | null;
|
|
330
|
+
blockNumber: bigint | null;
|
|
331
|
+
from: import("viem").Address;
|
|
332
|
+
gas: bigint;
|
|
333
|
+
hash: import("viem").Hash;
|
|
334
|
+
input: import("viem").Hex;
|
|
335
|
+
nonce: number;
|
|
336
|
+
r: import("viem").Hex;
|
|
337
|
+
s: import("viem").Hex;
|
|
338
|
+
to: import("viem").Address | null;
|
|
339
|
+
transactionIndex: number | null;
|
|
340
|
+
typeHex: import("viem").Hex | null;
|
|
341
|
+
v: bigint;
|
|
342
|
+
value: bigint;
|
|
343
|
+
yParity: number;
|
|
344
|
+
accessList: import("viem").AccessList;
|
|
345
|
+
authorizationList?: undefined | undefined;
|
|
346
|
+
blobVersionedHashes?: undefined | undefined;
|
|
347
|
+
chainId: number;
|
|
348
|
+
type: "eip1559";
|
|
349
|
+
gasPrice?: undefined | undefined;
|
|
350
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
351
|
+
maxFeePerGas: bigint;
|
|
352
|
+
maxPriorityFeePerGas: bigint;
|
|
353
|
+
isSystemTx?: undefined | undefined;
|
|
354
|
+
mint?: undefined | undefined;
|
|
355
|
+
sourceHash?: undefined | undefined;
|
|
356
|
+
} | {
|
|
357
|
+
blockHash: `0x${string}` | null;
|
|
358
|
+
blockNumber: bigint | null;
|
|
359
|
+
from: import("viem").Address;
|
|
360
|
+
gas: bigint;
|
|
361
|
+
hash: import("viem").Hash;
|
|
362
|
+
input: import("viem").Hex;
|
|
363
|
+
nonce: number;
|
|
364
|
+
r: import("viem").Hex;
|
|
365
|
+
s: import("viem").Hex;
|
|
366
|
+
to: import("viem").Address | null;
|
|
367
|
+
transactionIndex: number | null;
|
|
368
|
+
typeHex: import("viem").Hex | null;
|
|
369
|
+
v: bigint;
|
|
370
|
+
value: bigint;
|
|
371
|
+
yParity: number;
|
|
372
|
+
accessList: import("viem").AccessList;
|
|
373
|
+
authorizationList?: undefined | undefined;
|
|
374
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
|
375
|
+
chainId: number;
|
|
376
|
+
type: "eip4844";
|
|
377
|
+
gasPrice?: undefined | undefined;
|
|
378
|
+
maxFeePerBlobGas: bigint;
|
|
379
|
+
maxFeePerGas: bigint;
|
|
380
|
+
maxPriorityFeePerGas: bigint;
|
|
381
|
+
isSystemTx?: undefined | undefined;
|
|
382
|
+
mint?: undefined | undefined;
|
|
383
|
+
sourceHash?: undefined | undefined;
|
|
384
|
+
} | {
|
|
385
|
+
blockHash: `0x${string}` | null;
|
|
386
|
+
blockNumber: bigint | null;
|
|
387
|
+
from: import("viem").Address;
|
|
388
|
+
gas: bigint;
|
|
389
|
+
hash: import("viem").Hash;
|
|
390
|
+
input: import("viem").Hex;
|
|
391
|
+
nonce: number;
|
|
392
|
+
r: import("viem").Hex;
|
|
393
|
+
s: import("viem").Hex;
|
|
394
|
+
to: import("viem").Address | null;
|
|
395
|
+
transactionIndex: number | null;
|
|
396
|
+
typeHex: import("viem").Hex | null;
|
|
397
|
+
v: bigint;
|
|
398
|
+
value: bigint;
|
|
399
|
+
yParity: number;
|
|
400
|
+
accessList: import("viem").AccessList;
|
|
401
|
+
authorizationList: import("viem").SignedAuthorizationList;
|
|
402
|
+
blobVersionedHashes?: undefined | undefined;
|
|
403
|
+
chainId: number;
|
|
404
|
+
type: "eip7702";
|
|
405
|
+
gasPrice?: undefined | undefined;
|
|
406
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
407
|
+
maxFeePerGas: bigint;
|
|
408
|
+
maxPriorityFeePerGas: bigint;
|
|
409
|
+
isSystemTx?: undefined | undefined;
|
|
410
|
+
mint?: undefined | undefined;
|
|
411
|
+
sourceHash?: undefined | undefined;
|
|
412
|
+
}) & {};
|
|
413
|
+
type: "transaction";
|
|
414
|
+
};
|
|
415
|
+
readonly transactionReceipt: {
|
|
416
|
+
exclude: [] | undefined;
|
|
417
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
418
|
+
blobGasPrice?: bigint | undefined;
|
|
419
|
+
blobGasUsed?: bigint | undefined;
|
|
420
|
+
blockHash: import("viem").Hash;
|
|
421
|
+
blockNumber: bigint;
|
|
422
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
423
|
+
cumulativeGasUsed: bigint;
|
|
424
|
+
effectiveGasPrice: bigint;
|
|
425
|
+
from: import("viem").Address;
|
|
426
|
+
gasUsed: bigint;
|
|
427
|
+
logs: import("viem").Log<bigint, number, false>[];
|
|
428
|
+
logsBloom: import("viem").Hex;
|
|
429
|
+
root?: `0x${string}` | undefined;
|
|
430
|
+
status: "success" | "reverted";
|
|
431
|
+
to: import("viem").Address | null;
|
|
432
|
+
transactionHash: import("viem").Hash;
|
|
433
|
+
transactionIndex: number;
|
|
434
|
+
type: import("viem").TransactionType;
|
|
435
|
+
l1GasPrice: bigint | null;
|
|
436
|
+
l1GasUsed: bigint | null;
|
|
437
|
+
l1Fee: bigint | null;
|
|
438
|
+
l1FeeScalar: number | null;
|
|
439
|
+
} & {};
|
|
440
|
+
type: "transactionReceipt";
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
444
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
445
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
446
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
447
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
448
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
449
|
+
}] | undefined;
|
|
450
|
+
readonly serializers: {
|
|
451
|
+
readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
|
|
452
|
+
};
|
|
453
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
454
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
455
|
+
restart: () => Promise<Response>;
|
|
456
|
+
resetFork: () => Promise<void>;
|
|
457
|
+
} & {
|
|
458
|
+
mode: "anvil";
|
|
459
|
+
} & TestActions>;
|
|
460
|
+
export declare const testClient: {
|
|
461
|
+
mainnet: Client<import("viem").HttpTransport<undefined, false>, {
|
|
462
|
+
readonly fork: {
|
|
463
|
+
readonly blockNumber: 23535880n;
|
|
464
|
+
readonly url: string;
|
|
465
|
+
};
|
|
466
|
+
readonly port: number;
|
|
467
|
+
readonly rpcUrls: {
|
|
468
|
+
readonly default: {
|
|
469
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
470
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
471
|
+
};
|
|
472
|
+
readonly public: {
|
|
473
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
474
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
readonly blockExplorers: {
|
|
478
|
+
readonly default: {
|
|
479
|
+
readonly name: "Etherscan";
|
|
480
|
+
readonly url: "https://etherscan.io";
|
|
481
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
readonly blockTime: 12000;
|
|
485
|
+
readonly contracts: {
|
|
486
|
+
readonly ensUniversalResolver: {
|
|
487
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
488
|
+
readonly blockCreated: 23085558;
|
|
489
|
+
};
|
|
490
|
+
readonly multicall3: {
|
|
491
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
492
|
+
readonly blockCreated: 14353601;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
496
|
+
readonly id: 1;
|
|
497
|
+
readonly name: "Ethereum";
|
|
498
|
+
readonly nativeCurrency: {
|
|
499
|
+
readonly name: "Ether";
|
|
500
|
+
readonly symbol: "ETH";
|
|
501
|
+
readonly decimals: 18;
|
|
502
|
+
};
|
|
503
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
504
|
+
readonly sourceId?: number | undefined | undefined;
|
|
505
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
506
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
507
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
508
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
509
|
+
readonly formatters?: undefined;
|
|
510
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
511
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
512
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
513
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
514
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
515
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
516
|
+
}] | undefined;
|
|
517
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
518
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
519
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
520
|
+
restart: () => Promise<Response>;
|
|
521
|
+
resetFork: () => Promise<void>;
|
|
522
|
+
} & {
|
|
523
|
+
mode: "anvil";
|
|
524
|
+
} & TestActions>;
|
|
525
|
+
mainnet2: Client<import("viem").HttpTransport<undefined, false>, {
|
|
526
|
+
readonly id: 456;
|
|
527
|
+
readonly nativeCurrency: {
|
|
528
|
+
readonly decimals: 18;
|
|
529
|
+
readonly name: "wagmi";
|
|
530
|
+
readonly symbol: "WAG";
|
|
531
|
+
};
|
|
532
|
+
readonly fork: {
|
|
533
|
+
readonly blockNumber: 23535880n;
|
|
534
|
+
readonly url: string;
|
|
535
|
+
};
|
|
536
|
+
readonly port: number;
|
|
537
|
+
readonly rpcUrls: {
|
|
538
|
+
readonly default: {
|
|
539
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
540
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
541
|
+
};
|
|
542
|
+
readonly public: {
|
|
543
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
544
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
readonly blockExplorers: {
|
|
548
|
+
readonly default: {
|
|
549
|
+
readonly name: "Etherscan";
|
|
550
|
+
readonly url: "https://etherscan.io";
|
|
551
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
readonly blockTime: 12000;
|
|
555
|
+
readonly contracts: {
|
|
556
|
+
readonly ensUniversalResolver: {
|
|
557
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
558
|
+
readonly blockCreated: 23085558;
|
|
559
|
+
};
|
|
560
|
+
readonly multicall3: {
|
|
561
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
562
|
+
readonly blockCreated: 14353601;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
566
|
+
readonly name: "Ethereum";
|
|
567
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
568
|
+
readonly sourceId?: number | undefined | undefined;
|
|
569
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
570
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
571
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
572
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
573
|
+
readonly formatters?: undefined;
|
|
574
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
575
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
576
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
577
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
578
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
579
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
580
|
+
}] | undefined;
|
|
581
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
582
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
583
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
584
|
+
restart: () => Promise<Response>;
|
|
585
|
+
resetFork: () => Promise<void>;
|
|
586
|
+
} & {
|
|
587
|
+
mode: "anvil";
|
|
588
|
+
} & TestActions>;
|
|
589
|
+
optimism: Client<import("viem").HttpTransport<undefined, false>, {
|
|
590
|
+
readonly fork: {
|
|
591
|
+
readonly blockNumber: 107317577n;
|
|
592
|
+
readonly url: string;
|
|
593
|
+
};
|
|
594
|
+
readonly port: number;
|
|
595
|
+
readonly rpcUrls: {
|
|
596
|
+
readonly default: {
|
|
597
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
598
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
599
|
+
};
|
|
600
|
+
readonly public: {
|
|
601
|
+
readonly http: readonly [`http://127.0.0.1:${number}/`];
|
|
602
|
+
readonly webSocket: readonly [`ws://127.0.0.1:${number}/`];
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly blockExplorers: {
|
|
606
|
+
readonly default: {
|
|
607
|
+
readonly name: "Optimism Explorer";
|
|
608
|
+
readonly url: "https://optimistic.etherscan.io";
|
|
609
|
+
readonly apiUrl: "https://api-optimistic.etherscan.io/api";
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly blockTime: 2000;
|
|
613
|
+
readonly contracts: {
|
|
614
|
+
readonly disputeGameFactory: {
|
|
615
|
+
readonly 1: {
|
|
616
|
+
readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly l2OutputOracle: {
|
|
620
|
+
readonly 1: {
|
|
621
|
+
readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
readonly multicall3: {
|
|
625
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
626
|
+
readonly blockCreated: 4286263;
|
|
627
|
+
};
|
|
628
|
+
readonly portal: {
|
|
629
|
+
readonly 1: {
|
|
630
|
+
readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
readonly l1StandardBridge: {
|
|
634
|
+
readonly 1: {
|
|
635
|
+
readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
readonly gasPriceOracle: {
|
|
639
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
640
|
+
};
|
|
641
|
+
readonly l1Block: {
|
|
642
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
643
|
+
};
|
|
644
|
+
readonly l2CrossDomainMessenger: {
|
|
645
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
646
|
+
};
|
|
647
|
+
readonly l2Erc721Bridge: {
|
|
648
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
649
|
+
};
|
|
650
|
+
readonly l2StandardBridge: {
|
|
651
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
652
|
+
};
|
|
653
|
+
readonly l2ToL1MessagePasser: {
|
|
654
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
658
|
+
readonly id: 10;
|
|
659
|
+
readonly name: "OP Mainnet";
|
|
660
|
+
readonly nativeCurrency: {
|
|
661
|
+
readonly name: "Ether";
|
|
662
|
+
readonly symbol: "ETH";
|
|
663
|
+
readonly decimals: 18;
|
|
664
|
+
};
|
|
665
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
666
|
+
readonly sourceId: 1;
|
|
667
|
+
readonly testnet?: boolean | undefined | undefined;
|
|
668
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
669
|
+
readonly extendSchema?: Record<string, unknown> | undefined;
|
|
670
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
671
|
+
readonly formatters: {
|
|
672
|
+
readonly block: {
|
|
673
|
+
exclude: [] | undefined;
|
|
674
|
+
format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
|
|
675
|
+
baseFeePerGas: bigint | null;
|
|
676
|
+
blobGasUsed: bigint;
|
|
677
|
+
difficulty: bigint;
|
|
678
|
+
excessBlobGas: bigint;
|
|
679
|
+
extraData: import("viem").Hex;
|
|
680
|
+
gasLimit: bigint;
|
|
681
|
+
gasUsed: bigint;
|
|
682
|
+
hash: `0x${string}` | null;
|
|
683
|
+
logsBloom: `0x${string}` | null;
|
|
684
|
+
miner: import("viem").Address;
|
|
685
|
+
mixHash: import("viem").Hash;
|
|
686
|
+
nonce: `0x${string}` | null;
|
|
687
|
+
number: bigint | null;
|
|
688
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
689
|
+
parentHash: import("viem").Hash;
|
|
690
|
+
receiptsRoot: import("viem").Hex;
|
|
691
|
+
sealFields: import("viem").Hex[];
|
|
692
|
+
sha3Uncles: import("viem").Hash;
|
|
693
|
+
size: bigint;
|
|
694
|
+
stateRoot: import("viem").Hash;
|
|
695
|
+
timestamp: bigint;
|
|
696
|
+
totalDifficulty: bigint | null;
|
|
697
|
+
transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
|
|
698
|
+
transactionsRoot: import("viem").Hash;
|
|
699
|
+
uncles: import("viem").Hash[];
|
|
700
|
+
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
701
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
702
|
+
} & {};
|
|
703
|
+
type: "block";
|
|
704
|
+
};
|
|
705
|
+
readonly transaction: {
|
|
706
|
+
exclude: [] | undefined;
|
|
707
|
+
format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
|
|
708
|
+
blockHash: `0x${string}` | null;
|
|
709
|
+
blockNumber: bigint | null;
|
|
710
|
+
from: import("viem").Address;
|
|
711
|
+
gas: bigint;
|
|
712
|
+
hash: import("viem").Hash;
|
|
713
|
+
input: import("viem").Hex;
|
|
714
|
+
nonce: number;
|
|
715
|
+
r: import("viem").Hex;
|
|
716
|
+
s: import("viem").Hex;
|
|
717
|
+
to: import("viem").Address | null;
|
|
718
|
+
transactionIndex: number | null;
|
|
719
|
+
typeHex: import("viem").Hex | null;
|
|
720
|
+
v: bigint;
|
|
721
|
+
value: bigint;
|
|
722
|
+
yParity: number;
|
|
723
|
+
gasPrice?: undefined | undefined;
|
|
724
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
725
|
+
maxFeePerGas: bigint;
|
|
726
|
+
maxPriorityFeePerGas: bigint;
|
|
727
|
+
isSystemTx?: boolean;
|
|
728
|
+
mint?: bigint | undefined | undefined;
|
|
729
|
+
sourceHash: import("viem").Hex;
|
|
730
|
+
type: "deposit";
|
|
731
|
+
} | {
|
|
732
|
+
r: import("viem").Hex;
|
|
733
|
+
s: import("viem").Hex;
|
|
734
|
+
v: bigint;
|
|
735
|
+
value: bigint;
|
|
736
|
+
gas: bigint;
|
|
737
|
+
to: import("viem").Address | null;
|
|
738
|
+
from: import("viem").Address;
|
|
739
|
+
nonce: number;
|
|
740
|
+
blockHash: `0x${string}` | null;
|
|
741
|
+
blockNumber: bigint | null;
|
|
742
|
+
transactionIndex: number | null;
|
|
743
|
+
hash: import("viem").Hash;
|
|
744
|
+
input: import("viem").Hex;
|
|
745
|
+
typeHex: import("viem").Hex | null;
|
|
746
|
+
accessList?: undefined | undefined;
|
|
747
|
+
authorizationList?: undefined | undefined;
|
|
748
|
+
blobVersionedHashes?: undefined | undefined;
|
|
749
|
+
chainId?: number | undefined;
|
|
750
|
+
yParity?: undefined | undefined;
|
|
751
|
+
type: "legacy";
|
|
752
|
+
gasPrice: bigint;
|
|
753
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
754
|
+
maxFeePerGas?: undefined | undefined;
|
|
755
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
756
|
+
isSystemTx?: undefined | undefined;
|
|
757
|
+
mint?: undefined | undefined;
|
|
758
|
+
sourceHash?: undefined | undefined;
|
|
759
|
+
} | {
|
|
760
|
+
blockHash: `0x${string}` | null;
|
|
761
|
+
blockNumber: bigint | null;
|
|
762
|
+
from: import("viem").Address;
|
|
763
|
+
gas: bigint;
|
|
764
|
+
hash: import("viem").Hash;
|
|
765
|
+
input: import("viem").Hex;
|
|
766
|
+
nonce: number;
|
|
767
|
+
r: import("viem").Hex;
|
|
768
|
+
s: import("viem").Hex;
|
|
769
|
+
to: import("viem").Address | null;
|
|
770
|
+
transactionIndex: number | null;
|
|
771
|
+
typeHex: import("viem").Hex | null;
|
|
772
|
+
v: bigint;
|
|
773
|
+
value: bigint;
|
|
774
|
+
yParity: number;
|
|
775
|
+
accessList: import("viem").AccessList;
|
|
776
|
+
authorizationList?: undefined | undefined;
|
|
777
|
+
blobVersionedHashes?: undefined | undefined;
|
|
778
|
+
chainId: number;
|
|
779
|
+
type: "eip2930";
|
|
780
|
+
gasPrice: bigint;
|
|
781
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
782
|
+
maxFeePerGas?: undefined | undefined;
|
|
783
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
784
|
+
isSystemTx?: undefined | undefined;
|
|
785
|
+
mint?: undefined | undefined;
|
|
786
|
+
sourceHash?: undefined | undefined;
|
|
787
|
+
} | {
|
|
788
|
+
blockHash: `0x${string}` | null;
|
|
789
|
+
blockNumber: bigint | null;
|
|
790
|
+
from: import("viem").Address;
|
|
791
|
+
gas: bigint;
|
|
792
|
+
hash: import("viem").Hash;
|
|
793
|
+
input: import("viem").Hex;
|
|
794
|
+
nonce: number;
|
|
795
|
+
r: import("viem").Hex;
|
|
796
|
+
s: import("viem").Hex;
|
|
797
|
+
to: import("viem").Address | null;
|
|
798
|
+
transactionIndex: number | null;
|
|
799
|
+
typeHex: import("viem").Hex | null;
|
|
800
|
+
v: bigint;
|
|
801
|
+
value: bigint;
|
|
802
|
+
yParity: number;
|
|
803
|
+
accessList: import("viem").AccessList;
|
|
804
|
+
authorizationList?: undefined | undefined;
|
|
805
|
+
blobVersionedHashes?: undefined | undefined;
|
|
806
|
+
chainId: number;
|
|
807
|
+
type: "eip1559";
|
|
808
|
+
gasPrice?: undefined | undefined;
|
|
809
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
810
|
+
maxFeePerGas: bigint;
|
|
811
|
+
maxPriorityFeePerGas: bigint;
|
|
812
|
+
isSystemTx?: undefined | undefined;
|
|
813
|
+
mint?: undefined | undefined;
|
|
814
|
+
sourceHash?: undefined | undefined;
|
|
815
|
+
} | {
|
|
816
|
+
blockHash: `0x${string}` | null;
|
|
817
|
+
blockNumber: bigint | null;
|
|
818
|
+
from: import("viem").Address;
|
|
819
|
+
gas: bigint;
|
|
820
|
+
hash: import("viem").Hash;
|
|
821
|
+
input: import("viem").Hex;
|
|
822
|
+
nonce: number;
|
|
823
|
+
r: import("viem").Hex;
|
|
824
|
+
s: import("viem").Hex;
|
|
825
|
+
to: import("viem").Address | null;
|
|
826
|
+
transactionIndex: number | null;
|
|
827
|
+
typeHex: import("viem").Hex | null;
|
|
828
|
+
v: bigint;
|
|
829
|
+
value: bigint;
|
|
830
|
+
yParity: number;
|
|
831
|
+
accessList: import("viem").AccessList;
|
|
832
|
+
authorizationList?: undefined | undefined;
|
|
833
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
|
834
|
+
chainId: number;
|
|
835
|
+
type: "eip4844";
|
|
836
|
+
gasPrice?: undefined | undefined;
|
|
837
|
+
maxFeePerBlobGas: bigint;
|
|
838
|
+
maxFeePerGas: bigint;
|
|
839
|
+
maxPriorityFeePerGas: bigint;
|
|
840
|
+
isSystemTx?: undefined | undefined;
|
|
841
|
+
mint?: undefined | undefined;
|
|
842
|
+
sourceHash?: undefined | undefined;
|
|
843
|
+
} | {
|
|
844
|
+
blockHash: `0x${string}` | null;
|
|
845
|
+
blockNumber: bigint | null;
|
|
846
|
+
from: import("viem").Address;
|
|
847
|
+
gas: bigint;
|
|
848
|
+
hash: import("viem").Hash;
|
|
849
|
+
input: import("viem").Hex;
|
|
850
|
+
nonce: number;
|
|
851
|
+
r: import("viem").Hex;
|
|
852
|
+
s: import("viem").Hex;
|
|
853
|
+
to: import("viem").Address | null;
|
|
854
|
+
transactionIndex: number | null;
|
|
855
|
+
typeHex: import("viem").Hex | null;
|
|
856
|
+
v: bigint;
|
|
857
|
+
value: bigint;
|
|
858
|
+
yParity: number;
|
|
859
|
+
accessList: import("viem").AccessList;
|
|
860
|
+
authorizationList: import("viem").SignedAuthorizationList;
|
|
861
|
+
blobVersionedHashes?: undefined | undefined;
|
|
862
|
+
chainId: number;
|
|
863
|
+
type: "eip7702";
|
|
864
|
+
gasPrice?: undefined | undefined;
|
|
865
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
866
|
+
maxFeePerGas: bigint;
|
|
867
|
+
maxPriorityFeePerGas: bigint;
|
|
868
|
+
isSystemTx?: undefined | undefined;
|
|
869
|
+
mint?: undefined | undefined;
|
|
870
|
+
sourceHash?: undefined | undefined;
|
|
871
|
+
}) & {};
|
|
872
|
+
type: "transaction";
|
|
873
|
+
};
|
|
874
|
+
readonly transactionReceipt: {
|
|
875
|
+
exclude: [] | undefined;
|
|
876
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
877
|
+
blobGasPrice?: bigint | undefined;
|
|
878
|
+
blobGasUsed?: bigint | undefined;
|
|
879
|
+
blockHash: import("viem").Hash;
|
|
880
|
+
blockNumber: bigint;
|
|
881
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
882
|
+
cumulativeGasUsed: bigint;
|
|
883
|
+
effectiveGasPrice: bigint;
|
|
884
|
+
from: import("viem").Address;
|
|
885
|
+
gasUsed: bigint;
|
|
886
|
+
logs: import("viem").Log<bigint, number, false>[];
|
|
887
|
+
logsBloom: import("viem").Hex;
|
|
888
|
+
root?: `0x${string}` | undefined;
|
|
889
|
+
status: "success" | "reverted";
|
|
890
|
+
to: import("viem").Address | null;
|
|
891
|
+
transactionHash: import("viem").Hash;
|
|
892
|
+
transactionIndex: number;
|
|
893
|
+
type: import("viem").TransactionType;
|
|
894
|
+
l1GasPrice: bigint | null;
|
|
895
|
+
l1GasUsed: bigint | null;
|
|
896
|
+
l1Fee: bigint | null;
|
|
897
|
+
l1FeeScalar: number | null;
|
|
898
|
+
} & {};
|
|
899
|
+
type: "transactionReceipt";
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
readonly prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
903
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
904
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
905
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
906
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
907
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
908
|
+
}] | undefined;
|
|
909
|
+
readonly serializers: {
|
|
910
|
+
readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
|
|
911
|
+
};
|
|
912
|
+
readonly verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
913
|
+
}, undefined, TestRpcSchema<"anvil">, {
|
|
914
|
+
restart: () => Promise<Response>;
|
|
915
|
+
resetFork: () => Promise<void>;
|
|
916
|
+
} & {
|
|
917
|
+
mode: "anvil";
|
|
918
|
+
} & TestActions>;
|
|
919
|
+
};
|
|
920
|
+
//# sourceMappingURL=clients.d.ts.map
|