From aec9869197a84a3ca011db39965413f77b795db5 Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Thu, 9 Nov 2023 11:50:22 +0100 Subject: [PATCH 1/4] bump version --- runtimes/kestrel/src/lib.rs | 10 +++++++++- runtimes/peregrine/src/lib.rs | 8 ++++++++ runtimes/spiritnet/src/lib.rs | 10 +++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/runtimes/kestrel/src/lib.rs b/runtimes/kestrel/src/lib.rs index 66ccc621e..b1b1ad3bf 100644 --- a/runtimes/kestrel/src/lib.rs +++ b/runtimes/kestrel/src/lib.rs @@ -121,7 +121,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 4, + transaction_version: 5, state_version: 0, }; @@ -521,6 +521,14 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { + if let RuntimeCall::Did(did::Call::dispatch_as { + did_identifier: _, + call, + }) = c + { + return self.filter(call); + } + match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 9fc8776cd..136fd2e19 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -767,6 +767,14 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { + if let RuntimeCall::Did(did::Call::dispatch_as { + did_identifier: _, + call, + }) = c + { + return self.filter(call); + } + match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 8aab59773..6d1750196 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -96,7 +96,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 6, + transaction_version: 7, state_version: 0, }; @@ -754,6 +754,14 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { + if let RuntimeCall::Did(did::Call::dispatch_as { + did_identifier: _, + call, + }) = c + { + return self.filter(call); + } + match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( From 6820a04134c6c02108e27121e5fe71ed283c128f Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Thu, 9 Nov 2023 13:05:29 +0100 Subject: [PATCH 2/4] remove filter --- runtimes/kestrel/src/lib.rs | 8 -------- runtimes/peregrine/src/lib.rs | 8 -------- runtimes/spiritnet/src/lib.rs | 8 -------- 3 files changed, 24 deletions(-) diff --git a/runtimes/kestrel/src/lib.rs b/runtimes/kestrel/src/lib.rs index b1b1ad3bf..a0b7af21a 100644 --- a/runtimes/kestrel/src/lib.rs +++ b/runtimes/kestrel/src/lib.rs @@ -521,14 +521,6 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { - if let RuntimeCall::Did(did::Call::dispatch_as { - did_identifier: _, - call, - }) = c - { - return self.filter(call); - } - match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 136fd2e19..9fc8776cd 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -767,14 +767,6 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { - if let RuntimeCall::Did(did::Call::dispatch_as { - did_identifier: _, - call, - }) = c - { - return self.filter(call); - } - match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 6d1750196..2aaf9155b 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -754,14 +754,6 @@ impl Default for ProxyType { impl InstanceFilter for ProxyType { fn filter(&self, c: &RuntimeCall) -> bool { - if let RuntimeCall::Did(did::Call::dispatch_as { - did_identifier: _, - call, - }) = c - { - return self.filter(call); - } - match self { ProxyType::Any => true, ProxyType::NonTransfer => matches!( From 69e738fda9e73f839dbc129acb354bd03652c03c Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Thu, 9 Nov 2023 13:06:24 +0100 Subject: [PATCH 3/4] peregrine --- runtimes/peregrine/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 9fc8776cd..022502490 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -96,7 +96,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 6, + transaction_version: 7, state_version: 0, }; From 653fdb229ba42cdb2c5025b05d7e0a9f5775b5a5 Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Mon, 13 Nov 2023 17:15:02 +0100 Subject: [PATCH 4/4] bump transaction version --- runtimes/kestrel/src/lib.rs | 2 +- runtimes/peregrine/src/lib.rs | 2 +- runtimes/spiritnet/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtimes/kestrel/src/lib.rs b/runtimes/kestrel/src/lib.rs index a0b7af21a..81d52d244 100644 --- a/runtimes/kestrel/src/lib.rs +++ b/runtimes/kestrel/src/lib.rs @@ -121,7 +121,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 5, + transaction_version: 6, state_version: 0, }; diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 022502490..79a6967f4 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -96,7 +96,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 7, + transaction_version: 8, state_version: 0, }; diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 2aaf9155b..1440c51a1 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -96,7 +96,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_version: 11200, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 7, + transaction_version: 8, state_version: 0, };