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("g1qn3jwvdpva622j3fyudqy65zstnqx2wnqhrs3s"),
17 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpndqtjh5dcsnd0gcez3frs3w6rsttmlekj4cyywegyh0n8uprwvj5n8688",
18 VotingPower: 1,
19 },
20 // core-val-2
21 {
22 Address: std.Address("g1gtu9czw9qavrtdnf936usvwjwyjz0x0jk243au"),
23 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zq4y0ppxhxazdwxhnsxxzdmh9rxht888n4fl0mskwcpq7y2404dm2h0lamk",
24 VotingPower: 1,
25 },
26 // core-val-3
27 {
28 Address: std.Address("g19emxxnzzfa0pkffvthrss5drgccjnwj8mdme4f"),
29 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zq288fe7pd2yy3h2h8qjh0elu3pxuamf3wpa9qt9s6jja0r3k64ue4mh636",
30 VotingPower: 1,
31 },
32 // core-val-4
33 {
34 Address: std.Address("g1hyxtsgjr5zt06jcx4z0xenn3u442ad2xgzu7lp"),
35 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpy4mst534500z7k6xk5u7c9ex8zs44rjjhmxaxtw9zzjv82qkfhkhx2rfs",
36 VotingPower: 1,
37 },
38 // core-val-5
39 {
40 Address: std.Address("g1l072ma0vfhx7s4vpevfvuxd6wzkv5ztt7gh99w"),
41 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqtvz3g6nvu3d6wdz97w7jdw2sjc65us5u8gj8pm4mhasw7zxakjhjn9qkm",
42 VotingPower: 1,
43 },
44 // core-val-6
45 {
46 Address: std.Address("g1uwqd3284kuzm56auwyc9d87jf3953tp9pnt506"),
47 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zp8xm09ura7mwyntee78cl64hgzq0x75f05tv7fkxpqvc797j37hsr3vgjg",
48 VotingPower: 1,
49 },
50 // berty-val-1
51 {
52 Address: std.Address("g1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl"),
53 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zq2gncppkfzmx7s22mn60mf0uxzzpl23yx97hwmwm8yc6lupepqqnlexfch",
54 VotingPower: 1,
55 },
56 // onbloc-val-1
57 {
58 Address: std.Address("g1arkzjfrte9l97v9q2qye07v0lw07039gaa3hfy"),
59 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpkvdy7n9744qay76fzekpu9l6g3mp4hzhqjmp6k2as72ghlzc546ju3a09",
60 VotingPower: 1,
61 },
62 // onbloc-val-2
63 {
64 Address: std.Address("g1x0m33nyne064xdx7tvlfcjwd4xkajjar6h523z"),
65 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zp6s70v4wurhg699w6f9emkwxdlm2eyf2uv64annj47npq85tjeucedmky9",
66 VotingPower: 1,
67 },
68 // devx-val-1
69 {
70 Address: std.Address("g1mxguhd5zacar64txhfm0v7hhtph5wur5hx86vs"),
71 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqz6fwulsygvu9xypka3zqxhkxllm467e3adphmj6y44vn3yy8qq34vxnse",
72 VotingPower: 1,
73 },
74 // devx-val-2
75 {
76 Address: std.Address("g1t9ctfa468hn6czff8kazw08crazehcxaqa2uaa"),
77 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpsq650w975vqsf6ajj5x4wdzfnrh64kmw7sljqz7wts6k0p6l36d0huls3",
78 VotingPower: 1,
79 },
80 // devx-val-3
81 {
82 Address: std.Address("g1sll4rtvrepdyzcvg5ml0kjtl7fnwgcsxgg9s5q"),
83 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zplr4zg2smgha4n9huwcywm6pnkuny2x2j44kk4srxcf0rrmpql3035k8s2",
84 VotingPower: 1,
85 },
86 // devx-val-4
87 {
88 Address: std.Address("g1aa5pp94eaextkump38766hpdra74xtfh805msv"),
89 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqe85el3ardhel5vruywsdjw0vj2zjyhqhsyhcnuh0dy8xhuj8mxjg5h7uw",
90 VotingPower: 1,
91 },
92 // tori-val-1
93 {
94 Address: std.Address("g1r2lwzu0y0na4686a0lz4f2zqxlffqkfm7lqqqp"),
95 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zq2quztlp2pffjsun3jeqyesru8rx9yc6tfj9na3hnw9qgn4zlrpul5mhd0",
96 VotingPower: 1,
97 },
98 // aib-val-1
99 {
100 Address: std.Address("g1ecdu2gwz9d46srrhpu7k60pnrquvle5z2a5nn0"),
101 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqnrer4hlsq7q22egx9ur357hg8ftsntyh4z2g7x69u2s4ay25vdw4tredd",
102 VotingPower: 1,
103 },
104 // aib-val-2
105 {
106 Address: std.Address("g169wsuqlrscnvxtsu6wrc0zuwn39tmctw7q9f0q"),
107 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpv6k4a2r6x6gt7eqp70l5vxluk9zkdmlqvkxztnc8zp2llq73e6ukxvsf6",
108 VotingPower: 1,
109 },
110 // aib-val-3
111 {
112 Address: std.Address("g1hfwh3ufph3zczs5wu4qvpgtv79fzh30rgzdux8"),
113 PubKey: "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqxx3qdzl9f6lee42vhtka5luujhxg22tesyww52af68f75zzp0snyhl8mw",
114 VotingPower: 1,
115 },
116 }
117
118 // The default valset protocol is PoA
119 vp = poa.NewPoA(poa.WithInitialSet(set))
120
121 // No changes to apply initially
122 changes = avl.NewTree()
123}
init.gno
4.26 Kb ยท 123 lines