Skip to content

Commit 59b61df

Browse files
committed
docs: make gen-doc
1 parent 48ec271 commit 59b61df

9 files changed

+42
-42
lines changed

doc/polycli_dumpblocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ To solve this, add the unknown fields to the `.proto` files and recompile them (
7474
## Flags
7575

7676
```bash
77-
-b, --batch-size uint the batch size. Realistically, this probably shouldn't be bigger than 999. Most providers seem to cap at 1000 (default 150)
77+
-b, --batch-size uint batch size for requests (most providers cap at 1000) (default 150)
7878
-c, --concurrency uint how many go routines to leverage (default 1)
7979
-B, --dump-blocks dump blocks to output (default true)
8080
--dump-receipts dump receipts to output (default true)

doc/polycli_loadtest.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -79,45 +79,45 @@ The codebase has a contract that used for load testing. It's written in Solidity
7979
## Flags
8080

8181
```bash
82-
--account-funding-amount big.Int the amount in wei to fund the sending accounts with. Set to 0 to disable account funding (useful for eth-call-only mode or pre-funded accounts)
82+
--account-funding-amount big.Int amount in wei to fund sending accounts (set to 0 to disable)
8383
--adaptive-backoff-factor float multiplicative decrease factor for adaptive rate limiting (default 2)
8484
--adaptive-cycle-duration-seconds uint interval in seconds to check queue size and adjust rates for adaptive rate limiting (default 10)
8585
--adaptive-rate-limit enable AIMD-style congestion control to automatically adjust request rate
8686
--adaptive-rate-limit-increment uint size of additive increases for adaptive rate limiting (default 50)
8787
--adaptive-target-size uint target queue size for adaptive rate limiting (speed up if smaller, back off if larger) (default 1000)
88-
--batch-size uint number of batches to perform at a time for receipt fetching. Default is 999 requests at a time (default 999)
88+
--batch-size uint batch size for receipt fetching (default: 999) (default 999)
8989
--blob-fee-cap uint blob fee cap, or maximum blob fee per chunk, in Gwei (default 100000)
90-
--calldata string hex encoded calldata passed in. Format is function signature + arguments encoded together. This must be paired up with --mode contract-call and --contract-address
90+
--calldata string hex encoded calldata: function signature + encoded arguments (requires --mode contract-call and --contract-address)
9191
--chain-id uint chain ID for the transactions
92-
-c, --concurrency int number of requests to perform concurrently. Default is one request at a time (default 1)
93-
--contract-address string address of contract that will be used in --mode contract-call. This must be paired up with --mode contract-call and --calldata
92+
-c, --concurrency int number of requests to perform concurrently (default: one at a time) (default 1)
93+
--contract-address string contract address for --mode contract-call (requires --calldata)
9494
--contract-call-payable mark function as payable using value from --eth-amount-in-wei (requires --mode contract-call and --contract-address)
9595
--erc20-address string address of pre-deployed ERC20 contract
9696
--erc721-address string address of pre-deployed ERC721 contract
9797
--eth-amount-in-wei uint amount of ether in wei to send per transaction
9898
--eth-call-only call contracts without sending transactions (incompatible with adaptive rate limiting and summarization)
9999
--eth-call-only-latest execute on latest block instead of original block in call-only mode with recall
100100
--fire-and-forget send transactions and load without waiting for it to be mined
101-
--gas-limit uint in environments where the gas limit can't be computed on the fly, we can specify it manually. This can also be used to avoid eth_estimateGas
102-
--gas-price uint in environments where the gas price can't be determined automatically, we can specify it manually
101+
--gas-limit uint manually specify gas limit (useful to avoid eth_estimateGas or when auto-computation fails)
102+
--gas-price uint manually specify gas price (useful when auto-detection fails)
103103
--gas-price-multiplier float a multiplier to increase or decrease the gas price (default 1)
104104
-h, --help help for loadtest
105105
--legacy send a legacy transaction instead of an EIP1559 transaction
106106
--loadtest-contract-address string address of pre-deployed load test contract
107107
--max-base-fee-wei uint maximum base fee in wei (pause sending new transactions when exceeded, useful during network congestion)
108-
-m, --mode strings the testing mode to use. It can be multiple like: "d,t"
109-
2, erc20 - Send ERC20 tokens
110-
7, erc721 - Mint ERC721 tokens
111-
b, blob - Send blob transactions
112-
cc, contract-call - Make contract calls
113-
d, deploy - Deploy contracts
114-
inc, increment - Increment a counter
115-
r, random - Random modes (does not include the following modes: blob, call, inscription, recall, rpc, uniswapv3)
116-
R, recall - Replay or simulate transactions
117-
rpc - Call random rpc methods
118-
s, store - Store bytes in a dynamic byte array
119-
t, transaction - Send transactions
120-
v3, uniswapv3 - Perform UniswapV3 swaps (default [t])
108+
-m, --mode strings testing mode (can specify multiple like "d,t"):
109+
2, erc20 - send ERC20 tokens
110+
7, erc721 - mint ERC721 tokens
111+
b, blob - send blob transactions
112+
cc, contract-call - make contract calls
113+
d, deploy - deploy contracts
114+
inc, increment - increment a counter
115+
r, random - random modes (excludes: blob, call, inscription, recall, rpc, uniswapv3)
116+
R, recall - replay or simulate transactions
117+
rpc - call random rpc methods
118+
s, store - store bytes in a dynamic byte array
119+
t, transaction - send transactions
120+
v3, uniswapv3 - perform UniswapV3 swaps (default [t])
121121
--nonce uint use this flag to manually set the starting nonce
122122
--output-mode string format mode for summary output (json | text) (default "text")
123123
--output-raw-tx-only output raw signed transaction hex without sending (works with most modes except RPC and UniswapV3)
@@ -126,20 +126,20 @@ The codebase has a contract that used for load testing. It's written in Solidity
126126
--private-key string hex encoded private key to use for sending transactions (default "42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa")
127127
--proxy string use the proxy specified
128128
--random-recipients send to random addresses instead of fixed address in transfer tests
129-
--rate-limit float an overall limit to the number of requests per second. Give a number less than zero to remove this limit all together (default 4)
129+
--rate-limit float requests per second limit (use negative value to remove limit) (default 4)
130130
--recall-blocks uint number of blocks that we'll attempt to fetch for recall (default 50)
131-
--receipt-retry-initial-delay-ms uint initial delay in milliseconds for receipt polling retry. Uses exponential backoff with jitter (default 100)
131+
--receipt-retry-initial-delay-ms uint initial delay in milliseconds for receipt polling (uses exponential backoff with jitter) (default 100)
132132
--receipt-retry-max uint maximum polling attempts for transaction receipt with --wait-for-receipt (default 30)
133133
--refund-remaining-funds refund remaining balance to funding account after completion
134-
-n, --requests int number of requests to perform for the benchmarking session. The default is to just perform a single request which usually leads to non-representative benchmarking results (default 1)
134+
-n, --requests int number of requests to perform for the benchmarking session (default of 1 leads to non-representative results) (default 1)
135135
-r, --rpc-url string the RPC endpoint URL (default "http://localhost:8545")
136136
--seed int a seed for generating random values and addresses (default 123456)
137137
--send-only alias for --fire-and-forget
138-
--sending-accounts-count uint number of sending accounts to use. This is useful for avoiding pool account queue
139-
--sending-accounts-file string file containing sending accounts private keys, one per line. This is useful for avoiding pool account queue but also to keep same sending accounts for different execution cycles
138+
--sending-accounts-count uint number of sending accounts to use (avoids pool account queue)
139+
--sending-accounts-file string file with sending account private keys, one per line (avoids pool queue and preserves accounts across runs)
140140
--store-data-size uint number of bytes to store in contract for store mode (default 1024)
141141
--summarize produce execution summary after load test (can take a long time for large tests)
142-
-t, --time-limit int maximum number of seconds to spend for benchmarking. Use this to benchmark within a fixed total amount of time. Per default there is no time limit (default -1)
142+
-t, --time-limit int maximum seconds to spend benchmarking (default: no limit) (default -1)
143143
--to-address string recipient address for transactions (default "0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF")
144144
--wait-for-receipt wait for transaction receipt to be mined instead of just sending
145145
```

doc/polycli_loadtest_uniswapv3.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Contracts are cloned from the different Uniswap repositories, compiled with a sp
5454

5555
```bash
5656
-h, --help help for uniswapv3
57-
-f, --pool-fees float trading fees charged on each swap or trade made within a UniswapV3 liquidity pool (e.g. 0.3 means 0.3%) (default 0.3)
57+
-f, --pool-fees float trading fees for UniswapV3 liquidity pool swaps (e.g. 0.3 means 0.3%) (default 0.3)
5858
-a, --swap-amount uint amount of inbound token given as swap input (default 1000)
5959
--uniswap-factory-v3-address string address of pre-deployed UniswapFactoryV3 contract
6060
--uniswap-migrator-address string address of pre-deployed Migrator contract
@@ -81,16 +81,16 @@ The command also inherits flags from parent commands.
8181
--adaptive-rate-limit enable AIMD-style congestion control to automatically adjust request rate
8282
--adaptive-rate-limit-increment uint size of additive increases for adaptive rate limiting (default 50)
8383
--adaptive-target-size uint target queue size for adaptive rate limiting (speed up if smaller, back off if larger) (default 1000)
84-
--batch-size uint number of batches to perform at a time for receipt fetching. Default is 999 requests at a time (default 999)
84+
--batch-size uint batch size for receipt fetching (default: 999) (default 999)
8585
--chain-id uint chain ID for the transactions
86-
-c, --concurrency int number of requests to perform concurrently. Default is one request at a time (default 1)
86+
-c, --concurrency int number of requests to perform concurrently (default: one at a time) (default 1)
8787
--config string config file (default is $HOME/.polygon-cli.yaml)
8888
--eth-amount-in-wei uint amount of ether in wei to send per transaction
8989
--eth-call-only call contracts without sending transactions (incompatible with adaptive rate limiting and summarization)
9090
--eth-call-only-latest execute on latest block instead of original block in call-only mode with recall
9191
--fire-and-forget send transactions and load without waiting for it to be mined
92-
--gas-limit uint in environments where the gas limit can't be computed on the fly, we can specify it manually. This can also be used to avoid eth_estimateGas
93-
--gas-price uint in environments where the gas price can't be determined automatically, we can specify it manually
92+
--gas-limit uint manually specify gas limit (useful to avoid eth_estimateGas or when auto-computation fails)
93+
--gas-price uint manually specify gas price (useful when auto-detection fails)
9494
--gas-price-multiplier float a multiplier to increase or decrease the gas price (default 1)
9595
--legacy send a legacy transaction instead of an EIP1559 transaction
9696
--nonce uint use this flag to manually set the starting nonce
@@ -100,13 +100,13 @@ The command also inherits flags from parent commands.
100100
--priority-gas-price uint gas tip price for EIP-1559 transactions
101101
--private-key string hex encoded private key to use for sending transactions (default "42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa")
102102
--random-recipients send to random addresses instead of fixed address in transfer tests
103-
--rate-limit float an overall limit to the number of requests per second. Give a number less than zero to remove this limit all together (default 4)
104-
-n, --requests int number of requests to perform for the benchmarking session. The default is to just perform a single request which usually leads to non-representative benchmarking results (default 1)
103+
--rate-limit float requests per second limit (use negative value to remove limit) (default 4)
104+
-n, --requests int number of requests to perform for the benchmarking session (default of 1 leads to non-representative results) (default 1)
105105
-r, --rpc-url string the RPC endpoint URL (default "http://localhost:8545")
106106
--seed int a seed for generating random values and addresses (default 123456)
107107
--send-only alias for --fire-and-forget
108108
--summarize produce execution summary after load test (can take a long time for large tests)
109-
-t, --time-limit int maximum number of seconds to spend for benchmarking. Use this to benchmark within a fixed total amount of time. Per default there is no time limit (default -1)
109+
-t, --time-limit int maximum seconds to spend benchmarking (default: no limit) (default -1)
110110
--to-address string recipient address for transactions (default "0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF")
111111
-v, --verbosity int 0 - silent
112112
100 panic

doc/polycli_publish.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ polycli publish --rpc-url https://sepolia.drpc.org
5050
## Flags
5151

5252
```bash
53-
-c, --concurrency uint number of txs to send concurrently. Default is one request at a time (default 1)
53+
-c, --concurrency uint number of txs to send concurrently (default: one at a time) (default 1)
5454
--file string provide a filename with transactions to publish
5555
-h, --help help for publish
5656
--job-queue-size uint number of jobs we can put in the job queue for workers to process (default 100)
57-
--rate-limit uint rate limit in txs per second. Default is no rate limit
57+
--rate-limit uint rate limit in txs per second (default: no limit)
5858
--rpc-url string RPC URL of network (default "http://localhost:8545")
5959
```
6060

doc/polycli_ulxly_claim-everything.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ polycli ulxly claim-everything [flags]
2121
```bash
2222
--bridge-limit int limit the number or responses returned by the bridge service when claiming (default 25)
2323
--bridge-offset int offset to specify for pagination of underlying bridge service deposits
24-
--bridge-service-map strings mappings between network IDs and bridge service URLs. E.g. '1=http://network-1-bridgeurl,7=http://network-2-bridgeurl'
24+
--bridge-service-map strings network ID to bridge service URL mappings (e.g. '1=http://network-1-bridgeurl,7=http://network-2-bridgeurl')
2525
--concurrency uint worker pool size for claims (default 1)
2626
-h, --help help for claim-everything
2727
```

doc/polycli_ulxly_claim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Commands for claiming deposits on a particular chain
2121
--deposit-network uint rollup ID of the network where the deposit was made
2222
--global-index string an override of the global index value
2323
-h, --help help for claim
24-
--wait duration this flag is available for claim asset and claim message. if specified, the command will retry in a loop for the deposit to be ready to claim up to duration. Once the deposit is ready to claim, the claim will actually be sent.
24+
--wait duration retry claiming until deposit is ready, up to specified duration (available for claim asset and claim message)
2525
```
2626
2727
The command also inherits flags from parent commands.

doc/polycli_ulxly_claim_asset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The command also inherits flags from parent commands.
132132
500 info
133133
600 debug
134134
700 trace (default 500)
135-
--wait duration this flag is available for claim asset and claim message. if specified, the command will retry in a loop for the deposit to be ready to claim up to duration. Once the deposit is ready to claim, the claim will actually be sent.
135+
--wait duration retry claiming until deposit is ready, up to specified duration (available for claim asset and claim message)
136136
```
137137
138138
## See also

0 commit comments

Comments
 (0)