feat: add devnet as a selectable network - #22
Open
illegalcall wants to merge 5 commits into
Open
Conversation
Bump product-sdk ^0.19.1, chain-client ^0.9.1, contracts ^0.9.2, descriptors ^0.8.0, signer ^0.11.1, statement-store ^0.6.2, tx ^0.3.2; drop @novasamatech/host-api(-wrapper). The two remaining wrapper call sites (requestPermission, preimageManager) move to @parity/product-sdk-host. Result-API migration: contract .tx unwrapped in the getContract proxy, fromLiveClient and ensureContractAccountMapped branch on .ok. Statement-store publish now returns a Result; call sites already ignored the old boolean, so semantics are unchanged. Closes paritytech#19
illegalcall
force-pushed
the
feat/add-devnet-network
branch
from
July 30, 2026 09:55
54279e2 to
136ec2b
Compare
publish returns a Result instead of throwing since product-sdk 0.18, and the multiplayer sends ignored it, so connection and size failures passed silently. Unwrap every publish so a failed send surfaces to the player instead of stalling the round. Declare @parity/product-sdk-host directly and drop the unused @parity/product-sdk umbrella so host no longer resolves only by hoisting. Wrap the account mapping in try/catch so the cause logging runs whether it returns an error or throws. Update the stale @novasamatech/host-api reference in the AI-config files.
Two-network config (paseo-next, devnet) selected at build time via VITE_NETWORK; default stays paseo-next. Descriptors load dynamically and the host-routed chain client takes its identity from the loaded descriptor, so no endpoints or genesis are pinned. fromLiveClient now takes the selected network's registry address, so devnet resolves the leaderboard against the devnet registry. Add the cdm devnet preset deploy script and a paseo-next vs devnet note in DEPLOYMENT.md. Closes paritytech#20
illegalcall
force-pushed
the
feat/add-devnet-network
branch
from
July 30, 2026 12:14
136ec2b to
30c7b2f
Compare
Collaborator
Author
|
Applied the metadata-chunk fold: network selection is now a direct literal comparison on |
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.
Closes #20
Stacked on #21; review only the last commit until #21 merges.
Adds devnet as a build-time network (
VITE_NETWORK=devnet) alongside paseo-next, with the devnet registry and gateways. Chain access is host-routed, so the descriptor selects the network. Contract addresses resolve live from the selected registry. Adds a devnet deploy script and a DEPLOYMENT.md note (CDM v0.9.0+, para-1000 faucet, and deploy-before-build guidance).Typecheck and both build variants pass. A full devnet round needs the contract deployed there and a Desktop smoke test.