I'm curious what the recommended way is to provision an instance of solana-test-validator
with a 'known state', consisting of a few accounts and mints.
We use this 'known state' in our local development setups and on CI, and having this in place really helps us develop quickly, we are mainly looking for a more elegant way to achieve this goal.
Currently, we are using a manual solution that's been implemented in a shell script. We basically start the validator, push it to the background, then execute a bunch of commands to bring this instance in our desired state.
I'm curious if there are more elegant ways to do this. Ideally, more declarative than imperative. What do other people use for this?