Skip to content

v0.8.0

Choose a tag to compare

@mordamax mordamax released this 14 May 19:51
· 130 commits to main since this release
8130b4d

host-api-test-sdk 0.8.0

Upstream bump to 0.7.9-4 (breaking)

@novasamatech/host-api, host-container, and product-sdk are pinned to 0.7.9-4. (Exact pin, not ^ — caret on a prerelease floats through subsequent prereleases like 0.7.9-5.)

Upstream did not publish a CHANGELOG.md entry for any 0.7.9-N. The notes below are reconstructed from the commit log.

handleCreateTransaction shape changed

The biggest break: host_create_transaction was redesigned. The request is now a flat object — no more outer tuple, no more inner versioned envelope around the payload, no more context block, and genesisHash is required at the top level.

// 0.7.6 — old
container.handleCreateTransaction(([[dotnsId, idx], payload], { ok }) => {
  return ok(payload.callData);
});

// 0.8.0 — new
container.handleCreateTransaction((params, { ok }) => {
  // params: {
  //   signer: [dotnsId, idx],           // ProductAccountId tuple
  //   genesisHash: Uint8Array,           // NEW, required
  //   callData: Uint8Array,              // was HexString
  //   extensions: { id, extra: Uint8Array, additionalSigned: Uint8Array }[],
  //   txExtVersion: number,
  // }
  return ok(params.callData);
});

handleCreateTransactionWithLegacyAccount got the same flattening; its signer is now Uint8Array (raw AccountId) instead of an SS58 string.

If your product code constructs createTransaction requests by hand, update the call site to send a flat ProductAccountTransaction and include genesisHash. The exports VersionedPublicTxPayload / TxPayloadV1Public are gone — use ProductAccountTransaction and LegacyTransaction.

Other upstream changes worth knowing

  • Attestation service removed, SSO auth flow simplified on the paired-Polkadot-Mobile side. No test-SDK API change, but if you assert on SSO message shapes in product tests, expect different traffic.
  • Backward-compat flag added in the product-sdk accounts provider.
  • Internal rename: @novasamatech/product-sdk is being renamed to @novasamatech/host-api-wrapper. 0.7.9-4 still publishes under product-sdk; 0.7.9-5 (and beyond) only under host-api-wrapper. We stay on product-sdk@0.7.9-4 for this release.

What's Changed

Full Changelog: v0.7.6...v0.8.0