Skip to content

Commit

Permalink
chore: re-organise monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Aug 6, 2024
1 parent a0448eb commit f2a6b66
Show file tree
Hide file tree
Showing 737 changed files with 339 additions and 782 deletions.
90 changes: 0 additions & 90 deletions .dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ build
typechain-types
.eslintrc.js
commitlint.config.js
subgraph/generated
apps/subgraph/generated
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/circuit-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: Build circuits
run: pnpm run build-test-circuits-wasm
working-directory: circuits
working-directory: packages/circuits

- name: Test circuits
run: pnpm run test
working-directory: circuits
working-directory: packages/circuits
4 changes: 1 addition & 3 deletions .github/workflows/contracts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ jobs:
- name: Test
run: pnpm run test
working-directory: contracts
env:
OP_RPC_URL: ${{ secrets.OP_RPC_URL }}
working-directory: packages/contracts
2 changes: 1 addition & 1 deletion .github/workflows/core-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Test
run: pnpm run test
working-directory: core
working-directory: packages/core
2 changes: 1 addition & 1 deletion .github/workflows/crypto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Test
run: pnpm run test
working-directory: crypto
working-directory: packages/crypto
2 changes: 1 addition & 1 deletion .github/workflows/domainobjs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Test
run: |
pnpm run test
working-directory: domainobjs
working-directory: packages/domainobjs
4 changes: 2 additions & 2 deletions .github/workflows/hardhat-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Run hardhat fork
run: |
cd contracts
cd packages/contracts
pnpm run hardhat &
sleep 5
Expand All @@ -41,10 +41,10 @@ jobs:
- name: hardhat tasks
run: |
cd contracts
cp ./deploy-config-example.json ./deploy-config.json
pnpm deploy:localhost
pnpm deploy-poll:localhost
working-directory: packages/contracts

- name: Stop Hardhat
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-ceremony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Run hardhat fork
run: |
cd contracts
cd packages/contracts
pnpm run hardhat &
- name: Download rapidsnark (1c137)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run hardhat fork
run: |
cd contracts
cd packages/contracts
pnpm run hardhat &
- name: Download rapidsnark (1c137)
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Create zkeys folder
run: |
cd cli
cd packages/cli
mkdir -p zkeys
- name: Compile Circuits And Generate zkeys
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
run: |
pnpm run hardhat &
sleep 5
working-directory: contracts
working-directory: packages/contracts

- name: ${{ matrix.command }}
run: pnpm run ${{ matrix.command }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
fail-on: none
ignore-compile: true
node-version: 20
target: "contracts/"
target: "packages/contracts/"

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/subgraph-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Test
run: pnpm run test
working-directory: subgraph
working-directory: apps/subgraph
48 changes: 23 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
circuits/params/*
cli/proofs
cli/proofs.json
cli/zkeys
cli/maci_keys.tar.gz
packages/circuits/params/*
packages/cli/proofs
packages/cli/proofs.json
packages/cli/zkeys
packages/cli/maci_keys.tar.gz
*.zkey
*.r1cs
*.sym


solc
*.ptau
cli/tally.json
packages/cli/tally.json
**/test_tally.json
**/tally.json
integrationTests/test_tally.json
integrationTests/artifacts/**
packages/integrationTests/test_tally.json
packages/integrationTests/artifacts/**
deployedAddresses.json
.etherlime-store
**/build/
circuits/build
circuits/circom/test.bak
packages/circuits/build
packages/circuits/circom/test.bak

cli/artifacts
contracts/artifacts
contracts/compiled
cli/cache
contracts/cache
typechain-types/
packages/cli/artifacts
packages/contracts/artifacts
packages/contracts/compiled
packages/cli/cache
packages/contracts/cache
packages/contracts/typechain-types/
**/cache

node_modules
blake2sdef.json
Expand Down Expand Up @@ -144,15 +145,12 @@ typings/

# docker related
**/data/
cli/output.json
cli/processinput.json
cli/tallyinput.json
cli/contractAddresses.json
cli/contractAddresses.old.json
packages/cli/output.json
packages/cli/processinput.json
packages/cli/tallyinput.json
packages/cli/contractAddresses.json
packages/cli/contractAddresses.old.json

circuits/circom/test

# mdBook rendered files
publish
packages/circuits/circom/test

**/ts/__benchmarks__/results/**
15 changes: 8 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ pnpm-lock.yaml
CHANGELOG.md
CODEOWNERS
.eslintignore
circuits/ts/verifier_groth16.sol
website/.docusaurus/
website/src/pages/solidity-docs/index.md
packages/circuits/ts/verifier_groth16.sol
apps/website/.docusaurus/
apps/website/src/pages/solidity-docs/index.md
**/deployed-contracts.json
**/deploy-config.json
subgraph/generated
subgraph/templates/*.yaml
subgraph/subgraph.yaml

apps/subgraph/generated
apps/subgraph/templates/*.yaml
apps/subgraph/subgraph.yaml
**/zkeys
**/typedoc
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Below you can find a list of the packages included in this repository.
| [maci-crypto][crypto-package] | [![NPM Package][crypto-npm-badge]][crypto-npm-link] | [![Actions Status][crypto-actions-badge]][crypto-actions-link] |
| [maci-domainobjs][domainobjs-package] | [![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link] | [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link] |
| [maci-integrationTests][integrationTests-package] | [![NPM Package][integrationTests-npm-badge]][integrationTests-npm-link] | [![Actions Status][integrationTests-actions-badge]][integrationTests-actions-link] |
| [maci-subgraph][subgraph-package] | [![NPM Package][subgraph-npm-badge]][subgraph-npm-link] | [![Actions Status][subgraph-actions-badge]][subgraph-actions-link] |

## Development and testing

Expand Down
2 changes: 1 addition & 1 deletion subgraph/.eslintrc.js → apps/subgraph/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require("path");

module.exports = {
root: true,
extends: ["../.eslintrc.js"],
extends: ["../../.eslintrc.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: path.resolve(__dirname, "./tsconfig.json"),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion subgraph/tsconfig.json → apps/subgraph/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extend": "./node_modules/@graphprotocol/graph-ts/tsconfig.json",
"extend": ["./node_modules/@graphprotocol/graph-ts/tsconfig.json"],
"compilerOptions": {
"outDir": "./build",
"strictNullChecks": true,
Expand Down
2 changes: 1 addition & 1 deletion website/.eslintrc.js → apps/website/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const path = require("path");

const prettierConfig = fs.readFileSync(path.resolve(__dirname, "../.prettierrc"), "utf8");
const prettierConfig = fs.readFileSync(path.resolve(__dirname, "../../.prettierrc"), "utf8");
const prettierOptions = JSON.parse(prettierConfig);
const isProduction = process.env.NODE_ENV === "production";

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const solidityDocDir = path.resolve(
"../../versioned_docs/version-v2.x/developers-references/smart-contracts/solidity-docs",
);
// the origin folder (from the contracts package)
const sourceDir = path.resolve(__dirname, "../../../contracts/docs");
const sourceDir = path.resolve(__dirname, "../../../packages/contracts/docs");

/**
* Currently, Solidity docgen generates the same heading for all files.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f2a6b66

Please sign in to comment.