Skip to content

Commit 5b14c8b

Browse files
committed
feat: add sepolia as default network
1 parent 59aea9c commit 5b14c8b

13 files changed

Lines changed: 21 additions & 21 deletions

File tree

apps/contracts/contracts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ yarn deploy:bandada
9898
yarn deploy:bandada-semaphore
9999
```
100100

101-
If you want to deploy contracts on Goerli or Arbitrum, remember to provide a valid private key and an Infura API in your `.env` file.
101+
If you want to deploy contracts on Sepolia or Arbitrum, remember to provide a valid private key and an Infura API in your `.env` file.

apps/contracts/hardhat.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function getNetworks(): NetworksUserConfig {
2626
chainId: 1337,
2727
accounts
2828
},
29-
goerli: {
30-
url: `https://goerli.infura.io/v3/${infuraApiKey}`,
31-
chainId: 5,
29+
sepolia: {
30+
url: `https://sepolia.infura.io/v3/${infuraApiKey}`,
31+
chainId: 11155111,
3232
accounts
3333
},
3434
arbitrum: {

apps/dashboard/.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
VITE_API_URL=http://localhost:3000
44
VITE_CLIENT_URL=http://localhost:3002
55
VITE_CLIENT_INVITES_URL=http://localhost:3002?inviteCode=\
6-
VITE_ETHEREUM_NETWORK=goerli
6+
VITE_ETHEREUM_NETWORK=sepolia
77
VITE_GITHUB_CLIENT_ID=a83a8b014ef38270fb22
88
VITE_TWITTER_CLIENT_ID=NV82Mm85NWlSZ1llZkpLMl9vN3A6MTpjaQ
99
VITE_TWITTER_REDIRECT_URI=http://localhost:3001/credentials

apps/dashboard/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
VITE_API_URL=https://api.bandada.pse.dev
44
VITE_CLIENT_URL=https://client.bandada.pse.dev
55
VITE_CLIENT_INVITES_URL=https://client.bandada.pse.dev?inviteCode=\
6-
VITE_ETHEREUM_NETWORK=goerli
6+
VITE_ETHEREUM_NETWORK=sepolia
77
VITE_GITHUB_CLIENT_ID=6ccd7b93e84260e353f9
88
VITE_TWITTER_CLIENT_ID=NV82Mm85NWlSZ1llZkpLMl9vN3A6MTpjaQ
99
VITE_TWITTER_REDIRECT_URI=https://bandada.pse.dev/credentials

apps/dashboard/.env.staging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
VITE_API_URL=https://api-staging.bandada.pse.dev
44
VITE_CLIENT_URL=https://client-staging.bandada.pse.dev
55
VITE_CLIENT_INVITES_URL=https://client-staging.bandada.pse.dev?inviteCode=\
6-
VITE_ETHEREUM_NETWORK=goerli
6+
VITE_ETHEREUM_NETWORK=sepolia
77
VITE_GITHUB_CLIENT_ID=6ccd7b93e84260e353f9
88
VITE_TWITTER_CLIENT_ID=NV82Mm85NWlSZ1llZkpLMl9vN3A6MTpjaQ
99
VITE_TWITTER_REDIRECT_URI=https://staging.bandada.pse.dev/credentials

apps/dashboard/src/components/add-member-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ ${memberIds.join("\n")}
130130
}
131131

132132
try {
133-
const semaphore = getSemaphoreContract("goerli", signer as any)
133+
const semaphore = getSemaphoreContract("sepolia", signer as any)
134134

135135
await semaphore.addMembers(group.name, memberIds)
136136

137137
setIsLoading(false)
138138
onClose(memberIds)
139139
} catch (error) {
140140
alert(
141-
"Some error occurred! Check if you're on Goerli network and the transaction is signed and completed"
141+
"Some error occurred! Check if you're on Sepolia network and the transaction is signed and completed"
142142
)
143143

144144
setIsLoading(false)

apps/dashboard/src/components/new-group-stepper/final-preview-step.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function FinalPreviewStep({
2525
if (group.type === "on-chain" && signer) {
2626
setLoading(true)
2727
try {
28-
const semaphore = getSemaphoreContract("goerli", signer as any)
28+
const semaphore = getSemaphoreContract("sepolia", signer as any)
2929
const admin = await signer.getAddress()
3030

3131
await semaphore.createGroup(group.name, group.treeDepth, admin)
@@ -35,7 +35,7 @@ export default function FinalPreviewStep({
3535
} catch (error) {
3636
setLoading(false)
3737
alert(
38-
"Some error occurred! Check if you're on Goerli network and the transaction is signed and completed"
38+
"Some error occurred! Check if you're on Sepolia network and the transaction is signed and completed"
3939
)
4040

4141
console.error(error)

apps/dashboard/src/context/auth-context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import React, { ReactNode, useEffect, useMemo, useState } from "react"
1616
import { SiweMessage } from "siwe"
1717
import { configureChains, createClient, WagmiConfig } from "wagmi"
18-
import { goerli } from "wagmi/chains"
18+
import { sepolia } from "wagmi/chains"
1919
import { publicProvider } from "wagmi/providers/public"
2020
import { getNonce, logOut, signIn } from "../api/bandadaAPI"
2121
import useSessionData from "../hooks/use-session-data"
@@ -83,7 +83,7 @@ export function AuthContextProvider({ children }: { children: ReactNode }) {
8383
)
8484

8585
const { chains, provider, webSocketProvider } = configureChains(
86-
[goerli],
86+
[sepolia],
8787
[publicProvider()]
8888
)
8989

apps/dashboard/src/pages/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function HomePage(): JSX.Element {
7474
</HStack>
7575
</Link>
7676
<Link
77-
href={`https://goerli.etherscan.io/address/${CONTRACT_ADDRESSES.goerli.Bandada}`}
77+
href={`https://sepolia.etherscan.io/address/${CONTRACT_ADDRESSES.sepolia.Bandada}`}
7878
isExternal
7979
>
8080
<HStack spacing="1">

libs/utils/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,5 @@ Returns the contract addresses for the Bandada, Semaphore and BandadaSemaphore s
159159
```ts
160160
import { getContractAddresses } from "@bandada/utils"
161161

162-
const addresses = getContractAddresses("goerli")
162+
const addresses = getContractAddresses("sepolia")
163163
```

0 commit comments

Comments
 (0)