Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve client app #620

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@fontsource-variable/unbounded": "^5.0.5",
"@semaphore-protocol/identity": "3.10.1",
"@semaphore-protocol/identity": "4.7.0",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"ethers": "^5.4.7",
Expand Down
4 changes: 2 additions & 2 deletions apps/client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function HomePage(): JSX.Element {

const message = `Sign this message to generate your Semaphore identity.`
const identity = new Identity(await signer.signMessage(message))
const identityCommitment = identity.getCommitment().toString()
const identityCommitment = identity.commitment.toString()

const hasJoined = await isGroupMember(
invite.group.id,
Expand Down Expand Up @@ -126,7 +126,7 @@ export default function HomePage(): JSX.Element {

const message = `Sign this message to generate your Semaphore identity.`
const identity = new Identity(await signer.signMessage(message))
const identityCommitment = identity.getCommitment().toString()
const identityCommitment = identity.commitment.toString()

const dashboardUrl = import.meta.env
.VITE_DASHBOARD_URL as DashboardUrl
Expand Down
2 changes: 2 additions & 0 deletions libs/api-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,15 @@ const inviteCode = "C5VAG4HD"
const apiKey = "70f07d0d-6aa2-4fe1-b4b9-06c271a641dc"

const invite = await apiSdk.redeemInvite(inviteCode, groupId, apiKey)
```

## Get credential group join URL

\# **getCredentialGroupJoinUrl**(): _string_

Returns a custom URL string for joining a credential group.

```ts
import { DashboardUrl } from "@bandada/api-sdk"

const dashboardUrl = DashboardUrl.DEV
Expand Down
15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8759,19 +8759,6 @@ __metadata:
languageName: node
linkType: hard

"@semaphore-protocol/identity@npm:3.10.1":
version: 3.10.1
resolution: "@semaphore-protocol/identity@npm:3.10.1"
dependencies:
"@ethersproject/bignumber": "npm:^5.5.0"
"@ethersproject/keccak256": "npm:^5.7.0"
"@ethersproject/random": "npm:^5.5.1"
"@ethersproject/strings": "npm:^5.6.1"
js-sha512: "npm:^0.8.0"
checksum: 10/402344e37770d0cdc14527cf4ceb96376bf5015788e120a043802804deea945d0dabe593036df70c7d76ec9f104faa7f91fc5a2a39e7743e91f7d9cc7b3b894e
languageName: node
linkType: hard

"@semaphore-protocol/identity@npm:3.9.0":
version: 3.9.0
resolution: "@semaphore-protocol/identity@npm:3.9.0"
Expand Down Expand Up @@ -14350,7 +14337,7 @@ __metadata:
"@emotion/react": "npm:^11.10.6"
"@emotion/styled": "npm:^11.10.6"
"@fontsource-variable/unbounded": "npm:^5.0.5"
"@semaphore-protocol/identity": "npm:3.10.1"
"@semaphore-protocol/identity": "npm:4.7.0"
"@types/react": "npm:^18.0.27"
"@types/react-dom": "npm:^18.0.10"
"@vitejs/plugin-react": "npm:^3.1.0"
Expand Down
Loading