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/local-relay-parachain/chainspec/rococo-local.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion .docker/local-relay-parachain/chainspec/subzero.json

Large diffs are not rendered by default.

1,298 changes: 1,254 additions & 44 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions bin/subzero/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ fn testnet_genesis(
council: Default::default(),
treasury: Default::default(),
tokens: Default::default(),
democracy: Default::default(),
technical_committee: Default::default(),
elections: Default::default(),
technical_membership: Default::default(),
control: Default::default(),
asset_registry: Default::default(),
}
Expand Down
24 changes: 21 additions & 3 deletions bin/subzero/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ log = { version = "0.4.17", default-features = false }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
serde = { version = "1.0.143", optional = true, features = ["derive"] }
smallvec = "1.9.0"
static_assertions = "1.1.0"

# Substrate
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.28" }
Expand All @@ -35,10 +36,18 @@ pallet-balances = { git = "https://github.com/paritytech/substrate", default-fea
pallet-bounties = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-child-bounties = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.28" }
pallet-collective = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.28" }
pallet-democracy = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.28" }
pallet-elections-phragmen = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.28" }
pallet-identity = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-membership = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-preimage = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-scheduler = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-tips = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
pallet-treasury = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.28" }
Expand Down Expand Up @@ -125,17 +134,25 @@ std = [
"pallet-aura/std",
"pallet-authorship/std",
"pallet-balances/std",
"pallet-collator-selection/std",
"pallet-session/std",
"pallet-bounties/std",
"pallet-collator-selection/std",
"pallet-child-bounties/std",
"pallet-collective/std",
"pallet-democracy/std",
"pallet-elections-phragmen/std",
"pallet-identity/std",
"pallet-treasury/std",
"pallet-membership/std",
"pallet-multisig/std",
"pallet-preimage/std",
"pallet-proxy/std",
"pallet-scheduler/std",
"pallet-session/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-tips/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-treasury/std",
"pallet-uniques/std",
"pallet-utility/std",
"pallet-xcm/std",
Expand Down Expand Up @@ -193,6 +210,7 @@ runtime-benchmarks = [
"pallet-collator-selection/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-child-bounties/runtime-benchmarks",
"pallet-democracy/runtime-benchmarks",
"pallet-identity/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
Expand Down
10 changes: 9 additions & 1 deletion bin/subzero/runtime/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
pub mod time {
use primitives::{BlockNumber, Moment};
use primitives::{
currency::ZERO,
cent,
Balance, BlockNumber, Moment,
};

pub const SECS_PER_BLOCK: Moment = 12;
pub const MILLISECS_PER_BLOCK: Moment = SECS_PER_BLOCK * 1000;
Expand All @@ -10,6 +14,10 @@ pub mod time {
pub const DAYS: BlockNumber = HOURS * 24;

pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;

pub fn deposit(items: u32, bytes: u32) -> Balance {
items as Balance * 15 * cent(ZERO) + (bytes as Balance) * 6 * cent(ZERO)
}
}

pub mod fee {
Expand Down
Loading