Skip to content

Commit

Permalink
Merge pull request #51 from semaphore-protocol/version/4
Browse files Browse the repository at this point in the history
Version/4
  • Loading branch information
vplasencia authored Feb 28, 2024
2 parents cdcf194 + aa8bc67 commit 793095d
Show file tree
Hide file tree
Showing 77 changed files with 8,344 additions and 11,656 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=0x5fc8d32690cc91d4c39d9d3abcbd16989f875707
SEMAPHORE_CONTRACT_ADDRESS=0xdc64a140aa3e981100a9beca4e685f962f0cf6c9
OPENZEPPELIN_AUTOTASK_WEBHOOK=
GROUP_ID=42
REPORT_GAS=false
COINMARKETCAP_API_KEY=
ETHERSCAN_API_KEY=
45 changes: 0 additions & 45 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

32 changes: 3 additions & 29 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: "arbitrum-goerli"
SEMAPHORE_CONTRACT_ADDRESS: "0x3889927F0B5Eb1a02C6E2C20b39a1Bd4EAd76131"
FEEDBACK_CONTRACT_ADDRESS: "0x28227B230d3945e580eD3B1c6c8ea1df658A7AA9"
GROUP_ID: 42
OPENZEPPELIN_AUTOTASK_WEBHOOK: "https://api.defender.openzeppelin.com/autotasks/6e4db9d1-3451-46a4-bdfa-0e802e126aa8/runs/webhook/303216d1-fa7d-4fca-8c5b-7ba1ba544fc7/UEC3SBKDZvEGQv5m391uRU"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -33,33 +26,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: 20
cache: yarn

- name: Setup Pages
uses: actions/configure-pages@v3
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next

- name: Restore cache
uses: actions/cache@v3
with:
path: |
apps/web-app/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: yarn
- name: Build with Next.js
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20

- name: Install dependencies
run: yarn

- name: Run Prettier
run: yarn prettier

- name: Run Eslint
run: yarn lint
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,28 +35,11 @@ node_modules/
# Yarn Integrity file
.yarn-integrity

# Generate output
dist
build
cache

# Next.js
.next/
out/

# vercel
.vercel

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

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# Optional npm cache directory
.npm
Expand All @@ -85,36 +54,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
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ docs
# production
dist
build
cache
contract-artifacts

# Hardhat files
artifacts
cache
typechain-types

# github
.github/ISSUE_TEMPLATE

Expand Down
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

Loading

0 comments on commit 793095d

Please sign in to comment.