Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor project #1444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Refactor project #1444

wants to merge 1 commit into from

Conversation

AurevoirXavier
Copy link
Member

@AurevoirXavier AurevoirXavier commented Mar 7, 2024

This won't be included in the upcoming release.

Tasks:

  1. Rename darwinia-* pallet names to dp-*.
  2. Rename darwinia-precompile-* precompile names to dpc-*.
  3. Rename *-runtime runtime component names to dr-*.
  4. Add dr-constant for maintaining the runtime scope constants easily.
  5. Update WASM file naming from *_runtime.*.wasm to simply *.*.wasm, removing _runtime.
  6. Eliminate tracing node jobs from CI; the darwinia repository will now only include essential materials, while additional items like the force-debug, evm-tracing WASMs, and node files for node suppliers such as Dweller will be handled in the darwinia-releases repository.

After 4, kton staking sender can reuse the constant defined in dr-constant.

@AurevoirXavier AurevoirXavier added U-CI/CD [Uncategorized] Something about CI/CD C-Precompile [Component] Something about precompile C-Pallet [Component] Something about pallet C-Runtime [Component] Something about runtime labels Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

Check c45b3ec crab-dev

Check runtime version

RuntimeVersion {
    spec_name: "Crab2",
    impl_name: "DarwiniaOfficialRust",
    authoring_version: 0,
-   spec_version: 6600,
+   spec_version: 6610,
    impl_version: 0,
    transaction_version: 0,
    state_version: 0,
}

Check runtime storage

- Pallet: "BridgeDarwiniaMessages"
- Pallet: "BridgePolkadotGrandpa"
- Pallet: "BridgePolkadotParachain"
- Pallet: "DarwiniaFeeMarket"

Pallet AccountMigration
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 364, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_deposit::Deposits`] data."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 425, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_deposit::Deposits`] data."] }
+ Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 366, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
- Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 427, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 372, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_staking::Ledgers`] data."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 433, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_staking::Ledgers`] data."] }
+ Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 45, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }
- Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 45, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 383, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
- Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 444, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 383, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
- Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 444, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 383, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
- Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 444, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
+ Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 381, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
- Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 442, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 372, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 433, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }
+ Entry: StorageEntryMetadata { name: "MigrationStartBlock", modifier: Default, ty: Plain(UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 0, 0, 0], docs: [" Migration starting block."] }

Pallet Deposit
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 362, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 423, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }

Pallet Proxy
+ Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 464, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }
- Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 521, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }

Pallet Scheduler
+ Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 453, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }
- Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 512, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }

Pallet Session
+ Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 92, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
- Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 92, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
+ Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 392, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }
- Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 452, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }

Pallet System
+ Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }
- Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }

Pallet TechnicalCommittee
+ Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 59, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }
- Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 59, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }

Copy link

github-actions bot commented Mar 7, 2024

Check c45b3ec darwinia-dev

Check runtime version

RuntimeVersion {
    spec_name: "Darwinia2",
    impl_name: "DarwiniaOfficialRust",
    authoring_version: 0,
-   spec_version: 6600,
+   spec_version: 6610,
    impl_version: 0,
    transaction_version: 0,
    state_version: 0,
}

Check runtime storage

- Pallet: "BridgeCrabMessages"
- Pallet: "BridgeKusamaGrandpa"
- Pallet: "BridgeKusamaParachain"
- Pallet: "CrabFeeMarket"

Pallet AccountMigration
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 400, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_deposit::Deposits`] data."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 459, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_deposit::Deposits`] data."] }
+ Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 402, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
- Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 461, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_staking::Ledgers`] data."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 467, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_staking::Ledgers`] data."] }
+ Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 45, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }
- Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 42, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 45, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }

Pallet AssetLimit
+ Entry: StorageEntryMetadata { name: "ForeignAssetLimit", modifier: Optional, ty: Map { hashers: [Twox128], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the asset limit for foreign assets."] }
- Entry: StorageEntryMetadata { name: "ForeignAssetLimit", modifier: Optional, ty: Map { hashers: [Twox128], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the asset limit for foreign assets."] }

Pallet AssetManager
+ Entry: StorageEntryMetadata { name: "AssetIdType", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Mapping from an asset id to asset type.", " This is mostly used when receiving transaction specifying an asset directly,", " like transferring an asset from this chain to another."] }
- Entry: StorageEntryMetadata { name: "AssetIdType", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Mapping from an asset id to asset type.", " This is mostly used when receiving transaction specifying an asset directly,", " like transferring an asset from this chain to another."] }
+ Entry: StorageEntryMetadata { name: "AssetTypeId", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.", " This is mostly used when receiving a multilocation XCM message to retrieve", " the corresponding asset in which tokens should me minted."] }
- Entry: StorageEntryMetadata { name: "AssetTypeId", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.", " This is mostly used when receiving a multilocation XCM message to retrieve", " the corresponding asset in which tokens should me minted."] }
+ Entry: StorageEntryMetadata { name: "AssetTypeUnitsPerSecond", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the units per second for local execution for a AssetType.", " This is used to know how to charge for XCM execution in a particular", " asset", " Not all assets might contain units per second, hence the different storage"] }
- Entry: StorageEntryMetadata { name: "AssetTypeUnitsPerSecond", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 279, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the units per second for local execution for a AssetType.", " This is used to know how to charge for XCM execution in a particular", " asset", " Not all assets might contain units per second, hence the different storage"] }
+ Entry: StorageEntryMetadata { name: "SupportedFeePaymentAssets", modifier: Default, ty: Plain(UntrackedSymbol { id: 575, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "SupportedFeePaymentAssets", modifier: Default, ty: Plain(UntrackedSymbol { id: 630, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [] }

Pallet Council
+ Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 73, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }
- Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 73, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 419, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
- Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 478, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 419, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
- Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 478, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 419, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
- Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 478, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
+ Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 417, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
- Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 476, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 467, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }
+ Entry: StorageEntryMetadata { name: "MigrationStartBlock", modifier: Default, ty: Plain(UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 0, 0, 0], docs: [" Migration starting block."] }

Pallet Democracy
+ Entry: StorageEntryMetadata { name: "NextExternal", modifier: Optional, ty: Plain(UntrackedSymbol { id: 467, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The referendum to be tabled whenever it would be valid to table an external proposal.", " This happens when a referendum needs to be tabled and one of two conditions are met:", " - `LastTabledWasExternal` is `false`; or", " - `PublicProps` is empty."] }
- Entry: StorageEntryMetadata { name: "NextExternal", modifier: Optional, ty: Plain(UntrackedSymbol { id: 524, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The referendum to be tabled whenever it would be valid to table an external proposal.", " This happens when a referendum needs to be tabled and one of two conditions are met:", " - `LastTabledWasExternal` is `false`; or", " - `PublicProps` is empty."] }
+ Entry: StorageEntryMetadata { name: "PublicProps", modifier: Default, ty: Plain(UntrackedSymbol { id: 453, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The public proposals. Unsorted. The second item is the proposal."] }
- Entry: StorageEntryMetadata { name: "PublicProps", modifier: Default, ty: Plain(UntrackedSymbol { id: 510, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The public proposals. Unsorted. The second item is the proposal."] }

Pallet Deposit
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 398, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 457, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }

Pallet EcdsaAuthority
+ Entry: StorageEntryMetadata { name: "AuthoritiesChangeToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 439, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The authorities change waiting for signing."] }
- Entry: StorageEntryMetadata { name: "AuthoritiesChangeToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 497, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The authorities change waiting for signing."] }
+ Entry: StorageEntryMetadata { name: "MessageRootToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 441, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The incoming message root waiting for signing."] }
- Entry: StorageEntryMetadata { name: "MessageRootToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 499, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The incoming message root waiting for signing."] }

Pallet Proxy
+ Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 522, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }
- Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 577, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }

Pallet Scheduler
+ Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 511, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }
- Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 568, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }

Pallet Session
+ Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 106, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
- Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 106, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
+ Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 428, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }
- Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 486, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }

Pallet System
+ Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }
- Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }

Pallet TechnicalCommittee
+ Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 73, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }
- Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 73, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }

Copy link

github-actions bot commented Mar 7, 2024

Check c45b3ec pangolin-dev

Check runtime version

RuntimeVersion {
    spec_name: "Pangolin2",
    impl_name: "DarwiniaOfficialRust",
    authoring_version: 0,
-   spec_version: 6602,
+   spec_version: 6610,
    impl_version: 0,
    transaction_version: 0,
    state_version: 0,
}

Check runtime storage

Pallet AccountMigration
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 389, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_deposit::Deposits`] data."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 389, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_deposit::Deposits`] data."] }
+ Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 391, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
- Entry: StorageEntryMetadata { name: "KtonAccounts", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 391, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`pallet_asset::AssetAccount`] data.", "", " https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 397, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`dp_staking::Ledgers`] data."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 397, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" [`darwinia_staking::Ledgers`] data."] }
+ Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 44, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }
- Entry: StorageEntryMetadata { name: "Multisigs", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 41, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 44, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Multisig migration caches."] }

Pallet AssetLimit
+ Entry: StorageEntryMetadata { name: "ForeignAssetLimit", modifier: Optional, ty: Map { hashers: [Twox128], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the asset limit for foreign assets."] }
- Entry: StorageEntryMetadata { name: "ForeignAssetLimit", modifier: Optional, ty: Map { hashers: [Twox128], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the asset limit for foreign assets."] }

Pallet AssetManager
+ Entry: StorageEntryMetadata { name: "AssetIdType", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Mapping from an asset id to asset type.", " This is mostly used when receiving transaction specifying an asset directly,", " like transferring an asset from this chain to another."] }
- Entry: StorageEntryMetadata { name: "AssetIdType", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Mapping from an asset id to asset type.", " This is mostly used when receiving transaction specifying an asset directly,", " like transferring an asset from this chain to another."] }
+ Entry: StorageEntryMetadata { name: "AssetTypeId", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.", " This is mostly used when receiving a multilocation XCM message to retrieve", " the corresponding asset in which tokens should me minted."] }
- Entry: StorageEntryMetadata { name: "AssetTypeId", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 11, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.", " This is mostly used when receiving a multilocation XCM message to retrieve", " the corresponding asset in which tokens should me minted."] }
+ Entry: StorageEntryMetadata { name: "AssetTypeUnitsPerSecond", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the units per second for local execution for a AssetType.", " This is used to know how to charge for XCM execution in a particular", " asset", " Not all assets might contain units per second, hence the different storage"] }
- Entry: StorageEntryMetadata { name: "AssetTypeUnitsPerSecond", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 270, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Stores the units per second for local execution for a AssetType.", " This is used to know how to charge for XCM execution in a particular", " asset", " Not all assets might contain units per second, hence the different storage"] }
+ Entry: StorageEntryMetadata { name: "SupportedFeePaymentAssets", modifier: Default, ty: Plain(UntrackedSymbol { id: 549, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "SupportedFeePaymentAssets", modifier: Default, ty: Plain(UntrackedSymbol { id: 549, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [] }

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
- Entry: StorageEntryMetadata { name: "ExposureCache0", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 0."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
- Entry: StorageEntryMetadata { name: "ExposureCache1", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 1."] }
+ Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
- Entry: StorageEntryMetadata { name: "ExposureCache2", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 408, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Exposure cache 2."] }
+ Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 406, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
- Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 406, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
+ Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 397, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }
- Entry: StorageEntryMetadata { name: "Ledgers", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 397, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All staking ledgers."] }

Pallet Deposit
+ Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 387, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }
- Entry: StorageEntryMetadata { name: "Deposits", modifier: Optional, ty: Map { hashers: [Blake2_128Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 387, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" All deposits.", "", " The items must be sorted by the id."] }

Pallet EcdsaAuthority
+ Entry: StorageEntryMetadata { name: "AuthoritiesChangeToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 428, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The authorities change waiting for signing."] }
- Entry: StorageEntryMetadata { name: "AuthoritiesChangeToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 428, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The authorities change waiting for signing."] }
+ Entry: StorageEntryMetadata { name: "MessageRootToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 430, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The incoming message root waiting for signing."] }
- Entry: StorageEntryMetadata { name: "MessageRootToSign", modifier: Optional, ty: Plain(UntrackedSymbol { id: 430, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The incoming message root waiting for signing."] }

Pallet Proxy
+ Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 495, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }
- Entry: StorageEntryMetadata { name: "Proxies", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 495, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" The set of account proxies. Maps the account which has delegated to the accounts", " which are being delegated to, together with the amount held on deposit."] }

Pallet Scheduler
+ Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 484, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }
- Entry: StorageEntryMetadata { name: "Agenda", modifier: Default, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 484, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Items to be executed, indexed by the block number that they should be executed on."] }

Pallet Session
+ Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 97, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
- Entry: StorageEntryMetadata { name: "NextKeys", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 97, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" The next session keys for a validator."] }
+ Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 417, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }
- Entry: StorageEntryMetadata { name: "QueuedKeys", modifier: Default, ty: Plain(UntrackedSymbol { id: 417, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys."] }

Pallet System
+ Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }
- Entry: StorageEntryMetadata { name: "Events", modifier: Default, ty: Plain(UntrackedSymbol { id: 19, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Events deposited for the current block.", "", " NOTE: The item is unbound and should therefore never be read on chain.", " It could otherwise inflate the PoV size of a block.", "", " Events have a large in-memory size. Box the events to not go out-of-memory", " just in case someone still reads them from within the runtime."] }

Pallet TechnicalCommittee
+ Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 66, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }
- Entry: StorageEntryMetadata { name: "ProposalOf", modifier: Optional, ty: Map { hashers: [Identity], key: UntrackedSymbol { id: 12, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 66, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Actual proposal for a given hash, if it's current."] }

@boundless-forest boundless-forest self-requested a review March 8, 2024 01:06
@boundless-forest
Copy link
Member

Rename darwinia-* pallet names to dp-.
Rename darwinia-precompile-
precompile names to dpc-*.
Rename -runtime runtime component names to dr-.
Add dr-constant for maintaining the runtime scope constants easily.
Update WASM file naming from _runtime..wasm to simply ..wasm, removing _runtime.

I am strongly against this style of renaming. It makes the code less readable, when you see dp, dpc or, dr, you have to think about what does the p, pc, and r refer to. It's an absolute disaster for the people who are not familiar with the codebase. Please keep the name simple and straightforward.

@AurevoirXavier
Copy link
Member Author

AurevoirXavier commented Mar 8, 2024

I am strongly against this style of renaming. It makes the code less readable, when you see dp, dpc or, dr, you have to think about what does the p, pc, and r refer to.

I don't think so; this is quite common. We already use prefixes like dc-*, fp-*, sc-*, sp-*... The code remains readable. If you want to differentiate from upstream names, consider renaming dc- to dcore-, and dp- to dpallet-.

It's an absolute disaster for the people who are not familiar with the codebase.

Moreover, the folder names clearly indicate their purpose: core/*, runtime/*, pallet/*. I also believe this doesn't hinder understanding of the structure. To effectively learn the codebase, it's essential to choose clear and descriptive folder names since they serve as the primary entry point, not the crate name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Pallet [Component] Something about pallet C-Precompile [Component] Something about precompile C-Runtime [Component] Something about runtime U-CI/CD [Uncategorized] Something about CI/CD
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants