From 420541ca3e7f6c0cdeda1b88609c06e5ee27f78f Mon Sep 17 00:00:00 2001 From: stackman27 Date: Fri, 9 Feb 2024 20:05:25 -0800 Subject: [PATCH] update --- common/config/chaintype.go | 5 +++-- .../evm/config/toml/defaults/Mantle_Sepolia.toml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 core/chains/evm/config/toml/defaults/Mantle_Sepolia.toml diff --git a/common/config/chaintype.go b/common/config/chaintype.go index 9ef4864b86e..95b475a94bd 100644 --- a/common/config/chaintype.go +++ b/common/config/chaintype.go @@ -19,16 +19,17 @@ const ( ChainKroma ChainType = "kroma" ChainZkSync ChainType = "zksync" ChainScroll ChainType = "scroll" + ChainMantle ChainType = "mantle" ) var ErrInvalidChainType = fmt.Errorf("must be one of %s or omitted", strings.Join([]string{ string(ChainArbitrum), string(ChainMetis), string(ChainXDai), string(ChainOptimismBedrock), string(ChainCelo), - string(ChainKroma), string(ChainWeMix), string(ChainZkSync), string(ChainScroll)}, ", ")) + string(ChainKroma), string(ChainWeMix), string(ChainZkSync), string(ChainScroll), string(ChainMantle)}, ", ")) // IsValid returns true if the ChainType value is known or empty. func (c ChainType) IsValid() bool { switch c { - case "", ChainArbitrum, ChainMetis, ChainOptimismBedrock, ChainXDai, ChainCelo, ChainKroma, ChainWeMix, ChainZkSync, ChainScroll: + case "", ChainArbitrum, ChainMetis, ChainOptimismBedrock, ChainXDai, ChainCelo, ChainKroma, ChainWeMix, ChainZkSync, ChainScroll, ChainMantle: return true } return false diff --git a/core/chains/evm/config/toml/defaults/Mantle_Sepolia.toml b/core/chains/evm/config/toml/defaults/Mantle_Sepolia.toml new file mode 100644 index 00000000000..404c862a115 --- /dev/null +++ b/core/chains/evm/config/toml/defaults/Mantle_Sepolia.toml @@ -0,0 +1,15 @@ +ChainID = '5003' +FinalityDepth = 200 +LogPollInterval = '2s' +NoNewHeadsThreshold = '0' +MinIncomingConfirmations = 1 + +[HeadTracker] +HistoryDepth = 300 + +[GasEstimator] +Mode = 'L2Suggested' +PriceMin = '0.05 gwei' +PriceMax = '200 gwei' +BumpThreshold = 0 +LimitDefault = 6000000 \ No newline at end of file