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/pda #2

Merged
merged 28 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d3602fa
feat: completed all pda query and test cases for same
Siddharth9890 Oct 31, 2023
c17a95b
feat: completed remaining methods for pda class
Siddharth9890 Oct 31, 2023
73df0ed
Merge branch 'main' into feat/PDA
Siddharth9890 Nov 2, 2023
747903c
chore: folder rename
Siddharth9890 Nov 2, 2023
08977e2
Merge branch 'main' into feat/PDA
Siddharth9890 Nov 2, 2023
5f89b58
chore: renaming tests file
Siddharth9890 Nov 2, 2023
779b020
chore: small change in error handling
Siddharth9890 Nov 2, 2023
9504d1d
Merge branch 'main' into feat/PDA
Siddharth9890 Nov 5, 2023
dda46c1
fix: ran linter on code
Siddharth9890 Nov 5, 2023
e3a2662
test: revert fetch backup file?
Siddharth9890 Nov 5, 2023
e719af5
revert: custom fetch file deleted
Siddharth9890 Nov 5, 2023
d2d162f
chore: rename PDA=> pda
Siddharth9890 Nov 8, 2023
3625838
chore: added error handler
Siddharth9890 Nov 16, 2023
0944a49
chore: added filter to remove transactions query for now
Siddharth9890 Nov 16, 2023
9deaaaa
chore: modified tests again
Siddharth9890 Nov 17, 2023
191cdd7
chore: everything working except get pdas
Siddharth9890 Nov 20, 2023
3cdeea4
chore: git not working on folder change
Siddharth9890 Nov 20, 2023
a893a7f
chore:revert last change
Siddharth9890 Nov 20, 2023
90cf3a3
feat: testing env on gh actions
Siddharth9890 Nov 20, 2023
03e2084
chore: testing env for mesh
Siddharth9890 Nov 20, 2023
71018b2
chore: testing mesh secret #2
Siddharth9890 Nov 20, 2023
89f34a2
chore: testing mesh env #3
Siddharth9890 Nov 20, 2023
2d940b9
Merge branch 'main' into feat/PDA
Siddharth9890 Nov 20, 2023
9e33879
chore: adding remaining env
Siddharth9890 Nov 20, 2023
57a656b
chore: final env settings
Siddharth9890 Nov 20, 2023
67978e4
chore: revert run command gh action
Siddharth9890 Nov 20, 2023
2cbb6b4
chore: fixed linter error
Siddharth9890 Nov 21, 2023
3b694d7
chore: removed console.log
Siddharth9890 Nov 21, 2023
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
4 changes: 0 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ jobs:
run: pnpm install
- name: Run Eslint
run: pnpm lint
- name: Replace F1 with F2 content
run: cp custom-fetch-backup.ts custom-fetch.ts
- name: Build Graphql queries
run: pnpm mesh build
- name: Restore the original content of F1
run: git checkout -- custom-fetch.ts
- name: Test project
run: pnpm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.mesh/
.mesh/
.vscode/
10 changes: 7 additions & 3 deletions .meshrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ sources:
handler:
graphql:
endpoint: https://develop.protocol.mygateway.xyz/v1/graphql
method: 'POST'
useGETForQueries: false
transforms:
- filterSchema:
mode: bare
filters:
- Query.!transaction
- Query.!transactions

customFetch: ./custom-fetch.ts

sdk:
generateOperations:
selectionSetDepth: 2
selectionSetDepth: 2
16 changes: 0 additions & 16 deletions custom-fetch-backup.ts

This file was deleted.

1 change: 0 additions & 1 deletion custom-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ export default function patchedFetch(
headers.set('Authorization', `Bearer ${context?.token}`);
headers.set('X-Api-Key', context?.apiKey);
init.headers = headers;
console.log(url, init);
return fetch(url, init);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@graphql-mesh/cli": "^0.87.14",
"@graphql-mesh/graphql": "^0.95.7",
"@graphql-mesh/runtime": "^0.96.11",
"@graphql-mesh/transform-filter-schema": "^0.96.0",
"@types/node": "^20.8.4",
"@whatwg-node/fetch": "^0.9.13",
"graphql": "^16.8.1"
Expand Down
Loading
Loading