Skip to content

Commit

Permalink
Adds pallet-account-fix to rococo (#2450)
Browse files Browse the repository at this point in the history
* call filter

* bump version

* add account-fix for rococo
  • Loading branch information
Kailai-Wang committed Jan 31, 2024
1 parent c5b984d commit 1c29873
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion runtime/litentry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,9 @@ impl Contains<RuntimeCall> for NormalModeFilter {
// Identity
RuntimeCall::ParachainIdentity(_) |
// Balance
RuntimeCall::Balances(_)
RuntimeCall::Balances(_) |
// AccountFix
RuntimeCall::AccountFix(_)
)
}
}
Expand Down
4 changes: 4 additions & 0 deletions runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42", optional = true }

# Rococo pallets
pallet-account-fix = { path = "../../pallets/account-fix", default-features = false }
pallet-asset-manager = { path = "../../pallets/xcm-asset-manager", default-features = false }
pallet-bridge = { path = "../../pallets/bridge", default-features = false }
pallet-bridge-transfer = { path = "../../pallets/bridge-transfer", default-features = false }
Expand Down Expand Up @@ -179,6 +180,7 @@ runtime-benchmarks = [
"pallet-sidechain/runtime-benchmarks",
"pallet-teeracle/runtime-benchmarks",
"pallet-vc-management/runtime-benchmarks",
"pallet-account-fix/runtime-benchmarks",
]
std = [
"codec/std",
Expand Down Expand Up @@ -268,6 +270,7 @@ std = [
"pallet-sidechain/std",
"pallet-teeracle/std",
"pallet-vc-management/std",
"pallet-account-fix/std",
"moonbeam-evm-tracer/std",
"moonbeam-rpc-primitives-debug/std",
"moonbeam-rpc-primitives-txpool/std",
Expand Down Expand Up @@ -323,4 +326,5 @@ try-runtime = [
"pallet-vesting/try-runtime",
"pallet-xcm/try-runtime",
"parachain-info/try-runtime",
"pallet-account-fix/try-runtime",
]
11 changes: 9 additions & 2 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("rococo-parachain"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9172,
spec_version: 9173,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -775,6 +775,10 @@ impl pallet_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
}

impl pallet_account_fix::Config for Runtime {
type Currency = Balances;
}

parameter_types! {
pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
Expand Down Expand Up @@ -1257,6 +1261,7 @@ construct_runtime! {
Ethereum: pallet_ethereum = 121,

// TMP
AccountFix: pallet_account_fix = 254,
Sudo: pallet_sudo = 255,
}
}
Expand Down Expand Up @@ -1344,7 +1349,9 @@ impl Contains<RuntimeCall> for NormalModeFilter {
// EVM
// Substrate EVM extrinsic not allowed
// So no EVM pallet
RuntimeCall::Ethereum(_)
RuntimeCall::Ethereum(_) |
// AccountFix
RuntimeCall::AccountFix(_)
)
}
}
Expand Down
16 changes: 16 additions & 0 deletions tee-worker/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tee-worker/app-libs/sgx-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("node-template"),
impl_name: create_runtime_str!("node-template"),
authoring_version: 1,
spec_version: 102,
spec_version: 103,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit 1c29873

Please sign in to comment.