metaplex-foundation / amman

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.
https://metaplex-foundation.github.io/amman/docs/
Apache License 2.0
72 stars 17 forks source link

feat: save accounts + take snapshot #34

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

Summary

Adds the following command to amman:

If { snaphsot: { load: 'label' } } is set in the config, all accounts from that subdir are loaded.

The snapshot to be loaded can also be specified via the --load <snapshot> flag to amman start.

~## Remaining work~

Related Work

Since lots of accounts are PDAs and/or cannot be controlled without the authority present at the time of snapshot we will need to find a way to store signers in use as well.

Unrelated Work

Some improvements to the mock storage server are included here as well.