Skip to content

Commit

Permalink
minor : conflicts / graphql mesh transform
Browse files Browse the repository at this point in the history
  • Loading branch information
R11manish committed Jan 4, 2024
1 parent d85af56 commit c46f6c6
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 659 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
.vscode/
.env
dist/
*.tgz
14 changes: 9 additions & 5 deletions .meshrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ sources:
graphql:
endpoint: https://develop.protocol.mygateway.xyz/graphql
transforms:
- filterSchema:
- rename:
mode: bare
filters:
- Query.!transaction
- Query.!transactions
- Query.!myTransactions
renames:
- from:
type: PDAMetadata
field: status
to:
type: PDAMetadata
field: pdametadastatus

customFetch: ./custom-fetch.ts

sdk:
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
{
"name": "@Gateway-dao/js-sdk",
"version": "0.0.0",
"description": "",
"description": "A Typescript SDK for the Gateway API",
"main": "dist/src/Gateway.js",
"types": "dist/src/types.d.ts",
"types": "dist/src/Gateway.d.ts",
"scripts": {
"test": "jest",
"lint": "eslint .",
"generate": "pnpm mesh build",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"build": "tsc"
},
"keywords": [],
"author": "",
"keywords": [
"sdk",
"sdk-typescript",
"web3"
],
"license": "MIT",
"dependencies": {
"@graphql-mesh/cli": "^0.87.16",
"@graphql-mesh/graphql": "^0.95.8",
"@graphql-mesh/runtime": "^0.96.13",
"@graphql-mesh/runtime": "^0.96.11",
"@graphql-mesh/transform-filter-schema": "^0.96.2",
"@graphql-mesh/transform-rename": "^0.96.3",
"@solana/web3.js": "^1.87.6",
"@whatwg-node/fetch": "^0.9.14",
"@whatwg-node/fetch": "^0.9.13",
"ethers": "^5.7.2",
"graphql": "^16.8.1"
},
Expand Down
Loading

0 comments on commit c46f6c6

Please sign in to comment.