Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .docker/alphaville.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
apt-get install -y cmake pkg-config libssl-dev git clang
apt-get install -y cmake pkg-config libssl-dev git clang protobuf-compiler

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH="$PATH:$HOME/.cargo/bin" && \
rustup toolchain install nightly-2022-06-24 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-24 && \
rustup default nightly-2022-06-24 &&\
rustup toolchain install nightly-2022-11-15 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-11-15 && \
rustup default nightly-2022-11-15 &&\
rustup show

WORKDIR /alphaville
Expand Down
8 changes: 4 additions & 4 deletions .docker/subzero-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
apt-get install -y cmake pkg-config libssl-dev git clang
apt-get install -y cmake pkg-config libssl-dev git clang protobuf-compiler

WORKDIR /subzero
COPY . /subzero

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH="$PATH:$HOME/.cargo/bin" && \
rustup toolchain install nightly-2022-06-24 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-24 && \
rustup default nightly-2022-06-24 &&\
rustup toolchain install nightly-2022-11-15 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-11-15 && \
rustup default nightly-2022-11-15 &&\
rustup show

# ===== STAGE 2 ======
Expand Down
11 changes: 5 additions & 6 deletions .docker/subzero.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@
FROM phusion/baseimage:focal-1.2.0 as baseimage
ENV DEBIAN_FRONTEND=noninteractive


RUN apt-get update && \
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
apt-get install -y cmake pkg-config libssl-dev git clang
apt-get install -y cmake pkg-config libssl-dev git clang protobuf-compiler

WORKDIR /subzero
COPY . /subzero

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH="$PATH:$HOME/.cargo/bin" && \
rustup toolchain install nightly-2022-06-24 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-24 && \
rustup default nightly-2022-06-24 &&\
rustup toolchain install nightly-2022-11-15 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-11-15 && \
rustup default nightly-2022-11-15 &&\
rustup show

# ===== STAGE 2 ======
Expand All @@ -44,7 +43,7 @@ RUN mv /usr/share/ca* /tmp && \
ln -s /subzero/.local/share/subzero /data

COPY --from=builder /subzero/target/$PROFILE/subzero /usr/local/bin
COPY --from=builder /subzero/.docker/chainspec /chainspec
COPY --from=builder /subzero/bin/res /chainspec

# checks
RUN ldd /usr/local/bin/subzero && \
Expand Down
2 changes: 1 addition & 1 deletion bin/alphaville/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alphaville"
version = "3.2.67"
version = "3.2.68"
authors = ["ZERO <play@zero.io>"]
description = "build video games and beyond"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion bin/alphaville/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alphaville-runtime"
version = "3.2.67"
version = "3.2.68"
authors = ["ZERO <play@zero.io>"]
edition = "2021"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion bin/alphaville/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 67,
spec_version: 68,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
121 changes: 121 additions & 0 deletions bin/res/subzero-kusama-raw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/subzero-dev/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subzero-dev-node"
version = "3.2.67"
version = "3.2.68"
authors = ["ZERO <play@zero.io>"]
description = "A substrate node for video games and beyond."
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
Expand Down
2 changes: 1 addition & 1 deletion bin/subzero-dev/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subzero-dev-runtime"
version = "3.2.67"
version = "3.2.68"
authors = ["ZERO <play@zero.io>"]
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
homepage = "https://zero.io"
Expand Down
2 changes: 1 addition & 1 deletion bin/subzero-dev/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("subzero"),
impl_name: create_runtime_str!("dev"),
authoring_version: 75,
spec_version: 67,
spec_version: 68,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
5 changes: 5 additions & 0 deletions bin/subzero/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ pub fn local_testnet_config() -> ChainSpec {
)
}

pub fn subzero_config() -> Result<ChainSpec, String> {
ChainSpec::from_json_bytes(&include_bytes!("../../../res/subzero-kusama-raw.json")[..])
}


fn testnet_genesis(
invulnerables: Vec<(AccountId, AuraId)>,
endowed_accounts: Vec<AccountId>,
Expand Down
5 changes: 3 additions & 2 deletions bin/subzero/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
Ok(match id {
"dev" => Box::new(chain_spec::development_config()),
"template-rococo" => Box::new(chain_spec::local_testnet_config()),
"" | "local" => Box::new(chain_spec::local_testnet_config()),
"local" => Box::new(chain_spec::local_testnet_config()),
"" | "subzero" => Box::new(chain_spec::subzero_config()?),
path => Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),
})
}
Expand Down Expand Up @@ -448,4 +449,4 @@ impl CliConfiguration<Self> for RelayChainCli {
fn node_name(&self) -> Result<String> {
self.base.base.node_name()
}
}
}