Skip to content

🧚 SDK Preview: [Polkadot api v2 migration ]#3751

Draft
intergalactic-release-bot[bot] wants to merge 5 commits intomasterfrom
upgrade-sdk-pr311
Draft

🧚 SDK Preview: [Polkadot api v2 migration ]#3751
intergalactic-release-bot[bot] wants to merge 5 commits intomasterfrom
upgrade-sdk-pr311

Conversation

@intergalactic-release-bot
Copy link
Copy Markdown

This PR was triggered by SDK upgrade no. 311

For details visit: galacticcouncil/sdk#311

Alt Text

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for testnet-hydra-app ready!

Name Link
🔨 Latest commit 27de87f
🔍 Latest deploy log https://app.netlify.com/projects/testnet-hydra-app/deploys/69e613f4f7596500085847da
😎 Deploy Preview https://deploy-preview-3751--testnet-hydra-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for hydration-storybook ready!

Name Link
🔨 Latest commit 27de87f
🔍 Latest deploy log https://app.netlify.com/projects/hydration-storybook/deploys/69e613f488db84000888ba9b
😎 Deploy Preview https://deploy-preview-3751--hydration-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for edge-hydra-app ready!

Name Link
🔨 Latest commit 27de87f
🔍 Latest deploy log https://app.netlify.com/projects/edge-hydra-app/deploys/69e613f4d7b78a0007465db9
😎 Deploy Preview https://deploy-preview-3751--edge-hydra-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 0 (no change from production)
Accessibility: 66 (no change from production)
Best Practices: 92 (no change from production)
SEO: 91 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@Divljo31
Copy link
Copy Markdown
Member

  • polkadot-api 1.23.3 → ^2.0.2 in deps + resolutions; import moved polkadot-api/ws-provider → polkadot-api/ws.
  • Binary class → utility namespace (Binary.toHex / toText); FixedSizeBinary → type-only SizedHex (cast 0x... string, no wrapping).
  • All x.asHex() / x.asText() / x.asBytes() call sites rewritten; isBinary now checks Uint8Array.
  • Storage watchValue(..., 'best') → watchValue(..., { at: 'best' }) with new { value, block } emission — unwrapped centrally in usePapiValue.
  • CompatibilityToken dropped: tx.getEncodedData() is async, no token arg — getPapiTransactionCallData / getTxCallHash became async, callers migrated to useQuery.
  • papiCompatibilityToken + isNext removed from provider context; dryRun queryKey switched to safeStringify(tx.decodedCall).
  • mergeUint8(a, b, c) varargs → mergeUint8([a, b, c]) array; Sr25519(new FixedSizeBinary(sig)) → Sr25519(Binary.toHex(sig)).
  • WS provider collapsed: dropped standalone ws: WsJsonRpcProvider — papiClient: WsPolkadotClient exposes .switch(url) directly (RpcList + isApiLoaded updated).

@jvonasek jvonasek self-requested a review April 20, 2026 13:42
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.

3 participants