@@ -20,6 +20,10 @@ const ACCOUNT_2_BONDED_AMOUNT: u64 = 2_000_000;
2020const ACCOUNT_1_BALANCE : u64 = 1_000_000_000 ;
2121const ACCOUNT_2_BALANCE : u64 = 2_000_000_000 ;
2222
23+ const ACCOUNT_3_BONDED_AMOUNT : u64 = 3_000_000 ;
24+
25+ const ACCOUNT_3_BALANCE : u64 = 3_000_000_000 ;
26+
2327static ACCOUNT_1_PUBLIC_KEY : Lazy < PublicKey > = Lazy :: new ( || {
2428 let secret_key = SecretKey :: ed25519_from_bytes ( [ 42 ; SecretKey :: ED25519_LENGTH ] ) . unwrap ( ) ;
2529 PublicKey :: from ( & secret_key)
@@ -31,6 +35,12 @@ static ACCOUNT_2_PUBLIC_KEY: Lazy<PublicKey> = Lazy::new(|| {
3135} ) ;
3236static ACCOUNT_2_ADDR : Lazy < AccountHash > = Lazy :: new ( || AccountHash :: from ( & * ACCOUNT_2_PUBLIC_KEY ) ) ;
3337
38+ static ACCOUNT_3_PUBLIC_KEY : Lazy < PublicKey > = Lazy :: new ( || {
39+ let secret_key = SecretKey :: ed25519_from_bytes ( [ 45 ; SecretKey :: ED25519_LENGTH ] ) . unwrap ( ) ;
40+ PublicKey :: from ( & secret_key)
41+ } ) ;
42+ static ACCOUNT_3_ADDR : Lazy < AccountHash > = Lazy :: new ( || AccountHash :: from ( & * ACCOUNT_3_PUBLIC_KEY ) ) ;
43+
3444static GENESIS_CUSTOM_ACCOUNTS : Lazy < Vec < GenesisAccount > > = Lazy :: new ( || {
3545 let account_1 = {
3646 let account_1_balance = Motes :: new ( ACCOUNT_1_BALANCE ) ;
@@ -56,7 +66,18 @@ static GENESIS_CUSTOM_ACCOUNTS: Lazy<Vec<GenesisAccount>> = Lazy::new(|| {
5666 ) ) ,
5767 )
5868 } ;
59- vec ! [ account_1, account_2]
69+ let account_3 = {
70+ let account_3_balance = Motes :: new ( ACCOUNT_3_BALANCE ) ;
71+ let account_3_bonded_amount = Motes :: new ( ACCOUNT_3_BONDED_AMOUNT ) ;
72+ GenesisAccount :: Delegator {
73+ validator_public_key : ACCOUNT_1_PUBLIC_KEY . clone ( ) ,
74+ delegator_public_key : ACCOUNT_3_PUBLIC_KEY . clone ( ) ,
75+ balance : account_3_balance,
76+ delegated_amount : account_3_bonded_amount,
77+ }
78+ } ;
79+
80+ vec ! [ account_1, account_2, account_3]
6081} ) ;
6182
6283#[ ignore]
0 commit comments