From cb5e8f261d25cbea1988b8e543586cd746d7a21e Mon Sep 17 00:00:00 2001 From: Diogo Ferreira Date: Tue, 9 Jan 2024 19:03:26 +0000 Subject: [PATCH] Update SDK package version to v1.10.2 (#333) * update sdk package version * silent gnosis-protocol type errors --- package-lock.json | 128 ++++++------------ package.json | 4 +- .../trades/gnosis-protocol/CoWTrade.ts | 3 +- 3 files changed, 42 insertions(+), 93 deletions(-) diff --git a/package-lock.json b/package-lock.json index 92f43006..2ba534b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@swapr/sdk", - "version": "1.10.1", + "version": "1.10.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@swapr/sdk", - "version": "1.10.1", + "version": "1.10.2", "license": "AGPL-3.0-or-later", "dependencies": { "@cowprotocol/cow-sdk": "^1.0.2-RC.0", @@ -27,7 +27,7 @@ "dayjs": "^1.11.0", "debug": "^4.3.4", "decimal.js-light": "^2.5.1", - "graphql-request": "^6.1.0", + "graphql-request": "^4.3.0", "jsbi": "^3.1.1", "lodash.flatmap": "^4.5.0", "memoizee": "^0.4.15", @@ -40,7 +40,7 @@ "devDependencies": { "@graphql-codegen/cli": "2.6.2", "@graphql-codegen/typescript": "2.5.1", - "@graphql-codegen/typescript-graphql-request": "^6.0.1", + "@graphql-codegen/typescript-graphql-request": "^4.3.0", "@graphql-codegen/typescript-operations": "^2.4.2", "@testing-library/jest-dom": "^5.16.4", "@types/big.js": "^4.0.5", @@ -1331,30 +1331,6 @@ "paraswap-core": "^1.0.2" } }, - "node_modules/@cowprotocol/cow-sdk/node_modules/extract-files": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", - "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==", - "engines": { - "node": "^10.17.0 || ^12.0.0 || >= 13.7.0" - }, - "funding": { - "url": "https://github.com/sponsors/jaydenseric" - } - }, - "node_modules/@cowprotocol/cow-sdk/node_modules/graphql-request": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-4.3.0.tgz", - "integrity": "sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==", - "dependencies": { - "cross-fetch": "^3.1.5", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - }, - "peerDependencies": { - "graphql": "14 - 16" - } - }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", @@ -2390,22 +2366,19 @@ } }, "node_modules/@graphql-codegen/typescript-graphql-request": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-graphql-request/-/typescript-graphql-request-6.0.1.tgz", - "integrity": "sha512-aScw7ICyscW7bYLh2HyjQU3geCAjvFy6sRIlzgdkeFvcKBdjCil69upkyZAyntnSno2C4ZoUv7sHOpyQ9hQmFQ==", + "version": "4.5.9", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-graphql-request/-/typescript-graphql-request-4.5.9.tgz", + "integrity": "sha512-Vtv5qymUXcR4UFdHOlJHzK5TN+CZUwMwFDGb3n4Gjcr4yln1BWbUb7DXgD0GHzpXwDIj5G2XmJnFtr0jihBfrg==", "dev": true, "dependencies": { "@graphql-codegen/plugin-helpers": "^3.0.0", "@graphql-codegen/visitor-plugin-common": "2.13.1", "auto-bind": "~4.0.0", - "tslib": "~2.6.0" - }, - "engines": { - "node": ">= 16.0.0" + "tslib": "~2.4.0" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", - "graphql-request": "^6.0.0", + "graphql-request": "^3.4.0 || ^4.0.0 || ~5.0.0 || ~5.1.0", "graphql-tag": "^2.0.0" } }, @@ -2507,12 +2480,6 @@ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", "dev": true }, - "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true - }, "node_modules/@graphql-codegen/typescript-operations": { "version": "2.5.10", "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.10.tgz", @@ -10149,23 +10116,27 @@ } }, "node_modules/graphql-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-6.1.0.tgz", - "integrity": "sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-4.3.0.tgz", + "integrity": "sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==", "dependencies": { - "@graphql-typed-document-node/core": "^3.2.0", - "cross-fetch": "^3.1.5" + "cross-fetch": "^3.1.5", + "extract-files": "^9.0.0", + "form-data": "^3.0.0" }, "peerDependencies": { "graphql": "14 - 16" } }, - "node_modules/graphql-request/node_modules/@graphql-typed-document-node/core": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", - "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "node_modules/graphql-request/node_modules/extract-files": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", + "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==", + "engines": { + "node": "^10.17.0 || ^12.0.0 || >= 13.7.0" + }, + "funding": { + "url": "https://github.com/sponsors/jaydenseric" } }, "node_modules/graphql-tag": { @@ -19924,23 +19895,6 @@ "multiformats": "^9.6.4", "paraswap": "^5.2.0", "paraswap-core": "^1.0.2" - }, - "dependencies": { - "extract-files": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", - "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==" - }, - "graphql-request": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-4.3.0.tgz", - "integrity": "sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==", - "requires": { - "cross-fetch": "^3.1.5", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - } - } } }, "@cspotcode/source-map-support": { @@ -20635,15 +20589,15 @@ } }, "@graphql-codegen/typescript-graphql-request": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-graphql-request/-/typescript-graphql-request-6.0.1.tgz", - "integrity": "sha512-aScw7ICyscW7bYLh2HyjQU3geCAjvFy6sRIlzgdkeFvcKBdjCil69upkyZAyntnSno2C4ZoUv7sHOpyQ9hQmFQ==", + "version": "4.5.9", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-graphql-request/-/typescript-graphql-request-4.5.9.tgz", + "integrity": "sha512-Vtv5qymUXcR4UFdHOlJHzK5TN+CZUwMwFDGb3n4Gjcr4yln1BWbUb7DXgD0GHzpXwDIj5G2XmJnFtr0jihBfrg==", "dev": true, "requires": { "@graphql-codegen/plugin-helpers": "^3.0.0", "@graphql-codegen/visitor-plugin-common": "2.13.1", "auto-bind": "~4.0.0", - "tslib": "~2.6.0" + "tslib": "~2.4.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": { @@ -20735,12 +20689,6 @@ "dev": true } } - }, - "tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true } } }, @@ -26891,19 +26839,19 @@ } }, "graphql-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-6.1.0.tgz", - "integrity": "sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-4.3.0.tgz", + "integrity": "sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==", "requires": { - "@graphql-typed-document-node/core": "^3.2.0", - "cross-fetch": "^3.1.5" + "cross-fetch": "^3.1.5", + "extract-files": "^9.0.0", + "form-data": "^3.0.0" }, "dependencies": { - "@graphql-typed-document-node/core": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", - "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", - "requires": {} + "extract-files": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", + "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==" } } }, diff --git a/package.json b/package.json index 61d6199f..5a0a3e22 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@swapr/sdk", "license": "AGPL-3.0-or-later", - "version": "1.10.1", + "version": "1.10.2", "description": "An SDK for building applications on top of Swapr", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -62,7 +62,7 @@ "devDependencies": { "@graphql-codegen/cli": "2.6.2", "@graphql-codegen/typescript": "2.5.1", - "@graphql-codegen/typescript-graphql-request": "^6.0.1", + "@graphql-codegen/typescript-graphql-request": "^4.3.0", "@graphql-codegen/typescript-operations": "^2.4.2", "@testing-library/jest-dom": "^5.16.4", "@types/big.js": "^4.0.5", diff --git a/src/entities/trades/gnosis-protocol/CoWTrade.ts b/src/entities/trades/gnosis-protocol/CoWTrade.ts index c564bb3b..bc3f1c79 100644 --- a/src/entities/trades/gnosis-protocol/CoWTrade.ts +++ b/src/entities/trades/gnosis-protocol/CoWTrade.ts @@ -1,3 +1,4 @@ +// @ts-nocheck // eslint-disable-next-line no-restricted-imports import contractNetworks from '@cowprotocol/contracts/networks.json' import { CowSdk, OrderKind, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk' @@ -133,7 +134,7 @@ export class CoWTrade extends Trade { }, { loglevel: 'debug', - } + }, ) }