From de80fd55c3619b4971f61bd98abad3fccb4e7d4c Mon Sep 17 00:00:00 2001 From: Gianfranco Date: Tue, 4 Mar 2025 08:50:56 -0300 Subject: [PATCH 1/2] use generic ss58 prefix --- Cargo.lock | 30 ++++++++++++++-------------- res/amplitude-spec-raw.json | 2 +- res/amplitude-spec.json | 2 +- res/foucoco-paseo-spec-raw.json | 2 +- res/foucoco-spec-raw.json | 2 +- res/foucoco-spec.json | 2 +- res/foucoco-standalone-spec-raw.json | 2 +- res/foucoco-standalone-spec.json | 2 +- res/pendulum-spec-raw.json | 2 +- res/pendulum-spec.json | 2 +- runtime/amplitude/src/lib.rs | 4 ++-- runtime/foucoco/src/lib.rs | 6 +++--- runtime/pendulum/src/lib.rs | 4 ++-- 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6ef47ea16..b1672b5ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,7 +118,7 @@ checksum = "4436e0292ab1bb631b42973c61205e704475fe8126af845c8d923c0996328127" [[package]] name = "amplitude-runtime" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "bifrost-farming", "bifrost-farming-rpc-runtime-api", @@ -1649,7 +1649,7 @@ dependencies = [ [[package]] name = "chain-extension-common" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-support", "frame-system", @@ -3810,7 +3810,7 @@ dependencies = [ [[package]] name = "foucoco-runtime" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "bifrost-farming", "bifrost-farming-rpc-runtime-api", @@ -6596,7 +6596,7 @@ dependencies = [ [[package]] name = "module-pallet-staking-rpc" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -6609,7 +6609,7 @@ dependencies = [ [[package]] name = "module-pallet-staking-rpc-runtime-api" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-support", "module-oracle-rpc-runtime-api", @@ -7251,7 +7251,7 @@ dependencies = [ [[package]] name = "orml-currencies-allowance-extension" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-benchmarking", "frame-support", @@ -7307,7 +7307,7 @@ dependencies = [ [[package]] name = "orml-tokens-management-extension" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-benchmarking", "frame-support", @@ -8589,7 +8589,7 @@ dependencies = [ [[package]] name = "parachain-staking" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-benchmarking", "frame-support", @@ -8813,7 +8813,7 @@ dependencies = [ [[package]] name = "pendulum-node" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "amplitude-runtime", "bifrost-farming-rpc", @@ -8899,7 +8899,7 @@ dependencies = [ [[package]] name = "pendulum-runtime" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "bifrost-farming", "bifrost-farming-rpc-runtime-api", @@ -10410,7 +10410,7 @@ dependencies = [ [[package]] name = "price-chain-extension" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "chain-extension-common", "dia-oracle", @@ -11282,7 +11282,7 @@ dependencies = [ [[package]] name = "runtime-common" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "cumulus-pallet-parachain-system", "cumulus-primitives-core", @@ -15451,7 +15451,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-chain-extension" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "chain-extension-common", "frame-support", @@ -15755,7 +15755,7 @@ dependencies = [ [[package]] name = "treasury-buyout-extension" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-benchmarking", "frame-support", @@ -16097,7 +16097,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "vesting-manager" -version = "1.6.0" +version = "1.6.0-a" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/res/amplitude-spec-raw.json b/res/amplitude-spec-raw.json index a90e4b6f2..0ad556a41 100644 --- a/res/amplitude-spec-raw.json +++ b/res/amplitude-spec-raw.json @@ -15,7 +15,7 @@ "telemetryEndpoints": null, "protocolId": "amplitude", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/amplitude-spec.json b/res/amplitude-spec.json index 5dec94edf..70be66b2f 100644 --- a/res/amplitude-spec.json +++ b/res/amplitude-spec.json @@ -11,7 +11,7 @@ "telemetryEndpoints": null, "protocolId": "amplitude", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/foucoco-paseo-spec-raw.json b/res/foucoco-paseo-spec-raw.json index 53aa04735..7c7a03a49 100644 --- a/res/foucoco-paseo-spec-raw.json +++ b/res/foucoco-paseo-spec-raw.json @@ -6,7 +6,7 @@ "telemetryEndpoints": null, "protocolId": "foucoco-p", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/foucoco-spec-raw.json b/res/foucoco-spec-raw.json index 7b68838ff..a69801b0c 100644 --- a/res/foucoco-spec-raw.json +++ b/res/foucoco-spec-raw.json @@ -6,7 +6,7 @@ "telemetryEndpoints": null, "protocolId": "foucoco", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/foucoco-spec.json b/res/foucoco-spec.json index e5fe3dccc..8f78fe7ba 100644 --- a/res/foucoco-spec.json +++ b/res/foucoco-spec.json @@ -6,7 +6,7 @@ "telemetryEndpoints": null, "protocolId": "foucoco", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/foucoco-standalone-spec-raw.json b/res/foucoco-standalone-spec-raw.json index 6acdc7caa..60483591f 100644 --- a/res/foucoco-standalone-spec-raw.json +++ b/res/foucoco-standalone-spec-raw.json @@ -6,7 +6,7 @@ "telemetryEndpoints": null, "protocolId": "foucoco", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/foucoco-standalone-spec.json b/res/foucoco-standalone-spec.json index 10a592823..82785743e 100644 --- a/res/foucoco-standalone-spec.json +++ b/res/foucoco-standalone-spec.json @@ -6,7 +6,7 @@ "telemetryEndpoints": null, "protocolId": "foucoco", "properties": { - "ss58Format": 57, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "AMPE" }, diff --git a/res/pendulum-spec-raw.json b/res/pendulum-spec-raw.json index 2925145df..7ac31caae 100644 --- a/res/pendulum-spec-raw.json +++ b/res/pendulum-spec-raw.json @@ -15,7 +15,7 @@ "telemetryEndpoints": null, "protocolId": "pendulum", "properties": { - "ss58Format": 56, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "PEN" }, diff --git a/res/pendulum-spec.json b/res/pendulum-spec.json index 5f5ae4653..9ee3e4e87 100644 --- a/res/pendulum-spec.json +++ b/res/pendulum-spec.json @@ -15,7 +15,7 @@ "telemetryEndpoints": null, "protocolId": "pendulum", "properties": { - "ss58Format": 56, + "ss58Format": 0, "tokenDecimals": 12, "tokenSymbol": "PEN" }, diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index d13fcb1cd..57c130c87 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -299,7 +299,7 @@ parameter_types! { }) .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) .build_or_panic(); - pub const SS58Prefix: u16 = 57; + pub const SS58Prefix: u16 = 0; } pub struct BaseFilter; @@ -406,7 +406,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// This is used as an identifier of the chain. 57 is the prefix for Amplitude + /// Previous chain identifier prefix for address format: 57. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index 75cb98763..d76312ad1 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -301,7 +301,7 @@ parameter_types! { }) .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) .build_or_panic(); - pub const SS58Prefix: u16 = 57; + pub const SS58Prefix: u16 = 0; } pub struct BaseFilter; @@ -313,7 +313,7 @@ impl Contains for BaseFilter { RuntimeCall::Bounties(_) | RuntimeCall::ChildBounties(_) | RuntimeCall::ClientsInfo(_) | - RuntimeCall::Treasury(_) | + RuntimeCall::TreaSS58Prefixsury(_) | RuntimeCall::Tokens(_) | RuntimeCall::Currencies(_) | RuntimeCall::ParachainStaking(_) | @@ -408,7 +408,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// This is used as an identifier of the chain. 57 is the prefix for Foucoco + /// Previous chain identifier prefix for address format: 57. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index 2121ece79..311522644 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -302,7 +302,7 @@ parameter_types! { }) .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) .build_or_panic(); - pub const SS58Prefix: u16 = 56; + pub const SS58Prefix: u16 = 0; } pub struct BaseFilter; @@ -408,7 +408,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// This is used as an identifier of the chain. 56 is the prefix for Pendulum + /// Previous chain identifier prefix for address format: 57. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; From 19ab39595eb18417c9a5d42577146744b0c43d26 Mon Sep 17 00:00:00 2001 From: Gianfranco Date: Tue, 4 Mar 2025 09:50:24 -0300 Subject: [PATCH 2/2] update comments, typo --- runtime/amplitude/src/lib.rs | 2 +- runtime/foucoco/src/lib.rs | 4 ++-- runtime/pendulum/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index 57c130c87..b2983d6be 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -406,7 +406,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// Previous chain identifier prefix for address format: 57. + /// Previous chain identifier prefix for address format: 57. We now use the generic prefix `0`. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index d76312ad1..ac0f1a561 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -313,7 +313,7 @@ impl Contains for BaseFilter { RuntimeCall::Bounties(_) | RuntimeCall::ChildBounties(_) | RuntimeCall::ClientsInfo(_) | - RuntimeCall::TreaSS58Prefixsury(_) | + RuntimeCall::Treasury(_) | RuntimeCall::Tokens(_) | RuntimeCall::Currencies(_) | RuntimeCall::ParachainStaking(_) | @@ -408,7 +408,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// Previous chain identifier prefix for address format: 57. + /// Previous chain identifier prefix for address format: 57. We now use the generic prefix `0`. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index 311522644..05ddb8ff2 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -408,7 +408,7 @@ impl frame_system::Config for Runtime { type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). type BlockLength = RuntimeBlockLength; - /// Previous chain identifier prefix for address format: 57. + /// Previous chain identifier prefix for address format: 56. We now use the generic prefix `0`. type SS58Prefix = SS58Prefix; /// The action to take on a Runtime Upgrade type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode;