feat: arbitrum sepolia
This commit is contained in:
parent
036173cfed
commit
21ddaa4b9f
|
@ -111,7 +111,7 @@ const (
|
|||
|
||||
ProdPreferredChainIDsDefault = "1:10:42161"
|
||||
TestPreferredChainIDsDefault = "5:420:421613"
|
||||
TestSepoliaPreferredChainIDsDefault = "11155111:420:421613"
|
||||
TestSepoliaPreferredChainIDsDefault = "11155111:420:421614"
|
||||
)
|
||||
|
||||
// IsOwnAccount returns true if this is an account we have the private key for
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
"github.com/status-im/status-go/params"
|
||||
)
|
||||
|
||||
const SepoliaChainID = 11155111
|
||||
var SepoliaChainIDs = []uint64{11155111, 421614}
|
||||
|
||||
// GoerliChainIDs Uncomment next chain when we move more chain to sepolia
|
||||
var GoerliChainIDs = []uint64{5} //, 420, 421613}
|
||||
var GoerliChainIDs = []uint64{5, 421613} //, 420, }
|
||||
|
||||
type CombinedNetwork struct {
|
||||
Prod *params.Network
|
||||
|
@ -226,8 +226,17 @@ func (nm *Manager) Get(onlyEnabled bool) ([]*params.Network, error) {
|
|||
|
||||
var results []*params.Network
|
||||
for _, network := range networks {
|
||||
if !isSepoliaEnabled && network.ChainID == SepoliaChainID {
|
||||
continue
|
||||
if !isSepoliaEnabled {
|
||||
found := false
|
||||
for _, chainID := range SepoliaChainIDs {
|
||||
if network.ChainID == chainID {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if found {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
if isSepoliaEnabled {
|
||||
|
|
|
@ -16,6 +16,7 @@ const (
|
|||
OptimismGoerli uint64 = 420
|
||||
ArbitrumMainnet uint64 = 42161
|
||||
ArbitrumGoerli uint64 = 421613
|
||||
ArbitrumSepolia uint64 = 421614
|
||||
)
|
||||
|
||||
func (c ChainID) String() string {
|
||||
|
@ -31,6 +32,7 @@ func AllChainIDs() []ChainID {
|
|||
ChainID(OptimismGoerli),
|
||||
ChainID(ArbitrumMainnet),
|
||||
ChainID(ArbitrumGoerli),
|
||||
ChainID(ArbitrumSepolia),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1679,6 +1679,14 @@ func newDefaultStore() *DefaultStore {
|
|||
Decimals: 18,
|
||||
ChainID: 11155111,
|
||||
},
|
||||
&Token{
|
||||
Address: common.HexToAddress("0x44a739916D41eC0226d98F83BE5364B69078DA41"),
|
||||
Name: "USD Coin",
|
||||
Symbol: "USDC",
|
||||
Color: "#f8f8f8",
|
||||
Decimals: 6,
|
||||
ChainID: 421614,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue