chore(wallet) rename pokt urls to grove in config and tests

Change tests to account for new urls

Updates status-desktop #13189
This commit is contained in:
Stefan 2024-01-11 09:48:40 -06:00 committed by Stefan Dunca
parent 3ddec465c5
commit 70b2cab096
4 changed files with 11 additions and 11 deletions

View File

@ -17,7 +17,7 @@ func TestCreateAccountAndLogin(t *testing.T) {
requestJSONTemplateString := ` requestJSONTemplateString := `
{ {
"upstreamConfig":"https://eth-archival.gateway.pokt.network/v1/lb/3ef2018191814b7e1009b8d9", "upstreamConfig":"https://eth-archival.rpc.grove.city/v1/3ef2018191814b7e1009b8d9",
"openseaAPIKey":"", "openseaAPIKey":"",
"wakuV2Nameserver":"1.1.1.1", "wakuV2Nameserver":"1.1.1.1",
"mnemonic":null, "mnemonic":null,
@ -31,9 +31,9 @@ func TestCreateAccountAndLogin(t *testing.T) {
"customizationColor":"blue", "customizationColor":"blue",
"emoji": "some", "emoji": "some",
"previewPrivacy":true, "previewPrivacy":true,
"verifyTransactionURL":"https://eth-archival.gateway.pokt.network/v1/lb/3ef2018191814b7e1009b8d9", "verifyTransactionURL":"https://eth-archival.rpc.grove.city/v1/3ef2018191814b7e1009b8d9",
"imagePath":null, "imagePath":null,
"verifyENSURL":"https://eth-archival.gateway.pokt.network/v1/lb/3ef2018191814b7e1009b8d9", "verifyENSURL":"https://eth-archival.rpc.grove.city/v1/3ef2018191814b7e1009b8d9",
"logLevel":"INFO", "logLevel":"INFO",
"logFilePath":"%s", "logFilePath":"%s",
"networkId":1 "networkId":1

View File

@ -27,7 +27,7 @@ var ganacheTokenAddress = common.HexToAddress("0x8571Ddc46b10d31EF963aF49b6C7799
var mainnet = params.Network{ var mainnet = params.Network{
ChainID: mainnetChainID, ChainID: mainnetChainID,
ChainName: "Ethereum Mainnet", ChainName: "Ethereum Mainnet",
RPCURL: "https://eth-archival.gateway.pokt.network/v1/lb/", RPCURL: "https://eth-archival.rpc.grove.city/v1/",
FallbackURL: "https://mainnet.infura.io/v3/", FallbackURL: "https://mainnet.infura.io/v3/",
BlockExplorerURL: "https://etherscan.io/", BlockExplorerURL: "https://etherscan.io/",
IconURL: "network/Network=Ethereum", IconURL: "network/Network=Ethereum",
@ -45,7 +45,7 @@ var mainnet = params.Network{
var goerli = params.Network{ var goerli = params.Network{
ChainID: goerliChainID, ChainID: goerliChainID,
ChainName: "Ethereum Mainnet", ChainName: "Ethereum Mainnet",
RPCURL: "https://goerli-archival.gateway.pokt.network/v1/lb/", RPCURL: "https://goerli-archival.rpc.grove.city/v1/",
FallbackURL: "https://goerli.infura.io/v3/", FallbackURL: "https://goerli.infura.io/v3/",
BlockExplorerURL: "https://goerli.etherscan.io/", BlockExplorerURL: "https://goerli.etherscan.io/",
IconURL: "network/Network=Testnet", IconURL: "network/Network=Testnet",
@ -63,7 +63,7 @@ var goerli = params.Network{
var optimism = params.Network{ var optimism = params.Network{
ChainID: optimismChainID, ChainID: optimismChainID,
ChainName: "Optimism", ChainName: "Optimism",
RPCURL: "https://optimism-mainnet.gateway.pokt.network/v1/lb/", RPCURL: "https://optimism-mainnet.rpc.grove.city/v1/",
FallbackURL: "https://optimism-mainnet.infura.io/v3/", FallbackURL: "https://optimism-mainnet.infura.io/v3/",
BlockExplorerURL: "https://optimistic.etherscan.io", BlockExplorerURL: "https://optimistic.etherscan.io",
IconURL: "network/Network=Optimism", IconURL: "network/Network=Optimism",
@ -98,7 +98,7 @@ var optimismGoerli = params.Network{
var arbitrum = params.Network{ var arbitrum = params.Network{
ChainID: arbitrumChainID, ChainID: arbitrumChainID,
ChainName: "Arbitrum", ChainName: "Arbitrum",
RPCURL: "https://arbitrum-one.gateway.pokt.network/v1/lb/", RPCURL: "https://arbitrum-one.rpc.grove.city/v1/",
FallbackURL: "https://arbitrum-mainnet.infura.io/v3/", FallbackURL: "https://arbitrum-mainnet.infura.io/v3/",
BlockExplorerURL: "https://arbiscan.io/", BlockExplorerURL: "https://arbiscan.io/",
IconURL: "network/Network=Arbitrum", IconURL: "network/Network=Arbitrum",
@ -166,10 +166,10 @@ func setRPCs(networks []params.Network, request *requests.WalletSecretsConfig) [
} }
if request.PoktToken != "" { if request.PoktToken != "" {
if strings.Contains(n.RPCURL, "pokt") { if strings.Contains(n.RPCURL, "grove") {
n.RPCURL += request.PoktToken n.RPCURL += request.PoktToken
} }
if strings.Contains(n.FallbackURL, "pokt") { if strings.Contains(n.FallbackURL, "grove") {
n.FallbackURL += request.PoktToken n.FallbackURL += request.PoktToken
} }

View File

@ -10,7 +10,7 @@ import (
) )
func TestBuildDefaultNetworks(t *testing.T) { func TestBuildDefaultNetworks(t *testing.T) {
poktToken := "poket-token" poktToken := "grove-token"
infuraToken := "infura-token" infuraToken := "infura-token"
request := &requests.CreateAccount{ request := &requests.CreateAccount{
WalletSecretsConfig: requests.WalletSecretsConfig{ WalletSecretsConfig: requests.WalletSecretsConfig{

View File

@ -629,7 +629,7 @@ func defaultSettings(generatedAccountInfo generator.GeneratedAccountInfo, derive
visibleTokenJSONRaw := json.RawMessage(visibleTokensJSON) visibleTokenJSONRaw := json.RawMessage(visibleTokensJSON)
syncSettings.WalletVisibleTokens = &visibleTokenJSONRaw syncSettings.WalletVisibleTokens = &visibleTokenJSONRaw
networks := `[{"id":"goerli_rpc","chain-explorer-link":"https://goerli.etherscan.io/address/","name":"Goerli with upstream RPC","config":{"NetworkId":5,"DataDir":"/ethereum/goerli_rpc","UpstreamConfig":{"Enabled":true,"URL":"https://goerli-archival.gateway.pokt.network/v1/lb/3ef2018191814b7e1009b8d9"}}},{"id":"mainnet_rpc","chain-explorer-link":"https://etherscan.io/address/","name":"Mainnet with upstream RPC","config":{"NetworkId":1,"DataDir":"/ethereum/mainnet_rpc","UpstreamConfig":{"Enabled":true,"URL":"https://eth-archival.gateway.pokt.network/v1/lb/3ef2018191814b7e1009b8d9"}}}]` networks := `[{"id":"goerli_rpc","chain-explorer-link":"https://goerli.etherscan.io/address/","name":"Goerli with upstream RPC","config":{"NetworkId":5,"DataDir":"/ethereum/goerli_rpc","UpstreamConfig":{"Enabled":true,"URL":"https://goerli-archival.rpc.grove.city/v1/3ef2018191814b7e1009b8d9"}}},{"id":"mainnet_rpc","chain-explorer-link":"https://etherscan.io/address/","name":"Mainnet with upstream RPC","config":{"NetworkId":1,"DataDir":"/ethereum/mainnet_rpc","UpstreamConfig":{"Enabled":true,"URL":"https://eth-archival.rpc.grove.city/v1/3ef2018191814b7e1009b8d9"}}}]`
var networksRawMessage json.RawMessage = []byte(networks) var networksRawMessage json.RawMessage = []byte(networks)
syncSettings.Networks = &networksRawMessage syncSettings.Networks = &networksRawMessage
syncSettings.CurrentNetwork = currentNetwork syncSettings.CurrentNetwork = currentNetwork