Skip to content
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
8 changes: 8 additions & 0 deletions examples/CRISP/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ Once the CLI client is running, you can interact with the CRISP voting protocol

Ensure all services are running correctly and that components are communicating as expected before starting a new CRISP round.

## Publishing packages to npm

In order to publish a new version of the CRISP packages to npm, you can use:

```sh
pnpm publish:packages x.x.x # where x.x.x is the new version
```
Comment thread
ctrlc03 marked this conversation as resolved.

## Contributing

We welcome and encourage community contributions to this repository. Please ensure that you read and understand the [Contributor License Agreement (CLA)](https://github.com/gnosisguild/CLA) before submitting any contributions.
Expand Down
6 changes: 3 additions & 3 deletions examples/CRISP/client/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "crisp-client",
"name": "@crisp-e3/client",
"private": true,
"version": "1.0.0",
"type": "module",
Expand All @@ -19,10 +19,10 @@
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@enclave-e3/sdk": "^0.1.5",
"@aztec/bb.js": "^0.82.2",
"@emotion/babel-plugin": "^11.11.0",
"@emotion/react": "^11.11.4",
"@enclave-e3/sdk": "^0.1.5",
Comment thread
ctrlc03 marked this conversation as resolved.
"@noir-lang/acvm_js": "1.0.0-beta.3",
"@noir-lang/noir_js": "1.0.0-beta.3",
"@noir-lang/noirc_abi": "1.0.0-beta.3",
Expand All @@ -37,7 +37,7 @@
"react-markdown": "^9.0.1",
"react-router-dom": "^6.22.3",
"react-syntax-highlighter": "^15.5.0",
"viem": "2.30.6",
"viem": "2.38.6",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-top-level-await": "^1.4.1",
"vite-tsconfig-paths": "^4.3.2",
Expand Down
5 changes: 3 additions & 2 deletions examples/CRISP/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "crisp",
"name": "@crisp-e3/main",
"private": true,
"type": "module",
"description": "CRISP - Coercion-Resistant Impartial Selection Protocol",
Expand All @@ -23,7 +23,8 @@
"test:sdk": "cd sdk && pnpm test",
"release:sdk": "cd sdk && pnpm release",
"report": "playwright show-report",
"build:wasm": "wasm-pack build ./crates/zk-inputs-wasm --no-pack --out-dir ../../packages/crisp-zk-inputs/pkg --out-name index"
"build:wasm": "wasm-pack build ./crates/zk-inputs-wasm --no-pack --out-dir ../../packages/crisp-zk-inputs/pkg --out-name index",
"publish:packages": "tsx scripts/publish.ts"
},
"devDependencies": {
"@playwright/test": "1.52.0",
Expand Down
23 changes: 20 additions & 3 deletions examples/CRISP/packages/crisp-contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
{
"name": "@enclave/crisp-contracts",
"version": "0.0.1",
"name": "@crisp-e3/contracts",
"version": "0.0.1-test",
"type": "module",
"files": [
"contracts/**/*.sol"
"contracts",
"dist"
],
"exports": {
"./contracts/*": "./contracts/*",
"./types": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/types/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/types/index.js"
}
}
},
"author": {
"name": "gnosisguild",
"url": "https://github.com/gnosisguild"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"compile": "hardhat compile",
"ciphernode:add": "hardhat ciphernode:admin-add",
Expand Down
54 changes: 0 additions & 54 deletions examples/CRISP/packages/crisp-contracts/tests/CRISPProgram.t.sol

This file was deleted.

6 changes: 3 additions & 3 deletions examples/CRISP/packages/crisp-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enclave/crisp-sdk",
"version": "0.0.1",
"name": "@crisp-e3/sdk",
"version": "0.0.1-test",
"type": "module",
"author": {
"name": "gnosisguild",
Expand Down Expand Up @@ -43,7 +43,7 @@
"@noir-lang/noir_js": "1.0.0-beta.3"
},
"dependencies": {
"@enclave/crisp-zk-inputs": "workspace:*",
"@crisp-e3/zk-inputs": "workspace:*",
"@zk-kit/lean-imt": "^2.2.4",
"poseidon-lite": "^0.3.0",
"viem": "2.30.6"
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-sdk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

import { ZKInputsGenerator } from '@enclave/crisp-zk-inputs'
import { ZKInputsGenerator } from '@crisp-e3/zk-inputs'
import { BFVParams } from './types'

export const CRISP_SERVER_TOKEN_TREE_ENDPOINT = 'state/token-holders'
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-sdk/src/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

import { ZKInputsGenerator } from '@enclave/crisp-zk-inputs'
import { ZKInputsGenerator } from '@crisp-e3/zk-inputs'
import { BFVParams, type CRISPCircuitInputs, type EncryptVoteAndGenerateCRISPInputsParams, type IVote, VotingMode } from './types'
import { toBinary } from './utils'
import { MAXIMUM_VOTE_VALUE, DEFAULT_BFV_PARAMS, MESSAGE } from './constants'
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-sdk/tests/vote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// or FITNESS FOR A PARTICULAR PURPOSE.

import { describe, it, expect } from 'vitest'
import { ZKInputsGenerator } from '@enclave/crisp-zk-inputs'
import { ZKInputsGenerator } from '@crisp-e3/zk-inputs'
import {
calculateValidIndicesForPlaintext,
decodeTally,
Expand Down
7 changes: 5 additions & 2 deletions examples/CRISP/packages/crisp-zk-inputs/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@enclave/crisp-zk-inputs",
"name": "@crisp-e3/zk-inputs",
"type": "module",
"description": "Core logic to pre-compute CRISP ZK inputs (WASM/JavaScript bindings).",
"version": "0.1.0",
"version": "0.0.1-test",
"license": "LGPL-3.0-only",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,9 @@
"pkg/index_bg.js",
"pkg/index.d.ts"
],
"publishConfig": {
"access": "public"
},
"main": "pkg/index.js",
"types": "pkg/index.d.ts",
"sideEffects": [
Expand Down
Loading
Loading