mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-10 00:37:55 -05:00
chore: rename to bandada in packages
This commit is contained in:
@@ -10,7 +10,7 @@ We're really glad you're reading this, because we need volunteer developers to h
|
|||||||
|
|
||||||
## Issues
|
## 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
|
## Pull Requests
|
||||||
|
|
||||||
|
|||||||
56
README.md
56
README.md
@@ -1,6 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<h1 align="center">
|
<h1 align="center">
|
||||||
ZK-Groups
|
Bandada
|
||||||
</h1>
|
</h1>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -8,17 +8,17 @@
|
|||||||
<a href="https://github.com/privacy-scaling-explorations" target="_blank">
|
<a href="https://github.com/privacy-scaling-explorations" target="_blank">
|
||||||
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
|
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
|
<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/zk-groups.svg?style=flat-square">
|
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/actions?query=workflow%3Atest">
|
<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/zk-groups/test.yml?branch=main&label=test&style=flat-square&logo=github">
|
<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>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/actions?query=workflow%3Astyle">
|
<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/zk-groups/style.yml?branch=main&label=style&style=flat-square&logo=github">
|
<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>
|
||||||
<a href="https://coveralls.io/github/privacy-scaling-explorations/zk-groups">
|
<a href="https://coveralls.io/github/privacy-scaling-explorations/bandada">
|
||||||
<img alt="Coveralls" src="https://img.shields.io/coveralls/github/privacy-scaling-explorations/zk-groups?label=coverage (ts)&style=flat-square&logo=coveralls">
|
<img alt="Coveralls" src="https://img.shields.io/coveralls/github/privacy-scaling-explorations/bandada?label=coverage (ts)&style=flat-square&logo=coveralls">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://eslint.org/">
|
<a href="https://eslint.org/">
|
||||||
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint">
|
<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
|
🤝 Code of conduct
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
|
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
|
||||||
🔎 Issues
|
🔎 Issues
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
@@ -64,57 +64,57 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/libs/hardhat">
|
<a href="/libs/hardhat">
|
||||||
@zk-groups/hardhat
|
@bandada/hardhat
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- NPM version -->
|
<!-- NPM version -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/hardhat">
|
<a href="https://npmjs.org/package/@bandada/hardhat">
|
||||||
<img src="https://img.shields.io/npm/v/@zk-groups/hardhat.svg?style=flat-square" alt="NPM version" />
|
<img src="https://img.shields.io/npm/v/@bandada/hardhat.svg?style=flat-square" alt="NPM version" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- Downloads -->
|
<!-- Downloads -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/hardhat">
|
<a href="https://npmjs.org/package/@bandada/hardhat">
|
||||||
<img src="https://img.shields.io/npm/dm/@zk-groups/hardhat.svg?style=flat-square" alt="Downloads" />
|
<img src="https://img.shields.io/npm/dm/@bandada/hardhat.svg?style=flat-square" alt="Downloads" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/apps/contracts/contracts">
|
<a href="/apps/contracts/contracts">
|
||||||
@zk-groups/contracts
|
@bandada/contracts
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- NPM version -->
|
<!-- NPM version -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/contracts">
|
<a href="https://npmjs.org/package/@bandada/contracts">
|
||||||
<img src="https://img.shields.io/npm/v/@zk-groups/contracts.svg?style=flat-square" alt="NPM version" />
|
<img src="https://img.shields.io/npm/v/@bandada/contracts.svg?style=flat-square" alt="NPM version" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- Downloads -->
|
<!-- Downloads -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/contracts">
|
<a href="https://npmjs.org/package/@bandada/contracts">
|
||||||
<img src="https://img.shields.io/npm/dm/@zk-groups/contracts.svg?style=flat-square" alt="Downloads" />
|
<img src="https://img.shields.io/npm/dm/@bandada/contracts.svg?style=flat-square" alt="Downloads" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/libs/utils">
|
<a href="/libs/utils">
|
||||||
@zk-groups/utils
|
@bandada/utils
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- NPM version -->
|
<!-- NPM version -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/utils">
|
<a href="https://npmjs.org/package/@bandada/utils">
|
||||||
<img src="https://img.shields.io/npm/v/@zk-groups/utils.svg?style=flat-square" alt="NPM version" />
|
<img src="https://img.shields.io/npm/v/@bandada/utils.svg?style=flat-square" alt="NPM version" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- Downloads -->
|
<!-- Downloads -->
|
||||||
<a href="https://npmjs.org/package/@zk-groups/utils">
|
<a href="https://npmjs.org/package/@bandada/utils">
|
||||||
<img src="https://img.shields.io/npm/dm/@zk-groups/utils.svg?style=flat-square" alt="Downloads" />
|
<img src="https://img.shields.io/npm/dm/@bandada/utils.svg?style=flat-square" alt="Downloads" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -126,13 +126,13 @@
|
|||||||
Clone this repository:
|
Clone this repository:
|
||||||
|
|
||||||
```bash
|
```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:
|
and install the dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd zk-groups && yarn
|
cd bandada && yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📜 Usage
|
## 📜 Usage
|
||||||
@@ -207,7 +207,7 @@ yarn test
|
|||||||
|
|
||||||
### Running in Docker
|
### 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
|
```sh
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"build": "nest build"
|
"build": "nest build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@bandada/utils": "0.4.0",
|
||||||
"@ethersproject/hash": "^5.7.0",
|
"@ethersproject/hash": "^5.7.0",
|
||||||
"@nestjs/common": "^9.0.0",
|
"@nestjs/common": "^9.0.0",
|
||||||
"@nestjs/core": "^9.0.0",
|
"@nestjs/core": "^9.0.0",
|
||||||
@@ -18,7 +19,6 @@
|
|||||||
"@nestjs/schedule": "^2.2.0",
|
"@nestjs/schedule": "^2.2.0",
|
||||||
"@nestjs/typeorm": "^9.0.1",
|
"@nestjs/typeorm": "^9.0.1",
|
||||||
"@semaphore-protocol/group": "3.4.0",
|
"@semaphore-protocol/group": "3.4.0",
|
||||||
"@zk-groups/utils": "0.4.0",
|
|
||||||
"class-transformer": "^0.5.1",
|
"class-transformer": "^0.5.1",
|
||||||
"class-validator": "^0.14.0",
|
"class-validator": "^0.14.0",
|
||||||
"cookie-parser": "^1.4.6",
|
"cookie-parser": "^1.4.6",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Group } from "./entities/group.entity"
|
|||||||
import { Member } from "./entities/member.entity"
|
import { Member } from "./entities/member.entity"
|
||||||
import { GroupsService } from "./groups.service"
|
import { GroupsService } from "./groups.service"
|
||||||
|
|
||||||
jest.mock("@zk-groups/utils", () => ({
|
jest.mock("@zbandada/utils", () => ({
|
||||||
__esModule: true,
|
__esModule: true,
|
||||||
getBandadaContract: () => ({
|
getBandadaContract: () => ({
|
||||||
updateGroups: jest.fn(() => ({
|
updateGroups: jest.fn(() => ({
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
getBandadaContract,
|
getBandadaContract,
|
||||||
Network,
|
Network,
|
||||||
BandadaContract
|
BandadaContract
|
||||||
} from "@zk-groups/utils"
|
} from "@bandada/utils"
|
||||||
import { Repository } from "typeorm"
|
import { Repository } from "typeorm"
|
||||||
import { InvitesService } from "../invites/invites.service"
|
import { InvitesService } from "../invites/invites.service"
|
||||||
import { AddMemberDto } from "./dto/add-member.dto"
|
import { AddMemberDto } from "./dto/add-member.dto"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { GroupsService } from "../groups/groups.service"
|
|||||||
import { Invite } from "./entities/invite.entity"
|
import { Invite } from "./entities/invite.entity"
|
||||||
import { InvitesService } from "./invites.service"
|
import { InvitesService } from "./invites.service"
|
||||||
|
|
||||||
jest.mock("@zk-groups/utils", () => ({
|
jest.mock("@bandada/utils", () => ({
|
||||||
__esModule: true,
|
__esModule: true,
|
||||||
getBandadaContract: () => ({
|
getBandadaContract: () => ({
|
||||||
updateGroups: jest.fn(() => ({
|
updateGroups: jest.fn(() => ({
|
||||||
|
|||||||
BIN
apps/api/zk-groups.db
Normal file
BIN
apps/api/zk-groups.db
Normal file
Binary file not shown.
@@ -8,13 +8,13 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@bandada/utils": "0.4.0",
|
||||||
"@chakra-ui/react": "^2.5.1",
|
"@chakra-ui/react": "^2.5.1",
|
||||||
"@emotion/react": "^11.10.6",
|
"@emotion/react": "^11.10.6",
|
||||||
"@emotion/styled": "^11.10.6",
|
"@emotion/styled": "^11.10.6",
|
||||||
"@semaphore-protocol/identity": "3.4.0",
|
"@semaphore-protocol/identity": "3.4.0",
|
||||||
"@web3-react/core": "^6.1.9",
|
"@web3-react/core": "^6.1.9",
|
||||||
"@web3-react/injected-connector": "^6.0.7",
|
"@web3-react/injected-connector": "^6.0.7",
|
||||||
"@zk-groups/utils": "0.4.0",
|
|
||||||
"ethers": "^5.4.7",
|
"ethers": "^5.4.7",
|
||||||
"framer-motion": "^10.0.1",
|
"framer-motion": "^10.0.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { useWeb3React } from "@web3-react/core"
|
import { useWeb3React } from "@web3-react/core"
|
||||||
import { InjectedConnector } from "@web3-react/injected-connector"
|
import { InjectedConnector } from "@web3-react/injected-connector"
|
||||||
import { shortenAddress } from "@zk-groups/utils"
|
import { shortenAddress } from "@bandada/utils"
|
||||||
import { providers } from "ethers"
|
import { providers } from "ethers"
|
||||||
import { useEffect } from "react"
|
import { useEffect } from "react"
|
||||||
import { Link } from "react-router-dom"
|
import { Link } from "react-router-dom"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Identity } from "@semaphore-protocol/identity"
|
import { Identity } from "@semaphore-protocol/identity"
|
||||||
import { request } from "@zk-groups/utils"
|
import { request } from "@bandada/utils"
|
||||||
import { Signer } from "ethers"
|
import { Signer } from "ethers"
|
||||||
import { useCallback, useState } from "react"
|
import { useCallback, useState } from "react"
|
||||||
import { Invite } from "../types/invite"
|
import { Invite } from "../types/invite"
|
||||||
|
|||||||
@@ -1,36 +1,36 @@
|
|||||||
<P align="center">
|
<P align="center">
|
||||||
<h1 align="center">
|
<h1 align="center">
|
||||||
ZK-Groups contracts
|
Bandada contracts
|
||||||
</h1>
|
</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>
|
||||||
|
|
||||||
<p align="center">
|
<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">
|
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
|
<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/zk-groups.svg?style=flat-square">
|
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.npmjs.com/package/@zk-groups/contracts">
|
<a href="https://www.npmjs.com/package/@bandada/contracts">
|
||||||
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/contracts?style=flat-square" />
|
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/contracts?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://npmjs.org/package/@zk-groups/contracts">
|
<a href="https://npmjs.org/package/@bandada/contracts">
|
||||||
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/contracts.svg?style=flat-square" />
|
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/contracts.svg?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<h4>
|
<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
|
👥 Contributing
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </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
|
🤝 Code of conduct
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
|
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
|
||||||
🔎 Issues
|
🔎 Issues
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
@@ -46,16 +46,16 @@
|
|||||||
|
|
||||||
### npm or yarn
|
### npm or yarn
|
||||||
|
|
||||||
Install the `@zk-groups/contracts` package with npm:
|
Install the `@bandada/contracts` package with npm:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm i @zk-groups/contracts
|
npm i @bandada/contracts
|
||||||
```
|
```
|
||||||
|
|
||||||
or yarn:
|
or yarn:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @zk-groups/contracts
|
yarn add @bandada/contracts
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📜 Usage
|
## 📜 Usage
|
||||||
@@ -90,7 +90,7 @@ yarn test:report-gas
|
|||||||
|
|
||||||
### Deploy contracts
|
### Deploy contracts
|
||||||
|
|
||||||
Deploy a zk-groups contract:
|
Deploy a bandada contract:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn deploy:bandada
|
yarn deploy:bandada
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@zk-groups/contracts",
|
"name": "@bandada/contracts",
|
||||||
"version": "0.4.0",
|
"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",
|
"license": "MIT",
|
||||||
"files": [
|
"files": [
|
||||||
"**/*.sol",
|
"**/*.sol",
|
||||||
@@ -14,17 +14,16 @@
|
|||||||
"ethereum",
|
"ethereum",
|
||||||
"hardhat",
|
"hardhat",
|
||||||
"smart-contracts",
|
"smart-contracts",
|
||||||
"zk-groups",
|
|
||||||
"solidity",
|
"solidity",
|
||||||
"zero-knowledge",
|
"zero-knowledge",
|
||||||
"zk-snarks",
|
"zk-snarks",
|
||||||
"zero-knowledge-proofs",
|
"zero-knowledge-proofs",
|
||||||
"proof-of-membership"
|
"proof-of-membership"
|
||||||
],
|
],
|
||||||
"repository": "https://github.com/privacy-scaling-explorations/zk-groups",
|
"repository": "https://github.com/privacy-scaling-explorations/bandada",
|
||||||
"homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/packages/contracts",
|
"homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/packages/contracts",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
|
"url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@bandada/utils": "0.4.0",
|
||||||
"@chakra-ui/react": "^2.5.1",
|
"@chakra-ui/react": "^2.5.1",
|
||||||
"@chakra-ui/theme-tools": "^2.0.16",
|
"@chakra-ui/theme-tools": "^2.0.16",
|
||||||
"@emotion/react": "^11.10.6",
|
"@emotion/react": "^11.10.6",
|
||||||
@@ -17,7 +18,6 @@
|
|||||||
"@semaphore-protocol/data": "3.4.0",
|
"@semaphore-protocol/data": "3.4.0",
|
||||||
"@web3-react/core": "^6.1.9",
|
"@web3-react/core": "^6.1.9",
|
||||||
"@web3-react/injected-connector": "^6.0.7",
|
"@web3-react/injected-connector": "^6.0.7",
|
||||||
"@zk-groups/utils": "0.4.0",
|
|
||||||
"ethers": "^5.4.7",
|
"ethers": "^5.4.7",
|
||||||
"framer-motion": "^10.0.1",
|
"framer-motion": "^10.0.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { request } from "@zk-groups/utils"
|
import { request } from "@bandada/utils"
|
||||||
import { Group } from "../types/groups"
|
import { Group } from "../types/groups"
|
||||||
|
|
||||||
const API_URL = import.meta.env.VITE_API_URL
|
const API_URL = import.meta.env.VITE_API_URL
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
UseDisclosureProps
|
UseDisclosureProps
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { getSemaphoreContract } from "@zk-groups/utils"
|
import { getSemaphoreContract } from "@bandada/utils"
|
||||||
import { useCallback, useState } from "react"
|
import { useCallback, useState } from "react"
|
||||||
import { useSigner } from "wagmi"
|
import { useSigner } from "wagmi"
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
Spinner,
|
Spinner,
|
||||||
Text
|
Text
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { getSemaphoreContract } from "@zk-groups/utils"
|
import { getSemaphoreContract } from "@bandada/utils"
|
||||||
import { useCallback, useEffect, useState } from "react"
|
import { useCallback, useEffect, useState } from "react"
|
||||||
import { useSearchParams } from "react-router-dom"
|
import { useSearchParams } from "react-router-dom"
|
||||||
import { useSigner } from "wagmi"
|
import { useSigner } from "wagmi"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
Tooltip,
|
Tooltip,
|
||||||
useClipboard
|
useClipboard
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { shortenAddress } from "@zk-groups/utils"
|
import { shortenAddress } from "@bandada/utils"
|
||||||
import { useCallback } from "react"
|
import { useCallback } from "react"
|
||||||
import { useLocation, useNavigate } from "react-router-dom"
|
import { useLocation, useNavigate } from "react-router-dom"
|
||||||
import { useAccount, useDisconnect } from "wagmi"
|
import { useAccount, useDisconnect } from "wagmi"
|
||||||
|
|||||||
@@ -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"
|
"npm install ganache && npx ganache --database.dbPath /ganache/data -h 0.0.0.0 -i 1337 -l 8000000 --account 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80,100000000000000000000 -p 8545"
|
||||||
]
|
]
|
||||||
networks:
|
networks:
|
||||||
- zk-groups-dev
|
- bandada-dev
|
||||||
|
|
||||||
graph-node:
|
graph-node:
|
||||||
image: graphprotocol/graph-node
|
image: graphprotocol/graph-node
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
GRAPH_LOG: info
|
GRAPH_LOG: info
|
||||||
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1
|
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1
|
||||||
networks:
|
networks:
|
||||||
- zk-groups-dev
|
- bandada-dev
|
||||||
|
|
||||||
ipfs:
|
ipfs:
|
||||||
image: ipfs/go-ipfs:v0.4.23
|
image: ipfs/go-ipfs:v0.4.23
|
||||||
@@ -51,7 +51,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./.data/ipfs:/data/ipfs
|
- ./.data/ipfs:/data/ipfs
|
||||||
networks:
|
networks:
|
||||||
- zk-groups-dev
|
- bandada-dev
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
@@ -63,11 +63,11 @@ services:
|
|||||||
POSTGRES_PASSWORD: let-me-in
|
POSTGRES_PASSWORD: let-me-in
|
||||||
POSTGRES_DB: graph-node
|
POSTGRES_DB: graph-node
|
||||||
networks:
|
networks:
|
||||||
- zk-groups-dev
|
- bandada-dev
|
||||||
volumes:
|
volumes:
|
||||||
- ./.data/postgres:/var/lib/postgresql/data
|
- ./.data/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
zk-groups-dev:
|
bandada-dev:
|
||||||
internal: false
|
internal: false
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|||||||
@@ -6,28 +6,28 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./apps/api/Dockerfile
|
dockerfile: ./apps/api/Dockerfile
|
||||||
image: zk-groups-api:latest
|
image: bandada-api:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- apps/api/.env
|
- apps/api/.env
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
- zk-groups
|
- bandada
|
||||||
|
|
||||||
client:
|
client:
|
||||||
container_name: client
|
container_name: client
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./apps/client/Dockerfile
|
dockerfile: ./apps/client/Dockerfile
|
||||||
image: zk-groups-client:latest
|
image: bandada-client:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
ports:
|
ports:
|
||||||
- "3002:80"
|
- "3002:80"
|
||||||
networks:
|
networks:
|
||||||
- zk-groups
|
- bandada
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|
||||||
@@ -36,14 +36,14 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./apps/dashboard/Dockerfile
|
dockerfile: ./apps/dashboard/Dockerfile
|
||||||
image: zk-groups-dashboard:latest
|
image: bandada-dashboard:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
ports:
|
ports:
|
||||||
- "3001:80"
|
- "3001:80"
|
||||||
networks:
|
networks:
|
||||||
- zk-groups
|
- bandada
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ services:
|
|||||||
# environment:
|
# environment:
|
||||||
# POSTGRES_USER: root
|
# POSTGRES_USER: root
|
||||||
# POSTGRES_PASSWORD: helloworld
|
# POSTGRES_PASSWORD: helloworld
|
||||||
# POSTGRES_DB: zk-groups
|
# POSTGRES_DB: bandada
|
||||||
# PGDATA: /data/postgres
|
# PGDATA: /data/postgres
|
||||||
# volumes:
|
# volumes:
|
||||||
# - postgres:/data/postgres
|
# - postgres:/data/postgres
|
||||||
@@ -63,10 +63,10 @@ services:
|
|||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
# command: postgres -c listen_addresses='*'
|
# command: postgres -c listen_addresses='*'
|
||||||
# networks:
|
# networks:
|
||||||
# - zk-groups
|
# - bandada
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
zk-groups:
|
bandada:
|
||||||
internal: false
|
internal: false
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const libs: any = fs
|
|||||||
rootDir: `libs/${name}/src`,
|
rootDir: `libs/${name}/src`,
|
||||||
testRegex: ".*\\.test\\.ts$",
|
testRegex: ".*\\.test\\.ts$",
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"@zk-groups/(.*)": "<rootDir>/../$1/src/index.ts"
|
"@bandada/(.*)": "<rootDir>/../$1/src/index.ts"
|
||||||
},
|
},
|
||||||
moduleFileExtensions: ["js", "ts", "json"],
|
moduleFileExtensions: ["js", "ts", "json"],
|
||||||
transform: {
|
transform: {
|
||||||
@@ -25,7 +25,7 @@ export default async (): Promise<Config.InitialOptions> => ({
|
|||||||
rootDir: "apps/api/src",
|
rootDir: "apps/api/src",
|
||||||
testRegex: ".*\\.test\\.ts$",
|
testRegex: ".*\\.test\\.ts$",
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"@zk-groups/(.*)": "<rootDir>/../../../libs/$1/src/index.ts"
|
"@bandada/(.*)": "<rootDir>/../../../libs/$1/src/index.ts"
|
||||||
},
|
},
|
||||||
moduleFileExtensions: ["js", "ts", "json"],
|
moduleFileExtensions: ["js", "ts", "json"],
|
||||||
transform: {
|
transform: {
|
||||||
|
|||||||
@@ -6,17 +6,17 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<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">
|
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
|
<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/zk-groups.svg?style=flat-square">
|
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.npmjs.com/package/@zk-groups/hardhat">
|
<a href="https://www.npmjs.com/package/@bandada/hardhat">
|
||||||
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/hardhat?style=flat-square" />
|
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/hardhat?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://npmjs.org/package/@zk-groups/hardhat">
|
<a href="https://npmjs.org/package/@bandada/hardhat">
|
||||||
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/hardhat.svg?style=flat-square" />
|
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/hardhat.svg?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://eslint.org/">
|
<a href="https://eslint.org/">
|
||||||
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
|
<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">
|
<div align="center">
|
||||||
<h4>
|
<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
|
👥 Contributing
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </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
|
🤝 Code of conduct
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
|
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
|
||||||
🔎 Issues
|
🔎 Issues
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
@@ -53,16 +53,16 @@
|
|||||||
|
|
||||||
### npm or yarn
|
### npm or yarn
|
||||||
|
|
||||||
Install the `@zk-groups/hardhat` package with npm:
|
Install the `@bandada/hardhat` package with npm:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm i @zk-groups/hardhat
|
npm i @bandada/hardhat
|
||||||
```
|
```
|
||||||
|
|
||||||
or yarn:
|
or yarn:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @zk-groups/hardhat
|
yarn add @bandada/hardhat
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📜 Usage
|
## 📜 Usage
|
||||||
@@ -70,7 +70,7 @@ yarn add @zk-groups/hardhat
|
|||||||
Import the plugin in your `hardhat.config.ts` file:
|
Import the plugin in your `hardhat.config.ts` file:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import "@zk-groups/hardhat"
|
import "@bandada/hardhat"
|
||||||
import "./tasks/deploy"
|
import "./tasks/deploy"
|
||||||
|
|
||||||
const hardhatConfig: HardhatUserConfig = {
|
const hardhatConfig: HardhatUserConfig = {
|
||||||
@@ -88,7 +88,7 @@ import { task, types } from "hardhat/config"
|
|||||||
task("deploy", "Deploy a Greeter contract")
|
task("deploy", "Deploy a Greeter contract")
|
||||||
.addOptionalParam("logs", "Print the logs", true, types.boolean)
|
.addOptionalParam("logs", "Print the logs", true, types.boolean)
|
||||||
.setAction(async ({ logs }, { ethers, run }) => {
|
.setAction(async ({ logs }, { ethers, run }) => {
|
||||||
const { bandada } = await run("deploy:zk-groups", {
|
const { bandada } = await run("deploy:bandada", {
|
||||||
logs
|
logs
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@zk-groups/hardhat",
|
"name": "@bandada/hardhat",
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"description": "A Hardhat plugin which provides tasks to deploy Bandada contracts.",
|
"description": "A Hardhat plugin which provides tasks to deploy Bandada contracts.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
"LICENSE",
|
"LICENSE",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"repository": "https://github.com/privacy-scaling-explorations/zk-groups",
|
"repository": "https://github.com/privacy-scaling-explorations/bandada",
|
||||||
"homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/libs/hardhat",
|
"homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/hardhat",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
|
"url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
|
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
|
||||||
@@ -39,9 +39,9 @@
|
|||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"@bandada/contracts": "0.4.0",
|
||||||
"@nomiclabs/hardhat-ethers": "^2.0.0",
|
"@nomiclabs/hardhat-ethers": "^2.0.0",
|
||||||
"@semaphore-protocol/contracts": "3.4.0",
|
"@semaphore-protocol/contracts": "3.4.0",
|
||||||
"@zk-groups/contracts": "0.4.0",
|
|
||||||
"ethers": "^5.4.7",
|
"ethers": "^5.4.7",
|
||||||
"hardhat": "^2.11.0"
|
"hardhat": "^2.11.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import "./tasks/deploy-bandada-semaphore"
|
|||||||
extendConfig(
|
extendConfig(
|
||||||
(config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => {
|
(config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => {
|
||||||
config.dependencyCompiler.paths = [
|
config.dependencyCompiler.paths = [
|
||||||
"@zk-groups/contracts/Bandada.sol",
|
"@bandada/contracts/Bandada.sol",
|
||||||
"@zk-groups/contracts/protocols/BandadaSemaphore.sol",
|
"@bandada/contracts/protocols/BandadaSemaphore.sol",
|
||||||
"@semaphore-protocol/contracts/base/Pairing.sol",
|
"@semaphore-protocol/contracts/base/Pairing.sol",
|
||||||
"@semaphore-protocol/contracts/base/SemaphoreVerifier.sol"
|
"@semaphore-protocol/contracts/base/SemaphoreVerifier.sol"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { task, types } from "hardhat/config"
|
import { task, types } from "hardhat/config"
|
||||||
|
|
||||||
task("deploy:zk-groups-semaphore", "Deploy a BandadaSemaphore contract")
|
task("deploy:bandada-semaphore", "Deploy BandadaSemaphore contract")
|
||||||
.addOptionalParam<boolean>(
|
.addOptionalParam<boolean>(
|
||||||
"pairing",
|
"pairing",
|
||||||
"Pairing library address",
|
"Pairing library address",
|
||||||
@@ -70,7 +70,7 @@ task("deploy:zk-groups-semaphore", "Deploy a BandadaSemaphore contract")
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!bandadaAddress) {
|
if (!bandadaAddress) {
|
||||||
const bandada = await run("deploy:zk-groups", { logs })
|
const bandada = await run("deploy:bandada", { logs })
|
||||||
|
|
||||||
bandadaAddress = bandada.address
|
bandadaAddress = bandada.address
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { task, types } from "hardhat/config"
|
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)
|
.addOptionalParam<boolean>("logs", "Print the logs", true, types.boolean)
|
||||||
.setAction(async ({ logs }, { ethers }): Promise<any> => {
|
.setAction(async ({ logs }, { ethers }): Promise<any> => {
|
||||||
const BandadaFactory = await ethers.getContractFactory("Bandada")
|
const BandadaFactory = await ethers.getContractFactory("Bandada")
|
||||||
|
|||||||
@@ -6,17 +6,17 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<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">
|
<img src="https://img.shields.io/badge/project-ZKGroups-blue.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/blob/main/LICENSE">
|
<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/zk-groups.svg?style=flat-square">
|
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.npmjs.com/package/@zk-groups/utils">
|
<a href="https://www.npmjs.com/package/@bandada/utils">
|
||||||
<img alt="NPM version" src="https://img.shields.io/npm/v/@zk-groups/utils?style=flat-square" />
|
<img alt="NPM version" src="https://img.shields.io/npm/v/@bandada/utils?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://npmjs.org/package/@zk-groups/utils">
|
<a href="https://npmjs.org/package/@bandada/utils">
|
||||||
<img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-groups/utils.svg?style=flat-square" />
|
<img alt="Downloads" src="https://img.shields.io/npm/dm/@bandada/utils.svg?style=flat-square" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://eslint.org/">
|
<a href="https://eslint.org/">
|
||||||
<img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
|
<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">
|
<div align="center">
|
||||||
<h4>
|
<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
|
👥 Contributing
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </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
|
🤝 Code of conduct
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://github.com/privacy-scaling-explorations/zk-groups/contribute">
|
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute">
|
||||||
🔎 Issues
|
🔎 Issues
|
||||||
</a>
|
</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
@@ -53,14 +53,14 @@
|
|||||||
|
|
||||||
### npm or yarn
|
### npm or yarn
|
||||||
|
|
||||||
Install the `@zk-groups/utils` package with npm:
|
Install the `@bandada/utils` package with npm:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm i @zk-groups/utils
|
npm i @bandada/utils
|
||||||
```
|
```
|
||||||
|
|
||||||
or yarn:
|
or yarn:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @zk-groups/utils
|
yarn add @bandada/utils
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@zk-groups/utils",
|
"name": "@bandada/utils",
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"description": "General Bandada utility functions.",
|
"description": "General Bandada utility functions.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
"LICENSE",
|
"LICENSE",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"repository": "https://github.com/privacy-scaling-explorations/zk-groups",
|
"repository": "https://github.com/privacy-scaling-explorations/bandada",
|
||||||
"homepage": "https://github.com/privacy-scaling-explorations/zk-groups/tree/main/libs/utils",
|
"homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/utils",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/privacy-scaling-explorations/zk-groups.git/issues"
|
"url": "https://github.com/privacy-scaling-explorations/bandada.git/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
|
"build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "zk-groups",
|
"name": "bandada",
|
||||||
"description": "A system for managing privacy-preserving groups.",
|
"description": "A system for managing privacy-preserving groups.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "git@github.com:privacy-scaling-explorations/zk-groups.git",
|
"repository": "git@github.com:privacy-scaling-explorations/bandada.git",
|
||||||
"homepage": "https://github.com/privacy-scaling-explorations/zk-groups",
|
"homepage": "https://github.com/privacy-scaling-explorations/bandada",
|
||||||
"bugs": "https://github.com/privacy-scaling-explorations/zk-groups/issues",
|
"bugs": "https://github.com/privacy-scaling-explorations/bandada/issues",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn workspaces foreach -pi run start",
|
"start": "yarn workspaces foreach -pi run start",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"declarationDir": "types",
|
"declarationDir": "types",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@zk-groups/*": ["libs/*/src"]
|
"@bandada/*": ["libs/*/src"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
176
yarn.lock
176
yarn.lock
@@ -815,6 +815,57 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"@bcoe/v8-coverage@npm:^0.2.3":
|
||||||
version: 0.2.3
|
version: 0.2.3
|
||||||
resolution: "@bcoe/v8-coverage@npm:0.2.3"
|
resolution: "@bcoe/v8-coverage@npm:0.2.3"
|
||||||
@@ -6624,57 +6675,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"@zk-kit/incremental-merkle-tree.sol@npm:1.3.3":
|
||||||
version: 1.3.3
|
version: 1.3.3
|
||||||
resolution: "@zk-kit/incremental-merkle-tree.sol@npm: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
|
version: 0.0.0-use.local
|
||||||
resolution: "api@workspace:apps/api"
|
resolution: "api@workspace:apps/api"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@bandada/utils": 0.4.0
|
||||||
"@ethersproject/hash": ^5.7.0
|
"@ethersproject/hash": ^5.7.0
|
||||||
"@nestjs/cli": ^9.0.0
|
"@nestjs/cli": ^9.0.0
|
||||||
"@nestjs/common": ^9.0.0
|
"@nestjs/common": ^9.0.0
|
||||||
@@ -7105,7 +7106,6 @@ __metadata:
|
|||||||
"@types/passport-github": ^1.1.7
|
"@types/passport-github": ^1.1.7
|
||||||
"@types/passport-jwt": ^3.0.8
|
"@types/passport-jwt": ^3.0.8
|
||||||
"@types/passport-twitter": ^1.0.37
|
"@types/passport-twitter": ^1.0.37
|
||||||
"@zk-groups/utils": 0.4.0
|
|
||||||
class-transformer: ^0.5.1
|
class-transformer: ^0.5.1
|
||||||
class-validator: ^0.14.0
|
class-validator: ^0.14.0
|
||||||
cookie-parser: ^1.4.6
|
cookie-parser: ^1.4.6
|
||||||
@@ -7644,6 +7644,38 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"base-x@npm:^3.0.2":
|
||||||
version: 3.0.9
|
version: 3.0.9
|
||||||
resolution: "base-x@npm:3.0.9"
|
resolution: "base-x@npm:3.0.9"
|
||||||
@@ -8349,9 +8381,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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
|
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:
|
dependencies:
|
||||||
"@antfu/utils": ^0.7.2
|
"@antfu/utils": ^0.7.2
|
||||||
c12: ^1.1.0
|
c12: ^1.1.0
|
||||||
@@ -8641,6 +8673,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "client@workspace:apps/client"
|
resolution: "client@workspace:apps/client"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@bandada/utils": 0.4.0
|
||||||
"@chakra-ui/react": ^2.5.1
|
"@chakra-ui/react": ^2.5.1
|
||||||
"@emotion/react": ^11.10.6
|
"@emotion/react": ^11.10.6
|
||||||
"@emotion/styled": ^11.10.6
|
"@emotion/styled": ^11.10.6
|
||||||
@@ -8650,7 +8683,6 @@ __metadata:
|
|||||||
"@vitejs/plugin-react": ^3.1.0
|
"@vitejs/plugin-react": ^3.1.0
|
||||||
"@web3-react/core": ^6.1.9
|
"@web3-react/core": ^6.1.9
|
||||||
"@web3-react/injected-connector": ^6.0.7
|
"@web3-react/injected-connector": ^6.0.7
|
||||||
"@zk-groups/utils": 0.4.0
|
|
||||||
ethers: ^5.4.7
|
ethers: ^5.4.7
|
||||||
framer-motion: ^10.0.1
|
framer-motion: ^10.0.1
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
@@ -9420,6 +9452,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "dashboard@workspace:apps/dashboard"
|
resolution: "dashboard@workspace:apps/dashboard"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@bandada/utils": 0.4.0
|
||||||
"@chakra-ui/react": ^2.5.1
|
"@chakra-ui/react": ^2.5.1
|
||||||
"@chakra-ui/theme-tools": ^2.0.16
|
"@chakra-ui/theme-tools": ^2.0.16
|
||||||
"@emotion/react": ^11.10.6
|
"@emotion/react": ^11.10.6
|
||||||
@@ -9432,7 +9465,6 @@ __metadata:
|
|||||||
"@vitejs/plugin-react": ^3.1.0
|
"@vitejs/plugin-react": ^3.1.0
|
||||||
"@web3-react/core": ^6.1.9
|
"@web3-react/core": ^6.1.9
|
||||||
"@web3-react/injected-connector": ^6.0.7
|
"@web3-react/injected-connector": ^6.0.7
|
||||||
"@zk-groups/utils": 0.4.0
|
|
||||||
ethers: ^5.4.7
|
ethers: ^5.4.7
|
||||||
framer-motion: ^10.0.1
|
framer-motion: ^10.0.1
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
@@ -21054,38 +21086,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"zustand@npm:^4.3.1":
|
||||||
version: 4.3.2
|
version: 4.3.2
|
||||||
resolution: "zustand@npm:4.3.2"
|
resolution: "zustand@npm:4.3.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user