Skip to content

Conversation

@crystalin
Copy link
Collaborator

Summary

  • Updates @polkadot/api and related packages to v16.2.2 for compatibility with Polkadot-SDK stable2412
  • Removes deprecated moonbeam-types-bundle in favor of the modern api-augment approach
  • Ensures all dependencies are aligned with Moonbeam runtime-3700 requirements

Breaking Changes Addressed

Based on the runtime-3700 release notes:

Identity Pallet

  • Modified storages: IdentityOf, PendingUsernames
  • Added storages: UsernameOf, UnbindingUsernames
  • Renamed storages: AccountOfUsernameUsernameInfoOf, UsernameAuthoritiesAuthorityOf

Impact: The codebase uses api.query.identity.identityOf which remains compatible.

Precompile Changes

  • Calling a precompile now incurs ~1,669 additional gas
  • StorageCleanerPrecompile has been removed

Impact: No code changes required as the project doesn't directly interact with precompiles in a way that would be affected.

Changes Made

  1. Updated @polkadot/ packages*:

    • @polkadot/api: 15.10.2 → 16.2.2
    • @polkadot/rpc-core: 15.10.2 → 16.2.2
    • @polkadot/types: 15.10.2 → 16.2.2
    • @polkadot/util & util-crypto remain at 13.5.2 (latest)
  2. Removed moonbeam-types-bundle:

    • Deleted dependency from package.json
    • Updated src/utils/networks.ts to use @moonbeam-network/api-augment import
    • Removed typesBundle parameter from ApiPromise.create() calls
  3. Fixed tests:

    • Updated test expectations to match new API initialization

Test Results

✅ All tests passing
✅ Build successful
✅ Linting passes (only warnings, no errors)

Verification

npm test
npm run build
npm run lint

🤖 Generated with Claude Code

crystalin and others added 6 commits June 24, 2025 19:51
- Update @polkadot/api and related packages from v15.10.2 to v16.2.2 (compatible with Polkadot-SDK stable2412)
- Keep @moonbeam-network/api-augment at v0.3700.0 (already compatible with runtime-3700)
- Remove deprecated moonbeam-types-bundle dependency in favor of api-augment approach
- Update all @polkadot/* package overrides to ensure version consistency
- Fix test expectations to match updated API initialization

Breaking changes addressed:
- Identity pallet storage modifications (compatible with existing usage)
- Precompile gas cost changes (no code changes required)

All tests passing and build successful.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@crystalin crystalin merged commit 475313a into main Jun 24, 2025
2 checks passed
@crystalin crystalin deleted the update/moonbeam-polkadot-deps-runtime-3700 branch June 24, 2025 19:48
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.

2 participants