Skip to content

Commit

Permalink
start core params refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 13, 2023
1 parent a886fd0 commit 5816d99
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
38 changes: 35 additions & 3 deletions common/default_chains_mainnet.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !PRIVNET && !TESTNET && !MOCK_MAINNET
// +build !PRIVNET,!TESTNET,!MOCK_MAINNET

package common

func EthChain() Chain {
Expand All @@ -24,6 +21,27 @@ func ZetaChain() Chain {
}
}

func ZetaTestnetChain() Chain {
return Chain{
ChainName: ChainName_zeta_testnet,
ChainId: 7001,
}
}

func ZetaMocknetChain() Chain {
return Chain{
ChainName: ChainName_zeta_mainnet,
ChainId: 70000,
}
}

func ZetaPrivnetChain() Chain {
return Chain{
ChainName: ChainName_zeta_mainnet,
ChainId: 101,
}
}

func BtcMainnetChain() Chain {
return Chain{
ChainName: ChainName_btc_mainnet,
Expand All @@ -46,6 +64,20 @@ func PolygonChain() Chain {
}
}

func BtcRegtestChain() Chain {
return Chain{
ChainName: ChainName_btc_regtest,
ChainId: 18444,
}
}

func GoerliChain() Chain {
return Chain{
ChainName: ChainName_goerli_localnet,
ChainId: 1337,
}
}

func DefaultChainsList() []*Chain {
chains := []Chain{
BtcMainnetChain(),
Expand Down
3 changes: 0 additions & 3 deletions x/observer/types/core_params_mainnet.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !PRIVNET && !TESTNET && !MOCK_MAINNET
// +build !PRIVNET,!TESTNET,!MOCK_MAINNET

package types

import (
Expand Down
3 changes: 2 additions & 1 deletion x/observer/types/core_params_privnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func GetCoreParams() CoreParamsList {
OutTxTicker: 2,
OutboundTxScheduleInterval: 2,
OutboundTxScheduleLookahead: 5,
}},
},
},
}
chainList := common.ExternalChainList()
requiredParams := len(chainList)
Expand Down

0 comments on commit 5816d99

Please sign in to comment.