Skip to content

feat: simulate multisig execution and summarize expected changes - #250

Merged
freehere107 merged 5 commits into
masterfrom
codex/transaction-simulation
Oct 8, 2026
Merged

freehere107 merged 5 commits into
masterfrom
codex/transaction-simulation

Conversation

@freehere107

@freehere107 freehere107 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Signers can preview a call's runtime execution before submitting or approving a multisig transaction. Transfer and generic-call forms simulate the inner call as the multisig account; approval previews additionally simulate the selected member's multisig operation. Results distinguish approval-only events from final execution and detect nested multisig, proxy, and batch failures.

Expected changes summarize supported transfer, reserve/release, and multisig events. Native amounts preserve precision; assets without known metadata retain explicitly labeled base units. Raw events remain available. Failed simulations do not present event effects as final state changes.

  • Use Runtime DryRun API v1/v2 at a finalized block, with timeout and unsupported/unavailable states.
  • Clear results when inputs, network, signer, or runtime version change; ignore late responses after invalidation or closing.
  • Include English and Chinese text. Simulation never signs or broadcasts transactions.

Scope and limitations

This is call-level simulation, not signature, nonce, fee-payment validation, a full storage diff, or a guarantee of future execution. Inner-call simulation assumes the approval threshold is satisfied. Forwarded XCM messages do not prove destination execution or receipt. No Chopsticks service is introduced.

Validation

  • npm run check: lint, 29 unit tests, type checking, and production build passed; commit hooks also passed Stylelint.
  • Read-only RPC checks on Asset Hub Paseo and Polkadot: successful calls, failed transfers, nested batch failure, and an exact 1 DOT transfer summary.
  • Paseo checks distinguish initial approval from final multisig execution; final execution was simulated against historical state without broadcasting.
  • Local Chrome checks: Chinese simulation results and expected-change summary, and old results cleared when call parameters change.
  • No new wallet-signed transaction or production deployment was performed.

Base branch

Targets master. PR #249 has been merged; this branch includes the updated master and preserves both import and simulation translations. The PR diff contains only simulation work.

Base automatically changed from codex/import-multisig-address to master October 8, 2026 03:20
@freehere107
freehere107 merged commit a19c118 into master Oct 8, 2026
2 of 3 checks passed
@freehere107
freehere107 deleted the codex/transaction-simulation branch October 8, 2026 03:26
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.

1 participant