Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: The Graph migration (moving on from GoldSky) #6

Merged
merged 40 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6311a8f
fix: graph uris
wsdt May 25, 2024
f8ef93b
fix: replaced managable uris
wsdt May 25, 2024
0249773
fix: migration
wsdt May 31, 2024
d64150b
feat: boba graphs
wsdt Jun 12, 2024
0bd732a
fix: bnb services
wsdt Jun 12, 2024
01fcddf
fix: env-key
wsdt Jun 13, 2024
80bb683
fix: dotenv
wsdt Jun 13, 2024
cd14230
fix: retain old data structure, tests for graphs
wsdt Jun 13, 2024
1e861df
fix: fix bnb graph link; update badge coverage; dotenv import
wsdt Jun 14, 2024
a45915b
fix: dns names for bnb services
wsdt Jun 14, 2024
aa8fc66
fix: rm type module
wsdt Jun 14, 2024
d20f3b7
fix: rm logs, es6 config
wsdt Jun 14, 2024
278c9d9
fix: anchorage boba bnb
wsdt Jul 20, 2024
63c692f
fix: conflicts and timestamp check
wsdt Jul 23, 2024
575d32a
feat: boba-sepolia graphs
wsdt Jul 25, 2024
5319fc3
fix: remaining graphs
wsdt Jul 25, 2024
4cfac63
fix: chapel
wsdt Jul 28, 2024
7e3004b
fix: updated subgraph id
wsdt Jul 28, 2024
115d401
fix: add new chapel addr after ownership transfer
wsdt Jul 29, 2024
09d895f
feat: dispute-game-factory; health-check tests
wsdt Aug 5, 2024
b070275
feat: dispute game factory subgraph
wsdt Aug 5, 2024
71f0989
change:
sk-enya Aug 7, 2024
87eb5bb
Add THE_GRAPH_API_KEY
boyuan-chen Aug 7, 2024
7a1785e
Merge pull request #8 from bobanetwork/sahil/anchorage-withdrawal-gra…
sk-enya Aug 8, 2024
c961fc8
Support FDG
boyuan-chen Aug 8, 2024
1194422
Update tests.yml
boyuan-chen Aug 8, 2024
0f429a8
Do tests on any PR
boyuan-chen Aug 8, 2024
a651440
Fix api key
boyuan-chen Aug 8, 2024
fe36dbf
Merge branch 'wsdt/graph-outsource' into support-fdg
boyuan-chen Aug 8, 2024
c813833
Update FDG functions
boyuan-chen Aug 12, 2024
d8aafd1
fix add proven timestamp
sk-enya Aug 20, 2024
476dfae
Merge pull request #10 from bobanetwork/fix/added-proven-timestamp
sk-enya Aug 20, 2024
7d137ed
Merge pull request #9 from bobanetwork/support-fdg
sk-enya Aug 20, 2024
ac7d386
Update boba bnb testnet endpoint
boyuan-chen Aug 20, 2024
1fc2e3c
change:
sk-enya Aug 22, 2024
6ac92c9
change to list the withdrawal transaction for bnb testnet
sk-enya Aug 22, 2024
c45f101
removed console
sk-enya Aug 23, 2024
8bf7d18
change: console cleanup
sk-enya Aug 23, 2024
2e03da6
updated spec for withdrawal initiateds bnb
sk-enya Aug 23, 2024
ff6b444
Merge pull request #11 from bobanetwork/sahil/subgraph-changes-bnb-wi…
sk-enya Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Run tests

on:
push:
branches: [ "main" ]
branches: [ "*" ]
pull_request:
branches: [ "main" ]
branches: [ "*" ]

jobs:
build:
Expand All @@ -28,3 +28,5 @@ jobs:
cache: 'npm'
- run: npm i
- run: npm test
env:
REACT_APP_THE_GRAPH_API_KEY: ${{ secrets.THE_GRAPH_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
build
dist
.idea
.env

/coverage/lcov-report
/coverage/coverage-summary.json
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,24 @@ GraphQL Services

## Release
1. Run `npm run build`
2. Then `npm publish --access public --otp xxxxxx`
2. Then `npm publish --access public --otp xxxxxx`

## Installation..

```ssh

yarn add @bobanetwork/graphql-utils

```

or

```ssh

npm install @bobanetwork/graphq-utils.

```

## For smooth functioning of package need expose env var below via process.

`REACT_APP_THE_GRAPH_API_KEY` - The graph api key which helpfuls to fetch the graph data.
2 changes: 1 addition & 1 deletion coverage/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { defaults } = require('jest-config')
import { defaults } from 'jest-config';

/** @type {import('jest').Config} */
const config = {
Expand All @@ -18,7 +18,8 @@ const config = {
"json-summary",
"text",
"lcov"
]
}
],
testTimeout: 60000,
};

module.exports = config
export default config;
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "GraphQL services to be consumed by frontend/backend services.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
Expand All @@ -26,14 +27,17 @@
"@apollo/client": "3.5.10",
"@ethersproject/providers": "^5.7.2",
"@types/jest": "^29.5.12",
"dotenv": "^16.4.5",
"ethers": "^5.5.4",
"graphql": "^16.8.2",
"node-fetch": "^2.6.1",
"ts-jest": "^29.1.2"
},
"devDependencies": {
"@types/node": "^16.18.62",
"@types/node-fetch": "^2.6.11",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"tsup": "^8.0.2",
"typescript": "^5.4.2"
Expand Down
Loading
Loading