-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f10653f
commit fc2dd77
Showing
6 changed files
with
8 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,54 +3,6 @@ | |
Exports npm package `@moonbeam-network/types-bundle`, formated as per polkadot-js specification to use | ||
with the app or the API. | ||
|
||
## ⚠️Warning: Types deprecation⚠️ | ||
|
||
Following runtime upgrade 900 (include substrate v0.9.11), types are now retrieved from the node, in | ||
a **camelCase** format | ||
|
||
A **new version** has been released `[email protected]`. | ||
|
||
The default export `typesBundle` has **been removed** to avoid confusion. | ||
|
||
**2 new typesBundles** are available: | ||
|
||
* `import { typesBundlePre900 } from "@moonbeam-network/types-bundle"` to use the new naming convention | ||
* `import { typesBundleDeprecated } from "@moonbeam-network/types-bundle"` to keep using old naming convention that isn't camelCase (This will break at runtime 1000) | ||
|
||
### Breaking changes in typesBundlePre900 | ||
|
||
Those types are being changed: | ||
|
||
``` | ||
AssetRegistrarMetadata: { | ||
... | ||
isFrozen: "bool", // was is_frozen | ||
}, | ||
RewardInfo: { | ||
totalReward: "Balance", // was total_reward | ||
claimedReward: "Balance", // was claimed_reward | ||
contributedRelayAddresses: "Vec<RelayChainAccountId>", // was contributed_relay_addresses | ||
}, | ||
Nominator2: { | ||
... | ||
scheduledRevocationsCount: "u32", // was scheduled_revocations_count | ||
scheduledRevocationsTotal: "Balance", // was scheduled_revocations_total | ||
}, | ||
ExitQ: { | ||
... | ||
nominatorsLeaving: "Vec<AccountId>", // was nominators_leaving | ||
candidateSchedule: "Vec<(AccountId, RoundIndex)>", // was candidate_schedule | ||
nominatorSchedule: "Vec<(AccountId, Option<AccountId>, RoundIndex)>", // was nominator_schedule | ||
}, | ||
Collator2: { | ||
... | ||
topNominators: "Vec<Bond>", // was top_nominators | ||
bottomNominators: "Vec<Bond>", // was bottom_nominators | ||
totalCounted: "Balance", // was total_counted | ||
totalBacking: "Balance", // was total_backing | ||
} | ||
``` | ||
|
||
# Development | ||
|
||
`typesBundlePre900` is of type OverrideBundleType to associate runtime names with correct definitions. | ||
|
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