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

refactor: use projects list from @zk-kit/artifacts #109

Merged
merged 3 commits into from
Jun 27, 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
5 changes: 5 additions & 0 deletions .changeset/chilled-olives-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zk-kit/artifacts": minor
---

Sort values of `projects`
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@octokit/rest": "^21.0.0",
"@zk-kit/artifacts": "1.6.0",
"jotai": "^2.8.3",
"preact": "^10.22.0",
"react-query": "^3.39.3"
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const artifacts = ['wasm', 'zkey']
export const owner = 'privacy-scaling-explorations'
export const repo = 'snark-artifacts'
export const projects = ['poseidon', 'semaphore', 'sempahore-identity']
cedoor marked this conversation as resolved.
Show resolved Hide resolved
export const cdnUrl = 'https://snark-artifacts.pse.dev'
2 changes: 1 addition & 1 deletion apps/web/src/containers/ProjectSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { projects } from '@zk-kit/artifacts'
import type { ChangeEvent } from 'react'
import { Options } from '../components'
import { projects } from '../constants'
import { useStore } from '../hooks'

export function ProjectSelect() {
Expand Down
4 changes: 2 additions & 2 deletions packages/artifacts/src/projects.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export enum Project {
SEMAPHORE_IDENTITY = 'semaphore-identity',
POSEIDON = 'poseidon',
// RLN = 'rln',
SEMAPHORE = 'semaphore',
SEMAPHORE_IDENTITY = 'semaphore-identity',
}

export const projects = Object.values(Project)
export const projects = Object.values(Project).sort()
cedoor marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.