-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Bump polkadot-js and document runtime/metadata API regression (#…
…338) * chore(release): 1.0.0 * Save progress * feat: Bump polkadot-js and document runtime/metadata API regression
- Loading branch information
Showing
9 changed files
with
650 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
import Decorated from '@polkadot/metadata/Decorated'; | ||
import substrateMetadataRpc from '@polkadot/metadata/Metadata/v11/static'; | ||
import { Metadata } from '@polkadot/types'; | ||
import expandMetadata from '@polkadot/metadata/decorate'; | ||
|
||
import { kusamaRegistry } from '../registries/kusamaRegistry'; | ||
import { polkadotRegistry } from '../registries/polkadotRegistry'; | ||
import { polkadotV16MetadataRpc } from './polkadotV16Metadata'; | ||
import { kusamaMetadata, polkadotMetadata } from './metadata'; | ||
|
||
/** | ||
* Decorated metadata of the kusamaRegistry (v2008). | ||
*/ | ||
export const decoratedKusamaMetadata = new Decorated( | ||
export const decoratedKusamaMetadata = expandMetadata( | ||
kusamaRegistry, | ||
new Metadata(kusamaRegistry, substrateMetadataRpc) | ||
kusamaMetadata | ||
); | ||
|
||
/** | ||
* Decorated metadata of the polkadotRegistry (v16). | ||
*/ | ||
export const decoratedPolkadotMetadata = new Decorated( | ||
export const decoratedPolkadotMetadata = expandMetadata( | ||
polkadotRegistry, | ||
new Metadata(polkadotRegistry, polkadotV16MetadataRpc) | ||
polkadotMetadata | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import substrateMetadataRpc from '@polkadot/metadata/v11/static'; | ||
import { Metadata } from '@polkadot/types'; | ||
|
||
import { kusamaRegistry } from '../registries/kusamaRegistry'; | ||
import { polkadotRegistry } from '../registries/polkadotRegistry'; | ||
import { polkadotV16MetadataRpc } from './polkadotV16Metadata'; | ||
|
||
/** | ||
* Metadata of the polkadotRegistry (v16). | ||
*/ | ||
export const polkadotMetadata = new Metadata( | ||
polkadotRegistry, | ||
polkadotV16MetadataRpc | ||
); | ||
|
||
/** | ||
* Metadata of the kusamaRegistry (v2008). | ||
*/ | ||
export const kusamaMetadata = new Metadata( | ||
kusamaRegistry, | ||
substrateMetadataRpc | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.