diff --git a/runtime/khala/src/lib.rs b/runtime/khala/src/lib.rs index 0e1edeec..ccfc6007 100644 --- a/runtime/khala/src/lib.rs +++ b/runtime/khala/src/lib.rs @@ -1854,9 +1854,22 @@ impl phala_pallets::PhalaConfig for Runtime { // type Currency = Balances; // } +parameter_types! { + // InDexAdminAccount Address: 41jWo4Q2ogXXHCHofUvkwrXjkxyWNdZdpCf92tdqdTB2ZeHP + pub InDexAdminAccountPubKey: [u8; 32] = hex_literal::hex!("315d3946332b2d1d9147634bd970b8b2503895ab9c877ed5d4dcd5fa528f6246"); + pub InDexAdminAccount: AccountId = InDexAdminAccountPubKey::get().into(); +} + +pub struct InDexAdminMembers; +impl SortedMembers for InDexAdminMembers { + fn sorted_members() -> Vec { + [InDexAdminAccount::get()].to_vec() + } +} + impl pallet_index::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type CommitteeOrigin = EnsureRootOrHalfCouncil; + type CommitteeOrigin = EnsureSignedBy; type AssetTransactor = (CurrencyTransactor, FungiblesTransactor); type AssetsRegistry = AssetsRegistry; } diff --git a/runtime/phala/src/lib.rs b/runtime/phala/src/lib.rs index 1ca778ad..66b52688 100644 --- a/runtime/phala/src/lib.rs +++ b/runtime/phala/src/lib.rs @@ -1812,9 +1812,22 @@ impl pallet_phat_tokenomic::Config for Runtime { type Currency = Balances; } +parameter_types! { + // InDexAdminAccount Address: 444xsyqf856A3EPtvDfPtg7TudDPhEpurq9N1MgukxxqV6h8 + pub InDexAdminAccountPubKey: [u8; 32] = hex_literal::hex!("98ab29aa531ccfdc7756f58c1e10d27d15acd2cbfde2c70c4125e74b2db9e861"); + pub InDexAdminAccount: AccountId = InDexAdminAccountPubKey::get().into(); +} + +pub struct InDexAdminMembers; +impl SortedMembers for InDexAdminMembers { + fn sorted_members() -> Vec { + [InDexAdminAccount::get()].to_vec() + } +} + impl pallet_index::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type CommitteeOrigin = EnsureRootOrHalfCouncil; + type CommitteeOrigin = EnsureSignedBy; type AssetTransactor = (CurrencyTransactor, FungiblesTransactor); type AssetsRegistry = AssetsRegistry; }