Skip to content

Commit f77b639

Browse files
committed
wip
1 parent d230b31 commit f77b639

File tree

7 files changed

+613
-22
lines changed

7 files changed

+613
-22
lines changed

Cargo.lock

Lines changed: 41 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/src/chain_spec.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use datahighway_runtime::{
1616
GrandpaConfig,
1717
ImOnlineConfig,
1818
IndicesConfig,
19+
MiningRewardsAllowanceConfig,
1920
SessionConfig,
2021
SessionKeys,
2122
StakerStatus,
@@ -913,6 +914,10 @@ fn testnet_genesis(
913914
grandpa: GrandpaConfig {
914915
authorities: vec![],
915916
},
917+
mining_rewards_allowance: MiningRewardsAllowanceConfig {
918+
rewards_allowance_dhx_current: 5_000_000_000_000_000_000_000u128,
919+
rewards_allowance_dhx_for_date: Default::default(),
920+
},
916921
// pallet_membership_Instance1
917922
technical_membership: TechnicalMembershipConfig {
918923
members: vec![root_key.clone()],
@@ -1005,6 +1010,10 @@ fn mainnet_genesis(
10051010
grandpa: GrandpaConfig {
10061011
authorities: vec![],
10071012
},
1013+
mining_rewards_allowance: MiningRewardsAllowanceConfig {
1014+
rewards_allowance_dhx_current: 5_000_000_000_000_000_000_000u128,
1015+
rewards_allowance_dhx_for_date: Default::default(),
1016+
},
10081017
// pallet_membership_Instance1
10091018
technical_membership: TechnicalMembershipConfig {
10101019
members: vec![root_key.clone()],
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[package]
2+
name = "mining-rewards-allowance"
3+
version = "3.0.6"
4+
authors = ["Luke Schoen"]
5+
edition = "2018"
6+
7+
[package.metadata.docs.rs]
8+
targets = ['x86_64-unknown-linux-gnu']
9+
10+
[features]
11+
default = ['std']
12+
std = [
13+
'chrono/std',
14+
'log/std',
15+
'serde/std',
16+
'codec/std',
17+
'frame-support/std',
18+
'frame-system/std',
19+
'pallet-balances/std',
20+
'pallet-timestamp/std',
21+
# 'pallet-transaction-payment/std',
22+
'sp-core/std',
23+
'sp-io/std',
24+
'sp-runtime/std',
25+
'sp-std/std',
26+
]
27+
28+
[dependencies]
29+
chrono = { version = '0.4.19', default_features = false }
30+
log = { version = '0.4.14', default-features = false }
31+
serde = { version = '1.0.126', features = ['derive'] }
32+
codec = { version = '2.2.0', package = 'parity-scale-codec', default-features = false, features = ['derive', 'max-encoded-len'] }
33+
frame-support = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
34+
frame-system = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
35+
pallet-balances = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
36+
pallet-timestamp = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default_features = false }
37+
# pallet-transaction-payment = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
38+
sp-core = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
39+
sp-io = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
40+
sp-runtime = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
41+
sp-std = { git = 'https://github.com/paritytech/substrate', rev = '852bab073407b65b5e3e461baaa0541c4e0bc3d6', default-features = false }
42+
43+
[dev-dependencies]
44+

0 commit comments

Comments
 (0)