From d9e8cdc5ec39c969f72ca81b4bbf6e25c0c4fd94 Mon Sep 17 00:00:00 2001 From: Marielbamar21 <46550782+Marielbamar21@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:14:00 -0400 Subject: [PATCH] changes in getTokens() (#1) * changes in getTokens() An array was created with all the information of all the tokens and the getTokens() was modified to return the data from the new array. * fix deps * requested changes --------- Co-authored-by: Jose Ramirez --- package-lock.json | 240 ++------------------- src/schema.graphql | 1 + src/stealthex/dtos/array-stealth-assets.ts | 146 +++++++++++++ src/stealthex/stealthex.resolver.ts | 8 + 4 files changed, 170 insertions(+), 225 deletions(-) create mode 100644 src/stealthex/dtos/array-stealth-assets.ts diff --git a/package-lock.json b/package-lock.json index 749e206..c18c59c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,9 +24,7 @@ "nestjs-pino": "^3.5.0", "pino": "^8.16.1", "pino-http": "^8.5.1", - "reflect-metadata": "^0.1.13", - "rimraf": "^5.0.5", - "rxjs": "^7.8.1" + "rimraf": "^5.0.5" }, "devDependencies": { "@nestjs/cli": "^10.2.1", @@ -43,13 +41,11 @@ "pino-pretty": "^10.2.3", "pre-commit": "^1.2.2", "prettier": "^3.1.0", - "supertest": "^6.3.3", "tap": "^18.5.7", - "ts-loader": "^9.5.0", - "ts-node": "^10.9.1", - "tsconfig-paths": "^4.2.0", - "typescript": "^5.2.2", - "webpack": "^5.89.0" + "typescript": "^5.2.2" + }, + "engines": { + "node": "^16.x || >=18.x || >=20.x" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -2522,18 +2518,6 @@ "@tapjs/core": "1.4.5" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, "node_modules/@tsconfig/node14": { "version": "14.1.0", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-14.1.0.tgz", @@ -3507,12 +3491,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true - }, "node_modules/async-hook-domain": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/async-hook-domain/-/async-hook-domain-4.0.1.tgz", @@ -4362,12 +4340,6 @@ "node": ">= 6" } }, - "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "dev": true - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -4444,12 +4416,6 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "peer": true }, - "node_modules/cookiejar": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", - "dev": true - }, "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", @@ -4494,12 +4460,6 @@ } } }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -4673,16 +4633,6 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/dezalgo": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", - "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", - "dev": true, - "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" - } - }, "node_modules/diff": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", @@ -5850,9 +5800,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "funding": [ { "type": "individual", @@ -5933,21 +5883,6 @@ "node": ">= 6" } }, - "node_modules/formidable": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", - "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", - "dev": true, - "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" - }, - "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -6460,15 +6395,6 @@ "node": ">= 6" } }, - "node_modules/hexoid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", - "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/hosted-git-info": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.1.tgz", @@ -6964,9 +6890,9 @@ } }, "node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==", "dev": true }, "node_modules/ipaddr.js": { @@ -7837,6 +7763,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "peer": true, "engines": { "node": ">= 0.6" } @@ -9352,6 +9279,7 @@ "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "peer": true, "dependencies": { "side-channel": "^1.0.4" }, @@ -9581,7 +9509,8 @@ "node_modules/reflect-metadata": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "peer": true }, "node_modules/regexp.prototype.flags": { "version": "1.5.1", @@ -10690,52 +10619,6 @@ } } }, - "node_modules/superagent": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.1.2.tgz", - "integrity": "sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==", - "dev": true, - "dependencies": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.4", - "debug": "^4.3.4", - "fast-safe-stringify": "^2.1.1", - "form-data": "^4.0.0", - "formidable": "^2.1.2", - "methods": "^1.1.2", - "mime": "2.6.0", - "qs": "^6.11.0", - "semver": "^7.3.8" - }, - "engines": { - "node": ">=6.4.0 <13 || >=14" - } - }, - "node_modules/superagent/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/supertest": { - "version": "6.3.3", - "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.3.3.tgz", - "integrity": "sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA==", - "dev": true, - "dependencies": { - "methods": "^1.1.2", - "superagent": "^8.0.5" - }, - "engines": { - "node": ">=6.4.0" - } - }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -11172,90 +11055,6 @@ "typescript": ">=4.2.0" } }, - "node_modules/ts-loader": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.5.0.tgz", - "integrity": "sha512-LLlB/pkB4q9mW2yLdFMnK3dEHbrBjeZTYguaaIfusyojBgAGf5kF+O6KcWqiGzWqHk0LBsoolrp4VftEURhybg==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4", - "source-map": "^0.7.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "typescript": "*", - "webpack": "^5.0.0" - } - }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/ts-node/node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/tsconfig-paths": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", @@ -12182,15 +11981,6 @@ "node": ">=12" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/src/schema.graphql b/src/schema.graphql index 5df8591..4053adc 100644 --- a/src/schema.graphql +++ b/src/schema.graphql @@ -41,6 +41,7 @@ type Query { getEstimatedAmount(amount: String! = "", from: String! = "", to: String! = ""): EstimatedAmount! getPairTokensFromNativeCurrency(nativeCurrencies: [String!]! = []): GetPairTokens! getTokens: Tokens! + getTokensToSwap: Tokens! status: String! version: String! } diff --git a/src/stealthex/dtos/array-stealth-assets.ts b/src/stealthex/dtos/array-stealth-assets.ts new file mode 100644 index 0000000..45dec26 --- /dev/null +++ b/src/stealthex/dtos/array-stealth-assets.ts @@ -0,0 +1,146 @@ +export const StealthAssets = [ + { + name: 'DOT', + symbol: 'dot', + network: 'MAINNET', + image: 'https://icons.stealthex.io/coins-color/63513bce12b1be0018c984c5-dot_c.svg', + }, + { + name: 'ASTR', + symbol: 'astr', + network: 'astr', + image: 'https://icons.stealthex.io/coins-color/6241a287f758390017e5d9fe-astr_c.png', + }, + { + name: 'GLMR', + symbol: 'glmr', + network: 'glmr', + image: 'https://icons.stealthex.io/coins-color/6259ebc0422d1c0017b7626c-glmr_c.svg', + }, + { + name: 'ACA', + symbol: 'aca', + network: 'aca', + image: 'https://icons.stealthex.io/coins-color/6231ca81f758390017e5d9d1-aca_c.svg', + }, + { + name: 'KSM', + symbol: 'ksm', + network: 'POLKADOT', + image: 'https://icons.stealthex.io/coins-color/6299eafcde5ae50018e778ea-ksm_c.svg', + }, + { + name: 'ETH', + symbol: 'eth', + network: 'eth', + image: 'https://icons.stealthex.io/coins-color/6255bcb6422d1c0017b74f5a-eth_c.svg', + }, + { + name: 'DAI (ETH)', + symbol: 'dai', + network: 'ETH', + image: 'https://icons.stealthex.io/coins-color/628bcef6de5ae50018e75e88-dai_c.svg', + }, + { + name: 'USDC (ETH)', + symbol: 'usdc', + network: 'ETH', + image: 'https://icons.stealthex.io/coins-color/6255cedb422d1c0017b75097-usdc_c.svg', + }, + { + name: 'USDT (ETH)', + symbol: 'usdterc20', + network: 'ETH', + image: 'https://icons.stealthex.io/coins-color/2bMdJS_-WIIf975c.svg', + }, + { + name: 'WBTC (ETH)', + symbol: 'wbtc', + network: 'ETH', + image: 'https://icons.stealthex.io/coins-color/62be0b9e64616f00188f26c6-wbtc_c.svg', + }, + { + name: 'MATIC', + symbol: 'matic', + network: 'POLYGON', + image: 'https://icons.stealthex.io/coins-color/62ff70ff613408001803f36d-matic color.svg', + }, + { + name: 'DAI (Polygon)', + symbol: 'daimatic', + network: 'POLYGON', + image: 'https://icons.stealthex.io/coins-color/62ed09c0266d52001847f7d5-daimatic_c.svg', + }, + { + name: 'USDT (Polygon)', + symbol: 'usdtpoly', + network: 'POLYGON', + image: 'https://icons.stealthex.io/coins-color/6287a9a9de5ae50018e7562a-usdtpoly_c.svg', + }, + { + name: 'WBTC (POLYGON)', + symbol: 'wbtcmatic', + network: 'POLYGON', + image: 'https://icons.stealthex.io/coins-color/632d8b7512b1be0018c96857-wbtcmatic_c.svg', + }, + { + name: 'BNB', + symbol: 'bnb', + network: 'BEP2', + image: 'https://icons.stealthex.io/coins-color/625ea3c7422d1c0017b76ba4-bnb_c.svg', + }, + { + name: 'BUSD', + symbol: 'bnbbsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/62596f5a422d1c0017b76175-bnb_c.svg', + }, + { + name: 'DAI (BNB)', + symbol: 'daibsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/6319caaa4edfd60018c52512-daibsc_c.svg', + }, + { + name: 'DOT (BNB)', + symbol: 'dotbsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/62505de09ea1790017f8f7e9-dotbsc_c.svg', + }, + { + name: 'ETH (BNB)', + symbol: 'ethbsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/62505f509ea1790017f8f80a-ethbsc.svg', + }, + { + name: 'MATIC (BNB)', + symbol: 'maticbsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/62e11cced4352d0018b117c4-maticbsc_c.svg', + }, + { + name: 'USDT (BNB)', + symbol: 'usdtbep20', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/64db5279eca12500188d15a9-1BTIKzipAlV7RQDt.svg', + }, + { + name: 'USDC (BNB)', + symbol: 'usdcbsc', + network: 'BSC', + image: 'https://icons.stealthex.io/coins-color/62d99cad64616f00188f393b-usdcbsc_c.svg', + }, + { + name: 'MOVR', + symbol: 'movr', + network: 'movr', + image: 'https://icons.stealthex.io/coins-color/629e2ddede5ae50018e77d88-movr_c.svg', + }, + { + name: 'SDN', + symbol: 'sdn', + network: 'sdn', + image: 'https://icons.stealthex.io/coins-color/62a87c39de5ae50018e789e4-sdn_c.svg', + }, +] diff --git a/src/stealthex/stealthex.resolver.ts b/src/stealthex/stealthex.resolver.ts index 7a95894..38a6b57 100644 --- a/src/stealthex/stealthex.resolver.ts +++ b/src/stealthex/stealthex.resolver.ts @@ -1,4 +1,5 @@ import { Args, Query, Resolver } from '@nestjs/graphql' +import { StealthAssets } from './dtos/array-stealth-assets' import { CreateSwapArgs, CreateSwap } from './dtos/create-swap.dto' import { ActiveSwaps, ActiveSwapsArgs } from './dtos/get-active-swaps.dto' import { EstimatedAmount, GetEstimatedAmount } from './dtos/get-estimated-amount.dto' @@ -10,6 +11,13 @@ import { StealthExService } from './stealhtex.service' export class StealhExResolver { constructor(private readonly stealthexService: StealthExService) {} + @Query(() => Tokens) + getTokensToSwap() { + return { + tokens: StealthAssets, + } + } + @Query(() => Tokens) async getTokens() { const tokens = await this.stealthexService.getTokens()