Skip to content

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

Merged
nohaapav merged 8 commits intomasterfrom
upgrade-sdk-pr311
Apr 28, 2026
Merged

🧚 SDK Preview: [Polkadot api v2 migration ]#3751
nohaapav merged 8 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 51059c0
🔍 Latest deploy log https://app.netlify.com/projects/testnet-hydra-app/deploys/69f0a16058c1ad0008f6cc49
😎 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 51059c0
🔍 Latest deploy log https://app.netlify.com/projects/hydration-storybook/deploys/69f0a160187e690008a1b84f
😎 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 51059c0
🔍 Latest deploy log https://app.netlify.com/projects/edge-hydra-app/deploys/69f0a16023c0ce0008160f4e
😎 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.

…riptors@2.1.0-pr311-9abf016\n @galacticcouncil/sdk-next@0.42.0-pr311-9abf016\n @galacticcouncil/xc-core@0.16.0-pr311-9abf016\n @galacticcouncil/common@0.8.0-pr311-9abf016\n @galacticcouncil/xc-cfg@0.21.0-pr311-9abf016\n @galacticcouncil/xc-sdk@0.12.0-pr311-9abf016"
@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
@nohaapav nohaapav marked this pull request as ready for review April 28, 2026 11:27
@nohaapav nohaapav merged commit c975ee4 into master Apr 28, 2026
16 checks passed
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.

4 participants