Skip to content

Commit

Permalink
chore: update env variables and gitignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Feb 14, 2024
1 parent f4d8179 commit 5b1535e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 85 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
DEFAULT_NETWORK=localhost
INFURA_API_KEY=
ETHEREUM_PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
FEEDBACK_CONTRACT_ADDRESS=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9
SEMAPHORE_CONTRACT_ADDRESS=0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0
OPENZEPPELIN_AUTOTASK_WEBHOOK=
GROUP_ID=42
REPORT_GAS=false
COINMARKETCAP_API_KEY=
ETHERSCAN_API_KEY=
7 changes: 0 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
DEFAULT_NETWORK: "sepolia"
SEMAPHORE_CONTRACT_ADDRESS: "0x5B8e7cC7bAC61A4b952d472b67056B2f260ba6dc"
FEEDBACK_CONTRACT_ADDRESS: "0xF60BB52500652193930b40A0c680e7d1a02155FE"
GROUP_ID: 99
OPENZEPPELIN_AUTOTASK_WEBHOOK: "https://api.defender.openzeppelin.com/actions/20fce2ae-844b-4ec0-a6a2-90a3350a9d2c/runs/webhook/303216d1-fa7d-4fca-8c5b-7ba1ba544fc7/2T7i9xrkZA5j37hoaQLUuw"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down
64 changes: 0 additions & 64 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,12 @@ pids
.vscode
.idea

# Cargo
target

# Testing
coverage
coverage.json
*.lcov

# Dependency directories
node_modules/

# TypeScript cache
*.tsbuildinfo

# Output of 'npm pack'
*.tgz

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand All @@ -49,26 +35,9 @@ node_modules/
# Yarn Integrity file
.yarn-integrity

# Generate output
dist
build

# Hardhat files
artifacts
cache
typechain-types

# Next.js
.next/
out/

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# dotenv environment variable files
.env
.env.development.local
Expand All @@ -89,36 +58,3 @@ next-env.d.ts
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# The Graph
generated

# Auto Generated PWA files
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map

#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/mock-api-resources
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ yarn dev
yarn deploy --semaphore <semaphore-address> --group <group-id> --network sepolia
```

2. Update your `.env` file with your new contract address, the group id and the semaphore contract address.
2. Update the `apps/web-app/.env.$(NODE_ENV).local` files with your new contract address, the group id and the semaphore contract address.

3. Copy your contract artifacts from `apps/contracts/build/contracts/contracts` folder to `apps/web-app/contract-artifacts` folders.
3. Copy your contract artifacts from `apps/contracts/artifacts/contracts` folder to `apps/web-app/contract-artifacts` folder.

> **Note**
> Check the Semaphore contract addresses [here](https://semaphore.pse.dev/docs/deployed-contracts).
Expand All @@ -89,13 +89,7 @@ yarn verify <your-contract-address> <semaphore-address> <group-id> --network sep
> **Note**
> Remember to set the Etherscan API Key in your .env file.
### Code quality and formatting

Run [ESLint](https://eslint.org/) to analyze the code and catch bugs:

```bash
yarn lint
```
### Code formatting

Run [Prettier](https://prettier.io/) to check formatting rules:

Expand Down
5 changes: 5 additions & 0 deletions apps/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Hardhat files
artifacts
cache
typechain-types

1 change: 1 addition & 0 deletions apps/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function getNetworks(): NetworksUserConfig {

const hardhatConfig: HardhatUserConfig = {
solidity: "0.8.23",
defaultNetwork: process.env.DEFAULT_NETWORK || "localhost",
networks: {
hardhat: {
chainId: 1337
Expand Down
3 changes: 2 additions & 1 deletion apps/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@
"@types/mocha": "^9.1.1",
"chai": "^4.2.0",
"dotenv": "^14.3.2",
"ethers": "^6.4.0",
"ethers": "^6.11.0",
"hardhat": "^2.19.4",
"hardhat-gas-reporter": "^1.0.8",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^3.3.6",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.0",
"ts-node": "^10.9.2",
"typechain": "^8.3.0"
},
"dependencies": {
Expand Down

0 comments on commit 5b1535e

Please sign in to comment.