Skip to content

feat(wasm-dpp): state transition facade#814

Merged
markin-io merged 65 commits into
v0.24-devfrom
feat/st-facade
Mar 15, 2023
Merged

feat(wasm-dpp): state transition facade#814
markin-io merged 65 commits into
v0.24-devfrom
feat/st-facade

Conversation

@markin-io

@markin-io markin-io commented Mar 3, 2023

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Implements State Transition Facade, it's binding and wasm-dpp tests

What was done?

  • Implemented StateTransitionFacade
  • Implemented StateTransitionFacadeWasm
  • Fixed bug with setting of signature_public_key_id
  • Fixed but with mapping of signature verification errors

How Has This Been Tested?

  • wasm-dpp tests

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Comment thread packages/rs-dpp/src/state_transition/abstract_state_transition.rs Outdated
Comment thread packages/wasm-dpp/lib/test/fixtures/getDocumentsFixture.js
@markin-io markin-io added this to the v0.24.0 milestone Mar 9, 2023
@markin-io
markin-io marked this pull request as ready for review March 9, 2023 17:06
@markin-io
markin-io changed the base branch from feat/st-factory to v0.24-dev March 9, 2023 17:07
@markin-io
markin-io changed the base branch from v0.24-dev to feat/st-factory March 9, 2023 17:08
Comment thread packages/wasm-dpp/src/state_transition/state_transition_factory.rs Outdated
Comment thread packages/wasm-dpp/test/integration/stateTransition/StateTransitionFacade.spec.js Outdated
Comment thread packages/rs-dpp/src/state_transition/abstract_state_transition.rs Outdated
Comment thread packages/rs-dpp/src/state_transition/state_transition_facade.rs Outdated
Base automatically changed from feat/st-factory to v0.24-dev March 15, 2023 10:37
@markin-io
markin-io merged commit 6f6590e into v0.24-dev Mar 15, 2023
@markin-io
markin-io deleted the feat/st-facade branch March 15, 2023 13:52
shumkov added a commit that referenced this pull request Jun 19, 2026
…ork() removal

Updates all 8 rust-dashcore workspace deps 981e97f1 -> ceee4a9b40 (dev HEAD), which
picks up #813 (DashPay account-index derivation path) and #814 (revert of the temporary
#808 Core 23 nested-masternode-address SML changes), so platform keeps the existing
flat-field masternode shape and no consensus change is needed.

The bump also crosses #802 (removed Address::network(), replaced Network with AddressPrefix
because an address's prefix is ambiguous across testnet/devnet and legacy-regtest). Migrate
the four call sites:
- wasm-sdk validate_address: addr.is_valid_for_network(net) — a bool, exactly what it
  computed and now correct for the shared testnet/devnet prefix.
- platform-wallet derivation_path_for_derived_address: the path only distinguishes mainnet
  (coin 5') from everything else (1'), so probe is_valid_for_network(Mainnet).
- platform-wallet-ffi address rendering (2 sites): an address_display_network helper probes
  mainnet/testnet/regtest, decisive for the bech32m platform-payment addresses rendered here
  (mainnet ds / testnet+devnet tb / regtest dsrt).

Migration tracked in #3939. Full workspace --all-targets compiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

5 participants