From 398db27389e470aacbaa056f3a8fb5b2298cf25f Mon Sep 17 00:00:00 2001 From: alecsavvy <16739903+alecsavvy@users.noreply.github.com> Date: Mon, 26 Feb 2024 20:24:53 -0700 Subject: [PATCH] PROTO-1574: sepolia (#7698) --- comms/discovery/the_graph/discovery_nodes.go | 2 +- mediorum/registrar/the_graph.go | 2 +- monitoring/healthz/src/utils/contracts.ts | 4 ++-- monitoring/uptime/registrar/the_graph.go | 2 +- .../libs/src/sdk/scripts/generateServicesConfig.ts | 4 ++-- packages/mobile/src/env/env.stage.ts | 6 +++--- packages/web/src/services/env/env.stage.ts | 6 +++--- protocol-dashboard/.env.stage | 10 +++++----- .../src/containers/Proposal/Proposal.tsx | 2 +- protocol-dashboard/src/services/Audius/setup.ts | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/comms/discovery/the_graph/discovery_nodes.go b/comms/discovery/the_graph/discovery_nodes.go index 2acf4dae273..6c961317a2a 100644 --- a/comms/discovery/the_graph/discovery_nodes.go +++ b/comms/discovery/the_graph/discovery_nodes.go @@ -19,7 +19,7 @@ func Query(isStaging, isContent bool) ([]Peer, error) { endpoint := `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-mainnet` if isStaging { - endpoint = `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-goerli` + endpoint = `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-sepolia` } nodeType := "discovery-node" diff --git a/mediorum/registrar/the_graph.go b/mediorum/registrar/the_graph.go index f6b6ac23803..2a535eaf465 100644 --- a/mediorum/registrar/the_graph.go +++ b/mediorum/registrar/the_graph.go @@ -14,7 +14,7 @@ import ( ) func NewGraphStaging() PeerProvider { - endpoint := `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-goerli` + endpoint := `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-sepolia` return &graphProvider{endpoint} } diff --git a/monitoring/healthz/src/utils/contracts.ts b/monitoring/healthz/src/utils/contracts.ts index b61444ab0de..772949182a4 100644 --- a/monitoring/healthz/src/utils/contracts.ts +++ b/monitoring/healthz/src/utils/contracts.ts @@ -40,7 +40,7 @@ const ProdProvider = new WebSocketProvider( 'wss://eth-mainnet.alchemyapi.io/v2/hELYSivAlDc8LV29Mw_LumSdCZ4HQEge' ) const StageProvider = new WebSocketProvider( - 'wss://eth-goerli.g.alchemy.com/v2/P_3blSvCiVoh6e563dEWbpyAsRdIYLd3' + 'wss://eth-sepolia.g.alchemy.com/v2/J1Pj86H-g87FqUZVMUbLGgnyoaQTHP1P' ) // `${env}-${type}` => SPs @@ -61,7 +61,7 @@ export const getRegisteredNodes = async ( const provider = isStaging(env) ? StageProvider : ProdProvider const initialRegistryAddress = isStaging(env) - ? '0xF27A9c44d7d5DDdA29bC1eeaD94718EeAC1775e3' + ? '0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0' : '0xd976d3b4f4e22a238c1A736b6612D22f17b6f64C' const registry = new Contract(initialRegistryAddress, RegistryAbi, provider) diff --git a/monitoring/uptime/registrar/the_graph.go b/monitoring/uptime/registrar/the_graph.go index e7e853d7bd7..79cc7dfdb5a 100644 --- a/monitoring/uptime/registrar/the_graph.go +++ b/monitoring/uptime/registrar/the_graph.go @@ -12,7 +12,7 @@ import ( ) func NewGraphStaging() PeerProvider { - endpoint := `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-goerli` + endpoint := `https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-sepolia` return &graphProvider{endpoint} } diff --git a/packages/libs/src/sdk/scripts/generateServicesConfig.ts b/packages/libs/src/sdk/scripts/generateServicesConfig.ts index d3dbf2d3a5c..c447557ac89 100644 --- a/packages/libs/src/sdk/scripts/generateServicesConfig.ts +++ b/packages/libs/src/sdk/scripts/generateServicesConfig.ts @@ -45,8 +45,8 @@ const envConfigs: Record<'staging' | 'production', EnvironmentConfig> = { '0x74b89B916c97d50557E8F944F32662fE52Ce378d', ETH_OWNER_WALLET: '', ETH_PROVIDER_URL: 'https://eth.staging.audius.co', - ETH_REGISTRY_ADDRESS: '0xF27A9c44d7d5DDdA29bC1eeaD94718EeAC1775e3', - ETH_TOKEN_ADDRESS: '0x5375BE4c52fA29b26077B0F15ee5254D779676A6', + ETH_REGISTRY_ADDRESS: '0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0', + ETH_TOKEN_ADDRESS: '0x1376180Ee935AA64A27780F4BE97726Df7B0e2B2', IDENTITY_SERVICE_URL: 'https://identityservice.staging.audius.co', WORMHOLE_ADDRESS: '0xf6f45e4d836da1d4ecd43bb1074620bfb0b7e0d7', WEB3_PROVIDER_URL: 'https://poa-gateway.staging.audius.co', diff --git a/packages/mobile/src/env/env.stage.ts b/packages/mobile/src/env/env.stage.ts index 4cda1ff78db..e0247b67406 100644 --- a/packages/mobile/src/env/env.stage.ts +++ b/packages/mobile/src/env/env.stage.ts @@ -25,11 +25,11 @@ export const env: Env = { ENTITY_MANAGER_ADDRESS: '0x1Cd8a543596D499B9b6E7a6eC15ECd2B7857Fd64', ENVIRONMENT: 'staging', ETH_BRIDGE_ADDRESS: null, - ETH_NETWORK_ID: '5', + ETH_NETWORK_ID: '11155111', ETH_OWNER_WALLET: null, ETH_PROVIDER_URL: 'https://eth.staging.audius.co', - ETH_REGISTRY_ADDRESS: '0xF27A9c44d7d5DDdA29bC1eeaD94718EeAC1775e3', - ETH_TOKEN_ADDRESS: '0x5375BE4c52fA29b26077B0F15ee5254D779676A6', + ETH_REGISTRY_ADDRESS: '0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0', + ETH_TOKEN_ADDRESS: '0x1376180Ee935AA64A27780F4BE97726Df7B0e2B2', ETH_TOKEN_BRIDGE_ADDRESS: null, EXPLORE_CONTENT_URL: 'https://download.staging.audius.co/static-resources/explore-content.json', diff --git a/packages/web/src/services/env/env.stage.ts b/packages/web/src/services/env/env.stage.ts index 4b39aa63c14..f64cd26f623 100644 --- a/packages/web/src/services/env/env.stage.ts +++ b/packages/web/src/services/env/env.stage.ts @@ -24,11 +24,11 @@ export const env: Env = { ENTITY_MANAGER_ADDRESS: '0x1Cd8a543596D499B9b6E7a6eC15ECd2B7857Fd64', ENVIRONMENT: 'staging', ETH_BRIDGE_ADDRESS: null, - ETH_NETWORK_ID: '5', + ETH_NETWORK_ID: '11155111', ETH_OWNER_WALLET: '', ETH_PROVIDER_URL: 'https://eth.staging.audius.co', - ETH_REGISTRY_ADDRESS: '0xF27A9c44d7d5DDdA29bC1eeaD94718EeAC1775e3', - ETH_TOKEN_ADDRESS: '0x5375BE4c52fA29b26077B0F15ee5254D779676A6', + ETH_REGISTRY_ADDRESS: '0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0', + ETH_TOKEN_ADDRESS: '0x1376180Ee935AA64A27780F4BE97726Df7B0e2B2', ETH_TOKEN_BRIDGE_ADDRESS: null, EXPLORE_CONTENT_URL: 'https://download.staging.audius.co/static-resources/explore-content.json', diff --git a/protocol-dashboard/.env.stage b/protocol-dashboard/.env.stage index 31999f457e7..20a358d389b 100644 --- a/protocol-dashboard/.env.stage +++ b/protocol-dashboard/.env.stage @@ -5,12 +5,12 @@ VITE_CLAIMABLE_TOKEN_PROGRAM_ADDRESS=2sjQNmUfkV6yKKi4dPR8gWRgtyma5aiymE3aXL2RAZw VITE_CLAIM_DISTRIBUTION_CONTRACT_ADDRESS=0x74b89B916c97d50557E8F944F32662fE52Ce378d VITE_ENTITY_MANAGER_ADDRESS=0x1Cd8a543596D499B9b6E7a6eC15ECd2B7857Fd64 VITE_ENVIRONMENT=staging -VITE_ETH_NETWORK_ID=5 +VITE_ETH_NETWORK_ID=11155111 VITE_ETH_OWNER_WALLET= -VITE_ETH_PROVIDER_URL=https://goerli.infura.io/v3/bcb203fe1f8d4eabb7798cf5de1d9097 -VITE_ETH_REGISTRY_ADDRESS=0xF27A9c44d7d5DDdA29bC1eeaD94718EeAC1775e3 -VITE_ETH_TOKEN_ADDRESS=0x5375BE4c52fA29b26077B0F15ee5254D779676A6 -VITE_GQL_URI=https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-goerli +VITE_ETH_PROVIDER_URL=https://eth-sepolia.g.alchemy.com/v2/J1Pj86H-g87FqUZVMUbLGgnyoaQTHP1P +VITE_ETH_REGISTRY_ADDRESS=0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0 +VITE_ETH_TOKEN_ADDRESS=0x1376180Ee935AA64A27780F4BE97726Df7B0e2B2 +VITE_GQL_URI=https://api.thegraph.com/subgraphs/name/audius-infra/audius-network-sepolia VITE_IDENTITY_SERVICE_ENDPOINT=https://identityservice.staging.audius.co VITE_QUERY_PROPOSAL_START_BLOCK=1 VITE_REGISTRY_ADDRESS=0x793373aBF96583d5eb71a15d86fFE732CD04D452 diff --git a/protocol-dashboard/src/containers/Proposal/Proposal.tsx b/protocol-dashboard/src/containers/Proposal/Proposal.tsx index 0d445313b69..814f8a0c8a8 100644 --- a/protocol-dashboard/src/containers/Proposal/Proposal.tsx +++ b/protocol-dashboard/src/containers/Proposal/Proposal.tsx @@ -37,7 +37,7 @@ const getContractLink = (address: string) => { if (IS_PRODUCTION) { return `https://etherscan.io/address/${address}` } - return `https://goerli.etherscan.io/address/${address}` + return `https://sepolia.etherscan.io/address/${address}` } const Proposal = () => { diff --git a/protocol-dashboard/src/services/Audius/setup.ts b/protocol-dashboard/src/services/Audius/setup.ts index b6388efced7..26223c548f1 100644 --- a/protocol-dashboard/src/services/Audius/setup.ts +++ b/protocol-dashboard/src/services/Audius/setup.ts @@ -52,7 +52,7 @@ export const IS_PRODUCTION = const IS_STAGING = import.meta.env.VITE_ETH_NETWORK_ID && - import.meta.env.VITE_ETH_NETWORK_ID === '5' + import.meta.env.VITE_ETH_NETWORK_ID === '11155111' // Used to prevent two callbacks from firing triggering reload let willReload = false