-
Notifications
You must be signed in to change notification settings - Fork 118
/
genesis.go
89 lines (84 loc) · 2.17 KB
/
genesis.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package types
import (
"encoding/json"
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
)
func UnmarshalGenesis(marshaler codec.JSONCodec, state json.RawMessage) GenesisState {
var genesisState GenesisState
if state != nil {
err := marshaler.UnmarshalJSON(state, &genesisState)
if err != nil {
panic(fmt.Sprintf("Failed to get genesis state from app state: %s", err.Error()))
}
}
return genesisState
}
func ProdAdminAccounts() []*AdminAccount {
return []*AdminAccount{
{
AdminType: AdminType_ADMIN,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_PMTPREWARDS,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_CLPDEX,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_TOKENREGISTRY,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_ETHBRIDGE,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_TOKENREGISTRY,
AdminAddress: "sif1npzemsc4s5gxpv2qt3na97tna03cj2h5xxe3cw",
},
{
AdminType: AdminType_ETHBRIDGE,
AdminAddress: "sif10wgwh7g3jktemd4d8jnswnf0zyk3hsq3uk3tff",
},
}
}
func InitialAdminAccounts() []*AdminAccount {
return []*AdminAccount{
{
AdminType: AdminType_ADMIN,
AdminAddress: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
},
{
AdminType: AdminType_CLPDEX,
AdminAddress: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
},
{
AdminType: AdminType_CLPDEX,
AdminAddress: "sif1l7hypmqk2yc334vc6vmdwzp5sdefygj2ad93p5",
},
{
AdminType: AdminType_PMTPREWARDS,
AdminAddress: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
},
{
AdminType: AdminType_PMTPREWARDS,
AdminAddress: "sif144w8cpva2xkly74xrms8djg69y3mljzplx3fjt",
},
{
AdminType: AdminType_PMTPREWARDS,
AdminAddress: "sif1l7hypmqk2yc334vc6vmdwzp5sdefygj2ad93p5",
},
{
AdminType: AdminType_ETHBRIDGE,
AdminAddress: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
},
{
AdminType: AdminType_TOKENREGISTRY,
AdminAddress: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
},
}
}