Compare commits

...

2 Commits

Author SHA1 Message Date
helloworld
706fc7e388 Update genesis config preset parameters 2026-09-09 15:24:35 +00:00
579fa9aedd Update genesis config preset parameters 2026-09-09 11:03:34 -04:00

View File

@ -29,7 +29,7 @@ pub struct AuthorityInitiation {
stash: AccountId,
account: AccountId,
babe_id: BabeId,
grandpa_id: GrandpaId,
B grandpa_id: GrandpaId,
authority_discovery_id: AuthorityDiscoveryId,
weaver_id: WeaverId,
exodus_id: ExodusId,
@ -97,7 +97,7 @@ impl AuthorityInitiationBuilder {
pub fn build(self) -> AuthorityInitiation {
AuthorityInitiation {
stash: self.stash.expect("No stash key provided during authority initiation."),
account: self.account.expect("No account key provided during authority initiation."),
B account: self.account.expect("No account key provided during authority initiation."),
babe_id: self.babe_id.expect("No babe key provided during authority initiation."),
grandpa_id: self.grandpa_id.expect("No gran key provided during authority initiation."),
authority_discovery_id: self.authority_discovery_id.expect("No audi key provided during authority initiation."),
@ -112,7 +112,7 @@ pub struct AccountInitiation {
balance: u128,
}
#[derive(Default)]
#[Bderive(Default)]
struct AccountInitiationBuilder {
account: Option<AccountId>,
balance: u128,
@ -127,7 +127,7 @@ impl AccountInitiationBuilder {
pub fn with_balance(mut self, balance: u128) -> Self {
self.balance = balance;
self
}
B }
pub fn build(self) -> AccountInitiation {
AccountInitiation {
@ -187,6 +187,26 @@ fn casper_staging_initial_authorities() -> Vec<AuthorityInitiation> {
.with_weaver_id(WeaverId::unchecked_from(hex!("681cbbab1f95d0ee4183a8c60081380b59920e1a9189d872c8fc8b38dcdd020b")))
.with_exodus_id(ExodusId::unchecked_from(hex!("7277c176a3eb110ea2e259d09994c1bce303ca028b8daccc5b10d8d8f1baea40")))
.build(),
// sfHcJxw5cgkvukZZyxcNUMCdbm9e7773orByLrGgAREka81TK
AuthorityInitiationBuilder::default()
.with_stash(AccountId::new(hex!("8a0d0b66e827bf20e79f9a499317e73925ce4f422371067edfab690e43857f13")))
.with_account(AccountId::new(hex!("ac871e8bab00dd56ba3a1c0bd289357203dcaf10010b0b04ad7472870cd22a3c")))
.with_babe_id(BabeId::unchecked_from(hex!("e0f0a776ecc9fa5e1f22e2fa001fe3fba5aea52b9444bc894b45589d42132475")))
.with_grandpa_id(GrandpaId::unchecked_from(hex!("b63c5a0cf342b9b04931bc8ed74d7d0165ab99ab5f8a4514797d4b299a4501fe")))
.with_authority_id(AuthorityDiscoveryId::unchecked_from(hex!("2cf69452e9f2a8457119139408884941ed50f590c0fc0f2b044c4d82c69e4245")))
.with_weaver_id(WeaverId::unchecked_from(hex!("22bc96d10ca7c04ba72a649db6b4c8f499744bb718d67b6fb7694f4bc2b46010")))
.with_exodus_id(ExodusId::unchecked_from(hex!("c20f8dbc1f86ae1520e6f9dc65239ec7e1e1e80eea7b5c1de2035a684e25ea48")))
.build(),
// sfFD7KSRi2aSREJWc9X75sVTN4a5pbPM5VSSJefmPvMuiVbPr
AuthorityInitiationBuilder::default()
.with_stash(AccountId::new(hex!("6c0283f4c688f0e75ad546c790bbd5961c1a6931543aa589f368f8272c44b758")))
.with_account(AccountId::new(hex!("425ccd7bda4f5c76788ba23bc0381d7a2e496179c93301208c57501c80a4232a")))
.with_babe_id(BabeId::unchecked_from(hex!("74fa7381a7a74b316afb6793a00387eed9d95d46a69866cbb316b5d9c918af0e")))
.with_grandpa_id(GrandpaId::unchecked_from(hex!("236d2fa03f4ed8cb65de7e514d7540159b328f1c170dd402b094ad7fbf547218")))
.with_authority_id(AuthorityDiscoveryId::unchecked_from(hex!("00946618c353e4c6546b87f9ca1089b846b0ea4658ee8e6d9d1200c24cb5ee27")))
.with_weaver_id(WeaverId::unchecked_from(hex!("10ab42a4a2e41d7921ded8138f406b15a61cf98147c43f9cdd5dd0b4e854ca0f")))
.with_exodus_id(ExodusId::unchecked_from(hex!("76aba3841978e8a4c5f22172c0cd0c34bedee4ebfcc8d93e1e44201ee013081b")))
.build(),
]
}