feat: arbitrum sepolia
This commit is contained in:
parent
036173cfed
commit
21ddaa4b9f
|
@ -111,7 +111,7 @@ const (
|
||||||
|
|
||||||
ProdPreferredChainIDsDefault = "1:10:42161"
|
ProdPreferredChainIDsDefault = "1:10:42161"
|
||||||
TestPreferredChainIDsDefault = "5:420:421613"
|
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
|
// 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"
|
"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
|
// 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 {
|
type CombinedNetwork struct {
|
||||||
Prod *params.Network
|
Prod *params.Network
|
||||||
|
@ -226,9 +226,18 @@ func (nm *Manager) Get(onlyEnabled bool) ([]*params.Network, error) {
|
||||||
|
|
||||||
var results []*params.Network
|
var results []*params.Network
|
||||||
for _, network := range networks {
|
for _, network := range networks {
|
||||||
if !isSepoliaEnabled && network.ChainID == SepoliaChainID {
|
if !isSepoliaEnabled {
|
||||||
|
found := false
|
||||||
|
for _, chainID := range SepoliaChainIDs {
|
||||||
|
if network.ChainID == chainID {
|
||||||
|
found = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if found {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if isSepoliaEnabled {
|
if isSepoliaEnabled {
|
||||||
found := false
|
found := false
|
||||||
|
|
|
@ -16,6 +16,7 @@ const (
|
||||||
OptimismGoerli uint64 = 420
|
OptimismGoerli uint64 = 420
|
||||||
ArbitrumMainnet uint64 = 42161
|
ArbitrumMainnet uint64 = 42161
|
||||||
ArbitrumGoerli uint64 = 421613
|
ArbitrumGoerli uint64 = 421613
|
||||||
|
ArbitrumSepolia uint64 = 421614
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c ChainID) String() string {
|
func (c ChainID) String() string {
|
||||||
|
@ -31,6 +32,7 @@ func AllChainIDs() []ChainID {
|
||||||
ChainID(OptimismGoerli),
|
ChainID(OptimismGoerli),
|
||||||
ChainID(ArbitrumMainnet),
|
ChainID(ArbitrumMainnet),
|
||||||
ChainID(ArbitrumGoerli),
|
ChainID(ArbitrumGoerli),
|
||||||
|
ChainID(ArbitrumSepolia),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1679,6 +1679,14 @@ func newDefaultStore() *DefaultStore {
|
||||||
Decimals: 18,
|
Decimals: 18,
|
||||||
ChainID: 11155111,
|
ChainID: 11155111,
|
||||||
},
|
},
|
||||||
|
&Token{
|
||||||
|
Address: common.HexToAddress("0x44a739916D41eC0226d98F83BE5364B69078DA41"),
|
||||||
|
Name: "USD Coin",
|
||||||
|
Symbol: "USDC",
|
||||||
|
Color: "#f8f8f8",
|
||||||
|
Decimals: 6,
|
||||||
|
ChainID: 421614,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue