From 7c73b6d32c9b6ca2440595bf21a389d3bfdf3451 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 2 May 2024 12:04:04 +0000 Subject: [PATCH] config: Add config notes about extracted values Signed-off-by: Alexandru Vasile --- core/src/config/polkadot.rs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/core/src/config/polkadot.rs b/core/src/config/polkadot.rs index 7f4e3a88f9..160c25a2df 100644 --- a/core/src/config/polkadot.rs +++ b/core/src/config/polkadot.rs @@ -17,14 +17,22 @@ pub use primitive_types::{H256, U256}; pub enum PolkadotConfig {} impl Config for PolkadotConfig { - type Hash = ::Hash; - type AccountId = ::AccountId; - type Address = MultiAddress; - type Signature = ::Signature; - type Hasher = ::Hasher; - type Header = ::Header; + // coming from: System::Config + type Hash = ::Hash; // Done + type AccountId = ::AccountId; // Done + type Hasher = ::Hasher; // Done + + // coming from ::Extrinsic type + type Address = MultiAddress; // Done + type Signature = ::Signature; // Done + + // coming from ::Header type + type Header = ::Header; // Done + type ExtrinsicParams = PolkadotExtrinsicParams; - type AssetId = u32; + + // coming from Assets::Config (interested in foreign Assets specifically) + type AssetId = u32; // Done } /// A struct representing the signed extra and additional parameters required