Skip to content

Commit

Permalink
added customSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 13, 2024
1 parent 08475d5 commit 9ca0084
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion customSpec.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions customSpecRaw.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ hex-literal = { version = "0.4.1", optional = true }
log = { version = "0.4.17", default-features = false }
#SBP-M1 review: unused?
getrandom = { version = "0.2", features = ["js"] }
pallet-utility = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }

# primitives
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43", default-features = false }
Expand Down Expand Up @@ -162,6 +163,7 @@ std = [
"fula-pool/std",
"sugarfunge-primitives/std",
"pallet-im-online/std",
"pallet-utility/std",
]

runtime-benchmarks = [
Expand Down
14 changes: 11 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("sugarfunge-node"),
impl_name: create_runtime_str!("sugarfunge-node"),
authoring_version: 1,
spec_version: 1,
spec_version: 101,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -241,7 +241,7 @@ impl pallet_timestamp::Config for Runtime {
type WeightInfo = ();
}

pub const EXISTENTIAL_DEPOSIT: u128 = 500;
pub const EXISTENTIAL_DEPOSIT: u128 = 1000;

parameter_types! {
// For weight estimation, we assume that the most locks on an individual account will be 50.
Expand Down Expand Up @@ -368,7 +368,7 @@ impl validator_set::Config for Runtime {

parameter_types! {
// SBP-M1 review: consider increasing period (e.g. 6 hours is default within parachain template: https://github.com/paritytech/cumulus/blob/9e187970ff89169b795343d6ebcff53158b61324/parachain-template/runtime/src/lib.rs#L407)
pub const Period: u32 = 100 * MINUTES;
pub const Period: u32 = 180 * MINUTES;
pub const Offset: u32 = 0;
}

Expand Down Expand Up @@ -585,6 +585,13 @@ impl pallet_im_online::Config for Runtime {
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize;
}

impl pallet_utility::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
}

construct_runtime!(
pub struct Runtime where
Block = Block,
Expand Down Expand Up @@ -618,6 +625,7 @@ construct_runtime!(
// Functionland pallets
Fula: functionland_fula::{Pallet, Call, Storage, Event<T>},
Pool: fula_pool::{Pallet, Call, Storage, Event<T>},
Utility: pallet_utility,
}
);

Expand Down

0 comments on commit 9ca0084

Please sign in to comment.