Skip to content

test: add test suite for upgrade lifecycle and heartbeat freshness validation.#640

Merged
Sadeequ merged 2 commits into
StellarFlow-Network:mainfrom
dot-enny:issue-630-wasm-bytecode-replacement
Jul 24, 2026
Merged

test: add test suite for upgrade lifecycle and heartbeat freshness validation.#640
Sadeequ merged 2 commits into
StellarFlow-Network:mainfrom
dot-enny:issue-630-wasm-bytecode-replacement

Conversation

@dot-enny

Copy link
Copy Markdown
Contributor

Closes #630

  1. Branch Created: issue-630-wasm-bytecode-replacement
  2. Native WASM Bytecode Replacement Engine:
    In contracts/price-oracle/src/lib.rs (under AdminAction::Upgrade), updated the contract upgrade execution path to perform native WASM bytecode replacement via env.deployer().update_current_contract_wasm(wasm_hash).
    In src/lib.rs (execute_upgrade), confirmed that env.deployer().update_current_contract_wasm(pending.new_wasm_hash) is executed after timelock verification.
  3. Persistent State Storage Integrity:
    Added post-upgrade verification in src/test.rs (test_execute_upgrade_after_timelock), confirming that contract state and admin settings remain completely intact post-upgrade.

@drips-wave

drips-wave Bot commented Jul 23, 2026

Copy link
Copy Markdown

@dot-enny Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Sadeequ
Sadeequ merged commit 10b445d into StellarFlow-Network:main Jul 24, 2026
1 check failed
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.

📦 Code-Replacement | Native WASM Bytecode Replacement Engine

2 participants