Skip to content

Commit c0f4b04

Browse files
author
cj-ateam
committed
Add Rizon(titan-1)
1 parent a473a44 commit c0f4b04

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Cosmos-IE
2-
![CreatePlan](https://img.shields.io/badge/release-v3.0.7-red)
2+
![CreatePlan](https://img.shields.io/badge/release-v3.0.8-red)
33
![CreatePlan](https://img.shields.io/badge/go-1.15%2B-blue)
44
![CreatePlan](https://img.shields.io/badge/license-Apache--2.0-green)
55
Integrated Exporter for CosmosSDK
@@ -8,7 +8,7 @@ Integrated Exporter for CosmosSDK
88
This Prometheus exporter is for monitoring information which is not provided from Tendermint’s basic Prometheus exporter(localhost:26660)
99

1010
## List of supported chains
11-
Cosmos(cosmoshub-4), IRISnet(irishub-1), BandProtocol-testnet(band-laozi-testnet1), Terra(bombay), Starname(iov-mainnet-ibc), Certik(shentu-2)
11+
Cosmos(cosmoshub-4), IRISnet(irishub-1), BandProtocol-testnet(band-laozi-testnet1), Terra(bombay), Starname(iov-mainnet-ibc), Certik(shentu-2), Rizon(titan-1)
1212

1313
## Install
1414
```bash
@@ -19,7 +19,7 @@ cd $HOME/Cosmos-IE
1919
go build
2020

2121
./Cosmos-IE version
22-
## Cosmos-IE v3.0.7
22+
## Cosmos-IE v3.0.8
2323
```
2424

2525
## Service(ex: cosmos)

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
var (
25-
version string = "v3.0.7"
25+
version string = "v3.0.8"
2626

2727
// versionCmd represents the version command
2828
versionCmd = &cobra.Command{

exporter/run.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ func setConfig(chain string) {
9191
config.SetBech32PrefixForValidator(common.Bech32PrefixValAddr, common.Bech32PrefixValPub)
9292
config.SetBech32PrefixForConsensusNode(common.Bech32PrefixConsAddr, common.Bech32PrefixConsPub)
9393
config.Seal()
94+
case "rizon":
95+
Bech32MainPrefix := "rizon"
96+
PrefixValidator := "val"
97+
PrefixConsensus := "cons"
98+
PrefixPublic := "pub"
99+
PrefixOperator := "oper"
100+
Bech32PrefixAccAddr := Bech32MainPrefix
101+
Bech32PrefixAccPub := Bech32MainPrefix + PrefixPublic
102+
Bech32PrefixValAddr := Bech32MainPrefix + PrefixValidator + PrefixOperator
103+
Bech32PrefixValPub := Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic
104+
Bech32PrefixConsAddr := Bech32MainPrefix + PrefixValidator + PrefixConsensus
105+
Bech32PrefixConsPub := Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic
106+
config := sdk.GetConfig()
107+
config.SetBech32PrefixForAccount(Bech32PrefixAccAddr, Bech32PrefixAccPub)
108+
config.SetBech32PrefixForValidator(Bech32PrefixValAddr, Bech32PrefixValPub)
109+
config.SetBech32PrefixForConsensusNode(Bech32PrefixConsAddr, Bech32PrefixConsPub)
110+
config.Seal()
94111
}
95112

96113
config.Seal()

exporter/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ func getDenomList(chain string) []string {
137137
dList = []string{"uiov"}
138138
case "certik":
139139
dList = []string{"uctk"}
140+
case "rizon":
141+
dList = []string{"uatolo"}
140142
}
141143

142144
return dList

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
)
2121

2222
var (
23-
// chainList = []string{"cosmos", "terra", "iris", "kava", "iov", "emoney", "band", "certik"}
23+
// chainList = []string{"cosmos", "terra", "iris", "kava", "iov", "emoney", "band", "certik", "rizon"}
2424
// Chains with stargate upgrade applied
25-
chainList = []string{"cosmos", "iris", "band", "terra", "starname", "certik", "terra"}
25+
chainList = []string{"cosmos", "iris", "band", "terra", "starname", "certik", "terra", "rizon"}
2626
)
2727

2828
func main() {

0 commit comments

Comments
 (0)