mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-09 20:58:08 -05:00
fix: lint issues
This commit is contained in:
@@ -215,22 +215,22 @@ Deploy the contracts to the local network using the below command:
|
||||
|
||||
```sh
|
||||
#PWD /apps/contracts
|
||||
yarn deploy:zkgroups-semaphore --network local
|
||||
yarn deploy:zkgroups-semaphore --network local
|
||||
```
|
||||
|
||||
The addresses of contracts deployed in a fresh local network would be:
|
||||
|
||||
```sh
|
||||
Pairing library has been deployed to: 0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab
|
||||
SemaphoreVerifier contract has been deployed to: 0x5b1869D9A4C187F2EAa108f3062412ecf0526b24
|
||||
ZKGroups contract has been deployed to: 0xCfEB869F69431e42cdB54A4F4f105C19C080A601
|
||||
ZKGroupsSemaphore contract has been deployed to: 0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B
|
||||
```
|
||||
|
||||
These values are set as defaults in `libs/utils/src/contract-addresses.ts`. If you change the contract and deploy again, new address need to be set here.
|
||||
|
||||
|
||||
To reset the local network or TheGraph node, you can stop the docker containers, and delete the respective folders inside `./.data`.
|
||||
|
||||
|
||||
## Environment Variables
|
||||
|
||||
Below are the ENV variables used by the `api`:
|
||||
|
||||
@@ -13,7 +13,7 @@ dotenvConfig({ path: resolve(__dirname, "../../.env") })
|
||||
|
||||
function getNetworks(): NetworksUserConfig {
|
||||
if (!process.env.BACKEND_PRIVATE_KEY) {
|
||||
return {};
|
||||
return {}
|
||||
}
|
||||
|
||||
const infuraApiKey = process.env.INFURA_API_KEY
|
||||
@@ -23,7 +23,7 @@ function getNetworks(): NetworksUserConfig {
|
||||
local: {
|
||||
url: "http://localhost:8545",
|
||||
chainId: 1337,
|
||||
accounts,
|
||||
accounts
|
||||
},
|
||||
goerli: {
|
||||
url: `https://goerli.infura.io/v3/${infuraApiKey}`,
|
||||
|
||||
@@ -10,7 +10,12 @@ services:
|
||||
volumes:
|
||||
- ./.data/ganache:/ganache
|
||||
working_dir: /ganache
|
||||
command: ["sh", "-c", "npm install ganache-cli && npx ganache-cli -h 0.0.0.0 -i 1337 -l 8000000 --account 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d,1000000000000000000 -p 8545"]
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"npm install ganache-cli && npx ganache-cli -h 0.0.0.0 -i 1337 -l 8000000 --account 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d,1000000000000000000 -p 8545"
|
||||
]
|
||||
networks:
|
||||
- zk-groups-dev
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@ services:
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
|
||||
# postgres:
|
||||
# container_name: postgres
|
||||
# image: postgres
|
||||
@@ -80,7 +79,6 @@ services:
|
||||
# networks:
|
||||
# - zk-groups
|
||||
|
||||
|
||||
networks:
|
||||
zk-groups:
|
||||
internal: false
|
||||
|
||||
Reference in New Issue
Block a user