Skip to content

Commit

Permalink
feat(subgraph): add maci-subgraph package
Browse files Browse the repository at this point in the history
- [x] Add schemas templates folder
- [x] Add subgraph templates folder
- [x] Add config folder
- [x] Add mappers and tests
- [x] Update lerna config
- [x] Add ci job
  • Loading branch information
0xmad committed Jun 6, 2024
1 parent f0b482d commit 724ee0c
Show file tree
Hide file tree
Showing 26 changed files with 4,535 additions and 1,959 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build
typechain-types
.eslintrc.js
commitlint.config.js
subgraph/generated
38 changes: 38 additions & 0 deletions .github/workflows/subgraph-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Subgraph

on:
push:
branches: [dev]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
pnpm run build
- name: Test
run: pnpm run test
working-directory: subgraph
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ website/.docusaurus/
website/src/pages/solidity-docs/index.md
**/deployed-contracts.json
**/deploy-config.json
subgraph/generated
subgraph/templates/*.yaml
subgraph/subgraph.yaml

3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"domainobjs",
"integrationTests",
"website",
"coordinator"
"coordinator",
"subgraph"
],
"version": "1.2.2",
"npmClient": "pnpm",
Expand Down
Loading

0 comments on commit 724ee0c

Please sign in to comment.