Skip to content

Commit 40ea874

Browse files
committed
fix
1 parent 17c3549 commit 40ea874

File tree

200 files changed

+2090
-2375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+2090
-2375
lines changed

scripts/gen_output/help.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,6 @@ fn preprocess_help(s: &str) -> Cow<'_, str> {
286286
vec![
287287
// Convert URLs in angle brackets to markdown links
288288
(Regex::new(r"<(https?://[^>]+)>").unwrap(), "[$1]($1)"),
289-
// Escape comparison operators
290-
(Regex::new(r" <= ").unwrap(), " &lt;= "),
291-
(Regex::new(r" >= ").unwrap(), " &gt;= "),
292-
// Escape remaining angle brackets that might be interpreted as HTML/JSX
293-
(Regex::new(r"<([^>]+)>").unwrap(), "&lt;$1&gt;"),
294289
]
295290
});
296291

vocs/docs/pages/anvil/reference/anvil.mdx

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -15,81 +15,81 @@ Commands:
1515
help Print this message or the help of the given subcommand(s)
1616
1717
Options:
18-
-a, --accounts &lt;NUM&gt;
18+
-a, --accounts <NUM>
1919
Number of dev accounts to generate and configure
2020
2121
[default: 10]
2222
23-
-b, --block-time &lt;SECONDS&gt;
23+
-b, --block-time <SECONDS>
2424
Block time in seconds for interval mining
2525
26-
[aliases: --blockTime]
26+
[aliases: blockTime]
2727
28-
--balance &lt;NUM&gt;
28+
--balance <NUM>
2929
The balance of every dev account in Ether
3030
3131
[default: 10000]
3232
33-
--config-out &lt;FILE&gt;
33+
--config-out <FILE>
3434
Writes output of `anvil` as json to user-specified file
3535
36-
--derivation-path &lt;DERIVATION_PATH&gt;
36+
--derivation-path <DERIVATION_PATH>
3737
Sets the derivation path of the child key to be derived.
3838
3939
[default: m/44'/60'/0'/0/]
4040
41-
--dump-state &lt;PATH&gt;
41+
--dump-state <PATH>
4242
Dump the state and block environment of chain on exit to the given
4343
file.
4444
4545
If the value is a directory, the state will be written to
46-
`&lt;VALUE&gt;/state.json`.
46+
`<VALUE>/state.json`.
4747
4848
-h, --help
4949
Print help (see a summary with '-h')
5050
51-
--hardfork &lt;HARDFORK&gt;
51+
--hardfork <HARDFORK>
5252
The EVM hardfork to use.
5353
54-
Choose the hardfork by name, e.g. `prague`, `cancun`, `shanghai`,
55-
`paris`, `london`, etc... [default: latest]
54+
Choose the hardfork by name, e.g. `cancun`, `shanghai`, `paris`,
55+
`london`, etc... [default: latest]
5656
57-
--init &lt;PATH&gt;
57+
--init <PATH>
5858
Initialize the genesis block with the given `genesis.json` file
5959
60-
--ipc [&lt;PATH&gt;]
60+
--ipc [<PATH>]
6161
Launch an ipc server at the given path or default path =
6262
`/tmp/anvil.ipc`
6363
64-
[aliases: --ipcpath]
64+
[aliases: ipcpath]
6565
66-
-j, --threads &lt;THREADS&gt;
66+
-j, --threads <THREADS>
6767
Number of threads to use. Specifying 0 defaults to the number of
6868
logical cores
6969
70-
[aliases: --jobs]
70+
[aliases: jobs]
7171
72-
--load-state &lt;PATH&gt;
72+
--load-state <PATH>
7373
Initialize the chain from a previously saved state snapshot
7474
75-
-m, --mnemonic &lt;MNEMONIC&gt;
75+
-m, --mnemonic <MNEMONIC>
7676
BIP39 mnemonic phrase used for generating accounts. Cannot be used if
7777
`mnemonic_random` or `mnemonic_seed` are used
7878
79-
--max-persisted-states &lt;MAX_PERSISTED_STATES&gt;
79+
--max-persisted-states <MAX_PERSISTED_STATES>
8080
Max number of states to persist on disk.
8181
8282
Note that `prune_history` will overwrite `max_persisted_states` to 0.
8383
8484
--mixed-mining
85-
[aliases: --mixed-mining]
85+
[aliases: mixed-mining]
8686
87-
--mnemonic-random [&lt;MNEMONIC_RANDOM&gt;]
87+
--mnemonic-random [<MNEMONIC_RANDOM>]
8888
Automatically generates a BIP39 mnemonic phrase, and derives accounts
8989
from it. Cannot be used with other `mnemonic` options. You can specify
9090
the number of words you want in the mnemonic. [default: 12]
9191
92-
--mnemonic-seed-unsafe &lt;MNEMONIC_SEED&gt;
92+
--mnemonic-seed-unsafe <MNEMONIC_SEED>
9393
Generates a BIP39 mnemonic phrase from a given seed Cannot be used
9494
with other `mnemonic` options.
9595
@@ -99,17 +99,17 @@ Options:
9999
--no-mining
100100
Disable auto and interval mining, and mine on demand instead
101101
102-
[aliases: --no-mine]
102+
[aliases: no-mine]
103103
104-
--number &lt;NUM&gt;
104+
--number <NUM>
105105
The number of the genesis block
106106
107-
--order &lt;ORDER&gt;
107+
--order <ORDER>
108108
How transactions are sorted in the mempool
109109
110110
[default: fees]
111111
112-
-p, --port &lt;NUM&gt;
112+
-p, --port <NUM>
113113
Port number to listen on
114114
115115
[default: 8545]
@@ -124,41 +124,41 @@ Options:
124124
`--load-state` / `--state`, and aids in RPC calls beyond the block at
125125
which state was dumped.
126126
127-
--prune-history [&lt;PRUNE_HISTORY&gt;]
127+
--prune-history [<PRUNE_HISTORY>]
128128
Don't keep full chain history. If a number argument is specified, at
129129
most this number of states is kept in memory.
130130
131131
If enabled, no state will be persisted on disk, so
132132
`max_persisted_states` will be 0.
133133
134-
-s, --state-interval &lt;SECONDS&gt;
134+
-s, --state-interval <SECONDS>
135135
Interval in seconds at which the state and block environment is to be
136136
dumped to disk.
137137
138138
See --state and --dump-state
139139
140-
--slots-in-an-epoch &lt;SLOTS_IN_AN_EPOCH&gt;
140+
--slots-in-an-epoch <SLOTS_IN_AN_EPOCH>
141141
Slots in an epoch
142142
143143
[default: 32]
144144
145-
--state &lt;PATH&gt;
145+
--state <PATH>
146146
This is an alias for both --load-state and --dump-state.
147147
148148
It initializes the chain with the state and block environment stored
149149
at the file, if it exists, and dumps the chain's state on exit.
150150
151-
--timestamp &lt;NUM&gt;
151+
--timestamp <NUM>
152152
The timestamp of the genesis block
153153
154-
--transaction-block-keeper &lt;TRANSACTION_BLOCK_KEEPER&gt;
154+
--transaction-block-keeper <TRANSACTION_BLOCK_KEEPER>
155155
Number of blocks with transactions to keep in memory
156156
157157
-V, --version
158158
Print version
159159
160160
Display options:
161-
--color &lt;COLOR&gt;
161+
--color <COLOR>
162162
The color of the log messages
163163
164164
Possible values:
@@ -188,15 +188,15 @@ Display options:
188188
including storage changes.
189189
190190
Server options:
191-
--allow-origin &lt;ALLOW_ORIGIN&gt;
191+
--allow-origin <ALLOW_ORIGIN>
192192
The cors `allow_origin` header
193193
194194
[default: *]
195195
196-
--cache-path &lt;PATH&gt;
196+
--cache-path <PATH>
197197
Path to the cache directory where states are stored
198198
199-
--host &lt;IP_ADDR&gt;
199+
--host <IP_ADDR>
200200
The hosts the server will listen on
201201
202202
[env: ANVIL_IP_ADDR=]
@@ -210,7 +210,7 @@ Server options:
210210
default limit is 2MB
211211
212212
Fork config:
213-
--compute-units-per-second &lt;CUPS&gt;
213+
--compute-units-per-second <CUPS>
214214
Sets the number of assumed available compute units per second for this
215215
provider
216216
@@ -219,43 +219,43 @@ Fork config:
219219
See also --fork-url and
220220
[https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second](https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second)
221221
222-
-f, --fork-url &lt;URL&gt;
222+
-f, --fork-url <URL>
223223
Fetch state over a remote endpoint instead of starting from an empty
224224
state.
225225
226226
If you want to fetch state from a specific block number, add a block
227227
number like `http://localhost:8545@1400000` or use the
228228
`--fork-block-number` argument.
229229
230-
[aliases: --rpc-url]
230+
[aliases: rpc-url]
231231
232-
--fork-block-number &lt;BLOCK&gt;
232+
--fork-block-number <BLOCK>
233233
Fetch state from a specific block number over a remote endpoint.
234234
235235
If negative, the given value is subtracted from the `latest` block
236236
number.
237237
238238
See --fork-url.
239239
240-
--fork-chain-id &lt;CHAIN&gt;
240+
--fork-chain-id <CHAIN>
241241
Specify chain id to skip fetching it from remote endpoint. This
242242
enables offline-start mode.
243243
244244
You still must pass both `--fork-url` and `--fork-block-number`, and
245245
already have your required state cached on disk, anything missing
246246
locally would be fetched from the remote.
247247
248-
--fork-header &lt;HEADERS&gt;
248+
--fork-header <HEADERS>
249249
Headers to use for the rpc client, e.g. "User-Agent: test-agent"
250250
251251
See --fork-url.
252252
253-
--fork-retry-backoff &lt;BACKOFF&gt;
253+
--fork-retry-backoff <BACKOFF>
254254
Initial retry backoff on encountering errors.
255255
256256
See --fork-url.
257257
258-
--fork-transaction-hash &lt;TRANSACTION&gt;
258+
--fork-transaction-hash <TRANSACTION>
259259
Fetch state from a specific transaction hash over a remote endpoint.
260260
261261
See --fork-url.
@@ -268,7 +268,7 @@ Fork config:
268268
See also --fork-url and
269269
[https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second](https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second)
270270
271-
[aliases: --no-rpc-rate-limit]
271+
[aliases: no-rpc-rate-limit]
272272
273273
--no-storage-caching
274274
Explicitly disables the use of RPC caching.
@@ -279,46 +279,46 @@ Fork config:
279279
280280
See --fork-url.
281281
282-
--retries &lt;retries&gt;
282+
--retries <retries>
283283
Number of retry requests for spurious networks (timed out requests)
284284
285285
Default value 5
286286
287-
--timeout &lt;timeout&gt;
287+
--timeout <timeout>
288288
Timeout in ms for requests sent to remote JSON-RPC server in forking
289289
mode.
290290
291291
Default value 45000
292292
293293
Environment config:
294-
--block-base-fee-per-gas &lt;FEE&gt;
294+
--block-base-fee-per-gas <FEE>
295295
The base fee in a block
296296
297-
[aliases: --base-fee]
297+
[aliases: base-fee]
298298
299-
--chain-id &lt;CHAIN_ID&gt;
299+
--chain-id <CHAIN_ID>
300300
The chain ID
301301
302-
--code-size-limit &lt;CODE_SIZE&gt;
302+
--code-size-limit <CODE_SIZE>
303303
EIP-170: Contract code size limit in bytes. Useful to increase this
304304
because of tests. To disable entirely, use
305305
`--disable-code-size-limit`. By default, it is 0x6000 (~25kb)
306306
307307
--disable-block-gas-limit
308-
Disable the `call.gas_limit &lt;= block.gas_limit` constraint
308+
Disable the `call.gas_limit <= block.gas_limit` constraint
309309
310310
--disable-code-size-limit
311311
Disable EIP-170: Contract code size limit
312312
313313
--disable-min-priority-fee
314314
Disable the enforcement of a minimum suggested priority fee
315315
316-
[aliases: --no-priority-fee]
316+
[aliases: no-priority-fee]
317317
318-
--gas-limit &lt;GAS_LIMIT&gt;
318+
--gas-limit <GAS_LIMIT>
319319
The block gas limit
320320
321-
--gas-price &lt;GAS_PRICE&gt;
321+
--gas-price <GAS_PRICE>
322322
The gas price
323323
324324
EVM options:
@@ -327,19 +327,19 @@ EVM options:
327327
transaction sender to be simulated as different accounts, which is
328328
useful for testing contract behavior
329329
330-
[aliases: --auto-unlock]
330+
[aliases: auto-unlock]
331331
332332
--disable-console-log
333333
Disable printing of `console.log` invocations to stdout
334334
335-
[aliases: --no-console-log]
335+
[aliases: no-console-log]
336336
337337
--disable-default-create2-deployer
338338
Disable the default create2 deployer
339339
340-
[aliases: --no-create2]
340+
[aliases: no-create2]
341341
342-
--memory-limit &lt;MEMORY_LIMIT&gt;
342+
--memory-limit <MEMORY_LIMIT>
343343
The memory limit per EVM execution in bytes
344344
345345
--odyssey
@@ -348,16 +348,16 @@ EVM options:
348348
--optimism
349349
Run an Optimism chain
350350
351-
[aliases: --optimism]
351+
[aliases: optimism]
352352
353353
--print-traces
354354
Enable printing of traces for executed transactions and `eth_call` to
355355
stdout
356356
357-
[aliases: --enable-trace-printing]
357+
[aliases: enable-trace-printing]
358358
359359
--steps-tracing
360360
Enable steps tracing used for debug calls returning geth-style traces
361361
362-
[aliases: --tracing]
362+
[aliases: tracing]
363363
```

0 commit comments

Comments
 (0)