0xPolygon / kurtosis-cdk

A Kurtosis package that deploys a private, portable, and modular Polygon CDK devnet
https://docs.polygon.technology/cdk
Apache License 2.0
42 stars 72 forks source link

feat: implement basic workload service #88

Closed leovct closed 5 months ago

leovct commented 5 months ago

Description

The workload service applies load to the whole CDK stack on L2 (L1 load has been removed). At the moment, it only spams L2 with transactions (eth transfers, erc20 transfer, erc721 mints and uniswapv3 swaps) and rpc calls.

Anyone can add their custom scripts and run those in the workload service using the workload_commands parameter in params.yml. For example, here are the different commands that are run by the workload service.

workload_commands: [
    "polycli_loadtest_on_l2.sh t",  # eth transfers
    "polycli_loadtest_on_l2.sh 2",  # erc20 transfers
    "polycli_loadtest_on_l2.sh 7",  # erc721 mints
    "polycli_loadtest_on_l2.sh v3", # uniswapv3 swaps
    "polycli_rpcfuzz_on_l2.sh",     # rpc calls
]

The bridge spammer will be added in a follow up PR.

References (if applicable)

https://polygon.atlassian.net/browse/DVT-1463

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud