chore: rename to bandada in packages

This commit is contained in:
Saleel
2023-03-24 10:24:09 +05:30
parent f1fb022643
commit 00d9e46e8e
30 changed files with 213 additions and 214 deletions

View File

@@ -10,7 +10,7 @@ We're really glad you're reading this, because we need volunteer developers to h
## Issues
The best way to contribute to our projects is by opening a [new issue](https://github.com/semaphore-protocol/zk-groups/issues/new/choose) or tackling one of the issues listed [here](https://github.com/semaphore-protocol/zk-groups/contribute).
The best way to contribute to our projects is by opening a [new issue](https://github.com/privacy-scaling-explorations/bandada/issues/new/choose) or tackling one of the issues listed [here](https://github.com/privacy-scaling-explorations/bandada/contribute).
## Pull Requests

View File

@@ -1,6 +1,6 @@
<p align="center">
<h1 align="center">
ZK-Groups
Bandada
</h1>
</p>
@@ -8,17 +8,17 @@
<a href="https://github.com/privacy-scaling-explorations" target="_blank">
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/zk-groups.svg?style=flat-square">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/actions?query=workflow%3Atest">
<img alt="GitHub Workflow test" src="https://img.shields.io/github/actions/workflow/status/privacy-scaling-explorations/zk-groups/test.yml?branch=main&label=test&style=flat-square&logo=github">
<a href="https://github.com/privacy-scaling-explorations/bandada/actions?query=workflow%3Atest">
<img alt="GitHub Workflow test" src="https://img.shields.io/github/actions/workflow/status/privacy-scaling-explorations/bandada/test.yml?branch=main&label=test&style=flat-square&logo=github">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/actions?query=workflow%3Astyle">
<img alt="GitHub Workflow style" src="https://img.shields.io/github/actions/workflow/status/privacy-scaling-explorations/zk-groups/style.yml?branch=main&label=style&style=flat-square&logo=github">
<a href="https://github.com/privacy-scaling-explorations/bandada/actions?query=workflow%3Astyle">
<img alt="GitHub Workflow style" src="https://img.shields.io/github/actions/workflow/status/privacy-scaling-explorations/bandada/style.yml?branch=main&label=style&style=flat-square&logo=github">
</a>
<a href="https://coveralls.io/github/privacy-scaling-explorations/zk-groups">
<img alt="Coveralls" src="https://img.shields.io/coveralls/github/privacy-scaling-explorations/zk-groups?label=coverage (ts)&style=flat-square&logo=coveralls">
<a href="https://coveralls.io/github/privacy-scaling-explorations/bandada">
<img alt="Coveralls" src="https://img.shields.io/coveralls/github/privacy-scaling-explorations/bandada?label=coverage (ts)&style=flat-square&logo=coveralls">
</a>
<a href="https://eslint.org/">
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint">
@@ -39,7 +39,7 @@
🤝 Code of conduct
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
🔎 Issues
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
@@ -64,57 +64,57 @@
<tr>
<td>
<a href="/libs/hardhat">
@zk-groups/hardhat
@bandada/hardhat
</a>
</td>
<td>
<!-- NPM version -->
<a href="https://npmjs.org/package/@zk-groups/hardhat">
<img src="https://img.shields.io/npm/v/@zk-groups/hardhat.svg?style=flat-square" alt="NPM version" />
<a href="https://npmjs.org/package/@bandada/hardhat">
<img src="https://img.shields.io/npm/v/@bandada/hardhat.svg?style=flat-square" alt="NPM version" />
</a>
</td>
<td>
<!-- Downloads -->
<a href="https://npmjs.org/package/@zk-groups/hardhat">
<img src="https://img.shields.io/npm/dm/@zk-groups/hardhat.svg?style=flat-square" alt="Downloads" />
<a href="https://npmjs.org/package/@bandada/hardhat">
<img src="https://img.shields.io/npm/dm/@bandada/hardhat.svg?style=flat-square" alt="Downloads" />
</a>
</td>
</tr>
<tr>
<td>
<a href="/apps/contracts/contracts">
@zk-groups/contracts
@bandada/contracts
</a>
</td>
<td>
<!-- NPM version -->
<a href="https://npmjs.org/package/@zk-groups/contracts">
<img src="https://img.shields.io/npm/v/@zk-groups/contracts.svg?style=flat-square" alt="NPM version" />
<a href="https://npmjs.org/package/@bandada/contracts">
<img src="https://img.shields.io/npm/v/@bandada/contracts.svg?style=flat-square" alt="NPM version" />
</a>
</td>
<td>
<!-- Downloads -->
<a href="https://npmjs.org/package/@zk-groups/contracts">
<img src="https://img.shields.io/npm/dm/@zk-groups/contracts.svg?style=flat-square" alt="Downloads" />
<a href="https://npmjs.org/package/@bandada/contracts">
<img src="https://img.shields.io/npm/dm/@bandada/contracts.svg?style=flat-square" alt="Downloads" />
</a>
</td>
</tr>
<tr>
<td>
<a href="/libs/utils">
@zk-groups/utils
@bandada/utils
</a>
</td>
<td>
<!-- NPM version -->
<a href="https://npmjs.org/package/@zk-groups/utils">
<img src="https://img.shields.io/npm/v/@zk-groups/utils.svg?style=flat-square" alt="NPM version" />
<a href="https://npmjs.org/package/@bandada/utils">
<img src="https://img.shields.io/npm/v/@bandada/utils.svg?style=flat-square" alt="NPM version" />
</a>
</td>
<td>
<!-- Downloads -->
<a href="https://npmjs.org/package/@zk-groups/utils">
<img src="https://img.shields.io/npm/dm/@zk-groups/utils.svg?style=flat-square" alt="Downloads" />
<a href="https://npmjs.org/package/@bandada/utils">
<img src="https://img.shields.io/npm/dm/@bandada/utils.svg?style=flat-square" alt="Downloads" />
</a>
</td>
</tr>
@@ -126,13 +126,13 @@
Clone this repository:
```bash
git clone https://github.com/privacy-scaling-explorations/zk-groups.git
git clone https://github.com/privacy-scaling-explorations/bandada.git
```
and install the dependencies:
```bash
cd zk-groups && yarn
cd bandada && yarn
```
## 📜 Usage
@@ -207,7 +207,7 @@ yarn test
### Running in Docker
You can also run the entire `zk-groups` using docker by running below command in the project root:
You can also run the entire `bandada` using docker by running below command in the project root:
```sh
docker-compose up -d

View File

@@ -8,6 +8,7 @@
"build": "nest build"
},
"dependencies": {
"@bandada/utils": "0.4.0",
"@ethersproject/hash": "^5.7.0",
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0",
@@ -18,7 +19,6 @@
"@nestjs/schedule": "^2.2.0",
"@nestjs/typeorm": "^9.0.1",
"@semaphore-protocol/group": "3.4.0",
"@zk-groups/utils": "0.4.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cookie-parser": "^1.4.6",

View File

@@ -7,7 +7,7 @@ import { Group } from "./entities/group.entity"
import { Member } from "./entities/member.entity"
import { GroupsService } from "./groups.service"
jest.mock("@zk-groups/utils", () => ({
jest.mock("@zbandada/utils", () => ({
__esModule: true,
getBandadaContract: () => ({
updateGroups: jest.fn(() => ({

View File

@@ -14,7 +14,7 @@ import {
getBandadaContract,
Network,
BandadaContract
} from "@zk-groups/utils"
} from "@bandada/utils"
import { Repository } from "typeorm"
import { InvitesService } from "../invites/invites.service"
import { AddMemberDto } from "./dto/add-member.dto"

View File

@@ -7,7 +7,7 @@ import { GroupsService } from "../groups/groups.service"
import { Invite } from "./entities/invite.entity"
import { InvitesService } from "./invites.service"
jest.mock("@zk-groups/utils", () => ({
jest.mock("@bandada/utils", () => ({
__esModule: true,
getBandadaContract: () => ({
updateGroups: jest.fn(() => ({

BIN
apps/api/zk-groups.db Normal file

Binary file not shown.

View File

@@ -8,13 +8,13 @@
"preview": "vite preview"
},
"dependencies": {
"@bandada/utils": "0.4.0",
"@chakra-ui/react": "^2.5.1",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@semaphore-protocol/identity": "3.4.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",

View File

@@ -11,7 +11,7 @@ import {
} from "@chakra-ui/react"
import { useWeb3React } from "@web3-react/core"
import { InjectedConnector } from "@web3-react/injected-connector"
import { shortenAddress } from "@zk-groups/utils"
import { shortenAddress } from "@bandada/utils"
import { providers } from "ethers"
import { useEffect } from "react"
import { Link } from "react-router-dom"

View File

@@ -1,5 +1,5 @@
import { Identity } from "@semaphore-protocol/identity"
import { request } from "@zk-groups/utils"
import { request } from "@bandada/utils"
import { Signer } from "ethers"
import { useCallback, useState } from "react"
import { Invite } from "../types/invite"

View File

@@ -1,36 +1,36 @@
<P align="center">
<h1 align="center">
ZK-Groups contracts
Bandada contracts
</h1>
<p align="center">Zk-groups smart contracts to manage off-chain groups and verify their zero-knowledge proofs.</p>
<p align="center">Bandada smart contracts to manage off-chain groups and verify their zero-knowledge proofs.</p>
</p>
<p align="center">
<a href="https://github.com/privacy-scaling-explorations/zk-groups">
<a href="https://github.com/privacy-scaling-explorations/bandada">
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/zk-groups.svg?style=flat-square">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@zk-groups/contracts">
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/contracts?style=flat-square" />
<a href="https://www.npmjs.com/package/@bandada/contracts">
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/contracts?style=flat-square" />
</a>
<a href="https://npmjs.org/package/@zk-groups/contracts">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/contracts.svg?style=flat-square" />
<a href="https://npmjs.org/package/@bandada/contracts">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/contracts.svg?style=flat-square" />
</a>
</p>
<div align="center">
<h4>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CONTRIBUTING.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CONTRIBUTING.md">
👥 Contributing
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CODE_OF_CONDUCT.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CODE_OF_CONDUCT.md">
🤝 Code of conduct
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
🔎 Issues
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
@@ -46,16 +46,16 @@
### npm or yarn
Install the `@zk-groups/contracts` package with npm:
Install the `@bandada/contracts` package with npm:
```bash
npm i @zk-groups/contracts
npm i @bandada/contracts
```
or yarn:
```bash
yarn add @zk-groups/contracts
yarn add @bandada/contracts
```
## 📜 Usage
@@ -90,7 +90,7 @@ yarn test:report-gas
### Deploy contracts
Deploy a zk-groups contract:
Deploy a bandada contract:
```bash
yarn deploy:bandada

View File

@@ -1,7 +1,7 @@
{
"name": "@zk-groups/contracts",
"name": "@bandada/contracts",
"version": "0.4.0",
"description": "Zk-groups smart contracts to manage off-chain groups and verify their zero-knowledge proofs.",
"description": "Bandada smart contracts to manage off-chain groups and verify their zero-knowledge proofs.",
"license": "MIT",
"files": [
"**/*.sol",
@@ -14,17 +14,16 @@
"ethereum",
"hardhat",
"smart-contracts",
"zk-groups",
"solidity",
"zero-knowledge",
"zk-snarks",
"zero-knowledge-proofs",
"proof-of-membership"
],
"repository": "https://github.com/privacy-scaling-explorations/zk-groups",
"homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/packages/contracts",
"repository": "https://github.com/privacy-scaling-explorations/bandada",
"homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/packages/contracts",
"bugs": {
"url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
"url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
},
"publishConfig": {
"access": "public"

View File

@@ -8,6 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@bandada/utils": "0.4.0",
"@chakra-ui/react": "^2.5.1",
"@chakra-ui/theme-tools": "^2.0.16",
"@emotion/react": "^11.10.6",
@@ -17,7 +18,6 @@
"@semaphore-protocol/data": "3.4.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",

View File

@@ -1,4 +1,4 @@
import { request } from "@zk-groups/utils"
import { request } from "@bandada/utils"
import { Group } from "../types/groups"
const API_URL = import.meta.env.VITE_API_URL

View File

@@ -15,7 +15,7 @@ import {
Text,
UseDisclosureProps
} from "@chakra-ui/react"
import { getSemaphoreContract } from "@zk-groups/utils"
import { getSemaphoreContract } from "@bandada/utils"
import { useCallback, useState } from "react"
import { useSigner } from "wagmi"

View File

@@ -16,7 +16,7 @@ import {
Spinner,
Text
} from "@chakra-ui/react"
import { getSemaphoreContract } from "@zk-groups/utils"
import { getSemaphoreContract } from "@bandada/utils"
import { useCallback, useEffect, useState } from "react"
import { useSearchParams } from "react-router-dom"
import { useSigner } from "wagmi"

View File

@@ -10,7 +10,7 @@ import {
Tooltip,
useClipboard
} from "@chakra-ui/react"
import { shortenAddress } from "@zk-groups/utils"
import { shortenAddress } from "@bandada/utils"
import { useCallback } from "react"
import { useLocation, useNavigate } from "react-router-dom"
import { useAccount, useDisconnect } from "wagmi"

View File

@@ -17,7 +17,7 @@ services:
"npm install ganache && npx ganache --database.dbPath /ganache/data -h 0.0.0.0 -i 1337 -l 8000000 --account 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80,100000000000000000000 -p 8545"
]
networks:
- zk-groups-dev
- bandada-dev
graph-node:
image: graphprotocol/graph-node
@@ -42,7 +42,7 @@ services:
GRAPH_LOG: info
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1
networks:
- zk-groups-dev
- bandada-dev
ipfs:
image: ipfs/go-ipfs:v0.4.23
@@ -51,7 +51,7 @@ services:
volumes:
- ./.data/ipfs:/data/ipfs
networks:
- zk-groups-dev
- bandada-dev
postgres:
image: postgres
@@ -63,11 +63,11 @@ services:
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: graph-node
networks:
- zk-groups-dev
- bandada-dev
volumes:
- ./.data/postgres:/var/lib/postgresql/data
networks:
zk-groups-dev:
bandada-dev:
internal: false
driver: bridge

View File

@@ -6,28 +6,28 @@ services:
build:
context: ./
dockerfile: ./apps/api/Dockerfile
image: zk-groups-api:latest
image: bandada-api:latest
restart: unless-stopped
env_file:
- apps/api/.env
ports:
- "3000:3000"
networks:
- zk-groups
- bandada
client:
container_name: client
build:
context: ./
dockerfile: ./apps/client/Dockerfile
image: zk-groups-client:latest
image: bandada-client:latest
restart: unless-stopped
environment:
- NODE_ENV=production
ports:
- "3002:80"
networks:
- zk-groups
- bandada
depends_on:
- api
@@ -36,14 +36,14 @@ services:
build:
context: ./
dockerfile: ./apps/dashboard/Dockerfile
image: zk-groups-dashboard:latest
image: bandada-dashboard:latest
restart: unless-stopped
environment:
- NODE_ENV=production
ports:
- "3001:80"
networks:
- zk-groups
- bandada
depends_on:
- api
@@ -53,7 +53,7 @@ services:
# environment:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: helloworld
# POSTGRES_DB: zk-groups
# POSTGRES_DB: bandada
# PGDATA: /data/postgres
# volumes:
# - postgres:/data/postgres
@@ -63,10 +63,10 @@ services:
# restart: unless-stopped
# command: postgres -c listen_addresses='*'
# networks:
# - zk-groups
# - bandada
networks:
zk-groups:
bandada:
internal: false
driver: bridge

View File

@@ -9,7 +9,7 @@ const libs: any = fs
rootDir: `libs/${name}/src`,
testRegex: ".*\\.test\\.ts$",
moduleNameMapper: {
"@zk-groups/(.*)": "<rootDir>/../$1/src/index.ts"
"@bandada/(.*)": "<rootDir>/../$1/src/index.ts"
},
moduleFileExtensions: ["js", "ts", "json"],
transform: {
@@ -25,7 +25,7 @@ export default async (): Promise<Config.InitialOptions> => ({
rootDir: "apps/api/src",
testRegex: ".*\\.test\\.ts$",
moduleNameMapper: {
"@zk-groups/(.*)": "<rootDir>/../../../libs/$1/src/index.ts"
"@bandada/(.*)": "<rootDir>/../../../libs/$1/src/index.ts"
},
moduleFileExtensions: ["js", "ts", "json"],
transform: {

View File

@@ -6,17 +6,17 @@
</p>
<p align="center">
<a href="https://github.com/privacy-scaling-explorations/zk-groups">
<a href="https://github.com/privacy-scaling-explorations/bandada">
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/zk-groups.svg?style=flat-square">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@zk-groups/hardhat">
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/hardhat?style=flat-square" />
<a href="https://www.npmjs.com/package/@bandada/hardhat">
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/hardhat?style=flat-square" />
</a>
<a href="https://npmjs.org/package/@zk-groups/hardhat">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/hardhat.svg?style=flat-square" />
<a href="https://npmjs.org/package/@bandada/hardhat">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/hardhat.svg?style=flat-square" />
</a>
<a href="https://eslint.org/">
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
@@ -28,15 +28,15 @@
<div align="center">
<h4>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CONTRIBUTING.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CONTRIBUTING.md">
👥 Contributing
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CODE_OF_CONDUCT.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CODE_OF_CONDUCT.md">
🤝 Code of conduct
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
🔎 Issues
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
@@ -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
})

View File

@@ -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"
},

View File

@@ -9,8 +9,8 @@ import "./tasks/deploy-bandada-semaphore"
extendConfig(
(config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => {
config.dependencyCompiler.paths = [
"@zk-groups/contracts/Bandada.sol",
"@zk-groups/contracts/protocols/BandadaSemaphore.sol",
"@bandada/contracts/Bandada.sol",
"@bandada/contracts/protocols/BandadaSemaphore.sol",
"@semaphore-protocol/contracts/base/Pairing.sol",
"@semaphore-protocol/contracts/base/SemaphoreVerifier.sol"
]

View File

@@ -1,6 +1,6 @@
import { task, types } from "hardhat/config"
task("deploy:zk-groups-semaphore", "Deploy a BandadaSemaphore contract")
task("deploy:bandada-semaphore", "Deploy BandadaSemaphore contract")
.addOptionalParam<boolean>(
"pairing",
"Pairing library address",
@@ -70,7 +70,7 @@ task("deploy:zk-groups-semaphore", "Deploy a BandadaSemaphore contract")
}
if (!bandadaAddress) {
const bandada = await run("deploy:zk-groups", { logs })
const bandada = await run("deploy:bandada", { logs })
bandadaAddress = bandada.address
}

View File

@@ -1,6 +1,6 @@
import { task, types } from "hardhat/config"
task("deploy:zk-groups", "Deploy a Bandada contract")
task("deploy:bandada", "Deploy a Bandada contract")
.addOptionalParam<boolean>("logs", "Print the logs", true, types.boolean)
.setAction(async ({ logs }, { ethers }): Promise<any> => {
const BandadaFactory = await ethers.getContractFactory("Bandada")

View File

@@ -6,17 +6,17 @@
</p>
<p align="center">
<a href="https://github.com/privacy-scaling-explorations/zk-groups">
<a href="https://github.com/privacy-scaling-explorations/bandada">
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
</a>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/zk-groups.svg?style=flat-square">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@zk-groups/utils">
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/utils?style=flat-square" />
<a href="https://www.npmjs.com/package/@bandada/utils">
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/utils?style=flat-square" />
</a>
<a href="https://npmjs.org/package/@zk-groups/utils">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/utils.svg?style=flat-square" />
<a href="https://npmjs.org/package/@bandada/utils">
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/utils.svg?style=flat-square" />
</a>
<a href="https://eslint.org/">
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
@@ -28,15 +28,15 @@
<div align="center">
<h4>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CONTRIBUTING.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CONTRIBUTING.md">
👥 Contributing
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/CODE_OF_CONDUCT.md">
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CODE_OF_CONDUCT.md">
🤝 Code of conduct
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
🔎 Issues
</a>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
@@ -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
```

View File

@@ -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",

View File

@@ -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",

View File

@@ -17,7 +17,7 @@
"allowSyntheticDefaultImports": true,
"declarationDir": "types",
"paths": {
"@zk-groups/*": ["libs/*/src"]
"@bandada/*": ["libs/*/src"]
}
}
}

176
yarn.lock
View File

@@ -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"