From fbbbcd2612a2a20bc84babc4d5672031e35bdc5e Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 13 Jan 2020 22:18:51 +0100 Subject: [PATCH] Enum toJSON returns toString for a basic enum (#1697) * Update kusama static from 1032 to 1033 * Test 1032 and 1033 * Got exact metadata from kusama * First pass: enum TOJSON and fix some tests * Build interfaces * Fix import * Use camelCase for enum toJSON * Build interface * Fix lint * Fix tests * Generate static json --- .../src/Metadata/v0/static-substrate.json | 222 ++++---- .../src/Metadata/v1/static-substrate.json | 258 +++++----- .../src/Metadata/v10/static-polkadot.json | 476 +++++++++--------- .../src/Metadata/v10/static-substrate.json | 376 +++++++------- .../src/Metadata/v11/static-substrate.json | 422 ++++++++-------- .../src/Metadata/v2/static-substrate.json | 260 +++++----- .../src/Metadata/v3/static-substrate.json | 270 +++++----- .../src/Metadata/v4/static-substrate.json | 338 ++++++------- .../src/Metadata/v5/static-polkadot.json | 350 ++++++------- .../src/Metadata/v5/static-substrate.json | 338 ++++++------- .../src/Metadata/v6/static-polkadot.json | 334 ++++++------ .../src/Metadata/v6/static-substrate.json | 324 ++++++------ .../src/Metadata/v7/static-polkadot.json | 418 +++++++-------- .../src/Metadata/v7/static-substrate.json | 358 ++++++------- .../src/Metadata/v8/static-substrate.json | 370 +++++++------- .../src/Metadata/v9/static-substrate.json | 372 +++++++------- packages/metadata/src/Metadata/v9/toV10.ts | 4 +- packages/types/src/codec/Enum.spec.ts | 6 +- packages/types/src/codec/Enum.ts | 2 +- .../types/src/codec/create/createType.spec.ts | 2 +- packages/types/src/interfaceRegistry.ts | 16 +- .../src/interfaces/metadata/definitions.ts | 19 + .../types/src/interfaces/metadata/types.ts | 32 +- packages/types/src/primitive/StorageHasher.ts | 119 ----- packages/types/src/primitive/index.ts | 1 - 25 files changed, 2808 insertions(+), 2879 deletions(-) delete mode 100644 packages/types/src/primitive/StorageHasher.ts diff --git a/packages/metadata/src/Metadata/v0/static-substrate.json b/packages/metadata/src/Metadata/v0/static-substrate.json index f83ce4e0e1..d7300adc95 100644 --- a/packages/metadata/src/Metadata/v0/static-substrate.json +++ b/packages/metadata/src/Metadata/v0/static-substrate.json @@ -438,7 +438,7 @@ "functions": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -450,7 +450,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -459,7 +459,7 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -471,7 +471,7 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "u32", @@ -483,7 +483,7 @@ }, { "name": "RandomSeed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -492,7 +492,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -503,7 +503,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -512,7 +512,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -521,7 +521,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Digest" }, @@ -530,7 +530,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -586,7 +586,7 @@ "functions": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -597,7 +597,7 @@ }, { "name": "BlockPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -608,7 +608,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -713,7 +713,7 @@ "functions": [ { "name": "OriginalAuthorities", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -737,7 +737,7 @@ "functions": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -748,7 +748,7 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountIndex", @@ -816,7 +816,7 @@ "functions": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -827,7 +827,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -838,7 +838,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -849,7 +849,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -860,7 +860,7 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -884,7 +884,7 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -909,7 +909,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -920,7 +920,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -987,7 +987,7 @@ "functions": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -998,7 +998,7 @@ }, { "name": "SessionLength", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1009,7 +1009,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1020,7 +1020,7 @@ }, { "name": "CurrentStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -1031,7 +1031,7 @@ }, { "name": "ForcingNewSession", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "bool" }, @@ -1043,7 +1043,7 @@ }, { "name": "LastLengthChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1054,7 +1054,7 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1068,7 +1068,7 @@ }, { "name": "NextSessionLength", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1243,7 +1243,7 @@ "functions": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1254,7 +1254,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1265,7 +1265,7 @@ }, { "name": "SessionsPerEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1276,7 +1276,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1287,7 +1287,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1298,7 +1298,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1309,7 +1309,7 @@ }, { "name": "BondingDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1320,7 +1320,7 @@ }, { "name": "Invulerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1332,7 +1332,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1343,7 +1343,7 @@ }, { "name": "ValidatorPreferences", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1357,7 +1357,7 @@ }, { "name": "Intentions", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1368,7 +1368,7 @@ }, { "name": "Nominating", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1382,7 +1382,7 @@ }, { "name": "NominatorsFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1396,7 +1396,7 @@ }, { "name": "CurrentNominatorsFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1410,7 +1410,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -1421,7 +1421,7 @@ }, { "name": "CurrentOfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -1432,7 +1432,7 @@ }, { "name": "NextSessionsPerEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1443,7 +1443,7 @@ }, { "name": "LastEraLengthChange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1454,7 +1454,7 @@ }, { "name": "StakeRange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(Balance,Balance)" }, @@ -1465,7 +1465,7 @@ }, { "name": "Bondage", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1479,7 +1479,7 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1493,7 +1493,7 @@ }, { "name": "ForcingNewEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Null" }, @@ -1619,7 +1619,7 @@ "functions": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1630,7 +1630,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1641,7 +1641,7 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "PropIndex", @@ -1655,7 +1655,7 @@ }, { "name": "LaunchPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1666,7 +1666,7 @@ }, { "name": "MinimumDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -1677,7 +1677,7 @@ }, { "name": "PublicDelay", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1688,7 +1688,7 @@ }, { "name": "MaxLockPeriods", - "modifier": 1, + "modifier": "default", "type": { "Plain": "LockPeriods" }, @@ -1699,7 +1699,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1710,7 +1710,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1721,7 +1721,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1732,7 +1732,7 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ReferendumIndex", @@ -1746,7 +1746,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -1760,7 +1760,7 @@ }, { "name": "Bondage", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1774,7 +1774,7 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "ReferendumIndex", @@ -1788,7 +1788,7 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "(ReferendumIndex,AccountId)", @@ -1976,7 +1976,7 @@ "functions": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -1987,7 +1987,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -1998,7 +1998,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2009,7 +2009,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2020,7 +2020,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2031,7 +2031,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2043,7 +2043,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2054,7 +2054,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2065,7 +2065,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2076,7 +2076,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2090,7 +2090,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2101,7 +2101,7 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -2116,7 +2116,7 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -2131,7 +2131,7 @@ }, { "name": "LastActiveOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -2145,7 +2145,7 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2156,7 +2156,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2167,7 +2167,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2176,7 +2176,7 @@ }, { "name": "NextFinalise", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2187,7 +2187,7 @@ }, { "name": "SnapshotedStakes", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2198,7 +2198,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(Balance,AccountId)>" }, @@ -2284,7 +2284,7 @@ "functions": [ { "name": "CooloffPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2293,7 +2293,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2302,7 +2302,7 @@ }, { "name": "EnactDelayPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2313,7 +2313,7 @@ }, { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash)>" }, @@ -2322,7 +2322,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2334,7 +2334,7 @@ }, { "name": "ProposalVoters", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "Hash", @@ -2346,7 +2346,7 @@ }, { "name": "CouncilVoteOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "(Hash,AccountId)", @@ -2358,7 +2358,7 @@ }, { "name": "VetoedProposal", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2420,7 +2420,7 @@ "functions": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2431,7 +2431,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2445,7 +2445,7 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2459,7 +2459,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2499,7 +2499,7 @@ "functions": [ { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2608,7 +2608,7 @@ "functions": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2620,7 +2620,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2631,7 +2631,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2642,7 +2642,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2653,7 +2653,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2664,7 +2664,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2675,7 +2675,7 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ProposalIndex", @@ -2689,7 +2689,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2809,7 +2809,7 @@ "functions": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v1/static-substrate.json b/packages/metadata/src/Metadata/v1/static-substrate.json index 83a7b30868..c8d7710113 100644 --- a/packages/metadata/src/Metadata/v1/static-substrate.json +++ b/packages/metadata/src/Metadata/v1/static-substrate.json @@ -9,7 +9,7 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -21,7 +21,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -30,7 +30,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -39,7 +39,7 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -51,7 +51,7 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "u32", @@ -63,7 +63,7 @@ }, { "name": "RandomSeed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -72,7 +72,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -83,7 +83,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -92,7 +92,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -101,7 +101,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Digest" }, @@ -110,7 +110,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -149,7 +149,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -160,7 +160,7 @@ }, { "name": "BlockPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -171,7 +171,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -210,7 +210,7 @@ "storage": [ { "name": "OriginalAuthorities", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -300,7 +300,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -311,7 +311,7 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountIndex", @@ -347,7 +347,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -358,7 +358,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -369,7 +369,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -380,7 +380,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -391,7 +391,7 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -405,7 +405,7 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -429,7 +429,7 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -454,7 +454,7 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -545,7 +545,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -556,7 +556,7 @@ }, { "name": "SessionLength", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -567,7 +567,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -578,7 +578,7 @@ }, { "name": "CurrentStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -589,7 +589,7 @@ }, { "name": "ForcingNewSession", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "bool" }, @@ -601,7 +601,7 @@ }, { "name": "LastLengthChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -612,7 +612,7 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -626,7 +626,7 @@ }, { "name": "NextSessionLength", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -694,7 +694,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -705,7 +705,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -716,7 +716,7 @@ }, { "name": "SessionsPerEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -727,7 +727,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -738,7 +738,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -749,7 +749,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -760,7 +760,7 @@ }, { "name": "BondingDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -771,7 +771,7 @@ }, { "name": "Invulerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -780,7 +780,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -792,7 +792,7 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -806,7 +806,7 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -820,7 +820,7 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -834,7 +834,7 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -850,7 +850,7 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -866,7 +866,7 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -881,7 +881,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -892,7 +892,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -903,7 +903,7 @@ }, { "name": "CurrentOfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -914,7 +914,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -926,7 +926,7 @@ }, { "name": "NextSessionsPerEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -937,7 +937,7 @@ }, { "name": "LastEraLengthChange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -948,7 +948,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -961,7 +961,7 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -975,7 +975,7 @@ }, { "name": "ForcingNewEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Null" }, @@ -986,7 +986,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -1242,7 +1242,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1253,7 +1253,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1264,7 +1264,7 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "PropIndex", @@ -1278,7 +1278,7 @@ }, { "name": "LaunchPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1289,7 +1289,7 @@ }, { "name": "MinimumDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1300,7 +1300,7 @@ }, { "name": "PublicDelay", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1311,7 +1311,7 @@ }, { "name": "MaxLockPeriods", - "modifier": 1, + "modifier": "default", "type": { "Plain": "LockPeriods" }, @@ -1322,7 +1322,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1333,7 +1333,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1344,7 +1344,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1355,7 +1355,7 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ReferendumIndex", @@ -1369,7 +1369,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -1383,7 +1383,7 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "ReferendumIndex", @@ -1397,7 +1397,7 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "(ReferendumIndex,AccountId)", @@ -1570,7 +1570,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1581,7 +1581,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1592,7 +1592,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1603,7 +1603,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1614,7 +1614,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1625,7 +1625,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1637,7 +1637,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1648,7 +1648,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1659,7 +1659,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1670,7 +1670,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -1684,7 +1684,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1695,7 +1695,7 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1710,7 +1710,7 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1725,7 +1725,7 @@ }, { "name": "LastActiveOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1739,7 +1739,7 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1750,7 +1750,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1761,7 +1761,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1770,7 +1770,7 @@ }, { "name": "NextFinalise", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -1781,7 +1781,7 @@ }, { "name": "SnapshotedStakes", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1792,7 +1792,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -1998,7 +1998,7 @@ "storage": [ { "name": "CooloffPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2007,7 +2007,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2016,7 +2016,7 @@ }, { "name": "EnactDelayPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2027,7 +2027,7 @@ }, { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash)>" }, @@ -2036,7 +2036,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2048,7 +2048,7 @@ }, { "name": "ProposalVoters", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "Hash", @@ -2060,7 +2060,7 @@ }, { "name": "CouncilVoteOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "(Hash,AccountId)", @@ -2072,7 +2072,7 @@ }, { "name": "VetoedProposal", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2174,7 +2174,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2185,7 +2185,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2199,7 +2199,7 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2213,7 +2213,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2341,7 +2341,7 @@ "storage": [ { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2350,7 +2350,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2390,7 +2390,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2402,7 +2402,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2413,7 +2413,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2424,7 +2424,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2435,7 +2435,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2446,7 +2446,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2457,7 +2457,7 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ProposalIndex", @@ -2471,7 +2471,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2618,7 +2618,7 @@ "storage": [ { "name": "ContractFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2629,7 +2629,7 @@ }, { "name": "CallBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2640,7 +2640,7 @@ }, { "name": "CreateBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2651,7 +2651,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2662,7 +2662,7 @@ }, { "name": "MaxDepth", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2673,7 +2673,7 @@ }, { "name": "BlockGasLimit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2684,7 +2684,7 @@ }, { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2695,7 +2695,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -2706,7 +2706,7 @@ }, { "name": "CodeHashOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -2720,7 +2720,7 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2734,7 +2734,7 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2894,7 +2894,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -2951,7 +2951,7 @@ "storage": [ { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AssetOf" }, @@ -2962,7 +2962,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AssetOf" }, @@ -2973,7 +2973,7 @@ }, { "name": "CurrentTransactionFee", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "u32", diff --git a/packages/metadata/src/Metadata/v10/static-polkadot.json b/packages/metadata/src/Metadata/v10/static-polkadot.json index 44ae313d89..277d2a204e 100644 --- a/packages/metadata/src/Metadata/v10/static-polkadot.json +++ b/packages/metadata/src/Metadata/v10/static-polkadot.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,10 +59,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -75,10 +75,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,10 +157,10 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", "linked": false @@ -294,7 +294,7 @@ "items": [ { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -319,7 +319,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -330,7 +330,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -341,7 +341,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -353,7 +353,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -364,7 +364,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -384,7 +384,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -395,7 +395,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -414,10 +414,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -428,7 +428,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -474,7 +474,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -485,7 +485,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -541,7 +541,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -552,10 +552,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -594,7 +594,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -605,10 +605,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -621,10 +621,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -647,10 +647,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -673,10 +673,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -944,7 +944,7 @@ "items": [ { "name": "NextFeeMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Multiplier" }, @@ -982,7 +982,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -993,7 +993,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -1004,7 +1004,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1083,7 +1083,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1094,7 +1094,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1105,7 +1105,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1118,10 +1118,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1134,10 +1134,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -1150,10 +1150,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -1166,10 +1166,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1182,10 +1182,10 @@ }, { "name": "Nominators", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Nominations", "linked": true @@ -1201,10 +1201,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1220,7 +1220,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1231,7 +1231,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1242,7 +1242,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1253,7 +1253,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1264,7 +1264,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1275,7 +1275,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1288,7 +1288,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1299,7 +1299,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1312,7 +1312,7 @@ }, { "name": "CanceledSlashPayout", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1324,10 +1324,10 @@ }, { "name": "UnappliedSlashes", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1340,7 +1340,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1351,14 +1351,14 @@ }, { "name": "ValidatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "(Perbill,BalanceOf)", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1369,14 +1369,14 @@ }, { "name": "NominatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "BalanceOf", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1386,10 +1386,10 @@ }, { "name": "SlashingSpans", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "SlashingSpans", "linked": false @@ -1402,10 +1402,10 @@ }, { "name": "SpanSlash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", "linked": false @@ -1419,7 +1419,7 @@ }, { "name": "EarliestUnappliedSlash", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "EraIndex" }, @@ -1430,7 +1430,7 @@ }, { "name": "StorageVersion", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1893,10 +1893,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -1909,14 +1909,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1926,10 +1926,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false @@ -1971,7 +1971,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1982,7 +1982,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1993,7 +1993,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2005,7 +2005,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -2017,7 +2017,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2030,14 +2030,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -2050,14 +2050,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -2200,7 +2200,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuthorityList" }, @@ -2214,7 +2214,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -2225,7 +2225,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2236,7 +2236,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2247,7 +2247,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -2258,7 +2258,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -2270,10 +2270,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -2362,7 +2362,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2373,7 +2373,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2384,14 +2384,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -2402,14 +2402,14 @@ }, { "name": "AuthoredBlocks", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "ValidatorId", "value": "u32", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00000000", @@ -2494,7 +2494,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -2505,7 +2505,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Hash,AccountId)>" }, @@ -2516,10 +2516,10 @@ }, { "name": "Preimages", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(Bytes,AccountId,BalanceOf,BlockNumber)", "linked": false @@ -2533,10 +2533,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -2549,7 +2549,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2560,7 +2560,7 @@ }, { "name": "LowestUnbaked", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2572,10 +2572,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -2588,7 +2588,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash,ReferendumIndex)>" }, @@ -2599,10 +2599,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -2615,10 +2615,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -2634,10 +2634,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -2651,10 +2651,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -2667,7 +2667,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2679,7 +2679,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Hash,VoteThreshold)" }, @@ -2693,10 +2693,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -2710,10 +2710,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -3420,7 +3420,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3431,10 +3431,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -3447,10 +3447,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -3463,7 +3463,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3474,7 +3474,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3672,7 +3672,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3683,10 +3683,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -3699,10 +3699,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -3715,7 +3715,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3726,7 +3726,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3924,7 +3924,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3935,7 +3935,7 @@ }, { "name": "RunnersUp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3946,7 +3946,7 @@ }, { "name": "ElectionRounds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3957,10 +3957,10 @@ }, { "name": "VotesOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -3973,10 +3973,10 @@ }, { "name": "StakeOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "BalanceOf", "linked": false @@ -3989,7 +3989,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4304,7 +4304,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4448,7 +4448,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -4459,10 +4459,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -4475,7 +4475,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4486,10 +4486,10 @@ }, { "name": "Tips", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key": "Hash", "value": "OpenTip", "linked": false @@ -4504,10 +4504,10 @@ }, { "name": "Reasons", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key": "Hash", "value": "Bytes", "linked": false @@ -4976,10 +4976,10 @@ "items": [ { "name": "Claims", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EthereumAddress", "value": "BalanceOf", "linked": false @@ -4990,7 +4990,7 @@ }, { "name": "Total", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4999,10 +4999,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EthereumAddress", "value": "(BalanceOf,BalanceOf,BlockNumber)", "linked": false @@ -5088,7 +5088,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5099,10 +5099,10 @@ }, { "name": "Code", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -5115,10 +5115,10 @@ }, { "name": "Heads", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -5131,10 +5131,10 @@ }, { "name": "Watermarks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "BlockNumber", "linked": false @@ -5149,10 +5149,10 @@ }, { "name": "UnroutedIngress", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(BlockNumber,ParaId)", "value": "Vec<(ParaId,Hash)>", "linked": false @@ -5168,10 +5168,10 @@ }, { "name": "RelayDispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Vec", "linked": false @@ -5185,10 +5185,10 @@ }, { "name": "RelayDispatchQueueSize", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "(u32,u32)", "linked": false @@ -5203,7 +5203,7 @@ }, { "name": "NeedsDispatch", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5214,7 +5214,7 @@ }, { "name": "DidUpdate", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -5253,10 +5253,10 @@ "items": [ { "name": "RecentParaBlocks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "IncludedBlocks", "linked": false @@ -5270,14 +5270,14 @@ }, { "name": "ParaBlockAttestations", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "BlockNumber", "key2": "Hash", "value": "BlockAttestations", - "key2Hasher": "Blake2_128" + "key2Hasher": "blake2128" } }, "fallback": "0x00", @@ -5287,7 +5287,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -5321,7 +5321,7 @@ "items": [ { "name": "AuctionCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuctionIndex" }, @@ -5332,7 +5332,7 @@ }, { "name": "ManagedIds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5344,10 +5344,10 @@ }, { "name": "Deposits", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Vec", "linked": false @@ -5372,7 +5372,7 @@ }, { "name": "AuctionInfo", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(LeasePeriodOf,BlockNumber)" }, @@ -5387,10 +5387,10 @@ }, { "name": "Winning", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "WinningData", "linked": false @@ -5405,10 +5405,10 @@ }, { "name": "ReservedAmounts", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Bidder", "value": "BalanceOf", "linked": false @@ -5422,10 +5422,10 @@ }, { "name": "OnboardQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "LeasePeriodOf", "value": "Vec", "linked": false @@ -5439,10 +5439,10 @@ }, { "name": "Onboarding", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "(LeasePeriodOf,IncomingParachain)", "linked": false @@ -5458,10 +5458,10 @@ }, { "name": "Offboarding", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "AccountId", "linked": false @@ -5740,7 +5740,7 @@ "items": [ { "name": "Parachains", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5749,7 +5749,7 @@ }, { "name": "ThreadCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -5760,7 +5760,7 @@ }, { "name": "SelectedThreads", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec>" }, @@ -5772,7 +5772,7 @@ }, { "name": "Active", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ParaId,Option<(CollatorId,Retriable)>)>" }, @@ -5788,7 +5788,7 @@ }, { "name": "NextFreeId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ParaId" }, @@ -5800,10 +5800,10 @@ }, { "name": "PendingSwap", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "ParaId", "linked": false @@ -5816,10 +5816,10 @@ }, { "name": "Paras", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "ParaInfo", "linked": false @@ -5832,7 +5832,7 @@ }, { "name": "RetryQueue", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec>" }, @@ -5843,10 +5843,10 @@ }, { "name": "Debtors", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "AccountId", "linked": false @@ -6019,14 +6019,14 @@ "items": [ { "name": "Multisigs", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "AccountId", "key2": "[u8;32]", "value": "Multisig", - "key2Hasher": "Blake2_128Concat" + "key2Hasher": "blake2128Concat" } }, "fallback": "0x00", @@ -6331,10 +6331,10 @@ "items": [ { "name": "IdentityOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Registration", "linked": false @@ -6347,10 +6347,10 @@ }, { "name": "SuperOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Data)", "linked": false @@ -6364,10 +6364,10 @@ }, { "name": "SubsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(BalanceOf,Vec)", "linked": false @@ -6382,7 +6382,7 @@ }, { "name": "Registrars", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec>" }, diff --git a/packages/metadata/src/Metadata/v10/static-substrate.json b/packages/metadata/src/Metadata/v10/static-substrate.json index ee80bbca82..0946b3fb89 100644 --- a/packages/metadata/src/Metadata/v10/static-substrate.json +++ b/packages/metadata/src/Metadata/v10/static-substrate.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,10 +59,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -75,10 +75,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -298,14 +298,14 @@ "items": [ { "name": "Multisigs", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "AccountId", "key2": "[u8;32]", "value": "Multisig", - "key2Hasher": "Blake2_128Concat" + "key2Hasher": "blake2128Concat" } }, "fallback": "0x00", @@ -610,7 +610,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -621,7 +621,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -632,7 +632,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -644,7 +644,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -655,7 +655,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -675,7 +675,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -686,7 +686,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -705,10 +705,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -719,7 +719,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -765,7 +765,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -776,7 +776,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -832,7 +832,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -843,7 +843,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -854,7 +854,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -933,7 +933,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -944,10 +944,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -986,7 +986,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -997,10 +997,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -1013,10 +1013,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -1039,10 +1039,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -1065,10 +1065,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -1336,7 +1336,7 @@ "items": [ { "name": "NextFeeMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Multiplier" }, @@ -1374,7 +1374,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1385,7 +1385,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1396,7 +1396,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1409,10 +1409,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1425,10 +1425,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -1441,10 +1441,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -1457,10 +1457,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1473,10 +1473,10 @@ }, { "name": "Nominators", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Nominations", "linked": true @@ -1492,10 +1492,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1511,7 +1511,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1522,7 +1522,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1533,7 +1533,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1544,7 +1544,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1555,7 +1555,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1566,7 +1566,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1579,7 +1579,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1590,7 +1590,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1603,7 +1603,7 @@ }, { "name": "CanceledSlashPayout", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1615,10 +1615,10 @@ }, { "name": "UnappliedSlashes", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1631,7 +1631,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1642,14 +1642,14 @@ }, { "name": "ValidatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "(Perbill,BalanceOf)", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1660,14 +1660,14 @@ }, { "name": "NominatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "BalanceOf", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1677,10 +1677,10 @@ }, { "name": "SlashingSpans", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "SlashingSpans", "linked": false @@ -1693,10 +1693,10 @@ }, { "name": "SpanSlash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", "linked": false @@ -1710,7 +1710,7 @@ }, { "name": "EarliestUnappliedSlash", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "EraIndex" }, @@ -1721,7 +1721,7 @@ }, { "name": "StorageVersion", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2161,7 +2161,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2172,7 +2172,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -2183,7 +2183,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2195,7 +2195,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -2207,7 +2207,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2220,14 +2220,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -2240,14 +2240,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -2338,7 +2338,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -2349,7 +2349,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Hash,AccountId)>" }, @@ -2360,10 +2360,10 @@ }, { "name": "Preimages", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(Bytes,AccountId,BalanceOf,BlockNumber)", "linked": false @@ -2377,10 +2377,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -2393,7 +2393,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2404,7 +2404,7 @@ }, { "name": "LowestUnbaked", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2416,10 +2416,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -2432,7 +2432,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash,ReferendumIndex)>" }, @@ -2443,10 +2443,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -2459,10 +2459,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -2478,10 +2478,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -2495,10 +2495,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -2511,7 +2511,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2523,7 +2523,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Hash,VoteThreshold)" }, @@ -2537,10 +2537,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -2554,10 +2554,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -3264,7 +3264,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3275,10 +3275,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -3291,10 +3291,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -3307,7 +3307,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3318,7 +3318,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3516,7 +3516,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3527,10 +3527,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -3543,10 +3543,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -3559,7 +3559,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3570,7 +3570,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3768,7 +3768,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3779,7 +3779,7 @@ }, { "name": "RunnersUp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3790,7 +3790,7 @@ }, { "name": "ElectionRounds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3801,10 +3801,10 @@ }, { "name": "VotesOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -3817,10 +3817,10 @@ }, { "name": "StakeOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "BalanceOf", "linked": false @@ -3833,7 +3833,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4148,7 +4148,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4344,7 +4344,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuthorityList" }, @@ -4358,7 +4358,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -4369,7 +4369,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -4380,7 +4380,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -4391,7 +4391,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -4402,7 +4402,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -4414,10 +4414,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -4506,7 +4506,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -4517,10 +4517,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -4533,7 +4533,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4732,7 +4732,7 @@ "items": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -4743,7 +4743,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -4754,10 +4754,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -4770,10 +4770,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -4786,7 +4786,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -4797,10 +4797,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -4813,7 +4813,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -5194,7 +5194,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -5320,7 +5320,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -5331,7 +5331,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5342,14 +5342,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -5360,14 +5360,14 @@ }, { "name": "AuthoredBlocks", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "ValidatorId", "value": "u32", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00000000", @@ -5452,10 +5452,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -5468,14 +5468,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -5485,10 +5485,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false @@ -5530,7 +5530,7 @@ "items": [ { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -5555,10 +5555,10 @@ "items": [ { "name": "NameOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(Bytes,BalanceOf)", "linked": false diff --git a/packages/metadata/src/Metadata/v11/static-substrate.json b/packages/metadata/src/Metadata/v11/static-substrate.json index e2ea6dfcf5..d843b66466 100644 --- a/packages/metadata/src/Metadata/v11/static-substrate.json +++ b/packages/metadata/src/Metadata/v11/static-substrate.json @@ -10,13 +10,13 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", - "kind": 0 + "kind": "map" } }, "fallback": "0x00000000", @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,13 +59,13 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", - "kind": 0 + "kind": "map" } }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", @@ -75,13 +75,13 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -345,7 +345,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -356,7 +356,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -367,7 +367,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -379,7 +379,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -390,7 +390,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -410,7 +410,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -421,7 +421,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -440,13 +440,13 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -454,7 +454,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -500,7 +500,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -511,7 +511,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -567,7 +567,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -578,7 +578,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -589,7 +589,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -625,7 +625,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -636,13 +636,13 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -678,7 +678,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -689,13 +689,13 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -705,13 +705,13 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", - "kind": 0 + "kind": "map" } }, "fallback": "0x00000000000000000000000000000000", @@ -731,13 +731,13 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", - "kind": 0 + "kind": "map" } }, "fallback": "0x00000000000000000000000000000000", @@ -757,13 +757,13 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -957,7 +957,7 @@ "items": [ { "name": "NextFeeMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Multiplier" }, @@ -995,7 +995,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1006,7 +1006,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1017,7 +1017,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1030,13 +1030,13 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1046,13 +1046,13 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1062,13 +1062,13 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1078,13 +1078,13 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", - "kind": 1 + "kind": "linkedMap" } }, "fallback": "0x00", @@ -1094,13 +1094,13 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", - "kind": 1 + "kind": "linkedMap" } }, "fallback": "0x00", @@ -1110,13 +1110,13 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", - "kind": 0 + "kind": "map" } }, "fallback": "0x000000", @@ -1129,7 +1129,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1140,7 +1140,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1151,7 +1151,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1162,7 +1162,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1173,7 +1173,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1184,7 +1184,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1197,7 +1197,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1208,7 +1208,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1221,7 +1221,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1232,13 +1232,13 @@ }, { "name": "EraSlashJournal", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1600,7 +1600,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1611,7 +1611,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1622,7 +1622,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1634,7 +1634,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1646,7 +1646,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1659,14 +1659,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox256", + "hasher": "twox256", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1679,14 +1679,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox256", + "hasher": "twox256", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1758,7 +1758,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1769,7 +1769,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1780,13 +1780,13 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1796,7 +1796,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1807,7 +1807,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1818,13 +1818,13 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1834,13 +1834,13 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1850,13 +1850,13 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1866,13 +1866,13 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1885,13 +1885,13 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1902,13 +1902,13 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", - "kind": 1 + "kind": "linkedMap" } }, "fallback": "0x000000000000000000000000000000000000000000000000000000000000000000", @@ -1918,7 +1918,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1930,7 +1930,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1944,13 +1944,13 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -1961,13 +1961,13 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -2413,7 +2413,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2424,13 +2424,13 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -2440,13 +2440,13 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -2456,7 +2456,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2467,7 +2467,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2628,7 +2628,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2639,13 +2639,13 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -2655,13 +2655,13 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -2671,7 +2671,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2682,7 +2682,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2843,7 +2843,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -2854,7 +2854,7 @@ }, { "name": "RunnersUp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -2865,7 +2865,7 @@ }, { "name": "ElectionRounds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2876,13 +2876,13 @@ }, { "name": "VotesOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", - "kind": 1 + "kind": "linkedMap" } }, "fallback": "0x00", @@ -2892,13 +2892,13 @@ }, { "name": "StakeOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "BalanceOf", - "kind": 0 + "kind": "map" } }, "fallback": "0x00000000000000000000000000000000", @@ -2908,7 +2908,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2920,7 +2920,7 @@ }, { "name": "DidMigrate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -3126,7 +3126,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3288,7 +3288,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuthorityList" }, @@ -3302,7 +3302,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -3313,7 +3313,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3324,7 +3324,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3335,7 +3335,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3346,7 +3346,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -3358,13 +3358,13 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -3423,7 +3423,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3434,13 +3434,13 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -3450,7 +3450,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3626,7 +3626,7 @@ "items": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3637,7 +3637,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3648,13 +3648,13 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -3664,13 +3664,13 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -3680,7 +3680,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3691,13 +3691,13 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -3707,7 +3707,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4051,7 +4051,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -4170,7 +4170,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -4181,7 +4181,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4192,14 +4192,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4210,14 +4210,14 @@ }, { "name": "AuthoredBlocks", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "ValidatorId", "value": "u32", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00000000", @@ -4289,13 +4289,13 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -4305,14 +4305,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4322,13 +4322,13 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", @@ -4367,7 +4367,7 @@ "items": [ { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4392,13 +4392,13 @@ "items": [ { "name": "NameOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(Bytes,BalanceOf)", - "kind": 0 + "kind": "map" } }, "fallback": "0x00", diff --git a/packages/metadata/src/Metadata/v2/static-substrate.json b/packages/metadata/src/Metadata/v2/static-substrate.json index 11f7e82b79..4bed254770 100644 --- a/packages/metadata/src/Metadata/v2/static-substrate.json +++ b/packages/metadata/src/Metadata/v2/static-substrate.json @@ -9,7 +9,7 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -22,7 +22,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -31,7 +31,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -40,7 +40,7 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -53,7 +53,7 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "u32", @@ -66,7 +66,7 @@ }, { "name": "RandomSeed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -75,7 +75,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -86,7 +86,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -95,7 +95,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -104,7 +104,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Digest" }, @@ -113,7 +113,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -152,7 +152,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -163,7 +163,7 @@ }, { "name": "BlockPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -174,7 +174,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -213,7 +213,7 @@ "storage": [ { "name": "OriginalAuthorities", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -303,7 +303,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -314,7 +314,7 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountIndex", @@ -351,7 +351,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -362,7 +362,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -373,7 +373,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -384,7 +384,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -395,7 +395,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -406,7 +406,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -417,7 +417,7 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -432,7 +432,7 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -457,7 +457,7 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -483,7 +483,7 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -575,7 +575,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -586,7 +586,7 @@ }, { "name": "SessionLength", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -597,7 +597,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -608,7 +608,7 @@ }, { "name": "CurrentStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -619,7 +619,7 @@ }, { "name": "ForcingNewSession", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "bool" }, @@ -631,7 +631,7 @@ }, { "name": "LastLengthChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -642,7 +642,7 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -657,7 +657,7 @@ }, { "name": "NextSessionLength", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -725,7 +725,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -736,7 +736,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -747,7 +747,7 @@ }, { "name": "SessionsPerEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -758,7 +758,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -769,7 +769,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -780,7 +780,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -791,7 +791,7 @@ }, { "name": "BondingDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -802,7 +802,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -814,7 +814,7 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -829,7 +829,7 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -844,7 +844,7 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -859,7 +859,7 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -874,7 +874,7 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -889,7 +889,7 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -907,7 +907,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -918,7 +918,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -929,7 +929,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -940,7 +940,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -952,7 +952,7 @@ }, { "name": "NextSessionsPerEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -963,7 +963,7 @@ }, { "name": "LastEraLengthChange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -974,7 +974,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -987,7 +987,7 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1002,7 +1002,7 @@ }, { "name": "ForcingNewEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Null" }, @@ -1013,7 +1013,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -1287,7 +1287,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1298,7 +1298,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1309,7 +1309,7 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "PropIndex", @@ -1324,7 +1324,7 @@ }, { "name": "LaunchPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1335,7 +1335,7 @@ }, { "name": "MinimumDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1346,7 +1346,7 @@ }, { "name": "PublicDelay", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1357,7 +1357,7 @@ }, { "name": "MaxLockPeriods", - "modifier": 1, + "modifier": "default", "type": { "Plain": "LockPeriods" }, @@ -1368,7 +1368,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1379,7 +1379,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1390,7 +1390,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1401,7 +1401,7 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ReferendumIndex", @@ -1416,7 +1416,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -1431,7 +1431,7 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "ReferendumIndex", @@ -1446,7 +1446,7 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "(ReferendumIndex,AccountId)", @@ -1463,7 +1463,7 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1673,7 +1673,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1684,7 +1684,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1695,7 +1695,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1706,7 +1706,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1717,7 +1717,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1728,7 +1728,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1740,7 +1740,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1751,7 +1751,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1762,7 +1762,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1773,7 +1773,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -1787,7 +1787,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1798,7 +1798,7 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1814,7 +1814,7 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1830,7 +1830,7 @@ }, { "name": "LastActiveOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1845,7 +1845,7 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1856,7 +1856,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1867,7 +1867,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1876,7 +1876,7 @@ }, { "name": "NextFinalise", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -1887,7 +1887,7 @@ }, { "name": "SnapshotedStakes", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1898,7 +1898,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2104,7 +2104,7 @@ "storage": [ { "name": "CooloffPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2113,7 +2113,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2122,7 +2122,7 @@ }, { "name": "EnactDelayPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2133,7 +2133,7 @@ }, { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash)>" }, @@ -2142,7 +2142,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2155,7 +2155,7 @@ }, { "name": "ProposalVoters", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "Hash", @@ -2168,7 +2168,7 @@ }, { "name": "CouncilVoteOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "(Hash,AccountId)", @@ -2181,7 +2181,7 @@ }, { "name": "VetoedProposal", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2284,7 +2284,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2295,7 +2295,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2310,7 +2310,7 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2325,7 +2325,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2453,7 +2453,7 @@ "storage": [ { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2462,7 +2462,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2502,7 +2502,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2514,7 +2514,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2525,7 +2525,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2536,7 +2536,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2547,7 +2547,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2558,7 +2558,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2569,7 +2569,7 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ProposalIndex", @@ -2584,7 +2584,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2731,7 +2731,7 @@ "storage": [ { "name": "ContractFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2742,7 +2742,7 @@ }, { "name": "CallBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2753,7 +2753,7 @@ }, { "name": "CreateBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2764,7 +2764,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -2775,7 +2775,7 @@ }, { "name": "MaxDepth", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2786,7 +2786,7 @@ }, { "name": "BlockGasLimit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2797,7 +2797,7 @@ }, { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2808,7 +2808,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -2819,7 +2819,7 @@ }, { "name": "CodeHashOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -2834,7 +2834,7 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2849,7 +2849,7 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2864,7 +2864,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -2875,7 +2875,7 @@ }, { "name": "AccountInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -3036,7 +3036,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v3/static-substrate.json b/packages/metadata/src/Metadata/v3/static-substrate.json index 33d3cfd157..fcb6cda6b2 100644 --- a/packages/metadata/src/Metadata/v3/static-substrate.json +++ b/packages/metadata/src/Metadata/v3/static-substrate.json @@ -9,7 +9,7 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -24,7 +24,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -35,7 +35,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -46,7 +46,7 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -61,7 +61,7 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "u32", @@ -76,7 +76,7 @@ }, { "name": "RandomSeed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -87,7 +87,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -98,7 +98,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -109,7 +109,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -120,7 +120,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Digest" }, @@ -131,7 +131,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -172,7 +172,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -183,7 +183,7 @@ }, { "name": "BlockPeriod", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Moment" }, @@ -194,7 +194,7 @@ }, { "name": "MinimumPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -208,7 +208,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -247,7 +247,7 @@ "storage": [ { "name": "OriginalAuthorities", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -349,7 +349,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -360,7 +360,7 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountIndex", @@ -397,7 +397,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -408,7 +408,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -419,7 +419,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -430,7 +430,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -441,7 +441,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -452,7 +452,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -463,7 +463,7 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -478,7 +478,7 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -503,7 +503,7 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -528,7 +528,7 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -634,7 +634,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -645,7 +645,7 @@ }, { "name": "SessionLength", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -656,7 +656,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -667,7 +667,7 @@ }, { "name": "CurrentStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -678,7 +678,7 @@ }, { "name": "ForcingNewSession", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "bool" }, @@ -690,7 +690,7 @@ }, { "name": "LastLengthChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -701,7 +701,7 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -716,7 +716,7 @@ }, { "name": "NextSessionLength", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -784,7 +784,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -795,7 +795,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -806,7 +806,7 @@ }, { "name": "SessionsPerEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -817,7 +817,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -828,7 +828,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -839,7 +839,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -850,7 +850,7 @@ }, { "name": "BondingDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -861,7 +861,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -873,7 +873,7 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -888,7 +888,7 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -903,7 +903,7 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -918,7 +918,7 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -933,7 +933,7 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -948,7 +948,7 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -966,7 +966,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -977,7 +977,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -988,7 +988,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -999,7 +999,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1011,7 +1011,7 @@ }, { "name": "NextSessionsPerEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1022,7 +1022,7 @@ }, { "name": "LastEraLengthChange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1033,7 +1033,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1046,7 +1046,7 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1061,7 +1061,7 @@ }, { "name": "ForcingNewEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Null" }, @@ -1072,7 +1072,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -1346,7 +1346,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1357,7 +1357,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1368,7 +1368,7 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "PropIndex", @@ -1383,7 +1383,7 @@ }, { "name": "LaunchPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1394,7 +1394,7 @@ }, { "name": "MinimumDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1405,7 +1405,7 @@ }, { "name": "PublicDelay", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1416,7 +1416,7 @@ }, { "name": "MaxLockPeriods", - "modifier": 1, + "modifier": "default", "type": { "Plain": "LockPeriods" }, @@ -1427,7 +1427,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1438,7 +1438,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1449,7 +1449,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1460,7 +1460,7 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ReferendumIndex", @@ -1475,7 +1475,7 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "BlockNumber", @@ -1490,7 +1490,7 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "ReferendumIndex", @@ -1505,7 +1505,7 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "(ReferendumIndex,AccountId)", @@ -1522,7 +1522,7 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1732,7 +1732,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1743,7 +1743,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1754,7 +1754,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1765,7 +1765,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1776,7 +1776,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1787,7 +1787,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1799,7 +1799,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1810,7 +1810,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1821,7 +1821,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1832,7 +1832,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -1846,7 +1846,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -1857,7 +1857,7 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "AccountId", @@ -1873,7 +1873,7 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1889,7 +1889,7 @@ }, { "name": "LastActiveOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -1904,7 +1904,7 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1915,7 +1915,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1926,7 +1926,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1935,7 +1935,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -1946,7 +1946,7 @@ }, { "name": "SnapshotedStakes", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1957,7 +1957,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2163,7 +2163,7 @@ "storage": [ { "name": "CooloffPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2172,7 +2172,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2181,7 +2181,7 @@ }, { "name": "EnactDelayPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2192,7 +2192,7 @@ }, { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(BlockNumber,Hash)>" }, @@ -2201,7 +2201,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2214,7 +2214,7 @@ }, { "name": "ProposalVoters", - "modifier": 1, + "modifier": "default", "type": { "Map": { "key": "Hash", @@ -2227,7 +2227,7 @@ }, { "name": "CouncilVoteOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "(Hash,AccountId)", @@ -2240,7 +2240,7 @@ }, { "name": "VetoedProposal", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2343,7 +2343,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2354,7 +2354,7 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2369,7 +2369,7 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "Hash", @@ -2384,7 +2384,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2512,7 +2512,7 @@ "storage": [ { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2521,7 +2521,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2561,7 +2561,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2573,7 +2573,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2584,7 +2584,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2595,7 +2595,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2606,7 +2606,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2617,7 +2617,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2628,7 +2628,7 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "ProposalIndex", @@ -2643,7 +2643,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2790,7 +2790,7 @@ "storage": [ { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2801,7 +2801,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2812,7 +2812,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2823,7 +2823,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2834,7 +2834,7 @@ }, { "name": "ContractFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2845,7 +2845,7 @@ }, { "name": "CallBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2856,7 +2856,7 @@ }, { "name": "CreateBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2867,7 +2867,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2878,7 +2878,7 @@ }, { "name": "MaxDepth", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2889,7 +2889,7 @@ }, { "name": "BlockGasLimit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2900,7 +2900,7 @@ }, { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -2911,7 +2911,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -2922,7 +2922,7 @@ }, { "name": "CodeHashOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -2937,7 +2937,7 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2952,7 +2952,7 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "CodeHash", @@ -2967,7 +2967,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -2978,7 +2978,7 @@ }, { "name": "AccountInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { "key": "AccountId", @@ -3147,7 +3147,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v4/static-substrate.json b/packages/metadata/src/Metadata/v4/static-substrate.json index cd6e2cf792..c40f6d22d7 100644 --- a/packages/metadata/src/Metadata/v4/static-substrate.json +++ b/packages/metadata/src/Metadata/v4/static-substrate.json @@ -9,10 +9,10 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -25,7 +25,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -36,7 +36,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -47,10 +47,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -63,10 +63,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -79,7 +79,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Digest" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,10 +157,10 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", @@ -216,7 +216,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -227,7 +227,7 @@ }, { "name": "BlockPeriod", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Moment" }, @@ -238,7 +238,7 @@ }, { "name": "MinimumPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -252,7 +252,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -291,7 +291,7 @@ "storage": [ { "name": "OriginalAuthorities", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec" }, @@ -393,7 +393,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -404,10 +404,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -442,7 +442,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -453,7 +453,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -464,7 +464,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -475,7 +475,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -486,7 +486,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -497,7 +497,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -508,10 +508,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -524,10 +524,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -550,10 +550,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -576,10 +576,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -683,7 +683,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -694,7 +694,7 @@ }, { "name": "SessionLength", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -705,7 +705,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -716,7 +716,7 @@ }, { "name": "CurrentStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -727,7 +727,7 @@ }, { "name": "ForcingNewSession", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "bool" }, @@ -740,7 +740,7 @@ }, { "name": "LastLengthChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -751,10 +751,10 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "SessionKey", "linked": false @@ -767,7 +767,7 @@ }, { "name": "NextSessionLength", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -835,7 +835,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -846,7 +846,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -857,7 +857,7 @@ }, { "name": "SessionsPerEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -868,7 +868,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -879,7 +879,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -890,7 +890,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -901,7 +901,7 @@ }, { "name": "BondingDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -912,7 +912,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -924,10 +924,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -940,10 +940,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -956,10 +956,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -972,10 +972,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -988,10 +988,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -1004,10 +1004,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1023,7 +1023,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1034,7 +1034,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1045,7 +1045,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1056,7 +1056,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1068,7 +1068,7 @@ }, { "name": "NextSessionsPerEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1079,7 +1079,7 @@ }, { "name": "LastEraLengthChange", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1090,7 +1090,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1103,10 +1103,10 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "u32", "linked": false @@ -1119,7 +1119,7 @@ }, { "name": "ForcingNewEra", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Null" }, @@ -1130,7 +1130,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -1408,7 +1408,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1419,7 +1419,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1430,10 +1430,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1446,7 +1446,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1457,7 +1457,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1468,10 +1468,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1484,10 +1484,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1500,10 +1500,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1516,10 +1516,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1535,10 +1535,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1552,10 +1552,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1568,7 +1568,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1580,7 +1580,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1594,10 +1594,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1611,10 +1611,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -1948,7 +1948,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1959,7 +1959,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1970,7 +1970,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1981,7 +1981,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1992,7 +1992,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2003,7 +2003,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2015,7 +2015,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2026,7 +2026,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2037,7 +2037,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2048,7 +2048,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2062,7 +2062,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2073,10 +2073,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -2090,10 +2090,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2107,10 +2107,10 @@ }, { "name": "LastActiveOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoteIndex", "linked": false @@ -2123,7 +2123,7 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2134,7 +2134,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2145,7 +2145,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2154,7 +2154,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2165,7 +2165,7 @@ }, { "name": "SnapshotedStakes", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2176,7 +2176,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2400,7 +2400,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2411,10 +2411,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2427,10 +2427,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2443,7 +2443,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2596,7 +2596,7 @@ "storage": [ { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2605,7 +2605,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2645,7 +2645,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2657,7 +2657,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2668,7 +2668,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2679,7 +2679,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2690,7 +2690,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2701,7 +2701,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2712,10 +2712,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -2728,7 +2728,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2875,7 +2875,7 @@ "storage": [ { "name": "SignedClaimHandicap", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2889,7 +2889,7 @@ }, { "name": "TombstoneDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2900,7 +2900,7 @@ }, { "name": "StorageSizeOffset", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2912,7 +2912,7 @@ }, { "name": "RentByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2923,7 +2923,7 @@ }, { "name": "RentDepositOffset", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2940,7 +2940,7 @@ }, { "name": "SurchargeReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2952,7 +2952,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2963,7 +2963,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2974,7 +2974,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2985,7 +2985,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2996,7 +2996,7 @@ }, { "name": "ContractFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3007,7 +3007,7 @@ }, { "name": "CallBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3018,7 +3018,7 @@ }, { "name": "CreateBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3029,7 +3029,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3040,7 +3040,7 @@ }, { "name": "MaxDepth", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3051,7 +3051,7 @@ }, { "name": "BlockGasLimit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3062,7 +3062,7 @@ }, { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3073,7 +3073,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3084,10 +3084,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3100,10 +3100,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3116,7 +3116,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3127,10 +3127,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -3356,7 +3356,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v5/static-polkadot.json b/packages/metadata/src/Metadata/v5/static-polkadot.json index 1a5f49f875..8773199b0c 100644 --- a/packages/metadata/src/Metadata/v5/static-polkadot.json +++ b/packages/metadata/src/Metadata/v5/static-polkadot.json @@ -9,10 +9,10 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -25,7 +25,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -36,7 +36,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -47,10 +47,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -63,10 +63,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -79,7 +79,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -216,7 +216,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -227,7 +227,7 @@ }, { "name": "BlockPeriod", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Moment" }, @@ -238,7 +238,7 @@ }, { "name": "MinimumPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -252,7 +252,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -291,7 +291,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -302,10 +302,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -340,7 +340,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -351,7 +351,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -362,7 +362,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -373,7 +373,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -384,7 +384,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -395,7 +395,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -406,10 +406,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -422,10 +422,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -448,10 +448,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -474,10 +474,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -601,7 +601,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -612,7 +612,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -623,7 +623,7 @@ }, { "name": "Changed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -634,10 +634,10 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Keys", "linked": false @@ -650,10 +650,10 @@ }, { "name": "Active", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec", "linked": false @@ -711,7 +711,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -722,7 +722,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -733,7 +733,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -744,7 +744,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -755,7 +755,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -766,7 +766,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -779,10 +779,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -795,10 +795,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -811,10 +811,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -827,10 +827,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -843,10 +843,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -859,10 +859,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -878,7 +878,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -889,7 +889,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -900,7 +900,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -911,7 +911,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -923,7 +923,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -936,10 +936,10 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "u32", "linked": false @@ -953,7 +953,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -965,7 +965,7 @@ }, { "name": "ForceNewEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1286,7 +1286,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1297,7 +1297,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1308,10 +1308,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1324,7 +1324,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1335,7 +1335,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1346,10 +1346,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1362,10 +1362,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1378,10 +1378,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1394,10 +1394,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1413,10 +1413,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1430,10 +1430,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1446,7 +1446,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1458,7 +1458,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1472,10 +1472,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1489,10 +1489,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -1866,7 +1866,7 @@ "storage": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -1877,7 +1877,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -1888,7 +1888,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1899,7 +1899,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -1941,7 +1941,7 @@ "storage": [ { "name": "ShufflePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1975,7 +1975,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1986,7 +1986,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1997,7 +1997,7 @@ }, { "name": "VotingFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2008,7 +2008,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2019,7 +2019,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2030,7 +2030,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2041,7 +2041,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2053,7 +2053,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2064,7 +2064,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2075,7 +2075,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2086,7 +2086,7 @@ }, { "name": "DecayRatio", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2100,7 +2100,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2114,7 +2114,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2125,10 +2125,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -2145,10 +2145,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2162,10 +2162,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -2178,10 +2178,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -2194,7 +2194,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2205,7 +2205,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2216,7 +2216,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2227,7 +2227,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2238,7 +2238,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2249,7 +2249,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2539,7 +2539,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2550,10 +2550,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2566,10 +2566,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2582,7 +2582,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2724,7 +2724,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2736,7 +2736,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2747,7 +2747,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2758,7 +2758,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2769,7 +2769,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2780,7 +2780,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2791,10 +2791,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -2807,7 +2807,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2972,7 +2972,7 @@ "storage": [ { "name": "Parachains", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2981,10 +2981,10 @@ }, { "name": "Code", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -2995,10 +2995,10 @@ }, { "name": "Heads", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -3009,10 +3009,10 @@ }, { "name": "Watermarks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "BlockNumber", "linked": false @@ -3023,10 +3023,10 @@ }, { "name": "UnroutedIngress", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(BlockNumber,ParaId)", "value": "Vec<(ParaId,Hash)>", "linked": false @@ -3042,10 +3042,10 @@ }, { "name": "RelayDispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Vec", "linked": false @@ -3059,10 +3059,10 @@ }, { "name": "RelayDispatchQueueSize", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "(u32,u32)", "linked": false @@ -3076,7 +3076,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -3085,7 +3085,7 @@ }, { "name": "NextFreeId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ParaId" }, @@ -3150,7 +3150,7 @@ "storage": [ { "name": "AuctionCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuctionIndex" }, @@ -3161,7 +3161,7 @@ }, { "name": "ManagedIds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3173,10 +3173,10 @@ }, { "name": "Deposits", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "Vec", "linked": false @@ -3201,7 +3201,7 @@ }, { "name": "AuctionInfo", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(LeasePeriodOf,BlockNumber)" }, @@ -3216,10 +3216,10 @@ }, { "name": "Winning", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "WinningData", "linked": false @@ -3234,10 +3234,10 @@ }, { "name": "ReservedAmounts", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Bidder", "value": "BalanceOf", "linked": false @@ -3251,10 +3251,10 @@ }, { "name": "OnboardQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "LeasePeriodOf", "value": "Vec", "linked": false @@ -3268,10 +3268,10 @@ }, { "name": "Onboarding", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "(LeasePeriodOf,IncomingParachain)", "linked": false @@ -3287,10 +3287,10 @@ }, { "name": "Offboarding", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "AccountId", "linked": false @@ -3564,7 +3564,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v5/static-substrate.json b/packages/metadata/src/Metadata/v5/static-substrate.json index da07d60b06..87fb2a8dfe 100644 --- a/packages/metadata/src/Metadata/v5/static-substrate.json +++ b/packages/metadata/src/Metadata/v5/static-substrate.json @@ -9,10 +9,10 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -25,7 +25,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -36,7 +36,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -47,10 +47,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -63,10 +63,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -79,7 +79,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -277,7 +277,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -288,7 +288,7 @@ }, { "name": "BlockPeriod", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Moment" }, @@ -299,7 +299,7 @@ }, { "name": "MinimumPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -313,7 +313,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -352,7 +352,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -363,10 +363,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -401,7 +401,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -412,7 +412,7 @@ }, { "name": "ExistentialDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -423,7 +423,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -434,7 +434,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -445,7 +445,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -456,7 +456,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -467,10 +467,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -483,10 +483,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -509,10 +509,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -535,10 +535,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -662,7 +662,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -673,7 +673,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -684,7 +684,7 @@ }, { "name": "Changed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -695,10 +695,10 @@ }, { "name": "NextKeyFor", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Keys", "linked": false @@ -711,10 +711,10 @@ }, { "name": "Active", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec", "linked": false @@ -772,7 +772,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -783,7 +783,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -794,7 +794,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -805,7 +805,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -816,7 +816,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -827,7 +827,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -840,10 +840,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -856,10 +856,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -872,10 +872,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -888,10 +888,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -904,10 +904,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -920,10 +920,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -939,7 +939,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -950,7 +950,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -961,7 +961,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -972,7 +972,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -984,7 +984,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -997,10 +997,10 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "u32", "linked": false @@ -1014,7 +1014,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -1026,7 +1026,7 @@ }, { "name": "ForceNewEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1347,7 +1347,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1358,7 +1358,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1369,10 +1369,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1385,7 +1385,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1396,7 +1396,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1407,10 +1407,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1423,10 +1423,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1439,10 +1439,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1455,10 +1455,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1474,10 +1474,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1491,10 +1491,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1507,7 +1507,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1519,7 +1519,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1533,10 +1533,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1550,10 +1550,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -1927,7 +1927,7 @@ "storage": [ { "name": "CandidacyBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1938,7 +1938,7 @@ }, { "name": "VotingBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1949,7 +1949,7 @@ }, { "name": "VotingFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1960,7 +1960,7 @@ }, { "name": "PresentSlashPerVoter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1971,7 +1971,7 @@ }, { "name": "CarryCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1982,7 +1982,7 @@ }, { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1993,7 +1993,7 @@ }, { "name": "InactiveGracePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2005,7 +2005,7 @@ }, { "name": "VotingPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2016,7 +2016,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2027,7 +2027,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2038,7 +2038,7 @@ }, { "name": "DecayRatio", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2052,7 +2052,7 @@ }, { "name": "ActiveCouncil", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2066,7 +2066,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2077,10 +2077,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -2097,10 +2097,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2114,10 +2114,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -2130,10 +2130,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -2146,7 +2146,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2157,7 +2157,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2168,7 +2168,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2179,7 +2179,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2190,7 +2190,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2201,7 +2201,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2491,7 +2491,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2502,10 +2502,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2518,10 +2518,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2534,7 +2534,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2697,7 +2697,7 @@ "storage": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -2708,7 +2708,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -2719,7 +2719,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -2730,7 +2730,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -2772,7 +2772,7 @@ "storage": [ { "name": "ProposalBond", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2784,7 +2784,7 @@ }, { "name": "ProposalBondMinimum", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2795,7 +2795,7 @@ }, { "name": "SpendPeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2806,7 +2806,7 @@ }, { "name": "Burn", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Permill" }, @@ -2817,7 +2817,7 @@ }, { "name": "Pot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -2828,7 +2828,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -2839,10 +2839,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -2855,7 +2855,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3020,7 +3020,7 @@ "storage": [ { "name": "SignedClaimHandicap", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -3034,7 +3034,7 @@ }, { "name": "TombstoneDeposit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3045,7 +3045,7 @@ }, { "name": "StorageSizeOffset", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3057,7 +3057,7 @@ }, { "name": "RentByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3068,7 +3068,7 @@ }, { "name": "RentDepositOffset", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3085,7 +3085,7 @@ }, { "name": "SurchargeReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3097,7 +3097,7 @@ }, { "name": "TransferFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3108,7 +3108,7 @@ }, { "name": "CreationFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3119,7 +3119,7 @@ }, { "name": "TransactionBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3130,7 +3130,7 @@ }, { "name": "TransactionByteFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3141,7 +3141,7 @@ }, { "name": "ContractFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3152,7 +3152,7 @@ }, { "name": "CallBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3163,7 +3163,7 @@ }, { "name": "CreateBaseFee", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3174,7 +3174,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3185,7 +3185,7 @@ }, { "name": "MaxDepth", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3196,7 +3196,7 @@ }, { "name": "BlockGasLimit", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3207,7 +3207,7 @@ }, { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3218,7 +3218,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3229,10 +3229,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3245,10 +3245,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3261,7 +3261,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3272,10 +3272,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -3501,7 +3501,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v6/static-polkadot.json b/packages/metadata/src/Metadata/v6/static-polkadot.json index 4da4e28b82..6288ce3249 100644 --- a/packages/metadata/src/Metadata/v6/static-polkadot.json +++ b/packages/metadata/src/Metadata/v6/static-polkadot.json @@ -9,10 +9,10 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -25,7 +25,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -36,7 +36,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -47,10 +47,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -63,10 +63,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -79,7 +79,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -279,7 +279,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -290,7 +290,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -343,7 +343,7 @@ "storage": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -354,7 +354,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -365,7 +365,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -398,7 +398,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -409,10 +409,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -448,7 +448,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -459,10 +459,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -475,10 +475,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -501,10 +501,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -527,10 +527,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -696,7 +696,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -707,7 +707,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -718,7 +718,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -729,7 +729,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -740,7 +740,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -751,7 +751,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -764,10 +764,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -780,10 +780,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -796,10 +796,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -812,10 +812,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -828,10 +828,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -844,10 +844,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -863,7 +863,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -874,7 +874,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -885,7 +885,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -896,7 +896,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -908,7 +908,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -921,10 +921,10 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "u32", "linked": false @@ -938,7 +938,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -950,7 +950,7 @@ }, { "name": "ForceNewEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -961,7 +961,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1300,7 +1300,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1311,7 +1311,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1322,7 +1322,7 @@ }, { "name": "Changed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1333,7 +1333,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1344,7 +1344,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1402,7 +1402,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1413,7 +1413,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1424,10 +1424,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1440,7 +1440,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1451,7 +1451,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1462,10 +1462,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1478,10 +1478,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1494,10 +1494,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1510,10 +1510,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1529,10 +1529,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1546,10 +1546,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1562,7 +1562,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1574,7 +1574,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1588,10 +1588,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1605,10 +1605,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2063,7 +2063,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2074,10 +2074,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2090,10 +2090,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2106,7 +2106,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2117,7 +2117,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2284,7 +2284,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2295,10 +2295,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2311,10 +2311,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2327,7 +2327,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2338,7 +2338,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2505,7 +2505,7 @@ "storage": [ { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2516,7 +2516,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2527,7 +2527,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2538,7 +2538,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2552,7 +2552,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2563,10 +2563,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -2583,10 +2583,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2600,10 +2600,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -2616,10 +2616,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -2632,7 +2632,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2643,7 +2643,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2654,7 +2654,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2665,7 +2665,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2676,7 +2676,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2687,7 +2687,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2699,10 +2699,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -3110,7 +3110,7 @@ "storage": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -3121,7 +3121,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3132,7 +3132,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3143,7 +3143,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3186,7 +3186,7 @@ "storage": [ { "name": "ShufflePeriod", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -3221,7 +3221,7 @@ "storage": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3232,10 +3232,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3248,7 +3248,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3412,7 +3412,7 @@ "storage": [ { "name": "Parachains", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3421,10 +3421,10 @@ }, { "name": "Code", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -3435,10 +3435,10 @@ }, { "name": "Heads", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -3449,10 +3449,10 @@ }, { "name": "Watermarks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "BlockNumber", "linked": false @@ -3463,10 +3463,10 @@ }, { "name": "UnroutedIngress", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(BlockNumber,ParaId)", "value": "Vec<(ParaId,Hash)>", "linked": false @@ -3482,10 +3482,10 @@ }, { "name": "RelayDispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Vec", "linked": false @@ -3499,10 +3499,10 @@ }, { "name": "RelayDispatchQueueSize", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "(u32,u32)", "linked": false @@ -3516,7 +3516,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -3525,7 +3525,7 @@ }, { "name": "NextFreeId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ParaId" }, @@ -3591,7 +3591,7 @@ "storage": [ { "name": "AuctionCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuctionIndex" }, @@ -3602,7 +3602,7 @@ }, { "name": "ManagedIds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3614,10 +3614,10 @@ }, { "name": "Deposits", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "Vec", "linked": false @@ -3642,7 +3642,7 @@ }, { "name": "AuctionInfo", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(LeasePeriodOf,BlockNumber)" }, @@ -3657,10 +3657,10 @@ }, { "name": "Winning", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "WinningData", "linked": false @@ -3675,10 +3675,10 @@ }, { "name": "ReservedAmounts", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Bidder", "value": "BalanceOf", "linked": false @@ -3692,10 +3692,10 @@ }, { "name": "OnboardQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "LeasePeriodOf", "value": "Vec", "linked": false @@ -3709,10 +3709,10 @@ }, { "name": "Onboarding", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "(LeasePeriodOf,IncomingParachain)", "linked": false @@ -3728,10 +3728,10 @@ }, { "name": "Offboarding", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "AccountId", "linked": false @@ -4006,7 +4006,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v6/static-substrate.json b/packages/metadata/src/Metadata/v6/static-substrate.json index ca7cfb4a26..30c6a0420e 100644 --- a/packages/metadata/src/Metadata/v6/static-substrate.json +++ b/packages/metadata/src/Metadata/v6/static-substrate.json @@ -9,10 +9,10 @@ "storage": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -25,7 +25,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -36,7 +36,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -47,7 +47,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -58,7 +58,7 @@ }, { "name": "NextWeightMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "WeightMultiplier" }, @@ -70,10 +70,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -86,10 +86,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -102,7 +102,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -114,7 +114,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -125,7 +125,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -136,7 +136,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -147,7 +147,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -158,7 +158,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -169,7 +169,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -180,14 +180,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -294,7 +294,7 @@ "storage": [ { "name": "LastTimestamp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -305,7 +305,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -325,7 +325,7 @@ "storage": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -336,7 +336,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -389,7 +389,7 @@ "storage": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -400,7 +400,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -411,7 +411,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -444,7 +444,7 @@ "storage": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -455,10 +455,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -494,7 +494,7 @@ "storage": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -505,10 +505,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -521,10 +521,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -547,10 +547,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -573,10 +573,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -742,7 +742,7 @@ "storage": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -753,7 +753,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -764,7 +764,7 @@ }, { "name": "SessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -775,7 +775,7 @@ }, { "name": "OfflineSlash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -786,7 +786,7 @@ }, { "name": "OfflineSlashGrace", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -797,7 +797,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -810,10 +810,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -826,10 +826,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -842,10 +842,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -858,10 +858,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -874,10 +874,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -890,10 +890,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -909,7 +909,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -920,7 +920,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -931,7 +931,7 @@ }, { "name": "CurrentSessionReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -942,7 +942,7 @@ }, { "name": "CurrentEraReward", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -954,7 +954,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -967,10 +967,10 @@ }, { "name": "SlashCount", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "u32", "linked": false @@ -984,7 +984,7 @@ }, { "name": "RecentlyOffline", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber,u32)>" }, @@ -996,7 +996,7 @@ }, { "name": "ForceNewEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1007,7 +1007,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1346,7 +1346,7 @@ "storage": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1357,7 +1357,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1368,7 +1368,7 @@ }, { "name": "Changed", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1379,7 +1379,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1390,7 +1390,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1402,14 +1402,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1422,14 +1422,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1498,7 +1498,7 @@ "storage": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1509,7 +1509,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1520,10 +1520,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1536,7 +1536,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1547,7 +1547,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1558,10 +1558,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1574,10 +1574,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1590,10 +1590,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1606,10 +1606,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1625,10 +1625,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1642,10 +1642,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1658,7 +1658,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1670,7 +1670,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1684,10 +1684,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1701,10 +1701,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2159,7 +2159,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2170,10 +2170,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2186,10 +2186,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2202,7 +2202,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2213,7 +2213,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2371,7 +2371,7 @@ "storage": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2382,10 +2382,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2398,10 +2398,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2414,7 +2414,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2425,7 +2425,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2583,7 +2583,7 @@ "storage": [ { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2594,7 +2594,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2605,7 +2605,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2616,7 +2616,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2630,7 +2630,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2641,10 +2641,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -2661,10 +2661,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2678,10 +2678,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -2694,10 +2694,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -2710,7 +2710,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2721,7 +2721,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2732,7 +2732,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2743,7 +2743,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2754,7 +2754,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2765,7 +2765,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2777,10 +2777,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -3204,7 +3204,7 @@ "storage": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -3215,7 +3215,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -3226,7 +3226,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3237,7 +3237,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3248,7 +3248,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3305,7 +3305,7 @@ "storage": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3316,10 +3316,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3332,7 +3332,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3496,7 +3496,7 @@ "storage": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3507,7 +3507,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3518,10 +3518,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3534,10 +3534,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3550,7 +3550,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3561,10 +3561,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -3577,7 +3577,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -3947,7 +3947,7 @@ "storage": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -4027,7 +4027,7 @@ "storage": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -4036,7 +4036,7 @@ }, { "name": "LastNewEraStart", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "SessionIndex" }, @@ -4045,14 +4045,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthorityId", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", diff --git a/packages/metadata/src/Metadata/v7/static-polkadot.json b/packages/metadata/src/Metadata/v7/static-polkadot.json index af552a9ef8..14aebf8a27 100644 --- a/packages/metadata/src/Metadata/v7/static-polkadot.json +++ b/packages/metadata/src/Metadata/v7/static-polkadot.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,7 +59,7 @@ }, { "name": "NextWeightMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "WeightMultiplier" }, @@ -71,10 +71,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -87,10 +87,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -103,7 +103,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -115,7 +115,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -126,7 +126,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -137,7 +137,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -148,7 +148,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -159,7 +159,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -170,7 +170,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -181,14 +181,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -306,7 +306,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -317,7 +317,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -328,7 +328,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -340,7 +340,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -351,7 +351,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -371,7 +371,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -382,7 +382,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -401,10 +401,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -415,7 +415,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -460,7 +460,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -471,7 +471,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -526,7 +526,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -537,10 +537,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -578,7 +578,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -589,10 +589,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -605,10 +605,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -631,10 +631,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -657,10 +657,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -849,7 +849,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -860,7 +860,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -871,7 +871,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -906,7 +906,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -917,7 +917,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -928,7 +928,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -941,10 +941,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -957,10 +957,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -973,10 +973,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -989,10 +989,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1005,10 +1005,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -1021,10 +1021,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1040,7 +1040,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1051,7 +1051,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1062,7 +1062,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1073,7 +1073,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1084,7 +1084,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1095,7 +1095,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1108,7 +1108,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1119,7 +1119,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1132,7 +1132,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1143,10 +1143,10 @@ }, { "name": "EraSlashJournal", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1485,10 +1485,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -1501,14 +1501,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1518,10 +1518,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false @@ -1562,7 +1562,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1573,7 +1573,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1584,7 +1584,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1596,7 +1596,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1608,7 +1608,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1621,14 +1621,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1641,14 +1641,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1757,7 +1757,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -1768,7 +1768,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -1779,7 +1779,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -1790,7 +1790,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -1801,7 +1801,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -1812,7 +1812,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -1824,10 +1824,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -1888,7 +1888,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -1899,7 +1899,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1910,14 +1910,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1971,7 +1971,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1982,7 +1982,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1993,10 +1993,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -2009,7 +2009,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2020,7 +2020,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -2031,10 +2031,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -2047,10 +2047,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -2063,10 +2063,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -2079,10 +2079,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -2098,10 +2098,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -2115,10 +2115,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -2131,7 +2131,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2143,7 +2143,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -2157,10 +2157,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -2174,10 +2174,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2624,7 +2624,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2635,10 +2635,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2651,10 +2651,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2667,7 +2667,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2678,7 +2678,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2838,7 +2838,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2849,10 +2849,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2865,10 +2865,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2881,7 +2881,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2892,7 +2892,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3052,7 +3052,7 @@ "items": [ { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -3063,7 +3063,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -3074,7 +3074,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3085,7 +3085,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -3099,7 +3099,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -3110,10 +3110,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -3124,10 +3124,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -3141,10 +3141,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -3157,10 +3157,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -3173,7 +3173,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -3184,7 +3184,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -3195,7 +3195,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3206,7 +3206,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3217,7 +3217,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -3228,7 +3228,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -3241,10 +3241,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -3648,7 +3648,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3770,7 +3770,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3781,10 +3781,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3797,7 +3797,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3963,10 +3963,10 @@ "items": [ { "name": "Claims", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EthereumAddress", "value": "BalanceOf", "linked": false @@ -3977,7 +3977,7 @@ }, { "name": "Total", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4035,7 +4035,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4046,7 +4046,7 @@ }, { "name": "Parachains", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4057,10 +4057,10 @@ }, { "name": "Code", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -4073,10 +4073,10 @@ }, { "name": "Heads", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Bytes", "linked": false @@ -4089,10 +4089,10 @@ }, { "name": "Watermarks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "BlockNumber", "linked": false @@ -4107,10 +4107,10 @@ }, { "name": "UnroutedIngress", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(BlockNumber,ParaId)", "value": "Vec<(ParaId,Hash)>", "linked": false @@ -4126,10 +4126,10 @@ }, { "name": "RelayDispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "Vec", "linked": false @@ -4143,10 +4143,10 @@ }, { "name": "RelayDispatchQueueSize", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaId", "value": "(u32,u32)", "linked": false @@ -4161,7 +4161,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -4172,7 +4172,7 @@ }, { "name": "NextFreeId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ParaId" }, @@ -4240,10 +4240,10 @@ "items": [ { "name": "RecentParaBlocks", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "IncludedBlocks", "linked": false @@ -4257,14 +4257,14 @@ }, { "name": "ParaBlockAttestations", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "BlockNumber", "key2": "Hash", "value": "BlockAttestations", - "key2Hasher": "Blake2_128" + "key2Hasher": "blake2128" } }, "fallback": "0x00", @@ -4274,7 +4274,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -4307,7 +4307,7 @@ "items": [ { "name": "AuctionCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuctionIndex" }, @@ -4318,7 +4318,7 @@ }, { "name": "ManagedIds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4330,10 +4330,10 @@ }, { "name": "Deposits", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "Vec", "linked": false @@ -4358,7 +4358,7 @@ }, { "name": "AuctionInfo", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(LeasePeriodOf,BlockNumber)" }, @@ -4373,10 +4373,10 @@ }, { "name": "Winning", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "WinningData", "linked": false @@ -4391,10 +4391,10 @@ }, { "name": "ReservedAmounts", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Bidder", "value": "BalanceOf", "linked": false @@ -4408,10 +4408,10 @@ }, { "name": "OnboardQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "LeasePeriodOf", "value": "Vec", "linked": false @@ -4425,10 +4425,10 @@ }, { "name": "Onboarding", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "(LeasePeriodOf,IncomingParachain)", "linked": false @@ -4444,10 +4444,10 @@ }, { "name": "Offboarding", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ParaIdOf", "value": "AccountId", "linked": false @@ -4724,7 +4724,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, diff --git a/packages/metadata/src/Metadata/v7/static-substrate.json b/packages/metadata/src/Metadata/v7/static-substrate.json index 16d4f17ee0..80cc6480c3 100644 --- a/packages/metadata/src/Metadata/v7/static-substrate.json +++ b/packages/metadata/src/Metadata/v7/static-substrate.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,7 +59,7 @@ }, { "name": "NextWeightMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "WeightMultiplier" }, @@ -71,10 +71,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -87,10 +87,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -103,7 +103,7 @@ }, { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "(i8,Vec)" }, @@ -115,7 +115,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -126,7 +126,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -137,7 +137,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -148,7 +148,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -159,7 +159,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -170,7 +170,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -181,14 +181,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -346,7 +346,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -357,7 +357,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -368,7 +368,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -380,7 +380,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -391,7 +391,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -411,7 +411,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -422,7 +422,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -441,10 +441,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -455,7 +455,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -500,7 +500,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -511,7 +511,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -566,7 +566,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -577,7 +577,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -588,7 +588,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -623,7 +623,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -634,10 +634,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -675,7 +675,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -686,10 +686,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -702,10 +702,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -728,10 +728,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -754,10 +754,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -946,7 +946,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -957,7 +957,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -968,7 +968,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -981,10 +981,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -997,10 +997,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -1013,10 +1013,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -1029,10 +1029,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1045,10 +1045,10 @@ }, { "name": "Nominators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -1061,10 +1061,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1080,7 +1080,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1091,7 +1091,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1102,7 +1102,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1113,7 +1113,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1124,7 +1124,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1135,7 +1135,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1148,7 +1148,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1159,7 +1159,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1172,7 +1172,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1183,10 +1183,10 @@ }, { "name": "EraSlashJournal", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1525,7 +1525,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1536,7 +1536,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1547,7 +1547,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1559,7 +1559,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1571,7 +1571,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1584,14 +1584,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1604,14 +1604,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1682,7 +1682,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1693,7 +1693,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1704,10 +1704,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1720,7 +1720,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1731,7 +1731,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1742,10 +1742,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1758,10 +1758,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1774,10 +1774,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1790,10 +1790,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -1809,10 +1809,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1826,10 +1826,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -1842,7 +1842,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1854,7 +1854,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -1868,10 +1868,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -1885,10 +1885,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2335,7 +2335,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2346,10 +2346,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2362,10 +2362,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2378,7 +2378,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2389,7 +2389,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2549,7 +2549,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2560,10 +2560,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2576,10 +2576,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2592,7 +2592,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2603,7 +2603,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2763,7 +2763,7 @@ "items": [ { "name": "PresentationDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2774,7 +2774,7 @@ }, { "name": "TermDuration", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -2785,7 +2785,7 @@ }, { "name": "DesiredSeats", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2796,7 +2796,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BlockNumber)>" }, @@ -2810,7 +2810,7 @@ }, { "name": "VoteCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "VoteIndex" }, @@ -2821,10 +2821,10 @@ }, { "name": "ApprovalsOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false @@ -2835,10 +2835,10 @@ }, { "name": "RegisterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false @@ -2852,10 +2852,10 @@ }, { "name": "VoterInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VoterInfo", "linked": false @@ -2868,10 +2868,10 @@ }, { "name": "Voters", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetIndex", "value": "Vec>", "linked": false @@ -2884,7 +2884,7 @@ }, { "name": "NextVoterSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2895,7 +2895,7 @@ }, { "name": "VoterCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetIndex" }, @@ -2906,7 +2906,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2917,7 +2917,7 @@ }, { "name": "CandidateCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2928,7 +2928,7 @@ }, { "name": "NextFinalize", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,u32,Vec)" }, @@ -2939,7 +2939,7 @@ }, { "name": "Leaderboard", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Vec<(BalanceOf,AccountId)>" }, @@ -2952,10 +2952,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -3359,7 +3359,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3519,7 +3519,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,AuthorityWeight)>" }, @@ -3530,7 +3530,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -3541,7 +3541,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3552,7 +3552,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3563,7 +3563,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3574,7 +3574,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -3586,10 +3586,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -3650,7 +3650,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3661,10 +3661,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3677,7 +3677,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3843,7 +3843,7 @@ "items": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3854,7 +3854,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3865,10 +3865,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3881,10 +3881,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3897,7 +3897,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3908,10 +3908,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -3924,7 +3924,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4267,7 +4267,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -4385,7 +4385,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -4396,7 +4396,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4407,14 +4407,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4468,10 +4468,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -4484,14 +4484,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4501,10 +4501,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false diff --git a/packages/metadata/src/Metadata/v8/static-substrate.json b/packages/metadata/src/Metadata/v8/static-substrate.json index 5baffdba1a..eb420652a9 100644 --- a/packages/metadata/src/Metadata/v8/static-substrate.json +++ b/packages/metadata/src/Metadata/v8/static-substrate.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,10 +59,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -75,10 +75,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -345,7 +345,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -356,7 +356,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -367,7 +367,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -379,7 +379,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -390,7 +390,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -410,7 +410,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -421,7 +421,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -440,10 +440,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -454,7 +454,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -500,7 +500,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -511,7 +511,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -567,7 +567,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -578,7 +578,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -589,7 +589,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -625,7 +625,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -636,10 +636,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -678,7 +678,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -689,10 +689,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -705,10 +705,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -731,10 +731,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -757,10 +757,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -957,7 +957,7 @@ "items": [ { "name": "NextFeeMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Multiplier" }, @@ -995,7 +995,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1006,7 +1006,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1017,7 +1017,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1030,10 +1030,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1046,10 +1046,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -1062,10 +1062,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -1078,10 +1078,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1094,10 +1094,10 @@ }, { "name": "Nominators", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Nominations", "linked": true @@ -1113,10 +1113,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1132,7 +1132,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1143,7 +1143,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1154,7 +1154,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1165,7 +1165,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1176,7 +1176,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1187,7 +1187,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1200,7 +1200,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1211,7 +1211,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1224,7 +1224,7 @@ }, { "name": "CanceledSlashPayout", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1236,10 +1236,10 @@ }, { "name": "UnappliedSlashes", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1252,7 +1252,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1263,14 +1263,14 @@ }, { "name": "ValidatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "(Perbill,BalanceOf)", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1281,14 +1281,14 @@ }, { "name": "NominatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "BalanceOf", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1298,10 +1298,10 @@ }, { "name": "SlashingSpans", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "SlashingSpans", "linked": false @@ -1314,10 +1314,10 @@ }, { "name": "SpanSlash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", "linked": false @@ -1331,7 +1331,7 @@ }, { "name": "EarliestUnappliedSlash", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "EraIndex" }, @@ -1342,7 +1342,7 @@ }, { "name": "StorageVersion", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1726,7 +1726,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1737,7 +1737,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1748,7 +1748,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1760,7 +1760,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1772,7 +1772,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1785,14 +1785,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1805,14 +1805,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1884,7 +1884,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1895,7 +1895,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Proposal,AccountId)>" }, @@ -1906,10 +1906,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1922,7 +1922,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1933,7 +1933,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1944,10 +1944,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1960,10 +1960,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1976,10 +1976,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -1992,10 +1992,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -2011,10 +2011,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -2028,10 +2028,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -2044,7 +2044,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2056,7 +2056,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Proposal,VoteThreshold)" }, @@ -2070,10 +2070,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -2087,10 +2087,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2539,7 +2539,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2550,10 +2550,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2566,10 +2566,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2582,7 +2582,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2593,7 +2593,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2754,7 +2754,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2765,10 +2765,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2781,10 +2781,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2797,7 +2797,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2808,7 +2808,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2969,7 +2969,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -2980,7 +2980,7 @@ }, { "name": "RunnersUp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -2991,7 +2991,7 @@ }, { "name": "ElectionRounds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3002,10 +3002,10 @@ }, { "name": "VotesOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -3018,10 +3018,10 @@ }, { "name": "StakeOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "BalanceOf", "linked": false @@ -3034,7 +3034,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3046,7 +3046,7 @@ }, { "name": "DidMigrate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -3252,7 +3252,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3414,7 +3414,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuthorityList" }, @@ -3428,7 +3428,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -3439,7 +3439,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3450,7 +3450,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3461,7 +3461,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3472,7 +3472,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -3484,10 +3484,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -3549,7 +3549,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3560,10 +3560,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3576,7 +3576,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3752,7 +3752,7 @@ "items": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3763,7 +3763,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3774,10 +3774,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3790,10 +3790,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3806,7 +3806,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -3817,10 +3817,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -3833,7 +3833,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4177,7 +4177,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -4296,7 +4296,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -4307,7 +4307,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4318,14 +4318,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4336,14 +4336,14 @@ }, { "name": "AuthoredBlocks", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "ValidatorId", "value": "u32", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00000000", @@ -4415,10 +4415,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -4431,14 +4431,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4448,10 +4448,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false @@ -4493,7 +4493,7 @@ "items": [ { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4518,10 +4518,10 @@ "items": [ { "name": "NameOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(Bytes,BalanceOf)", "linked": false diff --git a/packages/metadata/src/Metadata/v9/static-substrate.json b/packages/metadata/src/Metadata/v9/static-substrate.json index 8cadc47230..107b1fa48b 100644 --- a/packages/metadata/src/Metadata/v9/static-substrate.json +++ b/packages/metadata/src/Metadata/v9/static-substrate.json @@ -10,10 +10,10 @@ "items": [ { "name": "AccountNonce", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Index", "linked": false @@ -26,7 +26,7 @@ }, { "name": "ExtrinsicCount", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -37,7 +37,7 @@ }, { "name": "AllExtrinsicsWeight", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "Weight" }, @@ -48,7 +48,7 @@ }, { "name": "AllExtrinsicsLen", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "u32" }, @@ -59,10 +59,10 @@ }, { "name": "BlockHash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "BlockNumber", "value": "Hash", "linked": false @@ -75,10 +75,10 @@ }, { "name": "ExtrinsicData", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Bytes", "linked": false @@ -91,7 +91,7 @@ }, { "name": "Number", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -102,7 +102,7 @@ }, { "name": "ParentHash", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -113,7 +113,7 @@ }, { "name": "ExtrinsicsRoot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Hash" }, @@ -124,7 +124,7 @@ }, { "name": "Digest", - "modifier": 1, + "modifier": "default", "type": { "Plain": "DigestOf" }, @@ -135,7 +135,7 @@ }, { "name": "Events", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -146,7 +146,7 @@ }, { "name": "EventCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EventIndex" }, @@ -157,14 +157,14 @@ }, { "name": "EventTopics", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -340,7 +340,7 @@ "items": [ { "name": "EpochIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -351,7 +351,7 @@ }, { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AuthorityId,BabeAuthorityWeight)>" }, @@ -362,7 +362,7 @@ }, { "name": "GenesisSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -374,7 +374,7 @@ }, { "name": "CurrentSlot", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -385,7 +385,7 @@ }, { "name": "Randomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -405,7 +405,7 @@ }, { "name": "NextRandomness", - "modifier": 1, + "modifier": "default", "type": { "Plain": "[u8;32]" }, @@ -416,7 +416,7 @@ }, { "name": "SegmentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -435,10 +435,10 @@ }, { "name": "UnderConstruction", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "u32", "value": "Vec<[u8;32]>", "linked": false @@ -449,7 +449,7 @@ }, { "name": "Initialized", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "MaybeVrf" }, @@ -495,7 +495,7 @@ "items": [ { "name": "Now", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Moment" }, @@ -506,7 +506,7 @@ }, { "name": "DidUpdate", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -562,7 +562,7 @@ "items": [ { "name": "Uncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -573,7 +573,7 @@ }, { "name": "Author", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "AccountId" }, @@ -584,7 +584,7 @@ }, { "name": "DidSetUncles", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -620,7 +620,7 @@ "items": [ { "name": "NextEnumSet", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountIndex" }, @@ -631,10 +631,10 @@ }, { "name": "EnumSet", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountIndex", "value": "Vec", "linked": false @@ -673,7 +673,7 @@ "items": [ { "name": "TotalIssuance", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Balance" }, @@ -684,10 +684,10 @@ }, { "name": "Vesting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "VestingSchedule", "linked": false @@ -700,10 +700,10 @@ }, { "name": "FreeBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -726,10 +726,10 @@ }, { "name": "ReservedBalance", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Balance", "linked": false @@ -752,10 +752,10 @@ }, { "name": "Locks", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": false @@ -952,7 +952,7 @@ "items": [ { "name": "NextFeeMultiplier", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Multiplier" }, @@ -990,7 +990,7 @@ "items": [ { "name": "ValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1001,7 +1001,7 @@ }, { "name": "MinimumValidatorCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1012,7 +1012,7 @@ }, { "name": "Invulnerables", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1025,10 +1025,10 @@ }, { "name": "Bonded", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -1041,10 +1041,10 @@ }, { "name": "Ledger", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "StakingLedger", "linked": false @@ -1057,10 +1057,10 @@ }, { "name": "Payee", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "RewardDestination", "linked": false @@ -1073,10 +1073,10 @@ }, { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true @@ -1089,10 +1089,10 @@ }, { "name": "Nominators", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Nominations", "linked": true @@ -1108,10 +1108,10 @@ }, { "name": "Stakers", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Exposure", "linked": false @@ -1127,7 +1127,7 @@ }, { "name": "CurrentElected", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1138,7 +1138,7 @@ }, { "name": "CurrentEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraIndex" }, @@ -1149,7 +1149,7 @@ }, { "name": "CurrentEraStart", - "modifier": 1, + "modifier": "default", "type": { "Plain": "MomentOf" }, @@ -1160,7 +1160,7 @@ }, { "name": "CurrentEraStartSessionIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1171,7 +1171,7 @@ }, { "name": "CurrentEraPointsEarned", - "modifier": 1, + "modifier": "default", "type": { "Plain": "EraPoints" }, @@ -1182,7 +1182,7 @@ }, { "name": "SlotStake", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1195,7 +1195,7 @@ }, { "name": "ForceEra", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Forcing" }, @@ -1206,7 +1206,7 @@ }, { "name": "SlashRewardFraction", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Perbill" }, @@ -1219,7 +1219,7 @@ }, { "name": "CanceledSlashPayout", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -1231,10 +1231,10 @@ }, { "name": "UnappliedSlashes", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "EraIndex", "value": "Vec", "linked": false @@ -1247,7 +1247,7 @@ }, { "name": "BondedEras", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(EraIndex,SessionIndex)>" }, @@ -1258,14 +1258,14 @@ }, { "name": "ValidatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "(Perbill,BalanceOf)", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1276,14 +1276,14 @@ }, { "name": "NominatorSlashInEra", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "EraIndex", "key2": "AccountId", "value": "BalanceOf", - "key2Hasher": "Twox128" + "key2Hasher": "twox128" } }, "fallback": "0x00", @@ -1293,10 +1293,10 @@ }, { "name": "SlashingSpans", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "SlashingSpans", "linked": false @@ -1309,10 +1309,10 @@ }, { "name": "SpanSlash", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(AccountId,SpanIndex)", "value": "SpanRecord", "linked": false @@ -1326,7 +1326,7 @@ }, { "name": "EarliestUnappliedSlash", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "EraIndex" }, @@ -1337,7 +1337,7 @@ }, { "name": "StorageVersion", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -1722,7 +1722,7 @@ "items": [ { "name": "Validators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1733,7 +1733,7 @@ }, { "name": "CurrentIndex", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SessionIndex" }, @@ -1744,7 +1744,7 @@ }, { "name": "QueuedChanged", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -1756,7 +1756,7 @@ }, { "name": "QueuedKeys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(ValidatorId,Keys)>" }, @@ -1768,7 +1768,7 @@ }, { "name": "DisabledValidators", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -1781,14 +1781,14 @@ }, { "name": "NextKeys", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "ValidatorId", "value": "Keys", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1801,14 +1801,14 @@ }, { "name": "KeyOwner", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key1": "Bytes", "key2": "(KeyTypeId,Bytes)", "value": "ValidatorId", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -1880,7 +1880,7 @@ "items": [ { "name": "PublicPropCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "PropIndex" }, @@ -1891,7 +1891,7 @@ }, { "name": "PublicProps", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(PropIndex,Hash,AccountId)>" }, @@ -1902,10 +1902,10 @@ }, { "name": "Preimages", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(Bytes,AccountId,BalanceOf,BlockNumber)", "linked": false @@ -1919,10 +1919,10 @@ }, { "name": "DepositOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false @@ -1935,7 +1935,7 @@ }, { "name": "ReferendumCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1946,7 +1946,7 @@ }, { "name": "NextTally", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ReferendumIndex" }, @@ -1957,10 +1957,10 @@ }, { "name": "ReferendumInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false @@ -1973,10 +1973,10 @@ }, { "name": "DispatchQueue", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Twox64Concat", + "hasher": "twox64Concat", "key": "BlockNumber", "value": "Vec>", "linked": false @@ -1989,10 +1989,10 @@ }, { "name": "VotersFor", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReferendumIndex", "value": "Vec", "linked": false @@ -2005,10 +2005,10 @@ }, { "name": "VoteOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false @@ -2024,10 +2024,10 @@ }, { "name": "Proxy", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "AccountId", "linked": false @@ -2041,10 +2041,10 @@ }, { "name": "Delegations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true @@ -2057,7 +2057,7 @@ }, { "name": "LastTabledWasExternal", - "modifier": 1, + "modifier": "default", "type": { "Plain": "bool" }, @@ -2069,7 +2069,7 @@ }, { "name": "NextExternal", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(Hash,VoteThreshold)" }, @@ -2083,10 +2083,10 @@ }, { "name": "Blacklist", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false @@ -2100,10 +2100,10 @@ }, { "name": "Cancellations", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "bool", "linked": false @@ -2689,7 +2689,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2700,10 +2700,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2716,10 +2716,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2732,7 +2732,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2743,7 +2743,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2904,7 +2904,7 @@ "items": [ { "name": "Proposals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -2915,10 +2915,10 @@ }, { "name": "ProposalOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Proposal", "linked": false @@ -2931,10 +2931,10 @@ }, { "name": "Voting", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Hash", "value": "Votes", "linked": false @@ -2947,7 +2947,7 @@ }, { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -2958,7 +2958,7 @@ }, { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3119,7 +3119,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3130,7 +3130,7 @@ }, { "name": "RunnersUp", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec<(AccountId,BalanceOf)>" }, @@ -3141,7 +3141,7 @@ }, { "name": "ElectionRounds", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u32" }, @@ -3152,10 +3152,10 @@ }, { "name": "VotesOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "Vec", "linked": true @@ -3168,10 +3168,10 @@ }, { "name": "StakeOf", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "BalanceOf", "linked": false @@ -3184,7 +3184,7 @@ }, { "name": "Candidates", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3414,7 +3414,7 @@ "items": [ { "name": "Members", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3597,7 +3597,7 @@ "items": [ { "name": "Authorities", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AuthorityList" }, @@ -3611,7 +3611,7 @@ }, { "name": "State", - "modifier": 1, + "modifier": "default", "type": { "Plain": "StoredState" }, @@ -3622,7 +3622,7 @@ }, { "name": "PendingChange", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "StoredPendingChange" }, @@ -3633,7 +3633,7 @@ }, { "name": "NextForced", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "BlockNumber" }, @@ -3644,7 +3644,7 @@ }, { "name": "Stalled", - "modifier": 0, + "modifier": "optional", "type": { "Plain": "(BlockNumber,BlockNumber)" }, @@ -3655,7 +3655,7 @@ }, { "name": "CurrentSetId", - "modifier": 1, + "modifier": "default", "type": { "Plain": "SetId" }, @@ -3667,10 +3667,10 @@ }, { "name": "SetIdSession", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "SetId", "value": "SessionIndex", "linked": false @@ -3732,7 +3732,7 @@ "items": [ { "name": "ProposalCount", - "modifier": 1, + "modifier": "default", "type": { "Plain": "ProposalIndex" }, @@ -3743,10 +3743,10 @@ }, { "name": "Proposals", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false @@ -3759,7 +3759,7 @@ }, { "name": "Approvals", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -3935,7 +3935,7 @@ "items": [ { "name": "GasSpent", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Gas" }, @@ -3946,7 +3946,7 @@ }, { "name": "CurrentSchedule", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Schedule" }, @@ -3957,10 +3957,10 @@ }, { "name": "PristineCode", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "Bytes", "linked": false @@ -3973,10 +3973,10 @@ }, { "name": "CodeStorage", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "CodeHash", "value": "PrefabWasmModule", "linked": false @@ -3989,7 +3989,7 @@ }, { "name": "AccountCounter", - "modifier": 1, + "modifier": "default", "type": { "Plain": "u64" }, @@ -4000,10 +4000,10 @@ }, { "name": "ContractInfoOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "ContractInfo", "linked": false @@ -4016,7 +4016,7 @@ }, { "name": "GasPrice", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BalanceOf" }, @@ -4360,7 +4360,7 @@ "items": [ { "name": "Key", - "modifier": 1, + "modifier": "default", "type": { "Plain": "AccountId" }, @@ -4479,7 +4479,7 @@ "items": [ { "name": "GossipAt", - "modifier": 1, + "modifier": "default", "type": { "Plain": "BlockNumber" }, @@ -4490,7 +4490,7 @@ }, { "name": "Keys", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4501,14 +4501,14 @@ }, { "name": "ReceivedHeartbeats", - "modifier": 0, + "modifier": "optional", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "AuthIndex", "value": "Bytes", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4519,14 +4519,14 @@ }, { "name": "AuthoredBlocks", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "SessionIndex", "key2": "ValidatorId", "value": "u32", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00000000", @@ -4598,10 +4598,10 @@ "items": [ { "name": "Reports", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "ReportIdOf", "value": "OffenceDetails", "linked": false @@ -4614,14 +4614,14 @@ }, { "name": "ConcurrentReportsIndex", - "modifier": 1, + "modifier": "default", "type": { "DoubleMap": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key1": "Kind", "key2": "OpaqueTimeSlot", "value": "Vec", - "key2Hasher": "Blake2_256" + "key2Hasher": "blake2256" } }, "fallback": "0x00", @@ -4631,10 +4631,10 @@ }, { "name": "ReportsByKindIndex", - "modifier": 1, + "modifier": "default", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "Kind", "value": "Bytes", "linked": false @@ -4676,7 +4676,7 @@ "items": [ { "name": "RandomMaterial", - "modifier": 1, + "modifier": "default", "type": { "Plain": "Vec" }, @@ -4701,10 +4701,10 @@ "items": [ { "name": "NameOf", - "modifier": 0, + "modifier": "optional", "type": { "Map": { - "hasher": "Blake2_256", + "hasher": "blake2256", "key": "AccountId", "value": "(Bytes,BalanceOf)", "linked": false diff --git a/packages/metadata/src/Metadata/v9/toV10.ts b/packages/metadata/src/Metadata/v9/toV10.ts index 72f4debaaf..291ba2cfdd 100644 --- a/packages/metadata/src/Metadata/v9/toV10.ts +++ b/packages/metadata/src/Metadata/v9/toV10.ts @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MetadataV9, MetadataV10, ModuleMetadataV9, ModuleMetadataV10, StorageEntryMetadataV9, StorageEntryTypeV9, StorageHasherV9 } from '@polkadot/types/interfaces/metadata'; +import { MetadataV9, MetadataV10, ModuleMetadataV9, ModuleMetadataV10, StorageEntryMetadataV9, StorageEntryTypeV9, StorageHasherV9, StorageHasherV10 } from '@polkadot/types/interfaces/metadata'; import { Registry } from '@polkadot/types/types'; -import { createType, StorageHasherV10 } from '@polkadot/types'; +import { createType } from '@polkadot/types'; // migrate a storage hasher type // see https://github.com/paritytech/substrate/pull/4462 diff --git a/packages/types/src/codec/Enum.spec.ts b/packages/types/src/codec/Enum.spec.ts index 63c755eb01..c3dcaba51f 100644 --- a/packages/types/src/codec/Enum.spec.ts +++ b/packages/types/src/codec/Enum.spec.ts @@ -178,7 +178,7 @@ describe('Enum', (): void => { const testEncode = (to: 'toJSON' | 'toNumber' | 'toString' | 'toU8a', expected: any): void => it(`can encode ${to}`, (): void => { - const e = new Enum(registry, ['foo', 'bar'], 1); + const e = new Enum(registry, ['Foo', 'Bar'], 1); expect(e[to]()).toEqual(expected); }); @@ -191,9 +191,9 @@ describe('Enum', (): void => { testDecode('Uint8Array', Uint8Array.from([0]), 'foo'); testDecode('Uint8Array', Uint8Array.from([1]), 'bar'); - testEncode('toJSON', 1); + testEncode('toJSON', 'bar'); testEncode('toNumber', 1); - testEncode('toString', 'bar'); + testEncode('toString', 'Bar'); testEncode('toU8a', Uint8Array.from([1])); it('provides a clean toString()', (): void => { diff --git a/packages/types/src/codec/Enum.ts b/packages/types/src/codec/Enum.ts index 4c794314b1..ba5ef8cc23 100644 --- a/packages/types/src/codec/Enum.ts +++ b/packages/types/src/codec/Enum.ts @@ -244,7 +244,7 @@ export default class Enum extends Base { */ public toJSON (): AnyJson { return this._isBasic - ? this._index + ? stringCamelCase(this.toString()) : { [this.type]: this.raw.toJSON() }; } diff --git a/packages/types/src/codec/create/createType.spec.ts b/packages/types/src/codec/create/createType.spec.ts index a4b67d8393..7ac1de62b8 100644 --- a/packages/types/src/codec/create/createType.spec.ts +++ b/packages/types/src/codec/create/createType.spec.ts @@ -47,7 +47,7 @@ describe('createType', (): void => { it('allows creation of a Enum (simple)', (): void => { expect( createTypeUnsafe(registry, '{"_enum": ["A", "B", "C"]}', [1]).toJSON() - ).toEqual(1); + ).toEqual('b'); }); it('allows creation of a Enum (parametrised)', (): void => { diff --git a/packages/types/src/interfaceRegistry.ts b/packages/types/src/interfaceRegistry.ts index e6eaa07b95..71ae1a0d26 100644 --- a/packages/types/src/interfaceRegistry.ts +++ b/packages/types/src/interfaceRegistry.ts @@ -2,7 +2,7 @@ /* eslint-disable @typescript-eslint/no-empty-interface */ import { Compact, Option, Raw, Vec } from '@polkadot/types/codec'; -import { Bytes, Data, Fixed64, H160, H256, H512, IdentityFields, Null, StorageData, StorageHasherV10, StorageHasherV4, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive'; +import { Bytes, Data, Fixed64, H160, H256, H512, IdentityFields, Null, StorageData, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive'; import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, Consensus, ConsensusEngineId, Digest, DigestItem, DispatchClass, DispatchInfo, DispatchInfoTo190, EcdsaSignature, Ed25519Signature, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV1, ExtrinsicPayloadV2, ExtrinsicPayloadV3, ExtrinsicPayloadV4, ExtrinsicUnknown, ExtrinsicV1, ExtrinsicV2, ExtrinsicV3, ExtrinsicV4, Hash, Header, ImmortalEra, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, Moment, MortalEra, MultiSignature, Origin, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Seal, SealV0, Signature, SignedBlock, SignerPayload, Sr25519Signature, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime'; import { InclusionHeight, Uncle, UncleEntryItem } from '@polkadot/types/interfaces/authorship'; import { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; @@ -28,7 +28,7 @@ import { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; import { EthereumAddress } from '@polkadot/types/interfaces/claims'; import { AttestedCandidate, AuctionIndex, BalanceUpload, Bidder, CandidateReceipt, CollatorId, CollatorSignature, EgressQueueRoot, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, NewBidder, ParaId, ParaIdOf, ParaInfo, ParaScheduling, ParachainDispatchOrigin, Retriable, SlotRange, SubId, UpwardMessage, ValidatorIndex, ValidityAttestation, ValidityVote, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; -import { CallMetadataV0, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapKindV11, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV11, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; +import { CallMetadataV0, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapKindV11, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV4, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; import { ApiId, BlockHash, ChainProperties, ExtrinsicOrHash, ExtrinsicStatus, Health, KeyValueOption, NetworkState, PeerInfo, RpcMethods, RuntimeDispatchInfo, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/rpc'; export interface InterfaceRegistry { @@ -80,12 +80,6 @@ export interface InterfaceRegistry { StorageData: StorageData; 'Option': Option; 'Vec': Vec; - StorageHasherV10: StorageHasherV10; - 'Option': Option; - 'Vec': Vec; - StorageHasherV4: StorageHasherV4; - 'Option': Option; - 'Vec': Vec; StorageKey: StorageKey; 'Option': Option; 'Vec': Vec; @@ -1052,6 +1046,9 @@ export interface InterfaceRegistry { StorageFunctionTypeV4: StorageFunctionTypeV4; 'Option': Option; 'Vec': Vec; + StorageHasherV4: StorageHasherV4; + 'Option': Option; + 'Vec': Vec; DoubleMapTypeV5: DoubleMapTypeV5; 'Option': Option; 'Vec': Vec; @@ -1301,6 +1298,9 @@ export interface InterfaceRegistry { StorageMetadataV10: StorageMetadataV10; 'Option': Option; 'Vec': Vec; + StorageHasherV10: StorageHasherV10; + 'Option': Option; + 'Vec': Vec; DoubleMapTypeV11: DoubleMapTypeV11; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/metadata/definitions.ts b/packages/types/src/interfaces/metadata/definitions.ts index 0389d4cb32..ba87906870 100644 --- a/packages/types/src/interfaces/metadata/definitions.ts +++ b/packages/types/src/interfaces/metadata/definitions.ts @@ -217,6 +217,15 @@ export default { DoubleMap: 'DoubleMapTypeV4' } }, + StorageHasherV4: { + _enum: { + Blake2_128: null, // eslint-disable-line @typescript-eslint/camelcase + Blake2_256: null, // eslint-disable-line @typescript-eslint/camelcase + Twox128: null, + Twox256: null, + Twox64Concat: null + } + }, // v5 DoubleMapTypeV5: { @@ -410,6 +419,16 @@ export default { prefix: 'Text', items: 'Vec' }, + StorageHasherV10: { + _enum: { + Blake2_128: null, // eslint-disable-line @typescript-eslint/camelcase + Blake2_256: null, // eslint-disable-line @typescript-eslint/camelcase + Blake2_128Concat: null, // eslint-disable-line @typescript-eslint/camelcase + Twox128: null, + Twox256: null, + Twox64Concat: null + } + }, // v11 DoubleMapTypeV11: 'DoubleMapTypeV10', diff --git a/packages/types/src/interfaces/metadata/types.ts b/packages/types/src/interfaces/metadata/types.ts index 206c55ea7c..9e8e1f1342 100644 --- a/packages/types/src/interfaces/metadata/types.ts +++ b/packages/types/src/interfaces/metadata/types.ts @@ -3,7 +3,7 @@ import { ITuple } from '@polkadot/types/types'; import { Enum, Option, Struct, Vec } from '@polkadot/types/codec'; -import { Bytes, StorageHasherV10, StorageHasherV4, Text, Type, bool, u16 } from '@polkadot/types/primitive'; +import { Bytes, Text, Type, bool, u16 } from '@polkadot/types/primitive'; /** Struct */ export interface CallMetadataV0 extends Struct { @@ -1011,9 +1011,39 @@ export interface StorageFunctionTypeV5 extends Enum { /** StorageHasherV11 */ export interface StorageHasher extends StorageHasherV11 {} +/** Enum */ +export interface StorageHasherV10 extends Enum { + /** 0:: Blake2_128 */ + readonly isBlake2128: boolean; + /** 1:: Blake2_256 */ + readonly isBlake2256: boolean; + /** 2:: Blake2_128Concat */ + readonly isBlake2128Concat: boolean; + /** 3:: Twox128 */ + readonly isTwox128: boolean; + /** 4:: Twox256 */ + readonly isTwox256: boolean; + /** 5:: Twox64Concat */ + readonly isTwox64Concat: boolean; +} + /** StorageHasherV10 */ export interface StorageHasherV11 extends StorageHasherV10 {} +/** Enum */ +export interface StorageHasherV4 extends Enum { + /** 0:: Blake2_128 */ + readonly isBlake2128: boolean; + /** 1:: Blake2_256 */ + readonly isBlake2256: boolean; + /** 2:: Twox128 */ + readonly isTwox128: boolean; + /** 3:: Twox256 */ + readonly isTwox256: boolean; + /** 4:: Twox64Concat */ + readonly isTwox64Concat: boolean; +} + /** StorageHasherV4 */ export interface StorageHasherV5 extends StorageHasherV4 {} diff --git a/packages/types/src/primitive/StorageHasher.ts b/packages/types/src/primitive/StorageHasher.ts deleted file mode 100644 index aa3fc8ea0d..0000000000 --- a/packages/types/src/primitive/StorageHasher.ts +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2017-2020 @polkadot/types authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. - -import { Registry } from '../types'; - -import Enum from '../codec/Enum'; - -export class StorageHasherV4 extends Enum { - constructor (registry: Registry, value?: any) { - super(registry, [ - 'Blake2_128', - 'Blake2_256', - 'Twox128', - 'Twox256', - 'Twox64Concat' - ], value); - } - - /** - * @description Is the enum Blake2_128? - */ - public get isBlake2128 (): boolean { - return this.toNumber() === 0; - } - - /** - * @description Is the enum Blake2_256? - */ - public get isBlake2256 (): boolean { - return this.toNumber() === 1; - } - - /** - * @description Is the enum Twox128? - */ - public get isTwox128 (): boolean { - return this.toNumber() === 2; - } - - /** - * @description Is the enum Twox256? - */ - public get isTwox256 (): boolean { - return this.toNumber() === 3; - } - - /** - * @description Is the enum isTwox64Concat? - */ - public get isTwox64Concat (): boolean { - return this.toNumber() === 4; - } - - public toJSON (): string { - // This looks prettier in the generated JSON - return this.toString(); - } -} - -export class StorageHasherV10 extends Enum { - constructor (registry: Registry, value?: any) { - super(registry, [ - 'Blake2_128', - 'Blake2_256', - 'Blake2_128Concat', - 'Twox128', - 'Twox256', - 'Twox64Concat' - ], value); - } - - /** - * @description Is the enum Blake2_128? - */ - public get isBlake2128 (): boolean { - return this.toNumber() === 0; - } - - /** - * @description Is the enum Blake2_256? - */ - public get isBlake2256 (): boolean { - return this.toNumber() === 1; - } - - /** - * @description Is the enum Blake2_128Concat? - */ - public get isBlake2128Concat (): boolean { - return this.toNumber() === 2; - } - - /** - * @description Is the enum Twox128? - */ - public get isTwox128 (): boolean { - return this.toNumber() === 3; - } - - /** - * @description Is the enum Twox256? - */ - public get isTwox256 (): boolean { - return this.toNumber() === 4; - } - - /** - * @description Is the enum isTwox64Concat? - */ - public get isTwox64Concat (): boolean { - return this.toNumber() === 5; - } - - public toJSON (): string { - // This looks prettier in the generated JSON - return this.toString(); - } -} diff --git a/packages/types/src/primitive/index.ts b/packages/types/src/primitive/index.ts index 3b002cb4a0..c4f7b2ace3 100644 --- a/packages/types/src/primitive/index.ts +++ b/packages/types/src/primitive/index.ts @@ -24,7 +24,6 @@ export { default as i128 } from './I128'; export { default as i256 } from './I256'; export { default as Null } from './Null'; export { default as StorageData } from './StorageData'; -export { StorageHasherV10, StorageHasherV4 } from './StorageHasher'; export { default as StorageKey } from './StorageKey'; export { default as Text } from './Text'; export { default as Type } from './Type';