Skip to content

Commit

Permalink
refactor: use projects list from @zk-kit/artifacts (#109)
Browse files Browse the repository at this point in the history
* refactor: use `projects` list from `@zk-kit/artifacts`

* changeset

* refactor: remove unused constant
  • Loading branch information
sripwoud authored Jun 27, 2024
1 parent ab082b4 commit 921d35a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
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']
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()
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.

0 comments on commit 921d35a

Please sign in to comment.