You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Note that the configured fork chains are subsections of the `[fork]` section of 'foundry.toml'.
2191
2191
#[cheatcode(group = Forking)]
2192
-
function forkChains() external view returns (string[] memory);
2192
+
function readForkChains() external view returns (string[] memory);
2193
2193
2194
2194
/// Returns an array with the ids of all the configured fork chains.
2195
2195
///
2196
2196
/// Note that the configured fork chains are subsections of the `[fork]` section of 'foundry.toml'.
2197
2197
#[cheatcode(group = Forking)]
2198
-
function forkChainIds() external view returns (uint256[] memory);
2198
+
function readForkChainIds() external view returns (uint256[] memory);
2199
2199
2200
2200
/// Returns the chain name of the currently selected fork.
2201
2201
#[cheatcode(group = Forking)]
2202
-
function forkChain() external view returns (string memory);
2202
+
function readForkChain() external view returns (string memory);
2203
2203
2204
2204
/// Returns the chain id of the currently selected fork.
2205
2205
#[cheatcode(group = Forking)]
2206
-
function forkChainId() external view returns (uint256);
2206
+
function readForkChainId() external view returns (uint256);
2207
2207
2208
2208
/// Returns the rpc url of the currently selected fork.
2209
2209
///
2210
2210
/// By default, the rpc url of each fork is derived from the `[rpc_endpoints]`, unless
2211
2211
/// the rpc config is specifically informed in the fork config for that specific chain.
2212
2212
#[cheatcode(group = Forking)]
2213
-
function forkRpcUrl() external view returns (string memory);
2213
+
function readForkRpcUrl() external view returns (string memory);
2214
2214
2215
2215
/// Returns the rpc url of the corresponding chain id.
2216
2216
///
2217
2217
/// By default, the rpc url of each fork is derived from the `[rpc_endpoints]`, unless
2218
2218
/// the rpc config is specifically informed in the fork config for that specific chain.
2219
2219
#[cheatcode(group = Forking)]
2220
-
function forkChainRpcUrl(uint256 id) external view returns (string memory);
2220
+
function readForkChainRpcUrl(uint256 id) external view returns (string memory);
2221
2221
2222
-
/// Gets the value for the key `key` from the currently active fork and parses it as `bool`.
2222
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as `bool`.
2223
2223
/// Reverts if the key was not found or the value could not be parsed.
2224
2224
#[cheatcode(group = Forking)]
2225
-
function forkBool(string calldata key) external view returns (bool);
2225
+
function readForkBool(string calldata key) external view returns (bool);
2226
2226
2227
-
/// Gets the value for the key `key` from the fork config for chain `chain` and parses it as `bool`.
2227
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as `bool`.
2228
2228
/// Reverts if the key was not found or the value could not be parsed.
2229
2229
#[cheatcode(group = Forking)]
2230
-
function forkChainBool(uint256 chain, string calldata key) external view returns (bool);
2230
+
function readForkChainBool(uint256 chain, string calldata key) external view returns (bool);
2231
2231
2232
-
/// Gets the value for the key `key` from the currently active fork and parses it as `int256`.
2232
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `bool`.
2233
+
/// Reverts if a key was not found or any of the values could not be parsed.
2234
+
#[cheatcode(group = Forking)]
2235
+
function readForkBoolArray(string calldata key) external view returns (bool[] memory);
2236
+
2237
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `bool`.
2238
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as `int256`.
2233
2243
/// Reverts if the key was not found or the value could not be parsed.
2234
2244
#[cheatcode(group = Forking)]
2235
-
function forkInt(string calldata key) external view returns (int256);
2245
+
function readForkInt(string calldata key) external view returns (int256);
2236
2246
2237
-
/// Gets the value for the key `key` from the fork config for chain `chain` and parses it as `int256`.
2247
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as `int256`.
2238
2248
/// Reverts if the key was not found or the value could not be parsed.
2239
2249
#[cheatcode(group = Forking)]
2240
-
function forkChainInt(uint256 chain, string calldata key) external view returns (int256);
2250
+
function readForkChainInt(uint256 chain, string calldata key) external view returns (int256);
2251
+
2252
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `int256`.
2253
+
/// Reverts if a key was not found or any of the values could not be parsed.
2254
+
#[cheatcode(group = Forking)]
2255
+
function readForkIntArray(string calldata key) external view returns (int256[] memory);
2256
+
2257
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `int256`.
2258
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the currently active fork and parses it as `uint256`.
2262
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as `uint256`.
2243
2263
/// Reverts if the key was not found or the value could not be parsed.
2244
2264
#[cheatcode(group = Forking)]
2245
-
function forkUint(string calldata key) external view returns (uint256);
2265
+
function readForkUint(string calldata key) external view returns (uint256);
2246
2266
2247
-
/// Gets the value for the key `key` from the fork config for chain `chain` and parses it as `uint256`.
2267
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as `uint256`.
2248
2268
/// Reverts if the key was not found or the value could not be parsed.
2249
2269
#[cheatcode(group = Forking)]
2250
-
function forkChainUint(uint256 chain, string calldata key) external view returns (uint256);
2270
+
function readForkChainUint(uint256 chain, string calldata key) external view returns (uint256);
2271
+
2272
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `uint256`.
2273
+
/// Reverts if a key was not found or any of the values could not be parsed.
2274
+
#[cheatcode(group = Forking)]
2275
+
function readForkUintArray(string calldata key) external view returns (uint256[] memory);
2251
2276
2252
-
/// Gets the value for the key `key` from the currently active fork and parses it as `address`.
2277
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `uint256`.
2278
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as `address`.
2253
2283
/// Reverts if the key was not found or the value could not be parsed.
2254
2284
#[cheatcode(group = Forking)]
2255
-
function forkAddress(string calldata key) external view returns (address);
2285
+
function readForkAddress(string calldata key) external view returns (address);
2256
2286
2257
-
/// Gets the value for the key `key` from the fork config for chain `chain` and parses it as `address`.
2287
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as `address`.
2258
2288
/// Reverts if the key was not found or the value could not be parsed.
2259
2289
#[cheatcode(group = Forking)]
2260
-
function forkChainAddress(uint256 chain, string calldata key) external view returns (address);
2290
+
function readForkChainAddress(uint256 chain, string calldata key) external view returns (address);
2291
+
2292
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `address`.
2293
+
/// Reverts if a key was not found or any of the values could not be parsed.
2294
+
#[cheatcode(group = Forking)]
2295
+
function readForkAddressArray(string calldata key) external view returns (address[] memory);
2261
2296
2262
-
/// Gets the value for the key `key` from the currently active fork and parses it as `bytes32`.
2297
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `address`.
2298
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as `bytes32`.
2263
2303
/// Reverts if the key was not found or the value could not be parsed.
2264
2304
#[cheatcode(group = Forking)]
2265
-
function forkBytes32(string calldata key) external view returns (bytes32);
2305
+
function readForkBytes32(string calldata key) external view returns (bytes32);
2266
2306
2267
-
/// Gets the value for the key `key` from the fork config for chain `chain` and parses it as `bytes32`.
2307
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as `bytes32`.
2268
2308
/// Reverts if the key was not found or the value could not be parsed.
2269
2309
#[cheatcode(group = Forking)]
2270
-
function forkChainBytes32(uint256 chain, string calldata key) external view returns (bytes32);
2310
+
function readForkChainBytes32(uint256 chain, string calldata key) external view returns (bytes32);
2311
+
2312
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `bytes32`.
2313
+
/// Reverts if a key was not found or any of the values could not be parsed.
2314
+
#[cheatcode(group = Forking)]
2315
+
function readForkBytes32Array(string calldata key) external view returns (bytes32[] memory);
2271
2316
2272
-
/// Gets the value for the key `key` from the currently active fork and parses it as `string`.
2317
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `bytes32`.
2318
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `string`.
2333
+
/// Reverts if a key was not found or any of the values could not be parsed.
2334
+
#[cheatcode(group = Forking)]
2335
+
function readForkStringArray(string calldata key) external view returns (string[] memory);
2336
+
2337
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `string`.
2338
+
/// Reverts if a key was not found or any of the values could not be parsed.
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the currently active fork and parses it as an array of `bytes`.
2353
+
/// Reverts if a key was not found or any of the values could not be parsed.
2354
+
#[cheatcode(group = Forking)]
2355
+
function readForkBytesArray(string calldata key) external view returns (bytes[] memory);
2356
+
2357
+
/// Gets the value for the key `key` from the `[fork.<chain>]` section of `foundry.toml` for the specified chain and parses it as an array of `bytes`.
2358
+
/// Reverts if a key was not found or any of the values could not be parsed.
0 commit comments