From 00d9e46e8ea502fa2e9d68d938d26674ea44b621 Mon Sep 17 00:00:00 2001
From: Saleel
- ZK-Groups
+ Bandada
Zk-groups smart contracts to manage off-chain groups and verify their zero-knowledge proofs.
+Bandada smart contracts to manage off-chain groups and verify their zero-knowledge proofs.
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -28,15 +28,15 @@
-
+
👥 Contributing
|
-
+
🤝 Code of conduct
|
-
+
🔎 Issues
|
@@ -53,16 +53,16 @@
### npm or yarn
-Install the `@zk-groups/hardhat` package with npm:
+Install the `@bandada/hardhat` package with npm:
```bash
-npm i @zk-groups/hardhat
+npm i @bandada/hardhat
```
or yarn:
```bash
-yarn add @zk-groups/hardhat
+yarn add @bandada/hardhat
```
## 📜 Usage
@@ -70,7 +70,7 @@ yarn add @zk-groups/hardhat
Import the plugin in your `hardhat.config.ts` file:
```typescript
-import "@zk-groups/hardhat"
+import "@bandada/hardhat"
import "./tasks/deploy"
const hardhatConfig: HardhatUserConfig = {
@@ -88,7 +88,7 @@ import { task, types } from "hardhat/config"
task("deploy", "Deploy a Greeter contract")
.addOptionalParam("logs", "Print the logs", true, types.boolean)
.setAction(async ({ logs }, { ethers, run }) => {
- const { bandada } = await run("deploy:zk-groups", {
+ const { bandada } = await run("deploy:bandada", {
logs
})
diff --git a/libs/hardhat/package.json b/libs/hardhat/package.json
index 1c72f5d..8eb2458 100644
--- a/libs/hardhat/package.json
+++ b/libs/hardhat/package.json
@@ -1,5 +1,5 @@
{
- "name": "@zk-groups/hardhat",
+ "name": "@bandada/hardhat",
"version": "0.4.0",
"description": "A Hardhat plugin which provides tasks to deploy Bandada contracts.",
"license": "MIT",
@@ -15,10 +15,10 @@
"LICENSE",
"README.md"
],
- "repository": "https://github.com/privacy-scaling-explorations/zk-groups",
- "homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/libs/hardhat",
+ "repository": "https://github.com/privacy-scaling-explorations/bandada",
+ "homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/hardhat",
"bugs": {
- "url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
+ "url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
},
"scripts": {
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
@@ -39,9 +39,9 @@
"typescript": "^4.9.5"
},
"peerDependencies": {
+ "@bandada/contracts": "0.4.0",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@semaphore-protocol/contracts": "3.4.0",
- "@zk-groups/contracts": "0.4.0",
"ethers": "^5.4.7",
"hardhat": "^2.11.0"
},
diff --git a/libs/hardhat/src/index.ts b/libs/hardhat/src/index.ts
index 32979a2..d28cfd8 100644
--- a/libs/hardhat/src/index.ts
+++ b/libs/hardhat/src/index.ts
@@ -9,8 +9,8 @@ import "./tasks/deploy-bandada-semaphore"
extendConfig(
(config: HardhatConfig, userConfig: Readonly
-
-
+
+
-
-
+
+
-
-
+
+
@@ -28,15 +28,15 @@
-
+
👥 Contributing
|
-
+
🤝 Code of conduct
|
-
+
🔎 Issues
|
@@ -53,14 +53,14 @@
### npm or yarn
-Install the `@zk-groups/utils` package with npm:
+Install the `@bandada/utils` package with npm:
```bash
-npm i @zk-groups/utils
+npm i @bandada/utils
```
or yarn:
```bash
-yarn add @zk-groups/utils
+yarn add @bandada/utils
```
diff --git a/libs/utils/package.json b/libs/utils/package.json
index bc1ded4..8bd9dc6 100644
--- a/libs/utils/package.json
+++ b/libs/utils/package.json
@@ -1,5 +1,5 @@
{
- "name": "@zk-groups/utils",
+ "name": "@bandada/utils",
"version": "0.4.0",
"description": "General Bandada utility functions.",
"license": "MIT",
@@ -15,10 +15,10 @@
"LICENSE",
"README.md"
],
- "repository": "https://github.com/privacy-scaling-explorations/zk-groups",
- "homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/libs/utils",
+ "repository": "https://github.com/privacy-scaling-explorations/bandada",
+ "homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/utils",
"bugs": {
- "url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
+ "url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
},
"scripts": {
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
diff --git a/package.json b/package.json
index 866ebbe..084fe55 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,10 @@
{
- "name": "zk-groups",
+ "name": "bandada",
"description": "A system for managing privacy-preserving groups.",
"license": "MIT",
- "repository": "git@github.com:privacy-scaling-explorations/zk-groups.git",
- "homepage": "https://github.com/privacy-scaling-explorations/zk-groups",
- "bugs": "https://github.com/privacy-scaling-explorations/zk-groups/issues",
+ "repository": "git@github.com:privacy-scaling-explorations/bandada.git",
+ "homepage": "https://github.com/privacy-scaling-explorations/bandada",
+ "bugs": "https://github.com/privacy-scaling-explorations/bandada/issues",
"private": true,
"scripts": {
"start": "yarn workspaces foreach -pi run start",
diff --git a/tsconfig.json b/tsconfig.json
index 275e62e..743a21a 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -17,7 +17,7 @@
"allowSyntheticDefaultImports": true,
"declarationDir": "types",
"paths": {
- "@zk-groups/*": ["libs/*/src"]
+ "@bandada/*": ["libs/*/src"]
}
}
}
diff --git a/yarn.lock b/yarn.lock
index e5db48d..2a41b68 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -815,6 +815,57 @@ __metadata:
languageName: node
linkType: hard
+"@bandada/contracts@workspace:apps/contracts/contracts":
+ version: 0.0.0-use.local
+ resolution: "@bandada/contracts@workspace:apps/contracts/contracts"
+ dependencies:
+ "@openzeppelin/contracts": 4.7.3
+ "@semaphore-protocol/contracts": 3.4.0
+ languageName: unknown
+ linkType: soft
+
+"@bandada/hardhat@workspace:libs/hardhat":
+ version: 0.0.0-use.local
+ resolution: "@bandada/hardhat@workspace:libs/hardhat"
+ dependencies:
+ "@nomiclabs/hardhat-ethers": ^2.0.0
+ "@rollup/plugin-typescript": ^11.0.0
+ ethers: ^5.4.7
+ hardhat: ^2.11.0
+ hardhat-dependency-compiler: ^1.1.3
+ rimraf: ^4.1.2
+ rollup: ^3.17.2
+ rollup-plugin-cleanup: ^3.2.1
+ typescript: ^4.9.5
+ peerDependencies:
+ "@bandada/contracts": 0.4.0
+ "@nomiclabs/hardhat-ethers": ^2.0.0
+ "@semaphore-protocol/contracts": 3.4.0
+ ethers: ^5.4.7
+ hardhat: ^2.11.0
+ languageName: unknown
+ linkType: soft
+
+"@bandada/utils@0.4.0, @bandada/utils@workspace:libs/utils":
+ version: 0.0.0-use.local
+ resolution: "@bandada/utils@workspace:libs/utils"
+ dependencies:
+ "@ethersproject/abstract-signer": ^5.7.0
+ "@ethersproject/address": ^5.7.0
+ "@ethersproject/contracts": ^5.7.0
+ "@ethersproject/providers": ^5.7.0
+ "@ethersproject/strings": ^5.7.0
+ "@ethersproject/wallet": ^5.7.0
+ "@rollup/plugin-json": ^6.0.0
+ "@rollup/plugin-typescript": ^11.0.0
+ axios: ^1.3.3
+ rimraf: ^4.1.2
+ rollup: ^3.17.2
+ rollup-plugin-cleanup: ^3.2.1
+ typescript: ^4.9.5
+ languageName: unknown
+ linkType: soft
+
"@bcoe/v8-coverage@npm:^0.2.3":
version: 0.2.3
resolution: "@bcoe/v8-coverage@npm:0.2.3"
@@ -6624,57 +6675,6 @@ __metadata:
languageName: node
linkType: hard
-"@zk-groups/contracts@workspace:apps/contracts/contracts":
- version: 0.0.0-use.local
- resolution: "@zk-groups/contracts@workspace:apps/contracts/contracts"
- dependencies:
- "@openzeppelin/contracts": 4.7.3
- "@semaphore-protocol/contracts": 3.4.0
- languageName: unknown
- linkType: soft
-
-"@zk-groups/hardhat@workspace:libs/hardhat":
- version: 0.0.0-use.local
- resolution: "@zk-groups/hardhat@workspace:libs/hardhat"
- dependencies:
- "@nomiclabs/hardhat-ethers": ^2.0.0
- "@rollup/plugin-typescript": ^11.0.0
- ethers: ^5.4.7
- hardhat: ^2.11.0
- hardhat-dependency-compiler: ^1.1.3
- rimraf: ^4.1.2
- rollup: ^3.17.2
- rollup-plugin-cleanup: ^3.2.1
- typescript: ^4.9.5
- peerDependencies:
- "@nomiclabs/hardhat-ethers": ^2.0.0
- "@semaphore-protocol/contracts": 3.4.0
- "@zk-groups/contracts": 0.4.0
- ethers: ^5.4.7
- hardhat: ^2.11.0
- languageName: unknown
- linkType: soft
-
-"@zk-groups/utils@0.4.0, @zk-groups/utils@workspace:libs/utils":
- version: 0.0.0-use.local
- resolution: "@zk-groups/utils@workspace:libs/utils"
- dependencies:
- "@ethersproject/abstract-signer": ^5.7.0
- "@ethersproject/address": ^5.7.0
- "@ethersproject/contracts": ^5.7.0
- "@ethersproject/providers": ^5.7.0
- "@ethersproject/strings": ^5.7.0
- "@ethersproject/wallet": ^5.7.0
- "@rollup/plugin-json": ^6.0.0
- "@rollup/plugin-typescript": ^11.0.0
- axios: ^1.3.3
- rimraf: ^4.1.2
- rollup: ^3.17.2
- rollup-plugin-cleanup: ^3.2.1
- typescript: ^4.9.5
- languageName: unknown
- linkType: soft
-
"@zk-kit/incremental-merkle-tree.sol@npm:1.3.3":
version: 1.3.3
resolution: "@zk-kit/incremental-merkle-tree.sol@npm:1.3.3"
@@ -7085,6 +7085,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "api@workspace:apps/api"
dependencies:
+ "@bandada/utils": 0.4.0
"@ethersproject/hash": ^5.7.0
"@nestjs/cli": ^9.0.0
"@nestjs/common": ^9.0.0
@@ -7105,7 +7106,6 @@ __metadata:
"@types/passport-github": ^1.1.7
"@types/passport-jwt": ^3.0.8
"@types/passport-twitter": ^1.0.37
- "@zk-groups/utils": 0.4.0
class-transformer: ^0.5.1
class-validator: ^0.14.0
cookie-parser: ^1.4.6
@@ -7644,6 +7644,38 @@ __metadata:
languageName: node
linkType: hard
+"bandada@workspace:.":
+ version: 0.0.0-use.local
+ resolution: "bandada@workspace:."
+ dependencies:
+ "@commitlint/cli": ^17.0.0
+ "@commitlint/config-conventional": ^17.4.3
+ "@types/jest": 29.4.0
+ "@types/node": 18.11.18
+ "@typescript-eslint/eslint-plugin": ^5.13.0
+ "@typescript-eslint/parser": ^5.0.0
+ changelogithub: 0.12.7
+ commitizen: ^4.2.4
+ cz-conventional-changelog: ^3.3.0
+ eslint: ^8.2.0
+ eslint-config-airbnb: ^19.0.4
+ eslint-config-airbnb-typescript: ^17.0.0
+ eslint-config-prettier: ^8.6.0
+ eslint-plugin-import: ^2.25.3
+ eslint-plugin-jest: ^27.2.1
+ eslint-plugin-jsx-a11y: ^6.5.1
+ eslint-plugin-react: ^7.28.0
+ eslint-plugin-react-hooks: ^4.3.0
+ husky: ^8.0.0
+ jest: 29.4.3
+ lint-staged: ^12.4.2
+ prettier: ^2.8.4
+ ts-jest: 29.0.5
+ tslib: ^2.5.0
+ typescript: ^4.7.0
+ languageName: unknown
+ linkType: soft
+
"base-x@npm:^3.0.2":
version: 3.0.9
resolution: "base-x@npm:3.0.9"
@@ -8349,9 +8381,9 @@ __metadata:
languageName: node
linkType: hard
-"changelogithub@patch:changelogithub@npm:0.12.7#.yarn/patches/changelogithub-npm-0.12.7-72f348805d.patch::locator=zk-groups%40workspace%3A.":
+"changelogithub@patch:changelogithub@npm:0.12.7#.yarn/patches/changelogithub-npm-0.12.7-72f348805d.patch::locator=bandada%40workspace%3A.":
version: 0.12.7
- resolution: "changelogithub@patch:changelogithub@npm%3A0.12.7#.yarn/patches/changelogithub-npm-0.12.7-72f348805d.patch::version=0.12.7&hash=f5a921&locator=zk-groups%40workspace%3A."
+ resolution: "changelogithub@patch:changelogithub@npm%3A0.12.7#.yarn/patches/changelogithub-npm-0.12.7-72f348805d.patch::version=0.12.7&hash=f5a921&locator=bandada%40workspace%3A."
dependencies:
"@antfu/utils": ^0.7.2
c12: ^1.1.0
@@ -8641,6 +8673,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "client@workspace:apps/client"
dependencies:
+ "@bandada/utils": 0.4.0
"@chakra-ui/react": ^2.5.1
"@emotion/react": ^11.10.6
"@emotion/styled": ^11.10.6
@@ -8650,7 +8683,6 @@ __metadata:
"@vitejs/plugin-react": ^3.1.0
"@web3-react/core": ^6.1.9
"@web3-react/injected-connector": ^6.0.7
- "@zk-groups/utils": 0.4.0
ethers: ^5.4.7
framer-motion: ^10.0.1
react: ^18.2.0
@@ -9420,6 +9452,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "dashboard@workspace:apps/dashboard"
dependencies:
+ "@bandada/utils": 0.4.0
"@chakra-ui/react": ^2.5.1
"@chakra-ui/theme-tools": ^2.0.16
"@emotion/react": ^11.10.6
@@ -9432,7 +9465,6 @@ __metadata:
"@vitejs/plugin-react": ^3.1.0
"@web3-react/core": ^6.1.9
"@web3-react/injected-connector": ^6.0.7
- "@zk-groups/utils": 0.4.0
ethers: ^5.4.7
framer-motion: ^10.0.1
react: ^18.2.0
@@ -21054,38 +21086,6 @@ __metadata:
languageName: node
linkType: hard
-"zk-groups@workspace:.":
- version: 0.0.0-use.local
- resolution: "zk-groups@workspace:."
- dependencies:
- "@commitlint/cli": ^17.0.0
- "@commitlint/config-conventional": ^17.4.3
- "@types/jest": 29.4.0
- "@types/node": 18.11.18
- "@typescript-eslint/eslint-plugin": ^5.13.0
- "@typescript-eslint/parser": ^5.0.0
- changelogithub: 0.12.7
- commitizen: ^4.2.4
- cz-conventional-changelog: ^3.3.0
- eslint: ^8.2.0
- eslint-config-airbnb: ^19.0.4
- eslint-config-airbnb-typescript: ^17.0.0
- eslint-config-prettier: ^8.6.0
- eslint-plugin-import: ^2.25.3
- eslint-plugin-jest: ^27.2.1
- eslint-plugin-jsx-a11y: ^6.5.1
- eslint-plugin-react: ^7.28.0
- eslint-plugin-react-hooks: ^4.3.0
- husky: ^8.0.0
- jest: 29.4.3
- lint-staged: ^12.4.2
- prettier: ^2.8.4
- ts-jest: 29.0.5
- tslib: ^2.5.0
- typescript: ^4.7.0
- languageName: unknown
- linkType: soft
-
"zustand@npm:^4.3.1":
version: 4.3.2
resolution: "zustand@npm:4.3.2"