Skip to content

feat: add farming pool wasm upgrade path - #58

Merged
prodbycorne merged 2 commits into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-upgrade-entrypoint-23
Jul 20, 2026
Merged

feat: add farming pool wasm upgrade path#58
prodbycorne merged 2 commits into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-upgrade-entrypoint-23

Conversation

@jamilahmadzai

Copy link
Copy Markdown
Contributor

Closes #23

Bounty: GrantFox OSS campaign for issue #23

Summary

  • add an admin-only upgrade(new_wasm_hash) entrypoint to farming-pool that emits the new hash and hot-swaps the current contract WASM
  • add SCHEMA_VERSION, schema_version, and an admin-gated migrate placeholder for future storage migrations
  • add factory upgrade_pool(pool_id, new_wasm_hash) for pool-by-pool upgrades without changing the factory default pool WASM hash
  • cover direct upgrade auth/state preservation and factory-mediated upgrade behavior in tests

Validation

  • cargo fmt --all -- --check
  • cargo build
  • cargo test -p farming-pool upgrade -- --nocapture
  • cargo test -p factory upgrade_pool -- --nocapture
  • cargo test -p farming-pool -- --nocapture
  • cargo test -p factory -- --nocapture
  • cargo test --workspace -- --nocapture
  • git diff --check

Notes

  • existing Soroban Events::publish deprecation warnings remain unchanged
  • factory upgrades are intentionally pool-specific and do not mutate stored WasmHash

@jamilahmadzai
jamilahmadzai force-pushed the codex/smartdrop-upgrade-entrypoint-23 branch from 86b24ec to c94c936 Compare July 17, 2026 07:52
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit 2383f0b
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6a5e4f28c692610007428827
😎 Deploy Preview https://deploy-preview-58--sdcontracts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@prodbycorne
prodbycorne merged commit b817eae into SmartDropLabs:main Jul 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants