feat: enable support for Arbitrum Sepolia in Opensea

This commit is contained in:
Dario Gabriel Lipicar 2023-11-21 11:50:49 -03:00 committed by dlipicar
parent 00f412e4ac
commit 03cdb49c4c
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func getV2BaseURL(chainID walletCommon.ChainID) (string, error) {
switch uint64(chainID) {
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet, walletCommon.OptimismMainnet:
return "https://api.opensea.io/v2", nil
case walletCommon.EthereumGoerli, walletCommon.EthereumSepolia, walletCommon.ArbitrumGoerli, walletCommon.OptimismGoerli:
case walletCommon.EthereumGoerli, walletCommon.EthereumSepolia, walletCommon.ArbitrumGoerli, walletCommon.ArbitrumSepolia, walletCommon.OptimismGoerli:
return "https://testnets-api.opensea.io/v2", nil
}

View File

@ -23,6 +23,7 @@ const (
ethereumGoerliString = "goerli"
ethereumSepoliaString = "sepolia"
arbitrumGoerliString = "arbitrum_goerli"
arbitrumSepoliaString = "arbitrum_sepolia"
optimismGoerliString = "optimism_goerli"
)
@ -43,6 +44,8 @@ func chainIDToChainString(chainID walletCommon.ChainID) string {
chainString = ethereumSepoliaString
case walletCommon.ArbitrumGoerli:
chainString = arbitrumGoerliString
case walletCommon.ArbitrumSepolia:
chainString = arbitrumSepoliaString
case walletCommon.OptimismGoerli:
chainString = optimismGoerliString
}