Skip to content

Upgrade @parity/product-sdk and dependencies to the latest releases #465

Description

@UtkarshBhardwaj007

Summary

Upgrade the @parity/product-sdk stack, @parity/polkadot-app-deploy, DotNS, and the CDM tooling to the latest releases.

Current versions

  • @parity/product-sdk-terminal ^0.5.0
  • @parity/product-sdk-contracts ^0.7.7
  • @parity/product-sdk-cloud-storage ^0.6.4
  • @parity/product-sdk-descriptors ^0.6.1
  • @parity/product-sdk-keys ^0.3.10
  • @parity/product-sdk-tx ^0.2.14
  • @parity/polkadot-app-deploy 0.11.0
  • @parity/dotns-cli 0.7.2
  • @parity/cdm-builder 3.1.7, @parity/cdm-codegen 0.6.20, @parity/cdm-env ^2.0.6

Target versions (latest)

  • @parity/product-sdk-terminal 0.6.2
  • @parity/product-sdk-contracts 0.9.2
  • @parity/product-sdk-cloud-storage 0.8.1
  • @parity/product-sdk-descriptors 0.8.0
  • @parity/product-sdk-keys 0.3.16
  • @parity/product-sdk-tx 0.3.2
  • @parity/polkadot-app-deploy latest 0.13.x
  • @parity/dotns-cli latest
  • @parity/cdm-* latest

Breaking change to plan for

@parity/product-sdk@0.18.0 introduced the Result based error API (submitAndWatch, batchSubmitAndWatch, contract .tx / .prepare, ensureContractAccountMapped, cloud storage queryJson). CLI command handlers that wrap these in try/catch need to inspect the Result and keep the existing error message prefixes.

What needs to happen

  • Bump the @parity/product-sdk-* packages, @parity/polkadot-app-deploy, @parity/dotns-cli, and the @parity/cdm-* tools to the versions above.
  • Migrate command handlers to the Result error API while preserving user facing messages.
  • Re-check the local pnpm patches against the new versions and drop any fixed upstream.
  • Run dot init, an install, and a deploy end to end.

Acceptance criteria

  • The CLI builds and the e2e suite passes.
  • dot init, install, and deploy all work against a live environment.
  • No stale @novasamatech or CDM version pins remain that are no longer needed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions