1package validators
2
3import (
4 "std"
5
6 "gno.land/p/demo/avl"
7 "gno.land/p/nt/poa"
8 "gno.land/p/sys/validators"
9)
10
11func init() {
12 // Prepare the initial validator set
13 set := []validators.Validator{
14 // core-val-1
15 {
16 Address: std.Address("g19v2h4pn6lrf8pwvhn8h0anek0cpt2tmhye4vkv"),
17 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqm6x7rlcrp96dz60tn4ws5a6mt34aptmj4qrzxv59fcnlrrd59q52vvvrj",
18 VotingPower: 1,
19 },
20 // core-val-2
21 {
22 Address: std.Address("g13us7swtc9hq550y9v4z6vcarak9vf8nqdvcqj4"),
23 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zp6z4cv32j5sjte5keucvfj6f44m9ctmaj4seqgg4vmekd4jdpzd6hzf0n7",
24 VotingPower: 1,
25 },
26 // core-val-3
27 {
28 Address: std.Address("g1ectm6algkfw3qnjmjvx7hacmh358t36ggj5lqv"),
29 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpq4pfx2yfnaqy4pf6xwz2mjx8fvw8d3rmfxxdega46g0z3ak2t47wj27kf",
30 VotingPower: 1,
31 },
32 // core-val-4
33 {
34 Address: std.Address("g1tcxls3ylnrwrq95j33xpyuct4l370ra7jca4kj"),
35 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zp8lg7lfxj2lp68txvkh2mrpjkmgatpcgpsmlw53vssx9m2zgtfmnz5teuj",
36 VotingPower: 1,
37 },
38 // devx-val-1
39 {
40 Address: std.Address("g1mxguhd5zacar64txhfm0v7hhtph5wur5hx86vs"),
41 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqz6fwulsygvu9xypka3zqxhkxllm467e3adphmj6y44vn3yy8qq34vxnse",
42 VotingPower: 1,
43 },
44 // devx-val-2
45 {
46 Address: std.Address("g1t9ctfa468hn6czff8kazw08crazehcxaqa2uaa"),
47 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpsq650w975vqsf6ajj5x4wdzfnrh64kmw7sljqz7wts6k0p6l36d0huls3",
48 VotingPower: 1,
49 },
50 // onbloc-val-1
51 {
52 Address: std.Address("g1gav33elude7prcdctpjekze7ft9l8qdjxqaj6d"),
53 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zp7pjfz35u8pm3jld0rsyw4ctphzql7n9jr59vrylq5l4f8qh35nw3pagcx",
54 VotingPower: 1,
55 },
56 }
57
58 // The default valset protocol is PoA
59 vp = poa.NewPoA(poa.WithInitialSet(set))
60
61 // No changes to apply initially
62 changes = avl.NewTree()
63}
init.gno
1.95 Kb ยท 63 lines