From 674c38b38460cdc16bd38ba013fe90fd8cd7f15e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 3 Mar 2021 13:18:07 +0100 Subject: [PATCH] Enum serializes to camelCase (#3024) * Enum serializes to camelCase * Dedupe * rewrite static json * test for StorageKind enum --- CHANGELOG.md | 7 + .../metadata/src/v10/static-substrate.json | 308 +++++++------- .../metadata/src/v11/static-substrate.json | 342 +++++++-------- .../metadata/src/v12/static-substrate.json | 396 +++++++++--------- .../metadata/src/v9/static-substrate.json | 258 ++++++------ packages/types/src/codec/Enum.spec.ts | 8 +- packages/types/src/codec/Enum.ts | 4 +- packages/types/src/codec/Result.spec.ts | 4 +- packages/types/src/create/createType.spec.ts | 4 +- .../types/src/extrinsic/ExtrinsicEra.spec.ts | 6 +- packages/types/src/extrinsic/ExtrinsicEra.ts | 12 +- .../interfaces/identity/Registration.spec.ts | 14 +- .../interfaces/offchain/definitions.spec.ts | 19 + 13 files changed, 706 insertions(+), 676 deletions(-) create mode 100644 packages/types/src/interfaces/offchain/definitions.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 91d7a58c75..a2abdfe168 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 4.0.1-x + +Changes: + +- Enum `.toSON()` now encodes all keys as `camelCase` (aligning with the output from Substrate) + + ## 3.11.1 Feb 28, 2021 Upgrade priority: Low. Recommended for users wanting to keep updated with chain changes. diff --git a/packages/metadata/src/v10/static-substrate.json b/packages/metadata/src/v10/static-substrate.json index 084b138a98..fb04390bf0 100644 --- a/packages/metadata/src/v10/static-substrate.json +++ b/packages/metadata/src/v10/static-substrate.json @@ -1,7 +1,7 @@ { "magicNumber": 1635018093, "metadata": { - "V10": { + "v10": { "modules": [ { "name": "System", @@ -12,7 +12,7 @@ "name": "AccountNonce", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Index", @@ -28,7 +28,7 @@ "name": "ExtrinsicCount", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -39,7 +39,7 @@ "name": "AllExtrinsicsWeight", "modifier": "Optional", "type": { - "Plain": "Weight" + "plain": "Weight" }, "fallback": "0x00", "documentation": [ @@ -50,7 +50,7 @@ "name": "AllExtrinsicsLen", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -61,7 +61,7 @@ "name": "BlockHash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "BlockNumber", "value": "Hash", @@ -77,7 +77,7 @@ "name": "ExtrinsicData", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "u32", "value": "Bytes", @@ -93,7 +93,7 @@ "name": "Number", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -104,7 +104,7 @@ "name": "ParentHash", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -115,7 +115,7 @@ "name": "ExtrinsicsRoot", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -126,7 +126,7 @@ "name": "Digest", "modifier": "Default", "type": { - "Plain": "DigestOf" + "plain": "DigestOf" }, "fallback": "0x00", "documentation": [ @@ -137,7 +137,7 @@ "name": "Events", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -148,7 +148,7 @@ "name": "EventCount", "modifier": "Default", "type": { - "Plain": "EventIndex" + "plain": "EventIndex" }, "fallback": "0x00000000", "documentation": [ @@ -159,7 +159,7 @@ "name": "EventTopics", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", @@ -357,7 +357,7 @@ "name": "Multisigs", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "[u8;32]", @@ -669,7 +669,7 @@ "name": "EpochIndex", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -680,7 +680,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" + "plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, "fallback": "0x00", "documentation": [ @@ -691,7 +691,7 @@ "name": "GenesisSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -703,7 +703,7 @@ "name": "CurrentSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -714,7 +714,7 @@ "name": "Randomness", "modifier": "Default", "type": { - "Plain": "[u8;32]" + "plain": "[u8;32]" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -734,7 +734,7 @@ "name": "NextRandomness", "modifier": "Default", "type": { - "Plain": "[u8;32]" + "plain": "[u8;32]" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -745,7 +745,7 @@ "name": "SegmentIndex", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -764,7 +764,7 @@ "name": "UnderConstruction", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "u32", "value": "Vec<[u8;32]>", @@ -778,7 +778,7 @@ "name": "Initialized", "modifier": "Optional", "type": { - "Plain": "MaybeVrf" + "plain": "MaybeVrf" }, "fallback": "0x00", "documentation": [ @@ -824,7 +824,7 @@ "name": "Now", "modifier": "Default", "type": { - "Plain": "Moment" + "plain": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ @@ -835,7 +835,7 @@ "name": "DidUpdate", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -891,7 +891,7 @@ "name": "Uncles", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -902,7 +902,7 @@ "name": "Author", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -913,7 +913,7 @@ "name": "DidSetUncles", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -992,7 +992,7 @@ "name": "NextEnumSet", "modifier": "Default", "type": { - "Plain": "AccountIndex" + "plain": "AccountIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1003,7 +1003,7 @@ "name": "EnumSet", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountIndex", "value": "Vec", @@ -1045,7 +1045,7 @@ "name": "TotalIssuance", "modifier": "Default", "type": { - "Plain": "Balance" + "plain": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1056,7 +1056,7 @@ "name": "Vesting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "VestingSchedule", @@ -1072,7 +1072,7 @@ "name": "FreeBalance", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", @@ -1098,7 +1098,7 @@ "name": "ReservedBalance", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", @@ -1124,7 +1124,7 @@ "name": "Locks", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", @@ -1395,7 +1395,7 @@ "name": "NextFeeMultiplier", "modifier": "Default", "type": { - "Plain": "Multiplier" + "plain": "Multiplier" }, "fallback": "0x0000000000000000", "documentation": [] @@ -1433,7 +1433,7 @@ "name": "ValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1444,7 +1444,7 @@ "name": "MinimumValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x04000000", "documentation": [ @@ -1455,7 +1455,7 @@ "name": "Invulnerables", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1468,7 +1468,7 @@ "name": "Bonded", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", @@ -1484,7 +1484,7 @@ "name": "Ledger", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "StakingLedger", @@ -1500,7 +1500,7 @@ "name": "Payee", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "RewardDestination", @@ -1516,7 +1516,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "ValidatorPrefs", @@ -1532,7 +1532,7 @@ "name": "Nominators", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Nominations", @@ -1551,7 +1551,7 @@ "name": "Stakers", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Exposure", @@ -1570,7 +1570,7 @@ "name": "CurrentElected", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1581,7 +1581,7 @@ "name": "CurrentEra", "modifier": "Default", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1592,7 +1592,7 @@ "name": "CurrentEraStart", "modifier": "Default", "type": { - "Plain": "MomentOf" + "plain": "MomentOf" }, "fallback": "0x0000000000000000", "documentation": [ @@ -1603,7 +1603,7 @@ "name": "CurrentEraStartSessionIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1614,7 +1614,7 @@ "name": "CurrentEraPointsEarned", "modifier": "Default", "type": { - "Plain": "EraPoints" + "plain": "EraPoints" }, "fallback": "0x0000000000", "documentation": [ @@ -1625,7 +1625,7 @@ "name": "SlotStake", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1638,7 +1638,7 @@ "name": "ForceEra", "modifier": "Default", "type": { - "Plain": "Forcing" + "plain": "Forcing" }, "fallback": "0x00", "documentation": [ @@ -1649,7 +1649,7 @@ "name": "SlashRewardFraction", "modifier": "Default", "type": { - "Plain": "Perbill" + "plain": "Perbill" }, "fallback": "0x00000000", "documentation": [ @@ -1662,7 +1662,7 @@ "name": "CanceledSlashPayout", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1674,7 +1674,7 @@ "name": "UnappliedSlashes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "EraIndex", "value": "Vec", @@ -1690,7 +1690,7 @@ "name": "BondedEras", "modifier": "Default", "type": { - "Plain": "Vec<(EraIndex,SessionIndex)>" + "plain": "Vec<(EraIndex,SessionIndex)>" }, "fallback": "0x00", "documentation": [ @@ -1701,7 +1701,7 @@ "name": "ValidatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "EraIndex", "key2": "AccountId", @@ -1719,7 +1719,7 @@ "name": "NominatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "EraIndex", "key2": "AccountId", @@ -1736,7 +1736,7 @@ "name": "SlashingSpans", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "SlashingSpans", @@ -1752,7 +1752,7 @@ "name": "SpanSlash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", @@ -1769,7 +1769,7 @@ "name": "EarliestUnappliedSlash", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -1780,7 +1780,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -2243,7 +2243,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2254,7 +2254,7 @@ "name": "CurrentIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -2265,7 +2265,7 @@ "name": "QueuedChanged", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -2277,7 +2277,7 @@ "name": "QueuedKeys", "modifier": "Default", "type": { - "Plain": "Vec<(ValidatorId,Keys)>" + "plain": "Vec<(ValidatorId,Keys)>" }, "fallback": "0x00", "documentation": [ @@ -2289,7 +2289,7 @@ "name": "DisabledValidators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2302,7 +2302,7 @@ "name": "NextKeys", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Bytes", "key2": "ValidatorId", @@ -2322,7 +2322,7 @@ "name": "KeyOwner", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", @@ -2420,7 +2420,7 @@ "name": "PublicPropCount", "modifier": "Default", "type": { - "Plain": "PropIndex" + "plain": "PropIndex" }, "fallback": "0x00000000", "documentation": [ @@ -2431,7 +2431,7 @@ "name": "PublicProps", "modifier": "Default", "type": { - "Plain": "Vec<(PropIndex,Hash,AccountId)>" + "plain": "Vec<(PropIndex,Hash,AccountId)>" }, "fallback": "0x00", "documentation": [ @@ -2442,7 +2442,7 @@ "name": "Preimages", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "(Bytes,AccountId,BalanceOf,BlockNumber)", @@ -2459,7 +2459,7 @@ "name": "DepositOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "PropIndex", "value": "(BalanceOf,Vec)", @@ -2475,7 +2475,7 @@ "name": "ReferendumCount", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -2486,7 +2486,7 @@ "name": "LowestUnbaked", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -2498,7 +2498,7 @@ "name": "ReferendumInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "ReferendumInfo", @@ -2514,7 +2514,7 @@ "name": "DispatchQueue", "modifier": "Default", "type": { - "Plain": "Vec<(BlockNumber,Hash,ReferendumIndex)>" + "plain": "Vec<(BlockNumber,Hash,ReferendumIndex)>" }, "fallback": "0x00", "documentation": [ @@ -2525,7 +2525,7 @@ "name": "VotersFor", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "Vec", @@ -2541,7 +2541,7 @@ "name": "VoteOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", @@ -2560,7 +2560,7 @@ "name": "Proxy", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", @@ -2577,7 +2577,7 @@ "name": "Delegations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(AccountId,Conviction)", @@ -2593,7 +2593,7 @@ "name": "LastTabledWasExternal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -2605,7 +2605,7 @@ "name": "NextExternal", "modifier": "Optional", "type": { - "Plain": "(Hash,VoteThreshold)" + "plain": "(Hash,VoteThreshold)" }, "fallback": "0x00", "documentation": [ @@ -2619,7 +2619,7 @@ "name": "Blacklist", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "(BlockNumber,Vec)", @@ -2636,7 +2636,7 @@ "name": "Cancellations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "bool", @@ -3346,7 +3346,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3357,7 +3357,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", @@ -3373,7 +3373,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", @@ -3389,7 +3389,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -3400,7 +3400,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3598,7 +3598,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3609,7 +3609,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", @@ -3625,7 +3625,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", @@ -3641,7 +3641,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -3652,7 +3652,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3850,7 +3850,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -3861,7 +3861,7 @@ "name": "RunnersUp", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -3872,7 +3872,7 @@ "name": "ElectionRounds", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -3883,7 +3883,7 @@ "name": "VotesOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", @@ -3899,7 +3899,7 @@ "name": "StakeOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "BalanceOf", @@ -3915,7 +3915,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4230,7 +4230,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4426,7 +4426,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "AuthorityList" + "plain": "AuthorityList" }, "fallback": "0x00", "documentation": [ @@ -4440,7 +4440,7 @@ "name": "State", "modifier": "Default", "type": { - "Plain": "StoredState" + "plain": "StoredState" }, "fallback": "0x00", "documentation": [ @@ -4451,7 +4451,7 @@ "name": "PendingChange", "modifier": "Optional", "type": { - "Plain": "StoredPendingChange" + "plain": "StoredPendingChange" }, "fallback": "0x00", "documentation": [ @@ -4462,7 +4462,7 @@ "name": "NextForced", "modifier": "Optional", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00", "documentation": [ @@ -4473,7 +4473,7 @@ "name": "Stalled", "modifier": "Optional", "type": { - "Plain": "(BlockNumber,BlockNumber)" + "plain": "(BlockNumber,BlockNumber)" }, "fallback": "0x00", "documentation": [ @@ -4484,7 +4484,7 @@ "name": "CurrentSetId", "modifier": "Default", "type": { - "Plain": "SetId" + "plain": "SetId" }, "fallback": "0x0000000000000000", "documentation": [ @@ -4496,7 +4496,7 @@ "name": "SetIdSession", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "SetId", "value": "SessionIndex", @@ -4588,7 +4588,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "ProposalIndex" + "plain": "ProposalIndex" }, "fallback": "0x00000000", "documentation": [ @@ -4599,7 +4599,7 @@ "name": "Proposals", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ProposalIndex", "value": "TreasuryProposal", @@ -4615,7 +4615,7 @@ "name": "Approvals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4626,7 +4626,7 @@ "name": "Tips", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Hash", "value": "OpenTip", @@ -4644,7 +4644,7 @@ "name": "Reasons", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Hash", "value": "Bytes", @@ -5116,7 +5116,7 @@ "name": "GasSpent", "modifier": "Default", "type": { - "Plain": "Gas" + "plain": "Gas" }, "fallback": "0x0000000000000000", "documentation": [ @@ -5127,7 +5127,7 @@ "name": "CurrentSchedule", "modifier": "Default", "type": { - "Plain": "Schedule" + "plain": "Schedule" }, "fallback": "0x0000000001000000000000000100000000000000010000000000000001000000000000000100000000000000010000000000000001000000000000008700000000000000af0000000000000001000000000000000100000000000000040000000000010010000000004000000020000000", "documentation": [ @@ -5138,7 +5138,7 @@ "name": "PristineCode", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "CodeHash", "value": "Bytes", @@ -5154,7 +5154,7 @@ "name": "CodeStorage", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "CodeHash", "value": "PrefabWasmModule", @@ -5170,7 +5170,7 @@ "name": "AccountCounter", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -5181,7 +5181,7 @@ "name": "ContractInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "ContractInfo", @@ -5197,7 +5197,7 @@ "name": "GasPrice", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x01000000000000000000000000000000", "documentation": [ @@ -5578,7 +5578,7 @@ "name": "Key", "modifier": "Default", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -5704,7 +5704,7 @@ "name": "GossipAt", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -5715,7 +5715,7 @@ "name": "Keys", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5726,7 +5726,7 @@ "name": "ReceivedHeartbeats", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "SessionIndex", "key2": "AuthIndex", @@ -5744,7 +5744,7 @@ "name": "AuthoredBlocks", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "SessionIndex", "key2": "ValidatorId", @@ -5836,7 +5836,7 @@ "name": "Reports", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReportIdOf", "value": "OffenceDetails", @@ -5852,7 +5852,7 @@ "name": "ConcurrentReportsIndex", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "Kind", "key2": "OpaqueTimeSlot", @@ -5869,7 +5869,7 @@ "name": "ReportsByKindIndex", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Kind", "value": "Bytes", @@ -5914,7 +5914,7 @@ "name": "RandomMaterial", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5939,7 +5939,7 @@ "name": "IdentityOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Registration", @@ -5955,7 +5955,7 @@ "name": "SuperOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(AccountId,Data)", @@ -5972,7 +5972,7 @@ "name": "SubsOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(BalanceOf,Vec)", @@ -5990,7 +5990,7 @@ "name": "Registrars", "modifier": "Default", "type": { - "Plain": "Vec>" + "plain": "Vec>" }, "fallback": "0x00", "documentation": [ @@ -6469,7 +6469,7 @@ "name": "Founder", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -6480,7 +6480,7 @@ "name": "Rules", "modifier": "Optional", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x00", "documentation": [ @@ -6492,7 +6492,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6503,7 +6503,7 @@ "name": "SuspendedCandidates", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(BalanceOf,BidKind)", @@ -6519,7 +6519,7 @@ "name": "Pot", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -6530,7 +6530,7 @@ "name": "Head", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -6541,7 +6541,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6552,7 +6552,7 @@ "name": "SuspendedMembers", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "bool", @@ -6568,7 +6568,7 @@ "name": "Bids", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6579,7 +6579,7 @@ "name": "Vouching", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "VouchingStatus", @@ -6595,7 +6595,7 @@ "name": "Payouts", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec<(BlockNumber,BalanceOf)>", @@ -6611,7 +6611,7 @@ "name": "Strikes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "StrikeCount", @@ -6627,7 +6627,7 @@ "name": "Votes", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -6644,7 +6644,7 @@ "name": "Defender", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -6655,7 +6655,7 @@ "name": "DefenderVotes", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "SocietyVote", @@ -6671,7 +6671,7 @@ "name": "MaxMembers", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -7433,7 +7433,7 @@ "name": "Recoverable", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "RecoveryConfig", @@ -7449,7 +7449,7 @@ "name": "ActiveRecoveries", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -7469,7 +7469,7 @@ "name": "Recovered", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", diff --git a/packages/metadata/src/v11/static-substrate.json b/packages/metadata/src/v11/static-substrate.json index 1f1b05e842..a094c7b95e 100644 --- a/packages/metadata/src/v11/static-substrate.json +++ b/packages/metadata/src/v11/static-substrate.json @@ -1,7 +1,7 @@ { "magicNumber": 1635018093, "metadata": { - "V11": { + "v11": { "modules": [ { "name": "System", @@ -12,7 +12,7 @@ "name": "Account", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountInfo", @@ -28,7 +28,7 @@ "name": "ExtrinsicCount", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -39,7 +39,7 @@ "name": "BlockWeight", "modifier": "Default", "type": { - "Plain": "ExtrinsicsWeight" + "plain": "ExtrinsicsWeight" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -50,7 +50,7 @@ "name": "AllExtrinsicsLen", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -61,7 +61,7 @@ "name": "BlockHash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Hash", @@ -77,7 +77,7 @@ "name": "ExtrinsicData", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "u32", "value": "Bytes", @@ -93,7 +93,7 @@ "name": "Number", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -104,7 +104,7 @@ "name": "ParentHash", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -115,7 +115,7 @@ "name": "ExtrinsicsRoot", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -126,7 +126,7 @@ "name": "Digest", "modifier": "Default", "type": { - "Plain": "DigestOf" + "plain": "DigestOf" }, "fallback": "0x00", "documentation": [ @@ -137,7 +137,7 @@ "name": "Events", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -148,7 +148,7 @@ "name": "EventCount", "modifier": "Default", "type": { - "Plain": "EventIndex" + "plain": "EventIndex" }, "fallback": "0x00000000", "documentation": [ @@ -159,7 +159,7 @@ "name": "EventTopics", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", @@ -184,7 +184,7 @@ "name": "LastRuntimeUpgrade", "modifier": "Optional", "type": { - "Plain": "LastRuntimeUpgradeInfo" + "plain": "LastRuntimeUpgradeInfo" }, "fallback": "0x00", "documentation": [ @@ -195,7 +195,7 @@ "name": "ExecutionPhase", "modifier": "Optional", "type": { - "Plain": "Phase" + "plain": "Phase" }, "fallback": "0x00", "documentation": [ @@ -625,7 +625,7 @@ "name": "EpochIndex", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -636,7 +636,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" + "plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, "fallback": "0x00", "documentation": [ @@ -647,7 +647,7 @@ "name": "GenesisSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -659,7 +659,7 @@ "name": "CurrentSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -670,7 +670,7 @@ "name": "Randomness", "modifier": "Default", "type": { - "Plain": "Randomness" + "plain": "Randomness" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -690,7 +690,7 @@ "name": "NextEpochConfig", "modifier": "Optional", "type": { - "Plain": "NextConfigDescriptor" + "plain": "NextConfigDescriptor" }, "fallback": "0x00", "documentation": [ @@ -701,7 +701,7 @@ "name": "NextRandomness", "modifier": "Default", "type": { - "Plain": "Randomness" + "plain": "Randomness" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -712,7 +712,7 @@ "name": "SegmentIndex", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -731,7 +731,7 @@ "name": "UnderConstruction", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "u32", "value": "Vec", @@ -747,7 +747,7 @@ "name": "Initialized", "modifier": "Optional", "type": { - "Plain": "MaybeRandomness" + "plain": "MaybeRandomness" }, "fallback": "0x00", "documentation": [ @@ -759,7 +759,7 @@ "name": "Lateness", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -851,7 +851,7 @@ "name": "Now", "modifier": "Default", "type": { - "Plain": "Moment" + "plain": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ @@ -862,7 +862,7 @@ "name": "DidUpdate", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -924,7 +924,7 @@ "name": "Uncles", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -935,7 +935,7 @@ "name": "Author", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -946,7 +946,7 @@ "name": "DidSetUncles", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -1025,7 +1025,7 @@ "name": "Accounts", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountIndex", "value": "(AccountId,BalanceOf,bool)", @@ -1259,7 +1259,7 @@ "name": "TotalIssuance", "modifier": "Default", "type": { - "Plain": "Balance" + "plain": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1270,7 +1270,7 @@ "name": "Account", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountData", @@ -1288,7 +1288,7 @@ "name": "Locks", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "Vec", @@ -1305,7 +1305,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -1607,7 +1607,7 @@ "name": "NextFeeMultiplier", "modifier": "Default", "type": { - "Plain": "Multiplier" + "plain": "Multiplier" }, "fallback": "0x000064a7b3b6e00d0000000000000000", "documentation": [] @@ -1616,7 +1616,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [] @@ -1654,7 +1654,7 @@ "name": "HistoryDepth", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x54000000", "documentation": [ @@ -1671,7 +1671,7 @@ "name": "ValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1682,7 +1682,7 @@ "name": "MinimumValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1693,7 +1693,7 @@ "name": "Invulnerables", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1706,7 +1706,7 @@ "name": "Bonded", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "AccountId", @@ -1722,7 +1722,7 @@ "name": "Ledger", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "StakingLedger", @@ -1738,7 +1738,7 @@ "name": "Payee", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "RewardDestination", @@ -1754,7 +1754,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "ValidatorPrefs", @@ -1770,7 +1770,7 @@ "name": "Nominators", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Nominations", @@ -1786,7 +1786,7 @@ "name": "CurrentEra", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -1800,7 +1800,7 @@ "name": "ActiveEra", "modifier": "Optional", "type": { - "Plain": "ActiveEraInfo" + "plain": "ActiveEraInfo" }, "fallback": "0x00", "documentation": [ @@ -1814,7 +1814,7 @@ "name": "ErasStartSessionIndex", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "SessionIndex", @@ -1830,7 +1830,7 @@ "name": "ErasStakers", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -1852,7 +1852,7 @@ "name": "ErasStakersClipped", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -1879,7 +1879,7 @@ "name": "ErasValidatorPrefs", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -1900,7 +1900,7 @@ "name": "ErasValidatorReward", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "BalanceOf", @@ -1918,7 +1918,7 @@ "name": "ErasRewardPoints", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "EraRewardPoints", @@ -1935,7 +1935,7 @@ "name": "ErasTotalStake", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "BalanceOf", @@ -1952,7 +1952,7 @@ "name": "ForceEra", "modifier": "Default", "type": { - "Plain": "Forcing" + "plain": "Forcing" }, "fallback": "0x00", "documentation": [ @@ -1963,7 +1963,7 @@ "name": "SlashRewardFraction", "modifier": "Default", "type": { - "Plain": "Perbill" + "plain": "Perbill" }, "fallback": "0x00000000", "documentation": [ @@ -1976,7 +1976,7 @@ "name": "CanceledSlashPayout", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1988,7 +1988,7 @@ "name": "UnappliedSlashes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "Vec", @@ -2004,7 +2004,7 @@ "name": "BondedEras", "modifier": "Default", "type": { - "Plain": "Vec<(EraIndex,SessionIndex)>" + "plain": "Vec<(EraIndex,SessionIndex)>" }, "fallback": "0x00", "documentation": [ @@ -2018,7 +2018,7 @@ "name": "ValidatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2036,7 +2036,7 @@ "name": "NominatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2053,7 +2053,7 @@ "name": "SlashingSpans", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "SlashingSpans", @@ -2069,7 +2069,7 @@ "name": "SpanSlash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", @@ -2086,7 +2086,7 @@ "name": "EarliestUnappliedSlash", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -2097,7 +2097,7 @@ "name": "SnapshotValidators", "modifier": "Optional", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2109,7 +2109,7 @@ "name": "SnapshotNominators", "modifier": "Optional", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2121,7 +2121,7 @@ "name": "QueuedElected", "modifier": "Optional", "type": { - "Plain": "ElectionResult" + "plain": "ElectionResult" }, "fallback": "0x00", "documentation": [ @@ -2134,7 +2134,7 @@ "name": "QueuedScore", "modifier": "Optional", "type": { - "Plain": "ElectionScore" + "plain": "ElectionScore" }, "fallback": "0x00", "documentation": [ @@ -2145,7 +2145,7 @@ "name": "EraElectionStatus", "modifier": "Default", "type": { - "Plain": "ElectionStatus" + "plain": "ElectionStatus" }, "fallback": "0x00", "documentation": [ @@ -2157,7 +2157,7 @@ "name": "IsCurrentSessionFinal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -2169,7 +2169,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x03", "documentation": [ @@ -3268,7 +3268,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3279,7 +3279,7 @@ "name": "CurrentIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3290,7 +3290,7 @@ "name": "QueuedChanged", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -3302,7 +3302,7 @@ "name": "QueuedKeys", "modifier": "Default", "type": { - "Plain": "Vec<(ValidatorId,Keys)>" + "plain": "Vec<(ValidatorId,Keys)>" }, "fallback": "0x00", "documentation": [ @@ -3314,7 +3314,7 @@ "name": "DisabledValidators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3327,7 +3327,7 @@ "name": "NextKeys", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ValidatorId", "value": "Keys", @@ -3343,7 +3343,7 @@ "name": "KeyOwner", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "(KeyTypeId,Bytes)", "value": "ValidatorId", @@ -3455,7 +3455,7 @@ "name": "PublicPropCount", "modifier": "Default", "type": { - "Plain": "PropIndex" + "plain": "PropIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3466,7 +3466,7 @@ "name": "PublicProps", "modifier": "Default", "type": { - "Plain": "Vec<(PropIndex,Hash,AccountId)>" + "plain": "Vec<(PropIndex,Hash,AccountId)>" }, "fallback": "0x00", "documentation": [ @@ -3477,7 +3477,7 @@ "name": "DepositOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "PropIndex", "value": "(Vec,BalanceOf)", @@ -3495,7 +3495,7 @@ "name": "Preimages", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "PreimageStatus", @@ -3512,7 +3512,7 @@ "name": "ReferendumCount", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3523,7 +3523,7 @@ "name": "LowestUnbaked", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3535,7 +3535,7 @@ "name": "ReferendumInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ReferendumIndex", "value": "ReferendumInfo", @@ -3553,7 +3553,7 @@ "name": "VotingOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Voting", @@ -3572,7 +3572,7 @@ "name": "Locks", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "BlockNumber", @@ -3591,7 +3591,7 @@ "name": "LastTabledWasExternal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -3603,7 +3603,7 @@ "name": "NextExternal", "modifier": "Optional", "type": { - "Plain": "(Hash,VoteThreshold)" + "plain": "(Hash,VoteThreshold)" }, "fallback": "0x00", "documentation": [ @@ -3617,7 +3617,7 @@ "name": "Blacklist", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "(BlockNumber,Vec)", @@ -3634,7 +3634,7 @@ "name": "Cancellations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "bool", @@ -3650,7 +3650,7 @@ "name": "StorageVersion", "modifier": "Optional", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -4715,7 +4715,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4726,7 +4726,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Proposal", @@ -4742,7 +4742,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Votes", @@ -4758,7 +4758,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -4769,7 +4769,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4780,7 +4780,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -5169,7 +5169,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5180,7 +5180,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Proposal", @@ -5196,7 +5196,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Votes", @@ -5212,7 +5212,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -5223,7 +5223,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5234,7 +5234,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -5623,7 +5623,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -5634,7 +5634,7 @@ "name": "RunnersUp", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -5645,7 +5645,7 @@ "name": "ElectionRounds", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -5656,7 +5656,7 @@ "name": "Voting", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(BalanceOf,Vec)", @@ -5674,7 +5674,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6102,7 +6102,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6113,7 +6113,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -6336,7 +6336,7 @@ "name": "State", "modifier": "Default", "type": { - "Plain": "StoredState" + "plain": "StoredState" }, "fallback": "0x00", "documentation": [ @@ -6347,7 +6347,7 @@ "name": "PendingChange", "modifier": "Optional", "type": { - "Plain": "StoredPendingChange" + "plain": "StoredPendingChange" }, "fallback": "0x00", "documentation": [ @@ -6358,7 +6358,7 @@ "name": "NextForced", "modifier": "Optional", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00", "documentation": [ @@ -6369,7 +6369,7 @@ "name": "Stalled", "modifier": "Optional", "type": { - "Plain": "(BlockNumber,BlockNumber)" + "plain": "(BlockNumber,BlockNumber)" }, "fallback": "0x00", "documentation": [ @@ -6380,7 +6380,7 @@ "name": "CurrentSetId", "modifier": "Default", "type": { - "Plain": "SetId" + "plain": "SetId" }, "fallback": "0x0000000000000000", "documentation": [ @@ -6392,7 +6392,7 @@ "name": "SetIdSession", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "SetId", "value": "SessionIndex", @@ -6558,7 +6558,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "ProposalIndex" + "plain": "ProposalIndex" }, "fallback": "0x00000000", "documentation": [ @@ -6569,7 +6569,7 @@ "name": "Proposals", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ProposalIndex", "value": "TreasuryProposal", @@ -6585,7 +6585,7 @@ "name": "Approvals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6596,7 +6596,7 @@ "name": "Tips", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Hash", "value": "OpenTip", @@ -6614,7 +6614,7 @@ "name": "Reasons", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Bytes", @@ -7110,7 +7110,7 @@ "name": "CurrentSchedule", "modifier": "Default", "type": { - "Plain": "Schedule" + "plain": "Schedule" }, "fallback": "0x0000000020a107000000000020a107000000000020a107000000000020a107000000000020a107000000000020a107000000000020a1070000000000e0f7050400000000e024370500000000e0f705040000000020a107000000000020a107000000000080f0fa020000000000e1f5050000000004000000000001001000000000400000002000000000000800", "documentation": [ @@ -7121,7 +7121,7 @@ "name": "PristineCode", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "CodeHash", "value": "Bytes", @@ -7137,7 +7137,7 @@ "name": "CodeStorage", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "CodeHash", "value": "PrefabWasmModule", @@ -7153,7 +7153,7 @@ "name": "AccountCounter", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -7164,7 +7164,7 @@ "name": "ContractInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "ContractInfo", @@ -7580,7 +7580,7 @@ "name": "Key", "modifier": "Default", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -7731,7 +7731,7 @@ "name": "HeartbeatAfter", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -7747,7 +7747,7 @@ "name": "Keys", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -7758,7 +7758,7 @@ "name": "ReceivedHeartbeats", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "SessionIndex", "key2": "AuthIndex", @@ -7776,7 +7776,7 @@ "name": "AuthoredBlocks", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "SessionIndex", "key2": "ValidatorId", @@ -7879,7 +7879,7 @@ "name": "Reports", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ReportIdOf", "value": "OffenceDetails", @@ -7895,7 +7895,7 @@ "name": "DeferredOffences", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -7907,7 +7907,7 @@ "name": "ConcurrentReportsIndex", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Kind", "key2": "OpaqueTimeSlot", @@ -7924,7 +7924,7 @@ "name": "ReportsByKindIndex", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Kind", "value": "Bytes", @@ -7980,7 +7980,7 @@ "name": "RandomMaterial", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8005,7 +8005,7 @@ "name": "IdentityOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Registration", @@ -8023,7 +8023,7 @@ "name": "SuperOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "(AccountId,Data)", @@ -8040,7 +8040,7 @@ "name": "SubsOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(BalanceOf,Vec)", @@ -8060,7 +8060,7 @@ "name": "Registrars", "modifier": "Default", "type": { - "Plain": "Vec>" + "plain": "Vec>" }, "fallback": "0x00", "documentation": [ @@ -8744,7 +8744,7 @@ "name": "Founder", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -8755,7 +8755,7 @@ "name": "Rules", "modifier": "Optional", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x00", "documentation": [ @@ -8767,7 +8767,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8778,7 +8778,7 @@ "name": "SuspendedCandidates", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(BalanceOf,BidKind)", @@ -8794,7 +8794,7 @@ "name": "Pot", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -8805,7 +8805,7 @@ "name": "Head", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -8816,7 +8816,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8827,7 +8827,7 @@ "name": "SuspendedMembers", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "bool", @@ -8843,7 +8843,7 @@ "name": "Bids", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8854,7 +8854,7 @@ "name": "Vouching", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "VouchingStatus", @@ -8870,7 +8870,7 @@ "name": "Payouts", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Vec<(BlockNumber,BalanceOf)>", @@ -8886,7 +8886,7 @@ "name": "Strikes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "StrikeCount", @@ -8902,7 +8902,7 @@ "name": "Votes", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -8919,7 +8919,7 @@ "name": "Defender", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -8930,7 +8930,7 @@ "name": "DefenderVotes", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "SocietyVote", @@ -8946,7 +8946,7 @@ "name": "MaxMembers", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -9725,7 +9725,7 @@ "name": "Recoverable", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "RecoveryConfig", @@ -9741,7 +9741,7 @@ "name": "ActiveRecoveries", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -9761,7 +9761,7 @@ "name": "Proxy", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountId", @@ -10272,7 +10272,7 @@ "name": "Vesting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "VestingInfo", @@ -10475,7 +10475,7 @@ "name": "Agenda", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Vec>", @@ -10491,7 +10491,7 @@ "name": "Lookup", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Bytes", "value": "TaskAddress", @@ -10507,7 +10507,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -10760,7 +10760,7 @@ "name": "Proxies", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(Vec,BalanceOf)", @@ -10777,7 +10777,7 @@ "name": "Announcements", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(Vec,BalanceOf)", @@ -11269,7 +11269,7 @@ "name": "Multisigs", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "[u8;32]", @@ -11286,7 +11286,7 @@ "name": "Calls", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "[u8;32]", "value": "(OpaqueCall,AccountId,BalanceOf)", diff --git a/packages/metadata/src/v12/static-substrate.json b/packages/metadata/src/v12/static-substrate.json index e2043a9755..0448ad4820 100644 --- a/packages/metadata/src/v12/static-substrate.json +++ b/packages/metadata/src/v12/static-substrate.json @@ -1,7 +1,7 @@ { "magicNumber": 1635018093, "metadata": { - "V12": { + "v12": { "modules": [ { "name": "System", @@ -12,7 +12,7 @@ "name": "Account", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountInfo", @@ -28,7 +28,7 @@ "name": "ExtrinsicCount", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -39,7 +39,7 @@ "name": "BlockWeight", "modifier": "Default", "type": { - "Plain": "ConsumedWeight" + "plain": "ConsumedWeight" }, "fallback": "0x000000000000000000000000000000000000000000000000", "documentation": [ @@ -50,7 +50,7 @@ "name": "AllExtrinsicsLen", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -61,7 +61,7 @@ "name": "BlockHash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Hash", @@ -77,7 +77,7 @@ "name": "ExtrinsicData", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "u32", "value": "Bytes", @@ -93,7 +93,7 @@ "name": "Number", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -104,7 +104,7 @@ "name": "ParentHash", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -115,7 +115,7 @@ "name": "Digest", "modifier": "Default", "type": { - "Plain": "DigestOf" + "plain": "DigestOf" }, "fallback": "0x00", "documentation": [ @@ -126,7 +126,7 @@ "name": "Events", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -137,7 +137,7 @@ "name": "EventCount", "modifier": "Default", "type": { - "Plain": "EventIndex" + "plain": "EventIndex" }, "fallback": "0x00000000", "documentation": [ @@ -148,7 +148,7 @@ "name": "EventTopics", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", @@ -173,7 +173,7 @@ "name": "LastRuntimeUpgrade", "modifier": "Optional", "type": { - "Plain": "LastRuntimeUpgradeInfo" + "plain": "LastRuntimeUpgradeInfo" }, "fallback": "0x00", "documentation": [ @@ -184,7 +184,7 @@ "name": "UpgradedToU32RefCount", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -195,7 +195,7 @@ "name": "UpgradedToDualRefCount", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -207,7 +207,7 @@ "name": "ExecutionPhase", "modifier": "Optional", "type": { - "Plain": "Phase" + "plain": "Phase" }, "fallback": "0x00", "documentation": [ @@ -649,7 +649,7 @@ "name": "EpochIndex", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -660,7 +660,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" + "plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, "fallback": "0x00", "documentation": [ @@ -671,7 +671,7 @@ "name": "GenesisSlot", "modifier": "Default", "type": { - "Plain": "Slot" + "plain": "Slot" }, "fallback": "0x0000000000000000", "documentation": [ @@ -683,7 +683,7 @@ "name": "CurrentSlot", "modifier": "Default", "type": { - "Plain": "Slot" + "plain": "Slot" }, "fallback": "0x0000000000000000", "documentation": [ @@ -694,7 +694,7 @@ "name": "Randomness", "modifier": "Default", "type": { - "Plain": "Randomness" + "plain": "Randomness" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -714,7 +714,7 @@ "name": "NextEpochConfig", "modifier": "Optional", "type": { - "Plain": "NextConfigDescriptor" + "plain": "NextConfigDescriptor" }, "fallback": "0x00", "documentation": [ @@ -725,7 +725,7 @@ "name": "NextRandomness", "modifier": "Default", "type": { - "Plain": "Randomness" + "plain": "Randomness" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -736,7 +736,7 @@ "name": "NextAuthorities", "modifier": "Default", "type": { - "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" + "plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, "fallback": "0x00", "documentation": [ @@ -747,7 +747,7 @@ "name": "SegmentIndex", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -766,7 +766,7 @@ "name": "UnderConstruction", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "u32", "value": "Vec", @@ -782,7 +782,7 @@ "name": "Initialized", "modifier": "Optional", "type": { - "Plain": "MaybeRandomness" + "plain": "MaybeRandomness" }, "fallback": "0x00", "documentation": [ @@ -794,7 +794,7 @@ "name": "AuthorVrfRandomness", "modifier": "Default", "type": { - "Plain": "MaybeRandomness" + "plain": "MaybeRandomness" }, "fallback": "0x00", "documentation": [ @@ -807,7 +807,7 @@ "name": "Lateness", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -903,7 +903,7 @@ "name": "Now", "modifier": "Default", "type": { - "Plain": "Moment" + "plain": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ @@ -914,7 +914,7 @@ "name": "DidUpdate", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -977,7 +977,7 @@ "name": "Uncles", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -988,7 +988,7 @@ "name": "Author", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -999,7 +999,7 @@ "name": "DidSetUncles", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -1079,7 +1079,7 @@ "name": "Accounts", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountIndex", "value": "(AccountId,BalanceOf,bool)", @@ -1309,7 +1309,7 @@ "name": "TotalIssuance", "modifier": "Default", "type": { - "Plain": "Balance" + "plain": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1320,7 +1320,7 @@ "name": "Account", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountData", @@ -1338,7 +1338,7 @@ "name": "Locks", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "Vec", @@ -1355,7 +1355,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -1658,7 +1658,7 @@ "name": "NextFeeMultiplier", "modifier": "Default", "type": { - "Plain": "Multiplier" + "plain": "Multiplier" }, "fallback": "0x000064a7b3b6e00d0000000000000000", "documentation": [] @@ -1667,7 +1667,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [] @@ -1706,7 +1706,7 @@ "name": "Round", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x01000000", "documentation": [ @@ -1722,7 +1722,7 @@ "name": "CurrentPhase", "modifier": "Default", "type": { - "Plain": "Phase" + "plain": "Phase" }, "fallback": "0x00", "documentation": [ @@ -1733,7 +1733,7 @@ "name": "QueuedSolution", "modifier": "Optional", "type": { - "Plain": "ReadySolution" + "plain": "ReadySolution" }, "fallback": "0x00", "documentation": [ @@ -1744,7 +1744,7 @@ "name": "Snapshot", "modifier": "Optional", "type": { - "Plain": "RoundSnapshot" + "plain": "RoundSnapshot" }, "fallback": "0x00", "documentation": [ @@ -1757,7 +1757,7 @@ "name": "DesiredTargets", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -1770,7 +1770,7 @@ "name": "SnapshotMetadata", "modifier": "Optional", "type": { - "Plain": "SolutionOrSnapshotSize" + "plain": "SolutionOrSnapshotSize" }, "fallback": "0x00", "documentation": [ @@ -1930,7 +1930,7 @@ "name": "HistoryDepth", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x54000000", "documentation": [ @@ -1947,7 +1947,7 @@ "name": "ValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1958,7 +1958,7 @@ "name": "MinimumValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1969,7 +1969,7 @@ "name": "Invulnerables", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1982,7 +1982,7 @@ "name": "Bonded", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "AccountId", @@ -1998,7 +1998,7 @@ "name": "Ledger", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "StakingLedger", @@ -2014,7 +2014,7 @@ "name": "Payee", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "RewardDestination", @@ -2030,7 +2030,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "ValidatorPrefs", @@ -2046,7 +2046,7 @@ "name": "Nominators", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Nominations", @@ -2062,7 +2062,7 @@ "name": "CurrentEra", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -2076,7 +2076,7 @@ "name": "ActiveEra", "modifier": "Optional", "type": { - "Plain": "ActiveEraInfo" + "plain": "ActiveEraInfo" }, "fallback": "0x00", "documentation": [ @@ -2090,7 +2090,7 @@ "name": "ErasStartSessionIndex", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "SessionIndex", @@ -2109,7 +2109,7 @@ "name": "ErasStakers", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2131,7 +2131,7 @@ "name": "ErasStakersClipped", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2158,7 +2158,7 @@ "name": "ErasValidatorPrefs", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2179,7 +2179,7 @@ "name": "ErasValidatorReward", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "BalanceOf", @@ -2197,7 +2197,7 @@ "name": "ErasRewardPoints", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "EraRewardPoints", @@ -2214,7 +2214,7 @@ "name": "ErasTotalStake", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "BalanceOf", @@ -2231,7 +2231,7 @@ "name": "ForceEra", "modifier": "Default", "type": { - "Plain": "Forcing" + "plain": "Forcing" }, "fallback": "0x00", "documentation": [ @@ -2242,7 +2242,7 @@ "name": "SlashRewardFraction", "modifier": "Default", "type": { - "Plain": "Perbill" + "plain": "Perbill" }, "fallback": "0x00000000", "documentation": [ @@ -2255,7 +2255,7 @@ "name": "CanceledSlashPayout", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -2267,7 +2267,7 @@ "name": "UnappliedSlashes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "EraIndex", "value": "Vec", @@ -2283,7 +2283,7 @@ "name": "BondedEras", "modifier": "Default", "type": { - "Plain": "Vec<(EraIndex,SessionIndex)>" + "plain": "Vec<(EraIndex,SessionIndex)>" }, "fallback": "0x00", "documentation": [ @@ -2297,7 +2297,7 @@ "name": "ValidatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2315,7 +2315,7 @@ "name": "NominatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "EraIndex", "key2": "AccountId", @@ -2332,7 +2332,7 @@ "name": "SlashingSpans", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "SlashingSpans", @@ -2348,7 +2348,7 @@ "name": "SpanSlash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", @@ -2365,7 +2365,7 @@ "name": "EarliestUnappliedSlash", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -2376,7 +2376,7 @@ "name": "CurrentPlannedSession", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -2389,7 +2389,7 @@ "name": "SnapshotValidators", "modifier": "Optional", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2403,7 +2403,7 @@ "name": "SnapshotNominators", "modifier": "Optional", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2417,7 +2417,7 @@ "name": "QueuedElected", "modifier": "Optional", "type": { - "Plain": "ElectionResult" + "plain": "ElectionResult" }, "fallback": "0x00", "documentation": [ @@ -2432,7 +2432,7 @@ "name": "QueuedScore", "modifier": "Optional", "type": { - "Plain": "ElectionScore" + "plain": "ElectionScore" }, "fallback": "0x00", "documentation": [ @@ -2445,7 +2445,7 @@ "name": "EraElectionStatus", "modifier": "Default", "type": { - "Plain": "ElectionStatus" + "plain": "ElectionStatus" }, "fallback": "0x00", "documentation": [ @@ -2459,7 +2459,7 @@ "name": "IsCurrentSessionFinal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -2473,7 +2473,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x04", "documentation": [ @@ -3623,7 +3623,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3634,7 +3634,7 @@ "name": "CurrentIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3645,7 +3645,7 @@ "name": "QueuedChanged", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -3657,7 +3657,7 @@ "name": "QueuedKeys", "modifier": "Default", "type": { - "Plain": "Vec<(ValidatorId,Keys)>" + "plain": "Vec<(ValidatorId,Keys)>" }, "fallback": "0x00", "documentation": [ @@ -3669,7 +3669,7 @@ "name": "DisabledValidators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3682,7 +3682,7 @@ "name": "NextKeys", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ValidatorId", "value": "Keys", @@ -3698,7 +3698,7 @@ "name": "KeyOwner", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "(KeyTypeId,Bytes)", "value": "ValidatorId", @@ -3817,7 +3817,7 @@ "name": "PublicPropCount", "modifier": "Default", "type": { - "Plain": "PropIndex" + "plain": "PropIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3828,7 +3828,7 @@ "name": "PublicProps", "modifier": "Default", "type": { - "Plain": "Vec<(PropIndex,Hash,AccountId)>" + "plain": "Vec<(PropIndex,Hash,AccountId)>" }, "fallback": "0x00", "documentation": [ @@ -3839,7 +3839,7 @@ "name": "DepositOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "PropIndex", "value": "(Vec,BalanceOf)", @@ -3857,7 +3857,7 @@ "name": "Preimages", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "PreimageStatus", @@ -3874,7 +3874,7 @@ "name": "ReferendumCount", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3885,7 +3885,7 @@ "name": "LowestUnbaked", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3897,7 +3897,7 @@ "name": "ReferendumInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ReferendumIndex", "value": "ReferendumInfo", @@ -3915,7 +3915,7 @@ "name": "VotingOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Voting", @@ -3934,7 +3934,7 @@ "name": "Locks", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "BlockNumber", @@ -3953,7 +3953,7 @@ "name": "LastTabledWasExternal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -3965,7 +3965,7 @@ "name": "NextExternal", "modifier": "Optional", "type": { - "Plain": "(Hash,VoteThreshold)" + "plain": "(Hash,VoteThreshold)" }, "fallback": "0x00", "documentation": [ @@ -3979,7 +3979,7 @@ "name": "Blacklist", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "(BlockNumber,Vec)", @@ -3996,7 +3996,7 @@ "name": "Cancellations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "bool", @@ -4012,7 +4012,7 @@ "name": "StorageVersion", "modifier": "Optional", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -5066,7 +5066,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5077,7 +5077,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Proposal", @@ -5093,7 +5093,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Votes", @@ -5109,7 +5109,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -5120,7 +5120,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5131,7 +5131,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -5525,7 +5525,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5536,7 +5536,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Proposal", @@ -5552,7 +5552,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Votes", @@ -5568,7 +5568,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -5579,7 +5579,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5590,7 +5590,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -5984,7 +5984,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -5997,7 +5997,7 @@ "name": "RunnersUp", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6011,7 +6011,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -6027,7 +6027,7 @@ "name": "ElectionRounds", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -6038,7 +6038,7 @@ "name": "Voting", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Voter", @@ -6443,7 +6443,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -6454,7 +6454,7 @@ "name": "Prime", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -6626,7 +6626,7 @@ "name": "State", "modifier": "Default", "type": { - "Plain": "StoredState" + "plain": "StoredState" }, "fallback": "0x00", "documentation": [ @@ -6637,7 +6637,7 @@ "name": "PendingChange", "modifier": "Optional", "type": { - "Plain": "StoredPendingChange" + "plain": "StoredPendingChange" }, "fallback": "0x00", "documentation": [ @@ -6648,7 +6648,7 @@ "name": "NextForced", "modifier": "Optional", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00", "documentation": [ @@ -6659,7 +6659,7 @@ "name": "Stalled", "modifier": "Optional", "type": { - "Plain": "(BlockNumber,BlockNumber)" + "plain": "(BlockNumber,BlockNumber)" }, "fallback": "0x00", "documentation": [ @@ -6670,7 +6670,7 @@ "name": "CurrentSetId", "modifier": "Default", "type": { - "Plain": "SetId" + "plain": "SetId" }, "fallback": "0x0000000000000000", "documentation": [ @@ -6682,7 +6682,7 @@ "name": "SetIdSession", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "SetId", "value": "SessionIndex", @@ -6849,7 +6849,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "ProposalIndex" + "plain": "ProposalIndex" }, "fallback": "0x00000000", "documentation": [ @@ -6860,7 +6860,7 @@ "name": "Proposals", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ProposalIndex", "value": "TreasuryProposal", @@ -6876,7 +6876,7 @@ "name": "Approvals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -7089,7 +7089,7 @@ "name": "CurrentSchedule", "modifier": "Default", "type": { - "Plain": "Schedule" + "plain": "Schedule" }, "fallback": "0x0000000000040000000002000000010000800000001000000000100000000100002000000078060000a5600200a1740300271600000d1c0000e20c00006e160000ff280000a00000008b780100e4f80200b70600002c06000027070000a705000074170000ca2700002807000002ea8f08ef070000fd0700003c0a0000630800007f070000c7070000fe0700008909000022090000ea080000c30900002709000059070000d508000082080000b60900007a090000c90800009b080000bb080000a51f0000b51c00009a1f0000c21c00008c0800006b080000ea0800004009000092090000fc080000ae090000c2090000ae37290000000000e636290000000000be5a280000000000d479570000000000bc25280000000000a285280000000000008c28000000000052385c00000000003a07280000000000942a280000000000541d4d00000000002603130000000000b08a6f00000000000b01000000000000a053480000000000fd020000000000009862332700000000a32000000000000000e3bd3100000000902200000000000056120000000000006872ad0900000000de326200000000007cfe8e00000000008211ce07000000009309000000000000ac096d0000000000e43f161100000000da020000000000005e74cf0800000000e07b0b0200000000f005000000000000deb1c40a00000000f24a370900000000ff0e000000000000228bf9080000000049020000000000002a030000000000004c971c2300000000892100000000000067020000000000005703000000000000e60b000000000000aac22400000000006210000000000000f434270000000000200d00000000000094672200000000001806000000000000f86c2200000000001806000000000000", "documentation": [ @@ -7100,7 +7100,7 @@ "name": "PristineCode", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "CodeHash", "value": "Bytes", @@ -7116,7 +7116,7 @@ "name": "CodeStorage", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "CodeHash", "value": "PrefabWasmModule", @@ -7132,7 +7132,7 @@ "name": "AccountCounter", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -7143,7 +7143,7 @@ "name": "ContractInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "ContractInfo", @@ -7161,7 +7161,7 @@ "name": "DeletionQueue", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -7769,7 +7769,7 @@ "name": "Key", "modifier": "Default", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -7921,7 +7921,7 @@ "name": "HeartbeatAfter", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -7937,7 +7937,7 @@ "name": "Keys", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -7948,7 +7948,7 @@ "name": "ReceivedHeartbeats", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "SessionIndex", "key2": "AuthIndex", @@ -7966,7 +7966,7 @@ "name": "AuthoredBlocks", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "SessionIndex", "key2": "ValidatorId", @@ -8070,7 +8070,7 @@ "name": "Reports", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "ReportIdOf", "value": "OffenceDetails", @@ -8086,7 +8086,7 @@ "name": "DeferredOffences", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8098,7 +8098,7 @@ "name": "ConcurrentReportsIndex", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Kind", "key2": "OpaqueTimeSlot", @@ -8115,7 +8115,7 @@ "name": "ReportsByKindIndex", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Kind", "value": "Bytes", @@ -8173,7 +8173,7 @@ "name": "RandomMaterial", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8199,7 +8199,7 @@ "name": "IdentityOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Registration", @@ -8217,7 +8217,7 @@ "name": "SuperOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "(AccountId,Data)", @@ -8234,7 +8234,7 @@ "name": "SubsOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(BalanceOf,Vec)", @@ -8254,7 +8254,7 @@ "name": "Registrars", "modifier": "Default", "type": { - "Plain": "Vec>" + "plain": "Vec>" }, "fallback": "0x00", "documentation": [ @@ -8939,7 +8939,7 @@ "name": "Founder", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -8950,7 +8950,7 @@ "name": "Rules", "modifier": "Optional", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x00", "documentation": [ @@ -8962,7 +8962,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -8973,7 +8973,7 @@ "name": "SuspendedCandidates", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(BalanceOf,BidKind)", @@ -8989,7 +8989,7 @@ "name": "Pot", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -9000,7 +9000,7 @@ "name": "Head", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -9011,7 +9011,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -9022,7 +9022,7 @@ "name": "SuspendedMembers", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "bool", @@ -9038,7 +9038,7 @@ "name": "Bids", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -9049,7 +9049,7 @@ "name": "Vouching", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "VouchingStatus", @@ -9065,7 +9065,7 @@ "name": "Payouts", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "Vec<(BlockNumber,BalanceOf)>", @@ -9081,7 +9081,7 @@ "name": "Strikes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "StrikeCount", @@ -9097,7 +9097,7 @@ "name": "Votes", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -9114,7 +9114,7 @@ "name": "Defender", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -9125,7 +9125,7 @@ "name": "DefenderVotes", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "SocietyVote", @@ -9141,7 +9141,7 @@ "name": "MaxMembers", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -9921,7 +9921,7 @@ "name": "Recoverable", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "RecoveryConfig", @@ -9937,7 +9937,7 @@ "name": "ActiveRecoveries", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "AccountId", @@ -9957,7 +9957,7 @@ "name": "Proxy", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountId", @@ -10475,7 +10475,7 @@ "name": "Vesting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "VestingInfo", @@ -10667,7 +10667,7 @@ "name": "Agenda", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Vec>", @@ -10683,7 +10683,7 @@ "name": "Lookup", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Bytes", "value": "TaskAddress", @@ -10699,7 +10699,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "Releases" + "plain": "Releases" }, "fallback": "0x00", "documentation": [ @@ -10959,7 +10959,7 @@ "name": "Proxies", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(Vec,BalanceOf)", @@ -10976,7 +10976,7 @@ "name": "Announcements", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(Vec,BalanceOf)", @@ -11477,7 +11477,7 @@ "name": "Multisigs", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "AccountId", "key2": "[u8;32]", @@ -11494,7 +11494,7 @@ "name": "Calls", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "[u8;32]", "value": "(OpaqueCall,AccountId,BalanceOf)", @@ -11903,7 +11903,7 @@ "name": "BountyCount", "modifier": "Default", "type": { - "Plain": "BountyIndex" + "plain": "BountyIndex" }, "fallback": "0x00000000", "documentation": [ @@ -11914,7 +11914,7 @@ "name": "Bounties", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BountyIndex", "value": "Bounty", @@ -11930,7 +11930,7 @@ "name": "BountyDescriptions", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BountyIndex", "value": "Bytes", @@ -11946,7 +11946,7 @@ "name": "BountyApprovals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -12363,7 +12363,7 @@ "name": "Tips", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "Hash", "value": "OpenTip", @@ -12381,7 +12381,7 @@ "name": "Reasons", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "Hash", "value": "Bytes", @@ -12736,7 +12736,7 @@ "name": "Asset", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AssetId", "value": "AssetDetails", @@ -12752,7 +12752,7 @@ "name": "Account", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_128Concat", "key1": "AssetId", "key2": "AccountId", @@ -12769,7 +12769,7 @@ "name": "Metadata", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_128Concat", "key": "AssetId", "value": "AssetMetadata", @@ -13549,7 +13549,7 @@ "name": "RootHash", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -13560,7 +13560,7 @@ "name": "NumberOfLeaves", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -13571,7 +13571,7 @@ "name": "Nodes", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Identity", "key": "u64", "value": "Hash", @@ -13603,7 +13603,7 @@ "name": "LotteryIndex", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [] @@ -13612,7 +13612,7 @@ "name": "Lottery", "modifier": "Optional", "type": { - "Plain": "LotteryConfig" + "plain": "LotteryConfig" }, "fallback": "0x00", "documentation": [ @@ -13623,7 +13623,7 @@ "name": "Participants", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "(u32,Vec)", @@ -13639,7 +13639,7 @@ "name": "TicketsCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -13650,7 +13650,7 @@ "name": "Tickets", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "u32", "value": "AccountId", @@ -13669,7 +13669,7 @@ "name": "CallIndices", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ diff --git a/packages/metadata/src/v9/static-substrate.json b/packages/metadata/src/v9/static-substrate.json index b398678503..ef1ae56bbd 100644 --- a/packages/metadata/src/v9/static-substrate.json +++ b/packages/metadata/src/v9/static-substrate.json @@ -1,7 +1,7 @@ { "magicNumber": 1635018093, "metadata": { - "V9": { + "v9": { "modules": [ { "name": "System", @@ -12,7 +12,7 @@ "name": "AccountNonce", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Index", @@ -28,7 +28,7 @@ "name": "ExtrinsicCount", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -39,7 +39,7 @@ "name": "AllExtrinsicsWeight", "modifier": "Optional", "type": { - "Plain": "Weight" + "plain": "Weight" }, "fallback": "0x00", "documentation": [ @@ -50,7 +50,7 @@ "name": "AllExtrinsicsLen", "modifier": "Optional", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00", "documentation": [ @@ -61,7 +61,7 @@ "name": "BlockHash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "BlockNumber", "value": "Hash", @@ -77,7 +77,7 @@ "name": "ExtrinsicData", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "u32", "value": "Bytes", @@ -93,7 +93,7 @@ "name": "Number", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -104,7 +104,7 @@ "name": "ParentHash", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -115,7 +115,7 @@ "name": "ExtrinsicsRoot", "modifier": "Default", "type": { - "Plain": "Hash" + "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -126,7 +126,7 @@ "name": "Digest", "modifier": "Default", "type": { - "Plain": "DigestOf" + "plain": "DigestOf" }, "fallback": "0x00", "documentation": [ @@ -137,7 +137,7 @@ "name": "Events", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -148,7 +148,7 @@ "name": "EventCount", "modifier": "Default", "type": { - "Plain": "EventIndex" + "plain": "EventIndex" }, "fallback": "0x00000000", "documentation": [ @@ -159,7 +159,7 @@ "name": "EventTopics", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "()", "key2": "Hash", @@ -342,7 +342,7 @@ "name": "EpochIndex", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -353,7 +353,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" + "plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, "fallback": "0x00", "documentation": [ @@ -364,7 +364,7 @@ "name": "GenesisSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -376,7 +376,7 @@ "name": "CurrentSlot", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -387,7 +387,7 @@ "name": "Randomness", "modifier": "Default", "type": { - "Plain": "[u8;32]" + "plain": "[u8;32]" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -407,7 +407,7 @@ "name": "NextRandomness", "modifier": "Default", "type": { - "Plain": "[u8;32]" + "plain": "[u8;32]" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -418,7 +418,7 @@ "name": "SegmentIndex", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -437,7 +437,7 @@ "name": "UnderConstruction", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "u32", "value": "Vec<[u8;32]>", @@ -451,7 +451,7 @@ "name": "Initialized", "modifier": "Optional", "type": { - "Plain": "MaybeVrf" + "plain": "MaybeVrf" }, "fallback": "0x00", "documentation": [ @@ -497,7 +497,7 @@ "name": "Now", "modifier": "Default", "type": { - "Plain": "Moment" + "plain": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ @@ -508,7 +508,7 @@ "name": "DidUpdate", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -564,7 +564,7 @@ "name": "Uncles", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -575,7 +575,7 @@ "name": "Author", "modifier": "Optional", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x00", "documentation": [ @@ -586,7 +586,7 @@ "name": "DidSetUncles", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -622,7 +622,7 @@ "name": "NextEnumSet", "modifier": "Default", "type": { - "Plain": "AccountIndex" + "plain": "AccountIndex" }, "fallback": "0x00000000", "documentation": [ @@ -633,7 +633,7 @@ "name": "EnumSet", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountIndex", "value": "Vec", @@ -675,7 +675,7 @@ "name": "TotalIssuance", "modifier": "Default", "type": { - "Plain": "Balance" + "plain": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -686,7 +686,7 @@ "name": "Vesting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "VestingSchedule", @@ -702,7 +702,7 @@ "name": "FreeBalance", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", @@ -728,7 +728,7 @@ "name": "ReservedBalance", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", @@ -754,7 +754,7 @@ "name": "Locks", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", @@ -954,7 +954,7 @@ "name": "NextFeeMultiplier", "modifier": "Default", "type": { - "Plain": "Multiplier" + "plain": "Multiplier" }, "fallback": "0x0000000000000000", "documentation": [] @@ -992,7 +992,7 @@ "name": "ValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1003,7 +1003,7 @@ "name": "MinimumValidatorCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x04000000", "documentation": [ @@ -1014,7 +1014,7 @@ "name": "Invulnerables", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1027,7 +1027,7 @@ "name": "Bonded", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", @@ -1043,7 +1043,7 @@ "name": "Ledger", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "StakingLedger", @@ -1059,7 +1059,7 @@ "name": "Payee", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "RewardDestination", @@ -1075,7 +1075,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "ValidatorPrefs", @@ -1091,7 +1091,7 @@ "name": "Nominators", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Nominations", @@ -1110,7 +1110,7 @@ "name": "Stakers", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Exposure", @@ -1129,7 +1129,7 @@ "name": "CurrentElected", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1140,7 +1140,7 @@ "name": "CurrentEra", "modifier": "Default", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1151,7 +1151,7 @@ "name": "CurrentEraStart", "modifier": "Default", "type": { - "Plain": "MomentOf" + "plain": "MomentOf" }, "fallback": "0x0000000000000000", "documentation": [ @@ -1162,7 +1162,7 @@ "name": "CurrentEraStartSessionIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1173,7 +1173,7 @@ "name": "CurrentEraPointsEarned", "modifier": "Default", "type": { - "Plain": "EraPoints" + "plain": "EraPoints" }, "fallback": "0x0000000000", "documentation": [ @@ -1184,7 +1184,7 @@ "name": "SlotStake", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1197,7 +1197,7 @@ "name": "ForceEra", "modifier": "Default", "type": { - "Plain": "Forcing" + "plain": "Forcing" }, "fallback": "0x00", "documentation": [ @@ -1208,7 +1208,7 @@ "name": "SlashRewardFraction", "modifier": "Default", "type": { - "Plain": "Perbill" + "plain": "Perbill" }, "fallback": "0x00000000", "documentation": [ @@ -1221,7 +1221,7 @@ "name": "CanceledSlashPayout", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ @@ -1233,7 +1233,7 @@ "name": "UnappliedSlashes", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "EraIndex", "value": "Vec", @@ -1249,7 +1249,7 @@ "name": "BondedEras", "modifier": "Default", "type": { - "Plain": "Vec<(EraIndex,SessionIndex)>" + "plain": "Vec<(EraIndex,SessionIndex)>" }, "fallback": "0x00", "documentation": [ @@ -1260,7 +1260,7 @@ "name": "ValidatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "EraIndex", "key2": "AccountId", @@ -1278,7 +1278,7 @@ "name": "NominatorSlashInEra", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "EraIndex", "key2": "AccountId", @@ -1295,7 +1295,7 @@ "name": "SlashingSpans", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "SlashingSpans", @@ -1311,7 +1311,7 @@ "name": "SpanSlash", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", @@ -1328,7 +1328,7 @@ "name": "EarliestUnappliedSlash", "modifier": "Optional", "type": { - "Plain": "EraIndex" + "plain": "EraIndex" }, "fallback": "0x00", "documentation": [ @@ -1339,7 +1339,7 @@ "name": "StorageVersion", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -1724,7 +1724,7 @@ "name": "Validators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1735,7 +1735,7 @@ "name": "CurrentIndex", "modifier": "Default", "type": { - "Plain": "SessionIndex" + "plain": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1746,7 +1746,7 @@ "name": "QueuedChanged", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -1758,7 +1758,7 @@ "name": "QueuedKeys", "modifier": "Default", "type": { - "Plain": "Vec<(ValidatorId,Keys)>" + "plain": "Vec<(ValidatorId,Keys)>" }, "fallback": "0x00", "documentation": [ @@ -1770,7 +1770,7 @@ "name": "DisabledValidators", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -1783,7 +1783,7 @@ "name": "NextKeys", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Bytes", "key2": "ValidatorId", @@ -1803,7 +1803,7 @@ "name": "KeyOwner", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", @@ -1882,7 +1882,7 @@ "name": "PublicPropCount", "modifier": "Default", "type": { - "Plain": "PropIndex" + "plain": "PropIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1893,7 +1893,7 @@ "name": "PublicProps", "modifier": "Default", "type": { - "Plain": "Vec<(PropIndex,Hash,AccountId)>" + "plain": "Vec<(PropIndex,Hash,AccountId)>" }, "fallback": "0x00", "documentation": [ @@ -1904,7 +1904,7 @@ "name": "Preimages", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "(Bytes,AccountId,BalanceOf,BlockNumber)", @@ -1921,7 +1921,7 @@ "name": "DepositOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "PropIndex", "value": "(BalanceOf,Vec)", @@ -1937,7 +1937,7 @@ "name": "ReferendumCount", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1948,7 +1948,7 @@ "name": "NextTally", "modifier": "Default", "type": { - "Plain": "ReferendumIndex" + "plain": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ @@ -1959,7 +1959,7 @@ "name": "ReferendumInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "ReferendumInfo", @@ -1975,7 +1975,7 @@ "name": "DispatchQueue", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Vec>", @@ -1991,7 +1991,7 @@ "name": "VotersFor", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "Vec", @@ -2007,7 +2007,7 @@ "name": "VoteOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", @@ -2026,7 +2026,7 @@ "name": "Proxy", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", @@ -2043,7 +2043,7 @@ "name": "Delegations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(AccountId,Conviction)", @@ -2059,7 +2059,7 @@ "name": "LastTabledWasExternal", "modifier": "Default", "type": { - "Plain": "bool" + "plain": "bool" }, "fallback": "0x00", "documentation": [ @@ -2071,7 +2071,7 @@ "name": "NextExternal", "modifier": "Optional", "type": { - "Plain": "(Hash,VoteThreshold)" + "plain": "(Hash,VoteThreshold)" }, "fallback": "0x00", "documentation": [ @@ -2085,7 +2085,7 @@ "name": "Blacklist", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "(BlockNumber,Vec)", @@ -2102,7 +2102,7 @@ "name": "Cancellations", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "bool", @@ -2691,7 +2691,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2702,7 +2702,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", @@ -2718,7 +2718,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", @@ -2734,7 +2734,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -2745,7 +2745,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2906,7 +2906,7 @@ "name": "Proposals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -2917,7 +2917,7 @@ "name": "ProposalOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", @@ -2933,7 +2933,7 @@ "name": "Voting", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", @@ -2949,7 +2949,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -2960,7 +2960,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3121,7 +3121,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -3132,7 +3132,7 @@ "name": "RunnersUp", "modifier": "Default", "type": { - "Plain": "Vec<(AccountId,BalanceOf)>" + "plain": "Vec<(AccountId,BalanceOf)>" }, "fallback": "0x00", "documentation": [ @@ -3143,7 +3143,7 @@ "name": "ElectionRounds", "modifier": "Default", "type": { - "Plain": "u32" + "plain": "u32" }, "fallback": "0x00000000", "documentation": [ @@ -3154,7 +3154,7 @@ "name": "VotesOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", @@ -3170,7 +3170,7 @@ "name": "StakeOf", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "BalanceOf", @@ -3186,7 +3186,7 @@ "name": "Candidates", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3416,7 +3416,7 @@ "name": "Members", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3599,7 +3599,7 @@ "name": "Authorities", "modifier": "Default", "type": { - "Plain": "AuthorityList" + "plain": "AuthorityList" }, "fallback": "0x00", "documentation": [ @@ -3613,7 +3613,7 @@ "name": "State", "modifier": "Default", "type": { - "Plain": "StoredState" + "plain": "StoredState" }, "fallback": "0x00", "documentation": [ @@ -3624,7 +3624,7 @@ "name": "PendingChange", "modifier": "Optional", "type": { - "Plain": "StoredPendingChange" + "plain": "StoredPendingChange" }, "fallback": "0x00", "documentation": [ @@ -3635,7 +3635,7 @@ "name": "NextForced", "modifier": "Optional", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00", "documentation": [ @@ -3646,7 +3646,7 @@ "name": "Stalled", "modifier": "Optional", "type": { - "Plain": "(BlockNumber,BlockNumber)" + "plain": "(BlockNumber,BlockNumber)" }, "fallback": "0x00", "documentation": [ @@ -3657,7 +3657,7 @@ "name": "CurrentSetId", "modifier": "Default", "type": { - "Plain": "SetId" + "plain": "SetId" }, "fallback": "0x0000000000000000", "documentation": [ @@ -3669,7 +3669,7 @@ "name": "SetIdSession", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "SetId", "value": "SessionIndex", @@ -3734,7 +3734,7 @@ "name": "ProposalCount", "modifier": "Default", "type": { - "Plain": "ProposalIndex" + "plain": "ProposalIndex" }, "fallback": "0x00000000", "documentation": [ @@ -3745,7 +3745,7 @@ "name": "Proposals", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ProposalIndex", "value": "TreasuryProposal", @@ -3761,7 +3761,7 @@ "name": "Approvals", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -3937,7 +3937,7 @@ "name": "GasSpent", "modifier": "Default", "type": { - "Plain": "Gas" + "plain": "Gas" }, "fallback": "0x0000000000000000", "documentation": [ @@ -3948,7 +3948,7 @@ "name": "CurrentSchedule", "modifier": "Default", "type": { - "Plain": "Schedule" + "plain": "Schedule" }, "fallback": "0x0000000001000000000000000100000000000000010000000000000001000000000000000100000000000000010000000000000001000000000000008700000000000000af0000000000000001000000000000000100000000000000040000000000010010000000004000000020000000", "documentation": [ @@ -3959,7 +3959,7 @@ "name": "PristineCode", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "CodeHash", "value": "Bytes", @@ -3975,7 +3975,7 @@ "name": "CodeStorage", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "CodeHash", "value": "PrefabWasmModule", @@ -3991,7 +3991,7 @@ "name": "AccountCounter", "modifier": "Default", "type": { - "Plain": "u64" + "plain": "u64" }, "fallback": "0x0000000000000000", "documentation": [ @@ -4002,7 +4002,7 @@ "name": "ContractInfoOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "ContractInfo", @@ -4018,7 +4018,7 @@ "name": "GasPrice", "modifier": "Default", "type": { - "Plain": "BalanceOf" + "plain": "BalanceOf" }, "fallback": "0x01000000000000000000000000000000", "documentation": [ @@ -4362,7 +4362,7 @@ "name": "Key", "modifier": "Default", "type": { - "Plain": "AccountId" + "plain": "AccountId" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ @@ -4481,7 +4481,7 @@ "name": "GossipAt", "modifier": "Default", "type": { - "Plain": "BlockNumber" + "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ @@ -4492,7 +4492,7 @@ "name": "Keys", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4503,7 +4503,7 @@ "name": "ReceivedHeartbeats", "modifier": "Optional", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "SessionIndex", "key2": "AuthIndex", @@ -4521,7 +4521,7 @@ "name": "AuthoredBlocks", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "SessionIndex", "key2": "ValidatorId", @@ -4600,7 +4600,7 @@ "name": "Reports", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "ReportIdOf", "value": "OffenceDetails", @@ -4616,7 +4616,7 @@ "name": "ConcurrentReportsIndex", "modifier": "Default", "type": { - "DoubleMap": { + "doubleMap": { "hasher": "Blake2_256", "key1": "Kind", "key2": "OpaqueTimeSlot", @@ -4633,7 +4633,7 @@ "name": "ReportsByKindIndex", "modifier": "Default", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "Kind", "value": "Bytes", @@ -4678,7 +4678,7 @@ "name": "RandomMaterial", "modifier": "Default", "type": { - "Plain": "Vec" + "plain": "Vec" }, "fallback": "0x00", "documentation": [ @@ -4703,7 +4703,7 @@ "name": "NameOf", "modifier": "Optional", "type": { - "Map": { + "map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(Bytes,BalanceOf)", diff --git a/packages/types/src/codec/Enum.spec.ts b/packages/types/src/codec/Enum.spec.ts index 55903c6051..1c69e25917 100644 --- a/packages/types/src/codec/Enum.spec.ts +++ b/packages/types/src/codec/Enum.spec.ts @@ -30,7 +30,7 @@ describe('Enum', (): void => { { Text, U32 }, new Uint8Array([1, 2 << 2, 49, 50]) ).toString() - ).toEqual('{"U32":3289352}'); + ).toEqual('{"u32":3289352}'); }); it('decodes from a JSON input (lowercase)', (): void => { @@ -43,7 +43,7 @@ describe('Enum', (): void => { ).toEqual('some text value'); }); - it('decodes reusing instanciated inputs', (): void => { + it('decodes reusing instantiated inputs', (): void => { const foo = new Text(registry, 'bar'); expect( @@ -144,8 +144,8 @@ describe('Enum', (): void => { class C extends Null { } const Test = Enum.with({ A, B, C }); - expect(new Test(registry).toJSON()).toEqual({ A: null }); - expect(new Test(registry, 1234, 1).toJSON()).toEqual({ B: 1234 }); + expect(new Test(registry).toJSON()).toEqual({ a: null }); + expect(new Test(registry, 1234, 1).toJSON()).toEqual({ b: 1234 }); expect(new Test(registry, 0x1234, 1).toU8a()).toEqual(new Uint8Array([1, 0x34, 0x12, 0x00, 0x00])); expect(new Test(registry, 0x1234, 1).toU8a(true)).toEqual(new Uint8Array([0x34, 0x12, 0x00, 0x00])); }); diff --git a/packages/types/src/codec/Enum.ts b/packages/types/src/codec/Enum.ts index 732d2417f5..246814918c 100644 --- a/packages/types/src/codec/Enum.ts +++ b/packages/types/src/codec/Enum.ts @@ -99,7 +99,7 @@ function createFromValue (registry: Registry, def: TypesDef, index = 0, value?: } function decodeFromJSON (registry: Registry, def: TypesDef, key: string, value?: any): Decoded { - // JSON comes in the form of { "": "" }, here we + // JSON comes in the form of { "": "" }, here we // additionally force to lower to ensure forward compat const keys = Object.keys(def).map((k) => k.toLowerCase()); const keyLower = key.toLowerCase(); @@ -343,7 +343,7 @@ export class Enum implements Codec { public toJSON (): AnyJson { return this.#isBasic ? this.type - : { [this.type]: this.#raw.toJSON() }; + : { [stringCamelCase(this.type)]: this.#raw.toJSON() }; } /** diff --git a/packages/types/src/codec/Result.spec.ts b/packages/types/src/codec/Result.spec.ts index 10cadeefea..f6c8716085 100644 --- a/packages/types/src/codec/Result.spec.ts +++ b/packages/types/src/codec/Result.spec.ts @@ -22,7 +22,7 @@ describe('Result', (): void => { expect(result.asOk.toU8a()).toEqual(new Uint8Array([1, 2, 3, 4])); expect(result.toHex()).toEqual('0x0001020304'); expect(result.toJSON()).toEqual({ - Ok: 0x04030201 + ok: 0x04030201 }); }); @@ -33,7 +33,7 @@ describe('Result', (): void => { expect(result.asErr.toU8a()).toEqual(new Uint8Array([4 << 2, 100, 101, 102, 103])); expect(result.toHex()).toEqual('0x011064656667'); expect(result.toJSON()).toEqual({ - Err: hexToString('0x64656667') + err: hexToString('0x64656667') }); }); diff --git a/packages/types/src/create/createType.spec.ts b/packages/types/src/create/createType.spec.ts index 47c94254d7..8e5be72e85 100644 --- a/packages/types/src/create/createType.spec.ts +++ b/packages/types/src/create/createType.spec.ts @@ -60,7 +60,7 @@ describe('createType', (): void => { it('allows creation of a Enum (with types)', (): void => { expect( createTypeUnsafe(registry, '{"_enum": {"A": null, "B": "u32", "C": null} }', [1]).toJSON() - ).toEqual({ B: 0 }); + ).toEqual({ b: 0 }); }); it('allows creation of a Enum (with indexes)', (): void => { @@ -72,7 +72,7 @@ describe('createType', (): void => { it('allows creation of a Result', (): void => { expect( createTypeUnsafe(registry, 'Result', ['0x011064656667']).toJSON() - ).toEqual({ Err: 'defg' }); + ).toEqual({ err: 'defg' }); }); it('allows creation of a Set', (): void => { diff --git a/packages/types/src/extrinsic/ExtrinsicEra.spec.ts b/packages/types/src/extrinsic/ExtrinsicEra.spec.ts index 169b57d77d..ef43220e0d 100644 --- a/packages/types/src/extrinsic/ExtrinsicEra.spec.ts +++ b/packages/types/src/extrinsic/ExtrinsicEra.spec.ts @@ -11,7 +11,7 @@ describe('ExtrinsicEra', (): void => { const extrinsicEra = new ExtrinsicEra(registry, new Uint8Array([0])); expect(extrinsicEra.asImmortalEra).toBeDefined(); - expect(extrinsicEra.toJSON()).toEqual({ ImmortalEra: '0x00' }); + expect(extrinsicEra.toJSON()).toEqual({ immortalEra: '0x00' }); }); it('decodes an Extrinsic Era from u8 as mortal', (): void => { @@ -35,13 +35,13 @@ describe('ExtrinsicEra', (): void => { expect(extrinsicEra.asMortalEra.phase.toNumber()).toEqual(120); }); - it('serializes and de-serializes from JSON', (): void => { + it.only('serializes and de-serializes from JSON', (): void => { const extrinsicEra = new ExtrinsicEra(registry, new Uint8Array([78, 156])); const u8a = extrinsicEra.toU8a(); const json = extrinsicEra.toJSON(); expect(u8a).toEqual(new Uint8Array([78, 156])); - expect(json).toEqual({ MortalEra: '0x4e9c' }); + expect(json).toEqual({ mortalEra: '0x4e9c' }); expect(new ExtrinsicEra(registry, json).toU8a()).toEqual(u8a); }); diff --git a/packages/types/src/extrinsic/ExtrinsicEra.ts b/packages/types/src/extrinsic/ExtrinsicEra.ts index e8eb7c9ec9..e866501d0c 100644 --- a/packages/types/src/extrinsic/ExtrinsicEra.ts +++ b/packages/types/src/extrinsic/ExtrinsicEra.ts @@ -218,11 +218,15 @@ export class GenericExtrinsicEra extends Enum implements IExtrinsicEra { ? new Uint8Array([0]) : new Uint8Array([1, value[0], value[1]]); } else if (isObject(value)) { + const entries = Object.entries(value as MortalEnumDef).map(([k, v]): [string, any] => [k.toLowerCase(), v]); + const mortal = entries.find(([k]) => k.toLowerCase() === 'mortalera'); + const immortal = entries.find(([k]) => k.toLowerCase() === 'immortalera'); + // this is to de-serialize from JSON - return (value as MortalEnumDef).MortalEra - ? { MortalEra: (value as MortalEnumDef).MortalEra } - : (value as ImmortalEnumDef).ImmortalEra - ? { ImmortalEra: (value as ImmortalEnumDef).ImmortalEra } + return mortal + ? { MortalEra: mortal[1] as string } + : immortal + ? { ImmortalEra: immortal[1] as string } : { MortalEra: value }; } diff --git a/packages/types/src/interfaces/identity/Registration.spec.ts b/packages/types/src/interfaces/identity/Registration.spec.ts index baeab50c7a..f6030c7f67 100644 --- a/packages/types/src/interfaces/identity/Registration.spec.ts +++ b/packages/types/src/interfaces/identity/Registration.spec.ts @@ -20,14 +20,14 @@ describe('Registration', (): void => { deposit: 10000000000000, // '0x0000000000000000000009184e72a000', info: { additional: [], - display: { Raw: '0x9911' }, - email: { Raw: '0x9933' }, - image: { None: null }, - legal: { Raw: '0x9922' }, + display: { raw: '0x9911' }, + email: { raw: '0x9933' }, + image: { none: null }, + legal: { raw: '0x9922' }, pgpFingerprint: null, - riot: { Raw: '0x9955' }, - twitter: { Raw: '0x9966' }, - web: { Raw: '0x9944' } + riot: { raw: '0x9955' }, + twitter: { raw: '0x9966' }, + web: { raw: '0x9944' } }, judgements: [] }); diff --git a/packages/types/src/interfaces/offchain/definitions.spec.ts b/packages/types/src/interfaces/offchain/definitions.spec.ts new file mode 100644 index 0000000000..cf5a4a78f4 --- /dev/null +++ b/packages/types/src/interfaces/offchain/definitions.spec.ts @@ -0,0 +1,19 @@ +// Copyright 2017-2021 @polkadot/types authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { TypeRegistry } from '../../create'; + +describe('offchain definitions', (): void => { + const registry = new TypeRegistry(); + + describe('StorageKind', (): void => { + it('has the correct indexes', (): void => { + expect(registry.createType('StorageKind').index).toEqual(1); + expect(registry.createType('StorageKind', 'LOCAL').index).toEqual(2); + }); + + it('has a correct JSON for the type', (): void => { + expect(registry.createType('StorageKind').toJSON()).toEqual('PERSISTENT'); + }); + }); +});