From a060dee9c5dcbf0dd7244a80e7075140bdcd9b0a Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Fri, 3 Jul 2020 14:10:20 +0800 Subject: [PATCH] add Ganges network option --- client/rpc/dex_client.go | 4 +++- common/types/address.go | 3 +++ types/config.go | 11 +++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/client/rpc/dex_client.go b/client/rpc/dex_client.go index 4d624919..f2947228 100644 --- a/client/rpc/dex_client.go +++ b/client/rpc/dex_client.go @@ -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, diff --git a/common/types/address.go b/common/types/address.go index f93b6f64..b595402c 100644 --- a/common/types/address.go +++ b/common/types/address.go @@ -21,6 +21,7 @@ const ( TestNetwork ChainNetwork = iota ProdNetwork TmpTestNetwork + GangesNetwork ) const ( @@ -38,6 +39,8 @@ func (this ChainNetwork) Bech32Prefixes() string { return "tbnb" case TmpTestNetwork: return "tbnb" + case GangesNetwork: + return "tbnb" case ProdNetwork: return "bnb" default: diff --git a/types/config.go b/types/config.go index b8ae1d07..747acb30 100644 --- a/types/config.go +++ b/types/config.go @@ -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" )