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
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
We want to simplify testing of program B, by relying on binary of program A + relevant accounts when using solana-test-validator
This is also useful to test a dApp with a realistic state E2E.
Not reading directly from a live cluster is necessary since we might want to alter data a little bit, or don't want to rely on ever changing states, or don't want the setup to rely on http requests.
The burden of dumping the relevant accounts and providing them at genesis is the job of the developer. However, we can enhance things a lot to make that not a total pain.
Proposed Solution
solana account --output-file dumps account data only => dump the entire Account instead (lamports, data, owner, executable).
Provide a serialized format, maybe even human readable, likely we would want address to also exist in this serialized data so the address/account pair can be used easily.
This is to allow calling of solana-test-validator --clone-account-from-file USDC-mint.json super-amm.json ... with a sound Account format for each file
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
Problem
We want to simplify testing of program B, by relying on binary of program A + relevant accounts when using
solana-test-validator
This is also useful to test a dApp with a realistic state E2E.
Not reading directly from a live cluster is necessary since we might want to alter data a little bit, or don't want to rely on ever changing states, or don't want the setup to rely on http requests.
https://discordapp.com/channels/428295358100013066/517163444747894795/892205222951260170
The burden of dumping the relevant accounts and providing them at genesis is the job of the developer. However, we can enhance things a lot to make that not a total pain.
Proposed Solution
solana account --output-file
dumps account data only => dump the entireAccount
instead (lamports, data, owner, executable).Provide a serialized format, maybe even human readable, likely we would want address to also exist in this serialized data so the address/account pair can be used easily.
This is to allow calling of
solana-test-validator --clone-account-from-file USDC-mint.json super-amm.json ...
with a soundAccount
format for each filethen the cli arguments are parsed and call:
solana/core/src/test_validator.rs
Lines 203 to 225 in 62c8bcf
The text was updated successfully, but these errors were encountered: