Skip to content

Commit

Permalink
add Ganges network option
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Jul 3, 2020
1 parent 2d0d5ed commit a060dee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion client/rpc/dex_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,9 @@ func (c *HTTP) sign(m msg.Msg, options ...tx.Option) ([]byte, error) {
if types.Network == types.TestNetwork {
chainID = gtypes.TestnetChainID
} else if types.Network == types.TmpTestNetwork {
chainID = gtypes.TmpTestnetChainId
chainID = gtypes.KongoChainId
} else if types.Network == types.GangesNetwork {
chainID = gtypes.GangesChainId
}
signMsg := &tx.StdSignMsg{
ChainID: chainID,
Expand Down
3 changes: 3 additions & 0 deletions common/types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
TestNetwork ChainNetwork = iota
ProdNetwork
TmpTestNetwork
GangesNetwork
)

const (
Expand All @@ -38,6 +39,8 @@ func (this ChainNetwork) Bech32Prefixes() string {
return "tbnb"
case TmpTestNetwork:
return "tbnb"
case GangesNetwork:
return "tbnb"
case ProdNetwork:
return "bnb"
default:
Expand Down
11 changes: 7 additions & 4 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ const (
DefaultWSPrefix = "/api/ws"
NativeSymbol = "BNB"

ProdChainID = "Binance-Chain-Tigris"
TestnetChainID = "Binance-Chain-Nile"
TmpTestnetChainId = "Binance-Chain-Kongo"
RialtoNet = "rialto"
ProdChainID = "Binance-Chain-Tigris"
TestnetChainID = "Binance-Chain-Nile"
KongoChainId = "Binance-Chain-Kongo"
GangesChainId = "Binance-Chain-Ganges"

RialtoNet = "rialto"
ChapelNet = "chapel"
)

0 comments on commit a060dee

Please sign in to comment.