Repository navigation
docs(tutorial): upgrade a contract with a storage migration - #165
Closed
khoap1220-hue wants to merge 1 commit into
Closed
khoap1220-hue wants to merge 1 commit into
khoap1220-hue wants to merge 1 commit into
Conversation
Add tutorials/storage-migration.md covering v1 deployment, unmigrated v2 trap behavior, explicit and lazy storage migration patterns, and verification with soroforge and soroprobe on testnet. Closes soroworks#163
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tutorials/storage-migration.mdshowing a complete contract upgrade and storage migration workflow on Stellar testnet:Settings { fee_bps, paused }in Instance storage usingsoroforge deployand verify withsoroprobe simulate.Error(Context, InvalidAction)/UnreachableCodeReachedtrap) when v2 addsmax_batch: u32toSettingswithout migrating stored data.migrate(env, default_max_batch)) and lazy migration on read (SettingsV1->SettingsV2), upgrade withsoroforge upgrade, and verify data survival withsoroprobe simulate,soroprobe check,soroforge status, andsoroforge history.soroforge v0.2.0,soroprobe v0.2.0,sorovault v0.2.0,soroban-sdk 22.0.8,stellar-cli 22.6.0) and link to Stellar's contract upgrade documentation.tutorials/storage-migration.mdfromSUMMARY.md.Verification
bash .github/scripts/check-links.sh(all relative links resolve)..github/scripts/malware-scan.sh(no findings in 2 changed file(s)).Closes #163