File tree Expand file tree Collapse file tree 11 files changed +121
-23
lines changed Expand file tree Collapse file tree 11 files changed +121
-23
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
- [ C] Changes is ` Cere ` Runtime
11
11
- [ D] Changes is ` Cere Dev ` Runtime
12
12
13
+ ## [ 7.3.3]
14
+
15
+ - [ C,D] Fix ` CheckMetadataHash ` extension issue
16
+ -
13
17
## [ 7.3.2]
14
18
15
19
- [ C] Update Hyperbridge Coprocessor for Mainnet.
Original file line number Diff line number Diff line change 1
1
[workspace .package ]
2
- version = " 7.3.1 "
2
+ version = " 7.3.2 "
3
3
authors = [" Cerebellum-Network" ]
4
4
edition = " 2021"
5
5
homepage = " https://cere.network/"
Original file line number Diff line number Diff line change 51
51
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
52
52
export PATH=$PATH:$HOME/.cargo/bin && \
53
53
scripts/init.sh && \
54
- cargo build --$PROFILE
54
+ cargo build --$PROFILE --features on-chain-release-build
55
55
56
56
# ===== SECOND STAGE ======
57
57
FROM phusion/baseimage:jammy-1.0.1
Original file line number Diff line number Diff line change @@ -323,3 +323,11 @@ try-runtime = [
323
323
" ismp-grandpa/try-runtime" ,
324
324
" pallet-token-gateway/try-runtime" ,
325
325
]
326
+
327
+ # Enable the metadata hash generation in the wasm builder.
328
+ metadata-hash = [" substrate-wasm-builder/metadata-hash" ]
329
+
330
+ # A feature that should be enabled when the runtime should be built for on-chain
331
+ # deployment. This will disable stuff that shouldn't be part of the on-chain wasm
332
+ # to make it smaller, like logging for example.
333
+ on-chain-release-build = [" metadata-hash" ]
Original file line number Diff line number Diff line change 15
15
// See the License for the specific language governing permissions and
16
16
// limitations under the License.
17
17
18
+ #[ cfg( all( feature = "std" , feature = "metadata-hash" ) ) ]
19
+ fn main ( ) {
20
+ substrate_wasm_builder:: WasmBuilder :: init_with_defaults ( )
21
+ . enable_metadata_hash ( "CERE" , 10 )
22
+ . build ( ) ;
23
+ }
24
+
25
+ #[ cfg( all( feature = "std" , not( feature = "metadata-hash" ) ) ) ]
18
26
fn main ( ) {
19
27
substrate_wasm_builder:: WasmBuilder :: build_using_defaults ( ) ;
20
28
}
29
+
30
+ /// The wasm builder is deactivated when compiling
31
+ /// this crate for wasm to speed up the compilation.
32
+ #[ cfg( not( feature = "std" ) ) ]
33
+ fn main ( ) { }
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
163
163
// and set impl_version to 0. If only runtime
164
164
// implementation changes and behavior does not, then leave spec_version as
165
165
// is and increment impl_version.
166
- spec_version : 73103 ,
166
+ spec_version : 73104 ,
167
167
impl_version : 0 ,
168
168
apis : RUNTIME_API_VERSIONS ,
169
169
transaction_version : 24 ,
Original file line number Diff line number Diff line change @@ -321,3 +321,11 @@ try-runtime = [
321
321
" ismp-grandpa/try-runtime" ,
322
322
" pallet-token-gateway/try-runtime" ,
323
323
]
324
+
325
+ # Enable the metadata hash generation in the wasm builder.
326
+ metadata-hash = [" substrate-wasm-builder/metadata-hash" ]
327
+
328
+ # A feature that should be enabled when the runtime should be built for on-chain
329
+ # deployment. This will disable stuff that shouldn't be part of the on-chain wasm
330
+ # to make it smaller, like logging for example.
331
+ on-chain-release-build = [" metadata-hash" ]
Original file line number Diff line number Diff line change 15
15
// See the License for the specific language governing permissions and
16
16
// limitations under the License.
17
17
18
+ #[ cfg( all( feature = "std" , feature = "metadata-hash" ) ) ]
19
+ fn main ( ) {
20
+ substrate_wasm_builder:: WasmBuilder :: init_with_defaults ( )
21
+ . enable_metadata_hash ( "CERE" , 10 )
22
+ . build ( ) ;
23
+ }
24
+
25
+ #[ cfg( all( feature = "std" , not( feature = "metadata-hash" ) ) ) ]
18
26
fn main ( ) {
19
27
substrate_wasm_builder:: WasmBuilder :: build_using_defaults ( ) ;
20
28
}
29
+
30
+ /// The wasm builder is deactivated when compiling
31
+ /// this crate for wasm to speed up the compilation.
32
+ #[ cfg( not( feature = "std" ) ) ]
33
+ fn main ( ) { }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use super::*;
9
9
10
10
parameter_types ! {
11
11
// The hyperbridge parachain on Polkadot
12
- pub const Coprocessor : Option <StateMachine > = Some ( StateMachine :: Polkadot ( 3367 ) ) ;
12
+ pub const Coprocessor : Option <StateMachine > = Some ( StateMachine :: Kusama ( 4009 ) ) ;
13
13
// The host state machine of this pallet, this must be unique to all every solochain
14
14
pub const HostStateMachine : StateMachine = StateMachine :: Substrate ( * b"cere" ) ; // your unique chain id here
15
15
}
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
158
158
// and set impl_version to 0. If only runtime
159
159
// implementation changes and behavior does not, then leave spec_version as
160
160
// is and increment impl_version.
161
- spec_version : 73103 ,
161
+ spec_version : 73104 ,
162
162
impl_version : 0 ,
163
163
apis : RUNTIME_API_VERSIONS ,
164
164
transaction_version : 24 ,
You can’t perform that action at this time.
0 commit comments