forked from binaryholdings/tenderseed
-
Notifications
You must be signed in to change notification settings - Fork 16
/
types.go
49 lines (47 loc) · 1.66 KB
/
types.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
package main
type Chains struct {
Chains []string `json:"chains"`
}
type Chain struct {
Schema string `json:"$schema,omitempty"`
ChainName string `json:"chain_name,omitempty"`
Status string `json:"status,omitempty"`
NetworkType string `json:"network_type,omitempty"`
PrettyName string `json:"pretty_name,omitempty"`
ChainID string `json:"chain_id,omitempty"`
Bech32Prefix string `json:"bech32_prefix,omitempty"`
DaemonName string `json:"daemon_name,omitempty"`
NodeHome string `json:"node_home,omitempty"`
Genesis struct {
GenesisURL string `json:"genesis_url,omitempty"`
} `json:"genesis,omitempty"`
Slip44 int `json:"slip44,omitempty"`
Codebase struct {
GitRepo string `json:"git_repo,omitempty"`
RecommendedVersion string `json:"recommended_version,omitempty"`
CompatibleVersions []string `json:"compatible_versions,omitempty"`
Binaries struct {
LinuxAmd64 string `json:"linux/amd64,omitempty"`
} `json:"binaries,omitempty"`
} `json:"codebase,omitempty"`
Peers struct {
Seeds []struct {
ID string `json:"id,omitempty"`
Address string `json:"address,omitempty"`
Provider string `json:"provider,omitempty"`
} `json:"seeds,omitempty"`
PersistentPeers []struct {
ID string `json:"id,omitempty"`
Address string `json:"address,omitempty"`
} `json:"persistent_peers,omitempty"`
} `json:"peers,omitempty"`
Apis struct {
RPC []struct {
Address string `json:"address,omitempty"`
Provider string `json:"provider,omitempty"`
} `json:"rpc,omitempty"`
Rest []struct {
Address string `json:"address,omitempty"`
} `json:"rest,omitempty"`
} `json:"apis,omitempty"`
}