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
Copy file name to clipboardExpand all lines: cmd/loadtest/loadtestUsage.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
The `loadtest` tool is meant to generate various types of load against RPC end points. It leverages the [`ethclient`](https://pkg.go.dev/github.com/ethereum/go-ethereum/ethclient) library Go Ethereum to interact with the blockchain.x
1
+
The `loadtest` tool is meant to generate various types of load against RPC end points. It leverages the [`ethclient`](https://pkg.go.dev/github.com/ethereum/go-ethereum/ethclient) library Go Ethereum to interact with the blockchain.
@@ -15,12 +15,17 @@ The `--mode` flag is important for this command.
15
15
amounts. Each transaction is a single transfer.
16
16
-`7`/`erc721` will run an ERC721 mint test which will mint an NFT
17
17
over and over again.
18
-
-`i`/`inc`/`increment` will call the increment function repeatedly on
18
+
-`inc`/`increment` will call the increment function repeatedly on
19
19
the load test contract. It's a minimal example of a contract call
20
20
that will require an update to a contract's storage.
21
21
-`s`/`store` is used to store random data in the smart contract
22
22
storage. The amount of data stored per transaction is controlled
23
23
with the `store-data-size` flag.
24
+
-`b`/`blob` will send EIP-4844 blob transactions. Use `--blob-fee-cap`
25
+
to set the maximum blob fee per chunk.
26
+
-`cc`/`contract-call` will call a specific contract function. Requires
27
+
`--contract-address` and `--calldata` flags. Use `--contract-call-payable`
28
+
if the function is payable.
24
29
-`R`/`recall` will attempt to replay all of the transactions from the
25
30
previous blocks. You can use `--recall-blocks` to specify how many
26
31
previous blocks should be used to seed transaction history. It's
@@ -34,6 +39,10 @@ The `--mode` flag is important for this command.
34
39
full blockchain networks. The approach is similar to `recall` mode
35
40
where we'll fetch some recent blocks and then use that data to
36
41
generate a variety of calls to the RPC server.
42
+
-`v3`/`uniswapv3` will deploy UniswapV3 contracts and perform token
43
+
swaps. This mode can also be run as a subcommand (`polycli loadtest
44
+
uniswapv3`) which provides additional flags for specifying
45
+
pre-deployed contract addresses, pool fees, and swap amounts.
37
46
38
47
The default private key is: `42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa`. We can use `wallet inspect` to get more information about this address, in particular its `ETHAddress` if you want to check balance or pre-mine value for this particular account.
Copy file name to clipboardExpand all lines: doc/polycli_loadtest.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ polycli loadtest [flags]
19
19
20
20
## Usage
21
21
22
-
The `loadtest` tool is meant to generate various types of load against RPC end points. It leverages the [`ethclient`](https://pkg.go.dev/github.com/ethereum/go-ethereum/ethclient) library Go Ethereum to interact with the blockchain.x
22
+
The `loadtest` tool is meant to generate various types of load against RPC end points. It leverages the [`ethclient`](https://pkg.go.dev/github.com/ethereum/go-ethereum/ethclient) library Go Ethereum to interact with the blockchain.
@@ -36,12 +36,17 @@ The `--mode` flag is important for this command.
36
36
amounts. Each transaction is a single transfer.
37
37
-`7`/`erc721` will run an ERC721 mint test which will mint an NFT
38
38
over and over again.
39
-
-`i`/`inc`/`increment` will call the increment function repeatedly on
39
+
-`inc`/`increment` will call the increment function repeatedly on
40
40
the load test contract. It's a minimal example of a contract call
41
41
that will require an update to a contract's storage.
42
42
-`s`/`store` is used to store random data in the smart contract
43
43
storage. The amount of data stored per transaction is controlled
44
44
with the `store-data-size` flag.
45
+
-`b`/`blob` will send EIP-4844 blob transactions. Use `--blob-fee-cap`
46
+
to set the maximum blob fee per chunk.
47
+
-`cc`/`contract-call` will call a specific contract function. Requires
48
+
`--contract-address` and `--calldata` flags. Use `--contract-call-payable`
49
+
if the function is payable.
45
50
-`R`/`recall` will attempt to replay all of the transactions from the
46
51
previous blocks. You can use `--recall-blocks` to specify how many
47
52
previous blocks should be used to seed transaction history. It's
@@ -55,6 +60,10 @@ The `--mode` flag is important for this command.
55
60
full blockchain networks. The approach is similar to `recall` mode
56
61
where we'll fetch some recent blocks and then use that data to
57
62
generate a variety of calls to the RPC server.
63
+
-`v3`/`uniswapv3` will deploy UniswapV3 contracts and perform token
64
+
swaps. This mode can also be run as a subcommand (`polycli loadtest
65
+
uniswapv3`) which provides additional flags for specifying
66
+
pre-deployed contract addresses, pool fees, and swap amounts.
58
67
59
68
The default private key is: `42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa`. We can use `wallet inspect` to get more information about this address, in particular its `ETHAddress` if you want to check balance or pre-mine value for this particular account.
0 commit comments