Skip to content

Commit

Permalink
feat: wallet connect id (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrX-SNX authored Aug 28, 2024
1 parent 49af13a commit 1263bc4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions governance/ui/src/pages/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
.blockies-rounded {
border-radius: 50%;
}

.wcm-container {
z-index: 999999;
}
2 changes: 1 addition & 1 deletion governance/ui/src/queries/useGetCouncilMembers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function useGetCouncilMembers(council: CouncilSlugs) {
queryKey: ['members', council, network?.id],
queryFn: async () => {
const members = (await getCouncilContract(council)
.connect(motherShipProvider(network?.id || 13001))
.connect(motherShipProvider(network?.id || 2192))
.getCouncilMembers()) as string[];
return members;
},
Expand Down
2 changes: 1 addition & 1 deletion governance/ui/src/queries/useGetCouncilNominees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function useGetCouncilNominees(council: CouncilSlugs) {
queryKey: ['nominees', council, network?.id],
queryFn: async () => {
return (await getCouncilContract(council)
.connect(motherShipProvider(network?.id || 13001))
.connect(motherShipProvider(network?.id || 2192))
.getNominees()) as string[];
},
enabled: !!council,
Expand Down
2 changes: 1 addition & 1 deletion governance/ui/src/queries/useGetCurrentPeriod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useGetCurrentPeriod(council?: CouncilSlugs) {
queryFn: async () => {
return (
await getCouncilContract(council!)
.connect(motherShipProvider(network?.id || 13001))
.connect(motherShipProvider(network?.id || 2192))
.getCurrentPeriod()
).toString() as string | undefined;
},
Expand Down
2 changes: 1 addition & 1 deletion governance/ui/src/queries/useGetEpochSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useGetEpochSchedule(council?: CouncilSlugs) {
queryKey: ['epoch-schedule', council, network?.id],
queryFn: async () => {
const schedule = await getCouncilContract(council!)
.connect(motherShipProvider(network?.id || 13001))
.connect(motherShipProvider(network?.id || 2192))
.getEpochSchedule();
return {
startDate: Number(schedule.startDate.toString()),
Expand Down
5 changes: 2 additions & 3 deletions governance/ui/src/utils/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ export const onboard = init({
email: '[email protected]',
}),
ledgerModule({
projectId: process.env.WC_PROJECT_ID ?? '',
projectId: process.env.WC_PROJECT_ID ?? '824270fbfdf10d95099e9702d3cb3741',
walletConnectVersion: 2,
}),
walletConnectModule({
version: 2,
projectId: process.env.WC_PROJECT_ID ?? '',
dappUrl: 'https://governance.synthetix.io',
projectId: process.env.WC_PROJECT_ID ?? '824270fbfdf10d95099e9702d3cb3741',
}),
gnosisModule(),
],
Expand Down

0 comments on commit 1263bc4

Please sign in to comment.