Claim yer sale DOTs (#97)

* Add claims.

* Failing build

* Updatee to latest substrate, fix tests

* Remove unneeded

* Introduce tests with real work sig

* Use right 64 bytes of pubkey to get eth addr

* Fix for eth sig

* Fix build

* Fix wasm
This commit is contained in:
Gav Wood
2019-01-25 08:43:05 +00:00
committed by GitHub
parent a05d422a55
commit c5bb21ab3c
13 changed files with 793 additions and 230 deletions
+7 -1
View File
@@ -21,7 +21,7 @@ use polkadot_runtime::{
GenesisConfig, ConsensusConfig, CouncilSeatsConfig, DemocracyConfig, TreasuryConfig,
SessionConfig, StakingConfig, TimestampConfig, BalancesConfig, Perbill,
CouncilVotingConfig, GrandpaConfig, UpgradeKeyConfig, SudoConfig, IndicesConfig,
Permill
ClaimsConfig, Permill
};
const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
@@ -130,6 +130,9 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
grandpa: Some(GrandpaConfig {
authorities: initial_authorities.clone().into_iter().map(|k| (k, 1)).collect(),
}),
claims: Some(ClaimsConfig {
claims: vec![],
}),
}
}
@@ -230,6 +233,9 @@ fn testnet_genesis(initial_authorities: Vec<AuthorityId>, upgrade_key: H256) ->
sudo: Some(SudoConfig {
key: upgrade_key,
}),
claims: Some(ClaimsConfig {
claims: vec![],
}),
}
}