This is an Aptos testnet Kurtosis package.
It creates a local testnet with an arbitrary number of validators, validator full nodes and public full nodes.
For more background on the different types of networks reference Aptos' docs.
If you have Kurtosis installed, run:
kurtosis run github.com/kurtosis-tech/aptos-package/testnet-topology --enclave aptos
To blow away the created enclave, run kurtosis clean -a
.
Click to see configuration
You can configure this package using a JSON structure as an argument to the kurtosis run
function. The full structure that this package accepts are as follows, with default values shown (note that the //
lines are not valid JSON and should be removed!):
{
"num_validators": 2
}
These arguments can either be provided manually:
kurtosis run github.com/kurtosis-tech/aptos-package/testnet-topology --enclave aptos '{"num_validators":2}'
or by loading via a file, for instance using the args.json file in this repo:
kurtosis run github.com/kurtosis-tech/aptos-package/testnet-topology --enclave aptos "$(cat args.json)"
Kurtosis packages can be composed inside other Kurtosis packages. To use this package in your package:
First, import this package by adding the following to the top of your Starlark file:
this_package = import_module("github.com/kurtosis-tech/aptos-package/testnet-topology/main.star")
Then, call the this package's run
function somewhere in your Starlark script:
this_package_output = this_package.run(plan, args)
- Install Kurtosis
- Clone this repo
- For your dev loop, run
kurtosis clean -a && kurtosis run .
inside the repo directory