Skip to content

Commit

Permalink
redeployed subgraph (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhan authored Jul 18, 2024
1 parent 5c8a243 commit dd01445
Show file tree
Hide file tree
Showing 20 changed files with 23,725 additions and 12,921 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
node-version: '20'
- run: yarn install
- run: yarn compile
- run: yarn test
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
node-version: '20'
- run: yarn install
- run: yarn compile
- run: yarn coverage
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@ notes.txt
flattened

# user scripts
scripts.sh
scripts.sh

# python
.python-version
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
Binary file added .yarn/install-state.gz
Binary file not shown.
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
nmHoistingLimits: workspaces

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.2.1.cjs
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@
"solidity-coverage": "0.7.13",
"ts-node": "^9.0.0",
"typescript": "^4.0.5"
},
"dependencies": {}
}
}
7 changes: 7 additions & 0 deletions subgraph/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"bracketSpacing": true,
"printWidth": 99
}
Binary file added subgraph/.yarn/install-state.gz
Binary file not shown.
37 changes: 37 additions & 0 deletions subgraph/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Geyser subgraph

The Graph is a tool for for indexing events emitted on the Ethereum blockchain. It provides you with an easy-to-use GraphQL API.

```
Public graphql endpoint:
https://api.thegraph.com/subgraphs/name/ampleforth/ampleforth-token-geyser-v2
```

## Getting started

Run a local instance of the graph node:

```
git clone https://github.com/graphprotocol/graph-node
cd graph-node/docker
# update docker-compose.yaml with alchemy rpc endpoint
docker-compose up
# NOTE: Ensure that the docker container is able to access the internet
```

Setup project:
```
yarn
```

To build and deploy the subgraph to the graph hosted service:

```
# local deployment
./scripts/deploy-local.sh mainnet ampleforth-token-geyser-v2
# prod deployment
./scripts/deploy.sh mainnet ampleforth-token-geyser-v2
```
Loading

0 comments on commit dd01445

Please sign in to comment.