Search Apps Documentation Source Content File Folder Download Copy Actions Download

init.gno

1.72 Kb ยท 55 lines
 1package validators
 2
 3import (
 4	"gno.land/p/nt/avl"
 5	"gno.land/p/nt/poa"
 6	"gno.land/p/sys/validators"
 7)
 8
 9func init() {
10	// Prepare the initial validator set
11	set := []validators.Validator{
12		// gnocore-val-01
13		{
14			Address:     address("g1ek7ftha29qv4ahtv7jzpc0d57lqy7ynzklht7t"),
15			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zq7kdacwkqquf7j9ywd6c3yaj4vsytkan526knd7nt2z5v4q2mgc6hfkfyu",
16			VotingPower: 1,
17		},
18		// gnocore-val-02
19		{
20			Address:     address("g1xwlzxpuh4v3l9fjrl4cq2ylzpk7mhj0598xdy7"),
21			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpnxghmy95x979vyw43073prpzqah9k9sez2mxsfkyfxge02hqczhqy4r4j",
22			VotingPower: 1,
23		},
24		// gnodevx-val-01
25		{
26			Address:     address("g1zeawgdp4nh6j6phmnsjmssqrz4ukruh43anckl"),
27			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqwhdpj834lxwenxja6tanrz2rn3a4rpcxxqxhh23f77dsftyhqrgxpghjwm",
28			VotingPower: 1,
29		},
30		// gnodevx-val-02
31		{
32			Address:     address("g1uajmkwz6w7juqxhu64qecfm6kr4r8us70culre"),
33			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfc9agrkxsm7d4ry6zz823f7ulkkc3u3nqv6avz99tm45nmfj4ug54c38c0",
34			VotingPower: 1,
35		},
36		// onbloc-val-01
37		{
38			Address:     address("g1kntcjkfplj0z44phajajwqkx5q4ry5yaft5q2h"),
39			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqxkeawgn93f8jm7wumknjwysg5mm3shyeyh8fky6pwytpcf5uyqk4vwshh",
40			VotingPower: 1,
41		},
42		// onbloc-val-02
43		{
44			Address:     address("g1j306jcl4qyhgjw78shl3ajp88vmvdcf7m7ntm2"),
45			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqvpv84g5n8zz7k2m2yenuv73e9r77zxzxzrucj064gzykj2puyvszw8kxc",
46			VotingPower: 1,
47		},
48	}
49
50	// The default valset protocol is PoA
51	vp = poa.NewPoA(poa.WithInitialSet(set))
52
53	// No changes to apply initially
54	changes = avl.NewTree()
55}