Skip to content

Commit

Permalink
PROTO-1574: sepolia (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsavvy authored Feb 27, 2024
1 parent 40583e6 commit 398db27
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion comms/discovery/the_graph/discovery_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion mediorum/registrar/the_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down
4 changes: 2 additions & 2 deletions monitoring/healthz/src/utils/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/uptime/registrar/the_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/libs/src/sdk/scripts/generateServicesConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions packages/mobile/src/env/env.stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions packages/web/src/services/env/env.stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 5 additions & 5 deletions protocol-dashboard/.env.stage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion protocol-dashboard/src/containers/Proposal/Proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion protocol-dashboard/src/services/Audius/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 398db27

Please sign in to comment.