Skip to content

Commit dbd770c

Browse files
authored
lift the bridge transfer restriciton and bump version (#907)
1 parent 74aa1da commit dbd770c

10 files changed

Lines changed: 22 additions & 27 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ homepage = 'https://litentry.com/'
77
license = 'GPL-3.0'
88
name = 'litentry-collator'
99
repository = 'https://github.com/litentry/litentry-parachain'
10-
version = '0.9.10'
10+
version = '0.9.11'
1111

1212
[[bin]]
1313
name = 'litentry-collator'

primitives/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Litentry Dev"]
33
edition = '2021'
44
name = 'primitives'
5-
version = '0.9.10'
5+
version = '0.9.11'
66

77
[dependencies]
88
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }

runtime/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Litentry Dev"]
33
edition = '2021'
44
name = 'runtime-common'
5-
version = '0.9.10'
5+
version = '0.9.11'
66

77
[dependencies]
88
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }

runtime/litentry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Litentry Dev"]
33
edition = '2021'
44
name = 'litentry-parachain-runtime'
5-
version = '0.9.10'
5+
version = '0.9.11'
66

77
[dependencies]
88
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }

runtime/litentry/src/lib.rs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
138138
authoring_version: 1,
139139
// same versioning-mechanism as polkadot:
140140
// last digit is used for minor updates, like 9110 -> 9111 in polkadot
141-
spec_version: 9101,
141+
spec_version: 9110,
142142
impl_version: 0,
143143
apis: RUNTIME_API_VERSIONS,
144144
transaction_version: 1,
@@ -736,33 +736,28 @@ parameter_types! {
736736
pub const NativeTokenResourceId: [u8; 32] = hex_literal::hex!("00000000000000000000000000000063a7e2be78898ba83824b0c0cc8dfb6001");
737737
}
738738

739-
pub struct TechnicalCommitteeProvider;
740-
impl SortedMembers<AccountId> for TechnicalCommitteeProvider {
739+
// allow anyone to call transfer_native
740+
pub struct TransferNativeAnyone;
741+
impl SortedMembers<AccountId> for TransferNativeAnyone {
741742
fn sorted_members() -> Vec<AccountId> {
742-
TechnicalCommittee::members()
743+
vec![]
743744
}
744745

745-
#[cfg(not(feature = "runtime-benchmarks"))]
746-
fn contains(who: &AccountId) -> bool {
747-
TechnicalCommittee::is_member(who)
746+
fn contains(_who: &AccountId) -> bool {
747+
true
748748
}
749749

750750
#[cfg(feature = "runtime-benchmarks")]
751751
fn add(_: &AccountId) {
752752
unimplemented!()
753753
}
754-
// To ensure that the benchmark code runs through
755-
#[cfg(feature = "runtime-benchmarks")]
756-
fn contains(_who: &AccountId) -> bool {
757-
true
758-
}
759754
}
760755

761756
impl pallet_bridge_transfer::Config for Runtime {
762757
type Event = Event;
763758
type BridgeOrigin = pallet_bridge::EnsureBridge<Runtime>;
759+
type TransferNativeMembers = TransferNativeAnyone;
764760
type SetMaximumIssuanceOrigin = EnsureRootOrHalfCouncil;
765-
type TransferNativeMembers = TechnicalCommitteeProvider;
766761
type NativeTokenResourceId = NativeTokenResourceId;
767762
type DefaultMaximumIssuance = MaximumIssuance;
768763
type ExternalTotalIssuance = ExternalTotalIssuance;

runtime/litmus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Litentry Dev"]
33
edition = '2021'
44
name = 'litmus-parachain-runtime'
5-
version = '0.9.10'
5+
version = '0.9.11'
66

77
[dependencies]
88
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }

runtime/litmus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
146146
authoring_version: 1,
147147
// same versioning-mechanism as polkadot:
148148
// last digit is used for minor updates, like 9110 -> 9111 in polkadot
149-
spec_version: 9101,
149+
spec_version: 9110,
150150
impl_version: 0,
151151
apis: RUNTIME_API_VERSIONS,
152152
transaction_version: 1,

runtime/rococo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Litentry Dev"]
33
edition = '2021'
44
name = 'rococo-parachain-runtime'
5-
version = '0.9.10'
5+
version = '0.9.11'
66

77
[dependencies]
88
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }

runtime/rococo/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
147147
authoring_version: 1,
148148
// same versioning-mechanism as polkadot:
149149
// last digit is used for minor updates, like 9110 -> 9111 in polkadot
150-
spec_version: 9101,
150+
spec_version: 9110,
151151
impl_version: 0,
152152
apis: RUNTIME_API_VERSIONS,
153153
transaction_version: 1,

0 commit comments

Comments
 (0)