Skip to content

Commit

Permalink
feat: add base network
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e committed Aug 21, 2023
1 parent ca32513 commit 2b82df0
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 635 deletions.
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"tsx": "^3.12.7",
"typescript": "5.0.4",
"viem": "^0.3.24",
"wagmi": "^1.0.4"
"wagmi": "^1.3.10"
}
}
18 changes: 9 additions & 9 deletions front/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import {
gnosis,
polygon,
polygonMumbai,
base,
baseGoerli,
} from "@/utils";
import {
AuthRequest,
Expand Down Expand Up @@ -277,7 +279,7 @@ export default function Home() {
{getProofDataForAuth(
sismoConnectVerifiedResult?.verifiedAuths,
auth.authType
)!.toString()}
)?.toString()}
</td>
) : (
<td> ZK proof not generated yet </td>
Expand Down Expand Up @@ -317,14 +319,12 @@ export default function Home() {
<td>{claim.isOptional ? "optional" : "required"}</td>
{sismoConnectVerifiedResult?.verifiedClaims ? (
<td>
{
getProofDataForClaim(
sismoConnectVerifiedResult.verifiedClaims!,
claim.claimType || 0,
claim.groupId!,
claim.value || 1
)!
}
{getProofDataForClaim(
sismoConnectVerifiedResult.verifiedClaims!,
claim.claimType || 0,
claim.groupId!,
claim.value || 1
)?.toString()}
</td>
) : (
<td> ZK proof not generated yet </td>
Expand Down
8 changes: 7 additions & 1 deletion front/src/utils/wagmi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {
gnosis,
polygon,
polygonMumbai,
} from "viem/chains";
base,
baseGoerli,
} from "wagmi/chains";
import { Chain, configureChains, createConfig } from "wagmi";
import { WagmiConfig } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
Expand All @@ -33,6 +35,8 @@ export {
gnosis,
polygon,
polygonMumbai,
base,
baseGoerli,
};

export const mumbaiFork = {
Expand Down Expand Up @@ -64,6 +68,8 @@ const { chains, publicClient } = configureChains(
gnosis,
polygon,
polygonMumbai,
base,
baseGoerli,
],
[publicProvider()]
);
Expand Down
Loading

0 comments on commit 2b82df0

Please sign in to comment.