From 7a1c2634b3e66ee5c15eb11373f3d0bdb99c3db7 Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 16:00:10 -0300 Subject: [PATCH 1/7] improv(SWA-134): install prettier and run the linter with fixes --- package-lock.json | 25725 ++++------------ package.json | 3 +- src/entities/DistributionCampaignBase.ts | 30 +- src/entities/currency.ts | 2 +- src/entities/fractions/currencyAmount.ts | 2 +- src/entities/fractions/fraction.ts | 22 +- src/entities/fractions/price.ts | 4 +- src/entities/fractions/priced-token-amount.ts | 4 +- src/entities/kpi-token.ts | 4 +- src/entities/pair.ts | 22 +- src/entities/platforms-breakdown.ts | 2 +- src/entities/route.ts | 8 +- .../single-sided-liquidity-mining-campaign.ts | 2 +- src/entities/token.ts | 50 +- src/entities/trades/0x/0xTrade.ts | 8 +- src/entities/trades/0x/utils.ts | 2 +- src/entities/trades/OneInch/OneInch.ts | 2 +- src/entities/trades/curve/CurveTrade.ts | 26 +- .../trades/curve/contracts/contracts.ts | 4 +- src/entities/trades/curve/contracts/pools.ts | 6 +- src/entities/trades/curve/utils.ts | 12 +- src/entities/trades/index.ts | 2 +- .../routable-platform/RoutablePlatform.ts | 6 +- src/entities/trades/swapr-v3/abi/index.ts | 2 +- .../trades/swapr-v3/abi/swapr-algebra-pool.ts | 1402 +- src/entities/trades/swapr-v3/entities/pool.ts | 29 +- .../trades/swapr-v3/entities/route.ts | 4 +- src/entities/trades/swapr-v3/pools.ts | 25 +- src/entities/trades/swapr-v3/routes.ts | 3 +- src/entities/trades/swapr-v3/swapr-v3.spec.ts | 8 +- .../swapr-v3/utils/computePoolAddress.ts | 3 +- .../trades/swapr-v3/utils/encode-route.ts | 5 +- .../trades/uniswap-v2/UniswapV2.spec.ts | 8 +- src/entities/trades/uniswap-v2/UniswapV2.ts | 16 +- src/entities/trades/uniswap-v2/constants.ts | 50 +- src/entities/trades/uniswap-v2/pairs/fees.ts | 2 +- src/entities/trades/uniswap-v2/pairs/pairs.ts | 12 +- src/entities/trades/uniswap-v2/utilts.ts | 2 +- .../trades/uniswap/Uniswap/Uniswap.spec.ts | 2 +- .../trades/uniswap/Uniswap/Uniswap.ts | 12 +- src/entities/trades/utils.ts | 4 +- src/entities/trades/velodrome/Velodrome.ts | 6 +- src/fetcher.ts | 28 +- test/0x-trade.test.ts | 36 +- 44 files changed, 7143 insertions(+), 20464 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ba534b3..ad7b6068 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,7 @@ { "name": "@swapr/sdk", "version": "1.10.2", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -64,6 +64,7 @@ "eslint-plugin-unused-imports": "^2.0.0", "install-peers-cli": "^2.2.0", "jest": "^27.5.1", + "prettier": "^3.2.2", "ts-jest": "^27.1.3", "ts-node": "^10.8.2", "typescript": "^4.7.4", @@ -76,19 +77,31 @@ "ethers": "^5.4.0" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@adobe/css-tools": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.0.1.tgz", - "integrity": "sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==", - "dev": true + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.2.tgz", + "integrity": "sha512-DA5a1C0gD/pLOvhv33YMrbf2FK3oUzwNl9oOJqE4XVjuEtt6XIakRcsd7eLiOSPkp1kTRQGICTA8cKra/vFbjw==", + "dev": true, + "license": "MIT" }, "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { @@ -100,6 +113,7 @@ "resolved": "https://registry.npmjs.org/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz", "integrity": "sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.14.0", "@babel/generator": "^7.14.0", @@ -131,69 +145,19 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, - "node_modules/@ardatan/relay-compiler/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@ardatan/relay-compiler/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@ardatan/relay-compiler/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@ardatan/relay-compiler/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@ardatan/relay-compiler/node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -207,13 +171,15 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/@ardatan/relay-compiler/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -236,6 +202,7 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -249,6 +216,7 @@ "resolved": "https://registry.npmjs.org/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz", "integrity": "sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==", "dev": true, + "license": "MIT", "dependencies": { "node-fetch": "^2.6.1" }, @@ -259,49 +227,116 @@ "node_modules/@assemblyscript/loader": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.9.4.tgz", - "integrity": "sha512-HazVq9zwTVwGmqdwYzu7WyQ6FQVZ7SwET0KKQuKm55jD0IfUpZgN0OPIiZG3zV1iSrVYcN0bdwLRXI/VNCYsUA==" + "integrity": "sha512-HazVq9zwTVwGmqdwYzu7WyQ6FQVZ7SwET0KKQuKm55jD0IfUpZgN0OPIiZG3zV1iSrVYcN0bdwLRXI/VNCYsUA==", + "license": "Apache-2.0" }, "node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.18.6" + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT" + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/compat-data": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.5.tgz", - "integrity": "sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", - "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-module-transforms": "^7.20.2", - "@babel/helpers": "^7.20.5", - "@babel/parser": "^7.20.5", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5", - "convert-source-map": "^1.7.0", + "version": "7.23.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz", + "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.7", + "@babel/parser": "^7.23.6", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.7", + "@babel/types": "^7.23.6", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -311,77 +346,85 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, "node_modules/@babel/generator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", - "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.5", + "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/compat-data": "^7.20.0", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "yallist": "^3.0.2" } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.5.tgz", - "integrity": "sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww==", + "version": "7.23.7", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.7.tgz", + "integrity": "sha512-xCoqR/8+BoNnXOY7RVSgv6X+o7pmT5q1d+gGcRlXYkI+9B31glE4jeejhKVpA04O1AtzOt7OSQ6VYKP5FcRl9g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.23.0", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -391,202 +434,220 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", - "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", + "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.9" + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", - "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.20.2", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.2" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", - "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/traverse": "^7.19.1", - "@babel/types": "^7.19.0" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", - "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.2" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.0" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.6.tgz", - "integrity": "sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.8.tgz", + "integrity": "sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.7", + "@babel/types": "^7.23.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" }, "engines": { @@ -597,6 +658,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -608,6 +670,7 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -621,6 +684,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -628,20 +692,14 @@ "node_modules/@babel/highlight/node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT" }, "node_modules/@babel/highlight/node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", "engines": { "node": ">=4" } @@ -650,6 +708,7 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -658,10 +717,11 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz", - "integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", "dev": true, + "license": "MIT", "bin": { "parser": "bin/babel-parser.js" }, @@ -674,6 +734,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" @@ -686,16 +747,17 @@ } }, "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz", - "integrity": "sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", + "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.20.1", - "@babel/helper-compilation-targets": "^7.20.0", + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.20.1" + "@babel/plugin-transform-parameters": "^7.20.7" }, "engines": { "node": ">=6.9.0" @@ -709,6 +771,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -721,6 +784,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -733,6 +797,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -741,12 +806,13 @@ } }, "node_modules/@babel/plugin-syntax-flow": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz", - "integrity": "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.23.3.tgz", + "integrity": "sha512-YZiAIpkJAwQXBJLIQbRFayR5c+gJ35Vcz3bg954k7cd73zqjvhacJuL9RbrzPz8qPmZdgqP6EUKwy0PCNhaaPA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -756,12 +822,13 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", + "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -775,6 +842,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -787,6 +855,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -795,12 +864,13 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -814,6 +884,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -826,6 +897,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -838,6 +910,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -850,6 +923,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -862,6 +936,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -874,6 +949,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -886,6 +962,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -897,12 +974,13 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz", - "integrity": "sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -912,12 +990,13 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", - "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", + "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -927,12 +1006,13 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", + "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -942,12 +1022,13 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.5.tgz", - "integrity": "sha512-WvpEIW9Cbj9ApF3yJCjIEEf1EiNJLtXagOrL5LNWEZOo3jv8pmPoYTSNJQvqej8OavVlgOoOPw6/htGZro6IkA==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", + "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -957,19 +1038,19 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz", - "integrity": "sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.8.tgz", + "integrity": "sha512-yAYslGsY1bX6Knmg46RjiCiNSwJKv2IUC8qOdYKqMMr0491SXFhcHqOdRDeCRohOOIzwN/90C6mQ9qAKgrP7dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-split-export-declaration": "^7.22.6", "globals": "^11.1.0" }, "engines": { @@ -980,12 +1061,14 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", - "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", + "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.15" }, "engines": { "node": ">=6.9.0" @@ -995,12 +1078,13 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz", - "integrity": "sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", + "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1010,13 +1094,14 @@ } }, "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz", - "integrity": "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.23.3.tgz", + "integrity": "sha512-26/pQTf9nQSNVJCrLB1IkHUKyPxR+lMrH2QDPG89+Znu9rAMbtrybdbWeE9bb7gzjmE5iXHEY+e0HUwM6Co93Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-flow": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-flow": "^7.23.3" }, "engines": { "node": ">=6.9.0" @@ -1026,12 +1111,14 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.18.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", - "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.6.tgz", + "integrity": "sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1041,14 +1128,15 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", + "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1058,12 +1146,13 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", + "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1073,12 +1162,13 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", + "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1088,14 +1178,15 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", - "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", + "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-simple-access": "^7.19.4" + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1105,13 +1196,14 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", + "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -1121,12 +1213,13 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.5.tgz", - "integrity": "sha512-h7plkOmcndIUWXZFLgpbrh2+fXAi47zcUX7IrOQuZdLD0I0KvjJ6cvo3BEcAOsDOcZhVKGJqv07mkSqK0y2isQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", + "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1136,12 +1229,13 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", + "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1151,12 +1245,13 @@ } }, "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.23.3.tgz", + "integrity": "sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1166,16 +1261,17 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz", - "integrity": "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz", + "integrity": "sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-jsx": "^7.18.6", - "@babel/types": "^7.19.0" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.23.3", + "@babel/types": "^7.23.4" }, "engines": { "node": ">=6.9.0" @@ -1185,12 +1281,13 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", + "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1200,13 +1297,14 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", - "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", + "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1216,12 +1314,13 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", + "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1231,46 +1330,49 @@ } }, "node_modules/@babel/runtime": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz", - "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", + "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", "dev": true, + "license": "MIT", "dependencies": { - "regenerator-runtime": "^0.13.11" + "regenerator-runtime": "^0.14.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.5.tgz", - "integrity": "sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.5", - "@babel/types": "^7.20.5", - "debug": "^4.1.0", + "version": "7.23.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz", + "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1278,13 +1380,14 @@ } }, "node_modules/@babel/types": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.5.tgz", - "integrity": "sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -1295,28 +1398,80 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/@chainsafe/as-sha256": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@chainsafe/as-sha256/-/as-sha256-0.3.1.tgz", + "integrity": "sha512-hldFFYuf49ed7DAakWVXSJODuq3pzJEguD8tQ7h+sGkM18vja+OFoJI9krnGmgzyuZC2ETX0NOIcCTy31v2Mtg==", + "peer": true + }, + "node_modules/@chainsafe/persistent-merkle-tree": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.4.2.tgz", + "integrity": "sha512-lLO3ihKPngXLTus/L7WHKaw9PnNJWizlOF1H9NNzHP6Xvh82vzg9F2bzkXhYIFshMZ2gTCEz8tq6STe7r5NDfQ==", + "peer": true, + "dependencies": { + "@chainsafe/as-sha256": "^0.3.1" + } + }, + "node_modules/@chainsafe/ssz": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/@chainsafe/ssz/-/ssz-0.9.4.tgz", + "integrity": "sha512-77Qtg2N1ayqs4Bg/wvnWfg5Bta7iy7IRh8XqXh7oNMeP2HBbBwx8m6yTpA8p0EHItWPEBkgZd5S5/LSlp3GXuQ==", + "peer": true, + "dependencies": { + "@chainsafe/as-sha256": "^0.3.1", + "@chainsafe/persistent-merkle-tree": "^0.4.2", + "case": "^1.6.3" + } }, "node_modules/@cowprotocol/app-data": { "version": "0.0.3-RC.0", "resolved": "https://registry.npmjs.org/@cowprotocol/app-data/-/app-data-0.0.3-RC.0.tgz", "integrity": "sha512-N1JpAIK9cTGnmI/Z682GtEN7LJYzc96klqHZMR58mqlsoZVobPpH9x7QDug03hTjE+81N0J7NwdiQ7y3lhKvoQ==", + "license": "MIT", "dependencies": { "ajv": "^8.11.0" } }, + "node_modules/@cowprotocol/app-data/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@cowprotocol/app-data/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/@cowprotocol/contracts": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@cowprotocol/contracts/-/contracts-1.3.1.tgz", - "integrity": "sha512-p93xODog3XG5eSDU5od1ERvYf7YIyXd7USknKcsWnka5VN5mDDjqjCKTLw8EoZdrCIEpf6fGd8At2nv+MsvNqA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@cowprotocol/contracts/-/contracts-1.5.0.tgz", + "integrity": "sha512-ZCZMHMSLHPOXOQe33pSKLjBeJrWgbGos2S2KzEXnYtfkUtPl9ztQhAD1NFmFA7RXWETJDS7MQAVq87tCQ6GjvQ==", + "license": "LGPL-3.0-or-later", "peerDependencies": { "ethers": "^5.4.0" } }, "node_modules/@cowprotocol/cow-sdk": { - "version": "1.0.2-RC.0", - "resolved": "https://registry.npmjs.org/@cowprotocol/cow-sdk/-/cow-sdk-1.0.2-RC.0.tgz", - "integrity": "sha512-NOvO7WsjKyWQIonCyJpW926xxXkZz7OgRtBnnVAMLq/7r4lAEuqR4p7HsrSA4PNIrDyj2K6CJyXG9uERUV/Cqw==", + "version": "1.0.2-RC.7", + "resolved": "https://registry.npmjs.org/@cowprotocol/cow-sdk/-/cow-sdk-1.0.2-RC.7.tgz", + "integrity": "sha512-Op9I+EBiQYbQJINIA+t5GjSK30Qyecjh9/P5n0a4qKwsJQOVedq66s8w8GLmCfUQI/m7ys/73n8dSa9Z4H4zcA==", + "license": "(MIT OR Apache-2.0)", "dependencies": { "@cowprotocol/app-data": "^0.0.3-RC.0", "@cowprotocol/contracts": "^1.3.1", @@ -1331,11 +1486,21 @@ "paraswap-core": "^1.0.2" } }, + "node_modules/@cowprotocol/cow-sdk/node_modules/graphql": { + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, "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", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "devOptional": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -1348,20 +1513,48 @@ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "devOptional": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz", - "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -1376,60 +1569,28 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@eslint/eslintrc/node_modules/type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -1437,96 +1598,60 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@ethereumjs/common": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-2.5.0.tgz", - "integrity": "sha512-DEHjW6e38o+JmB/NO3GZBpW4lpaiBpkFgXF6jLcJ6gETBYpEyaA5nTimsWBUJR3Vmtm/didUEbNjajskugZORg==", - "dependencies": { - "crc-32": "^1.2.0", - "ethereumjs-util": "^7.1.1" + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@ethereumjs/common/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "node_modules/@ethereumjs/common": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-2.6.5.tgz", + "integrity": "sha512-lRyVQOeCDaIVtgfbowla32pzeDv2Obr8oR8Put5RdUBNRGr1VGPGQNGP6elWIpgK3YdpzqTOh4GyUGOureVeeA==", + "license": "MIT", "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" + "crc-32": "^1.2.0", + "ethereumjs-util": "^7.1.5" } }, - "node_modules/@ethereumjs/common/node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "license": "MPL-2.0", + "bin": { + "rlp": "bin/rlp" }, "engines": { - "node": ">=10.0.0" + "node": ">=14" } }, "node_modules/@ethereumjs/tx": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.3.2.tgz", - "integrity": "sha512-6AaJhwg4ucmwTvw/1qLaZUX5miWrwZ4nLOUsKyb/HtzS3BMw/CasKhdi1ims9mBKeK9sOJCH4qGKOBGyJCeeog==", - "dependencies": { - "@ethereumjs/common": "^2.5.0", - "ethereumjs-util": "^7.1.2" - } - }, - "node_modules/@ethereumjs/tx/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.5.2.tgz", + "integrity": "sha512-gQDNJWKrSDGu2w7w0PzVXVBNMzb7wwdDOmOqczmhNjqFxFuIbhVJDwiGEnxFNC2/b8ifcZzY7MLcluizohRzNw==", + "license": "MPL-2.0", "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" + "@ethereumjs/common": "^2.6.4", + "ethereumjs-util": "^7.1.5" } }, - "node_modules/@ethereumjs/tx/node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", + "node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "license": "MPL-2.0", "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" }, "engines": { - "node": ">=10.0.0" + "node": ">=14" } }, "node_modules/@ethersproject/abi": { @@ -1543,6 +1668,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/address": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", @@ -1569,6 +1695,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", @@ -1593,6 +1720,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", @@ -1615,6 +1743,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", @@ -1637,6 +1766,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0" } @@ -1655,6 +1785,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/properties": "^5.7.0" @@ -1674,6 +1805,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/logger": "^5.7.0", @@ -1694,6 +1826,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/logger": "^5.7.0" } @@ -1712,6 +1845,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0" } @@ -1730,6 +1864,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abi": "^5.7.0", "@ethersproject/abstract-provider": "^5.7.0", @@ -1757,6 +1892,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/address": "^5.7.0", @@ -1783,6 +1919,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/basex": "^5.7.0", @@ -1812,6 +1949,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/address": "^5.7.0", @@ -1842,6 +1980,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "js-sha3": "0.8.0" @@ -1860,7 +1999,8 @@ "type": "individual", "url": "https://www.buymeacoffee.com/ricmoo" } - ] + ], + "license": "MIT" }, "node_modules/@ethersproject/networks": { "version": "5.7.1", @@ -1876,6 +2016,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/logger": "^5.7.0" } @@ -1894,6 +2035,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/sha2": "^5.7.0" @@ -1913,6 +2055,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/logger": "^5.7.0" } @@ -1931,6 +2074,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", @@ -1954,6 +2098,27 @@ "ws": "7.4.6" } }, + "node_modules/@ethersproject/providers/node_modules/ws": { + "version": "7.4.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/@ethersproject/random": { "version": "5.7.0", "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz", @@ -1968,6 +2133,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/logger": "^5.7.0" @@ -1987,6 +2153,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/logger": "^5.7.0" @@ -2006,6 +2173,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/logger": "^5.7.0", @@ -2026,6 +2194,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/logger": "^5.7.0", @@ -2049,6 +2218,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", @@ -2072,6 +2242,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/constants": "^5.7.0", @@ -2092,6 +2263,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/address": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", @@ -2118,6 +2290,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/constants": "^5.7.0", @@ -2138,6 +2311,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", @@ -2170,6 +2344,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/base64": "^5.7.0", "@ethersproject/bytes": "^5.7.0", @@ -2192,6 +2367,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/hash": "^5.7.0", @@ -2200,11 +2376,21 @@ "@ethersproject/strings": "^5.7.0" } }, + "node_modules/@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", + "peer": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@graphql-codegen/cli": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-2.6.2.tgz", "integrity": "sha512-UO75msoVgvLEvfjCezM09cQQqp32+mR8Ma1ACsBpr7nroFvHbgcu2ulx1cMovg4sxDBCsvd9Eq/xOOMpARUxtw==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/core": "2.5.1", "@graphql-codegen/plugin-helpers": "^2.4.1", @@ -2256,17 +2442,65 @@ "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" } }, + "node_modules/@graphql-codegen/cli/node_modules/@graphql-tools/utils": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", + "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/cli/node_modules/@graphql-tools/utils/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, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/cli/node_modules/minimatch": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.3.tgz", + "integrity": "sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@graphql-codegen/cli/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@graphql-codegen/cli/node_modules/tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true + "dev": true, + "license": "0BSD" }, "node_modules/@graphql-codegen/core": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.5.1.tgz", "integrity": "sha512-alctBVl2hMnBXDLwkgmnFPrZVIiBDsWJSmxJcM4GKg1PB23+xuov35GE47YAyAhQItE1B1fbYnbb1PtGiDZ4LA==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^2.4.1", "@graphql-tools/schema": "^8.1.2", @@ -2277,17 +2511,119 @@ "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" } }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/merge": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.1.tgz", + "integrity": "sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@graphql-tools/utils": "8.9.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", + "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/merge/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, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.5.1.tgz", + "integrity": "sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@graphql-tools/merge": "8.3.1", + "@graphql-tools/utils": "8.9.0", + "tslib": "^2.4.0", + "value-or-promise": "1.0.11" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", + "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema/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, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", + "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils/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, + "license": "0BSD" + }, "node_modules/@graphql-codegen/core/node_modules/tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true + "dev": true, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/core/node_modules/value-or-promise": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz", + "integrity": "sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } }, "node_modules/@graphql-codegen/plugin-helpers": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz", "integrity": "sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-tools/utils": "^8.8.0", "change-case-all": "1.0.14", @@ -2300,27 +2636,56 @@ "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" } }, - "node_modules/@graphql-codegen/schema-ast": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-2.6.0.tgz", - "integrity": "sha512-6wDVX/mKLXaJ3JwSflRsDJa6/+uEJ0Lg3mOQp3Ao2/jw1mijqAKjYgh1e1rcG+vzXpEmk29TC2ujsqAkKqzgMA==", + "node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", + "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/utils": "^8.8.0", - "tslib": "~2.4.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": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-codegen/schema-ast/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.1.tgz", - "integrity": "sha512-+V1WK4DUhejVSbkZrAsyv9gA4oQABVrtEUkT7vWq7gSf7Ln6OEM59lDUDsjp5wpLPTBIDJANbAe3qEd+iCB3Ow==", + "node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils/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, - "dependencies": { - "@graphql-tools/utils": "^8.8.0", + "license": "0BSD" + }, + "node_modules/@graphql-codegen/plugin-helpers/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/schema-ast": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-2.6.1.tgz", + "integrity": "sha512-5TNW3b1IHJjCh07D2yQNGDQzUpUl2AD+GVe1Dzjqyx/d2Fn0TPMxLsHsKPS4Plg4saO8FK/QO70wLsP7fdbQ1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@graphql-codegen/plugin-helpers": "^3.1.2", + "@graphql-tools/utils": "^9.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" + } + }, + "node_modules/@graphql-codegen/schema-ast/node_modules/@graphql-codegen/plugin-helpers": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", + "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@graphql-tools/utils": "^9.0.0", "change-case-all": "1.0.15", "common-tags": "1.8.2", "import-from": "4.0.0", @@ -2336,6 +2701,7 @@ "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, + "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -2349,11 +2715,19 @@ "upper-case-first": "^2.0.2" } }, + "node_modules/@graphql-codegen/schema-ast/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true, + "license": "0BSD" + }, "node_modules/@graphql-codegen/typescript": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.5.1.tgz", "integrity": "sha512-D/9V2VfVIE4Mu5UiMGQtxyFU5xe1ZkAZi8g/IsqymW8rqlhTwsGhtk4JR55qPfOYxR8G94RJSJpzgNakRneytw==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^2.4.0", "@graphql-codegen/schema-ast": "^2.4.1", @@ -2370,6 +2744,7 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-graphql-request/-/typescript-graphql-request-4.5.9.tgz", "integrity": "sha512-Vtv5qymUXcR4UFdHOlJHzK5TN+CZUwMwFDGb3n4Gjcr4yln1BWbUb7DXgD0GHzpXwDIj5G2XmJnFtr0jihBfrg==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.0.0", "@graphql-codegen/visitor-plugin-common": "2.13.1", @@ -2387,6 +2762,7 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-tools/utils": "^9.0.0", "change-case-all": "1.0.15", @@ -2404,6 +2780,7 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -2412,11 +2789,19 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, + "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils/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, + "license": "0BSD" + }, "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-codegen/plugin-helpers/node_modules/change-case-all": { "version": "1.0.15", "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, + "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -2430,17 +2815,12 @@ "upper-case-first": "^2.0.2" } }, - "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-codegen/plugin-helpers/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true - }, "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-codegen/visitor-plugin-common": { "version": "2.13.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz", "integrity": "sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^2.7.2", "@graphql-tools/optimize": "^1.3.0", @@ -2462,6 +2842,7 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz", "integrity": "sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-tools/utils": "^8.8.0", "change-case-all": "1.0.14", @@ -2474,21 +2855,43 @@ "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" } }, - "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-codegen/visitor-plugin-common/node_modules/tslib": { + "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-tools/utils": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", + "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/@graphql-tools/utils/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, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/typescript-graphql-request/node_modules/tslib": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true + "dev": true, + "license": "0BSD" }, "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", - "integrity": "sha512-N5H7JhcMRzjM2KdvCitqkOd4hphzD9q3NVWGLvBe3Xgqx5Cs3Y4GUcCJbRolSXdQcYBVgZpLZrUe/qoxwYyfeg==", + "version": "2.5.13", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.13.tgz", + "integrity": "sha512-3vfR6Rx6iZU0JRt29GBkFlrSNTM6t+MSLF86ChvL4d/Jfo/JYAGuB3zNzPhirHYzJPCvLOAx2gy9ID1ltrpYiw==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-codegen/typescript": "^2.8.5", - "@graphql-codegen/visitor-plugin-common": "2.13.5", + "@graphql-codegen/plugin-helpers": "^3.1.2", + "@graphql-codegen/typescript": "^2.8.8", + "@graphql-codegen/visitor-plugin-common": "2.13.8", "auto-bind": "~4.0.0", "tslib": "~2.4.0" }, @@ -2497,12 +2900,13 @@ } }, "node_modules/@graphql-codegen/typescript-operations/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.1.tgz", - "integrity": "sha512-+V1WK4DUhejVSbkZrAsyv9gA4oQABVrtEUkT7vWq7gSf7Ln6OEM59lDUDsjp5wpLPTBIDJANbAe3qEd+iCB3Ow==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", + "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^8.8.0", + "@graphql-tools/utils": "^9.0.0", "change-case-all": "1.0.15", "common-tags": "1.8.2", "import-from": "4.0.0", @@ -2514,14 +2918,15 @@ } }, "node_modules/@graphql-codegen/typescript-operations/node_modules/@graphql-codegen/typescript": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.8.5.tgz", - "integrity": "sha512-5w3zNlnNKM9tI5ZRbhESmsJ4G16rSiFmNQX6Ot56fmcYUC6bnAt5fqvSqs2C+8fVGIIjeWuwjQA5Xn1VkaLY8A==", + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.8.8.tgz", + "integrity": "sha512-A0oUi3Oy6+DormOlrTC4orxT9OBZkIglhbJBcDmk34jAKKUgesukXRd4yOhmTrnbchpXz2T8IAOFB3FWIaK4Rw==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-codegen/schema-ast": "^2.6.0", - "@graphql-codegen/visitor-plugin-common": "2.13.5", + "@graphql-codegen/plugin-helpers": "^3.1.2", + "@graphql-codegen/schema-ast": "^2.6.1", + "@graphql-codegen/visitor-plugin-common": "2.13.8", "auto-bind": "~4.0.0", "tslib": "~2.4.0" }, @@ -2529,32 +2934,12 @@ "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@graphql-codegen/typescript-operations/node_modules/@graphql-codegen/visitor-plugin-common": { - "version": "2.13.5", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.5.tgz", - "integrity": "sha512-OV/mGnSvB/WkEqFu/3bPkAPDNRGRB3xONww5+06CObl383yGrasqM04shYYK4cpcCn9PVWFe8u0SLSEeGmMVrg==", - "dev": true, - "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/optimize": "^1.3.0", - "@graphql-tools/relay-operation-optimizer": "^6.5.0", - "@graphql-tools/utils": "^8.8.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.15", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "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" - } - }, "node_modules/@graphql-codegen/typescript-operations/node_modules/change-case-all": { "version": "1.0.15", "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, + "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -2568,11 +2953,19 @@ "upper-case-first": "^2.0.2" } }, - "node_modules/@graphql-codegen/visitor-plugin-common": { + "node_modules/@graphql-codegen/typescript-operations/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/typescript/node_modules/@graphql-codegen/visitor-plugin-common": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.9.1.tgz", "integrity": "sha512-j9eGOSGt+sJcwv0ijhZiQ2cF/0ponscekNVoF+vHdOT4RB0qgOQxykPBk6EbKxIHECnkdV8ARdPVTA21A93/QQ==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^2.4.0", "@graphql-tools/optimize": "^1.0.1", @@ -2589,315 +2982,356 @@ "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" } }, - "node_modules/@graphql-tools/apollo-engine-loader": { - "version": "7.3.21", - "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.3.21.tgz", - "integrity": "sha512-mCf5CRZ64Cj4pmXpcgSJDkHj93owntvAmyHpY651yAmQKYJ5Kltrw6rreo2VJr1Eu4BWdHqcMS++NLq5GPGewg==", + "node_modules/@graphql-codegen/typescript/node_modules/@graphql-tools/utils": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", + "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", "dev": true, + "license": "MIT", "dependencies": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/utils": "9.1.3", - "@whatwg-node/fetch": "^0.5.0", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-codegen/typescript/node_modules/@graphql-tools/utils/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, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } + "license": "0BSD" }, - "node_modules/@graphql-tools/batch-execute": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.5.14.tgz", - "integrity": "sha512-m6yXqqmFAH2V5JuSIC/geiGLBQA1Y6RddOJfUtkc9Z7ttkULRCd1W39TpYS6IlrCwYyTj+klO1/kdWiny38f5g==", + "node_modules/@graphql-codegen/typescript/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", "dev": true, - "dependencies": { - "@graphql-tools/utils": "9.1.3", - "dataloader": "2.1.0", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } + "license": "0BSD" }, - "node_modules/@graphql-tools/batch-execute/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-codegen/visitor-plugin-common": { + "version": "2.13.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.8.tgz", + "integrity": "sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "@graphql-codegen/plugin-helpers": "^3.1.2", + "@graphql-tools/optimize": "^1.3.0", + "@graphql-tools/relay-operation-optimizer": "^6.5.0", + "@graphql-tools/utils": "^9.0.0", + "auto-bind": "~4.0.0", + "change-case-all": "1.0.15", + "dependency-graph": "^0.11.0", + "graphql-tag": "^2.11.0", + "parse-filepath": "^1.0.2", + "tslib": "~2.4.0" }, "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "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" } }, - "node_modules/@graphql-tools/code-file-loader": { - "version": "7.3.15", - "resolved": "https://registry.npmjs.org/@graphql-tools/code-file-loader/-/code-file-loader-7.3.15.tgz", - "integrity": "sha512-cF8VNc/NANTyVSIK8BkD/KSXRF64DvvomuJ0evia7tJu4uGTXgDjimTMWsTjKRGOOBSTEbL6TA8e4DdIYq6Udw==", + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", + "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" + "@graphql-tools/utils": "^9.0.0", + "change-case-all": "1.0.15", + "common-tags": "1.8.2", + "import-from": "4.0.0", + "lodash": "~4.17.0", + "tslib": "~2.4.0" }, "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "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" } }, - "node_modules/@graphql-tools/code-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/change-case-all": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", + "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "change-case": "^4.1.2", + "is-lower-case": "^2.0.2", + "is-upper-case": "^2.0.2", + "lower-case": "^2.0.2", + "lower-case-first": "^2.0.2", + "sponge-case": "^1.0.1", + "swap-case": "^2.0.2", + "title-case": "^3.0.3", + "upper-case": "^2.0.2", + "upper-case-first": "^2.0.2" } }, - "node_modules/@graphql-tools/delegate": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-9.0.21.tgz", - "integrity": "sha512-SM8tFeq6ogFGhIxDE82WTS44/3IQ/wz9QksAKT7xWkcICQnyR9U6Qyt+W7VGnHiybqNsVK3kHNNS/i4KGSF85g==", + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", "dev": true, + "license": "0BSD" + }, + "node_modules/@graphql-tools/apollo-engine-loader": { + "version": "7.3.26", + "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.3.26.tgz", + "integrity": "sha512-h1vfhdJFjnCYn9b5EY1Z91JTF0KB3hHVJNQIsiUV2mpQXZdeOXQoaWeYEKaiI5R6kwBw5PP9B0fv3jfUIG8LyQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/batch-execute": "8.5.14", - "@graphql-tools/executor": "0.0.11", - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "dataloader": "2.1.0", - "tslib": "~2.4.0", - "value-or-promise": "1.0.11" + "@ardatan/sync-fetch": "^0.0.1", + "@graphql-tools/utils": "^9.2.1", + "@whatwg-node/fetch": "^0.8.0", + "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/delegate/node_modules/@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", + "node_modules/@graphql-tools/batch-execute": { + "version": "8.5.22", + "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.5.22.tgz", + "integrity": "sha512-hcV1JaY6NJQFQEwCKrYhpfLK8frSXDbtNMoTur98u10Cmecy1zrqNKSqhEyGetpgHxaJRqszGzKeI3RuroDN6A==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" + "@graphql-tools/utils": "^9.2.1", + "dataloader": "^2.2.2", + "tslib": "^2.4.0", + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/delegate/node_modules/@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", + "node_modules/@graphql-tools/code-file-loader": { + "version": "7.3.23", + "resolved": "https://registry.npmjs.org/@graphql-tools/code-file-loader/-/code-file-loader-7.3.23.tgz", + "integrity": "sha512-8Wt1rTtyTEs0p47uzsPJ1vAtfAx0jmxPifiNdmo9EOCuUPyQGEbMaik/YkqZ7QUFIEYEQu+Vgfo8tElwOPtx5Q==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", + "@graphql-tools/graphql-tag-pluck": "7.5.2", + "@graphql-tools/utils": "^9.2.1", + "globby": "^11.0.3", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "unixify": "^1.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/delegate/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/delegate": { + "version": "9.0.35", + "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-9.0.35.tgz", + "integrity": "sha512-jwPu8NJbzRRMqi4Vp/5QX1vIUeUPpWmlQpOkXQD2r1X45YsVceyUUBnktCrlJlDB4jPRVy7JQGwmYo3KFiOBMA==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "@graphql-tools/batch-execute": "^8.5.22", + "@graphql-tools/executor": "^0.0.20", + "@graphql-tools/schema": "^9.0.19", + "@graphql-tools/utils": "^9.2.1", + "dataloader": "^2.2.2", + "tslib": "^2.5.0", + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/executor": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor/-/executor-0.0.11.tgz", - "integrity": "sha512-GjtXW0ZMGZGKad6A1HXFPArkfxE0AIpznusZuQdy4laQx+8Ut3Zx8SAFJNnDfZJ2V5kU29B5Xv3Fr0/DiMBHOQ==", + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor/-/executor-0.0.20.tgz", + "integrity": "sha512-GdvNc4vszmfeGvUqlcaH1FjBoguvMYzxAfT6tDd4/LgwymepHhinqLNA5otqwVLW+JETcDaK7xGENzFomuE6TA==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "9.1.3", - "@graphql-typed-document-node/core": "3.1.1", - "@repeaterjs/repeater": "3.0.4", + "@graphql-tools/utils": "^9.2.1", + "@graphql-typed-document-node/core": "3.2.0", + "@repeaterjs/repeater": "^3.0.4", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/executor-graphql-ws": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-0.0.5.tgz", - "integrity": "sha512-1bJfZdSBPCJWz1pJ5g/YHMtGt6YkNRDdmqNQZ8v+VlQTNVfuBpY2vzj15uvf5uDrZLg2MSQThrKlL8av4yFpsA==", + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-0.0.14.tgz", + "integrity": "sha512-P2nlkAsPZKLIXImFhj0YTtny5NQVGSsKnhi7PzXiaHSXc6KkzqbWZHKvikD4PObanqg+7IO58rKFpGXP7eeO+w==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "9.1.3", + "@graphql-tools/utils": "^9.2.1", "@repeaterjs/repeater": "3.0.4", "@types/ws": "^8.0.0", - "graphql-ws": "5.11.2", + "graphql-ws": "5.12.1", "isomorphic-ws": "5.0.0", "tslib": "^2.4.0", - "ws": "8.11.0" + "ws": "8.13.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-graphql-ws/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/executor-graphql-ws/node_modules/@repeaterjs/repeater": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.0.4.tgz", + "integrity": "sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@graphql-tools/executor-http": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor-http/-/executor-http-0.1.10.tgz", + "integrity": "sha512-hnAfbKv0/lb9s31LhWzawQ5hghBfHS+gYWtqxME6Rl0Aufq9GltiiLBcl7OVVOnkLF0KhwgbYP1mB5VKmgTGpg==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "@graphql-tools/utils": "^9.2.1", + "@repeaterjs/repeater": "^3.0.4", + "@whatwg-node/fetch": "^0.8.1", + "dset": "^3.1.2", + "extract-files": "^11.0.0", + "meros": "^1.2.1", + "tslib": "^2.4.0", + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-graphql-ws/node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "node_modules/@graphql-tools/executor-http/node_modules/extract-files": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-11.0.0.tgz", + "integrity": "sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "node": "^12.20 || >= 14.13" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/jaydenseric" } }, - "node_modules/@graphql-tools/executor-http": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-http/-/executor-http-0.0.8.tgz", - "integrity": "sha512-Y0WzbBW2dDm68EqjRO7eaCC38H6mNFUCcy8ivwnv0hon/N4GjQJhrR0cApJh/xqn/YqCY0Sn2ScmdGVuSdaCcA==", + "node_modules/@graphql-tools/executor-legacy-ws": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-0.0.11.tgz", + "integrity": "sha512-4ai+NnxlNfvIQ4c70hWFvOZlSUN8lt7yc+ZsrwtNFbFPH/EroIzFMapAxM9zwyv9bH38AdO3TQxZ5zNxgBdvUw==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "9.1.3", - "@repeaterjs/repeater": "3.0.4", - "@whatwg-node/fetch": "0.5.4", - "dset": "3.1.2", - "extract-files": "^11.0.0", - "meros": "1.2.1", + "@graphql-tools/utils": "^9.2.1", + "@types/ws": "^8.0.0", + "isomorphic-ws": "5.0.0", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "ws": "8.13.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-http/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/git-loader": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/git-loader/-/git-loader-7.3.0.tgz", + "integrity": "sha512-gcGAK+u16eHkwsMYqqghZbmDquh8QaO24Scsxq+cVR+vx1ekRlsEiXvu+yXVDbZdcJ6PBIbeLcQbEu+xhDLmvQ==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "@graphql-tools/graphql-tag-pluck": "7.5.2", + "@graphql-tools/utils": "^9.2.1", + "is-glob": "4.0.3", + "micromatch": "^4.0.4", + "tslib": "^2.4.0", + "unixify": "^1.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-legacy-ws": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-0.0.5.tgz", - "integrity": "sha512-j2ZQVTI4rKIT41STzLPK206naYDhHxmGHot0siJKBKX1vMqvxtWBqvL66v7xYEOaX79wJrFc8l6oeURQP2LE6g==", + "node_modules/@graphql-tools/github-loader": { + "version": "7.3.28", + "resolved": "https://registry.npmjs.org/@graphql-tools/github-loader/-/github-loader-7.3.28.tgz", + "integrity": "sha512-OK92Lf9pmxPQvjUNv05b3tnVhw0JRfPqOf15jZjyQ8BfdEUrJoP32b4dRQQem/wyRL24KY4wOfArJNqzpsbwCA==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/utils": "9.1.3", - "@types/ws": "^8.0.0", - "isomorphic-ws": "5.0.0", + "@ardatan/sync-fetch": "^0.0.1", + "@graphql-tools/executor-http": "^0.1.9", + "@graphql-tools/graphql-tag-pluck": "^7.4.6", + "@graphql-tools/utils": "^9.2.1", + "@whatwg-node/fetch": "^0.8.0", "tslib": "^2.4.0", - "ws": "8.11.0" + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-legacy-ws/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/graphql-file-loader": { + "version": "7.5.17", + "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.17.tgz", + "integrity": "sha512-hVwwxPf41zOYgm4gdaZILCYnKB9Zap7Ys9OhY1hbwuAuC4MMNY9GpUjoTU3CQc3zUiPoYStyRtUGkHSJZ3HxBw==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "@graphql-tools/import": "6.7.18", + "@graphql-tools/utils": "^9.2.1", + "globby": "^11.0.3", + "tslib": "^2.4.0", + "unixify": "^1.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-legacy-ws/node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "node_modules/@graphql-tools/graphql-tag-pluck": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.5.2.tgz", + "integrity": "sha512-RW+H8FqOOLQw0BPXaahYepVSRjuOHw+7IL8Opaa5G5uYGOBxoXR7DceyQ7BcpMgktAOOmpDNQ2WtcboChOJSRA==", "dev": true, - "engines": { - "node": ">=10.0.0" + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.16.8", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/traverse": "^7.16.8", + "@babel/types": "^7.16.8", + "@graphql-tools/utils": "^9.2.1", + "tslib": "^2.4.0" }, "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/import": { + "version": "6.7.18", + "resolved": "https://registry.npmjs.org/@graphql-tools/import/-/import-6.7.18.tgz", + "integrity": "sha512-XQDdyZTp+FYmT7as3xRWH/x8dx0QZA2WZqfMF5EWb36a0PiH7WwlRQYIdyYXj8YCLpiWkeBXgBRHmMnwEYR8iQ==", "dev": true, + "license": "MIT", "dependencies": { + "@graphql-tools/utils": "^9.2.1", + "resolve-from": "5.0.0", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/git-loader": { - "version": "7.2.15", - "resolved": "https://registry.npmjs.org/@graphql-tools/git-loader/-/git-loader-7.2.15.tgz", - "integrity": "sha512-1d5HmeuxhSNjQ2+k2rfKgcKcnZEC6H5FM2pY5lSXHMv8VdBELZd7pYDs5/JxoZarDVYfYOJ5xTeVzxf+Du3VNg==", + "node_modules/@graphql-tools/json-file-loader": { + "version": "7.4.18", + "resolved": "https://registry.npmjs.org/@graphql-tools/json-file-loader/-/json-file-loader-7.4.18.tgz", + "integrity": "sha512-AJ1b6Y1wiVgkwsxT5dELXhIVUPs/u3VZ8/0/oOtpcoyO/vAeM5rOvvWegzicOOnQw8G45fgBRMkkRfeuwVt6+w==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "is-glob": "4.0.3", - "micromatch": "^4.0.4", + "@graphql-tools/utils": "^9.2.1", + "globby": "^11.0.3", "tslib": "^2.4.0", "unixify": "^1.0.0" }, @@ -2905,241 +3339,42 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/git-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", + "node_modules/@graphql-tools/load": { + "version": "7.8.14", + "resolved": "https://registry.npmjs.org/@graphql-tools/load/-/load-7.8.14.tgz", + "integrity": "sha512-ASQvP+snHMYm+FhIaLxxFgVdRaM0vrN9wW2BKInQpktwWTXVyk+yP5nQUCEGmn0RTdlPKrffBaigxepkEAJPrg==", "dev": true, + "license": "MIT", "dependencies": { + "@graphql-tools/schema": "^9.0.18", + "@graphql-tools/utils": "^9.2.1", + "p-limit": "3.1.0", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/github-loader": { - "version": "7.3.22", - "resolved": "https://registry.npmjs.org/@graphql-tools/github-loader/-/github-loader-7.3.22.tgz", - "integrity": "sha512-JE5F/ObbwknO7+gDfeuKAZtLS831WV8/SsLzQLMGY0hdgTbsAg2/xziAGprNToK4GMSD7ygCer9ZryvxBKMwbQ==", + "node_modules/@graphql-tools/merge": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.4.2.tgz", + "integrity": "sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==", "dev": true, + "license": "MIT", "dependencies": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "@whatwg-node/fetch": "^0.5.0", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/github-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-file-loader": { - "version": "7.5.13", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.13.tgz", - "integrity": "sha512-VWFVnw3aB6sykGfpb/Dn3sxQswqvp2FsVwDy8ubH1pgLuxlDuurhHjRHvMG2+p7IaHC7q8T3Vk/rLtZftrwOBQ==", - "dev": true, - "dependencies": { - "@graphql-tools/import": "6.7.14", - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-tag-pluck": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.4.2.tgz", - "integrity": "sha512-SXM1wR5TExrxocQTxZK5r74jTbg8GxSYLY3mOPCREGz6Fu7PNxMxfguUzGUAB43Mf44Dn8oVztzd2eitv2Qgww==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.16.8", - "@babel/plugin-syntax-import-assertions": "7.20.0", - "@babel/traverse": "^7.16.8", - "@babel/types": "^7.16.8", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-tag-pluck/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/import": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/import/-/import-6.7.14.tgz", - "integrity": "sha512-lRX/MHM0Km497kg4VXMvtV1DeG/AfPJFO2ovaL0kDujWEdyCsWxsB4whY7nPeiNaPA/nT3mQ8MU7yFzVjogF/Q==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "9.1.3", - "resolve-from": "5.0.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/import/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/json-file-loader": { - "version": "7.4.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/json-file-loader/-/json-file-loader-7.4.14.tgz", - "integrity": "sha512-AD9v3rN08wvVqgbrUSiHa8Ztrlk3EgwctcxuNE5qm47zPNL4gLaJ7Tw/KlGOR7Cm+pjlQylJHMUKNfaRLPZ0og==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/json-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load": { - "version": "7.8.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/load/-/load-7.8.8.tgz", - "integrity": "sha512-gMuQdO2jXmI0BNUc1MafxRQTWVMUtuH500pZAQtOdDdNJppV7lJdY6mMhITQ2qnhYDuMrcZPHhIkcftyQfkgUg==", - "dev": true, - "dependencies": { - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "p-limit": "3.1.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load/node_modules/@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load/node_modules/@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", - "dev": true, - "dependencies": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/merge": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.1.tgz", - "integrity": "sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "8.9.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", - "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/optimize": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.3.1.tgz", - "integrity": "sha512-5j5CZSRGWVobt4bgRRg7zhjPiSimk+/zIuColih8E8DxuFOaJ+t0qu7eZS5KXWBkjcd4BPNuhUPpNlEmHPqVRQ==", + "node_modules/@graphql-tools/optimize": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.4.0.tgz", + "integrity": "sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -3148,26 +3383,26 @@ } }, "node_modules/@graphql-tools/prisma-loader": { - "version": "7.2.50", - "resolved": "https://registry.npmjs.org/@graphql-tools/prisma-loader/-/prisma-loader-7.2.50.tgz", - "integrity": "sha512-tSZFtx5GP5LBHmChwVCkvFw9oCwc0QVP2xR/Pyp61c3Fb2gyqzFq/8lnbcmxR+Oi9/Cwt3JsSc4Jkg8jBi5HLw==", + "version": "7.2.72", + "resolved": "https://registry.npmjs.org/@graphql-tools/prisma-loader/-/prisma-loader-7.2.72.tgz", + "integrity": "sha512-0a7uV7Fky6yDqd0tI9+XMuvgIo6GAqiVzzzFV4OSLry4AwiQlI3igYseBV7ZVOGhedOTqj/URxjpiv07hRcwag==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/url-loader": "7.16.29", - "@graphql-tools/utils": "9.1.3", + "@graphql-tools/url-loader": "^7.17.18", + "@graphql-tools/utils": "^9.2.1", "@types/js-yaml": "^4.0.0", "@types/json-stable-stringify": "^1.0.32", - "@types/jsonwebtoken": "^8.5.0", + "@whatwg-node/fetch": "^0.8.2", "chalk": "^4.1.0", "debug": "^4.3.1", "dotenv": "^16.0.0", - "graphql-request": "^5.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "isomorphic-fetch": "^3.0.0", + "graphql-request": "^6.0.0", + "http-proxy-agent": "^6.0.0", + "https-proxy-agent": "^6.0.0", + "jose": "^4.11.4", "js-yaml": "^4.0.0", "json-stable-stringify": "^1.0.1", - "jsonwebtoken": "^9.0.0", "lodash": "^4.17.20", "scuid": "^1.1.0", "tslib": "^2.4.0", @@ -3177,65 +3412,42 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/prisma-loader/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==", + "node_modules/@graphql-tools/prisma-loader/node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", "dev": true, + "license": "BSD-2-Clause", "engines": { - "node": "^10.17.0 || ^12.0.0 || >= 13.7.0" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/jaydenseric" + "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, "node_modules/@graphql-tools/prisma-loader/node_modules/graphql-request": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-5.1.0.tgz", - "integrity": "sha512-0OeRVYigVwIiXhNmqnPDt+JhMzsjinxHE7TVy3Lm6jUzav0guVcL0lfSbi6jVTRAxcbwgyr6yrZioSHxf9gHzw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-6.1.0.tgz", + "integrity": "sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "cross-fetch": "^3.1.5", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" + "@graphql-typed-document-node/core": "^3.2.0", + "cross-fetch": "^3.1.5" }, "peerDependencies": { "graphql": "14 - 16" } }, "node_modules/@graphql-tools/relay-operation-optimizer": { - "version": "6.5.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.14.tgz", - "integrity": "sha512-RAy1fMfXig9X3gIkYnfEmv0mh20vZuAgWDq+zf1MrrsCAP364B+DKrBjLwn3D+4e0PMTlqwmqR0JB5t1VtZn2w==", + "version": "6.5.18", + "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz", + "integrity": "sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg==", "dev": true, + "license": "MIT", "dependencies": { "@ardatan/relay-compiler": "12.0.0", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/relay-operation-optimizer/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0" }, "peerDependencies": { @@ -3243,79 +3455,58 @@ } }, "node_modules/@graphql-tools/schema": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.5.1.tgz", - "integrity": "sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg==", + "version": "9.0.19", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.19.tgz", + "integrity": "sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/merge": "8.3.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/merge": "^8.4.1", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", - "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/url-loader": { - "version": "7.16.29", - "resolved": "https://registry.npmjs.org/@graphql-tools/url-loader/-/url-loader-7.16.29.tgz", - "integrity": "sha512-e7c0rLH4BIaYxOgglHhWbupTn3JZFXYIHXpY+T1CcTF3nQQCaKy8o59+R2AjtEgx3Az1WNahGn4xgkKUxUwCBw==", - "dev": true, - "dependencies": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/delegate": "9.0.21", - "@graphql-tools/executor-graphql-ws": "0.0.5", - "@graphql-tools/executor-http": "0.0.8", - "@graphql-tools/executor-legacy-ws": "0.0.5", - "@graphql-tools/utils": "9.1.3", - "@graphql-tools/wrap": "9.2.23", + "version": "7.17.18", + "resolved": "https://registry.npmjs.org/@graphql-tools/url-loader/-/url-loader-7.17.18.tgz", + "integrity": "sha512-ear0CiyTj04jCVAxi7TvgbnGDIN2HgqzXzwsfcqiVg9cvjT40NcMlZ2P1lZDgqMkZ9oyLTV8Bw6j+SyG6A+xPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ardatan/sync-fetch": "^0.0.1", + "@graphql-tools/delegate": "^9.0.31", + "@graphql-tools/executor-graphql-ws": "^0.0.14", + "@graphql-tools/executor-http": "^0.1.7", + "@graphql-tools/executor-legacy-ws": "^0.0.11", + "@graphql-tools/utils": "^9.2.1", + "@graphql-tools/wrap": "^9.4.2", "@types/ws": "^8.0.0", - "@whatwg-node/fetch": "^0.5.0", - "isomorphic-ws": "5.0.0", + "@whatwg-node/fetch": "^0.8.0", + "isomorphic-ws": "^5.0.0", "tslib": "^2.4.0", "value-or-promise": "^1.0.11", - "ws": "8.11.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" + "ws": "^8.12.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/url-loader/node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", + "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -3327,11 +3518,13 @@ } }, "node_modules/@graphql-tools/utils": { - "version": "8.13.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", - "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, + "license": "MIT", "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" }, "peerDependencies": { @@ -3339,101 +3532,53 @@ } }, "node_modules/@graphql-tools/wrap": { - "version": "9.2.23", - "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-9.2.23.tgz", - "integrity": "sha512-R+ar8lHdSnRQtfvkwQMOkBRlYLcBPdmFzZPiAj+tL9Nii4VNr4Oub37jcHiPBvRZSdKa9FHcKq5kKSQcbg1xuQ==", - "dev": true, - "dependencies": { - "@graphql-tools/delegate": "9.0.21", - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/wrap/node_modules/@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/wrap/node_modules/@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-9.4.2.tgz", + "integrity": "sha512-DFcd9r51lmcEKn0JW43CWkkI2D6T9XI1juW/Yo86i04v43O9w2/k4/nx2XTJv4Yv+iXwUw7Ok81PGltwGJSDSA==", "dev": true, + "license": "MIT", "dependencies": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", + "@graphql-tools/delegate": "^9.0.31", + "@graphql-tools/schema": "^9.0.18", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/wrap/node_modules/@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" + "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-typed-document-node/core": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.1.tgz", - "integrity": "sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==", + "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==", "dev": true, + "license": "MIT", "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": "^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/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" } }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=12.22" }, @@ -3443,22 +3588,18 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@iarna/toml": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", - "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==", - "dev": true + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -3475,28 +3616,17 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, + "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -3505,50 +3635,12 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3558,6 +3650,7 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "@types/node": "*", @@ -3575,6 +3668,7 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^27.5.1", "@jest/reporters": "^27.5.1", @@ -3622,6 +3716,7 @@ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/fake-timers": "^27.5.1", "@jest/types": "^27.5.1", @@ -3632,11 +3727,35 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils/node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jest/fake-timers": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "@sinonjs/fake-timers": "^8.0.1", @@ -3654,6 +3773,7 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/types": "^27.5.1", @@ -3668,6 +3788,7 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", "dev": true, + "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^27.5.1", @@ -3707,11 +3828,25 @@ } } }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jest/source-map": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0", "graceful-fs": "^4.2.9", @@ -3726,6 +3861,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^27.5.1", "@jest/types": "^27.5.1", @@ -3741,6 +3877,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^27.5.1", "graceful-fs": "^4.2.9", @@ -3756,6 +3893,7 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.1.0", "@jest/types": "^27.5.1", @@ -3782,6 +3920,7 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", @@ -3794,23 +3933,26 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -3820,24 +3962,27 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "devOptional": true + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "devOptional": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "version": "0.3.21", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.21.tgz", + "integrity": "sha512-SRfKmRe1KvYnxjEMtxEr+J4HIeMX5YBg/qhRHpxEIGjhX1rshcHlnFUE9K0GazhVKWM7B+nARSkV8LuvJdJ5/g==", "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@metamask/eth-sig-util": { @@ -3856,27 +4001,99 @@ "node": ">=12.0.0" } }, + "node_modules/@metamask/eth-sig-util/node_modules/@types/bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "peer": true + }, + "node_modules/@metamask/eth-sig-util/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", + "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "peer": true, + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", + "peer": true, + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", + "peer": true + }, "node_modules/@multiformats/base-x": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@multiformats/base-x/-/base-x-4.0.1.tgz", - "integrity": "sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==" + "integrity": "sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==", + "license": "MIT" + }, + "node_modules/@noble/curves": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", + "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.3.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/hashes": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.2.tgz", - "integrity": "sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "peer": true + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/secp256k1": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.3.tgz", - "integrity": "sha512-T04e4iTurVy7I8Sw4+c5OSN9/RkPlo1uKxAomtxQNLq8j1uPAqnsqG1bqvY3Jv7c13gyr6dui0zmh/I3+f/JaQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz", + "integrity": "sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==", "funding": [ { "type": "individual", @@ -3890,6 +4107,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -3903,6 +4121,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -3912,6 +4131,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -3921,17 +4141,18 @@ } }, "node_modules/@nomicfoundation/ethereumjs-block": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-4.0.0.tgz", - "integrity": "sha512-bk8uP8VuexLgyIZAHExH1QEovqx0Lzhc9Ntm63nCRKLHXIZkobaFaeCVwTESV7YkPKUk7NiK11s8ryed4CS9yA==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-5.0.2.tgz", + "integrity": "sha512-hSe6CuHI4SsSiWWjHDIzWhSiAVpzMUcDRpWYzN0T9l8/Rz7xNn3elwVOJ/tAyS0LqL6vitUD78Uk7lQDXZun7Q==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "ethereum-cryptography": "0.1.3" + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", + "ethereum-cryptography": "0.1.3", + "ethers": "^5.7.1" }, "engines": { "node": ">=14" @@ -3961,17 +4182,18 @@ } }, "node_modules/@nomicfoundation/ethereumjs-blockchain": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-6.0.0.tgz", - "integrity": "sha512-pLFEoea6MWd81QQYSReLlLfH7N9v7lH66JC/NMPN848ySPPQA5renWnE7wPByfQFzNrPBuDDRFFULMDmj1C0xw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-7.0.2.tgz", + "integrity": "sha512-8UUsSXJs+MFfIIAKdh3cG16iNmWzWC/91P40sazNvrqhhdR/RtGDlFk2iFTGbBAZPs2+klZVzhRX8m2wvuvz3w==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-ethash": "^2.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-ethash": "3.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", @@ -4006,25 +4228,34 @@ "setimmediate": "^1.0.5" } }, + "node_modules/@nomicfoundation/ethereumjs-blockchain/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "peer": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/@nomicfoundation/ethereumjs-common": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-3.0.0.tgz", - "integrity": "sha512-WS7qSshQfxoZOpHG/XqlHEGRG1zmyjYrvmATvc4c62+gZXgre1ymYP8ZNgx/3FyZY0TWe9OjFlKOfLqmgOeYwA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.2.tgz", + "integrity": "sha512-I2WGP3HMGsOoycSdOTSqIaES0ughQTueOsddJ36aYVpI3SN8YSusgRFLwzDJwRFVIYDKx/iJz0sQ5kBHVgdDwg==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@nomicfoundation/ethereumjs-util": "9.0.2", "crc-32": "^1.2.0" } }, "node_modules/@nomicfoundation/ethereumjs-ethash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-2.0.0.tgz", - "integrity": "sha512-WpDvnRncfDUuXdsAXlI4lXbqUDOA+adYRQaEezIkxqDkc+LDyYDbd/xairmY98GnQzo1zIqsIL6GB5MoMSJDew==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-3.0.2.tgz", + "integrity": "sha512-8PfoOQCcIcO9Pylq0Buijuq/O73tmMVURK0OqdjhwqcGHYC2PwhbajDh7GZ55ekB0Px197ajK3PQhpKoiI/UPg==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "bigint-crypto-utils": "^3.0.23", "ethereum-cryptography": "0.1.3" @@ -4057,15 +4288,15 @@ } }, "node_modules/@nomicfoundation/ethereumjs-evm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-1.0.0.tgz", - "integrity": "sha512-hVS6qRo3V1PLKCO210UfcEQHvlG7GqR8iFzp0yyjTg2TmJQizcChKgWo8KFsdMw6AyoLgLhHGHw4HdlP8a4i+Q==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-2.0.2.tgz", + "integrity": "sha512-rBLcUaUfANJxyOx9HIdMX6uXGin6lANCulIm/pjMgRqfiCRMZie3WKYxTSd8ZE/d+qT+zTedBF4+VHTdTSePmQ==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@types/async-eventemitter": "^0.2.1", - "async-eventemitter": "^0.2.4", + "@ethersproject/providers": "^5.7.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "mcl-wasm": "^0.7.1", @@ -4099,9 +4330,9 @@ } }, "node_modules/@nomicfoundation/ethereumjs-rlp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-4.0.0.tgz", - "integrity": "sha512-GaSOGk5QbUk4eBP5qFbpXoZoZUj/NrW7MRa0tKY4Ew4c2HAS0GXArEMAamtFrkazp0BO4K5p2ZCG3b2FmbShmw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.2.tgz", + "integrity": "sha512-QwmemBc+MMsHJ1P1QvPl8R8p2aPvvVcKBbvHnQOKBpBztEo0omN0eaob6FeZS/e3y9NSe+mfu3nNFBHszqkjTA==", "peer": true, "bin": { "rlp": "bin/rlp" @@ -4111,18 +4342,17 @@ } }, "node_modules/@nomicfoundation/ethereumjs-statemanager": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-1.0.0.tgz", - "integrity": "sha512-jCtqFjcd2QejtuAMjQzbil/4NHf5aAWxUc+CvS0JclQpl+7M0bxMofR2AJdtz+P3u0ke2euhYREDiE7iSO31vQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-2.0.2.tgz", + "integrity": "sha512-dlKy5dIXLuDubx8Z74sipciZnJTRSV/uHG48RSijhgm1V7eXYFC567xgKtsKiVZB1ViTP9iFL4B6Je0xD6X2OA==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", - "functional-red-black-tree": "^1.0.1" + "ethers": "^5.7.1", + "js-sdsl": "^4.1.4" } }, "node_modules/@nomicfoundation/ethereumjs-statemanager/node_modules/ethereum-cryptography": { @@ -4149,13 +4379,14 @@ } }, "node_modules/@nomicfoundation/ethereumjs-trie": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-5.0.0.tgz", - "integrity": "sha512-LIj5XdE+s+t6WSuq/ttegJzZ1vliwg6wlb+Y9f4RlBpuK35B9K02bO7xU+E6Rgg9RGptkWd6TVLdedTI4eNc2A==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-6.0.2.tgz", + "integrity": "sha512-yw8vg9hBeLYk4YNg5MrSJ5H55TLOv2FSWUTROtDtTMMmDGROsAu+0tBjiNGTnKRi400M6cEzoFfa89Fc5k8NTQ==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", + "@types/readable-stream": "^2.3.13", "ethereum-cryptography": "0.1.3", "readable-stream": "^3.6.0" }, @@ -4187,14 +4418,16 @@ } }, "node_modules/@nomicfoundation/ethereumjs-tx": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-4.0.0.tgz", - "integrity": "sha512-Gg3Lir2lNUck43Kp/3x6TfBNwcWC9Z1wYue9Nz3v4xjdcv6oDW9QSMJxqsKw9QEGoBBZ+gqwpW7+F05/rs/g1w==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.2.tgz", + "integrity": "sha512-T+l4/MmTp7VhJeNloMkM+lPU3YMUaXdcXgTGCf8+ZFvV9NYZTRLFekRwlG6/JMmVfIfbrW+dRRJ9A6H5Q/Z64g==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", + "@chainsafe/ssz": "^0.9.2", + "@ethersproject/providers": "^5.7.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "ethereum-cryptography": "0.1.3" }, "engines": { @@ -4225,18 +4458,38 @@ } }, "node_modules/@nomicfoundation/ethereumjs-util": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-8.0.0.tgz", - "integrity": "sha512-2emi0NJ/HmTG+CGY58fa+DQuAoroFeSH9gKu9O6JnwTtlzJtgfTixuoOqLEgyyzZVvwfIpRueuePb8TonL1y+A==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.2.tgz", + "integrity": "sha512-4Wu9D3LykbSBWZo8nJCnzVIYGvGCuyiYLIJa9XXNVt1q1jUzHdB+sJvx95VGCpPkCT+IbLecW6yfzy3E1bQrwQ==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-rlp": "^4.0.0-beta.2", + "@chainsafe/ssz": "^0.10.0", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "ethereum-cryptography": "0.1.3" }, "engines": { "node": ">=14" } }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/@chainsafe/persistent-merkle-tree": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.5.0.tgz", + "integrity": "sha512-l0V1b5clxA3iwQLXP40zYjyZYospQLZXzBVIhhr9kDg/1qHZfzzHw0jj4VPBijfYCArZDlPkRi1wZaV2POKeuw==", + "peer": true, + "dependencies": { + "@chainsafe/as-sha256": "^0.3.1" + } + }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/@chainsafe/ssz": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@chainsafe/ssz/-/ssz-0.10.2.tgz", + "integrity": "sha512-/NL3Lh8K+0q7A3LsiFq09YXS9fPE+ead2rr7vM2QK8PLzrNsw3uqrif9bpRX5UxgeRjM+vYi+boCM3+GM4ovXg==", + "peer": true, + "dependencies": { + "@chainsafe/as-sha256": "^0.3.1", + "@chainsafe/persistent-merkle-tree": "^0.5.0" + } + }, "node_modules/@nomicfoundation/ethereumjs-util/node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -4261,25 +4514,22 @@ } }, "node_modules/@nomicfoundation/ethereumjs-vm": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-6.0.0.tgz", - "integrity": "sha512-JMPxvPQ3fzD063Sg3Tp+UdwUkVxMoo1uML6KSzFhMH3hoQi/LMuXBoEHAoW83/vyNS9BxEe6jm6LmT5xdeEJ6w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-7.0.2.tgz", + "integrity": "sha512-Bj3KZT64j54Tcwr7Qm/0jkeZXJMfdcAtRBedou+Hx0dPOSIgqaIr0vvLwP65TpHbak2DmAq+KJbW2KNtIoFwvA==", "peer": true, "dependencies": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-blockchain": "^6.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-evm": "^1.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-statemanager": "^1.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@types/async-eventemitter": "^0.2.1", - "async-eventemitter": "^0.2.4", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", - "functional-red-black-tree": "^1.0.1", "mcl-wasm": "^0.7.1", "rustbn.js": "~0.2.0" }, @@ -4311,30 +4561,30 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.0.tgz", - "integrity": "sha512-xGWAiVCGOycvGiP/qrlf9f9eOn7fpNbyJygcB0P21a1MDuVPlKt0Srp7rvtBEutYQ48ouYnRXm33zlRnlTOPHg==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.1.tgz", + "integrity": "sha512-1LMtXj1puAxyFusBgUIy5pZk3073cNXYnXUpuNKFghHbIit/xZgbk0AokpUADbNm3gyD6bFWl3LRFh3dhVdREg==", "peer": true, "engines": { "node": ">= 12" }, "optionalDependencies": { - "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.0", - "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.0", - "@nomicfoundation/solidity-analyzer-freebsd-x64": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.0" + "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.1", + "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.1", + "@nomicfoundation/solidity-analyzer-freebsd-x64": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.1" } }, "node_modules/@nomicfoundation/solidity-analyzer-darwin-arm64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.0.tgz", - "integrity": "sha512-vEF3yKuuzfMHsZecHQcnkUrqm8mnTWfJeEVFHpg+cO+le96xQA4lAJYdUan8pXZohQxv1fSReQsn4QGNuBNuCw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.1.tgz", + "integrity": "sha512-KcTodaQw8ivDZyF+D76FokN/HdpgGpfjc/gFCImdLUyqB6eSWVaZPazMbeAjmfhx3R0zm/NYVzxwAokFKgrc0w==", "cpu": [ "arm64" ], @@ -4348,9 +4598,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-darwin-x64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.0.tgz", - "integrity": "sha512-dlHeIg0pTL4dB1l9JDwbi/JG6dHQaU1xpDK+ugYO8eJ1kxx9Dh2isEUtA4d02cQAl22cjOHTvifAk96A+ItEHA==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.1.tgz", + "integrity": "sha512-XhQG4BaJE6cIbjAVtzGOGbK3sn1BO9W29uhk9J8y8fZF1DYz0Doj8QDMfpMu+A6TjPDs61lbsmeYodIDnfveSA==", "cpu": [ "x64" ], @@ -4364,9 +4614,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-freebsd-x64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.0.tgz", - "integrity": "sha512-WFCZYMv86WowDA4GiJKnebMQRt3kCcFqHeIomW6NMyqiKqhK1kIZCxSLDYsxqlx396kKLPN1713Q1S8tu68GKg==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.1.tgz", + "integrity": "sha512-GHF1VKRdHW3G8CndkwdaeLkVBi5A9u2jwtlS7SLhBc8b5U/GcoL39Q+1CSO3hYqePNP+eV5YI7Zgm0ea6kMHoA==", "cpu": [ "x64" ], @@ -4380,9 +4630,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-gnu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.0.tgz", - "integrity": "sha512-DTw6MNQWWlCgc71Pq7CEhEqkb7fZnS7oly13pujs4cMH1sR0JzNk90Mp1zpSCsCs4oKan2ClhMlLKtNat/XRKQ==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.1.tgz", + "integrity": "sha512-g4Cv2fO37ZsUENQ2vwPnZc2zRenHyAxHcyBjKcjaSmmkKrFr64yvzeNO8S3GBFCo90rfochLs99wFVGT/0owpg==", "cpu": [ "arm64" ], @@ -4396,9 +4646,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-musl": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.0.tgz", - "integrity": "sha512-wUpUnR/3GV5Da88MhrxXh/lhb9kxh9V3Jya2NpBEhKDIRCDmtXMSqPMXHZmOR9DfCwCvG6vLFPr/+YrPCnUN0w==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.1.tgz", + "integrity": "sha512-WJ3CE5Oek25OGE3WwzK7oaopY8xMw9Lhb0mlYuJl/maZVo+WtP36XoQTb7bW/i8aAdHW5Z+BqrHMux23pvxG3w==", "cpu": [ "arm64" ], @@ -4412,9 +4662,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.0.tgz", - "integrity": "sha512-lR0AxK1x/MeKQ/3Pt923kPvwigmGX3OxeU5qNtQ9pj9iucgk4PzhbS3ruUeSpYhUxG50jN4RkIGwUMoev5lguw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.1.tgz", + "integrity": "sha512-5WN7leSr5fkUBBjE4f3wKENUy9HQStu7HmWqbtknfXkkil+eNWiBV275IOlpXku7v3uLsXTOKpnnGHJYI2qsdA==", "cpu": [ "x64" ], @@ -4428,9 +4678,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-linux-x64-musl": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.0.tgz", - "integrity": "sha512-A1he/8gy/JeBD3FKvmI6WUJrGrI5uWJNr5Xb9WdV+DK0F8msuOqpEByLlnTdLkXMwW7nSl3awvLezOs9xBHJEg==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.1.tgz", + "integrity": "sha512-KdYMkJOq0SYPQMmErv/63CwGwMm5XHenEna9X9aB8mQmhDBrYrlAOSsIPgFCUSL0hjxE3xHP65/EPXR/InD2+w==", "cpu": [ "x64" ], @@ -4444,9 +4694,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-win32-arm64-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.0.tgz", - "integrity": "sha512-7x5SXZ9R9H4SluJZZP8XPN+ju7Mx+XeUMWZw7ZAqkdhP5mK19I4vz3x0zIWygmfE8RT7uQ5xMap0/9NPsO+ykw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.1.tgz", + "integrity": "sha512-VFZASBfl4qiBYwW5xeY20exWhmv6ww9sWu/krWSesv3q5hA0o1JuzmPHR4LPN6SUZj5vcqci0O6JOL8BPw+APg==", "cpu": [ "arm64" ], @@ -4460,9 +4710,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-win32-ia32-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.0.tgz", - "integrity": "sha512-m7w3xf+hnE774YRXu+2mGV7RiF3QJtUoiYU61FascCkQhX3QMQavh7saH/vzb2jN5D24nT/jwvaHYX/MAM9zUw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.1.tgz", + "integrity": "sha512-JnFkYuyCSA70j6Si6cS1A9Gh1aHTEb8kOTBApp/c7NRTFGNMH8eaInKlyuuiIbvYFhlXW4LicqyYuWNNq9hkpQ==", "cpu": [ "ia32" ], @@ -4476,9 +4726,9 @@ } }, "node_modules/@nomicfoundation/solidity-analyzer-win32-x64-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.0.tgz", - "integrity": "sha512-xCuybjY0sLJQnJhupiFAXaek2EqF0AP0eBjgzaalPXSNvCEN6ZYHvUzdA50ENDVeSYFXcUsYf3+FsD3XKaeptA==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.1.tgz", + "integrity": "sha512-HrVJr6+WjIXGnw3Q9u6KQcbZCtk0caVWhCdFADySvRyUxJ8PnzlaP+MhwNE8oyT8OZ6ejHBRrrgjSqDCFXGirw==", "cpu": [ "x64" ], @@ -4494,17 +4744,19 @@ "node_modules/@openzeppelin/contracts": { "version": "3.4.2-solc-0.7", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.2-solc-0.7.tgz", - "integrity": "sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA==" + "integrity": "sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA==", + "license": "MIT" }, "node_modules/@peculiar/asn1-schema": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.3.tgz", - "integrity": "sha512-6GptMYDMyWBHTUKndHaDsRZUO/XMSgIns2krxcm2L7SEExRHwawFvSwNBhqNPR9HJwv3MruAiF1bhN0we6j6GQ==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.8.tgz", + "integrity": "sha512-ULB1XqHKx1WBU/tTFIA+uARuRoBVZ4pNdOA878RDrRbBfBGcSzi5HBkdScC6ZbHn8z7L8gmKCgPC1LHRrP46tA==", "dev": true, + "license": "MIT", "dependencies": { "asn1js": "^3.0.5", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" + "pvtsutils": "^1.3.5", + "tslib": "^2.6.2" } }, "node_modules/@peculiar/json-schema": { @@ -4512,6 +4764,7 @@ "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.0" }, @@ -4520,16 +4773,17 @@ } }, "node_modules/@peculiar/webcrypto": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.4.1.tgz", - "integrity": "sha512-eK4C6WTNYxoI7JOabMoZICiyqRRtJB220bh0Mbj5RwRycleZf9BPyZoxsTvpP0FpmVS2aS13NKOuh5/tN3sIRw==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.4.3.tgz", + "integrity": "sha512-VtaY4spKTdN5LjJ04im/d/joXuvLbQdgy5Z4DXF4MFZhQ+MTrejbNMkfZBp1Bs3O5+bFqnJgyGdPuZQflvIa5A==", "dev": true, + "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.3.0", + "@peculiar/asn1-schema": "^2.3.6", "@peculiar/json-schema": "^1.1.12", "pvtsutils": "^1.3.2", - "tslib": "^2.4.1", - "webcrypto-core": "^1.7.4" + "tslib": "^2.5.0", + "webcrypto-core": "^1.7.7" }, "engines": { "node": ">=10.12.0" @@ -4538,27 +4792,32 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -4567,39 +4826,46 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" }, "node_modules/@repeaterjs/repeater": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.0.4.tgz", - "integrity": "sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA==", - "dev": true + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.0.5.tgz", + "integrity": "sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA==", + "dev": true, + "license": "MIT" }, "node_modules/@samverschueren/stream-to-observable": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz", "integrity": "sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==", "dev": true, + "license": "MIT", "dependencies": { "any-observable": "^0.3.0" }, @@ -4616,48 +4882,63 @@ } }, "node_modules/@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "peer": true + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", + "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@scure/bip32": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.0.tgz", - "integrity": "sha512-ftTW3kKX54YXLCxH6BB7oEEoJfoE2pIgw7MINKAs5PsS6nqKPuKk1haTF/EuHmYqG330t5GSrdmtRuHaY1a62Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "peer": true, + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", + "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", + "license": "MIT", "dependencies": { - "@noble/hashes": "~1.1.1", - "@noble/secp256k1": "~1.6.0", + "@noble/curves": "~1.1.0", + "@noble/hashes": "~1.3.1", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.0.tgz", - "integrity": "sha512-pwrPOS16VeTKg98dYXQyIjJEcWfz7/1YJIwxUEPFfQPtc86Ym/1sVgQ2RLoD43AazMk2l/unK4ITySSpW2+82w==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "peer": true, + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "license": "MIT", "dependencies": { - "@noble/hashes": "~1.1.1", + "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@sentry/core": { @@ -4742,6 +5023,28 @@ "node": ">=6" } }, + "node_modules/@sentry/node/node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@sentry/node/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "peer": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/@sentry/node/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4798,13 +5101,23 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "peer": true }, - "node_modules/@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true, + "license": "MIT" + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" } }, "node_modules/@sinonjs/commons": { @@ -4812,6 +5125,7 @@ "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -4821,6 +5135,7 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1.7.0" } @@ -4829,6 +5144,7 @@ "version": "0.3.20", "resolved": "https://registry.npmjs.org/@swapr/core/-/core-0.3.20.tgz", "integrity": "sha512-wUBRsb+Oahm4HUHBP1Ou/X3wY+6gLKjj0Zz6+G5nqDmtkpQhYSGRQvmtNZXbVKFtQAsNlLo2mGNF1T1haMOWSQ==", + "license": "AGPL-3.0-or-later", "dependencies": { "typescript": "^3.9.5" }, @@ -4840,6 +5156,7 @@ "version": "3.9.10", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -4852,6 +5169,7 @@ "version": "0.3.23", "resolved": "https://registry.npmjs.org/@swapr/periphery/-/periphery-0.3.23.tgz", "integrity": "sha512-6ihqkdWkiEaVJ+hM4vBreoMA9er6RM+iD8T54tOfCvcR50aWbgRlfxTzFY6iZjR3IwAqph3ww/+QcJXv+mLemw==", + "license": "GPL-3.0-or-later", "dependencies": { "@swapr/core": "^0.3.17" }, @@ -4864,6 +5182,7 @@ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", "dev": true, + "license": "MIT", "dependencies": { "defer-to-connect": "^1.0.1" }, @@ -4871,11 +5190,19 @@ "node": ">=6" } }, + "node_modules/@szmarczak/http-timer/node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", + "integrity": "sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==", "dev": true, + "license": "MIT", "dependencies": { "@adobe/css-tools": "^4.0.1", "@babel/runtime": "^7.9.2", @@ -4898,6 +5225,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -4907,95 +5235,100 @@ } }, "node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 10" + "node": ">= 6" } }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "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==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "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==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "devOptional": true - }, - "node_modules/@types/async-eventemitter": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@types/async-eventemitter/-/async-eventemitter-0.2.1.tgz", - "integrity": "sha512-M2P4Ng26QbAeITiH7w1d7OxtldgfAe0wobpyJzVK/XOb0cUGKU2R4pfAhqcJBXAe2ife5ZOhSv4wk7p+ffURtg==", - "peer": true + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "devOptional": true, + "license": "MIT" }, "node_modules/@types/babel__core": { - "version": "7.1.20", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.20.tgz", - "integrity": "sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", - "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.3.0" + "@babel/types": "^7.20.7" } }, "node_modules/@types/big.js": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-4.0.5.tgz", "integrity": "sha512-D9KFrAt05FDSqLo7PU9TDHfDgkarlwdkuwFsg7Zm4xl62tTNaz+zN+Tkcdx2wGLBbSMf8BnoMhOVeUGUaJfLKg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/bn.js": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", - "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", + "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -5004,6 +5337,7 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "license": "MIT", "dependencies": { "@types/http-cache-semantics": "*", "@types/keyv": "^3.1.4", @@ -5012,48 +5346,54 @@ } }, "node_modules/@types/debug": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz", - "integrity": "sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/ms": "*" } }, "node_modules/@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/http-cache-semantics": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", - "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", + "license": "MIT" }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } }, "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } @@ -5063,63 +5403,62 @@ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", "dev": true, + "license": "MIT", "dependencies": { "jest-matcher-utils": "^27.0.0", "pretty-format": "^27.0.0" } }, "node_modules/@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", + "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", + "dev": true, + "license": "MIT" }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", - "dev": true + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" }, "node_modules/@types/json-stable-stringify": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/@types/json-stable-stringify/-/json-stable-stringify-1.0.34.tgz", - "integrity": "sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw==", - "dev": true + "version": "1.0.36", + "resolved": "https://registry.npmjs.org/@types/json-stable-stringify/-/json-stable-stringify-1.0.36.tgz", + "integrity": "sha512-b7bq23s4fgBB76n34m2b3RBf6M369B0Z9uRR8aHTMd8kZISRkmDEpPD8hhpYvDFzr3bJCPES96cm3Q6qRNDbQw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/jsonwebtoken": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", - "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", "dev": true, - "dependencies": { - "@types/node": "*" - } + "license": "MIT" }, "node_modules/@types/keyv": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/lodash": { - "version": "4.14.191", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", - "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==", - "dev": true + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/lodash.flatmap": { - "version": "4.5.7", - "resolved": "https://registry.npmjs.org/@types/lodash.flatmap/-/lodash.flatmap-4.5.7.tgz", - "integrity": "sha512-ZTfFXFpta2MU1SkoidRz4QMPpFJdFuZkDNffofj/b3XGT59vD0cpddO0agiwjp9l8KIjLNHRcaAUpi2/izUmFw==", + "version": "4.5.9", + "resolved": "https://registry.npmjs.org/@types/lodash.flatmap/-/lodash.flatmap-4.5.9.tgz", + "integrity": "sha512-rACVyVCkf+YRthjL7wKb2e96nnZw+bRIEo2nl2ewP0GZLOuRP9QcB7FnyOj7aXI5Vrs6qONnc1lg66FdHVqCmQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/lodash": "*" } @@ -5127,7 +5466,8 @@ "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "license": "MIT" }, "node_modules/@types/lru-cache": { "version": "5.1.1", @@ -5136,142 +5476,378 @@ "peer": true }, "node_modules/@types/memoizee": { - "version": "0.4.8", - "resolved": "https://registry.npmjs.org/@types/memoizee/-/memoizee-0.4.8.tgz", - "integrity": "sha512-qDpXKGgwKywnQt/64fH1O0LiPA++QGIYeykEUiZ51HymKVRLnUSGcRuF60IfpPeeXiuRwiR/W4y7S5VzbrgLCA==", - "dev": true + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@types/memoizee/-/memoizee-0.4.11.tgz", + "integrity": "sha512-2gyorIBZu8GoDr9pYjROkxWWcFtHCquF7TVbN2I+/OvgZhnIGQS0vX5KJz4lXNKb8XOSfxFOSG5OLru1ESqLUg==", + "dev": true, + "license": "MIT" }, "node_modules/@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==" + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", + "license": "MIT" }, "node_modules/@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", - "dev": true + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", + "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", + "dev": true, + "license": "MIT" }, "node_modules/@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", - "dev": true + "version": "0.7.34", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==", + "dev": true, + "license": "MIT" }, "node_modules/@types/node": { - "version": "18.11.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.17.tgz", - "integrity": "sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==" + "version": "20.11.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.0.tgz", + "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/node-fetch": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.10.tgz", + "integrity": "sha512-PPpPK6F9ALFTn59Ka3BaL+qGuipRfxNE8qVgkp0bVixeiR2c2/L+IVOiBdu9JhhT22sWnQEp6YyHGI2b2+CMcA==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", - "form-data": "^3.0.0" + "form-data": "^4.0.0" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" } }, "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==" + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", + "license": "MIT" }, "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", + "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/pbkdf2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", - "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", - "dev": true + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/readable-stream": { + "version": "2.3.15", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-2.3.15.tgz", + "integrity": "sha512-oM5JSKQCcICF1wvGgmecmHldZ48OZamtMxcGGVICOJA8o8cahXC1zEVAif8iwoc5j8etxFaRFnf095+CDsuoFQ==", + "peer": true, + "dependencies": { + "@types/node": "*", + "safe-buffer": "~5.1.1" + } + }, + "node_modules/@types/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "peer": true }, "node_modules/@types/responselike": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", - "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.6.tgz", + "integrity": "sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", - "dev": true + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true, + "license": "MIT" }, "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/testing-library__jest-dom": { - "version": "5.14.5", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz", - "integrity": "sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==", + "version": "5.14.9", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.9.tgz", + "integrity": "sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw==", "dev": true, + "license": "MIT", "dependencies": { "@types/jest": "*" } }, + "node_modules/@types/testing-library__jest-dom/node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/@types/jest": { + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/testing-library__jest-dom/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/ws": { - "version": "8.5.3", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", - "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", + "version": "8.5.10", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz", + "integrity": "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "version": "16.0.9", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.9.tgz", + "integrity": "sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==", "dev": true, + "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.47.0.tgz", - "integrity": "sha512-AHZtlXAMGkDmyLuLZsRpH3p4G/1iARIwc/T0vIem2YB+xW6pZaXYXzCBnZSF/5fdM97R9QqZWZ+h3iW10XgevQ==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/type-utils": "5.47.0", - "@typescript-eslint/utils": "5.47.0", + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" }, @@ -5292,48 +5868,32 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "license": "ISC", "dependencies": { - "yallist": "^4.0.0" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" }, "engines": { "node": ">=10" } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/parser": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.47.0.tgz", - "integrity": "sha512-udPU4ckK+R1JWCGdQC4Qa27NtBg7w020ffHqGyAK8pAgOVuNw7YaKXGChk+udh+iiGIJf6/E/0xhVXyPAbsczw==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/typescript-estree": "5.47.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "debug": "^4.3.4" }, "engines": { @@ -5353,13 +5913,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.47.0.tgz", - "integrity": "sha512-dvJab4bFf7JVvjPuh3sfBUWsiD73aiftKBpWSfi3sUkysDQ4W8x+ZcFpNp7Kgv0weldhpmMOZBjx1wKN8uWvAw==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/visitor-keys": "5.47.0" + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5370,13 +5931,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.47.0.tgz", - "integrity": "sha512-1J+DFFrYoDUXQE1b7QjrNGARZE6uVhBqIvdaXTe5IN+NmEyD68qXR1qX1g2u4voA+nCaelQyG8w30SAOihhEYg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "5.47.0", - "@typescript-eslint/utils": "5.47.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -5397,10 +5959,11 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.47.0.tgz", - "integrity": "sha512-eslFG0Qy8wpGzDdYKu58CEr3WLkjwC5Usa6XbuV89ce/yN5RITLe1O8e+WFEuxnfftHiJImkkOBADj58ahRxSg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", "dev": true, + "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -5410,13 +5973,14 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.47.0.tgz", - "integrity": "sha512-LxfKCG4bsRGq60Sqqu+34QT5qT2TEAHvSCCJ321uBWywgE2dS0LKcu5u+3sMGo+Vy9UmLOhdTw5JHzePV/1y4Q==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/visitor-keys": "5.47.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -5436,23 +6000,12 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5463,25 +6016,20 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/utils": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.47.0.tgz", - "integrity": "sha512-U9xcc0N7xINrCdGVPwABjbAKqx4GK67xuMV87toI+HUqgXj26m6RBp9UshEXcTrgCkdGYFzgKLt8kxu49RilDw==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", "dev": true, + "license": "MIT", "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/typescript-estree": "5.47.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", "semver": "^7.3.7" }, "engines": { @@ -5495,23 +6043,36 @@ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "yallist": "^4.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" }, "engines": { - "node": ">=10" + "node": ">=8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" } }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5522,19 +6083,14 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.47.0.tgz", - "integrity": "sha512-ByPi5iMa6QqDXe/GmT/hR6MZtVPi0SqMQPDx15FczCBXJo/7M8T88xReOALAfpBLm+zxpPfmhuEvPb577JRAEg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.47.0", + "@typescript-eslint/types": "5.62.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -5545,71 +6101,64 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true, + "license": "ISC" + }, "node_modules/@uniswap/default-token-list": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@uniswap/default-token-list/-/default-token-list-2.3.0.tgz", - "integrity": "sha512-yfd4snv9K20tEbNwy9Vjym41RU3Yb2lN0seKxsgkr+m3f6oub2lWyXfTiNwgGFbOQPDvX4dxjMhA+M+S7mxqKg==" + "integrity": "sha512-yfd4snv9K20tEbNwy9Vjym41RU3Yb2lN0seKxsgkr+m3f6oub2lWyXfTiNwgGFbOQPDvX4dxjMhA+M+S7mxqKg==", + "license": "GPL-3.0-or-later" }, "node_modules/@uniswap/lib": { "version": "4.0.1-alpha", "resolved": "https://registry.npmjs.org/@uniswap/lib/-/lib-4.0.1-alpha.tgz", "integrity": "sha512-f6UIliwBbRsgVLxIaBANF6w09tYqc6Y/qXdsrbEmXHyFA7ILiKrIwRFXe1yOg8M3cksgVsO9N7yuL2DdCGQKBA==", + "license": "GPL-3.0-or-later", "engines": { "node": ">=10" } }, "node_modules/@uniswap/router-sdk": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.4.0.tgz", - "integrity": "sha512-GyUX8x+hnwnh89DHyA/yKWUwhU3Eukx3B76vfvMMWfr++GA4CW6PzT5j4JgNZDrsBTOSJWxTdU5YbgOuwU2XGg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.7.1.tgz", + "integrity": "sha512-uBN9QX3t5lPLkxlkPoQPZpd0eN+GA0Ab9nq1pcPk/XDFuRnRxxVF629Ecz2SfTVm0gooOPO3aU3ETgyB3vuhYA==", + "license": "MIT", "dependencies": { "@ethersproject/abi": "^5.5.0", - "@uniswap/sdk-core": "^3.0.1", - "@uniswap/swap-router-contracts": "1.1.0", - "@uniswap/v2-sdk": "^3.0.1", - "@uniswap/v3-sdk": "^3.8.3" + "@uniswap/sdk-core": "^4.0.7", + "@uniswap/swap-router-contracts": "^1.1.0", + "@uniswap/v2-sdk": "^3.2.0", + "@uniswap/v3-sdk": "^3.10.0" } }, - "node_modules/@uniswap/router-sdk/node_modules/@openzeppelin/contracts": { - "version": "3.4.1-solc-0.7-2", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.1-solc-0.7-2.tgz", - "integrity": "sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==" - }, - "node_modules/@uniswap/router-sdk/node_modules/@uniswap/swap-router-contracts": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@uniswap/swap-router-contracts/-/swap-router-contracts-1.1.0.tgz", - "integrity": "sha512-GPmpx1lvjXWloB95+YUabr3UHJYr3scnSS8EzaNXnNrIz9nYZ+XQcMaJxOKe85Yi7IfcUQpj0HzD2TW99dtolA==", - "dependencies": { - "@openzeppelin/contracts": "3.4.1-solc-0.7-2", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "@uniswap/v3-periphery": "1.3.0", - "hardhat-watcher": "^2.1.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@uniswap/router-sdk/node_modules/@uniswap/v3-periphery": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.3.0.tgz", - "integrity": "sha512-HjHdI5RkjBl8zz3bqHShrbULFoZSrjbbrRHoO2vbzn+WRzTa6xY4PWphZv2Tlcb38YEKfKHp6NPl5hVedac8uw==", + "node_modules/@uniswap/router-sdk/node_modules/@uniswap/sdk-core": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-4.0.10.tgz", + "integrity": "sha512-RiobXJKXvVVb+wfNM09Ik8djOMOuRQGfyRP5pHgUjojicK/7nscZILjZ87DjVCGjXEoD8yTSIps0UAQuz6pJIw==", + "license": "MIT", "dependencies": { - "@openzeppelin/contracts": "3.4.1-solc-0.7-2", - "@uniswap/lib": "^4.0.1-alpha", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "base64-sol": "1.0.1", - "hardhat-watcher": "^2.1.1" + "@ethersproject/address": "^5.0.2", + "big.js": "^5.2.2", + "decimal.js-light": "^2.5.0", + "jsbi": "^3.1.4", + "tiny-invariant": "^1.1.0", + "toformat": "^2.0.0" }, "engines": { "node": ">=10" } }, "node_modules/@uniswap/sdk-core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-3.1.0.tgz", - "integrity": "sha512-YRrp6vYAbYmi3uDXQGkvj2eT8BMpNnUdCFb8GifDG0Ei+ohIpC4RNAB+5/ru3zR2Byhx8VahGrSKuvdd6BVMyA==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-3.2.6.tgz", + "integrity": "sha512-MvH/3G0W0sM2g7XjaUy9qU7IabxL/KQp/ucU0AQGpVxiTaAhmVRtsjkkv9UDyzpIXVrmevl4kRgV7KKE29UuXA==", + "dev": true, + "license": "MIT", "dependencies": { "@ethersproject/address": "^5.0.2", "big.js": "^5.2.2", @@ -5626,6 +6175,7 @@ "version": "2.10.2", "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-2.10.2.tgz", "integrity": "sha512-Nq/O5p5vUxcGL2PpdB4/mjq0cgfpisPA8Q29dPs3+dgYJ3PNgIasCoENMHgauTvCFCNyql+GwanfeW/DtEcd5A==", + "license": "GPL", "dependencies": { "@uniswap/default-token-list": "^2.0.0", "@uniswap/router-sdk": "^1.3.0", @@ -5653,29 +6203,11 @@ "jsbi": "^3.2.0" } }, - "node_modules/@uniswap/smart-order-router/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/@uniswap/smart-order-router/node_modules/graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", - "engines": { - "node": ">= 10.x" - } - }, "node_modules/@uniswap/smart-order-router/node_modules/graphql-request": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.7.0.tgz", "integrity": "sha512-dw5PxHCgBneN2DDNqpWu8QkbbJ07oOziy8z+bK/TAXufsOLaETuVO4GkXrbs0WjhdKhBMN3BkpN/RIvUHkmNUQ==", + "license": "MIT", "dependencies": { "cross-fetch": "^3.0.6", "extract-files": "^9.0.0", @@ -5686,14 +6218,15 @@ } }, "node_modules/@uniswap/swap-router-contracts": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@uniswap/swap-router-contracts/-/swap-router-contracts-1.3.0.tgz", - "integrity": "sha512-iKvCuRkHXEe0EMjOf8HFUISTIhlxI57kKFllf3C3PUIE0HmwxrayyoflwAz5u/TRsFGYqJ9IjX2UgzLCsrNa5A==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@uniswap/swap-router-contracts/-/swap-router-contracts-1.3.1.tgz", + "integrity": "sha512-mh/YNbwKb7Mut96VuEtL+Z5bRe0xVIbjjiryn+iMMrK2sFKhR4duk/86mEz0UO5gSx4pQIw9G5276P5heY/7Rg==", + "license": "GPL-2.0-or-later", "dependencies": { "@openzeppelin/contracts": "3.4.2-solc-0.7", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "@uniswap/v3-periphery": "1.4.1", + "@uniswap/v2-core": "^1.0.1", + "@uniswap/v3-core": "^1.0.0", + "@uniswap/v3-periphery": "^1.4.4", "dotenv": "^14.2.0", "hardhat-watcher": "^2.1.1" }, @@ -5701,18 +6234,11 @@ "node": ">=10" } }, - "node_modules/@uniswap/swap-router-contracts/node_modules/dotenv": { - "version": "14.3.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-14.3.2.tgz", - "integrity": "sha512-vwEppIphpFdvaMCaHfCEv9IgwcxMljMw2TnAQBB4VWPvzXQLTb82jwmdOKzlEVUL3gNFT4l4TPKO+Bn+sqcrVQ==", - "engines": { - "node": ">=12" - } - }, "node_modules/@uniswap/token-lists": { - "version": "1.0.0-beta.31", - "resolved": "https://registry.npmjs.org/@uniswap/token-lists/-/token-lists-1.0.0-beta.31.tgz", - "integrity": "sha512-BQVoelKCRf64IToPEs1wxiXOnhr/ukwPOF78XG11PrTAOL4F8umjYKFb8ZPv1/dIJsPaC7GhLSriEqyp94SasQ==", + "version": "1.0.0-beta.33", + "resolved": "https://registry.npmjs.org/@uniswap/token-lists/-/token-lists-1.0.0-beta.33.tgz", + "integrity": "sha512-JQkXcpRI3jFG8y3/CGC4TS8NkDgcxXaOQuYW8Qdvd6DcDiIyg2vVYCG9igFEzF0G6UvxgHkBKC7cWCgzZNYvQg==", + "license": "MIT", "engines": { "node": ">=10" } @@ -5721,18 +6247,20 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.1.tgz", "integrity": "sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q==", + "license": "GPL-3.0-or-later", "engines": { "node": ">=10" } }, "node_modules/@uniswap/v2-sdk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@uniswap/v2-sdk/-/v2-sdk-3.0.1.tgz", - "integrity": "sha512-eSpm2gjo2CZh9FACH5fq42str/oSNyWcDxB27o5k44bEew4sxb+pld4gGIf/byJndLBvArR9PtH8c0n/goNOTw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@uniswap/v2-sdk/-/v2-sdk-3.3.0.tgz", + "integrity": "sha512-cf5PjoNQN5tNELIOVJsqV4/VeuDtxFw6Zl8oFmFJ6PNoQ8sx+XnGoO0aGKTB/o5II3oQ7820xtY3k47UsXgd6A==", + "license": "MIT", "dependencies": { "@ethersproject/address": "^5.0.0", "@ethersproject/solidity": "^5.0.0", - "@uniswap/sdk-core": "^3.0.0-alpha.3", + "@uniswap/sdk-core": "^4.0.7", "tiny-invariant": "^1.1.0", "tiny-warning": "^1.0.3" }, @@ -5740,38 +6268,57 @@ "node": ">=10" } }, + "node_modules/@uniswap/v2-sdk/node_modules/@uniswap/sdk-core": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-4.0.10.tgz", + "integrity": "sha512-RiobXJKXvVVb+wfNM09Ik8djOMOuRQGfyRP5pHgUjojicK/7nscZILjZ87DjVCGjXEoD8yTSIps0UAQuz6pJIw==", + "license": "MIT", + "dependencies": { + "@ethersproject/address": "^5.0.2", + "big.js": "^5.2.2", + "decimal.js-light": "^2.5.0", + "jsbi": "^3.1.4", + "tiny-invariant": "^1.1.0", + "toformat": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@uniswap/v3-core": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz", - "integrity": "sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.1.tgz", + "integrity": "sha512-7pVk4hEm00j9tc71Y9+ssYpO6ytkeI0y7WE9P6UcmNzhxPePwyAxImuhVsTqWK9YFvzgtvzJHi64pBl4jUzKMQ==", + "license": "BUSL-1.1", "engines": { "node": ">=10" } }, "node_modules/@uniswap/v3-periphery": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.4.1.tgz", - "integrity": "sha512-Ab0ZCKOQrQMKIcpBTezTsEhWfQjItd0TtkCG8mPhoQu+wC67nPaf4hYUhM6wGHeFUmDiYY5MpEQuokB0ENvoTg==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.4.4.tgz", + "integrity": "sha512-S4+m+wh8HbWSO3DKk4LwUCPZJTpCugIsHrWR86m/OrUyvSqGDTXKFfc2sMuGXCZrD1ZqO3rhQsKgdWg3Hbb2Kw==", + "license": "GPL-2.0-or-later", "dependencies": { "@openzeppelin/contracts": "3.4.2-solc-0.7", "@uniswap/lib": "^4.0.1-alpha", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "base64-sol": "1.0.1", - "hardhat-watcher": "^2.1.1" + "@uniswap/v2-core": "^1.0.1", + "@uniswap/v3-core": "^1.0.0", + "base64-sol": "1.0.1" }, "engines": { "node": ">=10" } }, "node_modules/@uniswap/v3-sdk": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-sdk/-/v3-sdk-3.9.0.tgz", - "integrity": "sha512-LuoF3UcY1DxSAQKJ3E4/1Eq4HaNp+x+7q9mvbpiu+/PBj+O1DjLforAMrKxu+RsA0aarmZtz7yBnAPy+akgfgQ==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/@uniswap/v3-sdk/-/v3-sdk-3.10.0.tgz", + "integrity": "sha512-sbmSA1O+Ct960r66Ie/c1rOmVadpwRu8nQ79pGICv0pZJdnFIQ/SReG3F+iC2C2UNNjNP6aC2WDUggXrjyrgnA==", + "license": "MIT", "dependencies": { "@ethersproject/abi": "^5.0.12", "@ethersproject/solidity": "^5.0.9", - "@uniswap/sdk-core": "^3.0.1", + "@uniswap/sdk-core": "^4", "@uniswap/swap-router-contracts": "^1.2.1", "@uniswap/v3-periphery": "^1.1.1", "@uniswap/v3-staker": "1.0.0", @@ -5782,11 +6329,28 @@ "node": ">=10" } }, + "node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-4.0.10.tgz", + "integrity": "sha512-RiobXJKXvVVb+wfNM09Ik8djOMOuRQGfyRP5pHgUjojicK/7nscZILjZ87DjVCGjXEoD8yTSIps0UAQuz6pJIw==", + "license": "MIT", + "dependencies": { + "@ethersproject/address": "^5.0.2", + "big.js": "^5.2.2", + "decimal.js-light": "^2.5.0", + "jsbi": "^3.1.4", + "tiny-invariant": "^1.1.0", + "toformat": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@uniswap/v3-staker": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@uniswap/v3-staker/-/v3-staker-1.0.0.tgz", "integrity": "sha512-JV0Qc46Px5alvg6YWd+UIaGH9lDuYG/Js7ngxPit1SPaIP30AlVer1UYB7BRYeUVVxE+byUyIeN5jeQ7LLDjIw==", - "deprecated": "Please upgrade to 1.0.1", + "license": "GPL-3.0-or-later", "dependencies": { "@openzeppelin/contracts": "3.4.1-solc-0.7-2", "@uniswap/v3-core": "1.0.0", @@ -5799,45 +6363,65 @@ "node_modules/@uniswap/v3-staker/node_modules/@openzeppelin/contracts": { "version": "3.4.1-solc-0.7-2", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.1-solc-0.7-2.tgz", - "integrity": "sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==" + "integrity": "sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==", + "license": "MIT" + }, + "node_modules/@uniswap/v3-staker/node_modules/@uniswap/v3-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz", + "integrity": "sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA==", + "license": "BUSL-1.1", + "engines": { + "node": ">=10" + } + }, + "node_modules/@whatwg-node/events": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@whatwg-node/events/-/events-0.0.3.tgz", + "integrity": "sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA==", + "dev": true, + "license": "MIT" }, "node_modules/@whatwg-node/fetch": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.5.4.tgz", - "integrity": "sha512-dR5PCzvOeS7OaW6dpIlPt+Ou3pak7IEG+ZVAV26ltcaiDB3+IpuvjqRdhsY6FKHcqBo1qD+S99WXY9Z6+9Rwnw==", + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.8.8.tgz", + "integrity": "sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg==", "dev": true, + "license": "MIT", "dependencies": { "@peculiar/webcrypto": "^1.4.0", - "abort-controller": "^3.0.0", + "@whatwg-node/node-fetch": "^0.3.6", + "busboy": "^1.6.0", + "urlpattern-polyfill": "^8.0.0", + "web-streams-polyfill": "^3.2.1" + } + }, + "node_modules/@whatwg-node/node-fetch": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.3.6.tgz", + "integrity": "sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@whatwg-node/events": "^0.0.3", "busboy": "^1.6.0", - "form-data-encoder": "^1.7.1", - "formdata-node": "^4.3.1", - "node-fetch": "^2.6.7", - "undici": "^5.12.0", - "web-streams-polyfill": "^3.2.0" + "fast-querystring": "^1.1.1", + "fast-url-parser": "^1.1.3", + "tslib": "^2.3.1" } }, "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true - }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/abortcontroller-polyfill": { "version": "1.7.5", "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz", - "integrity": "sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==" + "integrity": "sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==", + "license": "MIT" }, "node_modules/abstract-level": { "version": "1.0.3", @@ -5857,10 +6441,35 @@ "node": ">=12" } }, + "node_modules/abstract-level/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peer": true, + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" @@ -5870,10 +6479,11 @@ } }, "node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "devOptional": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -5886,6 +6496,7 @@ "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", "dev": true, + "license": "MIT", "dependencies": { "acorn": "^7.1.1", "acorn-walk": "^7.1.1" @@ -5896,6 +6507,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -5903,20 +6515,32 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-globals/node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -5933,12 +6557,14 @@ "node_modules/aes-js": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", + "license": "MIT" }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", "dependencies": { "debug": "4" }, @@ -5959,14 +6585,24 @@ "node": ">=8" } }, + "node_modules/aggregate-error/node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "peer": true, + "engines": { + "node": ">=8" + } + }, "node_modules/ajv": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.2.tgz", - "integrity": "sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg==", + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" }, "funding": { @@ -5987,6 +6623,7 @@ "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -5998,17 +6635,20 @@ } }, "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -6024,6 +6664,7 @@ "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz", "integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -6032,6 +6673,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -6044,37 +6686,56 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", "dev": true, + "license": "MIT", "dependencies": { - "deep-equal": "^2.0.5" + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" }, "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", "is-string": "^1.0.7" }, "engines": { @@ -6089,19 +6750,41 @@ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", "es-shim-unscopables": "^1.0.0" }, "engines": { @@ -6112,14 +6795,15 @@ } }, "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", "es-shim-unscopables": "^1.0.0" }, "engines": { @@ -6130,22 +6814,46 @@ } }, "node_modules/array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz", + "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6154,37 +6862,24 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "license": "MIT", "dependencies": { "safer-buffer": "~2.1.0" } }, - "node_modules/asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/asn1.js/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/asn1js": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.5.tgz", "integrity": "sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "pvtsutils": "^1.3.2", "pvutils": "^1.1.3", @@ -6198,51 +6893,54 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "license": "MIT", "engines": { "node": ">=0.8" } }, "node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "peer": true, - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/async-eventemitter": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz", - "integrity": "sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw==", - "peer": true, - "dependencies": { - "async": "^2.4.0" - } + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", + "license": "MIT" }, "node_modules/async-limiter": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", + "license": "MIT" }, "node_modules/async-retry": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "license": "MIT", "dependencies": { "retry": "0.13.1" } }, + "node_modules/asynciterator.prototype": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", + "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "node_modules/auto-bind": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -6254,6 +6952,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6265,6 +6964,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/await-timeout/-/await-timeout-1.1.1.tgz", "integrity": "sha512-gsDXAS6XVc4Jt+7S92MPX6Noq69bdeXUPEaXd8dk3+yVr629LTDLxNt4j1ycBbrU+AStK2PhKIyNIM+xzWMVOQ==", + "license": "MIT", "engines": { "node": ">=6" } @@ -6273,19 +6973,22 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "license": "Apache-2.0", "engines": { "node": "*" } }, "node_modules/aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", + "license": "MIT" }, "node_modules/axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.14.0" } @@ -6295,6 +6998,7 @@ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/transform": "^27.5.1", "@jest/types": "^27.5.1", @@ -6317,6 +7021,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -6333,6 +7038,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -6347,13 +7053,15 @@ "version": "7.0.0-beta.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/babel-plugin-transform-jsbi-to-bigint": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-jsbi-to-bigint/-/babel-plugin-transform-jsbi-to-bigint-1.4.0.tgz", "integrity": "sha512-59f6ClwQBY/SKMVwKV/xoAqH/gnyZ6C5gSSPsEUCLPvvZULCDSE5Y3T62wjNTbpBcFzh0ReYz2mIe3u44mW9UQ==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=8" } @@ -6363,6 +7071,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -6386,6 +7095,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", @@ -6424,6 +7134,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", "dev": true, + "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^27.5.1", "babel-preset-current-node-syntax": "^1.0.0" @@ -6438,12 +7149,14 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" }, "node_modules/base-x": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.0.1" } @@ -6465,64 +7178,53 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/base64-sol": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/base64-sol/-/base64-sol-1.0.1.tgz", - "integrity": "sha512-ld3cCNMeXt4uJXmLZBHFGMvVpK9KsLVEhPpFRXnvSVAqABKbuNZg/+dsq3NuM+wxFLb/UrVkz7m1ciWmkMfTbg==" + "integrity": "sha512-ld3cCNMeXt4uJXmLZBHFGMvVpK9KsLVEhPpFRXnvSVAqABKbuNZg/+dsq3NuM+wxFLb/UrVkz7m1ciWmkMfTbg==", + "license": "MIT" }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "license": "BSD-3-Clause", "dependencies": { "tweetnacl": "^0.14.3" } }, - "node_modules/bcrypt-pbkdf/node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - }, "node_modules/bech32": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", - "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" + "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==", + "license": "MIT" }, "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "license": "MIT", "engines": { "node": "*" } }, "node_modules/bigint-crypto-utils": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.1.8.tgz", - "integrity": "sha512-+VMV9Laq8pXLBKKKK49nOoq9bfR3j7NNQAtbA617a4nw9bVLo8rsqkKMBgM2AJWlNX9fEIyYaYX+d0laqYV4tw==", - "peer": true, - "dependencies": { - "bigint-mod-arith": "^3.1.0" - }, - "engines": { - "node": ">=10.4.0" - } - }, - "node_modules/bigint-mod-arith": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bigint-mod-arith/-/bigint-mod-arith-3.1.2.tgz", - "integrity": "sha512-nx8J8bBeiRR+NlsROFH9jHswW5HO8mgfOSqW0AmjicMMvaONDa8AO+5ViKDUUNytBPWiwfvZP4/Bj4Y3lUfvgQ==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.3.0.tgz", + "integrity": "sha512-jOTSb+drvEDxEq6OuUybOAv/xxoh3cuYRUIPyu8sSHQNKM303UQ2R1DAo45o1AkcIXw6fzbaFI1+xGGdaXs2lg==", "peer": true, "engines": { - "node": ">=10.4.0" + "node": ">=14.0.0" } }, "node_modules/bignumber.js": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-8.1.1.tgz", "integrity": "sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==", + "license": "MIT", "engines": { "node": "*" } @@ -6531,6 +7233,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "license": "MIT", "engines": { "node": ">=8" } @@ -6539,34 +7242,63 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz", "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==", + "license": "MIT", "dependencies": { "buffer": "^6.0.3", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, + "node_modules/bl/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/blakejs": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", - "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==" + "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==", + "license": "MIT" }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "license": "MIT" }, "node_modules/bn.js": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "license": "MIT" }, "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", + "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "license": "MIT", "dependencies": { "bytes": "3.1.2", - "content-type": "~1.0.4", + "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", @@ -6574,7 +7306,7 @@ "iconv-lite": "0.4.24", "on-finished": "2.4.1", "qs": "6.11.0", - "raw-body": "2.5.1", + "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" }, @@ -6587,6 +7319,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -6594,12 +7327,14 @@ "node_modules/body-parser/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6609,6 +7344,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "license": "MIT", "dependencies": { "fill-range": "^7.0.1" }, @@ -6619,7 +7355,8 @@ "node_modules/brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "license": "MIT" }, "node_modules/browser-level": { "version": "1.0.1", @@ -6637,7 +7374,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true + "dev": true, + "license": "BSD-2-Clause" }, "node_modules/browser-stdout": { "version": "1.3.1", @@ -6649,6 +7387,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "license": "MIT", "dependencies": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", @@ -6658,56 +7397,10 @@ "safe-buffer": "^5.0.1" } }, - "node_modules/browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dependencies": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "node_modules/browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dependencies": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", - "dependencies": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "node_modules/browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "dependencies": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - } - }, "node_modules/browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", "dev": true, "funding": [ { @@ -6717,13 +7410,18 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" }, "bin": { "browserslist": "cli.js" @@ -6737,6 +7435,7 @@ "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, + "license": "MIT", "dependencies": { "fast-json-stable-stringify": "2.x" }, @@ -6748,6 +7447,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", "dependencies": { "base-x": "^3.0.2" } @@ -6756,6 +7456,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "license": "MIT", "dependencies": { "bs58": "^4.0.0", "create-hash": "^1.1.0", @@ -6767,14 +7468,15 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "funding": [ { "type": "github", @@ -6789,37 +7491,36 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "ieee754": "^1.1.13" } }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "dev": true - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" }, "node_modules/buffer-to-arraybuffer": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", - "integrity": "sha512-3dthu5CYiVB1DEJp61FtApNnNndTckcqe4pFcLdvHtrpG+kcyekCJKg4MRiDcFW7A6AODnXB9U4dwQiCW5kzJQ==" + "integrity": "sha512-3dthu5CYiVB1DEJp61FtApNnNndTckcqe4pFcLdvHtrpG+kcyekCJKg4MRiDcFW7A6AODnXB9U4dwQiCW5kzJQ==", + "license": "MIT" }, "node_modules/buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "license": "MIT" }, "node_modules/bufferutil": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", - "integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz", + "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "node-gyp-build": "^4.3.0" }, @@ -6834,6 +7535,7 @@ "engines": [ "node >=0.10.0" ], + "license": "MIT", "bin": { "bunyan": "bin/bunyan" }, @@ -6848,6 +7550,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/bunyan-blackhole/-/bunyan-blackhole-1.1.1.tgz", "integrity": "sha512-UwzNPhbbSqbzeJhCbygqjlAY7p0ZUdv1ADXPQvDh3CA7VW3C/rCc1gaQO/8j9QL4vsKQCQZQSQIEwX+lxioPAQ==", + "license": "MIT", "dependencies": { "stream-blackhole": "^1.0.3" }, @@ -6859,6 +7562,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dev": true, "dependencies": { "streamsearch": "^1.1.0" }, @@ -6870,67 +7574,47 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-6.1.0.tgz", + "integrity": "sha512-KJ/Dmo1lDDhmW2XDPMo+9oiy/CeqosPguPCrgcVzKyZrL6pM1gU2GmPY/xo6OQPTUaA/c0kwHuywB4E6nmT9ww==", + "license": "MIT", "engines": { "node": ">=10.6.0" } }, "node_modules/cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "dev": true, + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "license": "MIT", "dependencies": { "clone-response": "^1.0.2", "get-stream": "^5.1.0", "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", + "keyv": "^4.0.0", "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true, "engines": { "node": ">=8" } }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6941,6 +7625,7 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -6950,6 +7635,7 @@ "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", "dev": true, + "license": "MIT", "dependencies": { "pascal-case": "^3.1.2", "tslib": "^2.0.3" @@ -6959,6 +7645,7 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", "engines": { "node": ">=6" } @@ -6967,6 +7654,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "license": "MIT", "dependencies": { "camelcase": "^5.3.1", "map-obj": "^4.0.0", @@ -6979,10 +7667,31 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/camelcase-keys/node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-keys/node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/caniuse-lite": { - "version": "1.0.30001439", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz", - "integrity": "sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==", + "version": "1.0.30001576", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz", + "integrity": "sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==", "dev": true, "funding": [ { @@ -6992,24 +7701,40 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/capital-case": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", "upper-case-first": "^2.0.2" } }, + "node_modules/case": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/case/-/case-1.6.3.tgz", + "integrity": "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "license": "Apache-2.0" }, "node_modules/catering": { "version": "2.1.1", @@ -7024,6 +7749,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7040,6 +7766,7 @@ "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", "dev": true, + "license": "MIT", "dependencies": { "camel-case": "^4.1.2", "capital-case": "^1.0.4", @@ -7060,6 +7787,7 @@ "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", "dev": true, + "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -7078,6 +7806,7 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -7086,7 +7815,8 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/chokidar": { "version": "3.5.3", @@ -7098,6 +7828,7 @@ "url": "https://paulmillr.com/funding/" } ], + "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -7117,19 +7848,30 @@ "node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "license": "ISC" }, "node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "peer": true + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } }, "node_modules/cids": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/cids/-/cids-1.1.9.tgz", "integrity": "sha512-l11hWRfugIcbGuTZwAM5PwpjPPjyb6UZOGwlHSnOBV5o07XhQ4gNpBN67FbODvpjyHtd+0Xs6KNvUcGBiDRsdg==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "multibase": "^4.0.1", "multicodec": "^3.0.1", @@ -7141,45 +7883,40 @@ "npm": ">=3.0.0" } }, - "node_modules/cids/node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "dependencies": { - "multiformats": "^9.4.2" - } - }, "node_modules/cipher-base": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "license": "MIT", "dependencies": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" } }, "node_modules/cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", - "dev": true + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true, + "license": "MIT" }, "node_modules/class-is": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/class-is/-/class-is-1.1.0.tgz", - "integrity": "sha512-rhjH9AG1fvabIDoGRVH587413LPjTZgmDF9fOFCbFJQV4yuocX1mHxxvXI4g3cGwbVY9wAYIoKlg1N79frJKQw==" + "integrity": "sha512-rhjH9AG1fvabIDoGRVH587413LPjTZgmDF9fOFCbFJQV4yuocX1mHxxvXI4g3cGwbVY9wAYIoKlg1N79frJKQw==", + "license": "MIT" }, "node_modules/classic-level": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.2.0.tgz", - "integrity": "sha512-qw5B31ANxSluWz9xBzklRWTUAJ1SXIdaVKTVS7HcTGKOAmExx65Wo5BUICW+YGORe2FOUaDghoI9ZDxj82QcFg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.3.0.tgz", + "integrity": "sha512-iwFAJQYtqRTRM0F6L8h4JCt00ZSGdOyqh7yVrhhjrOpFhmBjNlRUey64MCiyo6UmQHMJ+No3c81nujPv+n9yrg==", "hasInstallScript": true, "peer": true, "dependencies": { "abstract-level": "^1.0.2", "catering": "^2.1.0", "module-error": "^1.0.1", - "napi-macros": "~2.0.0", + "napi-macros": "^2.2.2", "node-gyp-build": "^4.3.0" }, "engines": { @@ -7196,22 +7933,24 @@ } }, "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", "dev": true, + "license": "MIT", "dependencies": { - "restore-cursor": "^3.1.0" + "restore-cursor": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/cli-spinners": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", - "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -7224,6 +7963,7 @@ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", "integrity": "sha512-f4r4yJnbT++qUPI9NR4XLDLq41gQ+uqnPItWG0F5ZkehuNiTTa3EY0S4AqTSUOeJ7/zU41oWPQSNkW5BqPL9bg==", "dev": true, + "license": "MIT", "dependencies": { "slice-ansi": "0.0.4", "string-width": "^1.0.1" @@ -7232,20 +7972,12 @@ "node": ">=0.10.0" } }, - "node_modules/cli-truncate/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/cli-truncate/node_modules/is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", "dev": true, + "license": "MIT", "dependencies": { "number-is-nan": "^1.0.0" }, @@ -7258,6 +7990,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", "dev": true, + "license": "MIT", "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -7272,6 +8005,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -7284,6 +8018,7 @@ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true, + "license": "ISC", "engines": { "node": ">= 10" } @@ -7293,6 +8028,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -7306,6 +8042,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "license": "MIT", "engines": { "node": ">=0.8" } @@ -7314,6 +8051,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "license": "MIT", "dependencies": { "mimic-response": "^1.0.0" }, @@ -7326,6 +8064,7 @@ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, + "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -7336,20 +8075,23 @@ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true, + "license": "MIT" }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7360,12 +8102,14 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -7383,13 +8127,15 @@ "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/common-tags": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } @@ -7397,13 +8143,15 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" }, "node_modules/constant-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -7414,6 +8162,7 @@ "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" }, @@ -7425,40 +8174,18 @@ "version": "2.5.2", "resolved": "https://registry.npmjs.org/content-hash/-/content-hash-2.5.2.tgz", "integrity": "sha512-FvIQKy0S1JaWV10sMsA7TRx8bpU+pqPkhbsfvOJAdjRXvYxEckAwQWGwtRjiaJfh+E0DvcWUGqcdjwMGFjsSdw==", + "license": "ISC", "dependencies": { "cids": "^0.7.1", "multicodec": "^0.5.5", "multihashes": "^0.4.15" } }, - "node_modules/content-hash/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/content-hash/node_modules/cids": { "version": "0.7.5", "resolved": "https://registry.npmjs.org/cids/-/cids-0.7.5.tgz", "integrity": "sha512-zT7mPeghoWAu+ppn8+BS1tQ5qGmbMfB4AregnQjA/qHY3GC1m1ptI9GkWNlgeu38r7CuRdXB47uY2XgAYt6QVA==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "buffer": "^5.5.0", "class-is": "^1.1.0", @@ -7471,21 +8198,31 @@ "npm": ">=3.0.0" } }, + "node_modules/content-hash/node_modules/cids/node_modules/multibase": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", + "integrity": "sha512-pFfAwyTjbbQgNc3G7D48JkJxWtoJoBMaR4xQUOuB8RnCgRqaYmWNFeJTTvrJ2w51bjLq2zTby6Rqj9TQ9elSUw==", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.8", + "buffer": "^5.5.0" + } + }, "node_modules/content-hash/node_modules/cids/node_modules/multicodec": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-1.0.4.tgz", "integrity": "sha512-NDd7FeS3QamVtbgfvu5h7fd1IlbaC4EQ0/pgU4zqE2vdHCmBGsUa0TiM8/TdSeG6BMPC92OOCf8F1ocE/Wkrrg==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "buffer": "^5.6.0", "varint": "^5.0.0" } }, "node_modules/content-hash/node_modules/multibase": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", - "integrity": "sha512-pFfAwyTjbbQgNc3G7D48JkJxWtoJoBMaR4xQUOuB8RnCgRqaYmWNFeJTTvrJ2w51bjLq2zTby6Rqj9TQ9elSUw==", - "deprecated": "This module has been superseded by the multiformats module", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.7.0.tgz", + "integrity": "sha512-TW8q03O0f6PNFTQDvh3xxH03c8CjGaaYrjkl9UQPG6rz53TQzzxJVCIWVjzcbN/Q5Y53Zd0IBQBMVktVgNx4Fg==", + "license": "MIT", "dependencies": { "base-x": "^3.0.8", "buffer": "^5.5.0" @@ -7495,7 +8232,7 @@ "version": "0.5.7", "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-0.5.7.tgz", "integrity": "sha512-PscoRxm3f+88fAtELwUnZxGDkduE2HD9Q6GHUOywQLjOGT/HAdhjLDYNZ1e7VR0s0TP0EwZ16LNUTFpoBGivOA==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "varint": "^5.0.0" } @@ -7504,31 +8241,18 @@ "version": "0.4.21", "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.21.tgz", "integrity": "sha512-uVSvmeCWf36pU2nB4/1kzYZjsXD9vofZKpgudqkceYY5g2aZZXJ5r9lxuzoRLl1OAp28XljXsEJ/X/85ZsKmKw==", + "license": "MIT", "dependencies": { "buffer": "^5.5.0", "multibase": "^0.7.0", "varint": "^5.0.0" } }, - "node_modules/content-hash/node_modules/multihashes/node_modules/multibase": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.7.0.tgz", - "integrity": "sha512-TW8q03O0f6PNFTQDvh3xxH03c8CjGaaYrjkl9UQPG6rz53TQzzxJVCIWVjzcbN/Q5Y53Zd0IBQBMVktVgNx4Fg==", - "deprecated": "This module has been superseded by the multiformats module", - "dependencies": { - "base-x": "^3.0.8", - "buffer": "^5.5.0" - } - }, - "node_modules/content-hash/node_modules/varint": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", - "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" - }, "node_modules/content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -7537,13 +8261,14 @@ "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "peer": true, + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -7551,17 +8276,20 @@ "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "license": "MIT" }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", "dependencies": { "object-assign": "^4", "vary": "^1" @@ -7575,6 +8303,7 @@ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", "dev": true, + "license": "MIT", "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", @@ -7586,35 +8315,11 @@ "node": ">=10" } }, - "node_modules/cosmiconfig-toml-loader": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-toml-loader/-/cosmiconfig-toml-loader-1.0.0.tgz", - "integrity": "sha512-H/2gurFWVi7xXvCyvsWRLCMekl4tITJcX0QEsDMpzxtuxDyM59xLatYNg4s/k9AA/HdtCYfj2su8mgA0GSDLDA==", - "dev": true, - "dependencies": { - "@iarna/toml": "^2.2.5" - } - }, - "node_modules/cosmiconfig-typescript-loader": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.3.0.tgz", - "integrity": "sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==", - "dev": true, - "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "@types/node": "*", - "cosmiconfig": ">=7", - "ts-node": ">=10", - "typescript": ">=3" - } - }, "node_modules/crc-32": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "license": "Apache-2.0", "bin": { "crc32": "bin/crc32.njs" }, @@ -7622,24 +8327,11 @@ "node": ">=0.8" } }, - "node_modules/create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - } - }, - "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/create-hash": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "license": "MIT", "dependencies": { "cipher-base": "^1.0.1", "inherits": "^2.0.1", @@ -7652,6 +8344,7 @@ "version": "1.1.7", "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "license": "MIT", "dependencies": { "cipher-base": "^1.0.3", "create-hash": "^1.1.0", @@ -7665,14 +8358,16 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "node_modules/cross-fetch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", + "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "license": "MIT", "dependencies": { - "node-fetch": "2.6.7" + "node-fetch": "^2.6.12" } }, "node_modules/cross-spawn": { @@ -7680,6 +8375,7 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -7689,44 +8385,26 @@ "node": ">= 8" } }, - "node_modules/crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dependencies": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - }, - "engines": { - "node": "*" - } - }, "node_modules/css.escape": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cssom": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cssstyle": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", "dev": true, + "license": "MIT", "dependencies": { "cssom": "~0.3.6" }, @@ -7738,12 +8416,14 @@ "version": "0.3.8", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/d": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "license": "ISC", "dependencies": { "es5-ext": "^0.10.50", "type": "^1.0.1" @@ -7753,6 +8433,7 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" }, @@ -7765,6 +8446,7 @@ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", "dev": true, + "license": "MIT", "dependencies": { "abab": "^2.0.3", "whatwg-mimetype": "^2.3.0", @@ -7775,32 +8457,37 @@ } }, "node_modules/dataloader": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-2.1.0.tgz", - "integrity": "sha512-qTcEYLen3r7ojZNgVUaRggOI+KM7jrKxXeSHhogh/TWxYMeONEMqY+hmkobiYQozsGIyg9OYVzO4ZIfoB4I0pQ==", - "dev": true + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-2.2.2.tgz", + "integrity": "sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==", + "dev": true, + "license": "MIT" }, "node_modules/date-fns": { "version": "1.30.1", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/dayjs": { - "version": "1.11.7", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz", - "integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==" + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==", + "license": "MIT" }, "node_modules/debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -7813,10 +8500,17 @@ } } }, + "node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "license": "MIT" + }, "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -7825,6 +8519,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "license": "MIT", "dependencies": { "decamelize": "^1.1.0", "map-obj": "^1.0.0" @@ -7836,29 +8531,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/decimal.js": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/decimal.js-light": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", - "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==" + "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", + "license": "MIT" }, "node_modules/decode-uri-component": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "license": "MIT", "engines": { "node": ">=0.10" } @@ -7867,6 +8557,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "license": "MIT", "dependencies": { "mimic-response": "^1.0.0" }, @@ -7878,39 +8569,15 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "node_modules/deep-equal": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.1.0.tgz", - "integrity": "sha512-2pxgvWu3Alv1PoWEyVg7HS8YhGlUFUV7N5oOvfL6d+7xAmLSemMwv/c8Zv/i9KFzxV5Kt5CAvQc70fLwVuf4UA==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", - "is-arguments": "^1.1.1", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "license": "MIT" }, "node_modules/deep-extend": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } @@ -7919,13 +8586,15 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -7935,6 +8604,7 @@ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dev": true, + "license": "MIT", "dependencies": { "clone": "^1.0.2" }, @@ -7947,22 +8617,42 @@ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8" } }, "node_modules/defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", - "dev": true + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, + "license": "MIT", "dependencies": { + "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" }, @@ -7977,6 +8667,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -7985,6 +8676,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -7994,23 +8686,26 @@ "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6.0" } }, - "node_modules/des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dependencies": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" } }, "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", "engines": { "node": ">= 0.8", "npm": "1.2.8000 || >= 1.4.16" @@ -8021,6 +8716,7 @@ "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -8030,15 +8726,17 @@ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "peer": true, + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "devOptional": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } @@ -8048,30 +8746,17 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true, + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dependencies": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "node_modules/diffie-hellman/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, + "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -8080,22 +8765,24 @@ } }, "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, "engines": { - "node": ">=6.0.0" + "node": ">=0.10.0" } }, "node_modules/dom-accessibility-api": { - "version": "0.5.14", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.14.tgz", - "integrity": "sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg==", - "dev": true + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", + "dev": true, + "license": "MIT" }, "node_modules/dom-walk": { "version": "0.1.2", @@ -8107,6 +8794,7 @@ "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", "dev": true, + "license": "MIT", "dependencies": { "webidl-conversions": "^5.0.0" }, @@ -8119,6 +8807,7 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=8" } @@ -8128,25 +8817,27 @@ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" } }, "node_modules/dotenv": { - "version": "16.0.3", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", - "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", - "dev": true, + "version": "14.3.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-14.3.2.tgz", + "integrity": "sha512-vwEppIphpFdvaMCaHfCEv9IgwcxMljMw2TnAQBB4VWPvzXQLTb82jwmdOKzlEVUL3gNFT4l4TPKO+Bn+sqcrVQ==", + "license": "BSD-2-Clause", "engines": { "node": ">=12" } }, "node_modules/dset": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.2.tgz", - "integrity": "sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.3.tgz", + "integrity": "sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -8156,6 +8847,7 @@ "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==", "hasInstallScript": true, + "license": "BSD-2-Clause", "optional": true, "dependencies": { "nan": "^2.14.0" @@ -8168,42 +8860,38 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "license": "MIT", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" } }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - } - }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", - "dev": true + "version": "1.4.629", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.629.tgz", + "integrity": "sha512-5UUkr3k3CZ/k+9Sw7vaaIMyOzMC0XbPyprKI3n0tbKDqkzTDOjK4izm7DxlkueRMim6ZZQ1ja9F7hoFVplHihA==", + "dev": true, + "license": "ISC" }, "node_modules/elegant-spinner": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", "integrity": "sha512-B+ZM+RXvRqQaAmkMlO/oSe5nMUOaUnyfGYCEHoR8wrXsZR2mA0XVibsxV1bvTwxdRWah1PkQqso2EzhILGHtEQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8212,6 +8900,7 @@ "version": "6.5.4", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -8225,13 +8914,15 @@ "node_modules/elliptic/node_modules/bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "license": "MIT" }, "node_modules/emittery": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -8242,12 +8933,14 @@ "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -8256,17 +8949,19 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "license": "MIT", "dependencies": { "once": "^1.4.0" } }, "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "peer": true, "dependencies": { - "ansi-colors": "^4.1.1" + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8.6" @@ -8284,47 +8979,64 @@ "node_modules/err-code": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/err-code/-/err-code-3.0.1.tgz", - "integrity": "sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==" + "integrity": "sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==", + "license": "MIT" }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } }, "node_modules/es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", "gopd": "^1.0.1", - "has": "^1.0.3", "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", "is-shared-array-buffer": "^1.0.2", "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.13.1", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" }, "engines": { "node": ">= 0.4" @@ -8333,32 +9045,52 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-get-iterator": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz", - "integrity": "sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==", + "node_modules/es-iterator-helpers": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz", + "integrity": "sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==", "dev": true, + "license": "MIT", "dependencies": { + "asynciterator.prototype": "^1.0.0", "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.0", - "has-symbols": "^1.0.1", - "is-arguments": "^1.1.0", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.5", - "isarray": "^2.0.5" + "define-properties": "^1.2.1", + "es-abstract": "^1.22.1", + "es-set-tostringtag": "^2.0.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "iterator.prototype": "^1.1.2", + "safe-array-concat": "^1.0.1" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" } }, "node_modules/es-to-primitive": { @@ -8366,6 +9098,7 @@ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "dev": true, + "license": "MIT", "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -8383,6 +9116,7 @@ "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", "hasInstallScript": true, + "license": "ISC", "dependencies": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", @@ -8396,6 +9130,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "license": "MIT", "dependencies": { "d": "1", "es5-ext": "^0.10.35", @@ -8405,12 +9140,14 @@ "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" }, "node_modules/es6-symbol": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "license": "ISC", "dependencies": { "d": "^1.0.1", "ext": "^1.1.2" @@ -8420,6 +9157,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "license": "ISC", "dependencies": { "d": "1", "es5-ext": "^0.10.46", @@ -8431,6 +9169,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "license": "MIT", "engines": { "node": ">=6" } @@ -8438,29 +9177,28 @@ "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" }, "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.8.0" } }, "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esprima": "^4.0.1", "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" + "esutils": "^2.0.2" }, "bin": { "escodegen": "bin/escodegen.js", @@ -8473,101 +9211,50 @@ "source-map": "~0.6.1" } }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, + "license": "MIT", "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.30.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz", - "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==", - "dev": true, - "dependencies": { - "@eslint/eslintrc": "^1.4.0", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "bin": { @@ -8581,10 +9268,11 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", + "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", "dev": true, + "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -8593,13 +9281,15 @@ } }, "node_modules/eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7", - "resolve": "^1.20.0" + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" } }, "node_modules/eslint-import-resolver-node/node_modules/debug": { @@ -8607,15 +9297,17 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7" }, @@ -8633,29 +9325,35 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", "dev": true, + "license": "MIT", "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", - "has": "^1.0.3", - "is-core-module": "^2.8.1", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", - "tsconfig-paths": "^3.14.1" + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" }, "engines": { "node": ">=4" @@ -8665,49 +9363,21 @@ } }, "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" + "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, "node_modules/eslint-plugin-prettier": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, + "license": "MIT", "dependencies": { "prettier-linter-helpers": "^1.0.0" }, @@ -8725,15 +9395,17 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.31.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", - "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", + "version": "7.33.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", + "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", "dev": true, + "license": "MIT", "dependencies": { "array-includes": "^3.1.6", "array.prototype.flatmap": "^1.3.1", "array.prototype.tosorted": "^1.1.1", "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.12", "estraverse": "^5.3.0", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", @@ -8742,8 +9414,8 @@ "object.hasown": "^1.1.2", "object.values": "^1.1.6", "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", "string.prototype.matchall": "^4.0.8" }, "engines": { @@ -8753,37 +9425,14 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-react/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -8799,6 +9448,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz", "integrity": "sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw==", "dev": true, + "license": "MIT", "peerDependencies": { "eslint": ">=5.0.0" } @@ -8808,6 +9458,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", "dev": true, + "license": "MIT", "dependencies": { "eslint-rule-composer": "^0.3.0" }, @@ -8829,95 +9480,82 @@ "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { + "node_modules/eslint/node_modules/doctrine": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "eslint-visitor-keys": "^2.0.0" + "esutils": "^2.0.2" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" + "node": ">=6.0.0" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint/node_modules/glob-parent": { @@ -8925,6 +9563,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, @@ -8933,10 +9572,11 @@ } }, "node_modules/eslint/node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -8947,22 +9587,36 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "p-limit": "^3.0.2" }, "engines": { - "node": "*" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint/node_modules/type-fest": { @@ -8970,6 +9624,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -8978,14 +9633,15 @@ } }, "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -8999,6 +9655,7 @@ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, + "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -9008,10 +9665,11 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -9024,6 +9682,7 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -9036,6 +9695,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -9045,6 +9705,7 @@ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -9053,6 +9714,7 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -9061,6 +9723,7 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/eth-ens-namehash/-/eth-ens-namehash-2.0.8.tgz", "integrity": "sha512-VWEI1+KJfz4Km//dadyvBBoBeSQ0MHTXPvr8UIXiLW6IanxvAV+DmlZAijZwAyggqGUfwQBeHf7tc9wzc1piSw==", + "license": "ISC", "dependencies": { "idna-uts46-hx": "^2.3.1", "js-sha3": "^0.5.7" @@ -9069,59 +9732,45 @@ "node_modules/eth-ens-namehash/node_modules/js-sha3": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", - "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==" + "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==", + "license": "MIT" }, "node_modules/eth-lib": { - "version": "0.1.29", - "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.1.29.tgz", - "integrity": "sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ==", + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz", + "integrity": "sha512-ArJ7x1WcWOlSpzdoTBX8vkwlkSQ85CjjifSZtV4co64vWxSV8geWfPI9x4SVYu3DSxnX4yWFVTtGL+j9DUFLNw==", + "license": "MIT", "dependencies": { "bn.js": "^4.11.6", "elliptic": "^6.4.0", - "nano-json-stream-parser": "^0.1.2", - "servify": "^0.1.12", - "ws": "^3.0.0", "xhr-request-promise": "^0.1.2" } }, "node_modules/eth-lib/node_modules/bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/eth-lib/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/eth-lib/node_modules/ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "dependencies": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "license": "MIT" }, "node_modules/ethereum-bloom-filters": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", "integrity": "sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA==", + "license": "MIT", "dependencies": { "js-sha3": "^0.8.0" } }, "node_modules/ethereum-cryptography": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.1.2.tgz", - "integrity": "sha512-XDSJlg4BD+hq9N2FjvotwUET9Tfxpxc3kWGE2AqUG5vcbeunnbImVk3cj6e/xT3phdW21mE8R5IugU4fspQDcQ==", - "peer": true, + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "license": "MIT", "dependencies": { - "@noble/hashes": "1.1.2", - "@noble/secp256k1": "1.6.3", - "@scure/bip32": "1.1.0", - "@scure/bip39": "1.1.0" + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" } }, "node_modules/ethereumjs-abi": { @@ -9134,28 +9783,7 @@ "ethereumjs-util": "^6.0.0" } }, - "node_modules/ethereumjs-abi/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "peer": true - }, - "node_modules/ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "peer": true, - "dependencies": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - } - }, - "node_modules/ethereumjs-util/node_modules/@types/bn.js": { + "node_modules/ethereumjs-abi/node_modules/@types/bn.js": { "version": "4.11.6", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", @@ -9164,13 +9792,13 @@ "@types/node": "*" } }, - "node_modules/ethereumjs-util/node_modules/bn.js": { + "node_modules/ethereumjs-abi/node_modules/bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "peer": true }, - "node_modules/ethereumjs-util/node_modules/ethereum-cryptography": { + "node_modules/ethereumjs-abi/node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", @@ -9193,28 +9821,83 @@ "setimmediate": "^1.0.5" } }, - "node_modules/ethers": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", - "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], + "node_modules/ethereumjs-abi/node_modules/ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", + "peer": true, "dependencies": { - "@ethersproject/abi": "5.7.0", - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/abstract-signer": "5.7.0", - "@ethersproject/address": "5.7.0", - "@ethersproject/base64": "5.7.0", - "@ethersproject/basex": "5.7.0", - "@ethersproject/bignumber": "5.7.0", + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, + "node_modules/ethereumjs-util": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", + "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", + "license": "MPL-2.0", + "dependencies": { + "@types/bn.js": "^5.1.0", + "bn.js": "^5.1.2", + "create-hash": "^1.1.2", + "ethereum-cryptography": "^0.1.3", + "rlp": "^2.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/ethereumjs-util/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", + "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", "@ethersproject/bytes": "5.7.0", "@ethersproject/constants": "5.7.0", "@ethersproject/contracts": "5.7.0", @@ -9244,6 +9927,7 @@ "version": "0.1.6", "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", "integrity": "sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw==", + "license": "MIT", "dependencies": { "bn.js": "4.11.6", "number-to-bn": "1.7.0" @@ -9256,7 +9940,8 @@ "node_modules/ethjs-unit/node_modules/bn.js": { "version": "4.11.6", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==" + "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", + "license": "MIT" }, "node_modules/ethjs-util": { "version": "0.1.6", @@ -9276,28 +9961,23 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "license": "MIT", "dependencies": { "d": "1", "es5-ext": "~0.10.14" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" - } - }, "node_modules/eventemitter3": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz", - "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==" + "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==", + "license": "MIT" }, "node_modules/evp_bytestokey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "license": "MIT", "dependencies": { "md5.js": "^1.3.4", "safe-buffer": "^5.1.1" @@ -9308,6 +9988,7 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -9326,11 +10007,38 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/execa/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/executioner": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/executioner/-/executioner-2.0.1.tgz", "integrity": "sha512-idZAlKsxEZASjaIqP4PQ1txyS1bOcDwWCHy/8p5oMmLGV0XNCQPD6WWAOwJCUVsWItWzAN2BEash5N78PliaIw==", "dev": true, + "license": "MIT", "dependencies": { "mixly": "^1.0.0" } @@ -9349,6 +10057,7 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "jest-get-type": "^27.5.1", @@ -9363,6 +10072,7 @@ "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", @@ -9400,18 +10110,35 @@ "node": ">= 0.10.0" } }, - "node_modules/express/node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "node_modules/express/node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, "engines": { - "node": ">= 0.6" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, "node_modules/express/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -9419,12 +10146,29 @@ "node_modules/express/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } }, "node_modules/ext": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "license": "ISC", "dependencies": { "type": "^2.7.2" } @@ -9432,18 +10176,21 @@ "node_modules/ext/node_modules/type": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "license": "ISC" }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, + "license": "MIT", "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", @@ -9454,12 +10201,12 @@ } }, "node_modules/extract-files": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-11.0.0.tgz", - "integrity": "sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==", - "dev": true, + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", + "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==", + "license": "MIT", "engines": { - "node": "^12.20 || >= 14.13" + "node": "^10.17.0 || ^12.0.0 || >= 13.7.0" }, "funding": { "url": "https://github.com/sponsors/jaydenseric" @@ -9471,24 +10218,35 @@ "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "engines": [ "node >=0.6.0" - ] + ], + "license": "MIT" + }, + "node_modules/fast-decode-uri-component": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz", + "integrity": "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==", + "dev": true, + "license": "MIT" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" }, "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true, + "license": "Apache-2.0" }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -9503,19 +10261,49 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/fast-querystring": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.1.2.tgz", + "integrity": "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-decode-uri-component": "^1.0.1" + } + }, + "node_modules/fast-url-parser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", + "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^1.3.2" + } + }, + "node_modules/fast-url-parser/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true, + "license": "MIT" }, "node_modules/fastq": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", - "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -9525,15 +10313,17 @@ "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } }, "node_modules/fbjs": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.4.tgz", - "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "dev": true, + "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -9541,37 +10331,28 @@ "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.30" + "ua-parser-js": "^1.0.35" } }, "node_modules/fbjs-css-vars": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", "dev": true, + "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/figures/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, "engines": { - "node": ">=0.8.0" + "node": ">=0.10.0" } }, "node_modules/file-entry-cache": { @@ -9579,6 +10360,7 @@ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, + "license": "MIT", "dependencies": { "flat-cache": "^3.0.4" }, @@ -9590,6 +10372,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -9601,6 +10384,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "license": "MIT", "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", @@ -9618,6 +10402,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -9625,21 +10410,20 @@ "node_modules/finalhandler/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", + "locate-path": "^5.0.0", "path-exists": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/flat": { @@ -9652,12 +10436,14 @@ } }, "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, + "license": "MIT", "dependencies": { - "flatted": "^3.1.0", + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" }, "engines": { @@ -9665,21 +10451,23 @@ } }, "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true, + "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "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", "url": "https://github.com/sponsors/RubenVerborgh" } ], + "license": "MIT", "engines": { "node": ">=4.0" }, @@ -9693,6 +10481,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "license": "MIT", "dependencies": { "is-callable": "^1.1.3" } @@ -9701,6 +10490,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "license": "Apache-2.0", "engines": { "node": "*" } @@ -9709,6 +10499,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -9719,37 +10510,16 @@ } }, "node_modules/form-data-encoder": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", - "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", - "dev": true - }, - "node_modules/formdata-node": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", - "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", - "dev": true, - "dependencies": { - "node-domexception": "1.0.0", - "web-streams-polyfill": "4.0.0-beta.3" - }, - "engines": { - "node": ">= 12.20" - } - }, - "node_modules/formdata-node/node_modules/web-streams-polyfill": { - "version": "4.0.0-beta.3", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", - "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", - "dev": true, - "engines": { - "node": ">= 14" - } + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.1.tgz", + "integrity": "sha512-EFRDrsMm/kyqbTQocNvRXMLjc7Es2Vk+IQFx/YW7hkUH1eBl4J1fqiP34l74Yt0pFLCNpc06fkbVk00008mzjg==", + "license": "MIT" }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -9764,28 +10534,27 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "peer": true, + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz", + "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" } }, "node_modules/fs-minipass": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", + "license": "ISC", "dependencies": { "minipass": "^2.6.0" } @@ -9793,45 +10562,39 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" }, "node_modules/fulcon": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/fulcon/-/fulcon-1.0.2.tgz", "integrity": "sha512-vYwUBqbdo9XK0NmN7cFmURmy2T1YHpEsTCbxGO3aErxx6a0Z/HkWXcqcPkk7yOuJ74mSAHGWGBSBBd6v3GKebA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.10" } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" }, "engines": { "node": ">= 0.4" @@ -9851,6 +10614,7 @@ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -9860,6 +10624,7 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -9868,18 +10633,21 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -9890,16 +10658,21 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.0.0" } }, "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -9910,6 +10683,7 @@ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -9925,6 +10699,7 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" } @@ -9933,6 +10708,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -9952,6 +10728,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -9959,21 +10736,11 @@ "node": ">= 6" } }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/global": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", + "license": "MIT", "dependencies": { "min-document": "^2.19.0", "process": "^0.11.10" @@ -9984,15 +10751,33 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, + "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -10012,6 +10797,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -10024,6 +10810,7 @@ "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", "dev": true, + "license": "MIT", "dependencies": { "@sindresorhus/is": "^0.14.0", "@szmarczak/http-timer": "^1.1.2", @@ -10041,11 +10828,67 @@ "node": ">=8.6" } }, + "node_modules/got/node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/got/node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "license": "MIT", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/got/node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/got/node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/got/node_modules/get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -10053,63 +10896,131 @@ "node": ">=6" } }, + "node_modules/got/node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/got/node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/got/node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/got/node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/got/node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" }, "node_modules/graphql": { - "version": "16.6.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz", - "integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==", + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", + "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + "node": ">= 10.x" } }, "node_modules/graphql-config": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-4.3.6.tgz", - "integrity": "sha512-i7mAPwc0LAZPnYu2bI8B6yXU5820Wy/ArvmOseDLZIu0OU1UTULEuexHo6ZcHXeT9NvGGaUPQZm8NV3z79YydA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-4.5.0.tgz", + "integrity": "sha512-x6D0/cftpLUJ0Ch1e5sj1TZn6Wcxx4oMfmhaG9shM0DKajA9iR+j1z86GSTQ19fShbGvrSSvbIQsHku6aQ6BBw==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-tools/graphql-file-loader": "^7.3.7", "@graphql-tools/json-file-loader": "^7.3.7", "@graphql-tools/load": "^7.5.5", "@graphql-tools/merge": "^8.2.6", "@graphql-tools/url-loader": "^7.9.7", - "@graphql-tools/utils": "^8.6.5", - "cosmiconfig": "7.0.1", - "cosmiconfig-toml-loader": "1.0.0", - "cosmiconfig-typescript-loader": "^4.0.0", - "minimatch": "4.2.1", + "@graphql-tools/utils": "^9.0.0", + "cosmiconfig": "8.0.0", + "jiti": "1.17.1", + "minimatch": "4.2.3", "string-env-interpolation": "1.0.1", - "ts-node": "^10.8.1", "tslib": "^2.4.0" }, "engines": { "node": ">= 10.0.0" }, "peerDependencies": { + "cosmiconfig-toml-loader": "^1.0.0", "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + }, + "peerDependenciesMeta": { + "cosmiconfig-toml-loader": { + "optional": true + } } }, "node_modules/graphql-config/node_modules/cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.0.0.tgz", + "integrity": "sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/graphql-config/node_modules/minimatch": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.3.tgz", + "integrity": "sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" }, "engines": { "node": ">=10" @@ -10119,6 +11030,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-4.3.0.tgz", "integrity": "sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==", + "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", "extract-files": "^9.0.0", @@ -10128,22 +11040,12 @@ "graphql": "14 - 16" } }, - "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": { "version": "2.12.6", "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.1.0" }, @@ -10155,10 +11057,11 @@ } }, "node_modules/graphql-ws": { - "version": "5.11.2", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.11.2.tgz", - "integrity": "sha512-4EiZ3/UXYcjm+xFGP544/yW1+DVI8ZpKASFbzrV5EDTFWJp0ZvLl4Dy2fSZAzz9imKp5pZMIcjB0x/H69Pv/6w==", + "version": "5.12.1", + "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.12.1.tgz", + "integrity": "sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -10170,6 +11073,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/hamt-sharding/-/hamt-sharding-2.0.1.tgz", "integrity": "sha512-vnjrmdXG9dDs1m/H4iJ6z0JFI2NtgsW5keRkTcM85NGak69Mkf5PHUqBz+Xs0T4sg0ppvj9O5EGAJo40FTxmmA==", + "license": "MIT", "dependencies": { "sparse-array": "^1.3.1", "uint8arrays": "^3.0.0" @@ -10179,18 +11083,11 @@ "npm": ">=6.0.0" } }, - "node_modules/hamt-sharding/node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "dependencies": { - "multiformats": "^9.4.2" - } - }, "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "license": "ISC", "engines": { "node": ">=4" } @@ -10199,7 +11096,7 @@ "version": "5.1.5", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", + "license": "MIT", "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" @@ -10208,57 +11105,37 @@ "node": ">=6" } }, - "node_modules/har-validator/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/har-validator/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, "node_modules/hard-rejection": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/hardhat": { - "version": "2.12.4", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.12.4.tgz", - "integrity": "sha512-rc9S2U/4M+77LxW1Kg7oqMMmjl81tzn5rNFARhbXKUA1am/nhfMJEujOjuKvt+ZGMiZ11PYSe8gyIpB/aRNDgw==", + "version": "2.19.4", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.19.4.tgz", + "integrity": "sha512-fTQJpqSt3Xo9Mn/WrdblNGAfcANM6XC3tAEi6YogB4s02DmTf93A8QsGb8uR0KR8TFcpcS8lgiW4ugAIYpnbrQ==", "peer": true, "dependencies": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-blockchain": "^6.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-evm": "^1.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-statemanager": "^1.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@nomicfoundation/ethereumjs-vm": "^6.0.0", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", + "@nomicfoundation/ethereumjs-vm": "7.0.2", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", "@types/bn.js": "^5.1.0", "@types/lru-cache": "^5.1.0", - "abort-controller": "^3.0.0", "adm-zip": "^0.4.16", "aggregate-error": "^3.0.0", "ansi-escapes": "^4.3.0", @@ -10281,7 +11158,6 @@ "mnemonist": "^0.38.0", "mocha": "^10.0.0", "p-map": "^4.0.0", - "qs": "^6.7.0", "raw-body": "^2.4.1", "resolve": "1.17.0", "semver": "^6.3.0", @@ -10289,15 +11165,12 @@ "source-map-support": "^0.5.13", "stacktrace-parser": "^0.1.10", "tsort": "0.0.1", - "undici": "^5.4.0", + "undici": "^5.14.0", "uuid": "^8.3.2", "ws": "^7.4.6" }, "bin": { - "hardhat": "internal/cli/cli.js" - }, - "engines": { - "node": "^14.0.0 || ^16.0.0 || ^18.0.0" + "hardhat": "internal/cli/bootstrap.js" }, "peerDependencies": { "ts-node": "*", @@ -10316,6 +11189,7 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/hardhat-watcher/-/hardhat-watcher-2.5.0.tgz", "integrity": "sha512-Su2qcSMIo2YO2PrmJ0/tdkf+6pSt8zf9+4URR5edMVti6+ShI8T3xhPrwugdyTOFuyj8lKHrcTZNKUFYowYiyA==", + "license": "MIT", "dependencies": { "chokidar": "^3.5.3" }, @@ -10323,6 +11197,51 @@ "hardhat": "^2.0.0" } }, + "node_modules/hardhat/node_modules/@noble/hashes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", + "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "peer": true + }, + "node_modules/hardhat/node_modules/@scure/bip32": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", + "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "peer": true, + "dependencies": { + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/hardhat/node_modules/@scure/bip39": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", + "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "peer": true, + "dependencies": { + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" + } + }, "node_modules/hardhat/node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", @@ -10349,6 +11268,12 @@ "node": ">=4" } }, + "node_modules/hardhat/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "peer": true + }, "node_modules/hardhat/node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -10364,13 +11289,16 @@ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "peer": true }, - "node_modules/hardhat/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "node_modules/hardhat/node_modules/ethereum-cryptography": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", + "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", "peer": true, - "engines": { - "node": ">=0.8.0" + "dependencies": { + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" } }, "node_modules/hardhat/node_modules/find-up": { @@ -10385,6 +11313,20 @@ "node": ">=4" } }, + "node_modules/hardhat/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "peer": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, "node_modules/hardhat/node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -10415,9 +11357,9 @@ } }, "node_modules/hardhat/node_modules/immutable": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", - "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", + "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==", "peer": true }, "node_modules/hardhat/node_modules/locate-path": { @@ -10433,18 +11375,6 @@ "node": ">=4" } }, - "node_modules/hardhat/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/hardhat/node_modules/p-limit": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", @@ -10469,8 +11399,23 @@ "node": ">=4" } }, - "node_modules/hardhat/node_modules/p-try": { - "version": "1.0.0", + "node_modules/hardhat/node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "peer": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hardhat/node_modules/p-try": { + "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", "peer": true, @@ -10511,15 +11456,34 @@ "node": ">=4" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, + "node_modules/hardhat/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "peer": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/hardhat/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "peer": true, "engines": { - "node": ">= 0.4.0" + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/has-ansi": { @@ -10527,6 +11491,7 @@ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -10534,20 +11499,12 @@ "node": ">=0.10.0" } }, - "node_modules/has-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -10556,17 +11513,30 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "license": "MIT", "dependencies": { - "get-intrinsic": "^1.1.1" + "get-intrinsic": "^1.2.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -10576,6 +11546,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -10587,6 +11558,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -10601,6 +11573,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.4", "readable-stream": "^3.6.0", @@ -10614,11 +11587,24 @@ "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -10633,6 +11619,7 @@ "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", "dev": true, + "license": "MIT", "dependencies": { "capital-case": "^1.0.4", "tslib": "^2.0.3" @@ -10642,6 +11629,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "license": "MIT", "dependencies": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", @@ -10652,6 +11640,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -10659,27 +11648,12 @@ "node": ">=10" } }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hosted-git-info/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/html-encoding-sniffer": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", "dev": true, + "license": "MIT", "dependencies": { "whatwg-encoding": "^1.0.5" }, @@ -10691,17 +11665,20 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "license": "BSD-2-Clause" }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -10716,26 +11693,41 @@ "node_modules/http-https": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/http-https/-/http-https-1.0.0.tgz", - "integrity": "sha512-o0PWwVCSp3O0wS6FvNr6xfBCHgt0m1tvPLFOCc2iFDKTRAXhB7m8klDf7ErowFH8POa6dVdGatKU5I1YYwzUyg==" + "integrity": "sha512-o0PWwVCSp3O0wS6FvNr6xfBCHgt0m1tvPLFOCc2iFDKTRAXhB7m8klDf7ErowFH8POa6dVdGatKU5I1YYwzUyg==", + "license": "ISC" }, "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-6.1.1.tgz", + "integrity": "sha512-JRCz+4Whs6yrrIoIlrH+ZTmhrRwtMnmOHsHn8GFEn9O2sVfSE+DAZ3oyyGIKF8tjJEeSJmP89j7aTjVsSqsU0g==", "dev": true, + "license": "MIT", "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "agent-base": "^7.1.0", + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" + } + }, + "node_modules/http-proxy-agent/node_modules/agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" } }, "node_modules/http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -10747,38 +11739,43 @@ } }, "node_modules/http2-wrapper": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz", + "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==", + "license": "MIT", "dependencies": { "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" + "resolve-alpn": "^1.2.0" }, "engines": { "node": ">=10.19.0" } }, - "node_modules/http2-wrapper/node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "engines": { - "node": ">=10" + "node_modules/https-proxy-agent": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-6.2.1.tgz", + "integrity": "sha512-ONsE3+yfZF2caH5+bJlcddtWqNI3Gvs5A38+ngvljxaBiRXRswym2c7yf8UAeFpRFKjFNHIFEHqR/OLAWJzyiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">= 14" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "node_modules/https-proxy-agent/node_modules/agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "license": "MIT", "dependencies": { - "agent-base": "6", - "debug": "4" + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/human-signals": { @@ -10786,6 +11783,7 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -10794,6 +11792,7 @@ "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -10805,6 +11804,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/idna-uts46-hx/-/idna-uts46-hx-2.3.1.tgz", "integrity": "sha512-PWoF9Keq6laYdIRwwCdhTPl60xRqAloYNMQLiyUnG42VjT53oW07BXIRM+NK7eQjzXjAk2gUvX9caRxlnF9TAA==", + "license": "MIT", "dependencies": { "punycode": "2.1.0" }, @@ -10816,6 +11816,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", "integrity": "sha512-Yxz2kRwT90aPiWEMHVYnEf4+rhwF1tBmmZ4KepCP+Wkium9JxtWnUm1nqGwpiAHr/tnTSeHqr3wb++jgSkXjhA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -10837,13 +11838,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "BSD-3-Clause" }, "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } @@ -10853,6 +11856,7 @@ "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz", "integrity": "sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.8.0" } @@ -10862,6 +11866,7 @@ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -10878,6 +11883,7 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -10887,6 +11893,7 @@ "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=12.2" }, @@ -10899,6 +11906,7 @@ "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, + "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -10918,22 +11926,26 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } }, "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -10942,19 +11954,22 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, "node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/inquirer": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", - "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", + "version": "8.2.6", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", @@ -10970,17 +11985,86 @@ "string-width": "^4.1.0", "strip-ansi": "^6.0.0", "through": "^2.3.6", - "wrap-ansi": "^7.0.0" + "wrap-ansi": "^6.0.1" }, "engines": { "node": ">=12.0.0" } }, + "node_modules/inquirer/node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/inquirer/node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/inquirer/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/install-peers-cli": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/install-peers-cli/-/install-peers-cli-2.2.0.tgz", "integrity": "sha512-scSNvF49HDOLNm2xLFwST23g/OvfsceiA087bcGBgZP/ZNCrvpSaCn5IrWNZ2XYmFFykXF/6J1Zgm+D/JgRgtA==", "dev": true, + "license": "MIT", "dependencies": { "commander": "^2.20.0", "executioner": "^2.0.1" @@ -10993,7 +12077,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/interface-ipld-format/-/interface-ipld-format-1.0.1.tgz", "integrity": "sha512-WV/ar+KQJVoQpqRDYdo7YPGYIUHJxCuOEhdvsRpzLqoOIVCqPKdMMYmsLL1nCRsF3yYNio+PAJbCKiv6drrEAg==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "(Apache-2.0 AND MIT)", "dependencies": { "cids": "^1.1.6", "multicodec": "^3.0.1", @@ -11001,13 +12085,14 @@ } }, "node_modules/internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", "dev": true, + "license": "MIT", "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", "side-channel": "^1.0.4" }, "engines": { @@ -11019,6 +12104,7 @@ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, + "license": "MIT", "dependencies": { "loose-envify": "^1.0.0" } @@ -11036,6 +12122,7 @@ "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", "engines": { "node": ">= 0.10" } @@ -11044,6 +12131,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/ipfs-only-hash/-/ipfs-only-hash-4.0.0.tgz", "integrity": "sha512-TE1DZCvfw8i3gcsTq3P4TFx3cKFJ3sluu/J3XINkJhIN9OwJgNMqKA+WnKx6ByCb1IoPXsTp1KM7tupElb6SyA==", + "license": "MIT", "dependencies": { "ipfs-unixfs-importer": "^7.0.1", "meow": "^9.0.0" @@ -11056,6 +12144,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-4.0.3.tgz", "integrity": "sha512-hzJ3X4vlKT8FQ3Xc4M1szaFVjsc1ZydN+E4VQ91aXxfpjFn9G2wsMo1EFdAXNq/BUnN5dgqIOMP5zRYr3DTsAw==", + "license": "MIT", "dependencies": { "err-code": "^3.0.1", "protobufjs": "^6.10.2" @@ -11069,6 +12158,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/ipfs-unixfs-importer/-/ipfs-unixfs-importer-7.0.3.tgz", "integrity": "sha512-qeFOlD3AQtGzr90sr5Tq1Bi8pT5Nr2tSI8z310m7R4JDYgZc6J1PEZO3XZQ8l1kuGoqlAppBZuOYmPEqaHcVQQ==", + "license": "MIT", "dependencies": { "bl": "^5.0.0", "cids": "^1.1.5", @@ -11090,11 +12180,20 @@ "npm": ">=7.0.0" } }, + "node_modules/ipfs-unixfs-importer/node_modules/uint8arrays": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-2.1.10.tgz", + "integrity": "sha512-Q9/hhJa2836nQfEJSZTmr+pg9+cDJS9XEAp7N2Vg5MzL3bK/mkMVfjscRGYruP9jNda6MAdf4QD/y78gSzkp6A==", + "license": "MIT", + "dependencies": { + "multiformats": "^9.4.2" + } + }, "node_modules/ipld-dag-pb": { "version": "0.22.3", "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.22.3.tgz", "integrity": "sha512-dfG5C5OVAR4FEP7Al2CrHWvAyIM7UhAQrjnOYOIxXGQz5NlEj6wGX0XQf6Ru6or1na6upvV3NQfstapQG8X2rg==", - "deprecated": "This module has been superseded by @ipld/dag-pb and multiformats", + "license": "MIT", "dependencies": { "cids": "^1.0.0", "interface-ipld-format": "^1.0.0", @@ -11109,11 +12208,21 @@ "npm": ">=3.0.0" } }, + "node_modules/ipld-dag-pb/node_modules/uint8arrays": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-2.1.10.tgz", + "integrity": "sha512-Q9/hhJa2836nQfEJSZTmr+pg9+cDJS9XEAp7N2Vg5MzL3bK/mkMVfjscRGYruP9jNda6MAdf4QD/y78gSzkp6A==", + "license": "MIT", + "dependencies": { + "multiformats": "^9.4.2" + } + }, "node_modules/is-absolute": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "dev": true, + "license": "MIT", "dependencies": { "is-relative": "^1.0.0", "is-windows": "^1.0.1" @@ -11126,6 +12235,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -11137,16 +12247,49 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "license": "MIT" + }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, + "license": "MIT", "dependencies": { "has-bigints": "^1.0.1" }, @@ -11158,6 +12301,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -11170,6 +12314,7 @@ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -11208,6 +12353,7 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11216,11 +12362,12 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -11231,6 +12378,7 @@ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -11245,14 +12393,29 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", "engines": { "node": ">=8" } @@ -11260,13 +12423,15 @@ "node_modules/is-function": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", - "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==" + "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==", + "license": "MIT" }, "node_modules/is-generator-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -11275,6 +12440,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -11289,6 +12455,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -11300,6 +12467,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", "integrity": "sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==", + "license": "MIT", "engines": { "node": ">=6.5.0", "npm": ">=3" @@ -11310,6 +12478,7 @@ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -11319,6 +12488,7 @@ "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-2.0.2.tgz", "integrity": "sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -11328,6 +12498,7 @@ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11337,6 +12508,7 @@ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11348,6 +12520,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -11357,6 +12530,7 @@ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -11372,6 +12546,7 @@ "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", "dev": true, + "license": "MIT", "dependencies": { "symbol-observable": "^1.1.0" }, @@ -11384,34 +12559,39 @@ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-promise": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", - "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "license": "MIT" }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -11428,6 +12608,7 @@ "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, + "license": "MIT", "dependencies": { "is-unc-path": "^1.0.0" }, @@ -11440,6 +12621,7 @@ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11449,6 +12631,7 @@ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -11457,15 +12640,13 @@ } }, "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, "node_modules/is-string": { @@ -11473,6 +12654,7 @@ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -11488,6 +12670,7 @@ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "dev": true, + "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -11499,15 +12682,12 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "license": "MIT", "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" + "which-typed-array": "^1.1.11" }, "engines": { "node": ">= 0.4" @@ -11519,13 +12699,15 @@ "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "license": "MIT" }, "node_modules/is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, + "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.2" }, @@ -11537,6 +12719,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -11549,6 +12732,7 @@ "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", "integrity": "sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -11558,6 +12742,7 @@ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11567,6 +12752,7 @@ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -11579,6 +12765,7 @@ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -11592,6 +12779,7 @@ "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -11600,48 +12788,65 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/isnumber": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isnumber/-/isnumber-1.0.0.tgz", - "integrity": "sha512-JLiSz/zsZcGFXPrB4I/AGBvtStkt+8QmksyZBZnVXnnK9XdTEyz0tX8CRYljtwYDuIuZzih6DpHQdi+3Q6zHPw==" - }, - "node_modules/isomorphic-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", - "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", - "dev": true, - "dependencies": { - "node-fetch": "^2.6.1", - "whatwg-fetch": "^3.4.1" - } + "integrity": "sha512-JLiSz/zsZcGFXPrB4I/AGBvtStkt+8QmksyZBZnVXnnK9XdTEyz0tX8CRYljtwYDuIuZzih6DpHQdi+3Q6zHPw==", + "license": "MIT" }, "node_modules/isomorphic-ws": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", "dev": true, + "license": "MIT", "peerDependencies": { "ws": "*" } }, + "node_modules/isomorphic-ws/node_modules/ws": { + "version": "8.16.0", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "license": "MIT" }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } @@ -11651,6 +12856,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -11663,17 +12869,18 @@ } }, "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/istanbul-lib-source-maps": { @@ -11681,6 +12888,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -11691,10 +12899,11 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -11706,31 +12915,50 @@ "node_modules/it-all": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.6.tgz", - "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==" + "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==", + "license": "ISC" }, "node_modules/it-batch": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/it-batch/-/it-batch-1.0.9.tgz", - "integrity": "sha512-7Q7HXewMhNFltTsAMdSz6luNhyhkhEtGGbYek/8Xb/GiqYMtwUmopE1ocPSiJKKp3rM4Dt045sNFoUu+KZGNyA==" + "integrity": "sha512-7Q7HXewMhNFltTsAMdSz6luNhyhkhEtGGbYek/8Xb/GiqYMtwUmopE1ocPSiJKKp3rM4Dt045sNFoUu+KZGNyA==", + "license": "ISC" }, "node_modules/it-first": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/it-first/-/it-first-1.0.7.tgz", - "integrity": "sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g==" + "integrity": "sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g==", + "license": "ISC" }, "node_modules/it-parallel-batch": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/it-parallel-batch/-/it-parallel-batch-1.0.11.tgz", "integrity": "sha512-UWsWHv/kqBpMRmyZJzlmZeoAMA0F3SZr08FBdbhtbe+MtoEBgr/ZUAKrnenhXCBrsopy76QjRH2K/V8kNdupbQ==", + "license": "ISC", "dependencies": { "it-batch": "^1.0.9" } }, + "node_modules/iterator.prototype": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", + "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.4", + "set-function-name": "^2.0.1" + } + }, "node_modules/jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^27.5.1", "import-local": "^3.0.2", @@ -11756,6 +12984,7 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "execa": "^5.0.0", @@ -11770,6 +12999,7 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/test-result": "^27.5.1", @@ -11800,6 +13030,7 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^27.5.1", "@jest/test-result": "^27.5.1", @@ -11834,6 +13065,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -11845,6 +13077,7 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -11863,6 +13096,7 @@ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.8.0", "@jest/test-sequencer": "^27.5.1", @@ -11901,20 +13135,12 @@ } } }, - "node_modules/jest-config/node_modules/ci-info": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz", - "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/jest-diff": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^27.5.1", @@ -11930,6 +13156,7 @@ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", "dev": true, + "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -11942,6 +13169,7 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "chalk": "^4.0.0", @@ -11958,6 +13186,7 @@ "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/fake-timers": "^27.5.1", @@ -11976,6 +13205,7 @@ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/fake-timers": "^27.5.1", @@ -11993,6 +13223,7 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", "dev": true, + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } @@ -12002,6 +13233,7 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "@types/graceful-fs": "^4.1.2", @@ -12028,6 +13260,7 @@ "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/source-map": "^27.5.1", @@ -12056,6 +13289,7 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^27.5.1", "pretty-format": "^27.5.1" @@ -12069,6 +13303,7 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^27.5.1", @@ -12084,6 +13319,7 @@ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^27.5.1", @@ -12104,6 +13340,7 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "@types/node": "*" @@ -12117,6 +13354,7 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -12134,6 +13372,7 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", "dev": true, + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } @@ -12143,6 +13382,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "chalk": "^4.0.0", @@ -12164,6 +13404,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "jest-regex-util": "^27.5.1", @@ -12178,6 +13419,7 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^27.5.1", "@jest/environment": "^27.5.1", @@ -12210,6 +13452,7 @@ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^27.5.1", "@jest/fake-timers": "^27.5.1", @@ -12238,11 +13481,22 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/jest-serializer": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "graceful-fs": "^4.2.9" @@ -12256,6 +13510,7 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.7.2", "@babel/generator": "^7.7.2", @@ -12284,23 +13539,12 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-snapshot/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -12311,17 +13555,12 @@ "node": ">=10" } }, - "node_modules/jest-snapshot/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/jest-util": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "@types/node": "*", @@ -12334,20 +13573,12 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-util/node_modules/ci-info": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz", - "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/jest-validate": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1", "camelcase": "^6.2.0", @@ -12365,6 +13596,7 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -12377,6 +13609,7 @@ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^27.5.1", "@jest/types": "^27.5.1", @@ -12395,6 +13628,7 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -12409,6 +13643,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -12419,11 +13654,31 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", + "node_modules/jiti": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.17.1.tgz", + "integrity": "sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/jose": { + "version": "4.15.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.4.tgz", + "integrity": "sha512-W+oqK4H+r5sITxfxpSU+MMdr/YSWGvgZMQDIsNoBDGGy4i7GBPTtvFKibQzW06n3U3TqHjhvBJsirShsEJ6eeQ==", "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js-sdsl": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.2.tgz", + "integrity": "sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==", + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/js-sdsl" @@ -12432,17 +13687,20 @@ "node_modules/js-sha3": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==", + "license": "MIT" }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -12453,18 +13711,21 @@ "node_modules/jsbi": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/jsbi/-/jsbi-3.2.5.tgz", - "integrity": "sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==" + "integrity": "sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==", + "license": "Apache-2.0" }, "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "license": "MIT" }, "node_modules/jsdom": { "version": "16.7.0", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", "dev": true, + "license": "MIT", "dependencies": { "abab": "^2.0.5", "acorn": "^8.2.4", @@ -12506,20 +13767,12 @@ } } }, - "node_modules/jsdom/node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, "node_modules/jsdom/node_modules/http-proxy-agent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, + "license": "MIT", "dependencies": { "@tootallnate/once": "1", "agent-base": "6", @@ -12529,11 +13782,48 @@ "node": ">= 6" } }, + "node_modules/jsdom/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -12542,33 +13832,43 @@ } }, "node_modules/json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", - "dev": true + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "license": "MIT" }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "license": "MIT" }, "node_modules/json-schema": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT" }, "node_modules/json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.0.tgz", + "integrity": "sha512-zfA+5SuwYN2VWqN1/5HZaDzQKLJHaBVMZIIM+wuYjdptkaQsqzDdqjqf+lZZJUuJq1aanHiY8LhH8LmH+qBYJA==", "dev": true, + "license": "MIT", "dependencies": { - "jsonify": "^0.0.1" + "call-bind": "^1.0.5", + "isarray": "^2.0.5", + "jsonify": "^0.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -12578,18 +13878,21 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "license": "ISC" }, "node_modules/json-to-pretty-yaml": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/json-to-pretty-yaml/-/json-to-pretty-yaml-1.2.2.tgz", "integrity": "sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A==", "dev": true, + "license": "Apache-2.0", "dependencies": { "remedial": "^1.0.7", "remove-trailing-spaces": "^1.0.6" @@ -12599,10 +13902,11 @@ } }, "node_modules/json5": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", - "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -12614,6 +13918,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -12623,63 +13928,16 @@ "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", "dev": true, + "license": "Public Domain", "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jsonwebtoken": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", - "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", - "dev": true, - "dependencies": { - "jws": "^3.2.2", - "lodash": "^4.17.21", - "ms": "^2.1.1", - "semver": "^7.3.8" - }, - "engines": { - "node": ">=12", - "npm": ">=6" - } - }, - "node_modules/jsonwebtoken/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsonwebtoken/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsonwebtoken/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/jsprim": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -12691,44 +13949,27 @@ } }, "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", "dev": true, + "license": "MIT", "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" }, "engines": { "node": ">=4.0" } }, - "node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", - "dev": true, - "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", - "dev": true, - "dependencies": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" - } - }, "node_modules/keccak": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.2.tgz", - "integrity": "sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "node-addon-api": "^2.0.0", "node-gyp-build": "^4.2.0", @@ -12739,18 +13980,19 @@ } }, "node_modules/keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dev": true, + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "license": "MIT", "dependencies": { - "json-buffer": "3.0.0" + "json-buffer": "3.0.1" } }, "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12769,6 +14011,7 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -12778,6 +14021,7 @@ "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", "dev": true, + "license": "MIT", "dependencies": { "package-json": "^6.3.0" }, @@ -12824,11 +14068,36 @@ "node": ">=12" } }, + "node_modules/level-transcoder/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peer": true, + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -12838,6 +14107,7 @@ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -12849,13 +14119,15 @@ "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "license": "MIT" }, "node_modules/listr": { "version": "0.14.3", "resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz", "integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==", "dev": true, + "license": "MIT", "dependencies": { "@samverschueren/stream-to-observable": "^0.3.0", "is-observable": "^1.1.0", @@ -12876,6 +14148,7 @@ "resolved": "https://registry.npmjs.org/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz", "integrity": "sha512-L26cIFm7/oZeSNVhWB6faeorXhMg4HNlb/dS/7jHhr708jxlXrtrBWo4YUxZQkc6dGoxEAe6J/D3juTRBUzjtA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -12885,6 +14158,7 @@ "resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz", "integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^1.1.3", "cli-truncate": "^0.2.1", @@ -12902,20 +14176,12 @@ "listr": "^0.14.2" } }, - "node_modules/listr-update-renderer/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/listr-update-renderer/node_modules/ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12925,6 +14191,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -12936,42 +14203,12 @@ "node": ">=0.10.0" } }, - "node_modules/listr-update-renderer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/listr-update-renderer/node_modules/figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/listr-update-renderer/node_modules/indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/listr-update-renderer/node_modules/log-symbols": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", "integrity": "sha512-mmPrW0Fh2fxOzdBbFv4g1m6pR72haFLPJ2G5SJEELf1y+iaQrDG6cWCPjy54RHYbZAt7X+ls690Kw62AdWXBzQ==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^1.0.0" }, @@ -12984,6 +14221,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -12996,6 +14234,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -13005,6 +14244,7 @@ "resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz", "integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^2.4.1", "cli-cursor": "^2.1.0", @@ -13020,6 +14260,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -13032,6 +14273,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -13041,23 +14283,12 @@ "node": ">=4" } }, - "node_modules/listr-verbose-renderer/node_modules/cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", - "dev": true, - "dependencies": { - "restore-cursor": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/listr-verbose-renderer/node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -13066,22 +14297,15 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/listr-verbose-renderer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "engines": { - "node": ">=0.8.0" - } + "license": "MIT" }, "node_modules/listr-verbose-renderer/node_modules/figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -13094,40 +14318,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/listr-verbose-renderer/node_modules/mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/listr-verbose-renderer/node_modules/onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/listr-verbose-renderer/node_modules/restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", - "dev": true, - "dependencies": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - }, + "license": "MIT", "engines": { "node": ">=4" } @@ -13137,6 +14328,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -13144,82 +14336,49 @@ "node": ">=4" } }, - "node_modules/listr/node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/listr/node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/listr/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/listr/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", "dependencies": { - "p-locate": "^5.0.0" + "p-locate": "^4.1.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" }, "node_modules/lodash.flatmap": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.flatmap/-/lodash.flatmap-4.5.0.tgz", - "integrity": "sha512-/OcpcAGWlrZyoHGeHh3cAoa6nGdX6QYtmzNP84Jqol6UEQQ2gIaU3H+0eICcjcKGl0/XF8LWOujNn9lffsnaOg==" + "integrity": "sha512-/OcpcAGWlrZyoHGeHh3cAoa6nGdX6QYtmzNP84Jqol6UEQQ2gIaU3H+0eICcjcKGl0/XF8LWOujNn9lffsnaOg==", + "license": "MIT" }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "license": "MIT", "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -13236,6 +14395,7 @@ "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz", "integrity": "sha512-vlP11XfFGyeNQlmEn9tJ66rEW1coA/79m5z6BCkudjbAGE83uhAcGYrBFwfs3AdLiLzGRusRPAbSPK9xZteCmg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^3.0.0", "cli-cursor": "^2.0.0", @@ -13250,6 +14410,7 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -13259,18 +14420,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/log-update/node_modules/cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", - "dev": true, - "dependencies": { - "restore-cursor": "^2.0.0" - }, + "license": "MIT", "engines": { "node": ">=4" } @@ -13280,40 +14430,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/log-update/node_modules/mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/log-update/node_modules/onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/log-update/node_modules/restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", - "dev": true, - "dependencies": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - }, + "license": "MIT", "engines": { "node": ">=4" } @@ -13323,6 +14440,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, + "license": "MIT", "dependencies": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -13336,6 +14454,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^3.0.0" }, @@ -13348,6 +14467,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz", "integrity": "sha512-iXR3tDXpbnTpzjKSylUJRkLuOrEC7hwEB221cgn6wtF8wpmz28puFXAEfPT5zrjM3wahygB//VuWEr1vTkDcNQ==", "dev": true, + "license": "MIT", "dependencies": { "string-width": "^2.1.1", "strip-ansi": "^4.0.0" @@ -13360,6 +14480,7 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==", + "license": "MIT", "engines": { "node": ">= 0.6.0" }, @@ -13371,13 +14492,15 @@ "node_modules/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", + "license": "Apache-2.0" }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, + "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -13390,6 +14513,7 @@ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -13399,17 +14523,18 @@ "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-2.0.2.tgz", "integrity": "sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, "node_modules/lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true, + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/lru_map": { @@ -13419,48 +14544,77 @@ "peer": true }, "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "peer": true, + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", "dependencies": { - "yallist": "^3.0.2" + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, + "node_modules/lru-cache/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, "node_modules/lru-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "license": "MIT", "dependencies": { "es5-ext": "~0.10.2" } }, "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, + "license": "MIT", "dependencies": { - "semver": "^6.0.0" + "semver": "^7.5.3" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "devOptional": true + "devOptional": true, + "license": "ISC" }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -13470,19 +14624,18 @@ "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "license": "MIT", "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, "node_modules/mcl-wasm": { @@ -13498,6 +14651,7 @@ "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "license": "MIT", "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1", @@ -13508,6 +14662,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -13516,6 +14671,7 @@ "version": "0.4.15", "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", + "license": "ISC", "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.53", @@ -13554,6 +14710,7 @@ "version": "9.0.0", "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "license": "MIT", "dependencies": { "@types/minimist": "^1.2.0", "camelcase-keys": "^6.2.2", @@ -13579,6 +14736,7 @@ "version": "0.18.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -13589,12 +14747,14 @@ "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", + "license": "MIT" }, "node_modules/merge-options": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz", "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", + "license": "MIT", "dependencies": { "is-plain-obj": "^2.1.0" }, @@ -13602,26 +14762,38 @@ "node": ">=10" } }, + "node_modules/merge-options/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/meros": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/meros/-/meros-1.2.1.tgz", - "integrity": "sha512-R2f/jxYqCAGI19KhAvaxSOxALBMkaXWH2a7rOyqQw+ZmizX5bKkEYWLzdhC+U82ZVVPVp6MCXe3EkVligh+12g==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/meros/-/meros-1.3.0.tgz", + "integrity": "sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=13" }, @@ -13638,15 +14810,23 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==", + "license": "MIT" + }, "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -13655,27 +14835,11 @@ "node": ">=8.6" } }, - "node_modules/miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dependencies": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "bin": { - "miller-rabin": "bin/miller-rabin" - } - }, - "node_modules/miller-rabin/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -13687,6 +14851,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -13695,6 +14860,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -13707,6 +14873,7 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -13715,6 +14882,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "license": "MIT", "engines": { "node": ">=4" } @@ -13731,6 +14899,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "license": "MIT", "engines": { "node": ">=4" } @@ -13738,29 +14907,32 @@ "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "license": "ISC" }, "node_modules/minimalistic-crypto-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "license": "MIT" }, "node_modules/minimatch": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", - "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", - "dev": true, + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=10" + "node": "*" } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -13769,6 +14941,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "license": "MIT", "dependencies": { "arrify": "^1.0.1", "is-plain-obj": "^1.1.0", @@ -13778,18 +14951,11 @@ "node": ">= 6" } }, - "node_modules/minimist-options/node_modules/is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/minipass": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", + "license": "ISC", "dependencies": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -13799,6 +14965,7 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", + "license": "MIT", "dependencies": { "minipass": "^2.9.0" } @@ -13808,6 +14975,7 @@ "resolved": "https://registry.npmjs.org/mixly/-/mixly-1.0.0.tgz", "integrity": "sha512-ks+xIMVeIDwuYK4LnOMXTfmiEI8oo3tFNFirpHd60C4r2H0wMwKN5/qHCrFBKFK+BYx2Gp7qs+evUJw7QO9D2w==", "dev": true, + "license": "MIT", "dependencies": { "fulcon": "^1.0.1" }, @@ -13816,21 +14984,22 @@ } }, "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, "bin": { "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" } }, "node_modules/mkdirp-promise": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/mkdirp-promise/-/mkdirp-promise-5.0.1.tgz", "integrity": "sha512-Hepn5kb1lJPtVW84RFT40YG1OddBNTOVUZR2bzQUHc+Z03en8/3uX0+060JDhcEzyO08HmipsN9DcnFMxhIL9w==", - "deprecated": "This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.", + "license": "ISC", "dependencies": { "mkdirp": "*" }, @@ -13838,10 +15007,26 @@ "node": ">=4" } }, + "node_modules/mkdirp-promise/node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/mnemonist": { "version": "0.38.5", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", "integrity": "sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg==", + "license": "MIT", "dependencies": { "obliterator": "^2.0.0" } @@ -13906,6 +15091,43 @@ "wrap-ansi": "^7.0.0" } }, + "node_modules/mocha/node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "peer": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/mocha/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/mocha/node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -13938,6 +15160,21 @@ "node": "*" } }, + "node_modules/mocha/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/mocha/node_modules/minimatch": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", @@ -13959,11 +15196,20 @@ "balanced-match": "^1.0.0" } }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "peer": true + "node_modules/mocha/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/mocha/node_modules/supports-color": { "version": "8.1.1", @@ -14010,7 +15256,8 @@ "node_modules/mock-fs": { "version": "4.14.0", "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.14.0.tgz", - "integrity": "sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw==" + "integrity": "sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw==", + "license": "MIT" }, "node_modules/module-error": { "version": "1.0.2", @@ -14022,24 +15269,26 @@ } }, "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", "optional": true, "engines": { "node": "*" } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "node_modules/multibase": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/multibase/-/multibase-4.0.6.tgz", "integrity": "sha512-x23pDe5+svdLz/k5JPGCVdfn7Q5mZVMBETiC+ORfO+sor9Sgs0smJzAjfTbM5tckeCqnaUuMYoz+k3RXMmJClQ==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "@multiformats/base-x": "^4.0.1" }, @@ -14052,29 +15301,29 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-3.2.1.tgz", "integrity": "sha512-+expTPftro8VAW8kfvcuNNNBgb9gPeNYV9dn+z1kJRWF2vih+/S79f2RVeIwmrJBUJ6NT9IUPWnZDQvegEh5pw==", - "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "uint8arrays": "^3.0.0", "varint": "^6.0.0" } }, - "node_modules/multicodec/node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "dependencies": { - "multiformats": "^9.4.2" - } + "node_modules/multicodec/node_modules/varint": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", + "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==", + "license": "MIT" }, "node_modules/multiformats": { "version": "9.9.0", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", - "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" + "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==", + "license": "(Apache-2.0 AND MIT)" }, "node_modules/multihashes": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-4.0.3.tgz", "integrity": "sha512-0AhMH7Iu95XjDLxIeuCOOE4t9+vQZsACyKZ9Fxw2pcsRmlX4iCn1mby0hS0bb+nQOVpdQYWPpnyusw4da5RPhA==", + "license": "MIT", "dependencies": { "multibase": "^4.0.1", "uint8arrays": "^3.0.0", @@ -14085,23 +15334,11 @@ "npm": ">=6.0.0" } }, - "node_modules/multihashes/node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "dependencies": { - "multiformats": "^9.4.2" - } - }, - "node_modules/multihashes/node_modules/varint": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", - "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" - }, "node_modules/multihashing-async": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-2.1.4.tgz", "integrity": "sha512-sB1MiQXPSBTNRVSJc2zM157PXgDtud2nMFUEIvBrsq5Wv96sUclMRK/ecjoP1T/W61UJBqt4tCTwMkUpt2Gbzg==", + "license": "MIT", "dependencies": { "blakejs": "^1.1.0", "err-code": "^3.0.0", @@ -14115,18 +15352,11 @@ "npm": ">=6.0.0" } }, - "node_modules/multihashing-async/node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "dependencies": { - "multiformats": "^9.4.2" - } - }, "node_modules/murmurhash3js-revisited": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/murmurhash3js-revisited/-/murmurhash3js-revisited-3.0.0.tgz", "integrity": "sha512-/sF3ee6zvScXMb1XFJ8gDsSnY+X8PbOyjIuBhtgis10W2Jx4ZjIhikUCIF9c4gpJxVnQIsPAFrSwTCuAjicP6g==", + "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -14135,12 +15365,14 @@ "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/mv": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==", + "license": "MIT", "optional": true, "dependencies": { "mkdirp": "~0.5.1", @@ -14155,6 +15387,7 @@ "version": "6.0.4", "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==", + "license": "ISC", "optional": true, "dependencies": { "inflight": "^1.0.4", @@ -14167,34 +15400,11 @@ "node": "*" } }, - "node_modules/mv/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "optional": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mv/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/mv/node_modules/rimraf": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==", + "license": "ISC", "optional": true, "dependencies": { "glob": "^6.0.1" @@ -14204,15 +15414,17 @@ } }, "node_modules/nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", + "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==", + "license": "MIT", "optional": true }, "node_modules/nano-json-stream-parser": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz", - "integrity": "sha512-9MqxMH/BSJC7dnLsEMPyfN5Dvoo49IsPFYMcHw3Bcfc2kN0lpHRBSzlMSVx4HGyJ7s9B31CyBTVehWJoQ8Ctew==" + "integrity": "sha512-9MqxMH/BSJC7dnLsEMPyfN5Dvoo49IsPFYMcHw3Bcfc2kN0lpHRBSzlMSVx4HGyJ7s9B31CyBTVehWJoQ8Ctew==", + "license": "MIT" }, "node_modules/nanoid": { "version": "3.3.3", @@ -14227,27 +15439,30 @@ } }, "node_modules/napi-macros": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.0.0.tgz", - "integrity": "sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.2.2.tgz", + "integrity": "sha512-hmEVtAGYzVQpCKdbQea4skABsdXW4RUh5t5mJ2zzqowJS2OyXZTU1KhDVFhx+NlWZ4ap9mqR9TcDO3LTTttd+g==", "peer": true }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/natural-compare-lite": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ncp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "license": "MIT", "optional": true, "bin": { "ncp": "bin/ncp" @@ -14257,6 +15472,7 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -14264,13 +15480,15 @@ "node_modules/next-tick": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "license": "ISC" }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", "dev": true, + "license": "MIT", "dependencies": { "lower-case": "^2.0.2", "tslib": "^2.0.3" @@ -14279,12 +15497,14 @@ "node_modules/node-addon-api": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==", + "license": "MIT" }, "node_modules/node-cache": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-5.1.2.tgz", "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==", + "license": "MIT", "dependencies": { "clone": "2.x" }, @@ -14292,29 +15512,11 @@ "node": ">= 8.0.0" } }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "engines": { - "node": ">=10.5.0" - } - }, "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -14333,26 +15535,30 @@ "node_modules/node-fetch/node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" }, "node_modules/node-fetch/node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" }, "node_modules/node-fetch/node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "node_modules/node-gyp-build": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", - "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz", + "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==", + "license": "MIT", "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -14363,18 +15569,21 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", - "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", - "dev": true + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true, + "license": "MIT" }, "node_modules/normalize-package-data": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "license": "BSD-2-Clause", "dependencies": { "hosted-git-info": "^4.0.1", "is-core-module": "^2.5.0", @@ -14385,21 +15594,11 @@ "node": ">=10" } }, - "node_modules/normalize-package-data/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -14410,26 +15609,25 @@ "node": ">=10" } }, - "node_modules/normalize-package-data/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-url": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", - "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", - "dev": true, + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/npm-run-path": { @@ -14437,6 +15635,7 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -14448,13 +15647,15 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -14463,6 +15664,7 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", "integrity": "sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==", + "license": "MIT", "dependencies": { "bn.js": "4.11.6", "strip-hex-prefix": "1.0.0" @@ -14475,18 +15677,21 @@ "node_modules/number-to-bn/node_modules/bn.js": { "version": "4.11.6", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==" + "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", + "license": "MIT" }, "node_modules/nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==", - "dev": true + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", + "dev": true, + "license": "MIT" }, "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "license": "Apache-2.0", "engines": { "node": "*" } @@ -14495,30 +15700,16 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -14528,18 +15719,20 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", "has-symbols": "^1.0.3", "object-keys": "^1.1.1" }, @@ -14551,28 +15744,30 @@ } }, "node_modules/object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" } }, "node_modules/object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" @@ -14581,28 +15776,43 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, "node_modules/object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz", + "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==", "dev": true, + "license": "MIT", "dependencies": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" @@ -14614,12 +15824,14 @@ "node_modules/obliterator": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==" + "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", + "license": "MIT" }, "node_modules/oboe": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/oboe/-/oboe-2.1.5.tgz", "integrity": "sha512-zRFWiF+FoicxEs3jNI/WYUrVEgA7DeET/InK0XQuudGHRg8iIob3cNPrJTKaz4004uaA9Pbe+Dwa8iluhjLZWA==", + "license": "BSD", "dependencies": { "http-https": "^1.0.0" } @@ -14628,6 +15840,7 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", "dependencies": { "ee-first": "1.1.1" }, @@ -14639,6 +15852,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -14648,6 +15862,7 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -14659,17 +15874,18 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, + "license": "MIT", "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -14680,6 +15896,7 @@ "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, + "license": "MIT", "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", @@ -14703,40 +15920,45 @@ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, + "license": "MIT", "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, - "node_modules/ora/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "node_modules/ora/node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "license": "MIT", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" } }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -14746,6 +15968,7 @@ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -14754,6 +15977,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -14765,38 +15989,47 @@ } }, "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" + "p-limit": "^2.2.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "peer": true, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", "dependencies": { - "aggregate-error": "^3.0.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", "engines": { "node": ">=6" } @@ -14806,6 +16039,7 @@ "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", "dev": true, + "license": "MIT", "dependencies": { "got": "^9.6.0", "registry-auth-token": "^4.0.0", @@ -14821,6 +16055,7 @@ "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", "dev": true, + "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -14830,7 +16065,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/paraswap/-/paraswap-5.2.0.tgz", "integrity": "sha512-SYGhP7/ReHPwyLmCUuHh3mHqSK91r7HRcAs8siE7xOZ+omcUsyRwmvnlK9L5jsIwXkYZ/Rn6q3BTwCTLmw+4bA==", - "deprecated": "This package has been deprecated. Please use @paraswap/sdk instead.", + "license": "MIT", "dependencies": { "async": "^3.1.0", "axios": "0.21.2", @@ -14846,26 +16081,38 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/paraswap-core/-/paraswap-core-1.0.2.tgz", "integrity": "sha512-/PyonrjBsv9xOsFk4mVr0rh7BENrQtYYvvZMwu6QFN4qcca2VgmqOgpNWZPvfyBpKY+fUqmbBNlhqlaMQ3TMzQ==", - "deprecated": "This package has been deprecated. Please use @paraswap/core instead." - }, - "node_modules/paraswap/node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + "license": "MIT" }, "node_modules/paraswap/node_modules/axios": { "version": "0.21.2", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.2.tgz", "integrity": "sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.14.0" } }, + "node_modules/paraswap/node_modules/qs": { + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -14873,23 +16120,12 @@ "node": ">=6" } }, - "node_modules/parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "dependencies": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, "node_modules/parse-filepath": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", "dev": true, + "license": "MIT", "dependencies": { "is-absolute": "^1.0.0", "map-cache": "^0.2.0", @@ -14902,12 +16138,14 @@ "node_modules/parse-headers": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", - "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==" + "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==", + "license": "MIT" }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -14925,12 +16163,14 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -14940,6 +16180,7 @@ "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" @@ -14950,6 +16191,7 @@ "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", "dev": true, + "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -14959,6 +16201,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "license": "MIT", "engines": { "node": ">=8" } @@ -14967,6 +16210,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -14976,6 +16220,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -14983,13 +16228,15 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" }, "node_modules/path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", "dev": true, + "license": "MIT", "dependencies": { "path-root-regex": "^0.1.0" }, @@ -15002,6 +16249,7 @@ "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -15009,13 +16257,15 @@ "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "license": "MIT" }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -15024,6 +16274,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "license": "MIT", "dependencies": { "create-hash": "^1.1.2", "create-hmac": "^1.1.4", @@ -15038,18 +16289,21 @@ "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "license": "MIT" }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -15058,10 +16312,11 @@ } }, "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -15071,6 +16326,7 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -15078,63 +16334,12 @@ "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8.0" } @@ -15144,21 +16349,21 @@ "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz", + "integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==", "dev": true, - "peer": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -15169,6 +16374,7 @@ "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, + "license": "MIT", "dependencies": { "fast-diff": "^1.1.2" }, @@ -15181,6 +16387,7 @@ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -15190,11 +16397,22 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, + "node_modules/pretty-format/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -15206,6 +16424,7 @@ "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -15215,6 +16434,7 @@ "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "dev": true, + "license": "MIT", "dependencies": { "asap": "~2.0.3" } @@ -15224,6 +16444,7 @@ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -15237,6 +16458,7 @@ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dev": true, + "license": "MIT", "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -15247,13 +16469,15 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", "hasInstallScript": true, + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -15278,6 +16502,7 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" @@ -15289,50 +16514,36 @@ "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "node_modules/public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dependencies": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "license": "MIT" }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/pvtsutils": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.2.tgz", - "integrity": "sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.5.tgz", + "integrity": "sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA==", "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.4.0" + "tslib": "^2.6.1" } }, "node_modules/pvutils": { @@ -15340,6 +16551,7 @@ "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.3.tgz", "integrity": "sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -15348,6 +16560,7 @@ "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.4" }, @@ -15362,6 +16575,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "license": "MIT", "dependencies": { "decode-uri-component": "^0.2.0", "object-assign": "^4.1.0", @@ -15375,7 +16589,8 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -15394,20 +16609,26 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/rabin-wasm": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/rabin-wasm/-/rabin-wasm-0.1.5.tgz", "integrity": "sha512-uWgQTo7pim1Rnj5TuWcCewRDTf0PEFTSlaUjWP4eY9EbLV9em08v89oCz/WO+wRxpYuO36XEHp4wgYQnAgOHzA==", + "license": "MIT", "dependencies": { "@assemblyscript/loader": "^0.9.4", "bl": "^5.0.0", @@ -15424,31 +16645,25 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.1.0" } }, - "node_modules/randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", @@ -15464,6 +16679,7 @@ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -15479,6 +16695,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -15487,12 +16704,14 @@ "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "license": "MIT", "dependencies": { "@types/normalize-package-data": "^2.4.0", "normalize-package-data": "^2.5.0", @@ -15507,6 +16726,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "license": "MIT", "dependencies": { "find-up": "^4.1.0", "read-pkg": "^5.2.0", @@ -15519,58 +16739,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/read-pkg-up/node_modules/type-fest": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=8" } @@ -15578,12 +16751,14 @@ "node_modules/read-pkg/node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "license": "ISC" }, "node_modules/read-pkg/node_modules/normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "license": "BSD-2-Clause", "dependencies": { "hosted-git-info": "^2.1.4", "resolve": "^1.10.0", @@ -15592,9 +16767,10 @@ } }, "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", "bin": { "semver": "bin/semver" } @@ -15603,14 +16779,16 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=8" } }, "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -15624,6 +16802,7 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -15635,6 +16814,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "license": "MIT", "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" @@ -15643,21 +16823,28 @@ "node": ">=8" } }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "dev": true + "node_modules/redent/node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "node_modules/reflect.getprototypeof": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", + "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" }, "engines": { "node": ">= 0.4" @@ -15666,16 +16853,29 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true, + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/registry-auth-token": { @@ -15683,6 +16883,7 @@ "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", "dev": true, + "license": "MIT", "dependencies": { "rc": "1.2.8" }, @@ -15695,6 +16896,7 @@ "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", "dev": true, + "license": "MIT", "dependencies": { "rc": "^1.2.8" }, @@ -15707,6 +16909,7 @@ "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.0", @@ -15718,6 +16921,7 @@ "resolved": "https://registry.npmjs.org/remedial/-/remedial-1.0.8.tgz", "integrity": "sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg==", "dev": true, + "license": "(MIT OR Apache-2.0)", "engines": { "node": "*" } @@ -15726,19 +16930,21 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/remove-trailing-spaces": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/remove-trailing-spaces/-/remove-trailing-spaces-1.0.8.tgz", "integrity": "sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "license": "Apache-2.0", "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -15769,6 +16975,7 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -15782,6 +16989,7 @@ "version": "6.5.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.6" } @@ -15790,6 +16998,7 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" @@ -15802,7 +17011,7 @@ "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT", "bin": { "uuid": "bin/uuid" } @@ -15811,6 +17020,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -15819,6 +17029,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -15827,20 +17038,23 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "license": "MIT", "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -15854,13 +17068,15 @@ "node_modules/resolve-alpn": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "license": "MIT" }, "node_modules/resolve-cwd": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -15873,45 +17089,75 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve.exports": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", - "dev": true, - "dependencies": { - "lowercase-keys": "^1.0.0" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "license": "MIT", + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", "dev": true, + "license": "MIT", "dependencies": { - "onetime": "^5.1.0", + "onetime": "^2.0.0", "signal-exit": "^3.0.2" }, "engines": { - "node": ">=8" + "node": ">=4" + } + }, + "node_modules/restore-cursor/node_modules/mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/restore-cursor/node_modules/onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^1.0.0" + }, + "engines": { + "node": ">=4" } }, "node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "license": "MIT", "engines": { "node": ">= 4" } @@ -15921,6 +17167,7 @@ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -15931,6 +17178,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -15945,6 +17193,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "license": "MIT", "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1" @@ -15954,6 +17203,7 @@ "version": "2.2.7", "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", + "license": "MPL-2.0", "dependencies": { "bn.js": "^5.2.0" }, @@ -15966,6 +17216,7 @@ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -15989,6 +17240,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -16023,12 +17275,42 @@ "peer": true }, "node_modules/rxjs": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", - "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "tslib": "^2.1.0" + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true, + "license": "0BSD" + }, + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/safe-buffer": { @@ -16048,24 +17330,30 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/safe-json-stringify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "license": "MIT", "optional": true }, "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz", + "integrity": "sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", + "call-bind": "^1.0.5", + "get-intrinsic": "^1.2.2", "is-regex": "^1.1.4" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -16073,13 +17361,15 @@ "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" }, "node_modules/saxes": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", "dev": true, + "license": "ISC", "dependencies": { "xmlchars": "^2.2.0" }, @@ -16090,19 +17380,22 @@ "node_modules/scrypt-js": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", - "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==" + "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", + "license": "MIT" }, "node_modules/scuid": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/scuid/-/scuid-1.1.0.tgz", "integrity": "sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/secp256k1": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "elliptic": "^6.5.4", "node-addon-api": "^2.0.0", @@ -16113,9 +17406,10 @@ } }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -16124,6 +17418,7 @@ "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "license": "MIT", "dependencies": { "debug": "2.6.9", "depd": "2.0.0", @@ -16147,6 +17442,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -16154,18 +17450,15 @@ "node_modules/send/node_modules/debug/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, "node_modules/sentence-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -16185,6 +17478,7 @@ "version": "1.15.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "license": "MIT", "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -16199,6 +17493,7 @@ "version": "0.1.12", "resolved": "https://registry.npmjs.org/servify/-/servify-0.1.12.tgz", "integrity": "sha512-/xE6GvsKKqyo1BAY+KxOWXcLpPsUUyji7Qg3bVD7hh1eRze5bR1uYiuDA/k3Gof1s9BTzQZEJK8sNcNGFIzeWw==", + "license": "MIT", "dependencies": { "body-parser": "^1.16.0", "cors": "^2.8.1", @@ -16214,22 +17509,56 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true + "dev": true, + "license": "ISC" + }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "license": "MIT" }, "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" }, "node_modules/sha.js": { "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "license": "(MIT AND BSD-3-Clause)", "dependencies": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" @@ -16243,6 +17572,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -16255,6 +17585,7 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -16263,6 +17594,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -16276,13 +17608,15 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/signedsource": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/simple-concat": { "version": "1.0.1", @@ -16301,12 +17635,14 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/simple-get": { "version": "2.8.2", "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.2.tgz", "integrity": "sha512-Ijd/rV5o+mSBBs4F/x9oDPtTx9Zb6X9brmnXvMW4J7IR15ngi9q5xxqWBKU744jTZiaXtxaPL7uHG6vtN8kUkw==", + "license": "MIT", "dependencies": { "decompress-response": "^3.3.0", "once": "^1.3.1", @@ -16317,13 +17653,15 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -16333,6 +17671,7 @@ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", "integrity": "sha512-up04hB2hR92PgjpyU3y/eg91yIBILyjVY26NvvciY3EVVPjybkMszMpXQ9QAkcS3I5rtJBDLoTxxg+qvW8c7rw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -16342,6 +17681,7 @@ "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", "dev": true, + "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -16411,9 +17751,9 @@ } }, "node_modules/solc/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "peer": true, "bin": { "semver": "bin/semver" @@ -16423,6 +17763,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -16431,6 +17772,7 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -16439,12 +17781,14 @@ "node_modules/sparse-array": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/sparse-array/-/sparse-array-1.3.2.tgz", - "integrity": "sha512-ZT711fePGn3+kQyLuv1fpd3rNSkNF8vd5Kv2D+qnOANeyKs3fx6bUMGWRPvgTTcYV64QMqZKZwcuaQSP3AZ0tg==" + "integrity": "sha512-ZT711fePGn3+kQyLuv1fpd3rNSkNF8vd5Kv2D+qnOANeyKs3fx6bUMGWRPvgTTcYV64QMqZKZwcuaQSP3AZ0tg==", + "license": "ISC" }, "node_modules/spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "license": "Apache-2.0", "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -16453,27 +17797,31 @@ "node_modules/spdx-exceptions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "license": "CC-BY-3.0" }, "node_modules/spdx-expression-parse": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "license": "MIT", "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, "node_modules/spdx-license-ids": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", - "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==" + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", + "license": "CC0-1.0" }, "node_modules/sponge-case": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sponge-case/-/sponge-case-1.0.1.tgz", "integrity": "sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -16482,12 +17830,14 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "license": "MIT", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -16508,22 +17858,18 @@ "node": ">=0.10.0" } }, - "node_modules/sshpk/node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - }, "node_modules/stable": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" + "license": "MIT" }, "node_modules/stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -16536,6 +17882,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -16565,6 +17912,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/stats-lite/-/stats-lite-2.2.0.tgz", "integrity": "sha512-/Kz55rgUIv2KP2MKphwYT/NCuSfAlbbMRv2ZWw7wyXayu230zdtzhxxuXXcvsc6EmmhS8bSJl3uS1wmMHFumbA==", + "license": "MIT", "dependencies": { "isnumber": "~1.0.0" }, @@ -16576,6 +17924,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -16583,12 +17932,14 @@ "node_modules/stream-blackhole": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/stream-blackhole/-/stream-blackhole-1.0.3.tgz", - "integrity": "sha512-7NWl3dkmCd12mPkEwTbBPGxwvxj7L4O9DTjJudn02Fmk9K+RuPaDF8zeGo3kmjbsffU5E1aGpZ1dTR9AaRg6AQ==" + "integrity": "sha512-7NWl3dkmCd12mPkEwTbBPGxwvxj7L4O9DTjJudn02Fmk9K+RuPaDF8zeGo3kmjbsffU5E1aGpZ1dTR9AaRg6AQ==", + "license": "MIT" }, "node_modules/streamsearch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "dev": true, "engines": { "node": ">=10.0.0" } @@ -16597,6 +17948,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -16605,6 +17957,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -16613,13 +17966,15 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz", "integrity": "sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, + "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -16632,6 +17987,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -16642,47 +17998,69 @@ } }, "node_modules/string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz", + "integrity": "sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", + "internal-slot": "^1.0.5", + "regexp.prototype.flags": "^1.5.0", + "set-function-name": "^2.0.0", "side-channel": "^1.0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -16692,6 +18070,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -16699,13 +18078,23 @@ "node": ">=8" } }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/strip-final-newline": { @@ -16713,6 +18102,7 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -16721,6 +18111,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", + "license": "MIT", "dependencies": { "is-hex-prefixed": "1.0.0" }, @@ -16733,6 +18124,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, @@ -16744,6 +18136,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "license": "MIT", "engines": { "node": ">=8" }, @@ -16755,6 +18148,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -16767,6 +18161,7 @@ "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0", "supports-color": "^7.0.0" @@ -16779,6 +18174,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -16791,6 +18187,7 @@ "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -16799,6 +18196,7 @@ "version": "0.1.42", "resolved": "https://registry.npmjs.org/swarm-js/-/swarm-js-0.1.42.tgz", "integrity": "sha512-BV7c/dVlA3R6ya1lMlSSNPLYrntt0LUq4YMgy3iwpCIc6rZnS5W2wUoctarZ5pXlpKtxDDf9hNziEkcfrxdhqQ==", + "license": "MIT", "dependencies": { "bluebird": "^3.5.0", "buffer": "^5.0.5", @@ -16813,21 +18211,11 @@ "xhr-request": "^1.0.1" } }, - "node_modules/swarm-js/node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, "node_modules/swarm-js/node_modules/@szmarczak/http-timer": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "license": "MIT", "dependencies": { "defer-to-connect": "^2.0.0" }, @@ -16835,50 +18223,26 @@ "node": ">=10" } }, - "node_modules/swarm-js/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } + "node_modules/swarm-js/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "license": "MIT" }, - "node_modules/swarm-js/node_modules/cacheable-request": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", - "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, + "node_modules/swarm-js/node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10.6.0" } }, "node_modules/swarm-js/node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", "dependencies": { "mimic-response": "^3.1.0" }, @@ -16889,42 +18253,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/swarm-js/node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "engines": { - "node": ">=10" - } - }, - "node_modules/swarm-js/node_modules/fs-extra": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz", - "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==", - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "node_modules/swarm-js/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "node_modules/swarm-js/node_modules/eth-lib": { + "version": "0.1.29", + "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.1.29.tgz", + "integrity": "sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ==", + "license": "MIT", "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bn.js": "^4.11.6", + "elliptic": "^6.4.0", + "nano-json-stream-parser": "^0.1.2", + "servify": "^0.1.12", + "ws": "^3.0.0", + "xhr-request-promise": "^0.1.2" } }, "node_modules/swarm-js/node_modules/got": { "version": "11.8.6", "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "license": "MIT", "dependencies": { "@sindresorhus/is": "^4.0.0", "@szmarczak/http-timer": "^4.0.5", @@ -16945,31 +18292,24 @@ "url": "https://github.com/sindresorhus/got?sponsor=1" } }, - "node_modules/swarm-js/node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "node_modules/swarm-js/node_modules/keyv": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.2.tgz", - "integrity": "sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==", + "node_modules/swarm-js/node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "license": "MIT", "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/swarm-js/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, "engines": { - "node": ">=8" + "node": ">=10.19.0" } }, "node_modules/swarm-js/node_modules/mimic-response": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -16977,34 +18317,30 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/swarm-js/node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/swarm-js/node_modules/p-cancelable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "node_modules/swarm-js/node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/swarm-js/node_modules/responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "node_modules/swarm-js/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/swarm-js/node_modules/ws": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", + "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "license": "MIT", "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "async-limiter": "~1.0.0", + "safe-buffer": "~5.1.0", + "ultron": "~1.1.0" } }, "node_modules/symbol-observable": { @@ -17012,6 +18348,7 @@ "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -17020,12 +18357,14 @@ "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/tar": { "version": "4.4.19", "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.19.tgz", "integrity": "sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA==", + "license": "ISC", "dependencies": { "chownr": "^1.1.4", "fs-minipass": "^1.2.7", @@ -17039,22 +18378,12 @@ "node": ">=4.5" } }, - "node_modules/tar/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/terminal-link": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^4.2.1", "supports-hyperlinks": "^2.0.0" @@ -17071,6 +18400,7 @@ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -17080,40 +18410,32 @@ "node": ">=8" } }, - "node_modules/test-exclude/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", + "dev": true, + "license": "MIT" }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/timed-out": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -17122,6 +18444,7 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", + "license": "ISC", "dependencies": { "es5-ext": "~0.10.46", "next-tick": "1" @@ -17130,18 +18453,21 @@ "node_modules/tiny-invariant": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" + "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==", + "license": "MIT" }, "node_modules/tiny-warning": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", + "license": "MIT" }, "node_modules/title-case": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -17150,6 +18476,7 @@ "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" }, @@ -17161,13 +18488,15 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -17177,6 +18506,7 @@ "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -17185,6 +18515,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -17195,21 +18526,24 @@ "node_modules/toformat": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/toformat/-/toformat-2.0.0.tgz", - "integrity": "sha512-03SWBVop6nU8bpyZCx7SodpYznbZF5R4ljwNLBcTQzKOD9xuihRo/psX58llS1BMFhhAI08H3luot5GoXJz2pQ==" + "integrity": "sha512-03SWBVop6nU8bpyZCx7SodpYznbZF5R4ljwNLBcTQzKOD9xuihRo/psX58llS1BMFhhAI08H3luot5GoXJz2pQ==", + "license": "MIT" }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", "engines": { "node": ">=0.6" } }, "node_modules/tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", @@ -17225,6 +18559,7 @@ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4.0.0" } @@ -17234,6 +18569,7 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", "dev": true, + "license": "MIT", "dependencies": { "punycode": "^2.1.1" }, @@ -17245,6 +18581,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "license": "MIT", "engines": { "node": ">=8" } @@ -17253,6 +18590,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "license": "MIT", "peerDependencies": { "typescript": ">=3.7.0" } @@ -17262,6 +18600,7 @@ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz", "integrity": "sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==", "dev": true, + "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -17300,23 +18639,12 @@ } } }, - "node_modules/ts-jest/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -17327,23 +18655,19 @@ "node": ">=10" } }, - "node_modules/ts-jest/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/ts-log": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/ts-log/-/ts-log-2.2.5.tgz", "integrity": "sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA==", - "dev": true + "dev": true, + "license": "MIT" }, "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==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "devOptional": true, + "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -17382,32 +18706,15 @@ } } }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "devOptional": true, - "engines": { - "node": ">=0.4.0" - } - }, - "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==", - "devOptional": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", "dev": true, + "license": "MIT", "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", + "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } @@ -17417,6 +18724,7 @@ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.0" }, @@ -17424,19 +18732,11 @@ "json5": "lib/cli.js" } }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "license": "0BSD" }, "node_modules/tsort": { "version": "0.0.1", @@ -17449,6 +18749,7 @@ "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^1.8.1" }, @@ -17463,12 +18764,14 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "dev": true, + "license": "0BSD" }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" }, @@ -17477,10 +18780,10 @@ } }, "node_modules/tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", - "peer": true + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "license": "Unlicense" }, "node_modules/tweetnacl-util": { "version": "0.15.1", @@ -17491,13 +18794,15 @@ "node_modules/type": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "license": "ISC" }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -17510,6 +18815,7 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -17518,6 +18824,7 @@ "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -17529,6 +18836,7 @@ "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" @@ -17537,18 +18845,89 @@ "node": ">= 0.6" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typedarray-to-buffer": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "license": "MIT", "dependencies": { "is-typedarray": "^1.0.0" } }, "node_modules/typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -17558,9 +18937,9 @@ } }, "node_modules/ua-parser-js": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.32.tgz", - "integrity": "sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw==", + "version": "1.0.37", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.37.tgz", + "integrity": "sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==", "dev": true, "funding": [ { @@ -17570,16 +18949,22 @@ { "type": "paypal", "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" } ], + "license": "MIT", "engines": { "node": "*" } }, "node_modules/uint8arrays": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-2.1.10.tgz", - "integrity": "sha512-Q9/hhJa2836nQfEJSZTmr+pg9+cDJS9XEAp7N2Vg5MzL3bK/mkMVfjscRGYruP9jNda6MAdf4QD/y78gSzkp6A==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", + "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", + "license": "MIT", "dependencies": { "multiformats": "^9.4.2" } @@ -17587,13 +18972,15 @@ "node_modules/ultron": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", + "license": "MIT" }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -17609,25 +18996,34 @@ "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/undici": { - "version": "5.14.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.14.0.tgz", - "integrity": "sha512-yJlHYw6yXPPsuOH0x2Ib1Km61vu4hLiRRQoafs+WUgX1vO64vgnxiCEN9dpIrhZyHFsai3F0AEj4P9zy19enEQ==", + "version": "5.28.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.2.tgz", + "integrity": "sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w==", + "peer": true, "dependencies": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" }, "engines": { - "node": ">=12.18" + "node": ">=14.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "license": "MIT" + }, "node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "license": "MIT", "engines": { "node": ">= 4.0.0" } @@ -17637,6 +19033,7 @@ "resolved": "https://registry.npmjs.org/unixify/-/unixify-1.0.0.tgz", "integrity": "sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==", "dev": true, + "license": "MIT", "dependencies": { "normalize-path": "^2.1.1" }, @@ -17649,6 +19046,7 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", "dev": true, + "license": "MIT", "dependencies": { "remove-trailing-separator": "^1.0.1" }, @@ -17660,14 +19058,15 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", "dev": true, "funding": [ { @@ -17677,14 +19076,19 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.1.1", "picocolors": "^1.0.0" }, "bin": { - "browserslist-lint": "cli.js" + "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" @@ -17695,6 +19099,7 @@ "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -17704,6 +19109,7 @@ "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -17712,6 +19118,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } @@ -17721,6 +19128,7 @@ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "dev": true, + "license": "MIT", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -17731,6 +19139,7 @@ "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", "dev": true, + "license": "MIT", "dependencies": { "prepend-http": "^2.0.0" }, @@ -17741,13 +19150,22 @@ "node_modules/url-set-query": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", - "integrity": "sha512-3AChu4NiXquPfeckE5R5cGdiHCMWJx1dwCWOmWIL4KHAziJNOFIYJlpGFeKDvwLPHovZRCxK3cYlwzqI9Vp+Gg==" + "integrity": "sha512-3AChu4NiXquPfeckE5R5cGdiHCMWJx1dwCWOmWIL4KHAziJNOFIYJlpGFeKDvwLPHovZRCxK3cYlwzqI9Vp+Gg==", + "license": "MIT" + }, + "node_modules/urlpattern-polyfill": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", + "integrity": "sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==", + "dev": true, + "license": "MIT" }, "node_modules/utf-8-validate": { "version": "5.0.10", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "node-gyp-build": "^4.3.0" }, @@ -17758,12 +19176,14 @@ "node_modules/utf8": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", - "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==" + "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==", + "license": "MIT" }, "node_modules/util": { "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", @@ -17775,21 +19195,27 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", "engines": { "node": ">= 0.4.0" } }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "peer": true, + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -17798,13 +19224,15 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "node_modules/v8-to-istanbul": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", "dev": true, + "license": "ISC", "dependencies": { "@types/istanbul-lib-coverage": "^2.0.1", "convert-source-map": "^1.6.0", @@ -17819,6 +19247,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">= 8" } @@ -17833,29 +19262,33 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "license": "Apache-2.0", "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, "node_modules/value-or-promise": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz", - "integrity": "sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", + "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" } }, "node_modules/varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", + "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==", + "license": "MIT" }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -17867,18 +19300,28 @@ "engines": [ "node >=0.6.0" ], + "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, + "node_modules/verror/node_modules/extsprintf": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", + "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, "node_modules/w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", "dev": true, + "license": "MIT", "dependencies": { "browser-process-hrtime": "^1.0.0" } @@ -17888,6 +19331,7 @@ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", "dev": true, + "license": "MIT", "dependencies": { "xml-name-validator": "^3.0.0" }, @@ -17900,6 +19344,7 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -17909,42 +19354,46 @@ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, + "license": "MIT", "dependencies": { "defaults": "^1.0.3" } }, "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.2.tgz", + "integrity": "sha512-3pRGuxRF5gpuZc0W+EpwQRmCD7gRqcDOMt688KmdlDAgAyaB1XlN0zq2njfDNm44XVdIouE7pZ6GzbdyH47uIQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/web3": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3/-/web3-1.8.1.tgz", - "integrity": "sha512-tAqFsQhGv340C9OgRJIuoScN7f7wa1tUvsnnDUMt9YE6J4gcm7TV2Uwv+KERnzvV+xgdeuULYpsioRRNKrUvoQ==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3/-/web3-1.10.3.tgz", + "integrity": "sha512-DgUdOOqC/gTqW+VQl1EdPxrVRPB66xVNtuZ5KD4adVBtko87hkgM8BTZ0lZ8IbUfnQk6DyjcDujMiH3oszllAw==", "hasInstallScript": true, + "license": "LGPL-3.0", "dependencies": { - "web3-bzz": "1.8.1", - "web3-core": "1.8.1", - "web3-eth": "1.8.1", - "web3-eth-personal": "1.8.1", - "web3-net": "1.8.1", - "web3-shh": "1.8.1", - "web3-utils": "1.8.1" + "web3-bzz": "1.10.3", + "web3-core": "1.10.3", + "web3-eth": "1.10.3", + "web3-eth-personal": "1.10.3", + "web3-net": "1.10.3", + "web3-shh": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-bzz": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-bzz/-/web3-bzz-1.8.1.tgz", - "integrity": "sha512-dJJHS84nvpoxv6ijTMkdUSlRr5beCXNtx4UZcrFLHBva8dT63QEtKdLyDt2AyMJJdVzTCk78uir/6XtVWrdS6w==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-bzz/-/web3-bzz-1.10.3.tgz", + "integrity": "sha512-XDIRsTwekdBXtFytMpHBuun4cK4x0ZMIDXSoo1UVYp+oMyZj07c7gf7tNQY5qZ/sN+CJIas4ilhN25VJcjSijQ==", "hasInstallScript": true, + "license": "LGPL-3.0", "dependencies": { "@types/node": "^12.12.6", "got": "12.1.0", @@ -17954,21 +19403,11 @@ "node": ">=8.0.0" } }, - "node_modules/web3-bzz/node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, "node_modules/web3-bzz/node_modules/@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", + "license": "MIT", "dependencies": { "defer-to-connect": "^2.0.1" }, @@ -17979,59 +19418,14 @@ "node_modules/web3-bzz/node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - }, - "node_modules/web3-bzz/node_modules/cacheable-lookup": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-6.1.0.tgz", - "integrity": "sha512-KJ/Dmo1lDDhmW2XDPMo+9oiy/CeqosPguPCrgcVzKyZrL6pM1gU2GmPY/xo6OQPTUaA/c0kwHuywB4E6nmT9ww==", - "engines": { - "node": ">=10.6.0" - } - }, - "node_modules/web3-bzz/node_modules/cacheable-request": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", - "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/web3-bzz/node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/web3-bzz/node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "license": "MIT" }, "node_modules/web3-bzz/node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", "dependencies": { "mimic-response": "^3.1.0" }, @@ -18042,23 +19436,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/web3-bzz/node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "node_modules/web3-bzz/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "license": "MIT", "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/web3-bzz/node_modules/form-data-encoder": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.1.tgz", - "integrity": "sha512-EFRDrsMm/kyqbTQocNvRXMLjc7Es2Vk+IQFx/YW7hkUH1eBl4J1fqiP34l74Yt0pFLCNpc06fkbVk00008mzjg==" - }, "node_modules/web3-bzz/node_modules/got": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/got/-/got-12.1.0.tgz", "integrity": "sha512-hBv2ty9QN2RdbJJMK3hesmSkFTjVIHyIDDbssCKnSmq62edGgImJWD10Eb1k77TiV1bxloxqcFAVK8+9pkhOig==", + "license": "MIT", "dependencies": { "@sindresorhus/is": "^4.6.0", "@szmarczak/http-timer": "^5.0.1", @@ -18081,35 +19475,11 @@ "url": "https://github.com/sindresorhus/got?sponsor=1" } }, - "node_modules/web3-bzz/node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/web3-bzz/node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "node_modules/web3-bzz/node_modules/keyv": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.2.tgz", - "integrity": "sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==", - "dependencies": { - "json-buffer": "3.0.1" - } - }, "node_modules/web3-bzz/node_modules/lowercase-keys": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, @@ -18121,17 +19491,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/web3-bzz/node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -18143,88 +19503,63 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", + "license": "MIT", "engines": { "node": ">=12.20" } }, - "node_modules/web3-bzz/node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/web3-bzz/node_modules/responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/web3-bzz/node_modules/responselike/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "engines": { - "node": ">=8" - } - }, "node_modules/web3-core": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.8.1.tgz", - "integrity": "sha512-LbRZlJH2N6nS3n3Eo9Y++25IvzMY7WvYnp4NM/Ajhh97dAdglYs6rToQ2DbL2RLvTYmTew4O/y9WmOk4nq9COw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.10.3.tgz", + "integrity": "sha512-Vbk0/vUNZxJlz3RFjAhNNt7qTpX8yE3dn3uFxfX5OHbuon5u65YEOd3civ/aQNW745N0vGUlHFNxxmn+sG9DIw==", + "license": "LGPL-3.0", "dependencies": { - "@types/bn.js": "^5.1.0", + "@types/bn.js": "^5.1.1", "@types/node": "^12.12.6", "bignumber.js": "^9.0.0", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-requestmanager": "1.8.1", - "web3-utils": "1.8.1" + "web3-core-helpers": "1.10.3", + "web3-core-method": "1.10.3", + "web3-core-requestmanager": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-core-helpers": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-helpers/-/web3-core-helpers-1.8.1.tgz", - "integrity": "sha512-ClzNO6T1S1gifC+BThw0+GTfcsjLEY8T1qUp6Ly2+w4PntAdNtKahxWKApWJ0l9idqot/fFIDXwO3Euu7I0Xqw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core-helpers/-/web3-core-helpers-1.10.3.tgz", + "integrity": "sha512-Yv7dQC3B9ipOc5sWm3VAz1ys70Izfzb8n9rSiQYIPjpqtJM+3V4EeK6ghzNR6CO2es0+Yu9CtCkw0h8gQhrTxA==", + "license": "LGPL-3.0", "dependencies": { - "web3-eth-iban": "1.8.1", - "web3-utils": "1.8.1" + "web3-eth-iban": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-core-method": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.8.1.tgz", - "integrity": "sha512-oYGRodktfs86NrnFwaWTbv2S38JnpPslFwSSARwFv4W9cjbGUW3LDeA5MKD/dRY+ssZ5OaekeMsUCLoGhX68yA==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.10.3.tgz", + "integrity": "sha512-VZ/Dmml4NBmb0ep5PTSg9oqKoBtG0/YoMPei/bq/tUdlhB2dMB79sbeJPwx592uaV0Vpk7VltrrrBv5hTM1y4Q==", + "license": "LGPL-3.0", "dependencies": { "@ethersproject/transactions": "^5.6.2", - "web3-core-helpers": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-utils": "1.8.1" + "web3-core-helpers": "1.10.3", + "web3-core-promievent": "1.10.3", + "web3-core-subscriptions": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-core-promievent": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-promievent/-/web3-core-promievent-1.8.1.tgz", - "integrity": "sha512-9mxqHlgB0MrZI4oUIRFkuoJMNj3E7btjrMv3sMer/Z9rYR1PfoSc1aAokw4rxKIcAh+ylVtd/acaB2HKB7aRPg==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core-promievent/-/web3-core-promievent-1.10.3.tgz", + "integrity": "sha512-HgjY+TkuLm5uTwUtaAfkTgRx/NzMxvVradCi02gy17NxDVdg/p6svBHcp037vcNpkuGeFznFJgULP+s2hdVgUQ==", + "license": "LGPL-3.0", "dependencies": { "eventemitter3": "4.0.4" }, @@ -18233,27 +19568,29 @@ } }, "node_modules/web3-core-requestmanager": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-requestmanager/-/web3-core-requestmanager-1.8.1.tgz", - "integrity": "sha512-x+VC2YPPwZ1khvqA6TA69LvfFCOZXsoUVOxmTx/vIN22PrY9KzKhxcE7pBSiGhmab1jtmRYXUbcQSVpAXqL8cw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core-requestmanager/-/web3-core-requestmanager-1.10.3.tgz", + "integrity": "sha512-VT9sKJfgM2yBOIxOXeXiDuFMP4pxzF6FT+y8KTLqhDFHkbG3XRe42Vm97mB/IvLQCJOmokEjl3ps8yP1kbggyw==", + "license": "LGPL-3.0", "dependencies": { - "util": "^0.12.0", - "web3-core-helpers": "1.8.1", - "web3-providers-http": "1.8.1", - "web3-providers-ipc": "1.8.1", - "web3-providers-ws": "1.8.1" + "util": "^0.12.5", + "web3-core-helpers": "1.10.3", + "web3-providers-http": "1.10.3", + "web3-providers-ipc": "1.10.3", + "web3-providers-ws": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-core-subscriptions": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-subscriptions/-/web3-core-subscriptions-1.8.1.tgz", - "integrity": "sha512-bmCMq5OeA3E2vZUh8Js1HcJbhwtsE+yeMqGC4oIZB3XsL5SLqyKLB/pU+qUYqQ9o4GdcrFTDPhPg1bgvf7p1Pw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-core-subscriptions/-/web3-core-subscriptions-1.10.3.tgz", + "integrity": "sha512-KW0Mc8sgn70WadZu7RjQ4H5sNDJ5Lx8JMI3BWos+f2rW0foegOCyWhRu33W1s6ntXnqeBUw5rRCXZRlA3z+HNA==", + "license": "LGPL-3.0", "dependencies": { "eventemitter3": "4.0.4", - "web3-core-helpers": "1.8.1" + "web3-core-helpers": "1.10.3" }, "engines": { "node": ">=8.0.0" @@ -18262,190 +19599,138 @@ "node_modules/web3-core/node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "license": "MIT" }, "node_modules/web3-core/node_modules/bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "license": "MIT", "engines": { "node": "*" } }, "node_modules/web3-eth": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-1.8.1.tgz", - "integrity": "sha512-LgyzbhFqiFRd8M8sBXoFN4ztzOnkeckl3H/9lH5ek7AdoRMhBg7tYpYRP3E5qkhd/q+yiZmcUgy1AF6NHrC1wg==", - "dependencies": { - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-eth-accounts": "1.8.1", - "web3-eth-contract": "1.8.1", - "web3-eth-ens": "1.8.1", - "web3-eth-iban": "1.8.1", - "web3-eth-personal": "1.8.1", - "web3-net": "1.8.1", - "web3-utils": "1.8.1" + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-1.10.3.tgz", + "integrity": "sha512-Uk1U2qGiif2mIG8iKu23/EQJ2ksB1BQXy3wF3RvFuyxt8Ft9OEpmGlO7wOtAyJdoKzD5vcul19bJpPcWSAYZhA==", + "license": "LGPL-3.0", + "dependencies": { + "web3-core": "1.10.3", + "web3-core-helpers": "1.10.3", + "web3-core-method": "1.10.3", + "web3-core-subscriptions": "1.10.3", + "web3-eth-abi": "1.10.3", + "web3-eth-accounts": "1.10.3", + "web3-eth-contract": "1.10.3", + "web3-eth-ens": "1.10.3", + "web3-eth-iban": "1.10.3", + "web3-eth-personal": "1.10.3", + "web3-net": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-eth-abi": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.8.1.tgz", - "integrity": "sha512-0mZvCRTIG0UhDhJwNQJgJxu4b4DyIpuMA0GTfqxqeuqzX4Q/ZvmoNurw0ExTfXaGPP82UUmmdkRi6FdZOx+C6w==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.10.3.tgz", + "integrity": "sha512-O8EvV67uhq0OiCMekqYsDtb6FzfYzMXT7VMHowF8HV6qLZXCGTdB/NH4nJrEh2mFtEwVdS6AmLFJAQd2kVyoMQ==", + "license": "LGPL-3.0", "dependencies": { "@ethersproject/abi": "^5.6.3", - "web3-utils": "1.8.1" + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-eth-accounts": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-1.8.1.tgz", - "integrity": "sha512-mgzxSYgN54/NsOFBO1Fq1KkXp1S5KlBvI/DlgvajU72rupoFMq6Cu6Yp9GUaZ/w2ij9PzEJuFJk174XwtfMCmg==", - "dependencies": { - "@ethereumjs/common": "2.5.0", - "@ethereumjs/tx": "3.3.2", - "crypto-browserify": "3.12.0", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-1.10.3.tgz", + "integrity": "sha512-8MipGgwusDVgn7NwKOmpeo3gxzzd+SmwcWeBdpXknuyDiZSQy9tXe+E9LeFGrmys/8mLLYP79n3jSbiTyv+6pQ==", + "license": "LGPL-3.0", + "dependencies": { + "@ethereumjs/common": "2.6.5", + "@ethereumjs/tx": "3.5.2", + "@ethereumjs/util": "^8.1.0", "eth-lib": "0.2.8", - "ethereumjs-util": "^7.0.10", "scrypt-js": "^3.0.1", "uuid": "^9.0.0", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-utils": "1.8.1" + "web3-core": "1.10.3", + "web3-core-helpers": "1.10.3", + "web3-core-method": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, - "node_modules/web3-eth-accounts/node_modules/eth-lib": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz", - "integrity": "sha512-ArJ7x1WcWOlSpzdoTBX8vkwlkSQ85CjjifSZtV4co64vWxSV8geWfPI9x4SVYu3DSxnX4yWFVTtGL+j9DUFLNw==", - "dependencies": { - "bn.js": "^4.11.6", - "elliptic": "^6.4.0", - "xhr-request-promise": "^0.1.2" - } - }, - "node_modules/web3-eth-accounts/node_modules/eth-lib/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/web3-eth-accounts/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "node_modules/web3-eth-accounts/node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/web3-eth-accounts/node_modules/uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/web3-eth-contract": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-1.8.1.tgz", - "integrity": "sha512-1wphnl+/xwCE2io44JKnN+ti3oa47BKRiVzvWd42icwRbcpFfRxH9QH+aQX3u8VZIISNH7dAkTWpGIIJgGFTmg==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-1.10.3.tgz", + "integrity": "sha512-Y2CW61dCCyY4IoUMD4JsEQWrILX4FJWDWC/Txx/pr3K/+fGsBGvS9kWQN5EsVXOp4g7HoFOfVh9Lf7BmVVSRmg==", + "license": "LGPL-3.0", "dependencies": { - "@types/bn.js": "^5.1.0", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-utils": "1.8.1" + "@types/bn.js": "^5.1.1", + "web3-core": "1.10.3", + "web3-core-helpers": "1.10.3", + "web3-core-method": "1.10.3", + "web3-core-promievent": "1.10.3", + "web3-core-subscriptions": "1.10.3", + "web3-eth-abi": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-eth-ens": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-1.8.1.tgz", - "integrity": "sha512-FT8xTI9uN8RxeBQa/W8pLa2aoFh4+EE34w7W2271LICKzla1dtLyb6XSdn48vsUcPmhWsTVk9mO9RTU0l4LGQQ==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-1.10.3.tgz", + "integrity": "sha512-hR+odRDXGqKemw1GFniKBEXpjYwLgttTES+bc7BfTeoUyUZXbyDHe5ifC+h+vpzxh4oS0TnfcIoarK0Z9tFSiQ==", + "license": "LGPL-3.0", "dependencies": { "content-hash": "^2.5.2", "eth-ens-namehash": "2.0.8", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-eth-contract": "1.8.1", - "web3-utils": "1.8.1" + "web3-core": "1.10.3", + "web3-core-helpers": "1.10.3", + "web3-core-promievent": "1.10.3", + "web3-eth-abi": "1.10.3", + "web3-eth-contract": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-eth-iban": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-iban/-/web3-eth-iban-1.8.1.tgz", - "integrity": "sha512-DomoQBfvIdtM08RyMGkMVBOH0vpOIxSSQ+jukWk/EkMLGMWJtXw/K2c2uHAeq3L/VPWNB7zXV2DUEGV/lNE2Dg==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-iban/-/web3-eth-iban-1.10.3.tgz", + "integrity": "sha512-ZCfOjYKAjaX2TGI8uif5ah+J3BYFuo+47JOIV1RIz2l7kD9VfnxvRH5UiQDRyMALQC7KFd2hUqIEtHklapNyKA==", + "license": "LGPL-3.0", "dependencies": { "bn.js": "^5.2.1", - "web3-utils": "1.8.1" + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-eth-personal": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.8.1.tgz", - "integrity": "sha512-myIYMvj7SDIoV9vE5BkVdon3pya1WinaXItugoii2VoTcQNPOtBxmYVH+XS5ErzCJlnxzphpQrkywyY64bbbCA==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.10.3.tgz", + "integrity": "sha512-avrQ6yWdADIvuNQcFZXmGLCEzulQa76hUOuVywN7O3cklB4nFc/Gp3yTvD3bOAaE7DhjLQfhUTCzXL7WMxVTsw==", + "license": "LGPL-3.0", "dependencies": { "@types/node": "^12.12.6", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-net": "1.8.1", - "web3-utils": "1.8.1" + "web3-core": "1.10.3", + "web3-core-helpers": "1.10.3", + "web3-core-method": "1.10.3", + "web3-net": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" @@ -18454,14886 +19739,139 @@ "node_modules/web3-eth-personal/node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "license": "MIT" }, "node_modules/web3-net": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-net/-/web3-net-1.8.1.tgz", - "integrity": "sha512-LyEJAwogdFo0UAXZqoSJGFjopdt+kLw0P00FSZn2yszbgcoI7EwC+nXiOsEe12xz4LqpYLOtbR7+gxgiTVjjHQ==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-net/-/web3-net-1.10.3.tgz", + "integrity": "sha512-IoSr33235qVoI1vtKssPUigJU9Fc/Ph0T9CgRi15sx+itysmvtlmXMNoyd6Xrgm9LuM4CIhxz7yDzH93B79IFg==", + "license": "LGPL-3.0", "dependencies": { - "web3-core": "1.8.1", - "web3-core-method": "1.8.1", - "web3-utils": "1.8.1" + "web3-core": "1.10.3", + "web3-core-method": "1.10.3", + "web3-utils": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-providers-http": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.8.1.tgz", - "integrity": "sha512-1Zyts4O9W/UNEPkp+jyL19Jc3D15S4yp8xuLTjVhcUEAlHo24NDWEKxtZGUuHk4HrKL2gp8OlsDbJ7MM+ESDgg==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.10.3.tgz", + "integrity": "sha512-6dAgsHR3MxJ0Qyu3QLFlQEelTapVfWNTu5F45FYh8t7Y03T1/o+YAkVxsbY5AdmD+y5bXG/XPJ4q8tjL6MgZHw==", + "license": "LGPL-3.0", "dependencies": { - "abortcontroller-polyfill": "^1.7.3", - "cross-fetch": "^3.1.4", + "abortcontroller-polyfill": "^1.7.5", + "cross-fetch": "^4.0.0", "es6-promise": "^4.2.8", - "web3-core-helpers": "1.8.1" + "web3-core-helpers": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, + "node_modules/web3-providers-http/node_modules/cross-fetch": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.6.12" + } + }, "node_modules/web3-providers-ipc": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-ipc/-/web3-providers-ipc-1.8.1.tgz", - "integrity": "sha512-nw/W5nclvi+P2z2dYkLWReKLnocStflWqFl+qjtv0xn3MrUTyXMzSF0+61i77+16xFsTgzo4wS/NWIOVkR0EFA==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-providers-ipc/-/web3-providers-ipc-1.10.3.tgz", + "integrity": "sha512-vP5WIGT8FLnGRfswTxNs9rMfS1vCbMezj/zHbBe/zB9GauBRTYVrUo2H/hVrhLg8Ut7AbsKZ+tCJ4mAwpKi2hA==", + "license": "LGPL-3.0", "dependencies": { "oboe": "2.1.5", - "web3-core-helpers": "1.8.1" + "web3-core-helpers": "1.10.3" }, "engines": { "node": ">=8.0.0" } }, "node_modules/web3-providers-ws": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-1.8.1.tgz", - "integrity": "sha512-TNefIDAMpdx57+YdWpYZ/xdofS0P+FfKaDYXhn24ie/tH9G+AB+UBSOKnjN0KSadcRSCMBwGPRiEmNHPavZdsA==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-1.10.3.tgz", + "integrity": "sha512-/filBXRl48INxsh6AuCcsy4v5ndnTZ/p6bl67kmO9aK1wffv7CT++DrtclDtVMeDGCgB3van+hEf9xTAVXur7Q==", + "license": "LGPL-3.0", "dependencies": { "eventemitter3": "4.0.4", - "web3-core-helpers": "1.8.1", + "web3-core-helpers": "1.10.3", "websocket": "^1.0.32" }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/web3-shh": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-shh/-/web3-shh-1.8.1.tgz", - "integrity": "sha512-sqHgarnfcY2Qt3PYS4R6YveHrDy7hmL09yeLLHHCI+RKirmjLVqV0rc5LJWUtlbYI+kDoa5gbgde489M9ZAC0g==", - "hasInstallScript": true, - "dependencies": { - "web3-core": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-net": "1.8.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/web3-utils": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.8.1.tgz", - "integrity": "sha512-LgnM9p6V7rHHUGfpMZod+NST8cRfGzJ1BTXAyNo7A9cJX9LczBfSRxJp+U/GInYe9mby40t3v22AJdlELibnsQ==", - "dependencies": { - "bn.js": "^5.2.1", - "ethereum-bloom-filters": "^1.0.6", - "ethereumjs-util": "^7.1.0", - "ethjs-unit": "0.1.6", - "number-to-bn": "1.7.0", - "randombytes": "^2.1.0", - "utf8": "3.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/web3-utils/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "node_modules/web3-utils/node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webcrypto-core": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.7.5.tgz", - "integrity": "sha512-gaExY2/3EHQlRNNNVSrbG2Cg94Rutl7fAaKILS1w8ZDhGxdFOaw6EbCfHIxPy9vt/xwp5o0VQAx9aySPF6hU1A==", - "dev": true, - "dependencies": { - "@peculiar/asn1-schema": "^2.1.6", - "@peculiar/json-schema": "^1.1.12", - "asn1js": "^3.0.1", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" - } - }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "node_modules/websocket": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", - "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", - "dependencies": { - "bufferutil": "^4.0.1", - "debug": "^2.2.0", - "es5-ext": "^0.10.50", - "typedarray-to-buffer": "^3.1.5", - "utf-8-validate": "^5.0.2", - "yaeti": "^0.0.6" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/websocket/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/websocket/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==", - "dev": true - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", - "dev": true - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "peer": true - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xhr": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", - "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", - "dependencies": { - "global": "~4.4.0", - "is-function": "^1.0.1", - "parse-headers": "^2.0.0", - "xtend": "^4.0.0" - } - }, - "node_modules/xhr-request": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/xhr-request/-/xhr-request-1.1.0.tgz", - "integrity": "sha512-Y7qzEaR3FDtL3fP30k9wO/e+FBnBByZeybKOhASsGP30NIkRAAkKD/sCnLvgEfAIEC1rcmK7YG8f4oEnIrrWzA==", - "dependencies": { - "buffer-to-arraybuffer": "^0.0.5", - "object-assign": "^4.1.1", - "query-string": "^5.0.1", - "simple-get": "^2.7.0", - "timed-out": "^4.0.1", - "url-set-query": "^1.0.0", - "xhr": "^2.0.4" - } - }, - "node_modules/xhr-request-promise": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/xhr-request-promise/-/xhr-request-promise-0.1.3.tgz", - "integrity": "sha512-YUBytBsuwgitWtdRzXDDkWAXzhdGB8bYm0sSzMPZT7Z2MBjMSTHFsyCT1yCRATY+XC69DUrQraRAEgcoCRaIPg==", - "dependencies": { - "xhr-request": "^1.1.0" - } - }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yaeti": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", - "engines": { - "node": ">=0.10.32" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "peer": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs-unparser/node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "devOptional": 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", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@adobe/css-tools": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.0.1.tgz", - "integrity": "sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==", - "dev": true - }, - "@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@ardatan/relay-compiler": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz", - "integrity": "sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==", - "dev": true, - "requires": { - "@babel/core": "^7.14.0", - "@babel/generator": "^7.14.0", - "@babel/parser": "^7.14.0", - "@babel/runtime": "^7.0.0", - "@babel/traverse": "^7.14.0", - "@babel/types": "^7.0.0", - "babel-preset-fbjs": "^3.4.0", - "chalk": "^4.0.0", - "fb-watchman": "^2.0.0", - "fbjs": "^3.0.0", - "glob": "^7.1.1", - "immutable": "~3.7.6", - "invariant": "^2.2.4", - "nullthrows": "^1.1.1", - "relay-runtime": "12.0.0", - "signedsource": "^1.0.0", - "yargs": "^15.3.1" - }, - "dependencies": { - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "@ardatan/sync-fetch": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz", - "integrity": "sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==", - "dev": true, - "requires": { - "node-fetch": "^2.6.1" - } - }, - "@assemblyscript/loader": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.9.4.tgz", - "integrity": "sha512-HazVq9zwTVwGmqdwYzu7WyQ6FQVZ7SwET0KKQuKm55jD0IfUpZgN0OPIiZG3zV1iSrVYcN0bdwLRXI/VNCYsUA==" - }, - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.5.tgz", - "integrity": "sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==", - "dev": true - }, - "@babel/core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", - "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", - "dev": true, - "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-module-transforms": "^7.20.2", - "@babel/helpers": "^7.20.5", - "@babel/parser": "^7.20.5", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" - } - }, - "@babel/generator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", - "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", - "dev": true, - "requires": { - "@babel/types": "^7.20.5", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.20.0", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.5.tgz", - "integrity": "sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6" - } - }, - "@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", - "dev": true - }, - "@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", - "dev": true, - "requires": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", - "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", - "dev": true, - "requires": { - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-module-transforms": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", - "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.20.2", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.2" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", - "dev": true - }, - "@babel/helper-replace-supers": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", - "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/traverse": "^7.19.1", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-simple-access": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", - "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", - "dev": true, - "requires": { - "@babel/types": "^7.20.2" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "dev": true, - "requires": { - "@babel/types": "^7.20.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", - "dev": true - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", - "dev": true - }, - "@babel/helpers": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.6.tgz", - "integrity": "sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==", - "dev": true, - "requires": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - } - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "@babel/parser": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz", - "integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==", - "dev": true - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz", - "integrity": "sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.20.1", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.20.1" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-flow": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz", - "integrity": "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz", - "integrity": "sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", - "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.5.tgz", - "integrity": "sha512-WvpEIW9Cbj9ApF3yJCjIEEf1EiNJLtXagOrL5LNWEZOo3jv8pmPoYTSNJQvqej8OavVlgOoOPw6/htGZro6IkA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz", - "integrity": "sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", - "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz", - "integrity": "sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-flow-strip-types": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz", - "integrity": "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-flow": "^7.18.6" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.18.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", - "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", - "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-simple-access": "^7.19.4" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.5.tgz", - "integrity": "sha512-h7plkOmcndIUWXZFLgpbrh2+fXAi47zcUX7IrOQuZdLD0I0KvjJ6cvo3BEcAOsDOcZhVKGJqv07mkSqK0y2isQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-jsx": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz", - "integrity": "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-jsx": "^7.18.6", - "@babel/types": "^7.19.0" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", - "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/runtime": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz", - "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" - } - }, - "@babel/traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.5.tgz", - "integrity": "sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.5", - "@babel/types": "^7.20.5", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.5.tgz", - "integrity": "sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==", - "dev": true, - "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - } - }, - "@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "@cowprotocol/app-data": { - "version": "0.0.3-RC.0", - "resolved": "https://registry.npmjs.org/@cowprotocol/app-data/-/app-data-0.0.3-RC.0.tgz", - "integrity": "sha512-N1JpAIK9cTGnmI/Z682GtEN7LJYzc96klqHZMR58mqlsoZVobPpH9x7QDug03hTjE+81N0J7NwdiQ7y3lhKvoQ==", - "requires": { - "ajv": "^8.11.0" - } - }, - "@cowprotocol/contracts": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@cowprotocol/contracts/-/contracts-1.3.1.tgz", - "integrity": "sha512-p93xODog3XG5eSDU5od1ERvYf7YIyXd7USknKcsWnka5VN5mDDjqjCKTLw8EoZdrCIEpf6fGd8At2nv+MsvNqA==", - "requires": {} - }, - "@cowprotocol/cow-sdk": { - "version": "1.0.2-RC.0", - "resolved": "https://registry.npmjs.org/@cowprotocol/cow-sdk/-/cow-sdk-1.0.2-RC.0.tgz", - "integrity": "sha512-NOvO7WsjKyWQIonCyJpW926xxXkZz7OgRtBnnVAMLq/7r4lAEuqR4p7HsrSA4PNIrDyj2K6CJyXG9uERUV/Cqw==", - "requires": { - "@cowprotocol/app-data": "^0.0.3-RC.0", - "@cowprotocol/contracts": "^1.3.1", - "cross-fetch": "^3.1.5", - "ethers": "^5.5.3", - "graphql": "^16.3.0", - "graphql-request": "^4.3.0", - "ipfs-only-hash": "^4.0.0", - "loglevel": "^1.8.0", - "multiformats": "^9.6.4", - "paraswap": "^5.2.0", - "paraswap-core": "^1.0.2" - } - }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "devOptional": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "dependencies": { - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "devOptional": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - } - } - }, - "@eslint/eslintrc": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz", - "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "@ethereumjs/common": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-2.5.0.tgz", - "integrity": "sha512-DEHjW6e38o+JmB/NO3GZBpW4lpaiBpkFgXF6jLcJ6gETBYpEyaA5nTimsWBUJR3Vmtm/didUEbNjajskugZORg==", - "requires": { - "crc-32": "^1.2.0", - "ethereumjs-util": "^7.1.1" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - } - } - } - }, - "@ethereumjs/tx": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.3.2.tgz", - "integrity": "sha512-6AaJhwg4ucmwTvw/1qLaZUX5miWrwZ4nLOUsKyb/HtzS3BMw/CasKhdi1ims9mBKeK9sOJCH4qGKOBGyJCeeog==", - "requires": { - "@ethereumjs/common": "^2.5.0", - "ethereumjs-util": "^7.1.2" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - } - } - } - }, - "@ethersproject/abi": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", - "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/abstract-provider": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", - "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0" - } - }, - "@ethersproject/abstract-signer": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", - "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/address": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", - "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/rlp": "^5.7.0" - } - }, - "@ethersproject/base64": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", - "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", - "requires": { - "@ethersproject/bytes": "^5.7.0" - } - }, - "@ethersproject/basex": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", - "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/bignumber": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", - "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "bn.js": "^5.2.1" - } - }, - "@ethersproject/bytes": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", - "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/constants": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", - "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", - "requires": { - "@ethersproject/bignumber": "^5.7.0" - } - }, - "@ethersproject/contracts": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", - "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0" - } - }, - "@ethersproject/hash": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", - "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/hdnode": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", - "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/json-wallets": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", - "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" - } - }, - "@ethersproject/keccak256": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", - "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "js-sha3": "0.8.0" - } - }, - "@ethersproject/logger": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", - "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==" - }, - "@ethersproject/networks": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", - "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/pbkdf2": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", - "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/sha2": "^5.7.0" - } - }, - "@ethersproject/properties": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz", - "integrity": "sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/providers": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz", - "integrity": "sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bech32": "1.1.4", - "ws": "7.4.6" - } - }, - "@ethersproject/random": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz", - "integrity": "sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/rlp": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz", - "integrity": "sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/sha2": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz", - "integrity": "sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "hash.js": "1.1.7" - } - }, - "@ethersproject/signing-key": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz", - "integrity": "sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "bn.js": "^5.2.1", - "elliptic": "6.5.4", - "hash.js": "1.1.7" - } - }, - "@ethersproject/solidity": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz", - "integrity": "sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/strings": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz", - "integrity": "sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/transactions": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz", - "integrity": "sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0" - } - }, - "@ethersproject/units": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.7.0.tgz", - "integrity": "sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/wallet": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.7.0.tgz", - "integrity": "sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/json-wallets": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/web": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz", - "integrity": "sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==", - "requires": { - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/wordlists": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz", - "integrity": "sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@graphql-codegen/cli": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-2.6.2.tgz", - "integrity": "sha512-UO75msoVgvLEvfjCezM09cQQqp32+mR8Ma1ACsBpr7nroFvHbgcu2ulx1cMovg4sxDBCsvd9Eq/xOOMpARUxtw==", - "dev": true, - "requires": { - "@graphql-codegen/core": "2.5.1", - "@graphql-codegen/plugin-helpers": "^2.4.1", - "@graphql-tools/apollo-engine-loader": "^7.0.5", - "@graphql-tools/code-file-loader": "^7.0.6", - "@graphql-tools/git-loader": "^7.0.5", - "@graphql-tools/github-loader": "^7.0.5", - "@graphql-tools/graphql-file-loader": "^7.0.5", - "@graphql-tools/json-file-loader": "^7.1.2", - "@graphql-tools/load": "^7.3.0", - "@graphql-tools/prisma-loader": "^7.0.6", - "@graphql-tools/url-loader": "^7.0.11", - "@graphql-tools/utils": "^8.1.1", - "ansi-escapes": "^4.3.1", - "chalk": "^4.1.0", - "change-case-all": "1.0.14", - "chokidar": "^3.5.2", - "common-tags": "^1.8.0", - "cosmiconfig": "^7.0.0", - "debounce": "^1.2.0", - "dependency-graph": "^0.11.0", - "detect-indent": "^6.0.0", - "glob": "^7.1.6", - "globby": "^11.0.4", - "graphql-config": "^4.1.0", - "inquirer": "^8.0.0", - "is-glob": "^4.0.1", - "json-to-pretty-yaml": "^1.2.2", - "latest-version": "5.1.0", - "listr": "^0.14.3", - "listr-update-renderer": "^0.5.0", - "log-symbols": "^4.0.0", - "minimatch": "^4.0.0", - "mkdirp": "^1.0.4", - "string-env-interpolation": "^1.0.1", - "ts-log": "^2.2.3", - "tslib": "~2.3.0", - "valid-url": "^1.0.9", - "wrap-ansi": "^7.0.0", - "yaml": "^1.10.0", - "yargs": "^17.0.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - } - } - }, - "@graphql-codegen/core": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.5.1.tgz", - "integrity": "sha512-alctBVl2hMnBXDLwkgmnFPrZVIiBDsWJSmxJcM4GKg1PB23+xuov35GE47YAyAhQItE1B1fbYnbb1PtGiDZ4LA==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^2.4.1", - "@graphql-tools/schema": "^8.1.2", - "@graphql-tools/utils": "^8.1.1", - "tslib": "~2.3.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - } - } - }, - "@graphql-codegen/plugin-helpers": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz", - "integrity": "sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==", - "dev": true, - "requires": { - "@graphql-tools/utils": "^8.8.0", - "change-case-all": "1.0.14", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - } - }, - "@graphql-codegen/schema-ast": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-2.6.0.tgz", - "integrity": "sha512-6wDVX/mKLXaJ3JwSflRsDJa6/+uEJ0Lg3mOQp3Ao2/jw1mijqAKjYgh1e1rcG+vzXpEmk29TC2ujsqAkKqzgMA==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/utils": "^8.8.0", - "tslib": "~2.4.0" - }, - "dependencies": { - "@graphql-codegen/plugin-helpers": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.1.tgz", - "integrity": "sha512-+V1WK4DUhejVSbkZrAsyv9gA4oQABVrtEUkT7vWq7gSf7Ln6OEM59lDUDsjp5wpLPTBIDJANbAe3qEd+iCB3Ow==", - "dev": true, - "requires": { - "@graphql-tools/utils": "^8.8.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - } - }, - "change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", - "dev": true, - "requires": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - } - } - }, - "@graphql-codegen/typescript": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.5.1.tgz", - "integrity": "sha512-D/9V2VfVIE4Mu5UiMGQtxyFU5xe1ZkAZi8g/IsqymW8rqlhTwsGhtk4JR55qPfOYxR8G94RJSJpzgNakRneytw==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-codegen/schema-ast": "^2.4.1", - "@graphql-codegen/visitor-plugin-common": "2.9.1", - "auto-bind": "~4.0.0", - "tslib": "~2.4.0" - } - }, - "@graphql-codegen/typescript-graphql-request": { - "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.4.0" - }, - "dependencies": { - "@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", - "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", - "dev": true, - "requires": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", - "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", - "dev": true, - "requires": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - } - }, - "change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", - "dev": true, - "requires": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, - "tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true - } - } - }, - "@graphql-codegen/visitor-plugin-common": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz", - "integrity": "sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^2.7.2", - "@graphql-tools/optimize": "^1.3.0", - "@graphql-tools/relay-operation-optimizer": "^6.5.0", - "@graphql-tools/utils": "^8.8.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.14", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "tslib": "~2.4.0" - }, - "dependencies": { - "@graphql-codegen/plugin-helpers": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz", - "integrity": "sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==", - "dev": true, - "requires": { - "@graphql-tools/utils": "^8.8.0", - "change-case-all": "1.0.14", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - } - }, - "tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true - } - } - } - } - }, - "@graphql-codegen/typescript-operations": { - "version": "2.5.10", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.10.tgz", - "integrity": "sha512-N5H7JhcMRzjM2KdvCitqkOd4hphzD9q3NVWGLvBe3Xgqx5Cs3Y4GUcCJbRolSXdQcYBVgZpLZrUe/qoxwYyfeg==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-codegen/typescript": "^2.8.5", - "@graphql-codegen/visitor-plugin-common": "2.13.5", - "auto-bind": "~4.0.0", - "tslib": "~2.4.0" - }, - "dependencies": { - "@graphql-codegen/plugin-helpers": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.1.tgz", - "integrity": "sha512-+V1WK4DUhejVSbkZrAsyv9gA4oQABVrtEUkT7vWq7gSf7Ln6OEM59lDUDsjp5wpLPTBIDJANbAe3qEd+iCB3Ow==", - "dev": true, - "requires": { - "@graphql-tools/utils": "^8.8.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - } - }, - "@graphql-codegen/typescript": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.8.5.tgz", - "integrity": "sha512-5w3zNlnNKM9tI5ZRbhESmsJ4G16rSiFmNQX6Ot56fmcYUC6bnAt5fqvSqs2C+8fVGIIjeWuwjQA5Xn1VkaLY8A==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-codegen/schema-ast": "^2.6.0", - "@graphql-codegen/visitor-plugin-common": "2.13.5", - "auto-bind": "~4.0.0", - "tslib": "~2.4.0" - } - }, - "@graphql-codegen/visitor-plugin-common": { - "version": "2.13.5", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.5.tgz", - "integrity": "sha512-OV/mGnSvB/WkEqFu/3bPkAPDNRGRB3xONww5+06CObl383yGrasqM04shYYK4cpcCn9PVWFe8u0SLSEeGmMVrg==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/optimize": "^1.3.0", - "@graphql-tools/relay-operation-optimizer": "^6.5.0", - "@graphql-tools/utils": "^8.8.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.15", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "tslib": "~2.4.0" - } - }, - "change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", - "dev": true, - "requires": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - } - } - }, - "@graphql-codegen/visitor-plugin-common": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.9.1.tgz", - "integrity": "sha512-j9eGOSGt+sJcwv0ijhZiQ2cF/0ponscekNVoF+vHdOT4RB0qgOQxykPBk6EbKxIHECnkdV8ARdPVTA21A93/QQ==", - "dev": true, - "requires": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-tools/optimize": "^1.0.1", - "@graphql-tools/relay-operation-optimizer": "^6.4.14", - "@graphql-tools/utils": "^8.3.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.14", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "tslib": "~2.4.0" - } - }, - "@graphql-tools/apollo-engine-loader": { - "version": "7.3.21", - "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.3.21.tgz", - "integrity": "sha512-mCf5CRZ64Cj4pmXpcgSJDkHj93owntvAmyHpY651yAmQKYJ5Kltrw6rreo2VJr1Eu4BWdHqcMS++NLq5GPGewg==", - "dev": true, - "requires": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/utils": "9.1.3", - "@whatwg-node/fetch": "^0.5.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/batch-execute": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.5.14.tgz", - "integrity": "sha512-m6yXqqmFAH2V5JuSIC/geiGLBQA1Y6RddOJfUtkc9Z7ttkULRCd1W39TpYS6IlrCwYyTj+klO1/kdWiny38f5g==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "dataloader": "2.1.0", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/code-file-loader": { - "version": "7.3.15", - "resolved": "https://registry.npmjs.org/@graphql-tools/code-file-loader/-/code-file-loader-7.3.15.tgz", - "integrity": "sha512-cF8VNc/NANTyVSIK8BkD/KSXRF64DvvomuJ0evia7tJu4uGTXgDjimTMWsTjKRGOOBSTEbL6TA8e4DdIYq6Udw==", - "dev": true, - "requires": { - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/delegate": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-9.0.21.tgz", - "integrity": "sha512-SM8tFeq6ogFGhIxDE82WTS44/3IQ/wz9QksAKT7xWkcICQnyR9U6Qyt+W7VGnHiybqNsVK3kHNNS/i4KGSF85g==", - "dev": true, - "requires": { - "@graphql-tools/batch-execute": "8.5.14", - "@graphql-tools/executor": "0.0.11", - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "dataloader": "2.1.0", - "tslib": "~2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - } - }, - "@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", - "dev": true, - "requires": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - } - }, - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/executor": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor/-/executor-0.0.11.tgz", - "integrity": "sha512-GjtXW0ZMGZGKad6A1HXFPArkfxE0AIpznusZuQdy4laQx+8Ut3Zx8SAFJNnDfZJ2V5kU29B5Xv3Fr0/DiMBHOQ==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "@graphql-typed-document-node/core": "3.1.1", - "@repeaterjs/repeater": "3.0.4", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/executor-graphql-ws": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-0.0.5.tgz", - "integrity": "sha512-1bJfZdSBPCJWz1pJ5g/YHMtGt6YkNRDdmqNQZ8v+VlQTNVfuBpY2vzj15uvf5uDrZLg2MSQThrKlL8av4yFpsA==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "@repeaterjs/repeater": "3.0.4", - "@types/ws": "^8.0.0", - "graphql-ws": "5.11.2", - "isomorphic-ws": "5.0.0", - "tslib": "^2.4.0", - "ws": "8.11.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "requires": {} - } - } - }, - "@graphql-tools/executor-http": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-http/-/executor-http-0.0.8.tgz", - "integrity": "sha512-Y0WzbBW2dDm68EqjRO7eaCC38H6mNFUCcy8ivwnv0hon/N4GjQJhrR0cApJh/xqn/YqCY0Sn2ScmdGVuSdaCcA==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "@repeaterjs/repeater": "3.0.4", - "@whatwg-node/fetch": "0.5.4", - "dset": "3.1.2", - "extract-files": "^11.0.0", - "meros": "1.2.1", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/executor-legacy-ws": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-0.0.5.tgz", - "integrity": "sha512-j2ZQVTI4rKIT41STzLPK206naYDhHxmGHot0siJKBKX1vMqvxtWBqvL66v7xYEOaX79wJrFc8l6oeURQP2LE6g==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "@types/ws": "^8.0.0", - "isomorphic-ws": "5.0.0", - "tslib": "^2.4.0", - "ws": "8.11.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "requires": {} - } - } - }, - "@graphql-tools/git-loader": { - "version": "7.2.15", - "resolved": "https://registry.npmjs.org/@graphql-tools/git-loader/-/git-loader-7.2.15.tgz", - "integrity": "sha512-1d5HmeuxhSNjQ2+k2rfKgcKcnZEC6H5FM2pY5lSXHMv8VdBELZd7pYDs5/JxoZarDVYfYOJ5xTeVzxf+Du3VNg==", - "dev": true, - "requires": { - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "is-glob": "4.0.3", - "micromatch": "^4.0.4", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/github-loader": { - "version": "7.3.22", - "resolved": "https://registry.npmjs.org/@graphql-tools/github-loader/-/github-loader-7.3.22.tgz", - "integrity": "sha512-JE5F/ObbwknO7+gDfeuKAZtLS831WV8/SsLzQLMGY0hdgTbsAg2/xziAGprNToK4GMSD7ygCer9ZryvxBKMwbQ==", - "dev": true, - "requires": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/graphql-tag-pluck": "7.4.2", - "@graphql-tools/utils": "9.1.3", - "@whatwg-node/fetch": "^0.5.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/graphql-file-loader": { - "version": "7.5.13", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.13.tgz", - "integrity": "sha512-VWFVnw3aB6sykGfpb/Dn3sxQswqvp2FsVwDy8ubH1pgLuxlDuurhHjRHvMG2+p7IaHC7q8T3Vk/rLtZftrwOBQ==", - "dev": true, - "requires": { - "@graphql-tools/import": "6.7.14", - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/graphql-tag-pluck": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.4.2.tgz", - "integrity": "sha512-SXM1wR5TExrxocQTxZK5r74jTbg8GxSYLY3mOPCREGz6Fu7PNxMxfguUzGUAB43Mf44Dn8oVztzd2eitv2Qgww==", - "dev": true, - "requires": { - "@babel/parser": "^7.16.8", - "@babel/plugin-syntax-import-assertions": "7.20.0", - "@babel/traverse": "^7.16.8", - "@babel/types": "^7.16.8", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/import": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/import/-/import-6.7.14.tgz", - "integrity": "sha512-lRX/MHM0Km497kg4VXMvtV1DeG/AfPJFO2ovaL0kDujWEdyCsWxsB4whY7nPeiNaPA/nT3mQ8MU7yFzVjogF/Q==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "resolve-from": "5.0.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/json-file-loader": { - "version": "7.4.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/json-file-loader/-/json-file-loader-7.4.14.tgz", - "integrity": "sha512-AD9v3rN08wvVqgbrUSiHa8Ztrlk3EgwctcxuNE5qm47zPNL4gLaJ7Tw/KlGOR7Cm+pjlQylJHMUKNfaRLPZ0og==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/load": { - "version": "7.8.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/load/-/load-7.8.8.tgz", - "integrity": "sha512-gMuQdO2jXmI0BNUc1MafxRQTWVMUtuH500pZAQtOdDdNJppV7lJdY6mMhITQ2qnhYDuMrcZPHhIkcftyQfkgUg==", - "dev": true, - "requires": { - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "p-limit": "3.1.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - } - }, - "@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", - "dev": true, - "requires": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - } - }, - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/merge": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.1.tgz", - "integrity": "sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg==", - "dev": true, - "requires": { - "@graphql-tools/utils": "8.9.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", - "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/optimize": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.3.1.tgz", - "integrity": "sha512-5j5CZSRGWVobt4bgRRg7zhjPiSimk+/zIuColih8E8DxuFOaJ+t0qu7eZS5KXWBkjcd4BPNuhUPpNlEmHPqVRQ==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "@graphql-tools/prisma-loader": { - "version": "7.2.50", - "resolved": "https://registry.npmjs.org/@graphql-tools/prisma-loader/-/prisma-loader-7.2.50.tgz", - "integrity": "sha512-tSZFtx5GP5LBHmChwVCkvFw9oCwc0QVP2xR/Pyp61c3Fb2gyqzFq/8lnbcmxR+Oi9/Cwt3JsSc4Jkg8jBi5HLw==", - "dev": true, - "requires": { - "@graphql-tools/url-loader": "7.16.29", - "@graphql-tools/utils": "9.1.3", - "@types/js-yaml": "^4.0.0", - "@types/json-stable-stringify": "^1.0.32", - "@types/jsonwebtoken": "^8.5.0", - "chalk": "^4.1.0", - "debug": "^4.3.1", - "dotenv": "^16.0.0", - "graphql-request": "^5.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "isomorphic-fetch": "^3.0.0", - "js-yaml": "^4.0.0", - "json-stable-stringify": "^1.0.1", - "jsonwebtoken": "^9.0.0", - "lodash": "^4.17.20", - "scuid": "^1.1.0", - "tslib": "^2.4.0", - "yaml-ast-parser": "^0.0.43" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "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==", - "dev": true - }, - "graphql-request": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-5.1.0.tgz", - "integrity": "sha512-0OeRVYigVwIiXhNmqnPDt+JhMzsjinxHE7TVy3Lm6jUzav0guVcL0lfSbi6jVTRAxcbwgyr6yrZioSHxf9gHzw==", - "dev": true, - "requires": { - "@graphql-typed-document-node/core": "^3.1.1", - "cross-fetch": "^3.1.5", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - } - } - } - }, - "@graphql-tools/relay-operation-optimizer": { - "version": "6.5.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.14.tgz", - "integrity": "sha512-RAy1fMfXig9X3gIkYnfEmv0mh20vZuAgWDq+zf1MrrsCAP364B+DKrBjLwn3D+4e0PMTlqwmqR0JB5t1VtZn2w==", - "dev": true, - "requires": { - "@ardatan/relay-compiler": "12.0.0", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/schema": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.5.1.tgz", - "integrity": "sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg==", - "dev": true, - "requires": { - "@graphql-tools/merge": "8.3.1", - "@graphql-tools/utils": "8.9.0", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.9.0.tgz", - "integrity": "sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-tools/url-loader": { - "version": "7.16.29", - "resolved": "https://registry.npmjs.org/@graphql-tools/url-loader/-/url-loader-7.16.29.tgz", - "integrity": "sha512-e7c0rLH4BIaYxOgglHhWbupTn3JZFXYIHXpY+T1CcTF3nQQCaKy8o59+R2AjtEgx3Az1WNahGn4xgkKUxUwCBw==", - "dev": true, - "requires": { - "@ardatan/sync-fetch": "0.0.1", - "@graphql-tools/delegate": "9.0.21", - "@graphql-tools/executor-graphql-ws": "0.0.5", - "@graphql-tools/executor-http": "0.0.8", - "@graphql-tools/executor-legacy-ws": "0.0.5", - "@graphql-tools/utils": "9.1.3", - "@graphql-tools/wrap": "9.2.23", - "@types/ws": "^8.0.0", - "@whatwg-node/fetch": "^0.5.0", - "isomorphic-ws": "5.0.0", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.11", - "ws": "8.11.0" - }, - "dependencies": { - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "requires": {} - } - } - }, - "@graphql-tools/utils": { - "version": "8.13.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.13.1.tgz", - "integrity": "sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "@graphql-tools/wrap": { - "version": "9.2.23", - "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-9.2.23.tgz", - "integrity": "sha512-R+ar8lHdSnRQtfvkwQMOkBRlYLcBPdmFzZPiAj+tL9Nii4VNr4Oub37jcHiPBvRZSdKa9FHcKq5kKSQcbg1xuQ==", - "dev": true, - "requires": { - "@graphql-tools/delegate": "9.0.21", - "@graphql-tools/schema": "9.0.12", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - }, - "dependencies": { - "@graphql-tools/merge": { - "version": "8.3.14", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.14.tgz", - "integrity": "sha512-zV0MU1DnxJLIB0wpL4N3u21agEiYFsjm6DI130jqHpwF0pR9HkF+Ni65BNfts4zQelP0GjkHltG+opaozAJ1NA==", - "dev": true, - "requires": { - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0" - } - }, - "@graphql-tools/schema": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.12.tgz", - "integrity": "sha512-DmezcEltQai0V1y96nwm0Kg11FDS/INEFekD4nnVgzBqawvznWqK6D6bujn+cw6kivoIr3Uq//QmU/hBlBzUlQ==", - "dev": true, - "requires": { - "@graphql-tools/merge": "8.3.14", - "@graphql-tools/utils": "9.1.3", - "tslib": "^2.4.0", - "value-or-promise": "1.0.11" - } - }, - "@graphql-tools/utils": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.1.3.tgz", - "integrity": "sha512-bbJyKhs6awp1/OmP+WKA1GOyu9UbgZGkhIj5srmiMGLHohEOKMjW784Sk0BZil1w2x95UPu0WHw6/d/HVCACCg==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - } - } - }, - "@graphql-typed-document-node/core": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.1.tgz", - "integrity": "sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==", - "dev": true, - "requires": {} - }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "dependencies": { - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@iarna/toml": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", - "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==", - "dev": true - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - } - } - }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true - }, - "@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0" - } - }, - "@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "dev": true, - "requires": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", - "micromatch": "^4.0.4", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "dev": true, - "requires": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - } - }, - "@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - } - }, - "@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - } - }, - "@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", - "dev": true, - "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" - } - }, - "@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", - "dev": true, - "requires": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" - } - }, - "@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", - "dev": true, - "requires": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - } - }, - "@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "dev": true, - "requires": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" - } - }, - "@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - } - }, - "@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "devOptional": true - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "devOptional": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "@metamask/eth-sig-util": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz", - "integrity": "sha512-tghyZKLHZjcdlDqCA3gNZmLeR0XvOE9U1qoQO9ohyAZT6Pya+H9vkBPcsyXytmYLNgVoin7CKCmweo/R43V+tQ==", - "peer": true, - "requires": { - "ethereumjs-abi": "^0.6.8", - "ethereumjs-util": "^6.2.1", - "ethjs-util": "^0.1.6", - "tweetnacl": "^1.0.3", - "tweetnacl-util": "^0.15.1" - } - }, - "@multiformats/base-x": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@multiformats/base-x/-/base-x-4.0.1.tgz", - "integrity": "sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==" - }, - "@noble/hashes": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.2.tgz", - "integrity": "sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA==", - "peer": true - }, - "@noble/secp256k1": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.3.tgz", - "integrity": "sha512-T04e4iTurVy7I8Sw4+c5OSN9/RkPlo1uKxAomtxQNLq8j1uPAqnsqG1bqvY3Jv7c13gyr6dui0zmh/I3+f/JaQ==", - "peer": true - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@nomicfoundation/ethereumjs-block": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-4.0.0.tgz", - "integrity": "sha512-bk8uP8VuexLgyIZAHExH1QEovqx0Lzhc9Ntm63nCRKLHXIZkobaFaeCVwTESV7YkPKUk7NiK11s8ryed4CS9yA==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-blockchain": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-6.0.0.tgz", - "integrity": "sha512-pLFEoea6MWd81QQYSReLlLfH7N9v7lH66JC/NMPN848ySPPQA5renWnE7wPByfQFzNrPBuDDRFFULMDmj1C0xw==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-ethash": "^2.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "abstract-level": "^1.0.3", - "debug": "^4.3.3", - "ethereum-cryptography": "0.1.3", - "level": "^8.0.0", - "lru-cache": "^5.1.1", - "memory-level": "^1.0.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-common": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-3.0.0.tgz", - "integrity": "sha512-WS7qSshQfxoZOpHG/XqlHEGRG1zmyjYrvmATvc4c62+gZXgre1ymYP8ZNgx/3FyZY0TWe9OjFlKOfLqmgOeYwA==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "crc-32": "^1.2.0" - } - }, - "@nomicfoundation/ethereumjs-ethash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-2.0.0.tgz", - "integrity": "sha512-WpDvnRncfDUuXdsAXlI4lXbqUDOA+adYRQaEezIkxqDkc+LDyYDbd/xairmY98GnQzo1zIqsIL6GB5MoMSJDew==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "abstract-level": "^1.0.3", - "bigint-crypto-utils": "^3.0.23", - "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-evm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-1.0.0.tgz", - "integrity": "sha512-hVS6qRo3V1PLKCO210UfcEQHvlG7GqR8iFzp0yyjTg2TmJQizcChKgWo8KFsdMw6AyoLgLhHGHw4HdlP8a4i+Q==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@types/async-eventemitter": "^0.2.1", - "async-eventemitter": "^0.2.4", - "debug": "^4.3.3", - "ethereum-cryptography": "0.1.3", - "mcl-wasm": "^0.7.1", - "rustbn.js": "~0.2.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-rlp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-4.0.0.tgz", - "integrity": "sha512-GaSOGk5QbUk4eBP5qFbpXoZoZUj/NrW7MRa0tKY4Ew4c2HAS0GXArEMAamtFrkazp0BO4K5p2ZCG3b2FmbShmw==", - "peer": true - }, - "@nomicfoundation/ethereumjs-statemanager": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-1.0.0.tgz", - "integrity": "sha512-jCtqFjcd2QejtuAMjQzbil/4NHf5aAWxUc+CvS0JclQpl+7M0bxMofR2AJdtz+P3u0ke2euhYREDiE7iSO31vQ==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "debug": "^4.3.3", - "ethereum-cryptography": "0.1.3", - "functional-red-black-tree": "^1.0.1" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-trie": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-5.0.0.tgz", - "integrity": "sha512-LIj5XdE+s+t6WSuq/ttegJzZ1vliwg6wlb+Y9f4RlBpuK35B9K02bO7xU+E6Rgg9RGptkWd6TVLdedTI4eNc2A==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "ethereum-cryptography": "0.1.3", - "readable-stream": "^3.6.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-tx": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-4.0.0.tgz", - "integrity": "sha512-Gg3Lir2lNUck43Kp/3x6TfBNwcWC9Z1wYue9Nz3v4xjdcv6oDW9QSMJxqsKw9QEGoBBZ+gqwpW7+F05/rs/g1w==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-util": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-8.0.0.tgz", - "integrity": "sha512-2emi0NJ/HmTG+CGY58fa+DQuAoroFeSH9gKu9O6JnwTtlzJtgfTixuoOqLEgyyzZVvwfIpRueuePb8TonL1y+A==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-rlp": "^4.0.0-beta.2", - "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/ethereumjs-vm": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-6.0.0.tgz", - "integrity": "sha512-JMPxvPQ3fzD063Sg3Tp+UdwUkVxMoo1uML6KSzFhMH3hoQi/LMuXBoEHAoW83/vyNS9BxEe6jm6LmT5xdeEJ6w==", - "peer": true, - "requires": { - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-blockchain": "^6.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-evm": "^1.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-statemanager": "^1.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@types/async-eventemitter": "^0.2.1", - "async-eventemitter": "^0.2.4", - "debug": "^4.3.3", - "ethereum-cryptography": "0.1.3", - "functional-red-black-tree": "^1.0.1", - "mcl-wasm": "^0.7.1", - "rustbn.js": "~0.2.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "@nomicfoundation/solidity-analyzer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.0.tgz", - "integrity": "sha512-xGWAiVCGOycvGiP/qrlf9f9eOn7fpNbyJygcB0P21a1MDuVPlKt0Srp7rvtBEutYQ48ouYnRXm33zlRnlTOPHg==", - "peer": true, - "requires": { - "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.0", - "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.0", - "@nomicfoundation/solidity-analyzer-freebsd-x64": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.0", - "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": "0.1.0", - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.0" - } - }, - "@nomicfoundation/solidity-analyzer-darwin-arm64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.0.tgz", - "integrity": "sha512-vEF3yKuuzfMHsZecHQcnkUrqm8mnTWfJeEVFHpg+cO+le96xQA4lAJYdUan8pXZohQxv1fSReQsn4QGNuBNuCw==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-darwin-x64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.0.tgz", - "integrity": "sha512-dlHeIg0pTL4dB1l9JDwbi/JG6dHQaU1xpDK+ugYO8eJ1kxx9Dh2isEUtA4d02cQAl22cjOHTvifAk96A+ItEHA==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-freebsd-x64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.0.tgz", - "integrity": "sha512-WFCZYMv86WowDA4GiJKnebMQRt3kCcFqHeIomW6NMyqiKqhK1kIZCxSLDYsxqlx396kKLPN1713Q1S8tu68GKg==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.0.tgz", - "integrity": "sha512-DTw6MNQWWlCgc71Pq7CEhEqkb7fZnS7oly13pujs4cMH1sR0JzNk90Mp1zpSCsCs4oKan2ClhMlLKtNat/XRKQ==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.0.tgz", - "integrity": "sha512-wUpUnR/3GV5Da88MhrxXh/lhb9kxh9V3Jya2NpBEhKDIRCDmtXMSqPMXHZmOR9DfCwCvG6vLFPr/+YrPCnUN0w==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.0.tgz", - "integrity": "sha512-lR0AxK1x/MeKQ/3Pt923kPvwigmGX3OxeU5qNtQ9pj9iucgk4PzhbS3ruUeSpYhUxG50jN4RkIGwUMoev5lguw==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-linux-x64-musl": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.0.tgz", - "integrity": "sha512-A1he/8gy/JeBD3FKvmI6WUJrGrI5uWJNr5Xb9WdV+DK0F8msuOqpEByLlnTdLkXMwW7nSl3awvLezOs9xBHJEg==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.0.tgz", - "integrity": "sha512-7x5SXZ9R9H4SluJZZP8XPN+ju7Mx+XeUMWZw7ZAqkdhP5mK19I4vz3x0zIWygmfE8RT7uQ5xMap0/9NPsO+ykw==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.0.tgz", - "integrity": "sha512-m7w3xf+hnE774YRXu+2mGV7RiF3QJtUoiYU61FascCkQhX3QMQavh7saH/vzb2jN5D24nT/jwvaHYX/MAM9zUw==", - "optional": true, - "peer": true - }, - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.0.tgz", - "integrity": "sha512-xCuybjY0sLJQnJhupiFAXaek2EqF0AP0eBjgzaalPXSNvCEN6ZYHvUzdA50ENDVeSYFXcUsYf3+FsD3XKaeptA==", - "optional": true, - "peer": true - }, - "@openzeppelin/contracts": { - "version": "3.4.2-solc-0.7", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.2-solc-0.7.tgz", - "integrity": "sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA==" - }, - "@peculiar/asn1-schema": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.3.tgz", - "integrity": "sha512-6GptMYDMyWBHTUKndHaDsRZUO/XMSgIns2krxcm2L7SEExRHwawFvSwNBhqNPR9HJwv3MruAiF1bhN0we6j6GQ==", - "dev": true, - "requires": { - "asn1js": "^3.0.5", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" - } - }, - "@peculiar/json-schema": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", - "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", - "dev": true, - "requires": { - "tslib": "^2.0.0" - } - }, - "@peculiar/webcrypto": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.4.1.tgz", - "integrity": "sha512-eK4C6WTNYxoI7JOabMoZICiyqRRtJB220bh0Mbj5RwRycleZf9BPyZoxsTvpP0FpmVS2aS13NKOuh5/tN3sIRw==", - "dev": true, - "requires": { - "@peculiar/asn1-schema": "^2.3.0", - "@peculiar/json-schema": "^1.1.12", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.1", - "webcrypto-core": "^1.7.4" - } - }, - "@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "requires": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "@repeaterjs/repeater": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.0.4.tgz", - "integrity": "sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA==", - "dev": true - }, - "@samverschueren/stream-to-observable": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz", - "integrity": "sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==", - "dev": true, - "requires": { - "any-observable": "^0.3.0" - } - }, - "@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", - "peer": true - }, - "@scure/bip32": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.0.tgz", - "integrity": "sha512-ftTW3kKX54YXLCxH6BB7oEEoJfoE2pIgw7MINKAs5PsS6nqKPuKk1haTF/EuHmYqG330t5GSrdmtRuHaY1a62Q==", - "peer": true, - "requires": { - "@noble/hashes": "~1.1.1", - "@noble/secp256k1": "~1.6.0", - "@scure/base": "~1.1.0" - } - }, - "@scure/bip39": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.0.tgz", - "integrity": "sha512-pwrPOS16VeTKg98dYXQyIjJEcWfz7/1YJIwxUEPFfQPtc86Ym/1sVgQ2RLoD43AazMk2l/unK4ITySSpW2+82w==", - "peer": true, - "requires": { - "@noble/hashes": "~1.1.1", - "@scure/base": "~1.1.0" - } - }, - "@sentry/core": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz", - "integrity": "sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg==", - "peer": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sentry/hub": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz", - "integrity": "sha512-2tYrGnzb1gKz2EkMDQcfLrDTvmGcQPuWxLnJKXJvYTQDGLlEvi2tWz1VIHjunmOvJrB5aIQLhm+dcMRwFZDCqQ==", - "peer": true, - "requires": { - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sentry/minimal": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.30.0.tgz", - "integrity": "sha512-BwWb/owZKtkDX+Sc4zCSTNcvZUq7YcH3uAVlmh/gtR9rmUvbzAA3ewLuB3myi4wWRAMEtny6+J/FN/x+2wn9Xw==", - "peer": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sentry/node": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-5.30.0.tgz", - "integrity": "sha512-Br5oyVBF0fZo6ZS9bxbJZG4ApAjRqAnqFFurMVJJdunNb80brh7a5Qva2kjhm+U6r9NJAB5OmDyPkA1Qnt+QVg==", - "peer": true, - "requires": { - "@sentry/core": "5.30.0", - "@sentry/hub": "5.30.0", - "@sentry/tracing": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "cookie": "^0.4.1", - "https-proxy-agent": "^5.0.0", - "lru_map": "^0.3.3", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sentry/tracing": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-5.30.0.tgz", - "integrity": "sha512-dUFowCr0AIMwiLD7Fs314Mdzcug+gBVo/+NCMyDw8tFxJkwWAKl7Qa2OZxLQ0ZHjakcj1hNKfCQJ9rhyfOl4Aw==", - "peer": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "peer": true - }, - "@sentry/utils": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.30.0.tgz", - "integrity": "sha512-zaYmoH0NWWtvnJjC9/CBseXMtKHm/tm40sz3YfJRxeQjyzRqNQPgivpd9R/oDJCYj999mzdW382p/qi2ypjLww==", - "peer": true, - "requires": { - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "peer": true - } - } - }, - "@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", - "dev": true - }, - "@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "dev": true, - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1.7.0" - } - }, - "@swapr/core": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@swapr/core/-/core-0.3.20.tgz", - "integrity": "sha512-wUBRsb+Oahm4HUHBP1Ou/X3wY+6gLKjj0Zz6+G5nqDmtkpQhYSGRQvmtNZXbVKFtQAsNlLo2mGNF1T1haMOWSQ==", - "requires": { - "typescript": "^3.9.5" - }, - "dependencies": { - "typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==" - } - } - }, - "@swapr/periphery": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/@swapr/periphery/-/periphery-0.3.23.tgz", - "integrity": "sha512-6ihqkdWkiEaVJ+hM4vBreoMA9er6RM+iD8T54tOfCvcR50aWbgRlfxTzFY6iZjR3IwAqph3ww/+QcJXv+mLemw==", - "requires": { - "@swapr/core": "^0.3.17" - } - }, - "@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "dev": true, - "requires": { - "defer-to-connect": "^1.0.1" - } - }, - "@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", - "dev": true, - "requires": { - "@adobe/css-tools": "^4.0.1", - "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^5.0.0", - "chalk": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", - "lodash": "^4.17.15", - "redent": "^3.0.0" - }, - "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - } - } - }, - "@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true - }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "devOptional": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "devOptional": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "devOptional": true - }, - "@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "devOptional": true - }, - "@types/async-eventemitter": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@types/async-eventemitter/-/async-eventemitter-0.2.1.tgz", - "integrity": "sha512-M2P4Ng26QbAeITiH7w1d7OxtldgfAe0wobpyJzVK/XOb0cUGKU2R4pfAhqcJBXAe2ife5ZOhSv4wk7p+ffURtg==", - "peer": true - }, - "@types/babel__core": { - "version": "7.1.20", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.20.tgz", - "integrity": "sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ==", - "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@types/babel__traverse": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", - "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", - "dev": true, - "requires": { - "@babel/types": "^7.3.0" - } - }, - "@types/big.js": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/big.js/-/big.js-4.0.5.tgz", - "integrity": "sha512-D9KFrAt05FDSqLo7PU9TDHfDgkarlwdkuwFsg7Zm4xl62tTNaz+zN+Tkcdx2wGLBbSMf8BnoMhOVeUGUaJfLKg==", - "dev": true - }, - "@types/bn.js": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", - "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", - "requires": { - "@types/node": "*" - } - }, - "@types/cacheable-request": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", - "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", - "requires": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" - } - }, - "@types/debug": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz", - "integrity": "sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==", - "dev": true, - "requires": { - "@types/ms": "*" - } - }, - "@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/http-cache-semantics": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", - "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/jest": { - "version": "27.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", - "dev": true, - "requires": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" - } - }, - "@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", - "dev": true - }, - "@types/json-stable-stringify": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/@types/json-stable-stringify/-/json-stable-stringify-1.0.34.tgz", - "integrity": "sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw==", - "dev": true - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/jsonwebtoken": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", - "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/keyv": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", - "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", - "requires": { - "@types/node": "*" - } - }, - "@types/lodash": { - "version": "4.14.191", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", - "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==", - "dev": true - }, - "@types/lodash.flatmap": { - "version": "4.5.7", - "resolved": "https://registry.npmjs.org/@types/lodash.flatmap/-/lodash.flatmap-4.5.7.tgz", - "integrity": "sha512-ZTfFXFpta2MU1SkoidRz4QMPpFJdFuZkDNffofj/b3XGT59vD0cpddO0agiwjp9l8KIjLNHRcaAUpi2/izUmFw==", - "dev": true, - "requires": { - "@types/lodash": "*" - } - }, - "@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, - "@types/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==", - "peer": true - }, - "@types/memoizee": { - "version": "0.4.8", - "resolved": "https://registry.npmjs.org/@types/memoizee/-/memoizee-0.4.8.tgz", - "integrity": "sha512-qDpXKGgwKywnQt/64fH1O0LiPA++QGIYeykEUiZ51HymKVRLnUSGcRuF60IfpPeeXiuRwiR/W4y7S5VzbrgLCA==", - "dev": true - }, - "@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==" - }, - "@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", - "dev": true - }, - "@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", - "dev": true - }, - "@types/node": { - "version": "18.11.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.17.tgz", - "integrity": "sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==" - }, - "@types/node-fetch": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", - "dev": true, - "requires": { - "@types/node": "*", - "form-data": "^3.0.0" - } - }, - "@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==" - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "@types/pbkdf2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", - "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", - "requires": { - "@types/node": "*" - } - }, - "@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", - "dev": true - }, - "@types/responselike": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", - "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", - "requires": { - "@types/node": "*" - } - }, - "@types/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==", - "requires": { - "@types/node": "*" - } - }, - "@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", - "dev": true - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, - "@types/testing-library__jest-dom": { - "version": "5.14.5", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz", - "integrity": "sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==", - "dev": true, - "requires": { - "@types/jest": "*" - } - }, - "@types/ws": { - "version": "8.5.3", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", - "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.47.0.tgz", - "integrity": "sha512-AHZtlXAMGkDmyLuLZsRpH3p4G/1iARIwc/T0vIem2YB+xW6pZaXYXzCBnZSF/5fdM97R9QqZWZ+h3iW10XgevQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/type-utils": "5.47.0", - "@typescript-eslint/utils": "5.47.0", - "debug": "^4.3.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/parser": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.47.0.tgz", - "integrity": "sha512-udPU4ckK+R1JWCGdQC4Qa27NtBg7w020ffHqGyAK8pAgOVuNw7YaKXGChk+udh+iiGIJf6/E/0xhVXyPAbsczw==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/typescript-estree": "5.47.0", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.47.0.tgz", - "integrity": "sha512-dvJab4bFf7JVvjPuh3sfBUWsiD73aiftKBpWSfi3sUkysDQ4W8x+ZcFpNp7Kgv0weldhpmMOZBjx1wKN8uWvAw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/visitor-keys": "5.47.0" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.47.0.tgz", - "integrity": "sha512-1J+DFFrYoDUXQE1b7QjrNGARZE6uVhBqIvdaXTe5IN+NmEyD68qXR1qX1g2u4voA+nCaelQyG8w30SAOihhEYg==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.47.0", - "@typescript-eslint/utils": "5.47.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.47.0.tgz", - "integrity": "sha512-eslFG0Qy8wpGzDdYKu58CEr3WLkjwC5Usa6XbuV89ce/yN5RITLe1O8e+WFEuxnfftHiJImkkOBADj58ahRxSg==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.47.0.tgz", - "integrity": "sha512-LxfKCG4bsRGq60Sqqu+34QT5qT2TEAHvSCCJ321uBWywgE2dS0LKcu5u+3sMGo+Vy9UmLOhdTw5JHzePV/1y4Q==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/visitor-keys": "5.47.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/utils": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.47.0.tgz", - "integrity": "sha512-U9xcc0N7xINrCdGVPwABjbAKqx4GK67xuMV87toI+HUqgXj26m6RBp9UshEXcTrgCkdGYFzgKLt8kxu49RilDw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.47.0", - "@typescript-eslint/types": "5.47.0", - "@typescript-eslint/typescript-estree": "5.47.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", - "semver": "^7.3.7" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.47.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.47.0.tgz", - "integrity": "sha512-ByPi5iMa6QqDXe/GmT/hR6MZtVPi0SqMQPDx15FczCBXJo/7M8T88xReOALAfpBLm+zxpPfmhuEvPb577JRAEg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.47.0", - "eslint-visitor-keys": "^3.3.0" - } - }, - "@uniswap/default-token-list": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@uniswap/default-token-list/-/default-token-list-2.3.0.tgz", - "integrity": "sha512-yfd4snv9K20tEbNwy9Vjym41RU3Yb2lN0seKxsgkr+m3f6oub2lWyXfTiNwgGFbOQPDvX4dxjMhA+M+S7mxqKg==" - }, - "@uniswap/lib": { - "version": "4.0.1-alpha", - "resolved": "https://registry.npmjs.org/@uniswap/lib/-/lib-4.0.1-alpha.tgz", - "integrity": "sha512-f6UIliwBbRsgVLxIaBANF6w09tYqc6Y/qXdsrbEmXHyFA7ILiKrIwRFXe1yOg8M3cksgVsO9N7yuL2DdCGQKBA==" - }, - "@uniswap/router-sdk": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.4.0.tgz", - "integrity": "sha512-GyUX8x+hnwnh89DHyA/yKWUwhU3Eukx3B76vfvMMWfr++GA4CW6PzT5j4JgNZDrsBTOSJWxTdU5YbgOuwU2XGg==", - "requires": { - "@ethersproject/abi": "^5.5.0", - "@uniswap/sdk-core": "^3.0.1", - "@uniswap/swap-router-contracts": "1.1.0", - "@uniswap/v2-sdk": "^3.0.1", - "@uniswap/v3-sdk": "^3.8.3" - }, - "dependencies": { - "@openzeppelin/contracts": { - "version": "3.4.1-solc-0.7-2", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.1-solc-0.7-2.tgz", - "integrity": "sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==" - }, - "@uniswap/swap-router-contracts": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@uniswap/swap-router-contracts/-/swap-router-contracts-1.1.0.tgz", - "integrity": "sha512-GPmpx1lvjXWloB95+YUabr3UHJYr3scnSS8EzaNXnNrIz9nYZ+XQcMaJxOKe85Yi7IfcUQpj0HzD2TW99dtolA==", - "requires": { - "@openzeppelin/contracts": "3.4.1-solc-0.7-2", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "@uniswap/v3-periphery": "1.3.0", - "hardhat-watcher": "^2.1.1" - } - }, - "@uniswap/v3-periphery": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.3.0.tgz", - "integrity": "sha512-HjHdI5RkjBl8zz3bqHShrbULFoZSrjbbrRHoO2vbzn+WRzTa6xY4PWphZv2Tlcb38YEKfKHp6NPl5hVedac8uw==", - "requires": { - "@openzeppelin/contracts": "3.4.1-solc-0.7-2", - "@uniswap/lib": "^4.0.1-alpha", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "base64-sol": "1.0.1", - "hardhat-watcher": "^2.1.1" - } - } - } - }, - "@uniswap/sdk-core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-3.1.0.tgz", - "integrity": "sha512-YRrp6vYAbYmi3uDXQGkvj2eT8BMpNnUdCFb8GifDG0Ei+ohIpC4RNAB+5/ru3zR2Byhx8VahGrSKuvdd6BVMyA==", - "requires": { - "@ethersproject/address": "^5.0.2", - "big.js": "^5.2.2", - "decimal.js-light": "^2.5.0", - "jsbi": "^3.1.4", - "tiny-invariant": "^1.1.0", - "toformat": "^2.0.0" - } - }, - "@uniswap/smart-order-router": { - "version": "2.10.2", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-2.10.2.tgz", - "integrity": "sha512-Nq/O5p5vUxcGL2PpdB4/mjq0cgfpisPA8Q29dPs3+dgYJ3PNgIasCoENMHgauTvCFCNyql+GwanfeW/DtEcd5A==", - "requires": { - "@uniswap/default-token-list": "^2.0.0", - "@uniswap/router-sdk": "^1.3.0", - "@uniswap/swap-router-contracts": "^1.3.0", - "@uniswap/token-lists": "^1.0.0-beta.25", - "@uniswap/v2-sdk": "^3.0.1", - "@uniswap/v3-sdk": "^3.7.0", - "async-retry": "^1.3.1", - "await-timeout": "^1.1.1", - "axios": "^0.21.1", - "bunyan": "^1.8.15", - "bunyan-blackhole": "^1.1.1", - "ethers": "^5.6.1", - "graphql": "^15.5.0", - "graphql-request": "^3.4.0", - "lodash": "^4.17.21", - "mnemonist": "^0.38.3", - "node-cache": "^5.1.2", - "stats-lite": "^2.2.0" - }, - "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": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==" - }, - "graphql-request": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.7.0.tgz", - "integrity": "sha512-dw5PxHCgBneN2DDNqpWu8QkbbJ07oOziy8z+bK/TAXufsOLaETuVO4GkXrbs0WjhdKhBMN3BkpN/RIvUHkmNUQ==", - "requires": { - "cross-fetch": "^3.0.6", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - } - } - } - }, - "@uniswap/swap-router-contracts": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@uniswap/swap-router-contracts/-/swap-router-contracts-1.3.0.tgz", - "integrity": "sha512-iKvCuRkHXEe0EMjOf8HFUISTIhlxI57kKFllf3C3PUIE0HmwxrayyoflwAz5u/TRsFGYqJ9IjX2UgzLCsrNa5A==", - "requires": { - "@openzeppelin/contracts": "3.4.2-solc-0.7", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "@uniswap/v3-periphery": "1.4.1", - "dotenv": "^14.2.0", - "hardhat-watcher": "^2.1.1" - }, - "dependencies": { - "dotenv": { - "version": "14.3.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-14.3.2.tgz", - "integrity": "sha512-vwEppIphpFdvaMCaHfCEv9IgwcxMljMw2TnAQBB4VWPvzXQLTb82jwmdOKzlEVUL3gNFT4l4TPKO+Bn+sqcrVQ==" - } - } - }, - "@uniswap/token-lists": { - "version": "1.0.0-beta.31", - "resolved": "https://registry.npmjs.org/@uniswap/token-lists/-/token-lists-1.0.0-beta.31.tgz", - "integrity": "sha512-BQVoelKCRf64IToPEs1wxiXOnhr/ukwPOF78XG11PrTAOL4F8umjYKFb8ZPv1/dIJsPaC7GhLSriEqyp94SasQ==" - }, - "@uniswap/v2-core": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.1.tgz", - "integrity": "sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q==" - }, - "@uniswap/v2-sdk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@uniswap/v2-sdk/-/v2-sdk-3.0.1.tgz", - "integrity": "sha512-eSpm2gjo2CZh9FACH5fq42str/oSNyWcDxB27o5k44bEew4sxb+pld4gGIf/byJndLBvArR9PtH8c0n/goNOTw==", - "requires": { - "@ethersproject/address": "^5.0.0", - "@ethersproject/solidity": "^5.0.0", - "@uniswap/sdk-core": "^3.0.0-alpha.3", - "tiny-invariant": "^1.1.0", - "tiny-warning": "^1.0.3" - } - }, - "@uniswap/v3-core": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz", - "integrity": "sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA==" - }, - "@uniswap/v3-periphery": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.4.1.tgz", - "integrity": "sha512-Ab0ZCKOQrQMKIcpBTezTsEhWfQjItd0TtkCG8mPhoQu+wC67nPaf4hYUhM6wGHeFUmDiYY5MpEQuokB0ENvoTg==", - "requires": { - "@openzeppelin/contracts": "3.4.2-solc-0.7", - "@uniswap/lib": "^4.0.1-alpha", - "@uniswap/v2-core": "1.0.1", - "@uniswap/v3-core": "1.0.0", - "base64-sol": "1.0.1", - "hardhat-watcher": "^2.1.1" - } - }, - "@uniswap/v3-sdk": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-sdk/-/v3-sdk-3.9.0.tgz", - "integrity": "sha512-LuoF3UcY1DxSAQKJ3E4/1Eq4HaNp+x+7q9mvbpiu+/PBj+O1DjLforAMrKxu+RsA0aarmZtz7yBnAPy+akgfgQ==", - "requires": { - "@ethersproject/abi": "^5.0.12", - "@ethersproject/solidity": "^5.0.9", - "@uniswap/sdk-core": "^3.0.1", - "@uniswap/swap-router-contracts": "^1.2.1", - "@uniswap/v3-periphery": "^1.1.1", - "@uniswap/v3-staker": "1.0.0", - "tiny-invariant": "^1.1.0", - "tiny-warning": "^1.0.3" - } - }, - "@uniswap/v3-staker": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@uniswap/v3-staker/-/v3-staker-1.0.0.tgz", - "integrity": "sha512-JV0Qc46Px5alvg6YWd+UIaGH9lDuYG/Js7ngxPit1SPaIP30AlVer1UYB7BRYeUVVxE+byUyIeN5jeQ7LLDjIw==", - "requires": { - "@openzeppelin/contracts": "3.4.1-solc-0.7-2", - "@uniswap/v3-core": "1.0.0", - "@uniswap/v3-periphery": "^1.0.1" - }, - "dependencies": { - "@openzeppelin/contracts": { - "version": "3.4.1-solc-0.7-2", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.1-solc-0.7-2.tgz", - "integrity": "sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==" - } - } - }, - "@whatwg-node/fetch": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.5.4.tgz", - "integrity": "sha512-dR5PCzvOeS7OaW6dpIlPt+Ou3pak7IEG+ZVAV26ltcaiDB3+IpuvjqRdhsY6FKHcqBo1qD+S99WXY9Z6+9Rwnw==", - "dev": true, - "requires": { - "@peculiar/webcrypto": "^1.4.0", - "abort-controller": "^3.0.0", - "busboy": "^1.6.0", - "form-data-encoder": "^1.7.1", - "formdata-node": "^4.3.1", - "node-fetch": "^2.6.7", - "undici": "^5.12.0", - "web-streams-polyfill": "^3.2.0" - } - }, - "abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true - }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "requires": { - "event-target-shim": "^5.0.0" - } - }, - "abortcontroller-polyfill": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz", - "integrity": "sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==" - }, - "abstract-level": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/abstract-level/-/abstract-level-1.0.3.tgz", - "integrity": "sha512-t6jv+xHy+VYwc4xqZMn2Pa9DjcdzvzZmQGRjTFc8spIbRGHgBrEKbPq+rYXc7CCo0lxgYvSgKVg9qZAhpVQSjA==", - "peer": true, - "requires": { - "buffer": "^6.0.3", - "catering": "^2.1.0", - "is-buffer": "^2.0.5", - "level-supports": "^4.0.0", - "level-transcoder": "^1.0.1", - "module-error": "^1.0.1", - "queue-microtask": "^1.2.3" - } - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "devOptional": true - }, - "acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "requires": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - }, - "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - } - } - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true - }, - "adm-zip": { - "version": "0.4.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", - "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", - "peer": true - }, - "aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "requires": { - "debug": "4" - } - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "peer": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.2.tgz", - "integrity": "sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "peer": true - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "any-observable": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz", - "integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==", - "dev": true - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "devOptional": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "requires": { - "deep-equal": "^2.0.5" - } - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==" - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true - }, - "asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "asn1js": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.5.tgz", - "integrity": "sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==", - "dev": true, - "requires": { - "pvtsutils": "^1.3.2", - "pvutils": "^1.1.3", - "tslib": "^2.4.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==" - }, - "async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "peer": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "async-eventemitter": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz", - "integrity": "sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw==", - "peer": true, - "requires": { - "async": "^2.4.0" - } - }, - "async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - }, - "async-retry": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", - "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", - "requires": { - "retry": "0.13.1" - } - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "auto-bind": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", - "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", - "dev": true - }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" - }, - "await-timeout": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/await-timeout/-/await-timeout-1.1.1.tgz", - "integrity": "sha512-gsDXAS6XVc4Jt+7S92MPX6Noq69bdeXUPEaXd8dk3+yVr629LTDLxNt4j1ycBbrU+AStK2PhKIyNIM+xzWMVOQ==" - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==" - }, - "aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" - }, - "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "requires": { - "follow-redirects": "^1.14.0" - } - }, - "babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "dev": true, - "requires": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - } - }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - } - }, - "babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "7.0.0-beta.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", - "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==", - "dev": true - }, - "babel-plugin-transform-jsbi-to-bigint": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-jsbi-to-bigint/-/babel-plugin-transform-jsbi-to-bigint-1.4.0.tgz", - "integrity": "sha512-59f6ClwQBY/SKMVwKV/xoAqH/gnyZ6C5gSSPsEUCLPvvZULCDSE5Y3T62wjNTbpBcFzh0ReYz2mIe3u44mW9UQ==", - "dev": true - }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - } - }, - "babel-preset-fbjs": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", - "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", - "dev": true, - "requires": { - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-syntax-class-properties": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.0.0", - "@babel/plugin-syntax-jsx": "^7.0.0", - "@babel/plugin-syntax-object-rest-spread": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoped-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-member-expression-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-super": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-property-literals": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "babel-plugin-syntax-trailing-function-commas": "^7.0.0-beta.0" - } - }, - "babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "base-x": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", - "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "base64-sol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/base64-sol/-/base64-sol-1.0.1.tgz", - "integrity": "sha512-ld3cCNMeXt4uJXmLZBHFGMvVpK9KsLVEhPpFRXnvSVAqABKbuNZg/+dsq3NuM+wxFLb/UrVkz7m1ciWmkMfTbg==" - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "requires": { - "tweetnacl": "^0.14.3" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - } - } - }, - "bech32": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", - "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" - }, - "bigint-crypto-utils": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.1.8.tgz", - "integrity": "sha512-+VMV9Laq8pXLBKKKK49nOoq9bfR3j7NNQAtbA617a4nw9bVLo8rsqkKMBgM2AJWlNX9fEIyYaYX+d0laqYV4tw==", - "peer": true, - "requires": { - "bigint-mod-arith": "^3.1.0" - } - }, - "bigint-mod-arith": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bigint-mod-arith/-/bigint-mod-arith-3.1.2.tgz", - "integrity": "sha512-nx8J8bBeiRR+NlsROFH9jHswW5HO8mgfOSqW0AmjicMMvaONDa8AO+5ViKDUUNytBPWiwfvZP4/Bj4Y3lUfvgQ==", - "peer": true - }, - "bignumber.js": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-8.1.1.tgz", - "integrity": "sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" - }, - "bl": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz", - "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==", - "requires": { - "buffer": "^6.0.3", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "blakejs": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", - "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==" - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" - }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" - }, - "body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" - }, - "browser-level": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browser-level/-/browser-level-1.0.1.tgz", - "integrity": "sha512-XECYKJ+Dbzw0lbydyQuJzwNXtOpbMSq737qxJN11sIRTErOMShvDpbzTlgju7orJKvx4epULolZAuJGLzCmWRQ==", - "peer": true, - "requires": { - "abstract-level": "^1.0.2", - "catering": "^2.1.1", - "module-error": "^1.0.2", - "run-parallel-limit": "^1.1.0" - } - }, - "browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "peer": true - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", - "requires": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - } - }, - "browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" - } - }, - "bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "requires": { - "fast-json-stable-stringify": "2.x" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", - "requires": { - "base-x": "^3.0.2" - } - }, - "bs58check": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", - "requires": { - "bs58": "^4.0.0", - "create-hash": "^1.1.0", - "safe-buffer": "^5.1.2" - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "dev": true - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "buffer-to-arraybuffer": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", - "integrity": "sha512-3dthu5CYiVB1DEJp61FtApNnNndTckcqe4pFcLdvHtrpG+kcyekCJKg4MRiDcFW7A6AODnXB9U4dwQiCW5kzJQ==" - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" - }, - "bufferutil": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", - "integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "bunyan": { - "version": "1.8.15", - "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz", - "integrity": "sha512-0tECWShh6wUysgucJcBAoYegf3JJoZWibxdqhTm7OHPeT42qdjkZ29QCMcKwbgU1kiH+auSIasNRXMLWXafXig==", - "requires": { - "dtrace-provider": "~0.8", - "moment": "^2.19.3", - "mv": "~2", - "safe-json-stringify": "~1" - } - }, - "bunyan-blackhole": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bunyan-blackhole/-/bunyan-blackhole-1.1.1.tgz", - "integrity": "sha512-UwzNPhbbSqbzeJhCbygqjlAY7p0ZUdv1ADXPQvDh3CA7VW3C/rCc1gaQO/8j9QL4vsKQCQZQSQIEwX+lxioPAQ==", - "requires": { - "stream-blackhole": "^1.0.3" - } - }, - "busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "requires": { - "streamsearch": "^1.1.0" - } - }, - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - }, - "cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==" - }, - "cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "dev": true, - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true - } - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "requires": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - }, - "camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "requires": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - } - }, - "caniuse-lite": { - "version": "1.0.30001439", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz", - "integrity": "sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==", - "dev": true - }, - "capital-case": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", - "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" - }, - "catering": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/catering/-/catering-2.1.1.tgz", - "integrity": "sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w==", - "peer": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "change-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", - "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dev": true, - "requires": { - "camel-case": "^4.1.2", - "capital-case": "^1.0.4", - "constant-case": "^3.0.4", - "dot-case": "^3.0.4", - "header-case": "^2.0.4", - "no-case": "^3.0.4", - "param-case": "^3.0.4", - "pascal-case": "^3.1.2", - "path-case": "^3.0.4", - "sentence-case": "^3.0.4", - "snake-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "change-case-all": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", - "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", - "dev": true, - "requires": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, - "char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true - }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "peer": true - }, - "cids": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/cids/-/cids-1.1.9.tgz", - "integrity": "sha512-l11hWRfugIcbGuTZwAM5PwpjPPjyb6UZOGwlHSnOBV5o07XhQ4gNpBN67FbODvpjyHtd+0Xs6KNvUcGBiDRsdg==", - "requires": { - "multibase": "^4.0.1", - "multicodec": "^3.0.1", - "multihashes": "^4.0.1", - "uint8arrays": "^3.0.0" - }, - "dependencies": { - "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "requires": { - "multiformats": "^9.4.2" - } - } - } - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", - "dev": true - }, - "class-is": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/class-is/-/class-is-1.1.0.tgz", - "integrity": "sha512-rhjH9AG1fvabIDoGRVH587413LPjTZgmDF9fOFCbFJQV4yuocX1mHxxvXI4g3cGwbVY9wAYIoKlg1N79frJKQw==" - }, - "classic-level": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.2.0.tgz", - "integrity": "sha512-qw5B31ANxSluWz9xBzklRWTUAJ1SXIdaVKTVS7HcTGKOAmExx65Wo5BUICW+YGORe2FOUaDghoI9ZDxj82QcFg==", - "peer": true, - "requires": { - "abstract-level": "^1.0.2", - "catering": "^2.1.0", - "module-error": "^1.0.1", - "napi-macros": "~2.0.0", - "node-gyp-build": "^4.3.0" - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "peer": true - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "cli-spinners": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", - "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", - "dev": true - }, - "cli-truncate": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", - "integrity": "sha512-f4r4yJnbT++qUPI9NR4XLDLq41gQ+uqnPItWG0F5ZkehuNiTTa3EY0S4AqTSUOeJ7/zU41oWPQSNkW5BqPL9bg==", - "dev": true, - "requires": { - "slice-ansi": "0.0.4", - "string-width": "^1.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==" - }, - "clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "requires": { - "mimic-response": "^1.0.0" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", - "dev": true - }, - "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "command-exists": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==", - "peer": true - }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "constant-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", - "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case": "^2.0.2" - } - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "requires": { - "safe-buffer": "5.2.1" - } - }, - "content-hash": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/content-hash/-/content-hash-2.5.2.tgz", - "integrity": "sha512-FvIQKy0S1JaWV10sMsA7TRx8bpU+pqPkhbsfvOJAdjRXvYxEckAwQWGwtRjiaJfh+E0DvcWUGqcdjwMGFjsSdw==", - "requires": { - "cids": "^0.7.1", - "multicodec": "^0.5.5", - "multihashes": "^0.4.15" - }, - "dependencies": { - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "cids": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/cids/-/cids-0.7.5.tgz", - "integrity": "sha512-zT7mPeghoWAu+ppn8+BS1tQ5qGmbMfB4AregnQjA/qHY3GC1m1ptI9GkWNlgeu38r7CuRdXB47uY2XgAYt6QVA==", - "requires": { - "buffer": "^5.5.0", - "class-is": "^1.1.0", - "multibase": "~0.6.0", - "multicodec": "^1.0.0", - "multihashes": "~0.4.15" - }, - "dependencies": { - "multicodec": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-1.0.4.tgz", - "integrity": "sha512-NDd7FeS3QamVtbgfvu5h7fd1IlbaC4EQ0/pgU4zqE2vdHCmBGsUa0TiM8/TdSeG6BMPC92OOCf8F1ocE/Wkrrg==", - "requires": { - "buffer": "^5.6.0", - "varint": "^5.0.0" - } - } - } - }, - "multibase": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", - "integrity": "sha512-pFfAwyTjbbQgNc3G7D48JkJxWtoJoBMaR4xQUOuB8RnCgRqaYmWNFeJTTvrJ2w51bjLq2zTby6Rqj9TQ9elSUw==", - "requires": { - "base-x": "^3.0.8", - "buffer": "^5.5.0" - } - }, - "multicodec": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-0.5.7.tgz", - "integrity": "sha512-PscoRxm3f+88fAtELwUnZxGDkduE2HD9Q6GHUOywQLjOGT/HAdhjLDYNZ1e7VR0s0TP0EwZ16LNUTFpoBGivOA==", - "requires": { - "varint": "^5.0.0" - } - }, - "multihashes": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.21.tgz", - "integrity": "sha512-uVSvmeCWf36pU2nB4/1kzYZjsXD9vofZKpgudqkceYY5g2aZZXJ5r9lxuzoRLl1OAp28XljXsEJ/X/85ZsKmKw==", - "requires": { - "buffer": "^5.5.0", - "multibase": "^0.7.0", - "varint": "^5.0.0" - }, - "dependencies": { - "multibase": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.7.0.tgz", - "integrity": "sha512-TW8q03O0f6PNFTQDvh3xxH03c8CjGaaYrjkl9UQPG6rz53TQzzxJVCIWVjzcbN/Q5Y53Zd0IBQBMVktVgNx4Fg==", - "requires": { - "base-x": "^3.0.8", - "buffer": "^5.5.0" - } - } - } - }, - "varint": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", - "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" - } - } - }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" - }, - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "peer": true - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" - }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "dev": true, - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - } - }, - "cosmiconfig-toml-loader": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-toml-loader/-/cosmiconfig-toml-loader-1.0.0.tgz", - "integrity": "sha512-H/2gurFWVi7xXvCyvsWRLCMekl4tITJcX0QEsDMpzxtuxDyM59xLatYNg4s/k9AA/HdtCYfj2su8mgA0GSDLDA==", - "dev": true, - "requires": { - "@iarna/toml": "^2.2.5" - } - }, - "cosmiconfig-typescript-loader": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.3.0.tgz", - "integrity": "sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==", - "dev": true, - "requires": {} - }, - "crc-32": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==" - }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "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==", - "devOptional": true - }, - "cross-fetch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", - "requires": { - "node-fetch": "2.6.7" - } - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "css.escape": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", - "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", - "dev": true - }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - } - } - }, - "d": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", - "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", - "requires": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "requires": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - } - }, - "dataloader": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-2.1.0.tgz", - "integrity": "sha512-qTcEYLen3r7ojZNgVUaRggOI+KM7jrKxXeSHhogh/TWxYMeONEMqY+hmkobiYQozsGIyg9OYVzO4ZIfoB4I0pQ==", - "dev": true - }, - "date-fns": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", - "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==", - "dev": true - }, - "dayjs": { - "version": "1.11.7", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz", - "integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==" - }, - "debounce": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", - "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", - "dev": true - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" - }, - "decamelize-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", - "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", - "requires": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==" - } - } - }, - "decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, - "decimal.js-light": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", - "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==" - }, - "decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", - "requires": { - "mimic-response": "^1.0.0" - } - }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "deep-equal": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.1.0.tgz", - "integrity": "sha512-2pxgvWu3Alv1PoWEyVg7HS8YhGlUFUV7N5oOvfL6d+7xAmLSemMwv/c8Zv/i9KFzxV5Kt5CAvQc70fLwVuf4UA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", - "is-arguments": "^1.1.1", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.8" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true - }, - "defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "dev": true, - "requires": { - "clone": "^1.0.2" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true - } - } - }, - "defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", - "dev": true - }, - "define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - }, - "dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "dev": true - }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" - }, - "detect-indent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", - "dev": true - }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true - }, - "diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "peer": true - }, - "diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", - "dev": true - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-accessibility-api": { - "version": "0.5.14", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.14.tgz", - "integrity": "sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg==", - "dev": true - }, - "dom-walk": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", - "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" - }, - "domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "requires": { - "webidl-conversions": "^5.0.0" - }, - "dependencies": { - "webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true - } - } - }, - "dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "dotenv": { - "version": "16.0.3", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", - "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", - "dev": true - }, - "dset": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.2.tgz", - "integrity": "sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==", - "dev": true - }, - "dtrace-provider": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", - "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==", - "optional": true, - "requires": { - "nan": "^2.14.0" - } - }, - "duplexer3": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", - "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", - "dev": true - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", - "dev": true - }, - "elegant-spinner": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", - "integrity": "sha512-B+ZM+RXvRqQaAmkMlO/oSe5nMUOaUnyfGYCEHoR8wrXsZR2mA0XVibsxV1bvTwxdRWah1PkQqso2EzhILGHtEQ==", - "dev": true - }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" - } - }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "peer": true, - "requires": { - "ansi-colors": "^4.1.1" - } - }, - "env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "peer": true - }, - "err-code": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-3.0.1.tgz", - "integrity": "sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==" - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" - } - }, - "es-get-iterator": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz", - "integrity": "sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.0", - "has-symbols": "^1.0.1", - "is-arguments": "^1.1.0", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.5", - "isarray": "^2.0.5" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "es5-ext": { - "version": "0.10.62", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", - "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", - "requires": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" - } - }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" - }, - "es6-symbol": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", - "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", - "requires": { - "d": "^1.0.1", - "ext": "^1.1.2" - } - }, - "es6-weak-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", - "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", - "requires": { - "d": "1", - "es5-ext": "^0.10.46", - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.1" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - }, - "escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - } - } - }, - "eslint": { - "version": "8.30.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz", - "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==", - "dev": true, - "requires": { - "@eslint/eslintrc": "^1.4.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", - "dev": true, - "requires": {} - }, - "eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", - "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", - "has": "^1.0.3", - "is-core-module": "^2.8.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-plugin-react": { - "version": "7.31.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", - "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", - "dev": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - } - } - }, - "eslint-plugin-simple-import-sort": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz", - "integrity": "sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw==", - "dev": true, - "requires": {} - }, - "eslint-plugin-unused-imports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", - "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", - "dev": true, - "requires": { - "eslint-rule-composer": "^0.3.0" - } - }, - "eslint-rule-composer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", - "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", - "dev": true - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - } - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - }, - "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", - "dev": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" - }, - "eth-ens-namehash": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/eth-ens-namehash/-/eth-ens-namehash-2.0.8.tgz", - "integrity": "sha512-VWEI1+KJfz4Km//dadyvBBoBeSQ0MHTXPvr8UIXiLW6IanxvAV+DmlZAijZwAyggqGUfwQBeHf7tc9wzc1piSw==", - "requires": { - "idna-uts46-hx": "^2.3.1", - "js-sha3": "^0.5.7" - }, - "dependencies": { - "js-sha3": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", - "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==" - } - } - }, - "eth-lib": { - "version": "0.1.29", - "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.1.29.tgz", - "integrity": "sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ==", - "requires": { - "bn.js": "^4.11.6", - "elliptic": "^6.4.0", - "nano-json-stream-parser": "^0.1.2", - "servify": "^0.1.12", - "ws": "^3.0.0", - "xhr-request-promise": "^0.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } - } - } - }, - "ethereum-bloom-filters": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", - "integrity": "sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA==", - "requires": { - "js-sha3": "^0.8.0" - } - }, - "ethereum-cryptography": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.1.2.tgz", - "integrity": "sha512-XDSJlg4BD+hq9N2FjvotwUET9Tfxpxc3kWGE2AqUG5vcbeunnbImVk3cj6e/xT3phdW21mE8R5IugU4fspQDcQ==", - "peer": true, - "requires": { - "@noble/hashes": "1.1.2", - "@noble/secp256k1": "1.6.3", - "@scure/bip32": "1.1.0", - "@scure/bip39": "1.1.0" - } - }, - "ethereumjs-abi": { - "version": "0.6.8", - "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", - "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", - "peer": true, - "requires": { - "bn.js": "^4.11.8", - "ethereumjs-util": "^6.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "peer": true - } - } - }, - "ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "peer": true, - "requires": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - }, - "dependencies": { - "@types/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "peer": true - }, - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "peer": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } - } - }, - "ethers": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", - "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", - "requires": { - "@ethersproject/abi": "5.7.0", - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/abstract-signer": "5.7.0", - "@ethersproject/address": "5.7.0", - "@ethersproject/base64": "5.7.0", - "@ethersproject/basex": "5.7.0", - "@ethersproject/bignumber": "5.7.0", - "@ethersproject/bytes": "5.7.0", - "@ethersproject/constants": "5.7.0", - "@ethersproject/contracts": "5.7.0", - "@ethersproject/hash": "5.7.0", - "@ethersproject/hdnode": "5.7.0", - "@ethersproject/json-wallets": "5.7.0", - "@ethersproject/keccak256": "5.7.0", - "@ethersproject/logger": "5.7.0", - "@ethersproject/networks": "5.7.1", - "@ethersproject/pbkdf2": "5.7.0", - "@ethersproject/properties": "5.7.0", - "@ethersproject/providers": "5.7.2", - "@ethersproject/random": "5.7.0", - "@ethersproject/rlp": "5.7.0", - "@ethersproject/sha2": "5.7.0", - "@ethersproject/signing-key": "5.7.0", - "@ethersproject/solidity": "5.7.0", - "@ethersproject/strings": "5.7.0", - "@ethersproject/transactions": "5.7.0", - "@ethersproject/units": "5.7.0", - "@ethersproject/wallet": "5.7.0", - "@ethersproject/web": "5.7.1", - "@ethersproject/wordlists": "5.7.0" - } - }, - "ethjs-unit": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", - "integrity": "sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw==", - "requires": { - "bn.js": "4.11.6", - "number-to-bn": "1.7.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==" - } - } - }, - "ethjs-util": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", - "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", - "peer": true, - "requires": { - "is-hex-prefixed": "1.0.0", - "strip-hex-prefix": "1.0.0" - } - }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" - }, - "eventemitter3": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz", - "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==" - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "executioner": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/executioner/-/executioner-2.0.1.tgz", - "integrity": "sha512-idZAlKsxEZASjaIqP4PQ1txyS1bOcDwWCHy/8p5oMmLGV0XNCQPD6WWAOwJCUVsWItWzAN2BEash5N78PliaIw==", - "dev": true, - "requires": { - "mixly": "^1.0.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true - }, - "expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - } - }, - "express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "ext": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", - "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", - "requires": { - "type": "^2.7.2" - }, - "dependencies": { - "type": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" - } - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, - "extract-files": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-11.0.0.tgz", - "integrity": "sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==", - "dev": true - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==" - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", - "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "requires": { - "bser": "2.1.1" - } - }, - "fbjs": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.4.tgz", - "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", - "dev": true, - "requires": { - "cross-fetch": "^3.1.5", - "fbjs-css-vars": "^1.0.0", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.30" - } - }, - "fbjs-css-vars": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", - "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==", - "dev": true - }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - } - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "peer": true - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==" - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "form-data-encoder": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", - "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", - "dev": true - }, - "formdata-node": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", - "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", - "dev": true, - "requires": { - "node-domexception": "1.0.0", - "web-streams-polyfill": "4.0.0-beta.3" - }, - "dependencies": { - "web-streams-polyfill": { - "version": "4.0.0-beta.3", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", - "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", - "dev": true - } - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" - }, - "fp-ts": { - "version": "1.19.3", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-1.19.3.tgz", - "integrity": "sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg==", - "peer": true - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" - }, - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "peer": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "fs-minipass": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", - "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", - "requires": { - "minipass": "^2.6.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, - "fulcon": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fulcon/-/fulcon-1.0.2.tgz", - "integrity": "sha512-vYwUBqbdo9XK0NmN7cFmURmy2T1YHpEsTCbxGO3aErxx6a0Z/HkWXcqcPkk7yOuJ74mSAHGWGBSBBd6v3GKebA==", - "dev": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "peer": true - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - }, - "get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "dependencies": { - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - }, - "global": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", - "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", - "requires": { - "min-document": "^2.19.0", - "process": "^0.11.10" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "requires": { - "get-intrinsic": "^1.1.3" - } - }, - "got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "dev": true, - "requires": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "dependencies": { - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - } - } - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "graphql": { - "version": "16.6.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz", - "integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==" - }, - "graphql-config": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-4.3.6.tgz", - "integrity": "sha512-i7mAPwc0LAZPnYu2bI8B6yXU5820Wy/ArvmOseDLZIu0OU1UTULEuexHo6ZcHXeT9NvGGaUPQZm8NV3z79YydA==", - "dev": true, - "requires": { - "@graphql-tools/graphql-file-loader": "^7.3.7", - "@graphql-tools/json-file-loader": "^7.3.7", - "@graphql-tools/load": "^7.5.5", - "@graphql-tools/merge": "^8.2.6", - "@graphql-tools/url-loader": "^7.9.7", - "@graphql-tools/utils": "^8.6.5", - "cosmiconfig": "7.0.1", - "cosmiconfig-toml-loader": "1.0.0", - "cosmiconfig-typescript-loader": "^4.0.0", - "minimatch": "4.2.1", - "string-env-interpolation": "1.0.1", - "ts-node": "^10.8.1", - "tslib": "^2.4.0" - }, - "dependencies": { - "cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", - "dev": true, - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - } - } - } - }, - "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" - }, - "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-tag": { - "version": "2.12.6", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", - "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", - "dev": true, - "requires": { - "tslib": "^2.1.0" - } - }, - "graphql-ws": { - "version": "5.11.2", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.11.2.tgz", - "integrity": "sha512-4EiZ3/UXYcjm+xFGP544/yW1+DVI8ZpKASFbzrV5EDTFWJp0ZvLl4Dy2fSZAzz9imKp5pZMIcjB0x/H69Pv/6w==", - "dev": true, - "requires": {} - }, - "hamt-sharding": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hamt-sharding/-/hamt-sharding-2.0.1.tgz", - "integrity": "sha512-vnjrmdXG9dDs1m/H4iJ6z0JFI2NtgsW5keRkTcM85NGak69Mkf5PHUqBz+Xs0T4sg0ppvj9O5EGAJo40FTxmmA==", - "requires": { - "sparse-array": "^1.3.1", - "uint8arrays": "^3.0.0" - }, - "dependencies": { - "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "requires": { - "multiformats": "^9.4.2" - } - } - } - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==" - }, - "har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - } - } - }, - "hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==" - }, - "hardhat": { - "version": "2.12.4", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.12.4.tgz", - "integrity": "sha512-rc9S2U/4M+77LxW1Kg7oqMMmjl81tzn5rNFARhbXKUA1am/nhfMJEujOjuKvt+ZGMiZ11PYSe8gyIpB/aRNDgw==", - "peer": true, - "requires": { - "@ethersproject/abi": "^5.1.2", - "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "^4.0.0", - "@nomicfoundation/ethereumjs-blockchain": "^6.0.0", - "@nomicfoundation/ethereumjs-common": "^3.0.0", - "@nomicfoundation/ethereumjs-evm": "^1.0.0", - "@nomicfoundation/ethereumjs-rlp": "^4.0.0", - "@nomicfoundation/ethereumjs-statemanager": "^1.0.0", - "@nomicfoundation/ethereumjs-trie": "^5.0.0", - "@nomicfoundation/ethereumjs-tx": "^4.0.0", - "@nomicfoundation/ethereumjs-util": "^8.0.0", - "@nomicfoundation/ethereumjs-vm": "^6.0.0", - "@nomicfoundation/solidity-analyzer": "^0.1.0", - "@sentry/node": "^5.18.1", - "@types/bn.js": "^5.1.0", - "@types/lru-cache": "^5.1.0", - "abort-controller": "^3.0.0", - "adm-zip": "^0.4.16", - "aggregate-error": "^3.0.0", - "ansi-escapes": "^4.3.0", - "chalk": "^2.4.2", - "chokidar": "^3.4.0", - "ci-info": "^2.0.0", - "debug": "^4.1.1", - "enquirer": "^2.3.0", - "env-paths": "^2.2.0", - "ethereum-cryptography": "^1.0.3", - "ethereumjs-abi": "^0.6.8", - "find-up": "^2.1.0", - "fp-ts": "1.19.3", - "fs-extra": "^7.0.1", - "glob": "7.2.0", - "immutable": "^4.0.0-rc.12", - "io-ts": "1.10.4", - "keccak": "^3.0.2", - "lodash": "^4.17.11", - "mnemonist": "^0.38.0", - "mocha": "^10.0.0", - "p-map": "^4.0.0", - "qs": "^6.7.0", - "raw-body": "^2.4.1", - "resolve": "1.17.0", - "semver": "^6.3.0", - "solc": "0.7.3", - "source-map-support": "^0.5.13", - "stacktrace-parser": "^0.1.10", - "tsort": "0.0.1", - "undici": "^5.4.0", - "uuid": "^8.3.2", - "ws": "^7.4.6" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "peer": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "peer": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "peer": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "peer": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "peer": true - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", - "peer": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "peer": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "peer": true - }, - "immutable": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", - "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", - "peer": true - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", - "peer": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "peer": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", - "peer": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", - "peer": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "peer": true - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "peer": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "peer": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "hardhat-watcher": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/hardhat-watcher/-/hardhat-watcher-2.5.0.tgz", - "integrity": "sha512-Su2qcSMIo2YO2PrmJ0/tdkf+6pSt8zf9+4URR5edMVti6+ShI8T3xhPrwugdyTOFuyj8lKHrcTZNKUFYowYiyA==", - "requires": { - "chokidar": "^3.5.3" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true - } - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "peer": true - }, - "header-case": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", - "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, - "requires": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "requires": { - "lru-cache": "^6.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "requires": { - "whatwg-encoding": "^1.0.5" - } - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "http-https": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/http-https/-/http-https-1.0.0.tgz", - "integrity": "sha512-o0PWwVCSp3O0wS6FvNr6xfBCHgt0m1tvPLFOCc2iFDKTRAXhB7m8klDf7ErowFH8POa6dVdGatKU5I1YYwzUyg==" - }, - "http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dev": true, - "requires": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "http2-wrapper": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", - "requires": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "dependencies": { - "quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" - } - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "idna-uts46-hx": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/idna-uts46-hx/-/idna-uts46-hx-2.3.1.tgz", - "integrity": "sha512-PWoF9Keq6laYdIRwwCdhTPl60xRqAloYNMQLiyUnG42VjT53oW07BXIRM+NK7eQjzXjAk2gUvX9caRxlnF9TAA==", - "requires": { - "punycode": "2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", - "integrity": "sha512-Yxz2kRwT90aPiWEMHVYnEf4+rhwF1tBmmZ4KepCP+Wkium9JxtWnUm1nqGwpiAHr/tnTSeHqr3wb++jgSkXjhA==" - } - } - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, - "immutable": { - "version": "3.7.6", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz", - "integrity": "sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw==", - "dev": true - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - } - } - }, - "import-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", - "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", - "dev": true - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "inquirer": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", - "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" - } - }, - "install-peers-cli": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/install-peers-cli/-/install-peers-cli-2.2.0.tgz", - "integrity": "sha512-scSNvF49HDOLNm2xLFwST23g/OvfsceiA087bcGBgZP/ZNCrvpSaCn5IrWNZ2XYmFFykXF/6J1Zgm+D/JgRgtA==", - "dev": true, - "requires": { - "commander": "^2.20.0", - "executioner": "^2.0.1" - } - }, - "interface-ipld-format": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/interface-ipld-format/-/interface-ipld-format-1.0.1.tgz", - "integrity": "sha512-WV/ar+KQJVoQpqRDYdo7YPGYIUHJxCuOEhdvsRpzLqoOIVCqPKdMMYmsLL1nCRsF3yYNio+PAJbCKiv6drrEAg==", - "requires": { - "cids": "^1.1.6", - "multicodec": "^3.0.1", - "multihashes": "^4.0.2" - } - }, - "internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "io-ts": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/io-ts/-/io-ts-1.10.4.tgz", - "integrity": "sha512-b23PteSnYXSONJ6JQXRAlvJhuw8KOtkqa87W4wDtvMrud/DTJd5X+NpOOI+O/zZwVq6v0VLAaJ+1EDViKEuN9g==", - "peer": true, - "requires": { - "fp-ts": "^1.0.0" - } - }, - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" - }, - "ipfs-only-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/ipfs-only-hash/-/ipfs-only-hash-4.0.0.tgz", - "integrity": "sha512-TE1DZCvfw8i3gcsTq3P4TFx3cKFJ3sluu/J3XINkJhIN9OwJgNMqKA+WnKx6ByCb1IoPXsTp1KM7tupElb6SyA==", - "requires": { - "ipfs-unixfs-importer": "^7.0.1", - "meow": "^9.0.0" - } - }, - "ipfs-unixfs": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-4.0.3.tgz", - "integrity": "sha512-hzJ3X4vlKT8FQ3Xc4M1szaFVjsc1ZydN+E4VQ91aXxfpjFn9G2wsMo1EFdAXNq/BUnN5dgqIOMP5zRYr3DTsAw==", - "requires": { - "err-code": "^3.0.1", - "protobufjs": "^6.10.2" - } - }, - "ipfs-unixfs-importer": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ipfs-unixfs-importer/-/ipfs-unixfs-importer-7.0.3.tgz", - "integrity": "sha512-qeFOlD3AQtGzr90sr5Tq1Bi8pT5Nr2tSI8z310m7R4JDYgZc6J1PEZO3XZQ8l1kuGoqlAppBZuOYmPEqaHcVQQ==", - "requires": { - "bl": "^5.0.0", - "cids": "^1.1.5", - "err-code": "^3.0.1", - "hamt-sharding": "^2.0.0", - "ipfs-unixfs": "^4.0.3", - "ipld-dag-pb": "^0.22.2", - "it-all": "^1.0.5", - "it-batch": "^1.0.8", - "it-first": "^1.0.6", - "it-parallel-batch": "^1.0.9", - "merge-options": "^3.0.4", - "multihashing-async": "^2.1.0", - "rabin-wasm": "^0.1.4", - "uint8arrays": "^2.1.2" - } - }, - "ipld-dag-pb": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.22.3.tgz", - "integrity": "sha512-dfG5C5OVAR4FEP7Al2CrHWvAyIM7UhAQrjnOYOIxXGQz5NlEj6wGX0XQf6Ru6or1na6upvV3NQfstapQG8X2rg==", - "requires": { - "cids": "^1.0.0", - "interface-ipld-format": "^1.0.0", - "multicodec": "^3.0.1", - "multihashing-async": "^2.0.0", - "protobufjs": "^6.10.2", - "stable": "^0.1.8", - "uint8arrays": "^2.0.5" - } - }, - "is-absolute": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", - "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", - "dev": true, - "requires": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" - } - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "peer": true - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - }, - "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-function": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", - "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==" - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true - }, - "is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-hex-prefixed": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", - "integrity": "sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==" - }, - "is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true - }, - "is-lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-2.0.2.tgz", - "integrity": "sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-observable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", - "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", - "dev": true, - "requires": { - "symbol-observable": "^1.1.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - }, - "is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "is-promise": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", - "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-relative": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", - "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", - "dev": true, - "requires": { - "is-unc-path": "^1.0.0" - } - }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "is-unc-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", - "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", - "dev": true, - "requires": { - "unc-path-regex": "^0.1.2" - } - }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" - }, - "is-upper-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", - "integrity": "sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "isnumber": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isnumber/-/isnumber-1.0.0.tgz", - "integrity": "sha512-JLiSz/zsZcGFXPrB4I/AGBvtStkt+8QmksyZBZnVXnnK9XdTEyz0tX8CRYljtwYDuIuZzih6DpHQdi+3Q6zHPw==" - }, - "isomorphic-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", - "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", - "dev": true, - "requires": { - "node-fetch": "^2.6.1", - "whatwg-fetch": "^3.4.1" - } - }, - "isomorphic-ws": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", - "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", - "dev": true, - "requires": {} - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "it-all": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.6.tgz", - "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==" - }, - "it-batch": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/it-batch/-/it-batch-1.0.9.tgz", - "integrity": "sha512-7Q7HXewMhNFltTsAMdSz6luNhyhkhEtGGbYek/8Xb/GiqYMtwUmopE1ocPSiJKKp3rM4Dt045sNFoUu+KZGNyA==" - }, - "it-first": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/it-first/-/it-first-1.0.7.tgz", - "integrity": "sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g==" - }, - "it-parallel-batch": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/it-parallel-batch/-/it-parallel-batch-1.0.11.tgz", - "integrity": "sha512-UWsWHv/kqBpMRmyZJzlmZeoAMA0F3SZr08FBdbhtbe+MtoEBgr/ZUAKrnenhXCBrsopy76QjRH2K/V8kNdupbQ==", - "requires": { - "it-batch": "^1.0.9" - } - }, - "jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", - "dev": true, - "requires": { - "@jest/core": "^27.5.1", - "import-local": "^3.0.2", - "jest-cli": "^27.5.1" - } - }, - "jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "execa": "^5.0.0", - "throat": "^6.0.1" - } - }, - "jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - } - }, - "jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", - "dev": true, - "requires": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "dependencies": { - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - } - } - }, - "jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "dev": true, - "requires": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ci-info": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz", - "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==", - "dev": true - } - } - }, - "jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - } - }, - "jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", - "dev": true, - "requires": { - "detect-newline": "^3.0.0" - } - }, - "jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - } - }, - "jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - } - }, - "jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - } - }, - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - }, - "jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - } - }, - "jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - } - }, - "jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", - "dev": true, - "requires": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - } - }, - "jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - } - }, - "jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - } - }, - "jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*" - } - }, - "jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "requires": {} - }, - "jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "dev": true - }, - "jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" - } - }, - "jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" - } - }, - "jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "dev": true, - "requires": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - } - }, - "jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - } - }, - "jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "dev": true, - "requires": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - } - }, - "jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "dev": true, - "requires": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dependencies": { - "ci-info": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz", - "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==", - "dev": true - } - } - }, - "jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "leven": "^3.1.0", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - } - } - }, - "jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", - "dev": true, - "requires": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^27.5.1", - "string-length": "^4.0.1" - } - }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", - "dev": true - }, - "js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "jsbi": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/jsbi/-/jsbi-3.2.5.tgz", - "integrity": "sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==" - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" - }, - "jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "requires": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "dependencies": { - "@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true - }, - "http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "requires": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - } - } - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", - "dev": true, - "requires": { - "jsonify": "^0.0.1" - } - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "json-to-pretty-yaml": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/json-to-pretty-yaml/-/json-to-pretty-yaml-1.2.2.tgz", - "integrity": "sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A==", - "dev": true, - "requires": { - "remedial": "^1.0.7", - "remove-trailing-spaces": "^1.0.6" - } - }, - "json5": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", - "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==", - "dev": true - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true - }, - "jsonwebtoken": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", - "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", - "dev": true, - "requires": { - "jws": "^3.2.2", - "lodash": "^4.17.21", - "ms": "^2.1.1", - "semver": "^7.3.8" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - } - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", - "dev": true, - "requires": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", - "dev": true, - "requires": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" - } - }, - "keccak": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.2.tgz", - "integrity": "sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ==", - "requires": { - "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0", - "readable-stream": "^3.6.0" - } - }, - "keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dev": true, - "requires": { - "json-buffer": "3.0.0" - } - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" - }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==", - "peer": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true - }, - "latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", - "dev": true, - "requires": { - "package-json": "^6.3.0" - } - }, - "level": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/level/-/level-8.0.0.tgz", - "integrity": "sha512-ypf0jjAk2BWI33yzEaaotpq7fkOPALKAgDBxggO6Q9HGX2MRXn0wbP1Jn/tJv1gtL867+YOjOB49WaUF3UoJNQ==", - "peer": true, - "requires": { - "browser-level": "^1.0.1", - "classic-level": "^1.2.0" - } - }, - "level-supports": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-4.0.1.tgz", - "integrity": "sha512-PbXpve8rKeNcZ9C1mUicC9auIYFyGpkV9/i6g76tLgANwWhtG2v7I4xNBUlkn3lE2/dZF3Pi0ygYGtLc4RXXdA==", - "peer": true - }, - "level-transcoder": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/level-transcoder/-/level-transcoder-1.0.1.tgz", - "integrity": "sha512-t7bFwFtsQeD8cl8NIoQ2iwxA0CL/9IFw7/9gAjOonH0PWTTiRfY7Hq+Ejbsxh86tXobDQ6IOiddjNYIfOBs06w==", - "peer": true, - "requires": { - "buffer": "^6.0.3", - "module-error": "^1.0.1" - } - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "listr": { - "version": "0.14.3", - "resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz", - "integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==", - "dev": true, - "requires": { - "@samverschueren/stream-to-observable": "^0.3.0", - "is-observable": "^1.1.0", - "is-promise": "^2.1.0", - "is-stream": "^1.1.0", - "listr-silent-renderer": "^1.1.1", - "listr-update-renderer": "^0.5.0", - "listr-verbose-renderer": "^0.5.0", - "p-map": "^2.0.0", - "rxjs": "^6.3.3" - }, - "dependencies": { - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "dev": true - }, - "p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true - }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "listr-silent-renderer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz", - "integrity": "sha512-L26cIFm7/oZeSNVhWB6faeorXhMg4HNlb/dS/7jHhr708jxlXrtrBWo4YUxZQkc6dGoxEAe6J/D3juTRBUzjtA==", - "dev": true - }, - "listr-update-renderer": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz", - "integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "cli-truncate": "^0.2.1", - "elegant-spinner": "^1.0.1", - "figures": "^1.7.0", - "indent-string": "^3.0.0", - "log-symbols": "^1.0.2", - "log-update": "^2.3.0", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", - "dev": true - }, - "log-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", - "integrity": "sha512-mmPrW0Fh2fxOzdBbFv4g1m6pR72haFLPJ2G5SJEELf1y+iaQrDG6cWCPjy54RHYbZAt7X+ls690Kw62AdWXBzQ==", - "dev": true, - "requires": { - "chalk": "^1.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", - "dev": true - } - } - }, - "listr-verbose-renderer": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz", - "integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==", - "dev": true, - "requires": { - "chalk": "^2.4.1", - "cli-cursor": "^2.1.0", - "date-fns": "^1.27.2", - "figures": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", - "dev": true, - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", - "dev": true, - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash.flatmap": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.flatmap/-/lodash.flatmap-4.5.0.tgz", - "integrity": "sha512-/OcpcAGWlrZyoHGeHh3cAoa6nGdX6QYtmzNP84Jqol6UEQQ2gIaU3H+0eICcjcKGl0/XF8LWOujNn9lffsnaOg==" - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - } - }, - "log-update": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz", - "integrity": "sha512-vlP11XfFGyeNQlmEn9tJ66rEW1coA/79m5z6BCkudjbAGE83uhAcGYrBFwfs3AdLiLzGRusRPAbSPK9xZteCmg==", - "dev": true, - "requires": { - "ansi-escapes": "^3.0.0", - "cli-cursor": "^2.0.0", - "wrap-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-escapes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", - "dev": true - }, - "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", - "dev": true - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", - "dev": true, - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", - "dev": true, - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "wrap-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz", - "integrity": "sha512-iXR3tDXpbnTpzjKSylUJRkLuOrEC7hwEB221cgn6wtF8wpmz28puFXAEfPT5zrjM3wahygB//VuWEr1vTkDcNQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0" - } - } - } - }, - "loglevel": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", - "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==" - }, - "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "lower-case-first": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-2.0.2.tgz", - "integrity": "sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true - }, - "lru_map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==", - "peer": true - }, - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "peer": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "lru-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", - "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", - "requires": { - "es5-ext": "~0.10.2" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "devOptional": true - }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "requires": { - "tmpl": "1.0.5" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", - "dev": true - }, - "map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==" - }, - "mcl-wasm": { - "version": "0.7.9", - "resolved": "https://registry.npmjs.org/mcl-wasm/-/mcl-wasm-0.7.9.tgz", - "integrity": "sha512-iJIUcQWA88IJB/5L15GnJVnSQJmf/YaxxV6zRavv83HILHaJQb6y0iFyDMdDO0gN8X37tdxmAOrH/P8B6RB8sQ==", - "peer": true - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" - }, - "memoizee": { - "version": "0.4.15", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", - "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", - "requires": { - "d": "^1.0.1", - "es5-ext": "^0.10.53", - "es6-weak-map": "^2.0.3", - "event-emitter": "^0.3.5", - "is-promise": "^2.2.2", - "lru-queue": "^0.1.0", - "next-tick": "^1.1.0", - "timers-ext": "^0.1.7" - } - }, - "memory-level": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/memory-level/-/memory-level-1.0.0.tgz", - "integrity": "sha512-UXzwewuWeHBz5krr7EvehKcmLFNoXxGcvuYhC41tRnkrTbJohtS7kVn9akmgirtRygg+f7Yjsfi8Uu5SGSQ4Og==", - "peer": true, - "requires": { - "abstract-level": "^1.0.0", - "functional-red-black-tree": "^1.0.1", - "module-error": "^1.0.1" - } - }, - "memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "peer": true - }, - "meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "requires": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "dependencies": { - "type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==" - } - } - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "merge-options": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz", - "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", - "requires": { - "is-plain-obj": "^2.1.0" - } - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "meros": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/meros/-/meros-1.2.1.tgz", - "integrity": "sha512-R2f/jxYqCAGI19KhAvaxSOxALBMkaXWH2a7rOyqQw+ZmizX5bKkEYWLzdhC+U82ZVVPVp6MCXe3EkVligh+12g==", - "dev": true, - "requires": {} - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" - }, - "min-document": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", - "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==", - "requires": { - "dom-walk": "^0.1.0" - } - }, - "min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" - }, - "minimatch": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", - "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" - }, - "minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "requires": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "dependencies": { - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==" - } - } - }, - "minipass": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", - "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", - "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", - "requires": { - "minipass": "^2.9.0" - } - }, - "mixly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mixly/-/mixly-1.0.0.tgz", - "integrity": "sha512-ks+xIMVeIDwuYK4LnOMXTfmiEI8oo3tFNFirpHd60C4r2H0wMwKN5/qHCrFBKFK+BYx2Gp7qs+evUJw7QO9D2w==", - "dev": true, - "requires": { - "fulcon": "^1.0.1" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" - }, - "mkdirp-promise": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/mkdirp-promise/-/mkdirp-promise-5.0.1.tgz", - "integrity": "sha512-Hepn5kb1lJPtVW84RFT40YG1OddBNTOVUZR2bzQUHc+Z03en8/3uX0+060JDhcEzyO08HmipsN9DcnFMxhIL9w==", - "requires": { - "mkdirp": "*" - } - }, - "mnemonist": { - "version": "0.38.5", - "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", - "integrity": "sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg==", - "requires": { - "obliterator": "^2.0.0" - } - }, - "mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", - "peer": true, - "requires": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "nanoid": "3.3.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "dependencies": { - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "peer": true - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "peer": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "peer": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "dependencies": { - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", - "peer": true, - "requires": { - "brace-expansion": "^2.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "peer": true, - "requires": { - "balanced-match": "^1.0.0" - } - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "peer": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "peer": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "peer": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "peer": true - } - } - }, - "mock-fs": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.14.0.tgz", - "integrity": "sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw==" - }, - "module-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/module-error/-/module-error-1.0.2.tgz", - "integrity": "sha512-0yuvsqSCv8LbaOKhnsQ/T5JhyFlCYLPXK3U2sgV10zoKQwzs/MyfuQUOZQ1V/6OCOJsK/TRgNVrPuPDqtdMFtA==", - "peer": true - }, - "moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "optional": true - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "multibase": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-4.0.6.tgz", - "integrity": "sha512-x23pDe5+svdLz/k5JPGCVdfn7Q5mZVMBETiC+ORfO+sor9Sgs0smJzAjfTbM5tckeCqnaUuMYoz+k3RXMmJClQ==", - "requires": { - "@multiformats/base-x": "^4.0.1" - } - }, - "multicodec": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-3.2.1.tgz", - "integrity": "sha512-+expTPftro8VAW8kfvcuNNNBgb9gPeNYV9dn+z1kJRWF2vih+/S79f2RVeIwmrJBUJ6NT9IUPWnZDQvegEh5pw==", - "requires": { - "uint8arrays": "^3.0.0", - "varint": "^6.0.0" - }, - "dependencies": { - "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "requires": { - "multiformats": "^9.4.2" - } - } - } - }, - "multiformats": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", - "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" - }, - "multihashes": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-4.0.3.tgz", - "integrity": "sha512-0AhMH7Iu95XjDLxIeuCOOE4t9+vQZsACyKZ9Fxw2pcsRmlX4iCn1mby0hS0bb+nQOVpdQYWPpnyusw4da5RPhA==", - "requires": { - "multibase": "^4.0.1", - "uint8arrays": "^3.0.0", - "varint": "^5.0.2" - }, - "dependencies": { - "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "requires": { - "multiformats": "^9.4.2" - } - }, - "varint": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", - "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" - } - } - }, - "multihashing-async": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-2.1.4.tgz", - "integrity": "sha512-sB1MiQXPSBTNRVSJc2zM157PXgDtud2nMFUEIvBrsq5Wv96sUclMRK/ecjoP1T/W61UJBqt4tCTwMkUpt2Gbzg==", - "requires": { - "blakejs": "^1.1.0", - "err-code": "^3.0.0", - "js-sha3": "^0.8.0", - "multihashes": "^4.0.1", - "murmurhash3js-revisited": "^3.0.0", - "uint8arrays": "^3.0.0" - }, - "dependencies": { - "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", - "requires": { - "multiformats": "^9.4.2" - } - } - } - }, - "murmurhash3js-revisited": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/murmurhash3js-revisited/-/murmurhash3js-revisited-3.0.0.tgz", - "integrity": "sha512-/sF3ee6zvScXMb1XFJ8gDsSnY+X8PbOyjIuBhtgis10W2Jx4ZjIhikUCIF9c4gpJxVnQIsPAFrSwTCuAjicP6g==" - }, - "mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, - "mv": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", - "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==", - "optional": true, - "requires": { - "mkdirp": "~0.5.1", - "ncp": "~2.0.0", - "rimraf": "~2.4.0" - }, - "dependencies": { - "glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==", - "optional": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "requires": { - "minimist": "^1.2.6" - } - }, - "rimraf": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", - "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==", - "optional": true, - "requires": { - "glob": "^6.0.1" - } - } - } - }, - "nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", - "optional": true - }, - "nano-json-stream-parser": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz", - "integrity": "sha512-9MqxMH/BSJC7dnLsEMPyfN5Dvoo49IsPFYMcHw3Bcfc2kN0lpHRBSzlMSVx4HGyJ7s9B31CyBTVehWJoQ8Ctew==" - }, - "nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "peer": true - }, - "napi-macros": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.0.0.tgz", - "integrity": "sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg==", - "peer": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "ncp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", - "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", - "optional": true - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" - }, - "next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" - }, - "no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dev": true, - "requires": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node-addon-api": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" - }, - "node-cache": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-5.1.2.tgz", - "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==", - "requires": { - "clone": "2.x" - } - }, - "node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "dev": true - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - }, - "dependencies": { - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - } - } - }, - "node-gyp-build": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", - "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==" - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node-releases": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", - "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", - "dev": true - }, - "normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "requires": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - }, - "normalize-url": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", - "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "nullthrows": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", - "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", - "dev": true - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", - "dev": true - }, - "number-to-bn": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", - "integrity": "sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==", - "requires": { - "bn.js": "4.11.6", - "strip-hex-prefix": "1.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==" - } - } - }, - "nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==", - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "obliterator": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==" - }, - "oboe": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/oboe/-/oboe-2.1.5.tgz", - "integrity": "sha512-zRFWiF+FoicxEs3jNI/WYUrVEgA7DeET/InK0XQuudGHRg8iIob3cNPrJTKaz4004uaA9Pbe+Dwa8iluhjLZWA==", - "requires": { - "http-https": "^1.0.0" - } - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "requires": { - "ee-first": "1.1.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "ora": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", - "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", - "dev": true, - "requires": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "dependencies": { - "bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - } - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" - }, - "p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", - "dev": true - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "requires": { - "p-limit": "^3.0.2" - } - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "peer": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", - "dev": true, - "requires": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - } - }, - "param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "paraswap": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/paraswap/-/paraswap-5.2.0.tgz", - "integrity": "sha512-SYGhP7/ReHPwyLmCUuHh3mHqSK91r7HRcAs8siE7xOZ+omcUsyRwmvnlK9L5jsIwXkYZ/Rn6q3BTwCTLmw+4bA==", - "requires": { - "async": "^3.1.0", - "axios": "0.21.2", - "bignumber.js": "8.1.1", - "lodash": "4.17.21", - "paraswap-core": "1.0.2", - "qs": "^6.9.1", - "ts-essentials": "^7.0.0", - "web3": "^1.5.0" - }, - "dependencies": { - "async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - }, - "axios": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.2.tgz", - "integrity": "sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==", - "requires": { - "follow-redirects": "^1.14.0" - } - } - } - }, - "paraswap-core": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/paraswap-core/-/paraswap-core-1.0.2.tgz", - "integrity": "sha512-/PyonrjBsv9xOsFk4mVr0rh7BENrQtYYvvZMwu6QFN4qcca2VgmqOgpNWZPvfyBpKY+fUqmbBNlhqlaMQ3TMzQ==" - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "requires": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "parse-filepath": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", - "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", - "dev": true, - "requires": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - } - }, - "parse-headers": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", - "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==" - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" - }, - "pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "path-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", - "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", - "dev": true, - "requires": { - "path-root-regex": "^0.1.0" - } - }, - "path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", - "dev": true - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "pbkdf2": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", - "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - } - } - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", - "dev": true - }, - "prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", - "dev": true, - "peer": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==" - }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dev": true, - "requires": { - "asap": "~2.0.3" - } - }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } - }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true - } - } - }, - "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - } - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - } - }, - "psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "pvtsutils": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.2.tgz", - "integrity": "sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==", - "dev": true, - "requires": { - "tslib": "^2.4.0" - } - }, - "pvutils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.3.tgz", - "integrity": "sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==", - "dev": true - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { - "side-channel": "^1.0.4" - } - }, - "query-string": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", - "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", - "requires": { - "decode-uri-component": "^0.2.0", - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" - } - }, - "querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - }, - "quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==" - }, - "rabin-wasm": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/rabin-wasm/-/rabin-wasm-0.1.5.tgz", - "integrity": "sha512-uWgQTo7pim1Rnj5TuWcCewRDTf0PEFTSlaUjWP4eY9EbLV9em08v89oCz/WO+wRxpYuO36XEHp4wgYQnAgOHzA==", - "requires": { - "@assemblyscript/loader": "^0.9.4", - "bl": "^5.0.0", - "debug": "^4.3.1", - "minimist": "^1.2.5", - "node-fetch": "^2.6.1", - "readable-stream": "^3.6.0" - } - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - }, - "raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true - } - } - }, - "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" - } - } - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "requires": { - "picomatch": "^2.2.1" - } - }, - "redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "requires": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - } - }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "dev": true - }, - "regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - } - }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "registry-auth-token": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", - "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", - "dev": true, - "requires": { - "rc": "1.2.8" - } - }, - "registry-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", - "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", - "dev": true, - "requires": { - "rc": "^1.2.8" - } - }, - "relay-runtime": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", - "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", - "dev": true, - "requires": { - "@babel/runtime": "^7.0.0", - "fbjs": "^3.0.0", - "invariant": "^2.2.4" - } - }, - "remedial": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/remedial/-/remedial-1.0.8.tgz", - "integrity": "sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg==", - "dev": true - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", - "dev": true - }, - "remove-trailing-spaces": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/remove-trailing-spaces/-/remove-trailing-spaces-1.0.8.tgz", - "integrity": "sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA==", - "dev": true - }, - "request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "qs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==" - }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" - } - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "resolve.exports": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", - "dev": true - }, - "responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", - "dev": true, - "requires": { - "lowercase-keys": "^1.0.0" - } - }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - } - }, - "retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "rlp": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", - "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", - "requires": { - "bn.js": "^5.2.0" - } - }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "run-parallel-limit": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/run-parallel-limit/-/run-parallel-limit-1.1.0.tgz", - "integrity": "sha512-jJA7irRNM91jaKc3Hcl1npHsFLOXOoTkPCUL1JEa1R82O2miplXXRaGdjW/KM/98YQWDhJLiSs793CnXfblJUw==", - "peer": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "rustbn.js": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/rustbn.js/-/rustbn.js-0.2.0.tgz", - "integrity": "sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==", - "peer": true - }, - "rxjs": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", - "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", - "dev": true, - "requires": { - "tslib": "^2.1.0" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "safe-json-stringify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", - "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", - "optional": true - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, - "scrypt-js": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", - "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==" - }, - "scuid": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/scuid/-/scuid-1.1.0.tgz", - "integrity": "sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg==", - "dev": true - }, - "secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", - "requires": { - "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - } - } - }, - "sentence-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", - "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, - "serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "peer": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - } - }, - "servify": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/servify/-/servify-0.1.12.tgz", - "integrity": "sha512-/xE6GvsKKqyo1BAY+KxOWXcLpPsUUyji7Qg3bVD7hh1eRze5bR1uYiuDA/k3Gof1s9BTzQZEJK8sNcNGFIzeWw==", - "requires": { - "body-parser": "^1.16.0", - "cors": "^2.8.1", - "express": "^4.14.0", - "request": "^2.79.0", - "xhr": "^2.3.3" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "signedsource": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", - "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", - "dev": true - }, - "simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==" - }, - "simple-get": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.2.tgz", - "integrity": "sha512-Ijd/rV5o+mSBBs4F/x9oDPtTx9Zb6X9brmnXvMW4J7IR15ngi9q5xxqWBKU744jTZiaXtxaPL7uHG6vtN8kUkw==", - "requires": { - "decompress-response": "^3.3.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", - "integrity": "sha512-up04hB2hR92PgjpyU3y/eg91yIBILyjVY26NvvciY3EVVPjybkMszMpXQ9QAkcS3I5rtJBDLoTxxg+qvW8c7rw==", - "dev": true - }, - "snake-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", - "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "solc": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.7.3.tgz", - "integrity": "sha512-GAsWNAjGzIDg7VxzP6mPjdurby3IkGCjQcM8GFYZT6RyaoUZKmMU6Y7YwG+tFGhv7dwZ8rmR4iwFDrrD99JwqA==", - "peer": true, - "requires": { - "command-exists": "^1.2.8", - "commander": "3.0.2", - "follow-redirects": "^1.12.1", - "fs-extra": "^0.30.0", - "js-sha3": "0.8.0", - "memorystream": "^0.3.1", - "require-from-string": "^2.0.0", - "semver": "^5.5.0", - "tmp": "0.0.33" - }, - "dependencies": { - "commander": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", - "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==", - "peer": true - }, - "fs-extra": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", - "integrity": "sha512-UvSPKyhMn6LEd/WpUaV9C9t3zATuqoqfWc3QdPhPLb58prN9tqYPlPWi8Krxi44loBoUzlobqZ3+8tGpxxSzwA==", - "peer": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0", - "path-is-absolute": "^1.0.0", - "rimraf": "^2.2.8" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", - "peer": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "peer": true, - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "peer": true - } - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "sparse-array": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/sparse-array/-/sparse-array-1.3.2.tgz", - "integrity": "sha512-ZT711fePGn3+kQyLuv1fpd3rNSkNF8vd5Kv2D+qnOANeyKs3fx6bUMGWRPvgTTcYV64QMqZKZwcuaQSP3AZ0tg==" - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", - "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==" - }, - "sponge-case": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sponge-case/-/sponge-case-1.0.1.tgz", - "integrity": "sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - } - } - }, - "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" - }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "peer": true, - "requires": { - "type-fest": "^0.7.1" - }, - "dependencies": { - "type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", - "peer": true - } - } - }, - "stats-lite": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/stats-lite/-/stats-lite-2.2.0.tgz", - "integrity": "sha512-/Kz55rgUIv2KP2MKphwYT/NCuSfAlbbMRv2ZWw7wyXayu230zdtzhxxuXXcvsc6EmmhS8bSJl3uS1wmMHFumbA==", - "requires": { - "isnumber": "~1.0.0" - } - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" - }, - "stream-blackhole": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/stream-blackhole/-/stream-blackhole-1.0.3.tgz", - "integrity": "sha512-7NWl3dkmCd12mPkEwTbBPGxwvxj7L4O9DTjJudn02Fmk9K+RuPaDF8zeGo3kmjbsffU5E1aGpZ1dTR9AaRg6AQ==" - }, - "streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" - }, - "strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==" - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-env-interpolation": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz", - "integrity": "sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==", - "dev": true - }, - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true - }, - "strip-hex-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", - "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", - "requires": { - "is-hex-prefixed": "1.0.0" - } - }, - "strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "requires": { - "min-indent": "^1.0.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dev": true, - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, - "swap-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", - "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "swarm-js": { - "version": "0.1.42", - "resolved": "https://registry.npmjs.org/swarm-js/-/swarm-js-0.1.42.tgz", - "integrity": "sha512-BV7c/dVlA3R6ya1lMlSSNPLYrntt0LUq4YMgy3iwpCIc6rZnS5W2wUoctarZ5pXlpKtxDDf9hNziEkcfrxdhqQ==", - "requires": { - "bluebird": "^3.5.0", - "buffer": "^5.0.5", - "eth-lib": "^0.1.26", - "fs-extra": "^4.0.2", - "got": "^11.8.5", - "mime-types": "^2.1.16", - "mkdirp-promise": "^5.0.1", - "mock-fs": "^4.1.0", - "setimmediate": "^1.0.5", - "tar": "^4.0.2", - "xhr-request": "^1.0.1" - }, - "dependencies": { - "@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==" - }, - "@szmarczak/http-timer": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", - "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", - "requires": { - "defer-to-connect": "^2.0.0" - } - }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "cacheable-request": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", - "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - } - }, - "decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "requires": { - "mimic-response": "^3.1.0" - } - }, - "defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" - }, - "fs-extra": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz", - "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "requires": { - "pump": "^3.0.0" - } - }, - "got": { - "version": "11.8.6", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", - "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", - "requires": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "keyv": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.2.tgz", - "integrity": "sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==", - "requires": { - "json-buffer": "3.0.1" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" - }, - "mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" - }, - "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" - }, - "p-cancelable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==" - }, - "responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "requires": { - "lowercase-keys": "^2.0.0" - } - } - } - }, - "symbol-observable": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", - "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", - "dev": true - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "tar": { - "version": "4.4.19", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.19.tgz", - "integrity": "sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA==", - "requires": { - "chownr": "^1.1.4", - "fs-minipass": "^1.2.7", - "minipass": "^2.9.0", - "minizlib": "^1.3.3", - "mkdirp": "^0.5.5", - "safe-buffer": "^5.2.1", - "yallist": "^3.1.1" - }, - "dependencies": { - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "requires": { - "minimist": "^1.2.6" - } - } - } - }, - "terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - } - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "dependencies": { - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "timed-out": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", - "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==" - }, - "timers-ext": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", - "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", - "requires": { - "es5-ext": "~0.10.46", - "next-tick": "1" - } - }, - "tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" - }, - "tiny-warning": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" - }, - "title-case": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", - "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "requires": { - "os-tmpdir": "~1.0.2" - } - }, - "tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true - }, - "to-readable-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", - "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", - "dev": true - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { - "is-number": "^7.0.0" - } - }, - "toformat": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/toformat/-/toformat-2.0.0.tgz", - "integrity": "sha512-03SWBVop6nU8bpyZCx7SodpYznbZF5R4ljwNLBcTQzKOD9xuihRo/psX58llS1BMFhhAI08H3luot5GoXJz2pQ==" - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" - }, - "tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", - "dev": true, - "requires": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "dependencies": { - "universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true - } - } - }, - "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } - }, - "trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==" - }, - "ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "requires": {} - }, - "ts-jest": { - "version": "27.1.5", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz", - "integrity": "sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==", - "dev": true, - "requires": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "ts-log": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/ts-log/-/ts-log-2.2.5.tgz", - "integrity": "sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA==", - "dev": true - }, - "ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "devOptional": true, - "requires": { - "@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" - }, - "dependencies": { - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "devOptional": true - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "devOptional": true - } - } - }, - "tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - } - } - }, - "tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" - }, - "tsort": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tsort/-/tsort-0.0.1.tgz", - "integrity": "sha512-Tyrf5mxF8Ofs1tNoxA13lFeZ2Zrbd6cKbuH3V+MQ5sb6DtBj5FjrXVsRWT8YvNAQTqNoz66dz1WsbigI22aEnw==", - "peer": true - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", - "peer": true - }, - "tweetnacl-util": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz", - "integrity": "sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw==", - "peer": true - }, - "type": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==" - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==" - }, - "ua-parser-js": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.32.tgz", - "integrity": "sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw==", - "dev": true - }, - "uint8arrays": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-2.1.10.tgz", - "integrity": "sha512-Q9/hhJa2836nQfEJSZTmr+pg9+cDJS9XEAp7N2Vg5MzL3bK/mkMVfjscRGYruP9jNda6MAdf4QD/y78gSzkp6A==", - "requires": { - "multiformats": "^9.4.2" - } - }, - "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", - "dev": true - }, - "undici": { - "version": "5.14.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.14.0.tgz", - "integrity": "sha512-yJlHYw6yXPPsuOH0x2Ib1Km61vu4hLiRRQoafs+WUgX1vO64vgnxiCEN9dpIrhZyHFsai3F0AEj4P9zy19enEQ==", - "requires": { - "busboy": "^1.6.0" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - }, - "unixify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unixify/-/unixify-1.0.0.tgz", - "integrity": "sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==", - "dev": true, - "requires": { - "normalize-path": "^2.1.1" - }, - "dependencies": { - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } - } - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" - }, - "update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "dev": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "upper-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", - "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "upper-case-first": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", - "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - } - }, - "url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "requires": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", - "dev": true, - "requires": { - "prepend-http": "^2.0.0" - } - }, - "url-set-query": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", - "integrity": "sha512-3AChu4NiXquPfeckE5R5cGdiHCMWJx1dwCWOmWIL4KHAziJNOFIYJlpGFeKDvwLPHovZRCxK3cYlwzqI9Vp+Gg==" - }, - "utf-8-validate": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", - "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==" - }, - "util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "requires": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "peer": true - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "devOptional": true - }, - "v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "dependencies": { - "source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true - } - } - }, - "valid-url": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/valid-url/-/valid-url-1.0.9.tgz", - "integrity": "sha512-QQDsV8OnSf5Uc30CKSwG9lnhMPe6exHtTXLRYX8uMwKENy640pU+2BgBL0LRbDh/eYRahNCS7aewCx0wf3NYVA==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "value-or-promise": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz", - "integrity": "sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==", - "dev": true - }, - "varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "requires": { - "browser-process-hrtime": "^1.0.0" - } - }, - "w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "requires": { - "xml-name-validator": "^3.0.0" - } - }, - "walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "requires": { - "makeerror": "1.0.12" - } - }, - "wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", - "dev": true, - "requires": { - "defaults": "^1.0.3" - } - }, - "web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", - "dev": true - }, - "web3": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3/-/web3-1.8.1.tgz", - "integrity": "sha512-tAqFsQhGv340C9OgRJIuoScN7f7wa1tUvsnnDUMt9YE6J4gcm7TV2Uwv+KERnzvV+xgdeuULYpsioRRNKrUvoQ==", - "requires": { - "web3-bzz": "1.8.1", - "web3-core": "1.8.1", - "web3-eth": "1.8.1", - "web3-eth-personal": "1.8.1", - "web3-net": "1.8.1", - "web3-shh": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-bzz": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-bzz/-/web3-bzz-1.8.1.tgz", - "integrity": "sha512-dJJHS84nvpoxv6ijTMkdUSlRr5beCXNtx4UZcrFLHBva8dT63QEtKdLyDt2AyMJJdVzTCk78uir/6XtVWrdS6w==", - "requires": { - "@types/node": "^12.12.6", - "got": "12.1.0", - "swarm-js": "^0.1.40" - }, - "dependencies": { - "@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==" - }, - "@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "requires": { - "defer-to-connect": "^2.0.1" - } - }, - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - }, - "cacheable-lookup": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-6.1.0.tgz", - "integrity": "sha512-KJ/Dmo1lDDhmW2XDPMo+9oiy/CeqosPguPCrgcVzKyZrL6pM1gU2GmPY/xo6OQPTUaA/c0kwHuywB4E6nmT9ww==" - }, - "cacheable-request": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", - "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "requires": { - "pump": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" - } - } - }, - "decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "requires": { - "mimic-response": "^3.1.0" - } - }, - "defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" - }, - "form-data-encoder": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.1.tgz", - "integrity": "sha512-EFRDrsMm/kyqbTQocNvRXMLjc7Es2Vk+IQFx/YW7hkUH1eBl4J1fqiP34l74Yt0pFLCNpc06fkbVk00008mzjg==" - }, - "got": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/got/-/got-12.1.0.tgz", - "integrity": "sha512-hBv2ty9QN2RdbJJMK3hesmSkFTjVIHyIDDbssCKnSmq62edGgImJWD10Eb1k77TiV1bxloxqcFAVK8+9pkhOig==", - "requires": { - "@sindresorhus/is": "^4.6.0", - "@szmarczak/http-timer": "^5.0.1", - "@types/cacheable-request": "^6.0.2", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^6.0.4", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "form-data-encoder": "1.7.1", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^2.0.0" - } - }, - "http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "requires": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "keyv": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.2.tgz", - "integrity": "sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==", - "requires": { - "json-buffer": "3.0.1" - } - }, - "lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==" - }, - "mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" - }, - "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" - }, - "p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==" - }, - "quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" - }, - "responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "requires": { - "lowercase-keys": "^2.0.0" - }, - "dependencies": { - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" - } - } - } - } - }, - "web3-core": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.8.1.tgz", - "integrity": "sha512-LbRZlJH2N6nS3n3Eo9Y++25IvzMY7WvYnp4NM/Ajhh97dAdglYs6rToQ2DbL2RLvTYmTew4O/y9WmOk4nq9COw==", - "requires": { - "@types/bn.js": "^5.1.0", - "@types/node": "^12.12.6", - "bignumber.js": "^9.0.0", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-requestmanager": "1.8.1", - "web3-utils": "1.8.1" - }, - "dependencies": { - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - }, - "bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==" - } - } - }, - "web3-core-helpers": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-helpers/-/web3-core-helpers-1.8.1.tgz", - "integrity": "sha512-ClzNO6T1S1gifC+BThw0+GTfcsjLEY8T1qUp6Ly2+w4PntAdNtKahxWKApWJ0l9idqot/fFIDXwO3Euu7I0Xqw==", - "requires": { - "web3-eth-iban": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-core-method": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.8.1.tgz", - "integrity": "sha512-oYGRodktfs86NrnFwaWTbv2S38JnpPslFwSSARwFv4W9cjbGUW3LDeA5MKD/dRY+ssZ5OaekeMsUCLoGhX68yA==", - "requires": { - "@ethersproject/transactions": "^5.6.2", - "web3-core-helpers": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-core-promievent": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-promievent/-/web3-core-promievent-1.8.1.tgz", - "integrity": "sha512-9mxqHlgB0MrZI4oUIRFkuoJMNj3E7btjrMv3sMer/Z9rYR1PfoSc1aAokw4rxKIcAh+ylVtd/acaB2HKB7aRPg==", - "requires": { - "eventemitter3": "4.0.4" - } - }, - "web3-core-requestmanager": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-requestmanager/-/web3-core-requestmanager-1.8.1.tgz", - "integrity": "sha512-x+VC2YPPwZ1khvqA6TA69LvfFCOZXsoUVOxmTx/vIN22PrY9KzKhxcE7pBSiGhmab1jtmRYXUbcQSVpAXqL8cw==", - "requires": { - "util": "^0.12.0", - "web3-core-helpers": "1.8.1", - "web3-providers-http": "1.8.1", - "web3-providers-ipc": "1.8.1", - "web3-providers-ws": "1.8.1" - } - }, - "web3-core-subscriptions": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-core-subscriptions/-/web3-core-subscriptions-1.8.1.tgz", - "integrity": "sha512-bmCMq5OeA3E2vZUh8Js1HcJbhwtsE+yeMqGC4oIZB3XsL5SLqyKLB/pU+qUYqQ9o4GdcrFTDPhPg1bgvf7p1Pw==", - "requires": { - "eventemitter3": "4.0.4", - "web3-core-helpers": "1.8.1" - } - }, - "web3-eth": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-1.8.1.tgz", - "integrity": "sha512-LgyzbhFqiFRd8M8sBXoFN4ztzOnkeckl3H/9lH5ek7AdoRMhBg7tYpYRP3E5qkhd/q+yiZmcUgy1AF6NHrC1wg==", - "requires": { - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-eth-accounts": "1.8.1", - "web3-eth-contract": "1.8.1", - "web3-eth-ens": "1.8.1", - "web3-eth-iban": "1.8.1", - "web3-eth-personal": "1.8.1", - "web3-net": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-eth-abi": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.8.1.tgz", - "integrity": "sha512-0mZvCRTIG0UhDhJwNQJgJxu4b4DyIpuMA0GTfqxqeuqzX4Q/ZvmoNurw0ExTfXaGPP82UUmmdkRi6FdZOx+C6w==", - "requires": { - "@ethersproject/abi": "^5.6.3", - "web3-utils": "1.8.1" - } - }, - "web3-eth-accounts": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-1.8.1.tgz", - "integrity": "sha512-mgzxSYgN54/NsOFBO1Fq1KkXp1S5KlBvI/DlgvajU72rupoFMq6Cu6Yp9GUaZ/w2ij9PzEJuFJk174XwtfMCmg==", - "requires": { - "@ethereumjs/common": "2.5.0", - "@ethereumjs/tx": "3.3.2", - "crypto-browserify": "3.12.0", - "eth-lib": "0.2.8", - "ethereumjs-util": "^7.0.10", - "scrypt-js": "^3.0.1", - "uuid": "^9.0.0", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-utils": "1.8.1" - }, - "dependencies": { - "eth-lib": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz", - "integrity": "sha512-ArJ7x1WcWOlSpzdoTBX8vkwlkSQ85CjjifSZtV4co64vWxSV8geWfPI9x4SVYu3DSxnX4yWFVTtGL+j9DUFLNw==", - "requires": { - "bn.js": "^4.11.6", - "elliptic": "^6.4.0", - "xhr-request-promise": "^0.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - } - }, - "uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==" - } - } - }, - "web3-eth-contract": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-1.8.1.tgz", - "integrity": "sha512-1wphnl+/xwCE2io44JKnN+ti3oa47BKRiVzvWd42icwRbcpFfRxH9QH+aQX3u8VZIISNH7dAkTWpGIIJgGFTmg==", - "requires": { - "@types/bn.js": "^5.1.0", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-eth-ens": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-1.8.1.tgz", - "integrity": "sha512-FT8xTI9uN8RxeBQa/W8pLa2aoFh4+EE34w7W2271LICKzla1dtLyb6XSdn48vsUcPmhWsTVk9mO9RTU0l4LGQQ==", - "requires": { - "content-hash": "^2.5.2", - "eth-ens-namehash": "2.0.8", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-promievent": "1.8.1", - "web3-eth-abi": "1.8.1", - "web3-eth-contract": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-eth-iban": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-iban/-/web3-eth-iban-1.8.1.tgz", - "integrity": "sha512-DomoQBfvIdtM08RyMGkMVBOH0vpOIxSSQ+jukWk/EkMLGMWJtXw/K2c2uHAeq3L/VPWNB7zXV2DUEGV/lNE2Dg==", - "requires": { - "bn.js": "^5.2.1", - "web3-utils": "1.8.1" - } - }, - "web3-eth-personal": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.8.1.tgz", - "integrity": "sha512-myIYMvj7SDIoV9vE5BkVdon3pya1WinaXItugoii2VoTcQNPOtBxmYVH+XS5ErzCJlnxzphpQrkywyY64bbbCA==", - "requires": { - "@types/node": "^12.12.6", - "web3-core": "1.8.1", - "web3-core-helpers": "1.8.1", - "web3-core-method": "1.8.1", - "web3-net": "1.8.1", - "web3-utils": "1.8.1" - }, - "dependencies": { - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - } - } - }, - "web3-net": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-net/-/web3-net-1.8.1.tgz", - "integrity": "sha512-LyEJAwogdFo0UAXZqoSJGFjopdt+kLw0P00FSZn2yszbgcoI7EwC+nXiOsEe12xz4LqpYLOtbR7+gxgiTVjjHQ==", - "requires": { - "web3-core": "1.8.1", - "web3-core-method": "1.8.1", - "web3-utils": "1.8.1" - } - }, - "web3-providers-http": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.8.1.tgz", - "integrity": "sha512-1Zyts4O9W/UNEPkp+jyL19Jc3D15S4yp8xuLTjVhcUEAlHo24NDWEKxtZGUuHk4HrKL2gp8OlsDbJ7MM+ESDgg==", - "requires": { - "abortcontroller-polyfill": "^1.7.3", - "cross-fetch": "^3.1.4", - "es6-promise": "^4.2.8", - "web3-core-helpers": "1.8.1" - } - }, - "web3-providers-ipc": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-ipc/-/web3-providers-ipc-1.8.1.tgz", - "integrity": "sha512-nw/W5nclvi+P2z2dYkLWReKLnocStflWqFl+qjtv0xn3MrUTyXMzSF0+61i77+16xFsTgzo4wS/NWIOVkR0EFA==", - "requires": { - "oboe": "2.1.5", - "web3-core-helpers": "1.8.1" - } - }, - "web3-providers-ws": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-1.8.1.tgz", - "integrity": "sha512-TNefIDAMpdx57+YdWpYZ/xdofS0P+FfKaDYXhn24ie/tH9G+AB+UBSOKnjN0KSadcRSCMBwGPRiEmNHPavZdsA==", - "requires": { - "eventemitter3": "4.0.4", - "web3-core-helpers": "1.8.1", - "websocket": "^1.0.32" + "engines": { + "node": ">=8.0.0" } }, - "web3-shh": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-shh/-/web3-shh-1.8.1.tgz", - "integrity": "sha512-sqHgarnfcY2Qt3PYS4R6YveHrDy7hmL09yeLLHHCI+RKirmjLVqV0rc5LJWUtlbYI+kDoa5gbgde489M9ZAC0g==", - "requires": { - "web3-core": "1.8.1", - "web3-core-method": "1.8.1", - "web3-core-subscriptions": "1.8.1", - "web3-net": "1.8.1" + "node_modules/web3-shh": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-shh/-/web3-shh-1.10.3.tgz", + "integrity": "sha512-cAZ60CPvs9azdwMSQ/PSUdyV4PEtaW5edAZhu3rCXf6XxQRliBboic+AvwUvB6j3eswY50VGa5FygfVmJ1JVng==", + "hasInstallScript": true, + "license": "LGPL-3.0", + "dependencies": { + "web3-core": "1.10.3", + "web3-core-method": "1.10.3", + "web3-core-subscriptions": "1.10.3", + "web3-net": "1.10.3" + }, + "engines": { + "node": ">=8.0.0" } }, - "web3-utils": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.8.1.tgz", - "integrity": "sha512-LgnM9p6V7rHHUGfpMZod+NST8cRfGzJ1BTXAyNo7A9cJX9LczBfSRxJp+U/GInYe9mby40t3v22AJdlELibnsQ==", - "requires": { + "node_modules/web3-utils": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.3.tgz", + "integrity": "sha512-OqcUrEE16fDBbGoQtZXWdavsPzbGIDc5v3VrRTZ0XrIpefC/viZ1ZU9bGEemazyS0catk/3rkOOxpzTfY+XsyQ==", + "license": "LGPL-3.0", + "dependencies": { + "@ethereumjs/util": "^8.1.0", "bn.js": "^5.2.1", "ethereum-bloom-filters": "^1.0.6", - "ethereumjs-util": "^7.1.0", + "ethereum-cryptography": "^2.1.2", "ethjs-unit": "0.1.6", "number-to-bn": "1.7.0", "randombytes": "^2.1.0", "utf8": "3.0.0" }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - } - } + "engines": { + "node": ">=8.0.0" } }, - "webcrypto-core": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.7.5.tgz", - "integrity": "sha512-gaExY2/3EHQlRNNNVSrbG2Cg94Rutl7fAaKILS1w8ZDhGxdFOaw6EbCfHIxPy9vt/xwp5o0VQAx9aySPF6hU1A==", + "node_modules/webcrypto-core": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.7.7.tgz", + "integrity": "sha512-7FjigXNsBfopEj+5DV2nhNpfic2vumtjjgPmeDKk45z+MJwXKKfhPB7118Pfzrmh4jqOMST6Ch37iPAHoImg5g==", "dev": true, - "requires": { - "@peculiar/asn1-schema": "^2.1.6", + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.3.6", "@peculiar/json-schema": "^1.1.12", "asn1js": "^3.0.1", "pvtsutils": "^1.3.2", "tslib": "^2.4.0" } }, - "webidl-conversions": { + "node_modules/webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } }, - "websocket": { + "node_modules/websocket": { "version": "1.0.34", "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", - "requires": { + "license": "Apache-2.0", + "dependencies": { "bufferutil": "^4.0.1", "debug": "^2.2.0", "es5-ext": "^0.10.50", @@ -33341,168 +19879,241 @@ "utf-8-validate": "^5.0.2", "yaeti": "^0.0.6" }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/websocket/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } + "ms": "2.0.0" } }, - "whatwg-encoding": { + "node_modules/websocket/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/whatwg-encoding": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "iconv-lite": "0.4.24" } }, - "whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==", - "dev": true - }, - "whatwg-mimetype": { + "node_modules/whatwg-mimetype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true + "dev": true, + "license": "MIT" }, - "whatwg-url": { + "node_modules/whatwg-url": { "version": "8.7.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "lodash": "^4.7.0", "tr46": "^2.1.0", "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" } }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "license": "ISC", + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "which-boxed-primitive": { + "node_modules/which-boxed-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", "is-number-object": "^1.0.4", "is-string": "^1.0.5", "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "which-collection": { + "node_modules/which-collection": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "is-map": "^2.0.1", "is-set": "^2.0.1", "is-weakmap": "^2.0.1", "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", - "dev": true + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "dev": true, + "license": "ISC" }, - "which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "requires": { + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "license": "MIT", + "dependencies": { "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", + "call-bind": "^1.0.4", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "workerpool": { + "node_modules/workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", "peer": true }, - "wrap-ansi": { + "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { + "license": "MIT", + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, - "write-file-atomic": { + "node_modules/write-file-atomic": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dev": true, - "requires": { + "license": "ISC", + "dependencies": { "imurmurhash": "^0.1.4", "is-typedarray": "^1.0.0", "signal-exit": "^3.0.2", "typedarray-to-buffer": "^3.1.5" } }, - "ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "requires": {} + "node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "xhr": { + "node_modules/xhr": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", - "requires": { + "license": "MIT", + "dependencies": { "global": "~4.4.0", "is-function": "^1.0.1", "parse-headers": "^2.0.0", "xtend": "^4.0.0" } }, - "xhr-request": { + "node_modules/xhr-request": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xhr-request/-/xhr-request-1.1.0.tgz", "integrity": "sha512-Y7qzEaR3FDtL3fP30k9wO/e+FBnBByZeybKOhASsGP30NIkRAAkKD/sCnLvgEfAIEC1rcmK7YG8f4oEnIrrWzA==", - "requires": { + "license": "MIT", + "dependencies": { "buffer-to-arraybuffer": "^0.0.5", "object-assign": "^4.1.1", "query-string": "^5.0.1", @@ -33512,64 +20123,86 @@ "xhr": "^2.0.4" } }, - "xhr-request-promise": { + "node_modules/xhr-request-promise": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/xhr-request-promise/-/xhr-request-promise-0.1.3.tgz", "integrity": "sha512-YUBytBsuwgitWtdRzXDDkWAXzhdGB8bYm0sSzMPZT7Z2MBjMSTHFsyCT1yCRATY+XC69DUrQraRAEgcoCRaIPg==", - "requires": { + "license": "MIT", + "dependencies": { "xhr-request": "^1.1.0" } }, - "xml-name-validator": { + "node_modules/xml-name-validator": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, - "xmlchars": { + "node_modules/xmlchars": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true + "dev": true, + "license": "MIT" }, - "xtend": { + "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } }, - "y18n": { + "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } }, - "yaeti": { + "node_modules/yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==" + "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", + "license": "MIT", + "engines": { + "node": ">=0.10.32" + } }, - "yallist": { + "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC" }, - "yaml": { + "node_modules/yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 6" + } }, - "yaml-ast-parser": { + "node_modules/yaml-ast-parser": { "version": "0.0.43", "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, - "yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -33578,56 +20211,98 @@ "y18n": "^5.0.5", "yargs-parser": "^21.1.1" }, - "dependencies": { - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - } + "engines": { + "node": ">=12" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "license": "ISC", + "engines": { + "node": ">=10" + } }, - "yargs-unparser": { + "node_modules/yargs-unparser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "peer": true, - "requires": { + "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", "flat": "^5.0.2", "is-plain-obj": "^2.1.0" }, - "dependencies": { - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "peer": true - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "peer": true - } + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs-unparser/node_modules/decamelize": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs-unparser/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" } }, - "yn": { + "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "devOptional": true + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 5a0a3e22..b70f4c99 100644 --- a/package.json +++ b/package.json @@ -80,12 +80,13 @@ "eslint": "^8.19.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.25.4", - "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-prettier": "5.0.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unused-imports": "^2.0.0", "install-peers-cli": "^2.2.0", "jest": "^27.5.1", + "prettier": "^3.2.2", "ts-jest": "^27.1.3", "ts-node": "^10.8.2", "typescript": "^4.7.4", diff --git a/src/entities/DistributionCampaignBase.ts b/src/entities/DistributionCampaignBase.ts index 888cda79..f2ea8b42 100644 --- a/src/entities/DistributionCampaignBase.ts +++ b/src/entities/DistributionCampaignBase.ts @@ -11,59 +11,59 @@ import { Token } from './token' const MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY: Record = { [ChainId.RINKEBY]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.RINKEBY).decimals).toString(), - ChainId.RINKEBY + ChainId.RINKEBY, ), [ChainId.MAINNET]: CurrencyAmount.nativeCurrency( parseUnits('0.1', Token.getNative(ChainId.MAINNET).decimals).toString(), - ChainId.MAINNET + ChainId.MAINNET, ), [ChainId.XDAI]: CurrencyAmount.nativeCurrency( parseUnits('1000', Token.getNative(ChainId.XDAI).decimals).toString(), - ChainId.XDAI + ChainId.XDAI, ), [ChainId.ARBITRUM_ONE]: CurrencyAmount.nativeCurrency( parseUnits('0.1', Token.getNative(ChainId.ARBITRUM_ONE).decimals).toString(), - ChainId.ARBITRUM_ONE + ChainId.ARBITRUM_ONE, ), [ChainId.ARBITRUM_RINKEBY]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.ARBITRUM_RINKEBY).decimals).toString(), - ChainId.ARBITRUM_RINKEBY + ChainId.ARBITRUM_RINKEBY, ), [ChainId.ARBITRUM_GOERLI]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.ARBITRUM_GOERLI).decimals).toString(), - ChainId.ARBITRUM_GOERLI + ChainId.ARBITRUM_GOERLI, ), [ChainId.POLYGON]: CurrencyAmount.nativeCurrency( parseUnits('0', Token.getNative(ChainId.POLYGON).decimals).toString(), - ChainId.POLYGON + ChainId.POLYGON, ), [ChainId.GOERLI]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.GOERLI).decimals).toString(), - ChainId.GOERLI + ChainId.GOERLI, ), [ChainId.OPTIMISM_MAINNET]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.OPTIMISM_MAINNET).decimals).toString(), - ChainId.OPTIMISM_MAINNET + ChainId.OPTIMISM_MAINNET, ), [ChainId.OPTIMISM_GOERLI]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.OPTIMISM_GOERLI).decimals).toString(), - ChainId.OPTIMISM_GOERLI + ChainId.OPTIMISM_GOERLI, ), [ChainId.BSC_MAINNET]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.BSC_MAINNET).decimals).toString(), - ChainId.BSC_MAINNET + ChainId.BSC_MAINNET, ), [ChainId.BSC_TESTNET]: CurrencyAmount.nativeCurrency( parseUnits('0.05', Token.getNative(ChainId.BSC_TESTNET).decimals).toString(), - ChainId.BSC_TESTNET + ChainId.BSC_TESTNET, ), [ChainId.ZK_SYNC_ERA_MAINNET]: CurrencyAmount.nativeCurrency( parseUnits('0', Token.getNative(ChainId.ZK_SYNC_ERA_MAINNET).decimals).toString(), - ChainId.ZK_SYNC_ERA_MAINNET + ChainId.ZK_SYNC_ERA_MAINNET, ), [ChainId.ZK_SYNC_ERA_TESTNET]: CurrencyAmount.nativeCurrency( parseUnits('0', Token.getNative(ChainId.ZK_SYNC_ERA_TESTNET).decimals).toString(), - ChainId.ZK_SYNC_ERA_TESTNET + ChainId.ZK_SYNC_ERA_TESTNET, ), } @@ -152,7 +152,7 @@ export class DistributionCampaignBase { (accumulator, remainingRewardAmount) => { return accumulator.add(remainingRewardAmount.nativeCurrencyAmount) }, - CurrencyAmount.nativeCurrency('0', this.chainId) + CurrencyAmount.nativeCurrency('0', this.chainId), ) const yieldInPeriod = cumulativeRemainingRewardAmountNativeCurrency.divide(stakedValueNativeCurrency) diff --git a/src/entities/currency.ts b/src/entities/currency.ts index dbd52f1d..e9f764b3 100644 --- a/src/entities/currency.ts +++ b/src/entities/currency.ts @@ -26,7 +26,7 @@ export class Currency { 18, 'ETH', 'Ether', - '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000' + '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000', ) /** * Gnosis Chain native currency diff --git a/src/entities/fractions/currencyAmount.ts b/src/entities/fractions/currencyAmount.ts index 66582073..38d1a04d 100644 --- a/src/entities/fractions/currencyAmount.ts +++ b/src/entities/fractions/currencyAmount.ts @@ -62,7 +62,7 @@ export class CurrencyAmount extends Fraction { public toFixed( decimalPlaces: number = this.currency.decimals, format?: object, - rounding: Rounding = Rounding.ROUND_DOWN + rounding: Rounding = Rounding.ROUND_DOWN, ): string { invariant(decimalPlaces <= this.currency.decimals, 'DECIMALS') return super.toFixed(decimalPlaces, format, rounding) diff --git a/src/entities/fractions/fraction.ts b/src/entities/fractions/fraction.ts index 3abcc0de..909e8d32 100644 --- a/src/entities/fractions/fraction.ts +++ b/src/entities/fractions/fraction.ts @@ -54,9 +54,9 @@ export class Fraction { return new Fraction( JSBI.add( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(otherParsed.numerator, this.denominator) + JSBI.multiply(otherParsed.numerator, this.denominator), ), - JSBI.multiply(this.denominator, otherParsed.denominator) + JSBI.multiply(this.denominator, otherParsed.denominator), ) } @@ -68,9 +68,9 @@ export class Fraction { return new Fraction( JSBI.subtract( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(otherParsed.numerator, this.denominator) + JSBI.multiply(otherParsed.numerator, this.denominator), ), - JSBI.multiply(this.denominator, otherParsed.denominator) + JSBI.multiply(this.denominator, otherParsed.denominator), ) } @@ -78,7 +78,7 @@ export class Fraction { const otherParsed = other instanceof Fraction ? other : new Fraction(parseBigintIsh(other)) return JSBI.lessThan( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(otherParsed.numerator, this.denominator) + JSBI.multiply(otherParsed.numerator, this.denominator), ) } @@ -86,7 +86,7 @@ export class Fraction { const otherParsed = other instanceof Fraction ? other : new Fraction(parseBigintIsh(other)) return JSBI.equal( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(otherParsed.numerator, this.denominator) + JSBI.multiply(otherParsed.numerator, this.denominator), ) } @@ -94,7 +94,7 @@ export class Fraction { const otherParsed = other instanceof Fraction ? other : new Fraction(parseBigintIsh(other)) return JSBI.greaterThan( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(otherParsed.numerator, this.denominator) + JSBI.multiply(otherParsed.numerator, this.denominator), ) } @@ -102,7 +102,7 @@ export class Fraction { const otherParsed = other instanceof Fraction ? other : new Fraction(parseBigintIsh(other)) return new Fraction( JSBI.multiply(this.numerator, otherParsed.numerator), - JSBI.multiply(this.denominator, otherParsed.denominator) + JSBI.multiply(this.denominator, otherParsed.denominator), ) } @@ -110,14 +110,14 @@ export class Fraction { const otherParsed = other instanceof Fraction ? other : new Fraction(parseBigintIsh(other)) return new Fraction( JSBI.multiply(this.numerator, otherParsed.denominator), - JSBI.multiply(this.denominator, otherParsed.numerator) + JSBI.multiply(this.denominator, otherParsed.numerator), ) } public toSignificant( significantDigits: number, format: object = { groupSeparator: '' }, - rounding: Rounding = Rounding.ROUND_HALF_UP + rounding: Rounding = Rounding.ROUND_HALF_UP, ): string { invariant(Number.isInteger(significantDigits), `${significantDigits} is not an integer.`) invariant(significantDigits > 0, `${significantDigits} is not positive.`) @@ -132,7 +132,7 @@ export class Fraction { public toFixed( decimalPlaces: number, format: object = { groupSeparator: '' }, - rounding: Rounding = Rounding.ROUND_HALF_UP + rounding: Rounding = Rounding.ROUND_HALF_UP, ): string { invariant(Number.isInteger(decimalPlaces), `${decimalPlaces} is not an integer.`) invariant(decimalPlaces >= 0, `${decimalPlaces} is negative.`) diff --git a/src/entities/fractions/price.ts b/src/entities/fractions/price.ts index 9de988a1..75e3153a 100644 --- a/src/entities/fractions/price.ts +++ b/src/entities/fractions/price.ts @@ -38,7 +38,7 @@ export class Price extends Fraction { quoteCurrency: pair.reserve0.currency, denominator: pair.reserve1.raw, numerator: pair.reserve0.raw, - }) + }), ) } return prices.slice(1).reduce((accumulator, currentValue) => accumulator.multiply(currentValue), prices[0]) @@ -52,7 +52,7 @@ export class Price extends Fraction { this.quoteCurrency = quoteCurrency this.scalar = new Fraction( JSBI.exponentiate(TEN, JSBI.BigInt(baseCurrency.decimals)), - JSBI.exponentiate(TEN, JSBI.BigInt(quoteCurrency.decimals)) + JSBI.exponentiate(TEN, JSBI.BigInt(quoteCurrency.decimals)), ) } diff --git a/src/entities/fractions/priced-token-amount.ts b/src/entities/fractions/priced-token-amount.ts index 22cbfd5e..f880d4bb 100644 --- a/src/entities/fractions/priced-token-amount.ts +++ b/src/entities/fractions/priced-token-amount.ts @@ -19,8 +19,8 @@ export class PricedTokenAmount extends TokenAmount { this.token.price.quoteCurrency, parseUnits( this.multiply(this.token.price).toFixed(this.token.price.quoteCurrency.decimals), - this.token.price.quoteCurrency.decimals - ).toString() + this.token.price.quoteCurrency.decimals, + ).toString(), ) } } diff --git a/src/entities/kpi-token.ts b/src/entities/kpi-token.ts index b2f9982d..f285b500 100644 --- a/src/entities/kpi-token.ts +++ b/src/entities/kpi-token.ts @@ -20,7 +20,7 @@ export class KpiToken extends PricedToken { collateral: PricedTokenAmount, kpiId: string, symbol?: string, - name?: string + name?: string, ) { const collateralTokenNativeCurrency = collateral.nativeCurrencyAmount const kpiTokenPrice = new Decimal(collateralTokenNativeCurrency.raw.toString()).dividedBy(totalSupply.toString()) @@ -37,7 +37,7 @@ export class KpiToken extends PricedToken { numerator: parseUnits(kpiTokenPrice.toFixed(nativeCurrency.decimals), nativeCurrency.decimals).toString(), }), symbol, - name + name, ) // decimals are always 18 for kpi tokens invariant(collateral.token.chainId === chainId, 'inconsistent chain id in collateral') this.totalSupply = new TokenAmount(this, totalSupply) diff --git a/src/entities/pair.ts b/src/entities/pair.ts index ad36eb51..982c653f 100644 --- a/src/entities/pair.ts +++ b/src/entities/pair.ts @@ -98,7 +98,7 @@ export class Pair { public static getAddress( tokenA: Token, tokenB: Token, - platform: UniswapV2RoutablePlatform = UniswapV2RoutablePlatform.SWAPR + platform: UniswapV2RoutablePlatform = UniswapV2RoutablePlatform.SWAPR, ): string { const tokens = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA] // does safety checks const chainId = tokenA.chainId @@ -115,7 +115,7 @@ export class Pair { [tokens[1].address]: getCreate2Address( platform.factoryAddress[chainId] as string, keccak256(['bytes'], [pack(['address', 'address'], [tokens[0].address, tokens[1].address])]), - platform.initCodeHash + platform.initCodeHash, ), }, }, @@ -131,7 +131,7 @@ export class Pair { swapFee?: BigintIsh, protocolFeeDenominator?: BigintIsh, platform: UniswapV2RoutablePlatform = UniswapV2RoutablePlatform.SWAPR, - liquidityMiningCampaigns: LiquidityMiningCampaign[] = [] + liquidityMiningCampaigns: LiquidityMiningCampaign[] = [], ) { invariant(tokenAmountA.token.chainId === tokenAmountB.token.chainId, 'CHAIN_ID') const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks @@ -228,7 +228,7 @@ export class Pair { const denominator = JSBI.add(JSBI.multiply(inputReserve.raw, _10000), inputAmountWithFee) const outputAmount = new TokenAmount( inputAmount.token.equals(this.token0) ? this.token1 : this.token0, - JSBI.divide(numerator, denominator) + JSBI.divide(numerator, denominator), ) if (JSBI.equal(outputAmount.raw, ZERO)) { throw new InsufficientInputAmountError() @@ -241,7 +241,7 @@ export class Pair { this.swapFee, this.protocolFeeDenominator, this.platform, - this.liquidityMiningCampaigns + this.liquidityMiningCampaigns, ), ] } @@ -261,11 +261,11 @@ export class Pair { const numerator = JSBI.multiply(JSBI.multiply(inputReserve.raw, outputAmount.raw), _10000) const denominator = JSBI.multiply( JSBI.subtract(outputReserve.raw, outputAmount.raw), - JSBI.subtract(_10000, parseBigintIsh(this.swapFee)) + JSBI.subtract(_10000, parseBigintIsh(this.swapFee)), ) const inputAmount = new TokenAmount( outputAmount.token.equals(this.token0) ? this.token1 : this.token0, - JSBI.add(JSBI.divide(numerator, denominator), ONE) + JSBI.add(JSBI.divide(numerator, denominator), ONE), ) return [ inputAmount, @@ -275,7 +275,7 @@ export class Pair { this.swapFee, this.protocolFeeDenominator, this.platform, - this.liquidityMiningCampaigns + this.liquidityMiningCampaigns, ), ] } @@ -283,7 +283,7 @@ export class Pair { public getLiquidityMinted( totalSupply: TokenAmount, tokenAmountA: TokenAmount, - tokenAmountB: TokenAmount + tokenAmountB: TokenAmount, ): TokenAmount { invariant(totalSupply.token.equals(this.liquidityToken), 'LIQUIDITY') const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks @@ -310,7 +310,7 @@ export class Pair { totalSupply: TokenAmount, liquidity: TokenAmount, feeOn = false, - kLast?: BigintIsh + kLast?: BigintIsh, ): TokenAmount { invariant(this.involvesToken(token), 'TOKEN') invariant(totalSupply.token.equals(this.liquidityToken), 'TOTAL_SUPPLY') @@ -341,7 +341,7 @@ export class Pair { return new TokenAmount( token, - JSBI.divide(JSBI.multiply(liquidity.raw, this.reserveOf(token).raw), totalSupplyAdjusted.raw) + JSBI.divide(JSBI.multiply(liquidity.raw, this.reserveOf(token).raw), totalSupplyAdjusted.raw), ) } } diff --git a/src/entities/platforms-breakdown.ts b/src/entities/platforms-breakdown.ts index 6b1429f0..3e2ddb30 100644 --- a/src/entities/platforms-breakdown.ts +++ b/src/entities/platforms-breakdown.ts @@ -24,7 +24,7 @@ export class Breakdown { platforms .reduce((accumulator, platform) => accumulator.add(platform.percentage), new Percent('0', '100')) .toFixed(2) === '1.00', - 'Inconsistent breakdown percentage' + 'Inconsistent breakdown percentage', ) if (input instanceof Token && output instanceof Token) invariant(input.chainId === output.chainId, 'Input and output tokens must be on the same chain') diff --git a/src/entities/route.ts b/src/entities/route.ts index 42cace91..e2cfa133 100644 --- a/src/entities/route.ts +++ b/src/entities/route.ts @@ -17,22 +17,22 @@ export class Route { invariant(pairs.length > 0, 'PAIRS') invariant( pairs.every((pair) => pair.chainId === pairs[0].chainId), - 'CHAIN_IDS' + 'CHAIN_IDS', ) invariant( pairs.every((pair) => pair.platform === pairs[0].platform), - 'PLATFORM' + 'PLATFORM', ) invariant( (input instanceof Token && pairs[0].involvesToken(input)) || (Currency.isNative(input) && pairs[0].involvesToken(Token.getNativeWrapper(pairs[0].chainId))), - 'INPUT' + 'INPUT', ) invariant( typeof output === 'undefined' || (output instanceof Token && pairs[pairs.length - 1].involvesToken(output)) || (Currency.isNative(output) && pairs[pairs.length - 1].involvesToken(Token.getNativeWrapper(pairs[0].chainId))), - 'OUTPUT' + 'OUTPUT', ) const path: Token[] = [input instanceof Token ? input : Token.getNativeWrapper(pairs[0].chainId)] diff --git a/src/entities/single-sided-liquidity-mining-campaign.ts b/src/entities/single-sided-liquidity-mining-campaign.ts index 33628e46..030cb079 100644 --- a/src/entities/single-sided-liquidity-mining-campaign.ts +++ b/src/entities/single-sided-liquidity-mining-campaign.ts @@ -15,7 +15,7 @@ export class SingleSidedLiquidityMiningCampaign extends DistributionCampaignBase staked: PricedTokenAmount, locked: boolean, stakingCap: TokenAmount, - address?: string + address?: string, ) { invariant(staked.token.equals(stakeToken), 'STAKED_LP_TOKEN') super({ diff --git a/src/entities/token.ts b/src/entities/token.ts index 82a196dd..35ae9533 100644 --- a/src/entities/token.ts +++ b/src/entities/token.ts @@ -24,14 +24,14 @@ export class Token extends Currency { '0xF861378B543525ae0C47d33C90C954Dc774Ac1F9', 18, 'ARB', - 'Arbitrum' + 'Arbitrum', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0x912CE59144191C1204E64559FE8253a0e49E6548', 18, 'ARB', - 'Arbitrum' + 'Arbitrum', ), [ChainId.MAINNET]: new Token(ChainId.MAINNET, '0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1', 18, 'ARB', 'Arbitrum'), } @@ -42,7 +42,7 @@ export class Token extends Currency { '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56', 18, 'BUSD', - 'Binance-Peg BUSD Token' + 'Binance-Peg BUSD Token', ), } @@ -52,7 +52,7 @@ export class Token extends Currency { '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82', 18, 'CAKE', - 'PancakeSwap Token' + 'PancakeSwap Token', ), } @@ -62,21 +62,21 @@ export class Token extends Currency { '0xCEf91E326978fEDbb14825E17DAFCa18508E6232', 18, 'DXD', - 'DXdao' + 'DXdao', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0xC3Ae0333F0F34aa734D5493276223d95B8F9Cb37', 18, 'DXD', - 'DXdao' + 'DXdao', ), [ChainId.ARBITRUM_RINKEBY]: new Token( ChainId.ARBITRUM_RINKEBY, '0x5d47100B0854525685907D5D773b92c22c0c745e', 18, 'DXD', - 'DXdao' + 'DXdao', ), [ChainId.MAINNET]: new Token(ChainId.MAINNET, '0xa1d65E8fB6e87b60FECCBc582F7f97804B725521', 18, 'DXD', 'DXdao'), [ChainId.RINKEBY]: new Token(ChainId.RINKEBY, '0x554898A0BF98aB0C03ff86C7DccBE29269cc4d29', 18, 'DXD', 'DXdao'), @@ -85,7 +85,7 @@ export class Token extends Currency { '0xb90D6bec20993Be5d72A5ab353343f7a0281f158', 18, 'DXD', - 'DXdao from Ethereum' + 'DXdao from Ethereum', ), } @@ -95,21 +95,21 @@ export class Token extends Currency { '0x75902ae4D8AB92d38e20D65f758b03d595C0047B', 18, 'SWPR', - 'Swapr' + 'Swapr', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0xdE903E2712288A1dA82942DDdF2c20529565aC30', 18, 'SWPR', - 'Swapr' + 'Swapr', ), [ChainId.ARBITRUM_RINKEBY]: new Token( ChainId.ARBITRUM_RINKEBY, '0x8f2072c2142D9fFDc785955E0Ce71561753D44Fb', 18, 'SWPR', - 'Swapr' + 'Swapr', ), [ChainId.GOERLI]: new Token(ChainId.GOERLI, '0x2F9343Cf18BAAcF57AC4a4e20188b9b00CFce3f1', 18, 'SWPR', 'Swapr'), [ChainId.MAINNET]: new Token(ChainId.MAINNET, '0x6cAcDB97e3fC8136805a9E7c342d866ab77D0957', 18, 'SWPR', 'Swapr'), @@ -123,14 +123,14 @@ export class Token extends Currency { '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', - 'Wrapped BNB' + 'Wrapped BNB', ), [ChainId.BSC_TESTNET]: new Token( ChainId.BSC_TESTNET, '0x094616F0BdFB0b526bD735Bf66Eca0Ad254ca81F', 18, 'WBNB', - 'Wrapped BNB' + 'Wrapped BNB', ), } @@ -140,70 +140,70 @@ export class Token extends Currency { '0x89C0DBbF7559E200443735e113039cE5f1e0e6F0', 18, 'WETH', - 'Wrapped Ether on Görli' + 'Wrapped Ether on Görli', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', - 'Wrapped Ether' + 'Wrapped Ether', ), [ChainId.ARBITRUM_RINKEBY]: new Token( ChainId.ARBITRUM_RINKEBY, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', - 'Wrapped Ether' + 'Wrapped Ether', ), [ChainId.GOERLI]: new Token( ChainId.GOERLI, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', - 'Wrapped Ether on Görli' + 'Wrapped Ether on Görli', ), [ChainId.MAINNET]: new Token( ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', - 'Wrapped Ether' + 'Wrapped Ether', ), [ChainId.OPTIMISM_MAINNET]: new Token( ChainId.OPTIMISM_MAINNET, '0x4200000000000000000000000000000000000006', 18, 'WETH', - 'Wrapped Ether' + 'Wrapped Ether', ), [ChainId.POLYGON]: new Token( ChainId.POLYGON, '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', 18, 'WETH', - 'Wrapped Ether on Polygon' + 'Wrapped Ether on Polygon', ), [ChainId.RINKEBY]: new Token( ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', - 'Wrapped Ether' + 'Wrapped Ether', ), [ChainId.XDAI]: new Token( ChainId.XDAI, '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', 18, 'WETH', - 'Wrapped Ether on xDai' + 'Wrapped Ether on xDai', ), [ChainId.ZK_SYNC_ERA_MAINNET]: new Token( ChainId.ZK_SYNC_ERA_MAINNET, '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', 18, 'WETH', - 'Wrapped Ether on zkSync' + 'Wrapped Ether on zkSync', ), /** * NOTE: Note the address of zkSync testnet contracts is subject @@ -216,7 +216,7 @@ export class Token extends Currency { '0x20b28b1e4665fff290650586ad76e977eab90c5d', 18, 'WETH', - 'Wrapped Ether on zkSync Testnet' + 'Wrapped Ether on zkSync Testnet', ), } @@ -226,7 +226,7 @@ export class Token extends Currency { '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', - 'Wrapped Matic' + 'Wrapped Matic', ), } diff --git a/src/entities/trades/0x/0xTrade.ts b/src/entities/trades/0x/0xTrade.ts index 7ea46a6e..15b13565 100644 --- a/src/entities/trades/0x/0xTrade.ts +++ b/src/entities/trades/0x/0xTrade.ts @@ -101,7 +101,7 @@ export class ZeroXTrade extends TradeWithSwapTransaction { public static async bestTradeExactIn( currencyAmountIn: CurrencyAmount, currencyOut: Currency, - maximumSlippage: Percent + maximumSlippage: Percent, ): Promise { const chainId = tryGetChainId(currencyAmountIn, currencyOut) const apiUrl = chainId && ZEROX_API_URL[chainId] @@ -142,7 +142,7 @@ export class ZeroXTrade extends TradeWithSwapTransaction { quoteCurrency: tokenOut, denominator: amountIn.raw, numerator: json.buyAmount, - }) + }), ) bestTrade = new ZeroXTrade({ breakdown, @@ -167,7 +167,7 @@ export class ZeroXTrade extends TradeWithSwapTransaction { public static async bestTradeExactOut( currencyIn: Currency, currencyAmountOut: CurrencyAmount, - maximumSlippage: Percent + maximumSlippage: Percent, ): Promise { const chainId = tryGetChainId(currencyAmountOut, currencyIn) const apiUrl = chainId && ZEROX_API_URL[chainId] @@ -206,7 +206,7 @@ export class ZeroXTrade extends TradeWithSwapTransaction { quoteCurrency: tokenIn, denominator: amountOut.raw, numerator: json.sellAmount, - }) + }), ) bestTrade = new ZeroXTrade({ breakdown, diff --git a/src/entities/trades/0x/utils.ts b/src/entities/trades/0x/utils.ts index b8355d12..bcd425be 100644 --- a/src/entities/trades/0x/utils.ts +++ b/src/entities/trades/0x/utils.ts @@ -57,7 +57,7 @@ export function build0xApiUrl({ }: ApiParams) { const slippagePercentage = new Percent( maximumSlippage.numerator, - JSBI.multiply(maximumSlippage.denominator, JSBI.BigInt(100)) + JSBI.multiply(maximumSlippage.denominator, JSBI.BigInt(100)), ).toFixed(3) let amountParam = '' diff --git a/src/entities/trades/OneInch/OneInch.ts b/src/entities/trades/OneInch/OneInch.ts index b91d9bca..ff0ebf67 100644 --- a/src/entities/trades/OneInch/OneInch.ts +++ b/src/entities/trades/OneInch/OneInch.ts @@ -104,7 +104,7 @@ export class OneInchTrade extends Trade { await fetch(generateApiRequestUrl({ methodName: RequestType.QUOTE, queryParams, chainId })) ).json() let toTokenAmountApi = toAmount - let fromTokenAmountApi = amount.raw.toString() + const fromTokenAmountApi = amount.raw.toString() if (tradeType === TradeType.EXACT_OUTPUT) { // Prepare the query parameters for the API request const queryParams = { diff --git a/src/entities/trades/curve/CurveTrade.ts b/src/entities/trades/curve/CurveTrade.ts index 65dcc747..246ee714 100644 --- a/src/entities/trades/curve/CurveTrade.ts +++ b/src/entities/trades/curve/CurveTrade.ts @@ -156,7 +156,7 @@ export class CurveTrade extends Trade { */ public static async getQuote( { currencyAmountIn, currencyOut, maximumSlippage, receiver = AddressZero }: CurveTradeGetQuoteParams, - provider?: Provider + provider?: Provider, ): Promise { // Try to extract the chain ID from the tokens const chainId = tryGetChainId(currencyAmountIn, currencyOut) @@ -187,8 +187,8 @@ export class CurveTrade extends Trade { tokenOut?.address.toLowerCase() == nativeCurrency.address?.toLowerCase() ? true : currencyOut.name?.toLowerCase() === nativeCurrency.name?.toLowerCase() - ? true - : currencyOut === nativeCurrency + ? true + : currencyOut === nativeCurrency // Validations invariant(tokenIn != undefined, 'NO_TOKEN_IN') @@ -300,7 +300,7 @@ export class CurveTrade extends Trade { if (bestPoolAndOutputRes) { debugCurveGetQuote(`Found best pool from Curve registry`, bestPoolAndOutputRes) const bestPool = routablePools.filter( - (pool) => pool.address.toLowerCase() === bestPoolAndOutputRes.poolAddress.toLowerCase() + (pool) => pool.address.toLowerCase() === bestPoolAndOutputRes.poolAddress.toLowerCase(), ) if (bestPool.length !== 0) routablePools = bestPool } @@ -408,7 +408,7 @@ export class CurveTrade extends Trade { error, } } - }) + }), ) // Sort the pool by best output const estimatedAmountOutPerPoolSorted = quoteFromPoolList @@ -419,8 +419,8 @@ export class CurveTrade extends Trade { poolA.estimatedAmountOut.gt(poolB.estimatedAmountOut) ? -1 : poolA.estimatedAmountOut.eq(poolB.estimatedAmountOut) - ? 0 - : 1 + ? 0 + : 1, ) if (estimatedAmountOutPerPoolSorted.length === 0) { @@ -532,7 +532,7 @@ export class CurveTrade extends Trade { */ public static async bestTradeExactIn( { currencyAmountIn, currencyOut, maximumSlippage, receiver }: CurveTradeBestTradeExactInParams, - provider?: Provider + provider?: Provider, ): Promise { // Try to extract the chain ID from the tokens const chainId = tryGetChainId(currencyAmountIn, currencyOut) @@ -547,7 +547,7 @@ export class CurveTrade extends Trade { maximumSlippage, receiver, }, - provider + provider, ) if (quote) { @@ -584,7 +584,7 @@ export class CurveTrade extends Trade { */ public static async bestTradeExactOut( { currencyAmountOut, currencyIn, maximumSlippage, receiver }: CurveTradeBestTradeExactOutParams, - provider?: Provider + provider?: Provider, ): Promise { // Try to extract the chain ID from the tokens const chainId = tryGetChainId(currencyAmountOut, currencyIn) @@ -600,7 +600,7 @@ export class CurveTrade extends Trade { maximumSlippage, receiver, }, - provider + provider, )) as CurveTradeQuote const currencyOut = currencyAmountOut.currency @@ -610,7 +610,7 @@ export class CurveTrade extends Trade { const estimatedAmountIn = amountOut.times(outputToInputExchangeRate).dividedBy('0.9996') const currencyAmountIn = new TokenAmount( currencyIn as Token, - parseUnits(estimatedAmountIn.toFixed(currencyIn.decimals), currencyIn.decimals).toString() + parseUnits(estimatedAmountIn.toFixed(currencyIn.decimals), currencyIn.decimals).toString(), ) const quote = await CurveTrade.getQuote( @@ -620,7 +620,7 @@ export class CurveTrade extends Trade { maximumSlippage, receiver, }, - provider + provider, ) if (quote) { diff --git a/src/entities/trades/curve/contracts/contracts.ts b/src/entities/trades/curve/contracts/contracts.ts index 83b42729..4b5f21a9 100644 --- a/src/entities/trades/curve/contracts/contracts.ts +++ b/src/entities/trades/curve/contracts/contracts.ts @@ -42,7 +42,7 @@ export async function getBestCurvePoolAndOutput({ const addressProviderContract = new Contract( MAINNET_CONTRACTS.addressProvider, ADDRESS_PROVIDER_ABI, - getProvider(chainId) + getProvider(chainId), ) // Curve V2 pools @@ -64,7 +64,7 @@ export async function getBestCurvePoolAndOutput({ const [poolAddress, expectedAmountOut] = await registryExchangeContract.get_best_rate( tokenInAddress, tokenOutAddress, - amountIn.toString() + amountIn.toString(), ) if (poolAddress === AddressZero) { diff --git a/src/entities/trades/curve/contracts/pools.ts b/src/entities/trades/curve/contracts/pools.ts index 3061121e..6f0851fd 100644 --- a/src/entities/trades/curve/contracts/pools.ts +++ b/src/entities/trades/curve/contracts/pools.ts @@ -46,7 +46,7 @@ export async function getPoolTokenList({ const poolContract = new Contract( poolAddress, [poolMethods['view']['coins'], poolMethods['view']['underlying_coins']], - provider + provider, ) const indexList = [0, 1, 2, 3] @@ -62,7 +62,7 @@ export async function getPoolTokenList({ } catch (error) {} return - }) + }), ) const underlyingTokenResult: (PoolToken | undefined)[] = await Promise.all( @@ -77,7 +77,7 @@ export async function getPoolTokenList({ } catch (error) {} return - }) + }), ) const mainTokens = mainTokenResult.filter((token) => token !== undefined) as PoolToken[] diff --git a/src/entities/trades/curve/utils.ts b/src/entities/trades/curve/utils.ts index 9c2aed4f..067e26f3 100644 --- a/src/entities/trades/curve/utils.ts +++ b/src/entities/trades/curve/utils.ts @@ -29,7 +29,7 @@ export function getTokenIndex(pool: CurvePool, tokenAddress: string, chainId: Ch } // Search for WETH in the pool const poolHasWETH = tokenList.find( - ({ address }) => CURVE_TOKENS[chainId]?.weth?.address?.toLowerCase() === address.toLowerCase() + ({ address }) => CURVE_TOKENS[chainId]?.weth?.address?.toLowerCase() === address.toLowerCase(), ) let tokenIndex @@ -38,7 +38,7 @@ export function getTokenIndex(pool: CurvePool, tokenAddress: string, chainId: Ch tokenIndex = pool.tokens.findIndex( (item, index) => item.address.toLowerCase() == tokenAddress.toLowerCase() || - underlyingTokens[index].address.toLowerCase() == tokenAddress.toLowerCase() + underlyingTokens[index].address.toLowerCase() == tokenAddress.toLowerCase(), ) } else { // Search for the main/underlying token @@ -122,7 +122,7 @@ export async function fetchCurveFactoryPools(chainId: ChainId): Promise { let tokenInAddress = tokenIn.address @@ -165,10 +165,10 @@ export async function getRoutablePools( // Underlying tokens, similar to meta tokens const hasUnderlyingTokenIn = underlyingTokens?.some( - (token) => token.address.toLowerCase() === tokenInAddress.toLowerCase() + (token) => token.address.toLowerCase() === tokenInAddress.toLowerCase(), ) const hasUnderlyingTokenOut = underlyingTokens?.some( - (token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase() + (token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase(), ) return ( diff --git a/src/entities/trades/index.ts b/src/entities/trades/index.ts index e6e73c7e..a152664a 100644 --- a/src/entities/trades/index.ts +++ b/src/entities/trades/index.ts @@ -5,7 +5,7 @@ export * from './interfaces/trade' export * from './interfaces/trade-options' export * from './OneInch' export { BaseRoutablePlatform, RoutablePlatform, UniswapV2RoutablePlatform } from './routable-platform' +export * from './swapr-v3' export * from './uniswap' export * from './uniswap-v2' export * from './velodrome' -export * from './swapr-v3' diff --git a/src/entities/trades/routable-platform/RoutablePlatform.ts b/src/entities/trades/routable-platform/RoutablePlatform.ts index 09c2f5ed..439eb141 100644 --- a/src/entities/trades/routable-platform/RoutablePlatform.ts +++ b/src/entities/trades/routable-platform/RoutablePlatform.ts @@ -7,7 +7,7 @@ import { BaseRoutablePlatform } from './BaseRoutablePlatform' export class RoutablePlatform extends BaseRoutablePlatform { public static readonly ZEROX = new RoutablePlatform( [ChainId.MAINNET, ChainId.POLYGON, ChainId.ARBITRUM_ONE, ChainId.BSC_MAINNET, ChainId.OPTIMISM_MAINNET], - '0x' + '0x', ) public static readonly ONE_INCH = new RoutablePlatform( [ @@ -19,7 +19,7 @@ export class RoutablePlatform extends BaseRoutablePlatform { ChainId.BSC_MAINNET, ChainId.ZK_SYNC_ERA_MAINNET, ], - '1Inch' + '1Inch', ) public static readonly COW = new RoutablePlatform([ChainId.MAINNET, ChainId.GNOSIS], 'CoW') public static readonly CURVE = new RoutablePlatform([ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.GNOSIS], 'Curve') @@ -29,7 +29,7 @@ export class RoutablePlatform extends BaseRoutablePlatform { public static readonly GNOSIS_PROTOCOL = new RoutablePlatform([ChainId.MAINNET, ChainId.GNOSIS], 'CoW') public static readonly UNISWAP = new RoutablePlatform( [ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.POLYGON, ChainId.OPTIMISM_MAINNET], - 'Uniswap' + 'Uniswap', ) public static readonly VELODROME = new RoutablePlatform([ChainId.OPTIMISM_MAINNET], 'Velodrome') diff --git a/src/entities/trades/swapr-v3/abi/index.ts b/src/entities/trades/swapr-v3/abi/index.ts index 646fd13f..dab6a87f 100644 --- a/src/entities/trades/swapr-v3/abi/index.ts +++ b/src/entities/trades/swapr-v3/abi/index.ts @@ -1,3 +1,3 @@ +export * from './swapr-algebra-pool' export * from './swapr-algebra-quoter' export * from './swapr-algebra-router' -export * from './swapr-algebra-pool' diff --git a/src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts b/src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts index 22fec310..a4777dc4 100644 --- a/src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts +++ b/src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts @@ -1,1041 +1,1041 @@ export const SWAPR_ALGEBRA_POOL_ABI = [ { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', }, { - "indexed": true, - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "indexed": true, - "internalType": "int24", - "name": "topTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "indexed": false, - "internalType": "uint128", - "name": "liquidityAmount", - "type": "uint128" + indexed: false, + internalType: 'uint128', + name: 'liquidityAmount', + type: 'uint128', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, ], - "name": "Burn", - "type": "event" + name: 'Burn', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', }, { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" + indexed: false, + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "indexed": true, - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "indexed": true, - "internalType": "int24", - "name": "topTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" + indexed: false, + internalType: 'uint128', + name: 'amount0', + type: 'uint128', }, { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } + indexed: false, + internalType: 'uint128', + name: 'amount1', + type: 'uint128', + }, ], - "name": "Collect", - "type": "event" + name: 'Collect', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": false, - "internalType": "uint8", - "name": "communityFee0New", - "type": "uint8" + indexed: false, + internalType: 'uint8', + name: 'communityFee0New', + type: 'uint8', }, { - "indexed": false, - "internalType": "uint8", - "name": "communityFee1New", - "type": "uint8" - } + indexed: false, + internalType: 'uint8', + name: 'communityFee1New', + type: 'uint8', + }, ], - "name": "CommunityFee", - "type": "event" + name: 'CommunityFee', + type: 'event', }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "fee", - "type": "uint16" - } + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint16', + name: 'fee', + type: 'uint16', + }, ], - "name": "Fee", - "type": "event" + name: 'Fee', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', }, { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', }, { - "indexed": false, - "internalType": "uint256", - "name": "paid0", - "type": "uint256" + indexed: false, + internalType: 'uint256', + name: 'paid0', + type: 'uint256', }, { - "indexed": false, - "internalType": "uint256", - "name": "paid1", - "type": "uint256" - } + indexed: false, + internalType: 'uint256', + name: 'paid1', + type: 'uint256', + }, ], - "name": "Flash", - "type": "event" + name: 'Flash', + type: 'event', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "virtualPoolAddress", - "type": "address" - } + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'virtualPoolAddress', + type: 'address', + }, ], - "name": "Incentive", - "type": "event" + name: 'Incentive', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": false, - "internalType": "uint160", - "name": "price", - "type": "uint160" + indexed: false, + internalType: 'uint160', + name: 'price', + type: 'uint160', }, { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } + indexed: false, + internalType: 'int24', + name: 'tick', + type: 'int24', + }, ], - "name": "Initialize", - "type": "event" + name: 'Initialize', + type: 'event', }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint32", - "name": "liquidityCooldown", - "type": "uint32" - } + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint32', + name: 'liquidityCooldown', + type: 'uint32', + }, ], - "name": "LiquidityCooldown", - "type": "event" + name: 'LiquidityCooldown', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" + indexed: false, + internalType: 'address', + name: 'sender', + type: 'address', }, { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', }, { - "indexed": true, - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "indexed": true, - "internalType": "int24", - "name": "topTick", - "type": "int24" + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "indexed": false, - "internalType": "uint128", - "name": "liquidityAmount", - "type": "uint128" + indexed: false, + internalType: 'uint128', + name: 'liquidityAmount', + type: 'uint128', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, ], - "name": "Mint", - "type": "event" + name: 'Mint', + type: 'event', }, { - "anonymous": false, - "inputs": [ + anonymous: false, + inputs: [ { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', }, { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "indexed": false, - "internalType": "int256", - "name": "amount0", - "type": "int256" + indexed: false, + internalType: 'int256', + name: 'amount0', + type: 'int256', }, { - "indexed": false, - "internalType": "int256", - "name": "amount1", - "type": "int256" + indexed: false, + internalType: 'int256', + name: 'amount1', + type: 'int256', }, { - "indexed": false, - "internalType": "uint160", - "name": "price", - "type": "uint160" + indexed: false, + internalType: 'uint160', + name: 'price', + type: 'uint160', }, { - "indexed": false, - "internalType": "uint128", - "name": "liquidity", - "type": "uint128" + indexed: false, + internalType: 'uint128', + name: 'liquidity', + type: 'uint128', }, { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } + indexed: false, + internalType: 'int24', + name: 'tick', + type: 'int24', + }, ], - "name": "Swap", - "type": "event" + name: 'Swap', + type: 'event', }, { - "inputs": [], - "name": "activeIncentive", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [], + name: 'activeIncentive', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "internalType": "int24", - "name": "topTick", - "type": "int24" + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "internalType": "uint128", - "name": "amount", - "type": "uint128" - } + internalType: 'uint128', + name: 'amount', + type: 'uint128', + }, ], - "name": "burn", - "outputs": [ + name: 'burn', + outputs: [ { - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "recipient", - "type": "address" + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "internalType": "int24", - "name": "topTick", - "type": "int24" + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" + internalType: 'uint128', + name: 'amount0Requested', + type: 'uint128', }, { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } + internalType: 'uint128', + name: 'amount1Requested', + type: 'uint128', + }, ], - "name": "collect", - "outputs": [ + name: 'collect', + outputs: [ { - "internalType": "uint128", - "name": "amount0", - "type": "uint128" + internalType: 'uint128', + name: 'amount0', + type: 'uint128', }, { - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } + internalType: 'uint128', + name: 'amount1', + type: 'uint128', + }, ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "dataStorageOperator", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [], + name: 'dataStorageOperator', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [], + name: 'factory', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "recipient", - "type": "address" + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "internalType": "uint256", - "name": "amount1", - "type": "uint256" + internalType: 'uint256', + name: 'amount1', + type: 'uint256', }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, ], - "name": "flash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'flash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "internalType": "int24", - "name": "topTick", - "type": "int24" - } + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, ], - "name": "getInnerCumulatives", - "outputs": [ + name: 'getInnerCumulatives', + outputs: [ { - "internalType": "int56", - "name": "innerTickCumulative", - "type": "int56" + internalType: 'int56', + name: 'innerTickCumulative', + type: 'int56', }, { - "internalType": "uint160", - "name": "innerSecondsSpentPerLiquidity", - "type": "uint160" + internalType: 'uint160', + name: 'innerSecondsSpentPerLiquidity', + type: 'uint160', }, { - "internalType": "uint32", - "name": "innerSecondsSpent", - "type": "uint32" - } + internalType: 'uint32', + name: 'innerSecondsSpent', + type: 'uint32', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "uint32[]", - "name": "secondsAgos", - "type": "uint32[]" - } + internalType: 'uint32[]', + name: 'secondsAgos', + type: 'uint32[]', + }, ], - "name": "getTimepoints", - "outputs": [ + name: 'getTimepoints', + outputs: [ { - "internalType": "int56[]", - "name": "tickCumulatives", - "type": "int56[]" + internalType: 'int56[]', + name: 'tickCumulatives', + type: 'int56[]', }, { - "internalType": "uint160[]", - "name": "secondsPerLiquidityCumulatives", - "type": "uint160[]" + internalType: 'uint160[]', + name: 'secondsPerLiquidityCumulatives', + type: 'uint160[]', }, { - "internalType": "uint112[]", - "name": "volatilityCumulatives", - "type": "uint112[]" + internalType: 'uint112[]', + name: 'volatilityCumulatives', + type: 'uint112[]', }, { - "internalType": "uint256[]", - "name": "volumePerAvgLiquiditys", - "type": "uint256[]" - } + internalType: 'uint256[]', + name: 'volumePerAvgLiquiditys', + type: 'uint256[]', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "globalState", - "outputs": [ + inputs: [], + name: 'globalState', + outputs: [ { - "internalType": "uint160", - "name": "price", - "type": "uint160" + internalType: 'uint160', + name: 'price', + type: 'uint160', }, { - "internalType": "int24", - "name": "tick", - "type": "int24" + internalType: 'int24', + name: 'tick', + type: 'int24', }, { - "internalType": "uint16", - "name": "fee", - "type": "uint16" + internalType: 'uint16', + name: 'fee', + type: 'uint16', }, { - "internalType": "uint16", - "name": "timepointIndex", - "type": "uint16" + internalType: 'uint16', + name: 'timepointIndex', + type: 'uint16', }, { - "internalType": "uint8", - "name": "communityFeeToken0", - "type": "uint8" + internalType: 'uint8', + name: 'communityFeeToken0', + type: 'uint8', }, { - "internalType": "uint8", - "name": "communityFeeToken1", - "type": "uint8" + internalType: 'uint8', + name: 'communityFeeToken1', + type: 'uint8', }, { - "internalType": "bool", - "name": "unlocked", - "type": "bool" - } + internalType: 'bool', + name: 'unlocked', + type: 'bool', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "uint160", - "name": "initialPrice", - "type": "uint160" - } + internalType: 'uint160', + name: 'initialPrice', + type: 'uint160', + }, ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'initialize', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "liquidity", - "outputs": [ - { - "internalType": "uint128", - "name": "", - "type": "uint128" - } + inputs: [], + name: 'liquidity', + outputs: [ + { + internalType: 'uint128', + name: '', + type: 'uint128', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "liquidityCooldown", - "outputs": [ - { - "internalType": "uint32", - "name": "", - "type": "uint32" - } + inputs: [], + name: 'liquidityCooldown', + outputs: [ + { + internalType: 'uint32', + name: '', + type: 'uint32', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "maxLiquidityPerTick", - "outputs": [ - { - "internalType": "uint128", - "name": "", - "type": "uint128" - } + inputs: [], + name: 'maxLiquidityPerTick', + outputs: [ + { + internalType: 'uint128', + name: '', + type: 'uint128', + }, ], - "stateMutability": "pure", - "type": "function" + stateMutability: 'pure', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "sender", - "type": "address" + internalType: 'address', + name: 'sender', + type: 'address', }, { - "internalType": "address", - "name": "recipient", - "type": "address" + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "internalType": "int24", - "name": "bottomTick", - "type": "int24" + internalType: 'int24', + name: 'bottomTick', + type: 'int24', }, { - "internalType": "int24", - "name": "topTick", - "type": "int24" + internalType: 'int24', + name: 'topTick', + type: 'int24', }, { - "internalType": "uint128", - "name": "liquidityDesired", - "type": "uint128" + internalType: 'uint128', + name: 'liquidityDesired', + type: 'uint128', }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, ], - "name": "mint", - "outputs": [ + name: 'mint', + outputs: [ { - "internalType": "uint256", - "name": "amount0", - "type": "uint256" + internalType: 'uint256', + name: 'amount0', + type: 'uint256', }, { - "internalType": "uint256", - "name": "amount1", - "type": "uint256" + internalType: 'uint256', + name: 'amount1', + type: 'uint256', }, { - "internalType": "uint128", - "name": "liquidityActual", - "type": "uint128" - } + internalType: 'uint128', + name: 'liquidityActual', + type: 'uint128', + }, ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, ], - "name": "positions", - "outputs": [ + name: 'positions', + outputs: [ { - "internalType": "uint128", - "name": "liquidity", - "type": "uint128" + internalType: 'uint128', + name: 'liquidity', + type: 'uint128', }, { - "internalType": "uint32", - "name": "lastLiquidityAddTimestamp", - "type": "uint32" + internalType: 'uint32', + name: 'lastLiquidityAddTimestamp', + type: 'uint32', }, { - "internalType": "uint256", - "name": "innerFeeGrowth0Token", - "type": "uint256" + internalType: 'uint256', + name: 'innerFeeGrowth0Token', + type: 'uint256', }, { - "internalType": "uint256", - "name": "innerFeeGrowth1Token", - "type": "uint256" + internalType: 'uint256', + name: 'innerFeeGrowth1Token', + type: 'uint256', }, { - "internalType": "uint128", - "name": "fees0", - "type": "uint128" + internalType: 'uint128', + name: 'fees0', + type: 'uint128', }, { - "internalType": "uint128", - "name": "fees1", - "type": "uint128" - } + internalType: 'uint128', + name: 'fees1', + type: 'uint128', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "uint8", - "name": "communityFee0", - "type": "uint8" + internalType: 'uint8', + name: 'communityFee0', + type: 'uint8', }, { - "internalType": "uint8", - "name": "communityFee1", - "type": "uint8" - } + internalType: 'uint8', + name: 'communityFee1', + type: 'uint8', + }, ], - "name": "setCommunityFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'setCommunityFee', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "virtualPoolAddress", - "type": "address" - } + internalType: 'address', + name: 'virtualPoolAddress', + type: 'address', + }, ], - "name": "setIncentive", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'setIncentive', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "uint32", - "name": "newLiquidityCooldown", - "type": "uint32" - } + internalType: 'uint32', + name: 'newLiquidityCooldown', + type: 'uint32', + }, ], - "name": "setLiquidityCooldown", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'setLiquidityCooldown', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "recipient", - "type": "address" + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "internalType": "bool", - "name": "zeroToOne", - "type": "bool" + internalType: 'bool', + name: 'zeroToOne', + type: 'bool', }, { - "internalType": "int256", - "name": "amountRequired", - "type": "int256" + internalType: 'int256', + name: 'amountRequired', + type: 'int256', }, { - "internalType": "uint160", - "name": "limitSqrtPrice", - "type": "uint160" + internalType: 'uint160', + name: 'limitSqrtPrice', + type: 'uint160', }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, ], - "name": "swap", - "outputs": [ + name: 'swap', + outputs: [ { - "internalType": "int256", - "name": "amount0", - "type": "int256" + internalType: 'int256', + name: 'amount0', + type: 'int256', }, { - "internalType": "int256", - "name": "amount1", - "type": "int256" - } + internalType: 'int256', + name: 'amount1', + type: 'int256', + }, ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "address", - "name": "sender", - "type": "address" + internalType: 'address', + name: 'sender', + type: 'address', }, { - "internalType": "address", - "name": "recipient", - "type": "address" + internalType: 'address', + name: 'recipient', + type: 'address', }, { - "internalType": "bool", - "name": "zeroToOne", - "type": "bool" + internalType: 'bool', + name: 'zeroToOne', + type: 'bool', }, { - "internalType": "int256", - "name": "amountRequired", - "type": "int256" + internalType: 'int256', + name: 'amountRequired', + type: 'int256', }, { - "internalType": "uint160", - "name": "limitSqrtPrice", - "type": "uint160" + internalType: 'uint160', + name: 'limitSqrtPrice', + type: 'uint160', }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, ], - "name": "swapSupportingFeeOnInputTokens", - "outputs": [ + name: 'swapSupportingFeeOnInputTokens', + outputs: [ { - "internalType": "int256", - "name": "amount0", - "type": "int256" + internalType: 'int256', + name: 'amount0', + type: 'int256', }, { - "internalType": "int256", - "name": "amount1", - "type": "int256" - } + internalType: 'int256', + name: 'amount1', + type: 'int256', + }, ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "tickSpacing", - "outputs": [ - { - "internalType": "int24", - "name": "", - "type": "int24" - } + inputs: [], + name: 'tickSpacing', + outputs: [ + { + internalType: 'int24', + name: '', + type: 'int24', + }, ], - "stateMutability": "pure", - "type": "function" + stateMutability: 'pure', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "int16", - "name": "", - "type": "int16" - } + internalType: 'int16', + name: '', + type: 'int16', + }, ], - "name": "tickTable", - "outputs": [ + name: 'tickTable', + outputs: [ { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + internalType: 'uint256', + name: '', + type: 'uint256', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "int24", - "name": "", - "type": "int24" - } + internalType: 'int24', + name: '', + type: 'int24', + }, ], - "name": "ticks", - "outputs": [ + name: 'ticks', + outputs: [ { - "internalType": "uint128", - "name": "liquidityTotal", - "type": "uint128" + internalType: 'uint128', + name: 'liquidityTotal', + type: 'uint128', }, { - "internalType": "int128", - "name": "liquidityDelta", - "type": "int128" + internalType: 'int128', + name: 'liquidityDelta', + type: 'int128', }, { - "internalType": "uint256", - "name": "outerFeeGrowth0Token", - "type": "uint256" + internalType: 'uint256', + name: 'outerFeeGrowth0Token', + type: 'uint256', }, { - "internalType": "uint256", - "name": "outerFeeGrowth1Token", - "type": "uint256" + internalType: 'uint256', + name: 'outerFeeGrowth1Token', + type: 'uint256', }, { - "internalType": "int56", - "name": "outerTickCumulative", - "type": "int56" + internalType: 'int56', + name: 'outerTickCumulative', + type: 'int56', }, { - "internalType": "uint160", - "name": "outerSecondsPerLiquidity", - "type": "uint160" + internalType: 'uint160', + name: 'outerSecondsPerLiquidity', + type: 'uint160', }, { - "internalType": "uint32", - "name": "outerSecondsSpent", - "type": "uint32" + internalType: 'uint32', + name: 'outerSecondsSpent', + type: 'uint32', }, { - "internalType": "bool", - "name": "initialized", - "type": "bool" - } + internalType: 'bool', + name: 'initialized', + type: 'bool', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [ { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } + internalType: 'uint256', + name: 'index', + type: 'uint256', + }, ], - "name": "timepoints", - "outputs": [ + name: 'timepoints', + outputs: [ { - "internalType": "bool", - "name": "initialized", - "type": "bool" + internalType: 'bool', + name: 'initialized', + type: 'bool', }, { - "internalType": "uint32", - "name": "blockTimestamp", - "type": "uint32" + internalType: 'uint32', + name: 'blockTimestamp', + type: 'uint32', }, { - "internalType": "int56", - "name": "tickCumulative", - "type": "int56" + internalType: 'int56', + name: 'tickCumulative', + type: 'int56', }, { - "internalType": "uint160", - "name": "secondsPerLiquidityCumulative", - "type": "uint160" + internalType: 'uint160', + name: 'secondsPerLiquidityCumulative', + type: 'uint160', }, { - "internalType": "uint88", - "name": "volatilityCumulative", - "type": "uint88" + internalType: 'uint88', + name: 'volatilityCumulative', + type: 'uint88', }, { - "internalType": "int24", - "name": "averageTick", - "type": "int24" + internalType: 'int24', + name: 'averageTick', + type: 'int24', }, { - "internalType": "uint144", - "name": "volumePerLiquidityCumulative", - "type": "uint144" - } + internalType: 'uint144', + name: 'volumePerLiquidityCumulative', + type: 'uint144', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "token0", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [], + name: 'token0', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "token1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [], + name: 'token1', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "totalFeeGrowth0Token", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + inputs: [], + name: 'totalFeeGrowth0Token', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "totalFeeGrowth1Token", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + inputs: [], + name: 'totalFeeGrowth1Token', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file + stateMutability: 'view', + type: 'function', + }, +] diff --git a/src/entities/trades/swapr-v3/entities/pool.ts b/src/entities/trades/swapr-v3/entities/pool.ts index bbe66a67..53a3a06c 100644 --- a/src/entities/trades/swapr-v3/entities/pool.ts +++ b/src/entities/trades/swapr-v3/entities/pool.ts @@ -1,8 +1,6 @@ import { BigintIsh, CurrencyAmount, Price, Token } from '@uniswap/sdk-core' -import JSBI from 'jsbi' -import invariant from 'tiny-invariant' -import { POOL_DEPLOYER_ADDRESS } from '../constants' import { + computePoolAddress, FeeAmount, LiquidityMath, NoTickDataProvider, @@ -12,8 +10,11 @@ import { TickDataProvider, TickListDataProvider, TickMath, - computePoolAddress, } from '@uniswap/v3-sdk' +import JSBI from 'jsbi' +import invariant from 'tiny-invariant' + +import { POOL_DEPLOYER_ADDRESS } from '../constants' const Q96 = JSBI.exponentiate(JSBI.BigInt(2), JSBI.BigInt(96)) const Q192 = JSBI.exponentiate(Q96, JSBI.BigInt(2)) @@ -62,7 +63,7 @@ export class Pool { sqrtRatioX96: BigintIsh, liquidity: BigintIsh, tickCurrent: number, - ticks: TickDataProvider | (Tick | TickConstructorArgs)[] = NO_TICK_DATA_PROVIDER_DEFAULT + ticks: TickDataProvider | (Tick | TickConstructorArgs)[] = NO_TICK_DATA_PROVIDER_DEFAULT, ) { invariant(Number.isInteger(fee) && fee < 1_000_000, 'FEE') @@ -71,7 +72,7 @@ export class Pool { invariant( JSBI.greaterThanOrEqual(JSBI.BigInt(sqrtRatioX96), tickCurrentSqrtRatioX96) && JSBI.lessThanOrEqual(JSBI.BigInt(sqrtRatioX96), nextTickSqrtRatioX96), - 'PRICE_BOUNDS' + 'PRICE_BOUNDS', ) // always create a copy of the list since we want the pool's tick list to be immutable ;[this.token0, this.token1] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA] @@ -94,7 +95,7 @@ export class Pool { this.token0, this.token1, Q192, - JSBI.multiply(this.sqrtRatioX96, this.sqrtRatioX96) + JSBI.multiply(this.sqrtRatioX96, this.sqrtRatioX96), )) ) } @@ -111,7 +112,7 @@ export class Pool { this.token1, this.token0, JSBI.multiply(this.sqrtRatioX96, this.sqrtRatioX96), - Q192 + Q192, )) ) } @@ -164,7 +165,7 @@ export class Pool { */ public async getOutputAmount( inputAmount: CurrencyAmount, - sqrtPriceLimitX96?: JSBI + sqrtPriceLimitX96?: JSBI, ): Promise<[CurrencyAmount, Pool]> { invariant(this.involvesToken(inputAmount.currency), 'TOKEN') @@ -191,7 +192,7 @@ export class Pool { */ public async getInputAmount( outputAmount: CurrencyAmount, - sqrtPriceLimitX96?: JSBI + sqrtPriceLimitX96?: JSBI, ): Promise<[CurrencyAmount, Pool]> { invariant(outputAmount.currency.isToken && this.involvesToken(outputAmount.currency), 'TOKEN') @@ -223,7 +224,7 @@ export class Pool { private async swap( zeroForOne: boolean, amountSpecified: JSBI, - sqrtPriceLimitX96?: JSBI + sqrtPriceLimitX96?: JSBI, ): Promise<{ amountCalculated: JSBI; sqrtRatioX96: JSBI; liquidity: JSBI; tickCurrent: number }> { if (!sqrtPriceLimitX96) sqrtPriceLimitX96 = zeroForOne @@ -261,7 +262,7 @@ export class Pool { ;[step.tickNext, step.initialized] = await this.tickDataProvider.nextInitializedTickWithinOneWord( state.tick, zeroForOne, - this.tickSpacing + this.tickSpacing, ) if (step.tickNext < TickMath.MIN_TICK) { @@ -282,13 +283,13 @@ export class Pool { : step.sqrtPriceNextX96, state.liquidity, state.amountSpecifiedRemaining, - this.fee + this.fee, ) if (exactInput) { state.amountSpecifiedRemaining = JSBI.subtract( state.amountSpecifiedRemaining, - JSBI.add(step.amountIn, step.feeAmount) + JSBI.add(step.amountIn, step.feeAmount), ) state.amountCalculated = JSBI.subtract(state.amountCalculated, step.amountOut) } else { diff --git a/src/entities/trades/swapr-v3/entities/route.ts b/src/entities/trades/swapr-v3/entities/route.ts index 946f5b1b..8460c8ee 100644 --- a/src/entities/trades/swapr-v3/entities/route.ts +++ b/src/entities/trades/swapr-v3/entities/route.ts @@ -1,6 +1,6 @@ +import { Currency, Price, Token } from '@uniswap/sdk-core' import invariant from 'tiny-invariant' -import { Currency, Price, Token } from '@uniswap/sdk-core' import { Pool } from './pool' /** @@ -77,7 +77,7 @@ export class Route { : { nextInput: this.pools[0].token0, price: this.pools[0].token1Price, - } + }, ).price return (this._midPrice = new Price(this.input, this.output, price.denominator, price.numerator)) diff --git a/src/entities/trades/swapr-v3/pools.ts b/src/entities/trades/swapr-v3/pools.ts index bfabb281..b61f4bd2 100644 --- a/src/entities/trades/swapr-v3/pools.ts +++ b/src/entities/trades/swapr-v3/pools.ts @@ -1,13 +1,14 @@ import { Currency, Token } from '@uniswap/sdk-core' -import { POOL_DEPLOYER_ADDRESS, baseTokens } from './constants' -import { computePoolAddress } from './utils/computePoolAddress' -import { Pool } from './entities/pool' -import { getPoolsContract } from './contracts' + import { ChainId } from '../../../constants' import { WXDAI } from '../../token' +import { baseTokens, POOL_DEPLOYER_ADDRESS } from './constants' +import { getPoolsContract } from './contracts' +import { Pool } from './entities/pool' +import { computePoolAddress } from './utils/computePoolAddress' const getBaseTokens: Token[] = baseTokens.map( - ({ address, decimals, symbol, name }) => new Token(ChainId.GNOSIS, address, decimals, symbol, name) + ({ address, decimals, symbol, name }) => new Token(ChainId.GNOSIS, address, decimals, symbol, name), ) const currencyAddress = (currency: Currency) => { @@ -20,7 +21,7 @@ export const setupTokens = (currencyIn: Currency, currencyOut: Currency) => { currencyAddress(currencyIn), currencyIn.decimals, currencyIn.symbol, - currencyIn.name + currencyIn.name, ) const tokenOut = new Token( @@ -28,7 +29,7 @@ export const setupTokens = (currencyIn: Currency, currencyOut: Currency) => { currencyAddress(currencyOut), currencyOut.decimals, currencyOut.symbol, - currencyOut.name + currencyOut.name, ) const [tokenA, tokenB] = [tokenIn?.wrapped, tokenOut?.wrapped] @@ -92,7 +93,7 @@ export const getPools = async (currencyIn: Currency, currencyOut: Currency) => { return { value: null, poolAddress: poolAddresses[index] } } }) - .filter((result) => result.value) + .filter((result) => result.value), ) const poolsLiquidity = () => @@ -105,7 +106,7 @@ export const getPools = async (currencyIn: Currency, currencyOut: Currency) => { return { value: null, poolAddress: poolAddresses[index] } } }) - .filter((result) => result.value) + .filter((result) => result.value), ) const getPoolsGlobalSpaceResults = async () => { try { @@ -134,11 +135,11 @@ export const getPools = async (currencyIn: Currency, currencyOut: Currency) => { const combinedResults = poolAddresses.flatMap((poolAddress) => { const liquidityResult = liquidityResults?.find( - ({ poolAddress: liquidityPoolAddress }) => liquidityPoolAddress === poolAddress + ({ poolAddress: liquidityPoolAddress }) => liquidityPoolAddress === poolAddress, ) const globalSpaceResult = globalSpaceResults?.find( - ({ poolAddress: globalSpacePoolAddress }) => globalSpacePoolAddress === poolAddress + ({ poolAddress: globalSpacePoolAddress }) => globalSpacePoolAddress === poolAddress, ) if (globalSpaceResult && liquidityResult) { @@ -148,7 +149,7 @@ export const getPools = async (currencyIn: Currency, currencyOut: Currency) => { globalSpaceResult.value.fee, globalSpaceResult.value.price, liquidityResult ? liquidityResult.value : null, - globalSpaceResult.value.tick + globalSpaceResult.value.tick, ) } diff --git a/src/entities/trades/swapr-v3/routes.ts b/src/entities/trades/swapr-v3/routes.ts index 91d8ee81..2c66a3f6 100644 --- a/src/entities/trades/swapr-v3/routes.ts +++ b/src/entities/trades/swapr-v3/routes.ts @@ -1,4 +1,5 @@ import { Currency } from '@uniswap/sdk-core' + import { Pool } from './entities/pool' import { Route } from './entities/route' import { getPools } from './pools' @@ -20,7 +21,7 @@ export function computeAllRoutes( chainId: number, currentPath: Pool[] = [], allPaths: Route[] = [], - maxHops = 2 + maxHops = 2, ): Route[] { for (const pool of pools) { if (!pool.involvesToken(pool.token0) || currentPath.some((pathPool) => poolEquals(pool, pathPool))) continue diff --git a/src/entities/trades/swapr-v3/swapr-v3.spec.ts b/src/entities/trades/swapr-v3/swapr-v3.spec.ts index 581e64be..8eb7bb13 100644 --- a/src/entities/trades/swapr-v3/swapr-v3.spec.ts +++ b/src/entities/trades/swapr-v3/swapr-v3.spec.ts @@ -1,10 +1,10 @@ import { parseUnits } from '@ethersproject/units' -import { SwaprV3Trade } from './SwaprV3' import { ChainId, TradeType } from '../../../constants' +import { Currency } from '../../currency' import { Percent, TokenAmount } from '../../fractions' import { Token } from '../../token' -import { Currency } from '../../currency' +import { SwaprV3Trade } from './SwaprV3' const maximumSlippage = new Percent('3', '100') const tokenWXDAI = new Token(ChainId.GNOSIS, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', 18, 'WXDAI', 'WXDAI') @@ -127,7 +127,7 @@ describe('SwaprV3', () => { }) const swapOptions = { - recipient: recipient, + recipient, account: recipient, } @@ -169,7 +169,7 @@ describe('SwaprV3', () => { }) const swapOptions = { - recipient: recipient, + recipient, account: recipient, } diff --git a/src/entities/trades/swapr-v3/utils/computePoolAddress.ts b/src/entities/trades/swapr-v3/utils/computePoolAddress.ts index bfc61c20..676214b3 100644 --- a/src/entities/trades/swapr-v3/utils/computePoolAddress.ts +++ b/src/entities/trades/swapr-v3/utils/computePoolAddress.ts @@ -2,6 +2,7 @@ import { defaultAbiCoder } from '@ethersproject/abi' import { getCreate2Address } from '@ethersproject/address' import { keccak256 } from '@ethersproject/solidity' import { Token } from '@uniswap/sdk-core' + import { POOL_INIT_CODE_HASH } from '../constants' export const ADDRESS_ZERO = '0x0000000000000000000000000000000000000000' @@ -50,6 +51,6 @@ export function computePoolAddress({ return getCreate2Address( poolDeployer, keccak256(['bytes'], [defaultAbiCoder.encode(['address', 'address'], [token0.address, token1.address])]), - initCodeHashManualOverride ?? POOL_INIT_CODE_HASH + initCodeHashManualOverride ?? POOL_INIT_CODE_HASH, ) } diff --git a/src/entities/trades/swapr-v3/utils/encode-route.ts b/src/entities/trades/swapr-v3/utils/encode-route.ts index 5b1af7c0..47c22475 100644 --- a/src/entities/trades/swapr-v3/utils/encode-route.ts +++ b/src/entities/trades/swapr-v3/utils/encode-route.ts @@ -1,5 +1,6 @@ import { pack } from '@ethersproject/solidity' import { Currency, Token } from '@uniswap/sdk-core' + import { Pool } from '../entities/pool' import { Route } from '../entities/route' @@ -15,7 +16,7 @@ export function encodeRouteToPath(route: Route, exactOutput: ( { inputToken, path, types }: { inputToken: Token; path: (string | number)[]; types: string[] }, pool: Pool, - index + index, ): { inputToken: Token; path: (string | number)[]; types: string[] } => { const outputToken: Token = pool.token0.equals(inputToken) ? pool.token1 : pool.token0 if (index === 0) { @@ -32,7 +33,7 @@ export function encodeRouteToPath(route: Route, exactOutput: } } }, - { inputToken: firstInputToken, path: [], types: [] } + { inputToken: firstInputToken, path: [], types: [] }, ) return exactOutput ? pack(types.reverse(), path.reverse()) : pack(types, path) diff --git a/src/entities/trades/uniswap-v2/UniswapV2.spec.ts b/src/entities/trades/uniswap-v2/UniswapV2.spec.ts index 2cee8673..68ef0813 100644 --- a/src/entities/trades/uniswap-v2/UniswapV2.spec.ts +++ b/src/entities/trades/uniswap-v2/UniswapV2.spec.ts @@ -19,7 +19,7 @@ describe('UniswapV2Trade', () => { '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', - 'Tether USD' + 'Tether USD', ) const maximumSlippage = new Percent('5', '100') @@ -59,7 +59,7 @@ describe('UniswapV2Trade', () => { '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', - 'Tether USD' + 'Tether USD', ) const maximumSlippage = new Percent('5', '100') @@ -97,7 +97,7 @@ describe('UniswapV2Trade', () => { '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', 6, 'USDT', - 'Tether USD' + 'Tether USD', ) const maximumSlippage = new Percent('5', '100') @@ -136,7 +136,7 @@ describe('UniswapV2Trade', () => { '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', - 'Tether USD' + 'Tether USD', ) const currencyOut = new Token(ChainId.POLYGON, '0x172370d5Cd63279eFa6d502DAB29171933a610AF', 18, 'CRV', 'Curve') diff --git a/src/entities/trades/uniswap-v2/UniswapV2.ts b/src/entities/trades/uniswap-v2/UniswapV2.ts index 8ce934e5..9f96b596 100644 --- a/src/entities/trades/uniswap-v2/UniswapV2.ts +++ b/src/entities/trades/uniswap-v2/UniswapV2.ts @@ -62,14 +62,14 @@ export class UniswapV2Trade extends TradeWithSwapTransaction { tradeType === TradeType.EXACT_INPUT ? amount : Currency.isNative(route.input) - ? CurrencyAmount.nativeCurrency(amounts[0].raw, chainId) - : amounts[0] + ? CurrencyAmount.nativeCurrency(amounts[0].raw, chainId) + : amounts[0] const outputAmount = tradeType === TradeType.EXACT_OUTPUT ? amount : Currency.isNative(route.output) - ? CurrencyAmount.nativeCurrency(amounts[amounts.length - 1].raw, chainId) - : amounts[amounts.length - 1] + ? CurrencyAmount.nativeCurrency(amounts[amounts.length - 1].raw, chainId) + : amounts[amounts.length - 1] super({ details: route, type: tradeType, @@ -248,10 +248,10 @@ export class UniswapV2Trade extends TradeWithSwapTransaction { new Route([...currentPairs, pair], originalAmountIn.currency, currencyOut), originalAmountIn, maximumSlippage, - TradeType.EXACT_INPUT + TradeType.EXACT_INPUT, ), maxNumResults, - UniswapV2Trade.tradeComparator + UniswapV2Trade.tradeComparator, ) } else if (maxHops > 1 && pairs.length > 1) { const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)) @@ -334,10 +334,10 @@ export class UniswapV2Trade extends TradeWithSwapTransaction { new Route([pair, ...currentPairs], currencyIn, originalAmountOut.currency), originalAmountOut, maximumSlippage, - TradeType.EXACT_OUTPUT + TradeType.EXACT_OUTPUT, ), maxNumResults, - UniswapV2Trade.tradeComparator + UniswapV2Trade.tradeComparator, ) } else if (maxHops > 1 && pairs.length > 1) { const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)) diff --git a/src/entities/trades/uniswap-v2/constants.ts b/src/entities/trades/uniswap-v2/constants.ts index ee503d88..62b9f7ad 100644 --- a/src/entities/trades/uniswap-v2/constants.ts +++ b/src/entities/trades/uniswap-v2/constants.ts @@ -16,42 +16,42 @@ export const DAI: Record = { '0x6B175474E89094C44Da98b954EedeAC495271d0F', 18, 'DAI', - 'Dai Stablecoin' + 'Dai Stablecoin', ), [ChainId.POLYGON]: new Token( ChainId.POLYGON, '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063', 18, 'DAI', - 'Dai Stablecoin' + 'Dai Stablecoin', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', - 'Dai Stablecoin' + 'Dai Stablecoin', ), [ChainId.OPTIMISM_MAINNET]: new Token( ChainId.OPTIMISM_MAINNET, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', - 'Dai Stablecoin' + 'Dai Stablecoin', ), [ChainId.BSC_MAINNET]: new Token( ChainId.BSC_MAINNET, '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', 18, 'DAI', - 'Binance-Peg Dai Stablecoin' + 'Binance-Peg Dai Stablecoin', ), [ChainId.BSC_TESTNET]: new Token( ChainId.BSC_TESTNET, '0xEC5dCb5Dbf4B114C9d0F65BcCAb49EC54F6A0867', 18, 'DAI', - 'Dai Token' + 'Dai Token', ), } @@ -62,56 +62,56 @@ export const USDC: Record = { '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', 6, 'USDC.e', - 'Bridged USDC' + 'Bridged USDC', ), [ChainId.XDAI]: new Token( ChainId.XDAI, '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', 6, 'USDC', - 'USD//C from Ethereum' + 'USD//C from Ethereum', ), [ChainId.POLYGON]: new Token( ChainId.POLYGON, '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', 6, 'USDC', - 'USD//C from Ethereum' + 'USD//C from Ethereum', ), [ChainId.OPTIMISM_MAINNET]: new Token( ChainId.OPTIMISM_MAINNET, '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', 6, 'USDC', - 'USD Coin' + 'USD Coin', ), [ChainId.BSC_MAINNET]: new Token( ChainId.BSC_MAINNET, '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', 18, 'USDC', - 'Binance-Peg USD Coin' + 'Binance-Peg USD Coin', ), [ChainId.BSC_TESTNET]: new Token( ChainId.BSC_TESTNET, '0x64544969ed7EBf5f083679233325356EbE738930', 6, 'USDC', - 'USDC Token' + 'USDC Token', ), [ChainId.ZK_SYNC_ERA_MAINNET]: new Token( ChainId.ZK_SYNC_ERA_MAINNET, '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4', 6, 'USDC', - 'USD Coin on zkSync Era' + 'USD Coin on zkSync Era', ), [ChainId.ZK_SYNC_ERA_TESTNET]: new Token( ChainId.ZK_SYNC_ERA_TESTNET, '0x0faF6df7054946141266420b43783387A78d82A9', 6, 'USDC', - 'USD Coin on zkSync Era Tesnet' + 'USD Coin on zkSync Era Tesnet', ), } @@ -122,14 +122,14 @@ export const USDT: Record = { '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', 6, 'USDT', - 'Tether USD from Ethereum' + 'Tether USD from Ethereum', ), [ChainId.ARBITRUM_ONE]: new Token( ChainId.ARBITRUM_ONE, '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', 6, 'USDT', - 'Tether USD' + 'Tether USD', ), [ChainId.POLYGON]: new Token(ChainId.POLYGON, '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', 'Tether USD'), [ChainId.OPTIMISM_MAINNET]: new Token( @@ -137,21 +137,21 @@ export const USDT: Record = { '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58', 6, 'USDT', - 'Tether USD' + 'Tether USD', ), [ChainId.BSC_MAINNET]: new Token( ChainId.BSC_MAINNET, '0x55d398326f99059fF775485246999027B3197955', 18, 'USDT', - 'Binance-Peg BSC-USD' + 'Binance-Peg BSC-USD', ), [ChainId.BSC_TESTNET]: new Token( ChainId.BSC_TESTNET, '0x337610d27c682E347C9cD60BD4b3b107C9d34dDd', 6, 'USDT', - 'USDT Token' + 'USDT Token', ), } @@ -162,28 +162,28 @@ export const WBTC: Record = { '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', 8, 'WBTC', - 'Wrapped BTC' + 'Wrapped BTC', ), [ChainId.XDAI]: new Token( ChainId.XDAI, '0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252', 8, 'WBTC', - 'Wrapped BTC from Ethereum' + 'Wrapped BTC from Ethereum', ), [ChainId.POLYGON]: new Token( ChainId.POLYGON, '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', 8, 'WBTC', - 'Wrapped BTC from Ethereum' + 'Wrapped BTC from Ethereum', ), [ChainId.OPTIMISM_MAINNET]: new Token( ChainId.OPTIMISM_MAINNET, '0x68f180fcCe6836688e9084f035309E29Bf0A2095', 8, 'WBTC', - 'Wrapped BTC' + 'Wrapped BTC', ), } @@ -194,7 +194,7 @@ export const STAKE = new Token( '0xb7D311E2Eb55F2f68a9440da38e7989210b9A05e', 18, 'STAKE', - 'Stake Token on xDai' + 'Stake Token on xDai', ) export const BAO = new Token( @@ -202,7 +202,7 @@ export const BAO = new Token( '0x82dFe19164729949fD66Da1a37BC70dD6c4746ce', 18, 'BAO', - 'BaoToken from Ethereum' + 'BaoToken from Ethereum', ) export const AGAVE = new Token(ChainId.XDAI, '0x3a97704a1b25F08aa230ae53B352e2e72ef52843', 18, 'AGVE', 'Agave token') diff --git a/src/entities/trades/uniswap-v2/pairs/fees.ts b/src/entities/trades/uniswap-v2/pairs/fees.ts index 6484b272..7c412a5e 100644 --- a/src/entities/trades/uniswap-v2/pairs/fees.ts +++ b/src/entities/trades/uniswap-v2/pairs/fees.ts @@ -28,7 +28,7 @@ export async function getUniswapV2PairSwapFee({ const swapFeeCallResults = (await multicallContract.callStatic.tryAggregate( false, - pairAddressList.map((target) => ({ target, callData })) + pairAddressList.map((target) => ({ target, callData })), )) as Multicall2TryAggregateResult[] // Map the call results to the pair addresses diff --git a/src/entities/trades/uniswap-v2/pairs/pairs.ts b/src/entities/trades/uniswap-v2/pairs/pairs.ts index 03891ac9..8bd621b2 100644 --- a/src/entities/trades/uniswap-v2/pairs/pairs.ts +++ b/src/entities/trades/uniswap-v2/pairs/pairs.ts @@ -45,7 +45,7 @@ export async function getAllCommonUniswapV2Pairs({ const [tokenA, tokenB] = [wrappedCurrency(currencyA, chainId), wrappedCurrency(currencyB, chainId)] const basePairs: [Token, Token][] = flatMap(bases, (base): [Token, Token][] => - bases.map((otherBase) => [base, otherBase]) + bases.map((otherBase) => [base, otherBase]), ).filter(([t0, t1]) => t0.address !== t1.address) const allPairCombinations: [Token, Token][] = [ @@ -94,7 +94,7 @@ export async function getAllCommonUniswapV2Pairs({ const getReservesAndSwapFeeCallResults = (await multicallContract.callStatic.tryAggregate( false, - multicall2CallData + multicall2CallData, )) as Multicall2TryAggregateResult[] for (let i = 0; i < getReservesAndSwapFeeCallResults.length; i += 2) { @@ -112,7 +112,7 @@ export async function getAllCommonUniswapV2Pairs({ // Decode reserves and swap fee from the results const { reserve0, reserve1 } = uniswapPairInterface.decodeFunctionResult( 'getReserves', - getReservesResults.returnData + getReservesResults.returnData, ) // Swap fee is only available in Swapr's extended UniswapV2Pair contract @@ -129,8 +129,8 @@ export async function getAllCommonUniswapV2Pairs({ new TokenAmount(token1, reserve1.toString()), swapFee.toString(), BigInt(0), - platform - ) + platform, + ), ) } catch (e) { getAllCommonUniswapV2PairsDebug(e) @@ -186,7 +186,7 @@ export async function getAllCommonUniswapV2PairsFromSubgraph({ new TokenAmount(token1, parseUnits(pair.reserve1, token1.decimals).toString()), swapFee.toString(), BigInt(0), - platform + platform, ) }) } diff --git a/src/entities/trades/uniswap-v2/utilts.ts b/src/entities/trades/uniswap-v2/utilts.ts index 6a834bfd..537e6a11 100644 --- a/src/entities/trades/uniswap-v2/utilts.ts +++ b/src/entities/trades/uniswap-v2/utilts.ts @@ -21,7 +21,7 @@ export const ZERO_HEX = '0x0' export function computePriceImpact( midPrice: Price, inputAmount: CurrencyAmount, - outputAmount: CurrencyAmount + outputAmount: CurrencyAmount, ): Percent { const exactQuote = midPrice.raw.multiply(inputAmount.raw) // calculate slippage := (exactQuote - outputAmount) / exactQuote diff --git a/src/entities/trades/uniswap/Uniswap/Uniswap.spec.ts b/src/entities/trades/uniswap/Uniswap/Uniswap.spec.ts index 8f0dd08f..3fce10a2 100644 --- a/src/entities/trades/uniswap/Uniswap/Uniswap.spec.ts +++ b/src/entities/trades/uniswap/Uniswap/Uniswap.spec.ts @@ -14,7 +14,7 @@ describe('Uniswap', () => { '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', - 'Tether USD' + 'Tether USD', ) const nativeMatic = Currency.getNative(ChainId.POLYGON) diff --git a/src/entities/trades/uniswap/Uniswap/Uniswap.ts b/src/entities/trades/uniswap/Uniswap/Uniswap.ts index 16d56747..f3e70a3e 100644 --- a/src/entities/trades/uniswap/Uniswap/Uniswap.ts +++ b/src/entities/trades/uniswap/Uniswap/Uniswap.ts @@ -100,7 +100,7 @@ export class UniswapTrade extends TradeWithSwapTransaction { static async getQuote( { amount, quoteCurrency, tradeType, recipient, maximumSlippage }: UniswapTradeGetQuoteParams, - provider?: BaseProvider + provider?: BaseProvider, ): Promise { const chainId = tryGetChainId(amount, quoteCurrency) invariant(chainId, 'UniswapV3Trade.getQuote: chainId is required') @@ -113,7 +113,7 @@ export class UniswapTrade extends TradeWithSwapTransaction { // Must match the currencies provided invariant( (await provider.getNetwork()).chainId == chainId, - `UniswapTrade.getQuote: currencies chainId does not match provider's chainId` + `UniswapTrade.getQuote: currencies chainId does not match provider's chainId`, ) const alphaRouter = new AlphaRouter({ chainId: chainId as number, provider }) @@ -127,9 +127,9 @@ export class UniswapTrade extends TradeWithSwapTransaction { amount.currency.address as string, amount.currency.decimals, amount.currency.symbol, - amount.currency.name + amount.currency.name, ), - amount.raw + amount.raw, ) const quoteCurrencyV3 = Currency.isNative(quoteCurrency) @@ -139,7 +139,7 @@ export class UniswapTrade extends TradeWithSwapTransaction { quoteCurrency.address as string, quoteCurrency.decimals, quoteCurrency.symbol, - quoteCurrency.name + quoteCurrency.name, ) debugUniswapTradeGetQuote({ @@ -162,7 +162,7 @@ export class UniswapTrade extends TradeWithSwapTransaction { }, { protocols: [Protocol.V2, Protocol.V3], - } + }, ) // Debug diff --git a/src/entities/trades/utils.ts b/src/entities/trades/utils.ts index d4a09cd0..57c791ac 100644 --- a/src/entities/trades/utils.ts +++ b/src/entities/trades/utils.ts @@ -44,8 +44,8 @@ export function tryGetChainId(currencyAmount: CurrencyAmount, currency: Currency return currencyAmount instanceof TokenAmount ? currencyAmount.token.chainId : currency instanceof Token - ? currency.chainId - : undefined + ? currency.chainId + : undefined } /** diff --git a/src/entities/trades/velodrome/Velodrome.ts b/src/entities/trades/velodrome/Velodrome.ts index 5e8b1ef3..3685d8be 100644 --- a/src/entities/trades/velodrome/Velodrome.ts +++ b/src/entities/trades/velodrome/Velodrome.ts @@ -82,7 +82,7 @@ export class VelodromeTrade extends Trade { static async getQuote( { amount, quoteCurrency, tradeType, maximumSlippage, recipient }: VelodromeQuoteTypes, - provider?: BaseProvider + provider?: BaseProvider, ): Promise { const chainId = tryGetChainId(amount, quoteCurrency) invariant(chainId, 'VelodromeQuote.getQuote: chainId is required') @@ -96,7 +96,7 @@ export class VelodromeTrade extends Trade { // Must match the currencies provided invariant( (await provider.getNetwork()).chainId == chainId, - `VelodromTrade.getQuote: currencies chainId does not match provider's chainId` + `VelodromTrade.getQuote: currencies chainId does not match provider's chainId`, ) const currencyIn = amount.currency @@ -154,7 +154,7 @@ export class VelodromeTrade extends Trade { amountIn, bestAmountOut.routes[i].from, bestAmountOut.routes[i].to, - bestAmountOut.routes[i].stable + bestAmountOut.routes[i].stable, ) const decimals = tradeType === TradeType.EXACT_INPUT ? quoteCurrency.decimals : amount.currency.decimals diff --git a/src/fetcher.ts b/src/fetcher.ts index 0a4eeab0..2ae488b0 100644 --- a/src/fetcher.ts +++ b/src/fetcher.ts @@ -34,7 +34,7 @@ export abstract class Fetcher { tokenA: Token, tokenB: Token, provider = getDefaultProvider(getNetwork(tokenA.chainId)), - platform: UniswapV2RoutablePlatform = UniswapV2RoutablePlatform.SWAPR + platform: UniswapV2RoutablePlatform = UniswapV2RoutablePlatform.SWAPR, ): Promise { invariant(tokenA.chainId === tokenB.chainId, 'CHAIN_ID') const address = Pair.getAddress(tokenA, tokenB, platform) @@ -50,15 +50,15 @@ export abstract class Fetcher { Pair.getAddress(tokenAmounts[0].token, tokenAmounts[1].token, platform), 18, 'DXS', - 'DXswap' + 'DXswap', ) const swapFee = JSBI.BigInt(await new Contract(liquidityToken.address, IDXswapPair.abi, provider).swapFee()) const protocolFeeDenominator = JSBI.BigInt( await new Contract( FACTORY_ADDRESS[tokenAmountA.token.chainId], IDXswapFactory.abi, - provider - ).protocolFeeDenominator() + provider, + ).protocolFeeDenominator(), ) return new Pair(tokenAmountA, tokenAmountB, swapFee, protocolFeeDenominator) } @@ -70,7 +70,7 @@ export abstract class Fetcher { */ public static async fetchSwapFee( liquidityToken: Token, - provider = getDefaultProvider(getNetwork(liquidityToken.chainId)) + provider = getDefaultProvider(getNetwork(liquidityToken.chainId)), ): Promise<{ fee: BigintIsh owner: string @@ -88,7 +88,7 @@ export abstract class Fetcher { */ public static async fetchSwapFees( liquidityTokens: Token[], - provider = getDefaultProvider(getNetwork(liquidityTokens[0].chainId)) + provider = getDefaultProvider(getNetwork(liquidityTokens[0].chainId)), ): Promise< { fee: BigintIsh @@ -107,14 +107,14 @@ export abstract class Fetcher { calls.push({ address: liquidityTokens[tokenPairsIndex].address, callData: liquidityTokenContract.interface.encodeFunctionData( - liquidityTokenContract.interface.getFunction('swapFee()') + liquidityTokenContract.interface.getFunction('swapFee()'), ), }) } const result = await multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])) const owner = factoryContract.interface.decodeFunctionResult( factoryContract.interface.getFunction('feeToSetter()'), - result.returnData[0] + result.returnData[0], )[0] const fees = [] for (let resultIndex = 1; resultIndex < result.returnData.length; resultIndex++) { @@ -122,8 +122,8 @@ export abstract class Fetcher { fee: JSBI.BigInt( liquidityTokenContract.interface.decodeFunctionResult( liquidityTokenContract.interface.getFunction('swapFee()'), - result.returnData[resultIndex] - )[0] + result.returnData[resultIndex], + )[0], ), owner, }) @@ -145,7 +145,7 @@ export abstract class Fetcher { owner: string } } = {}, - provider = getDefaultProvider(getNetwork(chainId)) + provider = getDefaultProvider(getNetwork(chainId)), ): Promise<{ [key: string]: { fee: BigintIsh @@ -179,14 +179,14 @@ export abstract class Fetcher { address: factoryContract.address, callData: factoryContract.interface.encodeFunctionData( factoryContract.interface.getFunction('allPairs(uint)'), - [pairIndex] + [pairIndex], ), }) const result = await multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])) for (let resultIndex = 0; resultIndex < result.returnData.length; resultIndex++) { const tokenPairAddress = factoryContract.interface.decodeFunctionResult( factoryContract.interface.getFunction('allPairs(uint256)'), - result.returnData[resultIndex] + result.returnData[resultIndex], )[0] tokenPairsToFetch.push(new Token(chainId, tokenPairAddress, 18, 'DXS', 'DXswap')) } @@ -205,7 +205,7 @@ export abstract class Fetcher { */ public static async fetchProtocolFee( chainId: ChainId, - provider = getDefaultProvider(getNetwork(chainId)) + provider = getDefaultProvider(getNetwork(chainId)), ): Promise<{ feeDenominator: BigintIsh feeReceiver: string diff --git a/test/0x-trade.test.ts b/test/0x-trade.test.ts index 75283945..c604d958 100644 --- a/test/0x-trade.test.ts +++ b/test/0x-trade.test.ts @@ -5,7 +5,6 @@ import invariant from 'tiny-invariant' import { execAsync } from '../jest' // Tets targets import { ChainId, CurrencyAmount, Percent, Token, TokenAmount, ZeroXTrade } from '../src' -import { CODE_TO_PLATFORM_NAME } from '../src/entities/trades/0x/constants' import { ApiSource } from '../src/entities/trades/0x/types' import { decodePlatformName, decodeStringToPercent, platformsFromSources } from '../src/entities/trades/0x/utils' import { TOKENS_MAINNET, TokenType } from '../src/entities/trades/curve/tokens' @@ -22,7 +21,7 @@ describe('ZeroXTrade', () => { TOKENS_MAINNET.steth.address, TOKENS_MAINNET.steth.decimals, TOKENS_MAINNET.steth.symbol, - TOKENS_MAINNET.steth.name + TOKENS_MAINNET.steth.name, ) const tokenETH = new Token( @@ -30,7 +29,7 @@ describe('ZeroXTrade', () => { TOKENS_MAINNET.eth.address, TOKENS_MAINNET.eth.decimals, TOKENS_MAINNET.eth.symbol, - TOKENS_MAINNET.eth.name + TOKENS_MAINNET.eth.name, ) const tokenCRV = new Token( @@ -38,7 +37,7 @@ describe('ZeroXTrade', () => { TOKENS_MAINNET.crv.address, TOKENS_MAINNET.crv.decimals, TOKENS_MAINNET.crv.symbol, - TOKENS_MAINNET.crv.name + TOKENS_MAINNET.crv.name, ) const tokenRenBTC = new Token( @@ -46,7 +45,7 @@ describe('ZeroXTrade', () => { TOKENS_MAINNET.renbtc.address, TOKENS_MAINNET.renbtc.decimals, TOKENS_MAINNET.renbtc.symbol, - TOKENS_MAINNET.renbtc.name + TOKENS_MAINNET.renbtc.name, ) const tokenWBTC = new Token( @@ -54,25 +53,25 @@ describe('ZeroXTrade', () => { TOKENS_MAINNET.wbtc.address, TOKENS_MAINNET.wbtc.decimals, TOKENS_MAINNET.wbtc.symbol, - TOKENS_MAINNET.wbtc.name + TOKENS_MAINNET.wbtc.name, ) // Common token amounts const currencyAmountETH1 = new TokenAmount( tokenETH, - parseUnits('1', tokenETH.decimals).toString() + parseUnits('1', tokenETH.decimals).toString(), ) as CurrencyAmount const currencyAmountCRV = new TokenAmount( tokenCRV, - parseUnits('1000', tokenCRV.decimals).toString() + parseUnits('1000', tokenCRV.decimals).toString(), ) as CurrencyAmount const currencyAmountRenBTC1 = new TokenAmount( tokenRenBTC, - parseUnits('1', tokenRenBTC.decimals).toString() + parseUnits('1', tokenRenBTC.decimals).toString(), ) as CurrencyAmount const currencyAmountWBTC = new TokenAmount( tokenWBTC, - parseUnits('1', tokenWBTC.decimals).toString() + parseUnits('1', tokenWBTC.decimals).toString(), ) as CurrencyAmount beforeAll(async () => { @@ -86,7 +85,7 @@ describe('ZeroXTrade', () => { test.skip('Should find a route from 1.5 stETH to ETH', async () => { const currencyAmountIn = new TokenAmount( tokenStETH, - parseUnits('1.5', tokenStETH.decimals).toString() + parseUnits('1.5', tokenStETH.decimals).toString(), ) as CurrencyAmount const trade = await ZeroXTrade.bestTradeExactIn(currencyAmountIn, tokenETH, maximumSlippage) invariant(!!trade) @@ -106,7 +105,7 @@ describe('ZeroXTrade', () => { expect(swapTransaction.data).toBeDefined() expect(swapTransaction?.to).toBeAddress() expect(swapTransaction?.value?.toString()).toEqual( - parseUnits('1', currencyAmountETH1.currency.decimals).toString() + parseUnits('1', currencyAmountETH1.currency.decimals).toString(), ) }) @@ -188,7 +187,7 @@ describe('ZeroXTrade', () => { TOKENS_POLYGON.wmatic.address, TOKENS_POLYGON.wmatic.decimals, TOKENS_POLYGON.wmatic.symbol, - TOKENS_POLYGON.wmatic.name + TOKENS_POLYGON.wmatic.name, ) const tokenWBTC = new Token( @@ -196,7 +195,7 @@ describe('ZeroXTrade', () => { TOKENS_POLYGON.wbtc.address, TOKENS_POLYGON.wbtc.decimals, TOKENS_POLYGON.wbtc.symbol, - TOKENS_POLYGON.wbtc.name + TOKENS_POLYGON.wbtc.name, ) const tokenUSDT = new Token( @@ -204,23 +203,23 @@ describe('ZeroXTrade', () => { TOKENS_POLYGON.usdt.address, TOKENS_POLYGON.usdt.decimals, TOKENS_POLYGON.usdt.symbol, - TOKENS_POLYGON.usdt.name + TOKENS_POLYGON.usdt.name, ) // Common token amounts const currencyAmountWMATIC = new TokenAmount( tokenWMATIC, - parseUnits('1.2', tokenWMATIC.decimals).toString() + parseUnits('1.2', tokenWMATIC.decimals).toString(), ) as CurrencyAmount const currencyAmountUSDT = new TokenAmount( tokenUSDT, - parseUnits('0.2', tokenUSDT.decimals).toString() + parseUnits('0.2', tokenUSDT.decimals).toString(), ) as CurrencyAmount const currencyAmountWBTC = new TokenAmount( tokenWBTC, - parseUnits('0.002', tokenWBTC.decimals).toString() + parseUnits('0.002', tokenWBTC.decimals).toString(), ) as CurrencyAmount beforeAll(async () => { @@ -276,7 +275,6 @@ describe('ZeroXTrade', () => { describe('utils', () => { describe('decodePlatformName', () => { test('returns platform names from api', () => { - expect(decodePlatformName(CODE_TO_PLATFORM_NAME['DODO_V2'])).toEqual('Dodo v2') expect(decodePlatformName('0x')).toEqual('0x') }) }) From 0daa58ba762dcd30c1c67439f6a40ac277d3d62f Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 16:04:26 -0300 Subject: [PATCH 2/7] improv(SWA-134): ran linter in new Swapr V3 files, change import path from ethers to enable treeshaking --- src/entities/trades/swapr-v3/SwaprV3.ts | 29 ++++++++++------------- src/entities/trades/swapr-v3/contracts.ts | 7 +++--- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/entities/trades/swapr-v3/SwaprV3.ts b/src/entities/trades/swapr-v3/SwaprV3.ts index e5bb8c57..59333658 100644 --- a/src/entities/trades/swapr-v3/SwaprV3.ts +++ b/src/entities/trades/swapr-v3/SwaprV3.ts @@ -1,24 +1,21 @@ import type { BaseProvider } from '@ethersproject/providers' -import dayjs from 'dayjs' - +import { UnsignedTransaction } from '@ethersproject/transactions' +import { parseUnits } from '@ethersproject/units' import { Fraction, validateAndParseAddress } from '@uniswap/sdk-core' +import dayjs from 'dayjs' import invariant from 'tiny-invariant' +import { ChainId, ONE, TradeType } from '../../../constants' +import { Currency } from '../../currency' import { CurrencyAmount, Percent, Price, TokenAmount } from '../../fractions' - import { TradeWithSwapTransaction } from '../interfaces/trade' +import { TradeOptions } from '../interfaces/trade-options' import { RoutablePlatform } from '../routable-platform' import { getProvider, tryGetChainId } from '../utils' -import { ChainId, ONE, TradeType } from '../../../constants' - -import { UnsignedTransaction } from 'ethers' -import { TradeOptions } from '../interfaces/trade-options' -import { parseUnits } from '@ethersproject/units' import { SWAPR_ALGEBRA_CONTRACTS } from './constants' import { getQuoterContract, getRouterContract } from './contracts' import { getRoutes } from './routes' import { maximumSlippage as defaultMaximumSlippage } from '../constants' -import { Currency } from '../../currency' import { Token, WXDAI } from '../../token' import JSBI from 'jsbi' @@ -130,8 +127,8 @@ export class SwaprV3Trade extends TradeWithSwapTransaction { maximumSlippage, inputAmount: amount, outputAmount: new TokenAmount(quoteToken, quotedAmountOut), - tradeType: tradeType, - chainId: chainId, + tradeType, + chainId, priceImpact: new Percent('0', '100'), fee, }) @@ -149,10 +146,10 @@ export class SwaprV3Trade extends TradeWithSwapTransaction { maximumSlippage, inputAmount: new TokenAmount(quoteToken, quotedAmountIn), outputAmount: amount, - tradeType: tradeType, - chainId: chainId, + tradeType, + chainId, priceImpact: new Percent('0', '100'), - fee: fee, + fee, }) } } @@ -216,13 +213,13 @@ export class SwaprV3Trade extends TradeWithSwapTransaction { const exactInputSingleParams = { ...baseParams, - amountIn: amountIn, + amountIn, amountOutMinimum: amountOut, } const exactOutputSingleParams = { ...baseParams, - amountOut: amountOut, + amountOut, amountInMaximum: amountIn, } diff --git a/src/entities/trades/swapr-v3/contracts.ts b/src/entities/trades/swapr-v3/contracts.ts index 76c8906d..87779aec 100644 --- a/src/entities/trades/swapr-v3/contracts.ts +++ b/src/entities/trades/swapr-v3/contracts.ts @@ -1,8 +1,9 @@ -import { Contract } from 'ethers' -import { SWAPR_ALGEBRA_POOL_ABI, SWAPR_ALGEBRA_QUOTER_ABI, SWAPR_ALGEBRA_ROUTER_ABI } from './abi' +import { Contract } from '@ethersproject/contracts' + +import { ChainId } from '../../../constants' import { getProvider } from '../utils' +import { SWAPR_ALGEBRA_POOL_ABI, SWAPR_ALGEBRA_QUOTER_ABI, SWAPR_ALGEBRA_ROUTER_ABI } from './abi' import { SWAPR_ALGEBRA_CONTRACTS } from './constants' -import { ChainId } from '../../../constants' export function getPoolsContract(pool_address: string) { return new Contract(pool_address, SWAPR_ALGEBRA_POOL_ABI, getProvider(ChainId.GNOSIS)) From 2d4a3db8fc0794dc6edceaa1329aeb1e1b3b2d34 Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 16:29:34 -0300 Subject: [PATCH 3/7] improv(SWA-134): remove unneeded linter disables, update imports, update CoW SDK types --- .../trades/gnosis-protocol/CoWTrade.ts | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/entities/trades/gnosis-protocol/CoWTrade.ts b/src/entities/trades/gnosis-protocol/CoWTrade.ts index bc3f1c79..75d4bfc6 100644 --- a/src/entities/trades/gnosis-protocol/CoWTrade.ts +++ b/src/entities/trades/gnosis-protocol/CoWTrade.ts @@ -1,5 +1,3 @@ -// @ts-nocheck -// eslint-disable-next-line no-restricted-imports import contractNetworks from '@cowprotocol/contracts/networks.json' import { CowSdk, OrderKind, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk' // eslint-disable-next-line no-restricted-imports @@ -26,6 +24,13 @@ import { CoWTradeError } from './CoWTradeError' import { CoWTradeGetBestTradeExactInParams, CoWTradeGetBestTradeExactOutParams, CoWTradeParams } from './types' const ZERO_PERCENT = new Percent(ZERO, ONE) +enum CowChainId { + MAINNET = 1, + RINKEBY = 4, + GOERLI = 5, + GNOSIS = 100, + SEPOLIA = 11155111, +} /** * CoWTrade uses CowFi API to find and route trades through the MEV-protected Gnosis Protocol v2 @@ -401,11 +406,11 @@ export class CoWTrade extends Trade { * Returns the vault relayer contract address for the given chain. * ERC20 tokens must approve this address. * @param chainId The chain Id - * @returns The vault relayer address + * @returns The vault relayer address or undefined */ - public static getVaultRelayerAddress(chainId: ChainId) { + public static getVaultRelayerAddress(chainId: ChainId | CowChainId) { const GPv2VaultRelayer = contractNetworks.GPv2VaultRelayer as Record< - ChainId, + ChainId | CowChainId, Record<'transactionHash' | 'address', string> > @@ -415,11 +420,11 @@ export class CoWTrade extends Trade { /** * Returns the settlement contract address for the given chain * @param chainId The chain Id - * @returns The settlement address + * @returns The settlement address or undefined */ - public static getSettlementAddress(chainId: ChainId) { + public static getSettlementAddress(chainId: ChainId | CowChainId) { const GPv2Settlement = contractNetworks.GPv2Settlement as Record< - ChainId, + ChainId | CowChainId, Record<'transactionHash' | 'address', string> > From 497a787eec9514f3c9f2f97096db700de69cf167 Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 16:30:34 -0300 Subject: [PATCH 4/7] chore(SWA-134): add dist folder for testing purposes --- dist/abis/index.d.ts | 7 + dist/abis/index.js | 17 + dist/abis/index.js.map | 1 + dist/abis/source/ERC20.json | 38 + dist/abis/source/multicall2.json | 1 + dist/abis/source/router.json | 963 +++ .../staking-rewards-distribution-factory.json | 216 + .../source/staking-rewards-distribution.json | 725 +++ dist/abis/source/swpr-claimer.json | 193 + dist/constants/addresses.d.ts | 28 + dist/constants/addresses.js | 66 + dist/constants/addresses.js.map | 1 + dist/constants/chains.d.ts | 32 + dist/constants/chains.js | 37 + dist/constants/chains.js.map | 1 + dist/constants/index.d.ts | 31 + dist/constants/index.js | 38 + dist/constants/index.js.map | 1 + dist/constants/solidity.d.ts | 9 + dist/constants/solidity.js | 15 + dist/constants/solidity.js.map | 1 + dist/entities/DistributionCampaignBase.d.ts | 31 + dist/entities/DistributionCampaignBase.js | 97 + dist/entities/DistributionCampaignBase.js.map | 1 + dist/entities/currency.d.ts | 45 + dist/entities/currency.js | 76 + dist/entities/currency.js.map | 1 + dist/entities/fractions/currencyAmount.d.ts | 24 + dist/entities/fractions/currencyAmount.js | 63 + dist/entities/fractions/currencyAmount.js.map | 1 + dist/entities/fractions/fraction.d.ts | 19 + dist/entities/fractions/fraction.js | 93 + dist/entities/fractions/fraction.js.map | 1 + dist/entities/fractions/index.d.ts | 6 + dist/entities/fractions/index.js | 10 + dist/entities/fractions/index.js.map | 1 + dist/entities/fractions/percent.d.ts | 6 + dist/entities/fractions/percent.js | 16 + dist/entities/fractions/percent.js.map | 1 + dist/entities/fractions/price.d.ts | 25 + dist/entities/fractions/price.js | 80 + dist/entities/fractions/price.js.map | 1 + .../fractions/priced-token-amount.d.ts | 9 + .../entities/fractions/priced-token-amount.js | 18 + .../fractions/priced-token-amount.js.map | 1 + dist/entities/fractions/tokenAmount.d.ts | 9 + dist/entities/fractions/tokenAmount.js | 24 + dist/entities/fractions/tokenAmount.js.map | 1 + dist/entities/index.d.ts | 11 + dist/entities/index.js | 15 + dist/entities/index.js.map | 1 + dist/entities/kpi-token.d.ts | 9 + dist/entities/kpi-token.js | 31 + dist/entities/kpi-token.js.map | 1 + dist/entities/liquidity-mining-campaign.d.ts | 17 + dist/entities/liquidity-mining-campaign.js | 23 + .../entities/liquidity-mining-campaign.js.map | 1 + dist/entities/pair.d.ts | 53 + dist/entities/pair.js | 230 + dist/entities/pair.js.map | 1 + dist/entities/platforms-breakdown.d.ts | 16 + dist/entities/platforms-breakdown.js | 24 + dist/entities/platforms-breakdown.js.map | 1 + dist/entities/priced-token.d.ts | 10 + dist/entities/priced-token.js | 18 + dist/entities/priced-token.js.map | 1 + dist/entities/route.d.ts | 14 + dist/entities/route.js | 37 + dist/entities/route.js.map | 1 + ...ingle-sided-liquidity-mining-campaign.d.ts | 7 + .../single-sided-liquidity-mining-campaign.js | 23 + ...gle-sided-liquidity-mining-campaign.js.map | 1 + dist/entities/token.d.ts | 51 + dist/entities/token.js | 156 + dist/entities/token.js.map | 1 + dist/entities/trades/0x/0xTrade.d.ts | 27 + dist/entities/trades/0x/0xTrade.js | 209 + dist/entities/trades/0x/0xTrade.js.map | 1 + dist/entities/trades/0x/constants.d.ts | 7 + dist/entities/trades/0x/constants.js | 27 + dist/entities/trades/0x/constants.js.map | 1 + dist/entities/trades/0x/index.d.ts | 2 + dist/entities/trades/0x/index.js | 6 + dist/entities/trades/0x/index.js.map | 1 + dist/entities/trades/0x/types.d.ts | 45 + dist/entities/trades/0x/types.js | 3 + dist/entities/trades/0x/types.js.map | 1 + dist/entities/trades/0x/utils.d.ts | 20 + dist/entities/trades/0x/utils.js | 52 + dist/entities/trades/0x/utils.js.map | 1 + dist/entities/trades/OneInch/OneInch.d.ts | 40 + dist/entities/trades/OneInch/OneInch.js | 154 + dist/entities/trades/OneInch/OneInch.js.map | 1 + dist/entities/trades/OneInch/api.d.ts | 13 + dist/entities/trades/OneInch/api.js | 51 + dist/entities/trades/OneInch/api.js.map | 1 + dist/entities/trades/OneInch/index.d.ts | 1 + dist/entities/trades/OneInch/index.js | 5 + dist/entities/trades/OneInch/index.js.map | 1 + dist/entities/trades/constants/index.d.ts | 7 + dist/entities/trades/constants/index.js | 18 + dist/entities/trades/constants/index.js.map | 1 + dist/entities/trades/curve/CurveTrade.d.ts | 83 + dist/entities/trades/curve/CurveTrade.js | 538 ++ dist/entities/trades/curve/CurveTrade.js.map | 1 + dist/entities/trades/curve/abi/abi.d.ts | 30 + dist/entities/trades/curve/abi/abi.js | 375 ++ dist/entities/trades/curve/abi/abi.js.map | 1 + dist/entities/trades/curve/abi/common.d.ts | 296 + dist/entities/trades/curve/abi/common.js | 273 + dist/entities/trades/curve/abi/common.js.map | 1 + dist/entities/trades/curve/abi/index.d.ts | 5 + dist/entities/trades/curve/abi/index.js | 97 + dist/entities/trades/curve/abi/index.js.map | 1 + .../trades/curve/contracts/contracts.d.ts | 27 + .../trades/curve/contracts/contracts.js | 98 + .../trades/curve/contracts/contracts.js.map | 1 + .../trades/curve/contracts/index.d.ts | 3 + dist/entities/trades/curve/contracts/index.js | 7 + .../trades/curve/contracts/index.js.map | 1 + .../trades/curve/contracts/pools.d.ts | 22 + dist/entities/trades/curve/contracts/pools.js | 60 + .../trades/curve/contracts/pools.js.map | 1 + .../trades/curve/contracts/types.d.ts | 19 + dist/entities/trades/curve/contracts/types.js | 3 + .../trades/curve/contracts/types.js.map | 1 + dist/entities/trades/curve/index.d.ts | 2 + dist/entities/trades/curve/index.js | 6 + dist/entities/trades/curve/index.js.map | 1 + dist/entities/trades/curve/pools/index.d.ts | 1 + dist/entities/trades/curve/pools/index.js | 5 + dist/entities/trades/curve/pools/index.js.map | 1 + dist/entities/trades/curve/pools/pools.d.ts | 16 + dist/entities/trades/curve/pools/pools.js | 522 ++ dist/entities/trades/curve/pools/pools.js.map | 1 + dist/entities/trades/curve/tokens/index.d.ts | 2 + dist/entities/trades/curve/tokens/index.js | 6 + .../entities/trades/curve/tokens/index.js.map | 1 + dist/entities/trades/curve/tokens/tokens.d.ts | 23 + dist/entities/trades/curve/tokens/tokens.js | 641 ++ .../trades/curve/tokens/tokens.js.map | 1 + dist/entities/trades/curve/tokens/types.d.ts | 43 + dist/entities/trades/curve/tokens/types.js | 22 + .../entities/trades/curve/tokens/types.js.map | 1 + dist/entities/trades/curve/types.d.ts | 72 + dist/entities/trades/curve/types.js | 3 + dist/entities/trades/curve/types.js.map | 1 + dist/entities/trades/curve/utils.d.ts | 34 + dist/entities/trades/curve/utils.js | 201 + dist/entities/trades/curve/utils.js.map | 1 + .../trades/gnosis-protocol/CoWTrade.d.ts | 171 + .../trades/gnosis-protocol/CoWTrade.js | 346 ++ .../trades/gnosis-protocol/CoWTrade.js.map | 1 + .../trades/gnosis-protocol/CoWTradeError.d.ts | 6 + .../trades/gnosis-protocol/CoWTradeError.js | 14 + .../gnosis-protocol/CoWTradeError.js.map | 1 + .../trades/gnosis-protocol/app-data.json | 34 + .../trades/gnosis-protocol/index.d.ts | 2 + dist/entities/trades/gnosis-protocol/index.js | 6 + .../trades/gnosis-protocol/index.js.map | 1 + .../trades/gnosis-protocol/types.d.ts | 30 + dist/entities/trades/gnosis-protocol/types.js | 3 + .../trades/gnosis-protocol/types.js.map | 1 + dist/entities/trades/index.d.ts | 11 + dist/entities/trades/index.js | 19 + dist/entities/trades/index.js.map | 1 + .../trades/interfaces/trade-options.d.ts | 4 + .../trades/interfaces/trade-options.js | 3 + .../trades/interfaces/trade-options.js.map | 1 + dist/entities/trades/interfaces/trade.d.ts | 92 + dist/entities/trades/interfaces/trade.js | 33 + dist/entities/trades/interfaces/trade.js.map | 1 + .../BaseRoutablePlatform.d.ts | 31 + .../routable-platform/BaseRoutablePlatform.js | 28 + .../BaseRoutablePlatform.js.map | 1 + .../routable-platform/RoutablePlatform.d.ts | 17 + .../routable-platform/RoutablePlatform.js | 31 + .../routable-platform/RoutablePlatform.js.map | 1 + .../UniswapV2RoutablePlatform.d.ts | 80 + .../UniswapV2RoutablePlatform.js | 201 + .../UniswapV2RoutablePlatform.js.map | 1 + .../trades/routable-platform/index.d.ts | 3 + .../trades/routable-platform/index.js | 7 + .../trades/routable-platform/index.js.map | 1 + dist/entities/trades/swapr-v3/SwaprV3.d.ts | 31 + dist/entities/trades/swapr-v3/SwaprV3.js | 157 + dist/entities/trades/swapr-v3/SwaprV3.js.map | 1 + dist/entities/trades/swapr-v3/abi/index.d.ts | 3 + dist/entities/trades/swapr-v3/abi/index.js | 7 + .../entities/trades/swapr-v3/abi/index.js.map | 1 + .../swapr-v3/abi/swapr-algebra-pool.d.ts | 35 + .../trades/swapr-v3/abi/swapr-algebra-pool.js | 1045 ++++ .../swapr-v3/abi/swapr-algebra-pool.js.map | 1 + .../swapr-v3/abi/swapr-algebra-quoter.d.ts | 25 + .../swapr-v3/abi/swapr-algebra-quoter.js | 205 + .../swapr-v3/abi/swapr-algebra-quoter.js.map | 1 + .../swapr-v3/abi/swapr-algebra-router.d.ts | 50 + .../swapr-v3/abi/swapr-algebra-router.js | 638 ++ .../swapr-v3/abi/swapr-algebra-router.js.map | 1 + dist/entities/trades/swapr-v3/constants.d.ts | 16 + dist/entities/trades/swapr-v3/constants.js | 49 + .../entities/trades/swapr-v3/constants.js.map | 1 + dist/entities/trades/swapr-v3/contracts.d.ts | 4 + dist/entities/trades/swapr-v3/contracts.js | 21 + .../entities/trades/swapr-v3/contracts.js.map | 1 + .../trades/swapr-v3/entities/pool.d.ts | 79 + .../entities/trades/swapr-v3/entities/pool.js | 214 + .../trades/swapr-v3/entities/pool.js.map | 1 + .../trades/swapr-v3/entities/route.d.ts | 26 + .../trades/swapr-v3/entities/route.js | 75 + .../trades/swapr-v3/entities/route.js.map | 1 + dist/entities/trades/swapr-v3/index.d.ts | 1 + dist/entities/trades/swapr-v3/index.js | 5 + dist/entities/trades/swapr-v3/index.js.map | 1 + dist/entities/trades/swapr-v3/pools.d.ts | 7 + dist/entities/trades/swapr-v3/pools.js | 123 + dist/entities/trades/swapr-v3/pools.js.map | 1 + dist/entities/trades/swapr-v3/routes.d.ts | 5 + dist/entities/trades/swapr-v3/routes.js | 38 + dist/entities/trades/swapr-v3/routes.js.map | 1 + .../swapr-v3/utils/computePoolAddress.d.ts | 32 + .../swapr-v3/utils/computePoolAddress.js | 41 + .../swapr-v3/utils/computePoolAddress.js.map | 1 + .../trades/swapr-v3/utils/encode-route.d.ts | 8 + .../trades/swapr-v3/utils/encode-route.js | 32 + .../trades/swapr-v3/utils/encode-route.js.map | 1 + .../entities/trades/uniswap-v2/UniswapV2.d.ts | 52 + dist/entities/trades/uniswap-v2/UniswapV2.js | 386 ++ .../trades/uniswap-v2/UniswapV2.js.map | 1 + .../trades/uniswap-v2/cache/index.d.ts | 6 + .../entities/trades/uniswap-v2/cache/index.js | 27 + .../trades/uniswap-v2/cache/index.js.map | 1 + .../entities/trades/uniswap-v2/constants.d.ts | 20 + dist/entities/trades/uniswap-v2/constants.js | 99 + .../trades/uniswap-v2/constants.js.map | 1 + dist/entities/trades/uniswap-v2/index.d.ts | 4 + dist/entities/trades/uniswap-v2/index.js | 8 + dist/entities/trades/uniswap-v2/index.js.map | 1 + .../trades/uniswap-v2/pairs/fees.d.ts | 6 + dist/entities/trades/uniswap-v2/pairs/fees.js | 36 + .../trades/uniswap-v2/pairs/fees.js.map | 1 + .../trades/uniswap-v2/pairs/index.d.ts | 3 + .../entities/trades/uniswap-v2/pairs/index.js | 7 + .../trades/uniswap-v2/pairs/index.js.map | 1 + .../trades/uniswap-v2/pairs/pairs.d.ts | 11 + .../entities/trades/uniswap-v2/pairs/pairs.js | 141 + .../trades/uniswap-v2/pairs/pairs.js.map | 1 + .../trades/uniswap-v2/pairs/queries.d.ts | 1 + .../trades/uniswap-v2/pairs/queries.js | 34 + .../trades/uniswap-v2/pairs/queries.js.map | 1 + .../trades/uniswap-v2/pairs/types.d.ts | 24 + .../entities/trades/uniswap-v2/pairs/types.js | 3 + .../trades/uniswap-v2/pairs/types.js.map | 1 + dist/entities/trades/uniswap-v2/types.d.ts | 45 + dist/entities/trades/uniswap-v2/types.js | 3 + dist/entities/trades/uniswap-v2/types.js.map | 1 + dist/entities/trades/uniswap-v2/utilts.d.ts | 18 + dist/entities/trades/uniswap-v2/utilts.js | 55 + dist/entities/trades/uniswap-v2/utilts.js.map | 1 + .../trades/uniswap/Uniswap/Uniswap.d.ts | 21 + .../trades/uniswap/Uniswap/Uniswap.js | 161 + .../trades/uniswap/Uniswap/Uniswap.js.map | 1 + dist/entities/trades/uniswap/abi/index.d.ts | 50 + dist/entities/trades/uniswap/abi/index.js | 460 ++ dist/entities/trades/uniswap/abi/index.js.map | 1 + dist/entities/trades/uniswap/index.d.ts | 2 + dist/entities/trades/uniswap/index.js | 6 + dist/entities/trades/uniswap/index.js.map | 1 + .../trades/uniswap/types/UniswapV3.types.d.ts | 16 + .../trades/uniswap/types/UniswapV3.types.js | 3 + .../uniswap/types/UniswapV3.types.js.map | 1 + dist/entities/trades/uniswap/utils/index.d.ts | 3 + dist/entities/trades/uniswap/utils/index.js | 39 + .../trades/uniswap/utils/index.js.map | 1 + .../trades/uniswap/utils/nativeCurrency.d.ts | 2 + .../trades/uniswap/utils/nativeCurrency.js | 37 + .../uniswap/utils/nativeCurrency.js.map | 1 + dist/entities/trades/utils.d.ts | 44 + dist/entities/trades/utils.js | 89 + dist/entities/trades/utils.js.map | 1 + dist/entities/trades/velodrome/Velodrome.d.ts | 50 + dist/entities/trades/velodrome/Velodrome.js | 233 + .../trades/velodrome/Velodrome.js.map | 1 + dist/entities/trades/velodrome/abi.d.ts | 66 + dist/entities/trades/velodrome/abi.js | 436 ++ dist/entities/trades/velodrome/abi.js.map | 1 + dist/entities/trades/velodrome/contants.d.ts | 2 + dist/entities/trades/velodrome/contants.js | 6 + .../entities/trades/velodrome/contants.js.map | 1 + dist/entities/trades/velodrome/index.d.ts | 1 + dist/entities/trades/velodrome/index.js | 5 + dist/entities/trades/velodrome/index.js.map | 1 + dist/entities/trades/velodrome/utils.d.ts | 23 + dist/entities/trades/velodrome/utils.js | 138 + dist/entities/trades/velodrome/utils.js.map | 1 + dist/errors.d.ts | 16 + dist/errors.js | 34 + dist/errors.js.map | 1 + dist/fetcher.d.ts | 64 + dist/fetcher.js | 152 + dist/fetcher.js.map | 1 + dist/generated/graphql/index.d.ts | 5349 +++++++++++++++++ dist/generated/graphql/index.js | 812 +++ dist/generated/graphql/index.js.map | 1 + dist/index.d.ts | 8 + dist/index.js | 14 + dist/index.js.map | 1 + dist/utils.d.ts | 13 + dist/utils.js | 98 + dist/utils.js.map | 1 + 310 files changed, 21721 insertions(+) create mode 100644 dist/abis/index.d.ts create mode 100644 dist/abis/index.js create mode 100644 dist/abis/index.js.map create mode 100644 dist/abis/source/ERC20.json create mode 100644 dist/abis/source/multicall2.json create mode 100644 dist/abis/source/router.json create mode 100644 dist/abis/source/staking-rewards-distribution-factory.json create mode 100644 dist/abis/source/staking-rewards-distribution.json create mode 100644 dist/abis/source/swpr-claimer.json create mode 100644 dist/constants/addresses.d.ts create mode 100644 dist/constants/addresses.js create mode 100644 dist/constants/addresses.js.map create mode 100644 dist/constants/chains.d.ts create mode 100644 dist/constants/chains.js create mode 100644 dist/constants/chains.js.map create mode 100644 dist/constants/index.d.ts create mode 100644 dist/constants/index.js create mode 100644 dist/constants/index.js.map create mode 100644 dist/constants/solidity.d.ts create mode 100644 dist/constants/solidity.js create mode 100644 dist/constants/solidity.js.map create mode 100644 dist/entities/DistributionCampaignBase.d.ts create mode 100644 dist/entities/DistributionCampaignBase.js create mode 100644 dist/entities/DistributionCampaignBase.js.map create mode 100644 dist/entities/currency.d.ts create mode 100644 dist/entities/currency.js create mode 100644 dist/entities/currency.js.map create mode 100644 dist/entities/fractions/currencyAmount.d.ts create mode 100644 dist/entities/fractions/currencyAmount.js create mode 100644 dist/entities/fractions/currencyAmount.js.map create mode 100644 dist/entities/fractions/fraction.d.ts create mode 100644 dist/entities/fractions/fraction.js create mode 100644 dist/entities/fractions/fraction.js.map create mode 100644 dist/entities/fractions/index.d.ts create mode 100644 dist/entities/fractions/index.js create mode 100644 dist/entities/fractions/index.js.map create mode 100644 dist/entities/fractions/percent.d.ts create mode 100644 dist/entities/fractions/percent.js create mode 100644 dist/entities/fractions/percent.js.map create mode 100644 dist/entities/fractions/price.d.ts create mode 100644 dist/entities/fractions/price.js create mode 100644 dist/entities/fractions/price.js.map create mode 100644 dist/entities/fractions/priced-token-amount.d.ts create mode 100644 dist/entities/fractions/priced-token-amount.js create mode 100644 dist/entities/fractions/priced-token-amount.js.map create mode 100644 dist/entities/fractions/tokenAmount.d.ts create mode 100644 dist/entities/fractions/tokenAmount.js create mode 100644 dist/entities/fractions/tokenAmount.js.map create mode 100644 dist/entities/index.d.ts create mode 100644 dist/entities/index.js create mode 100644 dist/entities/index.js.map create mode 100644 dist/entities/kpi-token.d.ts create mode 100644 dist/entities/kpi-token.js create mode 100644 dist/entities/kpi-token.js.map create mode 100644 dist/entities/liquidity-mining-campaign.d.ts create mode 100644 dist/entities/liquidity-mining-campaign.js create mode 100644 dist/entities/liquidity-mining-campaign.js.map create mode 100644 dist/entities/pair.d.ts create mode 100644 dist/entities/pair.js create mode 100644 dist/entities/pair.js.map create mode 100644 dist/entities/platforms-breakdown.d.ts create mode 100644 dist/entities/platforms-breakdown.js create mode 100644 dist/entities/platforms-breakdown.js.map create mode 100644 dist/entities/priced-token.d.ts create mode 100644 dist/entities/priced-token.js create mode 100644 dist/entities/priced-token.js.map create mode 100644 dist/entities/route.d.ts create mode 100644 dist/entities/route.js create mode 100644 dist/entities/route.js.map create mode 100644 dist/entities/single-sided-liquidity-mining-campaign.d.ts create mode 100644 dist/entities/single-sided-liquidity-mining-campaign.js create mode 100644 dist/entities/single-sided-liquidity-mining-campaign.js.map create mode 100644 dist/entities/token.d.ts create mode 100644 dist/entities/token.js create mode 100644 dist/entities/token.js.map create mode 100644 dist/entities/trades/0x/0xTrade.d.ts create mode 100644 dist/entities/trades/0x/0xTrade.js create mode 100644 dist/entities/trades/0x/0xTrade.js.map create mode 100644 dist/entities/trades/0x/constants.d.ts create mode 100644 dist/entities/trades/0x/constants.js create mode 100644 dist/entities/trades/0x/constants.js.map create mode 100644 dist/entities/trades/0x/index.d.ts create mode 100644 dist/entities/trades/0x/index.js create mode 100644 dist/entities/trades/0x/index.js.map create mode 100644 dist/entities/trades/0x/types.d.ts create mode 100644 dist/entities/trades/0x/types.js create mode 100644 dist/entities/trades/0x/types.js.map create mode 100644 dist/entities/trades/0x/utils.d.ts create mode 100644 dist/entities/trades/0x/utils.js create mode 100644 dist/entities/trades/0x/utils.js.map create mode 100644 dist/entities/trades/OneInch/OneInch.d.ts create mode 100644 dist/entities/trades/OneInch/OneInch.js create mode 100644 dist/entities/trades/OneInch/OneInch.js.map create mode 100644 dist/entities/trades/OneInch/api.d.ts create mode 100644 dist/entities/trades/OneInch/api.js create mode 100644 dist/entities/trades/OneInch/api.js.map create mode 100644 dist/entities/trades/OneInch/index.d.ts create mode 100644 dist/entities/trades/OneInch/index.js create mode 100644 dist/entities/trades/OneInch/index.js.map create mode 100644 dist/entities/trades/constants/index.d.ts create mode 100644 dist/entities/trades/constants/index.js create mode 100644 dist/entities/trades/constants/index.js.map create mode 100644 dist/entities/trades/curve/CurveTrade.d.ts create mode 100644 dist/entities/trades/curve/CurveTrade.js create mode 100644 dist/entities/trades/curve/CurveTrade.js.map create mode 100644 dist/entities/trades/curve/abi/abi.d.ts create mode 100644 dist/entities/trades/curve/abi/abi.js create mode 100644 dist/entities/trades/curve/abi/abi.js.map create mode 100644 dist/entities/trades/curve/abi/common.d.ts create mode 100644 dist/entities/trades/curve/abi/common.js create mode 100644 dist/entities/trades/curve/abi/common.js.map create mode 100644 dist/entities/trades/curve/abi/index.d.ts create mode 100644 dist/entities/trades/curve/abi/index.js create mode 100644 dist/entities/trades/curve/abi/index.js.map create mode 100644 dist/entities/trades/curve/contracts/contracts.d.ts create mode 100644 dist/entities/trades/curve/contracts/contracts.js create mode 100644 dist/entities/trades/curve/contracts/contracts.js.map create mode 100644 dist/entities/trades/curve/contracts/index.d.ts create mode 100644 dist/entities/trades/curve/contracts/index.js create mode 100644 dist/entities/trades/curve/contracts/index.js.map create mode 100644 dist/entities/trades/curve/contracts/pools.d.ts create mode 100644 dist/entities/trades/curve/contracts/pools.js create mode 100644 dist/entities/trades/curve/contracts/pools.js.map create mode 100644 dist/entities/trades/curve/contracts/types.d.ts create mode 100644 dist/entities/trades/curve/contracts/types.js create mode 100644 dist/entities/trades/curve/contracts/types.js.map create mode 100644 dist/entities/trades/curve/index.d.ts create mode 100644 dist/entities/trades/curve/index.js create mode 100644 dist/entities/trades/curve/index.js.map create mode 100644 dist/entities/trades/curve/pools/index.d.ts create mode 100644 dist/entities/trades/curve/pools/index.js create mode 100644 dist/entities/trades/curve/pools/index.js.map create mode 100644 dist/entities/trades/curve/pools/pools.d.ts create mode 100644 dist/entities/trades/curve/pools/pools.js create mode 100644 dist/entities/trades/curve/pools/pools.js.map create mode 100644 dist/entities/trades/curve/tokens/index.d.ts create mode 100644 dist/entities/trades/curve/tokens/index.js create mode 100644 dist/entities/trades/curve/tokens/index.js.map create mode 100644 dist/entities/trades/curve/tokens/tokens.d.ts create mode 100644 dist/entities/trades/curve/tokens/tokens.js create mode 100644 dist/entities/trades/curve/tokens/tokens.js.map create mode 100644 dist/entities/trades/curve/tokens/types.d.ts create mode 100644 dist/entities/trades/curve/tokens/types.js create mode 100644 dist/entities/trades/curve/tokens/types.js.map create mode 100644 dist/entities/trades/curve/types.d.ts create mode 100644 dist/entities/trades/curve/types.js create mode 100644 dist/entities/trades/curve/types.js.map create mode 100644 dist/entities/trades/curve/utils.d.ts create mode 100644 dist/entities/trades/curve/utils.js create mode 100644 dist/entities/trades/curve/utils.js.map create mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.d.ts create mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.js create mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.js.map create mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts create mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.js create mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.js.map create mode 100644 dist/entities/trades/gnosis-protocol/app-data.json create mode 100644 dist/entities/trades/gnosis-protocol/index.d.ts create mode 100644 dist/entities/trades/gnosis-protocol/index.js create mode 100644 dist/entities/trades/gnosis-protocol/index.js.map create mode 100644 dist/entities/trades/gnosis-protocol/types.d.ts create mode 100644 dist/entities/trades/gnosis-protocol/types.js create mode 100644 dist/entities/trades/gnosis-protocol/types.js.map create mode 100644 dist/entities/trades/index.d.ts create mode 100644 dist/entities/trades/index.js create mode 100644 dist/entities/trades/index.js.map create mode 100644 dist/entities/trades/interfaces/trade-options.d.ts create mode 100644 dist/entities/trades/interfaces/trade-options.js create mode 100644 dist/entities/trades/interfaces/trade-options.js.map create mode 100644 dist/entities/trades/interfaces/trade.d.ts create mode 100644 dist/entities/trades/interfaces/trade.js create mode 100644 dist/entities/trades/interfaces/trade.js.map create mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts create mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.js create mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map create mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.d.ts create mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.js create mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.js.map create mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts create mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js create mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map create mode 100644 dist/entities/trades/routable-platform/index.d.ts create mode 100644 dist/entities/trades/routable-platform/index.js create mode 100644 dist/entities/trades/routable-platform/index.js.map create mode 100644 dist/entities/trades/swapr-v3/SwaprV3.d.ts create mode 100644 dist/entities/trades/swapr-v3/SwaprV3.js create mode 100644 dist/entities/trades/swapr-v3/SwaprV3.js.map create mode 100644 dist/entities/trades/swapr-v3/abi/index.d.ts create mode 100644 dist/entities/trades/swapr-v3/abi/index.js create mode 100644 dist/entities/trades/swapr-v3/abi/index.js.map create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js create mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map create mode 100644 dist/entities/trades/swapr-v3/constants.d.ts create mode 100644 dist/entities/trades/swapr-v3/constants.js create mode 100644 dist/entities/trades/swapr-v3/constants.js.map create mode 100644 dist/entities/trades/swapr-v3/contracts.d.ts create mode 100644 dist/entities/trades/swapr-v3/contracts.js create mode 100644 dist/entities/trades/swapr-v3/contracts.js.map create mode 100644 dist/entities/trades/swapr-v3/entities/pool.d.ts create mode 100644 dist/entities/trades/swapr-v3/entities/pool.js create mode 100644 dist/entities/trades/swapr-v3/entities/pool.js.map create mode 100644 dist/entities/trades/swapr-v3/entities/route.d.ts create mode 100644 dist/entities/trades/swapr-v3/entities/route.js create mode 100644 dist/entities/trades/swapr-v3/entities/route.js.map create mode 100644 dist/entities/trades/swapr-v3/index.d.ts create mode 100644 dist/entities/trades/swapr-v3/index.js create mode 100644 dist/entities/trades/swapr-v3/index.js.map create mode 100644 dist/entities/trades/swapr-v3/pools.d.ts create mode 100644 dist/entities/trades/swapr-v3/pools.js create mode 100644 dist/entities/trades/swapr-v3/pools.js.map create mode 100644 dist/entities/trades/swapr-v3/routes.d.ts create mode 100644 dist/entities/trades/swapr-v3/routes.js create mode 100644 dist/entities/trades/swapr-v3/routes.js.map create mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts create mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.js create mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map create mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.d.ts create mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.js create mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.js.map create mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.d.ts create mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.js create mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.js.map create mode 100644 dist/entities/trades/uniswap-v2/cache/index.d.ts create mode 100644 dist/entities/trades/uniswap-v2/cache/index.js create mode 100644 dist/entities/trades/uniswap-v2/cache/index.js.map create mode 100644 dist/entities/trades/uniswap-v2/constants.d.ts create mode 100644 dist/entities/trades/uniswap-v2/constants.js create mode 100644 dist/entities/trades/uniswap-v2/constants.js.map create mode 100644 dist/entities/trades/uniswap-v2/index.d.ts create mode 100644 dist/entities/trades/uniswap-v2/index.js create mode 100644 dist/entities/trades/uniswap-v2/index.js.map create mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.d.ts create mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.js create mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.js.map create mode 100644 dist/entities/trades/uniswap-v2/pairs/index.d.ts create mode 100644 dist/entities/trades/uniswap-v2/pairs/index.js create mode 100644 dist/entities/trades/uniswap-v2/pairs/index.js.map create mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.d.ts create mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.js create mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.js.map create mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.d.ts create mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.js create mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.js.map create mode 100644 dist/entities/trades/uniswap-v2/pairs/types.d.ts create mode 100644 dist/entities/trades/uniswap-v2/pairs/types.js create mode 100644 dist/entities/trades/uniswap-v2/pairs/types.js.map create mode 100644 dist/entities/trades/uniswap-v2/types.d.ts create mode 100644 dist/entities/trades/uniswap-v2/types.js create mode 100644 dist/entities/trades/uniswap-v2/types.js.map create mode 100644 dist/entities/trades/uniswap-v2/utilts.d.ts create mode 100644 dist/entities/trades/uniswap-v2/utilts.js create mode 100644 dist/entities/trades/uniswap-v2/utilts.js.map create mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts create mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.js create mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.js.map create mode 100644 dist/entities/trades/uniswap/abi/index.d.ts create mode 100644 dist/entities/trades/uniswap/abi/index.js create mode 100644 dist/entities/trades/uniswap/abi/index.js.map create mode 100644 dist/entities/trades/uniswap/index.d.ts create mode 100644 dist/entities/trades/uniswap/index.js create mode 100644 dist/entities/trades/uniswap/index.js.map create mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.d.ts create mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.js create mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.js.map create mode 100644 dist/entities/trades/uniswap/utils/index.d.ts create mode 100644 dist/entities/trades/uniswap/utils/index.js create mode 100644 dist/entities/trades/uniswap/utils/index.js.map create mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.d.ts create mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.js create mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.js.map create mode 100644 dist/entities/trades/utils.d.ts create mode 100644 dist/entities/trades/utils.js create mode 100644 dist/entities/trades/utils.js.map create mode 100644 dist/entities/trades/velodrome/Velodrome.d.ts create mode 100644 dist/entities/trades/velodrome/Velodrome.js create mode 100644 dist/entities/trades/velodrome/Velodrome.js.map create mode 100644 dist/entities/trades/velodrome/abi.d.ts create mode 100644 dist/entities/trades/velodrome/abi.js create mode 100644 dist/entities/trades/velodrome/abi.js.map create mode 100644 dist/entities/trades/velodrome/contants.d.ts create mode 100644 dist/entities/trades/velodrome/contants.js create mode 100644 dist/entities/trades/velodrome/contants.js.map create mode 100644 dist/entities/trades/velodrome/index.d.ts create mode 100644 dist/entities/trades/velodrome/index.js create mode 100644 dist/entities/trades/velodrome/index.js.map create mode 100644 dist/entities/trades/velodrome/utils.d.ts create mode 100644 dist/entities/trades/velodrome/utils.js create mode 100644 dist/entities/trades/velodrome/utils.js.map create mode 100644 dist/errors.d.ts create mode 100644 dist/errors.js create mode 100644 dist/errors.js.map create mode 100644 dist/fetcher.d.ts create mode 100644 dist/fetcher.js create mode 100644 dist/fetcher.js.map create mode 100644 dist/generated/graphql/index.d.ts create mode 100644 dist/generated/graphql/index.js create mode 100644 dist/generated/graphql/index.js.map create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 dist/index.js.map create mode 100644 dist/utils.d.ts create mode 100644 dist/utils.js create mode 100644 dist/utils.js.map diff --git a/dist/abis/index.d.ts b/dist/abis/index.d.ts new file mode 100644 index 00000000..657fe3db --- /dev/null +++ b/dist/abis/index.d.ts @@ -0,0 +1,7 @@ +import ERC20_ABI from './source/ERC20.json'; +import MULTICALL2_ABI from './source/multicall2.json'; +import ROUTER_ABI from './source/router.json'; +import STAKING_REWARDS_DISTRIBUTION_ABI from './source/staking-rewards-distribution.json'; +import STAKING_REWARDS_FACTORY_ABI from './source/staking-rewards-distribution-factory.json'; +import SWPR_CLAIMER_ABI from './source/swpr-claimer.json'; +export { ERC20_ABI, MULTICALL2_ABI, ROUTER_ABI, STAKING_REWARDS_DISTRIBUTION_ABI, STAKING_REWARDS_FACTORY_ABI, SWPR_CLAIMER_ABI, }; diff --git a/dist/abis/index.js b/dist/abis/index.js new file mode 100644 index 00000000..93edcc7a --- /dev/null +++ b/dist/abis/index.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SWPR_CLAIMER_ABI = exports.STAKING_REWARDS_FACTORY_ABI = exports.STAKING_REWARDS_DISTRIBUTION_ABI = exports.ROUTER_ABI = exports.MULTICALL2_ABI = exports.ERC20_ABI = void 0; +const tslib_1 = require("tslib"); +const ERC20_json_1 = tslib_1.__importDefault(require("./source/ERC20.json")); +exports.ERC20_ABI = ERC20_json_1.default; +const multicall2_json_1 = tslib_1.__importDefault(require("./source/multicall2.json")); +exports.MULTICALL2_ABI = multicall2_json_1.default; +const router_json_1 = tslib_1.__importDefault(require("./source/router.json")); +exports.ROUTER_ABI = router_json_1.default; +const staking_rewards_distribution_json_1 = tslib_1.__importDefault(require("./source/staking-rewards-distribution.json")); +exports.STAKING_REWARDS_DISTRIBUTION_ABI = staking_rewards_distribution_json_1.default; +const staking_rewards_distribution_factory_json_1 = tslib_1.__importDefault(require("./source/staking-rewards-distribution-factory.json")); +exports.STAKING_REWARDS_FACTORY_ABI = staking_rewards_distribution_factory_json_1.default; +const swpr_claimer_json_1 = tslib_1.__importDefault(require("./source/swpr-claimer.json")); +exports.SWPR_CLAIMER_ABI = swpr_claimer_json_1.default; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/abis/index.js.map b/dist/abis/index.js.map new file mode 100644 index 00000000..395d2759 --- /dev/null +++ b/dist/abis/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/abis/index.ts"],"names":[],"mappings":";;;;AAAA,6EAA2C;AAQzC,oBARK,oBAAS,CAQL;AAPX,uFAAqD;AAQnD,yBARK,yBAAc,CAQL;AAPhB,+EAA6C;AAQ3C,qBARK,qBAAU,CAQL;AAPZ,2HAAyF;AAQvF,2CARK,2CAAgC,CAQL;AAPlC,2IAA4F;AAQ1F,sCARK,mDAA2B,CAQL;AAP7B,2FAAyD;AAQvD,2BARK,2BAAgB,CAQL"} \ No newline at end of file diff --git a/dist/abis/source/ERC20.json b/dist/abis/source/ERC20.json new file mode 100644 index 00000000..0c09a5de --- /dev/null +++ b/dist/abis/source/ERC20.json @@ -0,0 +1,38 @@ +[ + { + "constant": true, + "inputs": [], + "name": "decimals", + "outputs": [{ "name": "", "type": "uint8" }], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "symbol", + "outputs": [{ "name": "", "type": "string" }], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "name", + "outputs": [{ "name": "", "type": "string" }], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [{ "name": "", "type": "address" }], + "name": "balanceOf", + "outputs": [{ "name": "", "type": "uint256" }], + "payable": false, + "stateMutability": "view", + "type": "function" + } +] diff --git a/dist/abis/source/multicall2.json b/dist/abis/source/multicall2.json new file mode 100644 index 00000000..00b991d9 --- /dev/null +++ b/dist/abis/source/multicall2.json @@ -0,0 +1 @@ +[{ "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes[]", "name": "returnData", "internalType": "bytes[]" }], "name": "aggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "blockAndAggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getBlockHash", "inputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }], "name": "getBlockNumber", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "address", "name": "coinbase", "internalType": "address" }], "name": "getCurrentBlockCoinbase", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "difficulty", "internalType": "uint256" }], "name": "getCurrentBlockDifficulty", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "gaslimit", "internalType": "uint256" }], "name": "getCurrentBlockGasLimit", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "timestamp", "internalType": "uint256" }], "name": "getCurrentBlockTimestamp", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "balance", "internalType": "uint256" }], "name": "getEthBalance", "inputs": [{ "type": "address", "name": "addr", "internalType": "address" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getLastBlockHash", "inputs": [] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryBlockAndAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }] diff --git a/dist/abis/source/router.json b/dist/abis/source/router.json new file mode 100644 index 00000000..0d26b51a --- /dev/null +++ b/dist/abis/source/router.json @@ -0,0 +1,963 @@ +[ + { + "inputs": [], + "name": "WETH", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountADesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBDesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "addLiquidity", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountTokenDesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "addLiquidityETH", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "factory", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "swapFee", + "type": "uint256" + } + ], + "name": "getAmountIn", + "outputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "swapFee", + "type": "uint256" + } + ], + "name": "getAmountOut", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + } + ], + "name": "getAmountsIn", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + } + ], + "name": "getAmountsOut", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveB", + "type": "uint256" + } + ], + "name": "quote", + "outputs": [ + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidity", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidityETH", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidityETHSupportingFeeOnTransferTokens", + "outputs": [ + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityETHWithPermit", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", + "outputs": [ + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityWithPermit", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapETHForExactTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactETHForTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForETH", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountInMax", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapTokensForExactETH", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountInMax", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapTokensForExactTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/dist/abis/source/staking-rewards-distribution-factory.json b/dist/abis/source/staking-rewards-distribution-factory.json new file mode 100644 index 00000000..9b417608 --- /dev/null +++ b/dist/abis/source/staking-rewards-distribution-factory.json @@ -0,0 +1,216 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_rewardTokensValidatorAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_stakableTokenValidatorAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "deployedAt", + "type": "address" + } + ], + "name": "DistributionCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_rewardTokensAddresses", + "type": "address[]" + }, + { + "internalType": "address", + "name": "_stakableTokenAddress", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_rewardAmounts", + "type": "uint256[]" + }, + { + "internalType": "uint64", + "name": "_startingTimestamp", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "_endingTimestmp", + "type": "uint64" + }, + { + "internalType": "bool", + "name": "_locked", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "_stakingCap", + "type": "uint256" + } + ], + "name": "createDistribution", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "distributions", + "outputs": [ + { + "internalType": "contract ERC20StakingRewardsDistribution", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDistributionsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rewardTokensValidator", + "outputs": [ + { + "internalType": "contract IRewardTokensValidator", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_rewardTokensValidatorAddress", + "type": "address" + } + ], + "name": "setRewardTokensValidator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_stakableTokenValidatorAddress", + "type": "address" + } + ], + "name": "setStakableTokenValidator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "stakableTokenValidator", + "outputs": [ + { + "internalType": "contract IStakableTokenValidator", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/dist/abis/source/staking-rewards-distribution.json b/dist/abis/source/staking-rewards-distribution.json new file mode 100644 index 00000000..489ff2b2 --- /dev/null +++ b/dist/abis/source/staking-rewards-distribution.json @@ -0,0 +1,725 @@ +[ + { + "anonymous": false, + "inputs": [], + "name": "Canceled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "claimer", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "name": "Claimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address[]", + "name": "rewardsTokenAddresses", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "address", + "name": "stakableTokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "rewardsAmounts", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "startingTimestamp", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "endingTimestamp", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "stakingCap", + "type": "uint256" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "name": "Recovered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "staker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Staked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "withdrawer", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Withdrawn", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "claimedReward", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "consolidatedRewardsPerStakedToken", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "earnedRewards", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "endingTimestamp", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialized", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "lastConsolidationTimestamp", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "locked", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "recoverableUnassignedReward", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "rewardAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "rewardPerStakedToken", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "rewardTokens", + "outputs": [ + { + "internalType": "contract ERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "secondsDuration", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakableToken", + "outputs": [ + { + "internalType": "contract ERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "stakedTokenAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "stakedTokensOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingCap", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "startingTimestamp", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "totalClaimedRewards", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalStakedTokensAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getRewardTokens", + "outputs": [ + { + "internalType": "contract ERC20[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_claimer", + "type": "address" + } + ], + "name": "getClaimedRewards", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_rewardTokenAddresses", + "type": "address[]" + }, + { + "internalType": "address", + "name": "_stakableTokenAddress", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_rewardAmounts", + "type": "uint256[]" + }, + { + "internalType": "uint64", + "name": "_startingTimestamp", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "_endingTimestamp", + "type": "uint64" + }, + { + "internalType": "bool", + "name": "_locked", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "_stakingCap", + "type": "uint256" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "cancel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "recoverUnassignedRewards", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "stake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_amounts", + "type": "uint256[]" + }, + { + "internalType": "address", + "name": "_recipient", + "type": "address" + } + ], + "name": "claim", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_recipient", + "type": "address" + } + ], + "name": "claimAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_recipient", + "type": "address" + } + ], + "name": "exit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "consolidateReward", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_staker", + "type": "address" + } + ], + "name": "claimableRewards", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "rewards", + "outputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "perStakedToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "recoverableAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "claimed", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + } +] diff --git a/dist/abis/source/swpr-claimer.json b/dist/abis/source/swpr-claimer.json new file mode 100644 index 00000000..ebea9dfd --- /dev/null +++ b/dist/abis/source/swpr-claimer.json @@ -0,0 +1,193 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_swprToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "_merkleRoot", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_claimTimeLimit", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyClaimed", + "type": "error" + }, + { + "inputs": [], + "name": "ClaimTimeLimitNotYetReached", + "type": "error" + }, + { + "inputs": [], + "name": "ClaimTimeLimitReached", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidMerkleProof", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidMerkleRoot", + "type": "error" + }, + { + "inputs": [], + "name": "PastClaimTimeLimit", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroAddressInput", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + }, + { + "internalType": "bytes32[]", + "name": "_proof", + "type": "bytes32[]" + } + ], + "name": "claim", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimTimeLimit", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "claimed", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "merkleRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "recover", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "swprToken", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/dist/constants/addresses.d.ts b/dist/constants/addresses.d.ts new file mode 100644 index 00000000..1f320b9e --- /dev/null +++ b/dist/constants/addresses.d.ts @@ -0,0 +1,28 @@ +import { ChainId } from './chains'; +/** + * List of the Swapr Factory contract address for each chain + */ +export declare const FACTORY_ADDRESS: Record; +/** + * List of the Swapr Router contract address for each chain + */ +export declare const ROUTER_ADDRESS: Record; +/** + * List of the Swapr Staking Factory contract address for each chain + */ +export declare const STAKING_REWARDS_FACTORY_ADDRESS: Record; +/** + * List of the Swapr Staking Factory contract address for each chain + */ +export declare const SWPR_CLAIMER_ADDRESS: Record; +/** + * The Swapr Converter contract address, available on Arbritrum One + */ +export declare const SWPR_CONVERTER_ADDRESS: Record; +/** + * Multicall2 contract address + * NOTE: this is an external repository not maintained by any entity funded or directed by MakerDAO governance. + * @see https://github.com/mds1/multicall/blob/main/deployments.json to check + * MakerDAO's fork from https://github.com/makerdao/multicall + */ +export declare const MULTICALL2_ADDRESS: Record; diff --git a/dist/constants/addresses.js b/dist/constants/addresses.js new file mode 100644 index 00000000..00642397 --- /dev/null +++ b/dist/constants/addresses.js @@ -0,0 +1,66 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MULTICALL2_ADDRESS = exports.SWPR_CONVERTER_ADDRESS = exports.SWPR_CLAIMER_ADDRESS = exports.STAKING_REWARDS_FACTORY_ADDRESS = exports.ROUTER_ADDRESS = exports.FACTORY_ADDRESS = void 0; +const constants_1 = require("@ethersproject/constants"); +const _contracts_json_1 = require("@swapr/core/.contracts.json"); +const _contracts_json_2 = require("@swapr/periphery/.contracts.json"); +const chains_1 = require("./chains"); +const emptyAddressList = { + [chains_1.ChainId.MAINNET]: constants_1.AddressZero, + [chains_1.ChainId.RINKEBY]: constants_1.AddressZero, + [chains_1.ChainId.ARBITRUM_ONE]: constants_1.AddressZero, + [chains_1.ChainId.ARBITRUM_RINKEBY]: constants_1.AddressZero, + [chains_1.ChainId.ARBITRUM_GOERLI]: constants_1.AddressZero, + [chains_1.ChainId.XDAI]: constants_1.AddressZero, + [chains_1.ChainId.POLYGON]: constants_1.AddressZero, + [chains_1.ChainId.GOERLI]: constants_1.AddressZero, + [chains_1.ChainId.OPTIMISM_MAINNET]: constants_1.AddressZero, + [chains_1.ChainId.OPTIMISM_GOERLI]: constants_1.AddressZero, + [chains_1.ChainId.BSC_MAINNET]: constants_1.AddressZero, + [chains_1.ChainId.BSC_TESTNET]: constants_1.AddressZero, + [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: constants_1.AddressZero, + [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: constants_1.AddressZero, +}; +/** + * List of the Swapr Factory contract address for each chain + */ +exports.FACTORY_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.MAINNET]: _contracts_json_1.mainnet.factory, [chains_1.ChainId.RINKEBY]: _contracts_json_1.rinkeby.factory, [chains_1.ChainId.ARBITRUM_ONE]: _contracts_json_1.arbitrumOne.factory, [chains_1.ChainId.ARBITRUM_RINKEBY]: _contracts_json_1.arbitrumRinkebyTestnet.factory, [chains_1.ChainId.ARBITRUM_GOERLI]: _contracts_json_1.arbitrumGoerliTestnet.factory, [chains_1.ChainId.XDAI]: _contracts_json_1.xdai.factory, [chains_1.ChainId.GOERLI]: _contracts_json_1.goerli.factory }); +/** + * List of the Swapr Router contract address for each chain + */ +exports.ROUTER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.RINKEBY]: _contracts_json_2.rinkeby.router, [chains_1.ChainId.MAINNET]: _contracts_json_2.mainnet.router, [chains_1.ChainId.XDAI]: _contracts_json_2.xdai.router, [chains_1.ChainId.ARBITRUM_ONE]: _contracts_json_2.arbitrumOne.router, [chains_1.ChainId.ARBITRUM_RINKEBY]: _contracts_json_2.arbitrumRinkebyTestnet.router, [chains_1.ChainId.ARBITRUM_GOERLI]: _contracts_json_2.arbitrumGoerliTestnet.router, [chains_1.ChainId.GOERLI]: _contracts_json_2.goerli.router }); +/** + * List of the Swapr Staking Factory contract address for each chain + */ +exports.STAKING_REWARDS_FACTORY_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.MAINNET]: '0x156F0568a6cE827e5d39F6768A5D24B694e1EA7b', [chains_1.ChainId.RINKEBY]: '0x0f9E49d473B813abe33F1BAB11fa9E16eE850EBa', [chains_1.ChainId.XDAI]: '0xa039793Af0bb060c597362E8155a0327d9b8BEE8', [chains_1.ChainId.ARBITRUM_ONE]: '0xecA7F78d59D16812948849663b26FE10E320f80C', [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x41e657cAdE74f45b7E2F0F4a5AeE0239f2fB4E1F', [chains_1.ChainId.ARBITRUM_GOERLI]: '0x95Bf186929194099899139Ff79998cC147290F28' }); +/** + * List of the Swapr Staking Factory contract address for each chain + */ +exports.SWPR_CLAIMER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.RINKEBY]: '0x6D525E4115d339aD4e336bCF4C85A1Fb8f4a594C', [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x99583f330814E04de96C0288FBF82B5E35A009dc', [chains_1.ChainId.ARBITRUM_ONE]: '0xe54942077Df7b8EEf8D4e6bCe2f7B58B0082b0cd' }); +/** + * The Swapr Converter contract address, available on Arbritrum One + */ +exports.SWPR_CONVERTER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.ARBITRUM_ONE]: '0x2b058af96175A847Bf3E5457B3A702F807daDdFd' }); +/** + * Multicall2 contract address + * NOTE: this is an external repository not maintained by any entity funded or directed by MakerDAO governance. + * @see https://github.com/mds1/multicall/blob/main/deployments.json to check + * MakerDAO's fork from https://github.com/makerdao/multicall + */ +exports.MULTICALL2_ADDRESS = { + [chains_1.ChainId.MAINNET]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696', + [chains_1.ChainId.RINKEBY]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696', + [chains_1.ChainId.ARBITRUM_ONE]: '0x80c7dd17b01855a6d2347444a0fcc36136a314de', + [chains_1.ChainId.XDAI]: '0xFAa296891cA6CECAF2D86eF5F7590316d0A17dA0', + [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x309e61A4c36a4a9f131f8844eA521F6384B6C9E3', + [chains_1.ChainId.ARBITRUM_GOERLI]: '0xBbB06b25484AB9E23FEe8Ee321Af8e253ea7A76a', + [chains_1.ChainId.POLYGON]: '0x275617327c958bD06b5D6b871E7f491D76113dd8', + [chains_1.ChainId.GOERLI]: '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696', + [chains_1.ChainId.OPTIMISM_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', + [chains_1.ChainId.OPTIMISM_GOERLI]: '0xca11bde05977b3631167028862be2a173976ca11', + [chains_1.ChainId.BSC_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', + [chains_1.ChainId.BSC_TESTNET]: '0xca11bde05977b3631167028862be2a173976ca11', + [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: '0xF9cda624FBC7e059355ce98a31693d299FACd963', + [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: '0xF9cda624FBC7e059355ce98a31693d299FACd963', +}; +//# sourceMappingURL=addresses.js.map \ No newline at end of file diff --git a/dist/constants/addresses.js.map b/dist/constants/addresses.js.map new file mode 100644 index 00000000..7e9a7528 --- /dev/null +++ b/dist/constants/addresses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../src/constants/addresses.ts"],"names":[],"mappings":";;;AAAA,wDAAsD;AACtD,iEAQoC;AACpC,sEAQyC;AAEzC,qCAAkC;AAElC,MAAM,gBAAgB,GAA4B;IAChD,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,uBAAW;IAC9B,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,uBAAW;IAC9B,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,uBAAW;IACnC,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,uBAAW;IACvC,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,uBAAW;IACtC,CAAC,gBAAO,CAAC,IAAI,CAAC,EAAE,uBAAW;IAC3B,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,uBAAW;IAC9B,CAAC,gBAAO,CAAC,MAAM,CAAC,EAAE,uBAAW;IAC7B,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,uBAAW;IACvC,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,uBAAW;IACtC,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,uBAAW;IAClC,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,uBAAW;IAClC,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,uBAAW;IAC1C,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,uBAAW;CAC3C,CAAA;AAED;;GAEG;AACU,QAAA,eAAe,mCACvB,gBAAgB,KACnB,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,yBAAW,CAAC,OAAO,EACtC,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,yBAAW,CAAC,OAAO,EACtC,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,6BAAe,CAAC,OAAO,EAC/C,CAAC,gBAAO,CAAC,gBAAgB,CAAC,E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,EAAE,4CAA4C,EACxE,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C,IACrE;AAED;;GAEG;AACU,QAAA,sBAAsB,mCAC9B,gBAAgB,KACnB,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C,IACrE;AAED;;;;;GAKG;AACU,QAAA,kBAAkB,GAA4B;IACzD,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C;IACpE,CAAC,gBAAO,CAAC,IAAI,CAAC,EAAE,4CAA4C;IAC5D,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,4CAA4C;IACvE,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,gBAAO,CAAC,MAAM,CAAC,EAAE,4CAA4C;IAC9D,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,4CAA4C;IACvE,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,4CAA4C;IAC3E,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,4CAA4C;CAC5E,CAAA"} \ No newline at end of file diff --git a/dist/constants/chains.d.ts b/dist/constants/chains.d.ts new file mode 100644 index 00000000..540b994a --- /dev/null +++ b/dist/constants/chains.d.ts @@ -0,0 +1,32 @@ +/** + * Chain Id + */ +export declare enum ChainId { + MAINNET = 1, + /** + * @deprecated Use GOERLI instead + */ + RINKEBY = 4, + GOERLI = 5, + /** + * @deprecated Use GNOSIS instead + */ + XDAI = 100, + GNOSIS = 100, + POLYGON = 137, + ARBITRUM_ONE = 42161, + ARBITRUM_RINKEBY = 421611, + ARBITRUM_GOERLI = 421613, + /** + * Optimism Mainnet + */ + OPTIMISM_MAINNET = 10, + /** + * Optimism Göerli + */ + OPTIMISM_GOERLI = 420, + BSC_MAINNET = 56, + BSC_TESTNET = 97, + ZK_SYNC_ERA_MAINNET = 324, + ZK_SYNC_ERA_TESTNET = 280 +} diff --git a/dist/constants/chains.js b/dist/constants/chains.js new file mode 100644 index 00000000..52d0417f --- /dev/null +++ b/dist/constants/chains.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChainId = void 0; +/** + * Chain Id + */ +var ChainId; +(function (ChainId) { + ChainId[ChainId["MAINNET"] = 1] = "MAINNET"; + /** + * @deprecated Use GOERLI instead + */ + ChainId[ChainId["RINKEBY"] = 4] = "RINKEBY"; + ChainId[ChainId["GOERLI"] = 5] = "GOERLI"; + /** + * @deprecated Use GNOSIS instead + */ + ChainId[ChainId["XDAI"] = 100] = "XDAI"; + ChainId[ChainId["GNOSIS"] = 100] = "GNOSIS"; + ChainId[ChainId["POLYGON"] = 137] = "POLYGON"; + ChainId[ChainId["ARBITRUM_ONE"] = 42161] = "ARBITRUM_ONE"; + ChainId[ChainId["ARBITRUM_RINKEBY"] = 421611] = "ARBITRUM_RINKEBY"; + ChainId[ChainId["ARBITRUM_GOERLI"] = 421613] = "ARBITRUM_GOERLI"; + /** + * Optimism Mainnet + */ + ChainId[ChainId["OPTIMISM_MAINNET"] = 10] = "OPTIMISM_MAINNET"; + /** + * Optimism Göerli + */ + ChainId[ChainId["OPTIMISM_GOERLI"] = 420] = "OPTIMISM_GOERLI"; + ChainId[ChainId["BSC_MAINNET"] = 56] = "BSC_MAINNET"; + ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET"; + ChainId[ChainId["ZK_SYNC_ERA_MAINNET"] = 324] = "ZK_SYNC_ERA_MAINNET"; + ChainId[ChainId["ZK_SYNC_ERA_TESTNET"] = 280] = "ZK_SYNC_ERA_TESTNET"; +})(ChainId = exports.ChainId || (exports.ChainId = {})); +//# sourceMappingURL=chains.js.map \ No newline at end of file diff --git a/dist/constants/chains.js.map b/dist/constants/chains.js.map new file mode 100644 index 00000000..689de46a --- /dev/null +++ b/dist/constants/chains.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chains.js","sourceRoot":"","sources":["../../src/constants/chains.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,OA8BX;AA9BD,WAAY,OAAO;IACjB,2CAAW,CAAA;IACX;;OAEG;IACH,2CAAW,CAAA;IACX,yCAAU,CAAA;IACV;;OAEG;IACH,uCAAU,CAAA;IACV,2CAAY,CAAA;IACZ,6CAAa,CAAA;IACb,yDAAoB,CAAA;IACpB,kEAAyB,CAAA;IACzB,gEAAwB,CAAA;IAExB;;OAEG;IACH,8DAAqB,CAAA;IACrB;;OAEG;IACH,6DAAqB,CAAA;IAErB,oDAAgB,CAAA;IAChB,oDAAgB,CAAA;IAChB,qEAAyB,CAAA;IACzB,qEAAyB,CAAA;AAC3B,CAAC,EA9BW,OAAO,GAAP,eAAO,KAAP,eAAO,QA8BlB"} \ No newline at end of file diff --git a/dist/constants/index.d.ts b/dist/constants/index.d.ts new file mode 100644 index 00000000..0b336974 --- /dev/null +++ b/dist/constants/index.d.ts @@ -0,0 +1,31 @@ +import JSBI from 'jsbi'; +export * from './addresses'; +export * from './chains'; +export * from './solidity'; +export type BigintIsh = JSBI | bigint | string; +export declare enum TradeType { + EXACT_INPUT = 0, + EXACT_OUTPUT = 1 +} +export declare enum Rounding { + ROUND_DOWN = 0, + ROUND_HALF_UP = 1, + ROUND_UP = 2 +} +export declare const SWPR_WHITELIST_IPFS_HASH = "QmcjTAvDJZU339jrc9Ky2pXKR68R1SjnwdyGSQjt1kad9r"; +export declare const INIT_CODE_HASH = "0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776"; +export declare const MINIMUM_LIQUIDITY: JSBI; +export declare const ZERO: JSBI; +export declare const ONE: JSBI; +export declare const TWO: JSBI; +export declare const THREE: JSBI; +export declare const FIVE: JSBI; +export declare const TEN: JSBI; +export declare const _25: JSBI; +export declare const SECONDS_IN_YEAR: JSBI; +export declare const _30: JSBI; +export declare const _100: JSBI; +export declare const _1000: JSBI; +export declare const _10000: JSBI; +export declare const defaultSwapFee: JSBI; +export declare const defaultProtocolFeeDenominator: JSBI; diff --git a/dist/constants/index.js b/dist/constants/index.js new file mode 100644 index 00000000..a5269905 --- /dev/null +++ b/dist/constants/index.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultProtocolFeeDenominator = exports.defaultSwapFee = exports._10000 = exports._1000 = exports._100 = exports._30 = exports.SECONDS_IN_YEAR = exports._25 = exports.TEN = exports.FIVE = exports.THREE = exports.TWO = exports.ONE = exports.ZERO = exports.MINIMUM_LIQUIDITY = exports.INIT_CODE_HASH = exports.SWPR_WHITELIST_IPFS_HASH = exports.Rounding = exports.TradeType = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +tslib_1.__exportStar(require("./addresses"), exports); +tslib_1.__exportStar(require("./chains"), exports); +tslib_1.__exportStar(require("./solidity"), exports); +var TradeType; +(function (TradeType) { + TradeType[TradeType["EXACT_INPUT"] = 0] = "EXACT_INPUT"; + TradeType[TradeType["EXACT_OUTPUT"] = 1] = "EXACT_OUTPUT"; +})(TradeType = exports.TradeType || (exports.TradeType = {})); +var Rounding; +(function (Rounding) { + Rounding[Rounding["ROUND_DOWN"] = 0] = "ROUND_DOWN"; + Rounding[Rounding["ROUND_HALF_UP"] = 1] = "ROUND_HALF_UP"; + Rounding[Rounding["ROUND_UP"] = 2] = "ROUND_UP"; +})(Rounding = exports.Rounding || (exports.Rounding = {})); +exports.SWPR_WHITELIST_IPFS_HASH = 'QmcjTAvDJZU339jrc9Ky2pXKR68R1SjnwdyGSQjt1kad9r'; +exports.INIT_CODE_HASH = '0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776'; +exports.MINIMUM_LIQUIDITY = jsbi_1.default.BigInt(1000); +// exports for internal consumption +exports.ZERO = jsbi_1.default.BigInt(0); +exports.ONE = jsbi_1.default.BigInt(1); +exports.TWO = jsbi_1.default.BigInt(2); +exports.THREE = jsbi_1.default.BigInt(3); +exports.FIVE = jsbi_1.default.BigInt(5); +exports.TEN = jsbi_1.default.BigInt(10); +exports._25 = jsbi_1.default.BigInt(25); +exports.SECONDS_IN_YEAR = jsbi_1.default.BigInt(31536000); +exports._30 = jsbi_1.default.BigInt(30); +exports._100 = jsbi_1.default.BigInt(100); +exports._1000 = jsbi_1.default.BigInt(1000); +exports._10000 = jsbi_1.default.BigInt(10000); +exports.defaultSwapFee = exports._25; +exports.defaultProtocolFeeDenominator = exports.FIVE; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/constants/index.js.map b/dist/constants/index.js.map new file mode 100644 index 00000000..3b39d8c9 --- /dev/null +++ b/dist/constants/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,sDAA2B;AAC3B,mDAAwB;AACxB,qDAA0B;AAK1B,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,uDAAW,CAAA;IACX,yDAAY,CAAA;AACd,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,mDAAU,CAAA;IACV,yDAAa,CAAA;IACb,+CAAQ,CAAA;AACV,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAEY,QAAA,wBAAwB,GAAG,gDAAgD,CAAA;AAE3E,QAAA,cAAc,GAAG,oEAAoE,CAAA;AAErF,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElD,mCAAmC;AACtB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACpB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACpB,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACtB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACvC,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AACvB,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AACzB,QAAA,MAAM,GAAG,cAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAE3B,QAAA,cAAc,GAAG,WAAG,CAAA;AACpB,QAAA,6BAA6B,GAAG,YAAI,CAAA"} \ No newline at end of file diff --git a/dist/constants/solidity.d.ts b/dist/constants/solidity.d.ts new file mode 100644 index 00000000..af09722d --- /dev/null +++ b/dist/constants/solidity.d.ts @@ -0,0 +1,9 @@ +import JSBI from 'jsbi'; +export declare enum SolidityType { + uint8 = "uint8", + uint256 = "uint256" +} +export declare const SOLIDITY_TYPE_MAXIMA: { + uint8: JSBI; + uint256: JSBI; +}; diff --git a/dist/constants/solidity.js b/dist/constants/solidity.js new file mode 100644 index 00000000..413ef173 --- /dev/null +++ b/dist/constants/solidity.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SOLIDITY_TYPE_MAXIMA = exports.SolidityType = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +var SolidityType; +(function (SolidityType) { + SolidityType["uint8"] = "uint8"; + SolidityType["uint256"] = "uint256"; +})(SolidityType = exports.SolidityType || (exports.SolidityType = {})); +exports.SOLIDITY_TYPE_MAXIMA = { + [SolidityType.uint8]: jsbi_1.default.BigInt('0xff'), + [SolidityType.uint256]: jsbi_1.default.BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'), +}; +//# sourceMappingURL=solidity.js.map \ No newline at end of file diff --git a/dist/constants/solidity.js.map b/dist/constants/solidity.js.map new file mode 100644 index 00000000..4c0a3968 --- /dev/null +++ b/dist/constants/solidity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"solidity.js","sourceRoot":"","sources":["../../src/constants/solidity.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AAEvB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAEY,QAAA,oBAAoB,GAAG;IAClC,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,oEAAoE,CAAC;CAC1G,CAAA"} \ No newline at end of file diff --git a/dist/entities/DistributionCampaignBase.d.ts b/dist/entities/DistributionCampaignBase.d.ts new file mode 100644 index 00000000..77ee9fc7 --- /dev/null +++ b/dist/entities/DistributionCampaignBase.d.ts @@ -0,0 +1,31 @@ +import JSBI from 'jsbi'; +import { BigintIsh, ChainId } from '../constants'; +import { Percent, TokenAmount } from './fractions'; +import { PricedTokenAmount } from './fractions/priced-token-amount'; +export interface DistributionCampaignBaseConstructoParams { + startsAt: BigintIsh; + endsAt: BigintIsh; + rewards: PricedTokenAmount[]; + staked: PricedTokenAmount; + locked: boolean; + stakingCap: TokenAmount; + address?: string; +} +export declare class DistributionCampaignBase { + readonly chainId: ChainId; + readonly address?: string; + readonly startsAt: BigintIsh; + readonly endsAt: BigintIsh; + readonly rewards: PricedTokenAmount[]; + readonly staked: PricedTokenAmount; + readonly duration: BigintIsh; + readonly locked: boolean; + readonly stakingCap: TokenAmount; + constructor({ startsAt, endsAt, rewards, staked, locked, stakingCap, address, }: DistributionCampaignBaseConstructoParams); + get remainingDuration(): JSBI; + get remainingDistributionPercentage(): Percent; + get remainingRewards(): PricedTokenAmount[]; + get apy(): Percent; + get currentlyActive(): boolean; + get ended(): boolean; +} diff --git a/dist/entities/DistributionCampaignBase.js b/dist/entities/DistributionCampaignBase.js new file mode 100644 index 00000000..357ca581 --- /dev/null +++ b/dist/entities/DistributionCampaignBase.js @@ -0,0 +1,97 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DistributionCampaignBase = void 0; +const tslib_1 = require("tslib"); +const units_1 = require("@ethersproject/units"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../constants"); +const utils_1 = require("../utils"); +const fractions_1 = require("./fractions"); +const priced_token_amount_1 = require("./fractions/priced-token-amount"); +const token_1 = require("./token"); +const MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY = { + [constants_1.ChainId.RINKEBY]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.RINKEBY).decimals).toString(), constants_1.ChainId.RINKEBY), + [constants_1.ChainId.MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.1', token_1.Token.getNative(constants_1.ChainId.MAINNET).decimals).toString(), constants_1.ChainId.MAINNET), + [constants_1.ChainId.XDAI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('1000', token_1.Token.getNative(constants_1.ChainId.XDAI).decimals).toString(), constants_1.ChainId.XDAI), + [constants_1.ChainId.ARBITRUM_ONE]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.1', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_ONE).decimals).toString(), constants_1.ChainId.ARBITRUM_ONE), + [constants_1.ChainId.ARBITRUM_RINKEBY]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_RINKEBY).decimals).toString(), constants_1.ChainId.ARBITRUM_RINKEBY), + [constants_1.ChainId.ARBITRUM_GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_GOERLI).decimals).toString(), constants_1.ChainId.ARBITRUM_GOERLI), + [constants_1.ChainId.POLYGON]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.POLYGON).decimals).toString(), constants_1.ChainId.POLYGON), + [constants_1.ChainId.GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.GOERLI).decimals).toString(), constants_1.ChainId.GOERLI), + [constants_1.ChainId.OPTIMISM_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.OPTIMISM_MAINNET).decimals).toString(), constants_1.ChainId.OPTIMISM_MAINNET), + [constants_1.ChainId.OPTIMISM_GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.OPTIMISM_GOERLI).decimals).toString(), constants_1.ChainId.OPTIMISM_GOERLI), + [constants_1.ChainId.BSC_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.BSC_MAINNET).decimals).toString(), constants_1.ChainId.BSC_MAINNET), + [constants_1.ChainId.BSC_TESTNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.BSC_TESTNET).decimals).toString(), constants_1.ChainId.BSC_TESTNET), + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.ZK_SYNC_ERA_MAINNET).decimals).toString(), constants_1.ChainId.ZK_SYNC_ERA_MAINNET), + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.ZK_SYNC_ERA_TESTNET).decimals).toString(), constants_1.ChainId.ZK_SYNC_ERA_TESTNET), +}; +class DistributionCampaignBase { + constructor({ startsAt, endsAt, rewards, staked, locked, stakingCap, address, }) { + (0, tiny_invariant_1.default)(jsbi_1.default.lessThan((0, utils_1.parseBigintIsh)(startsAt), (0, utils_1.parseBigintIsh)(endsAt)), 'INCONSISTENT_DATES'); + for (const reward of rewards) { + (0, tiny_invariant_1.default)(staked.token.chainId === reward.token.chainId, 'CHAIN_ID'); + } + this.chainId = staked.token.chainId; + this.startsAt = startsAt; + this.endsAt = endsAt; + this.rewards = rewards; + this.staked = staked; + this.duration = jsbi_1.default.subtract((0, utils_1.parseBigintIsh)(endsAt), (0, utils_1.parseBigintIsh)(startsAt)); + this.locked = locked; + this.stakingCap = stakingCap; + this.address = address; + } + get remainingDuration() { + const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); + const jsbiStartsAt = (0, utils_1.parseBigintIsh)(this.startsAt); + const jsbiEndsAt = (0, utils_1.parseBigintIsh)(this.endsAt); + if (jsbi_1.default.lessThan(now, jsbiStartsAt)) + return jsbi_1.default.subtract(jsbiEndsAt, jsbiStartsAt); + if (jsbi_1.default.greaterThanOrEqual(now, jsbiEndsAt)) + return jsbi_1.default.BigInt('0'); + return jsbi_1.default.subtract(jsbiEndsAt, now); + } + get remainingDistributionPercentage() { + const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); + const jsbiStartsAt = (0, utils_1.parseBigintIsh)(this.startsAt); + const jsbiEndsAt = (0, utils_1.parseBigintIsh)(this.endsAt); + if (jsbi_1.default.lessThan(now, jsbiStartsAt)) + return new fractions_1.Percent('100', '100'); + if (jsbi_1.default.greaterThanOrEqual(now, jsbiEndsAt)) + return new fractions_1.Percent('0', '100'); + return new fractions_1.Percent(jsbi_1.default.subtract(jsbiEndsAt, now), this.duration); + } + get remainingRewards() { + const remainingDistributionPercentage = this.remainingDistributionPercentage; + return this.rewards.map((reward) => { + return new priced_token_amount_1.PricedTokenAmount(reward.token, remainingDistributionPercentage.multiply(reward.raw).toFixed(0)); + }); + } + get apy() { + // when the campaign has ended, apy is returned as 0 + if (this.remainingDuration.toString() === '0') + return new fractions_1.Percent('0', '1'); + const remainingRewards = this.remainingRewards; + let stakedValueNativeCurrency = this.staked.nativeCurrencyAmount; + if (stakedValueNativeCurrency.lessThan(MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY[this.chainId])) { + stakedValueNativeCurrency = MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY[this.chainId]; + } + const cumulativeRemainingRewardAmountNativeCurrency = remainingRewards.reduce((accumulator, remainingRewardAmount) => { + return accumulator.add(remainingRewardAmount.nativeCurrencyAmount); + }, fractions_1.CurrencyAmount.nativeCurrency('0', this.chainId)); + const yieldInPeriod = cumulativeRemainingRewardAmountNativeCurrency.divide(stakedValueNativeCurrency); + const annualizationMultiplier = new fractions_1.Fraction(constants_1.SECONDS_IN_YEAR.toString(), this.remainingDuration.toString()); + const rawApy = yieldInPeriod.multiply(annualizationMultiplier); + return new fractions_1.Percent(rawApy.numerator, rawApy.denominator); + } + get currentlyActive() { + const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); + return (jsbi_1.default.lessThanOrEqual((0, utils_1.parseBigintIsh)(this.startsAt), now) && jsbi_1.default.greaterThan((0, utils_1.parseBigintIsh)(this.endsAt), now)); + } + get ended() { + return jsbi_1.default.greaterThan(jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)), (0, utils_1.parseBigintIsh)(this.endsAt)); + } +} +exports.DistributionCampaignBase = DistributionCampaignBase; +//# sourceMappingURL=DistributionCampaignBase.js.map \ No newline at end of file diff --git a/dist/entities/DistributionCampaignBase.js.map b/dist/entities/DistributionCampaignBase.js.map new file mode 100644 index 00000000..39bc7b4f --- /dev/null +++ b/dist/entities/DistributionCampaignBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DistributionCampaignBase.js","sourceRoot":"","sources":["../../src/entities/DistributionCampaignBase.ts"],"names":[],"mappings":";;;;AAAA,gDAAiD;AACjD,wDAAuB;AACvB,4EAAsC;AAEtC,4CAAkE;AAClE,oCAAyC;AACzC,2CAA4E;AAC5E,yEAAmE;AACnE,mCAA+B;AAE/B,MAAM,qCAAqC,GAAoC;IAC7E,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC9C,IAAA,kBAAU,EAAC,MAAM,EAAE,aAAK,CAAC,SAAS,CAAC,mBAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EACxE,mBAAO,CAAC,OAAO,CAChB;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC9C,IAAA,kBAAU,EAAC,KAAK,EAAE,aAAK,CAAC,SAAS,CAAC,mBAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EACvE,mBAAO,CAAC,OAAO,CAChB;IACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC3C,IAA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AC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,CAAA;IAC1D,CAAC;IAED,IAAW,eAAe;QACxB,MAAM,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAA;QACtD,OAAO,CACL,cAAI,CAAC,eAAe,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,cAAI,CAAC,WAAW,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAC/G,CAAA;IACH,CAAC;IAED,IAAW,KAAK;QACd,OAAO,cAAI,CAAC,WAAW,CAAC,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,IAAA,sBAAc,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IAClG,CAAC;CACF;AA9FD,4DA8FC"} \ No newline at end of file diff --git a/dist/entities/currency.d.ts b/dist/entities/currency.d.ts new file mode 100644 index 00000000..bc435d6a --- /dev/null +++ b/dist/entities/currency.d.ts @@ -0,0 +1,45 @@ +import { ChainId } from '../constants'; +/** + * A currency is any fungible financial instrument on the target chain. + * + * The only instances of the base class `Currency` are native currencies such as Ether for Ethereum and xDAI for xDAI. + */ +export declare class Currency { + readonly decimals: number; + readonly symbol?: string; + readonly name?: string; + readonly address?: string; + static readonly USD: Currency; + /** + * Ethereum and Ethereum testnets native currency. + */ + static readonly ETHER: Currency; + static readonly OPTIMISM_ETHER: Currency; + /** + * Gnosis Chain native currency + */ + static readonly XDAI: Currency; + /** + * Polygon PoS native currency + */ + static readonly MATIC: Currency; + /** + * BSC native currency + */ + static readonly BNB: Currency; + private static readonly NATIVE_CURRENCY; + /** + * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. + * @param decimals decimals of the currency + * @param symbol symbol of the currency + * @param name of the currency + */ + protected constructor(decimals: number, symbol?: string, name?: string, address?: string); + static isNative(currency: Currency): boolean; + static getNative(chainId: ChainId): Currency; +} +export declare const USD: Currency; +export declare const ETHER: Currency; +export declare const XDAI: Currency; +export declare const MATIC: Currency; +export declare const BNB: Currency; diff --git a/dist/entities/currency.js b/dist/entities/currency.js new file mode 100644 index 00000000..55b98fba --- /dev/null +++ b/dist/entities/currency.js @@ -0,0 +1,76 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BNB = exports.MATIC = exports.XDAI = exports.ETHER = exports.USD = exports.Currency = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const constants_1 = require("../constants"); +const utils_1 = require("../utils"); +const NULL_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'; +/** + * A currency is any fungible financial instrument on the target chain. + * + * The only instances of the base class `Currency` are native currencies such as Ether for Ethereum and xDAI for xDAI. + */ +class Currency { + /** + * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. + * @param decimals decimals of the currency + * @param symbol symbol of the currency + * @param name of the currency + */ + constructor(decimals, symbol, name, address) { + (0, utils_1.validateSolidityTypeInstance)(jsbi_1.default.BigInt(decimals), constants_1.SolidityType.uint8); + this.decimals = decimals; + this.symbol = symbol; + this.name = name; + this.address = address; + } + static isNative(currency) { + return Object.values(Currency.NATIVE_CURRENCY).indexOf(currency) >= 0; + } + static getNative(chainId) { + return Currency.NATIVE_CURRENCY[chainId]; + } +} +exports.Currency = Currency; +// fiat currencies used to represent countervalues +Currency.USD = new Currency(18, 'USD', 'US dollar'); +/** + * Ethereum and Ethereum testnets native currency. + */ +Currency.ETHER = new Currency(18, 'ETH', 'Ether', NULL_ADDRESS); +Currency.OPTIMISM_ETHER = new Currency(18, 'ETH', 'Ether', '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000'); +/** + * Gnosis Chain native currency + */ +Currency.XDAI = new Currency(18, 'XDAI', 'xDAI', NULL_ADDRESS); +/** + * Polygon PoS native currency + */ +Currency.MATIC = new Currency(18, 'MATIC', 'Matic', NULL_ADDRESS); +/** + * BSC native currency + */ +Currency.BNB = new Currency(18, 'BNB', 'Binance Coin', NULL_ADDRESS); +Currency.NATIVE_CURRENCY = { + [constants_1.ChainId.MAINNET]: Currency.ETHER, + [constants_1.ChainId.RINKEBY]: Currency.ETHER, + [constants_1.ChainId.ARBITRUM_ONE]: Currency.ETHER, + [constants_1.ChainId.ARBITRUM_RINKEBY]: Currency.ETHER, + [constants_1.ChainId.ARBITRUM_GOERLI]: Currency.ETHER, + [constants_1.ChainId.XDAI]: Currency.XDAI, + [constants_1.ChainId.POLYGON]: Currency.MATIC, + [constants_1.ChainId.GOERLI]: Currency.ETHER, + [constants_1.ChainId.OPTIMISM_MAINNET]: Currency.OPTIMISM_ETHER, + [constants_1.ChainId.OPTIMISM_GOERLI]: Currency.OPTIMISM_ETHER, + [constants_1.ChainId.BSC_MAINNET]: Currency.BNB, + [constants_1.ChainId.BSC_TESTNET]: Currency.BNB, + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: Currency.ETHER, + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: Currency.ETHER, +}; +exports.USD = Currency.USD; +exports.ETHER = Currency.ETHER; +exports.XDAI = Currency.XDAI; +exports.MATIC = Currency.MATIC; +exports.BNB = Currency.BNB; +//# sourceMappingURL=currency.js.map \ No newline at end of file diff --git a/dist/entities/currency.js.map b/dist/entities/currency.js.map new file mode 100644 index 00000000..d91435e6 --- /dev/null +++ b/dist/entities/currency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/entities/currency.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AAEvB,4CAAoD;AACpD,oCAAuD;AAEvD,MAAM,YAAY,GAAG,4CAA4C,CAAA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\ No newline at end of file diff --git a/dist/entities/fractions/currencyAmount.d.ts b/dist/entities/fractions/currencyAmount.d.ts new file mode 100644 index 00000000..45e219bf --- /dev/null +++ b/dist/entities/fractions/currencyAmount.d.ts @@ -0,0 +1,24 @@ +import JSBI from 'jsbi'; +import { BigintIsh, Rounding } from '../../constants'; +import { Currency } from '../currency'; +import { Fraction } from './fraction'; +export declare class CurrencyAmount extends Fraction { + readonly currency: Currency; + /** + * Helper that calls the constructor with the ETHER currency + * @param amount ether amount in wei + */ + static nativeCurrency(amount: BigintIsh, chainId: number): CurrencyAmount; + /** + * Helper that calls the constructor with the USD currency + * @param amount amount of usd experessed in wei (with 18 decimals resolution) + */ + static usd(amount: BigintIsh): CurrencyAmount; + protected constructor(currency: Currency, amount: BigintIsh); + get raw(): JSBI; + add(other: CurrencyAmount): CurrencyAmount; + subtract(other: CurrencyAmount): CurrencyAmount; + toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; + toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; + toExact(format?: object): string; +} diff --git a/dist/entities/fractions/currencyAmount.js b/dist/entities/fractions/currencyAmount.js new file mode 100644 index 00000000..27b1e9c2 --- /dev/null +++ b/dist/entities/fractions/currencyAmount.js @@ -0,0 +1,63 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CurrencyAmount = void 0; +const tslib_1 = require("tslib"); +const big_js_1 = tslib_1.__importDefault(require("big.js")); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const toformat_1 = tslib_1.__importDefault(require("toformat")); +const constants_1 = require("../../constants"); +const utils_1 = require("../../utils"); +const currency_1 = require("../currency"); +const token_1 = require("../token"); +const fraction_1 = require("./fraction"); +const Big = (0, toformat_1.default)(big_js_1.default); +class CurrencyAmount extends fraction_1.Fraction { + /** + * Helper that calls the constructor with the ETHER currency + * @param amount ether amount in wei + */ + static nativeCurrency(amount, chainId) { + const nativeCurrency = currency_1.Currency.getNative(chainId); + (0, tiny_invariant_1.default)(!!nativeCurrency, 'NO_NATIVE_CURRENCY'); + return new CurrencyAmount(nativeCurrency, amount); + } + /** + * Helper that calls the constructor with the USD currency + * @param amount amount of usd experessed in wei (with 18 decimals resolution) + */ + static usd(amount) { + return new CurrencyAmount(currency_1.USD, amount); + } + // amount _must_ be raw, i.e. in the native representation + constructor(currency, amount) { + const parsedAmount = (0, utils_1.parseBigintIsh)(amount); + (0, utils_1.validateSolidityTypeInstance)(parsedAmount, constants_1.SolidityType.uint256); + super(parsedAmount, jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(currency.decimals))); + this.currency = currency; + } + get raw() { + return this.numerator; + } + add(other) { + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(this.currency, other.currency), 'TOKEN'); + return new CurrencyAmount(this.currency, jsbi_1.default.add(this.raw, other.raw)); + } + subtract(other) { + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(this.currency, other.currency), 'TOKEN'); + return new CurrencyAmount(this.currency, jsbi_1.default.subtract(this.raw, other.raw)); + } + toSignificant(significantDigits = 6, format, rounding = constants_1.Rounding.ROUND_DOWN) { + return super.toSignificant(significantDigits, format, rounding); + } + toFixed(decimalPlaces = this.currency.decimals, format, rounding = constants_1.Rounding.ROUND_DOWN) { + (0, tiny_invariant_1.default)(decimalPlaces <= this.currency.decimals, 'DECIMALS'); + return super.toFixed(decimalPlaces, format, rounding); + } + toExact(format = { groupSeparator: '' }) { + Big.DP = this.currency.decimals; + return new Big(this.numerator.toString()).div(this.denominator.toString()).toFormat(format); + } +} +exports.CurrencyAmount = CurrencyAmount; +//# sourceMappingURL=currencyAmount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/currencyAmount.js.map b/dist/entities/fractions/currencyAmount.js.map new file mode 100644 index 00000000..73c68448 --- /dev/null +++ b/dist/entities/fractions/currencyAmount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"currencyAmount.js","sourceRo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AAC,MAAM,CAAC,CAAA;IAC7F,CAAC;CACF;AA7DD,wCA6DC"} \ No newline at end of file diff --git a/dist/entities/fractions/fraction.d.ts b/dist/entities/fractions/fraction.d.ts new file mode 100644 index 00000000..6e9e6a0b --- /dev/null +++ b/dist/entities/fractions/fraction.d.ts @@ -0,0 +1,19 @@ +import JSBI from 'jsbi'; +import { BigintIsh, Rounding } from '../../constants'; +export declare class Fraction { + readonly numerator: JSBI; + readonly denominator: JSBI; + constructor(numerator: BigintIsh, denominator?: BigintIsh); + get quotient(): JSBI; + get remainder(): Fraction; + invert(): Fraction; + add(other: Fraction | BigintIsh): Fraction; + subtract(other: Fraction | BigintIsh): Fraction; + lessThan(other: Fraction | BigintIsh): boolean; + equalTo(other: Fraction | BigintIsh): boolean; + greaterThan(other: Fraction | BigintIsh): boolean; + multiply(other: Fraction | BigintIsh): Fraction; + divide(other: Fraction | BigintIsh): Fraction; + toSignificant(significantDigits: number, format?: object, rounding?: Rounding): string; + toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string; +} diff --git a/dist/entities/fractions/fraction.js b/dist/entities/fractions/fraction.js new file mode 100644 index 00000000..781d6b42 --- /dev/null +++ b/dist/entities/fractions/fraction.js @@ -0,0 +1,93 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Fraction = void 0; +const tslib_1 = require("tslib"); +const big_js_1 = tslib_1.__importDefault(require("big.js")); +const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const toformat_1 = tslib_1.__importDefault(require("toformat")); +const constants_1 = require("../../constants"); +const constants_2 = require("../../constants"); +const utils_1 = require("../../utils"); +const Decimal = (0, toformat_1.default)(decimal_js_light_1.default); +const Big = (0, toformat_1.default)(big_js_1.default); +const toSignificantRounding = { + [constants_1.Rounding.ROUND_DOWN]: Decimal.ROUND_DOWN, + [constants_1.Rounding.ROUND_HALF_UP]: Decimal.ROUND_HALF_UP, + [constants_1.Rounding.ROUND_UP]: Decimal.ROUND_UP, +}; +const toFixedRounding = { + [constants_1.Rounding.ROUND_DOWN]: 0 /* RoundingMode.RoundDown */, + [constants_1.Rounding.ROUND_HALF_UP]: 1 /* RoundingMode.RoundHalfUp */, + [constants_1.Rounding.ROUND_UP]: 3 /* RoundingMode.RoundUp */, +}; +class Fraction { + constructor(numerator, denominator = constants_2.ONE) { + this.numerator = (0, utils_1.parseBigintIsh)(numerator); + this.denominator = (0, utils_1.parseBigintIsh)(denominator); + } + // performs floor division + get quotient() { + return jsbi_1.default.divide(this.numerator, this.denominator); + } + // remainder after floor division + get remainder() { + return new Fraction(jsbi_1.default.remainder(this.numerator, this.denominator), this.denominator); + } + invert() { + return new Fraction(this.denominator, this.numerator); + } + add(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + if (jsbi_1.default.equal(this.denominator, otherParsed.denominator)) { + return new Fraction(jsbi_1.default.add(this.numerator, otherParsed.numerator), this.denominator); + } + return new Fraction(jsbi_1.default.add(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); + } + subtract(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + if (jsbi_1.default.equal(this.denominator, otherParsed.denominator)) { + return new Fraction(jsbi_1.default.subtract(this.numerator, otherParsed.numerator), this.denominator); + } + return new Fraction(jsbi_1.default.subtract(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); + } + lessThan(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + return jsbi_1.default.lessThan(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); + } + equalTo(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + return jsbi_1.default.equal(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); + } + greaterThan(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + return jsbi_1.default.greaterThan(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); + } + multiply(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + return new Fraction(jsbi_1.default.multiply(this.numerator, otherParsed.numerator), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); + } + divide(other) { + const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); + return new Fraction(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(this.denominator, otherParsed.numerator)); + } + toSignificant(significantDigits, format = { groupSeparator: '' }, rounding = constants_1.Rounding.ROUND_HALF_UP) { + (0, tiny_invariant_1.default)(Number.isInteger(significantDigits), `${significantDigits} is not an integer.`); + (0, tiny_invariant_1.default)(significantDigits > 0, `${significantDigits} is not positive.`); + Decimal.set({ precision: significantDigits + 1, rounding: toSignificantRounding[rounding] }); + const quotient = new Decimal(this.numerator.toString()) + .div(this.denominator.toString()) + .toSignificantDigits(significantDigits); + return quotient.toFormat(quotient.decimalPlaces(), format); + } + toFixed(decimalPlaces, format = { groupSeparator: '' }, rounding = constants_1.Rounding.ROUND_HALF_UP) { + (0, tiny_invariant_1.default)(Number.isInteger(decimalPlaces), `${decimalPlaces} is not an integer.`); + (0, tiny_invariant_1.default)(decimalPlaces >= 0, `${decimalPlaces} is negative.`); + Big.DP = decimalPlaces; + Big.RM = toFixedRounding[rounding]; + return new Big(this.numerator.toString()).div(this.denominator.toString()).toFormat(decimalPlaces, format); + } +} +exports.Fraction = Fraction; +//# sourceMappingURL=fraction.js.map \ No newline at end of file diff --git a/dist/entities/fractions/fraction.js.map b/dist/entities/fractions/fraction.js.map new file mode 100644 index 00000000..ce751d93 --- /dev/null +++ b/dist/entities/fractions/fraction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fraction.js","sourceRoot":"","sources":["../../../src/entities/fractions/fraction.ts"],"names":[],"mappings":";;;;AAAA,4DAA2C;AAC3C,gFAAuC;AACvC,wDAAuB;AACvB,4EAAsC;AACtC,gEAA+B;AAE/B,+CAAqD;AACrD,+CAAqC;AACrC,uCAA4C;AAE5C,MAAM,OAAO,GAAG,IAAA,kBAAQ,EAAC,0BAAQ,CAAC,CAAA;AAClC,MAAM,GAAG,GAAG,IAAA,kBAAQ,EAAC,gBAAI,CAAC,CAAA;AAE1B,MAAM,qBAAqB,GAAG;IAC5B,CAAC,oBAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU;IACzC,CAAC,oBAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa;IAC/C,CAAC,oBAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ;CACtC,CAAA;AAED,MAAM,eAAe,GAAG;IACtB,CAAC,oBAAQ,CAAC,UAAU,CAAC,gCAAwB;IAC7C,CAAC,oBAAQ,CAAC,aAAa,CAAC,kCAA0B;IAClD,CAAC,oBAAQ,CAAC,QAAQ,CAAC,8BAAsB;CAC1C,CAAA;AAED,MAAa,QAAQ;IAInB,YAAmB,SAAoB,EAAE,cAAyB,eAAG;QACnE,IAAI,CAAC,SAAS,GAAG,IAAA,sBAAc,EAAC,SAAS,CAAC,CAAA;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAA,sBAAc,EAAC,WAAW,CAAC,CAAA;IAChD,CAAC;IAED,0BAA0B;IAC1B,IAAW,QAAQ;QACjB,OAAO,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WA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AAE,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC5G,CAAC;CACF;AAtHD,4BAsHC"} \ No newline at end of file diff --git a/dist/entities/fractions/index.d.ts b/dist/entities/fractions/index.d.ts new file mode 100644 index 00000000..7124ea8f --- /dev/null +++ b/dist/entities/fractions/index.d.ts @@ -0,0 +1,6 @@ +export * from './currencyAmount'; +export * from './fraction'; +export * from './percent'; +export * from './price'; +export * from './priced-token-amount'; +export * from './tokenAmount'; diff --git a/dist/entities/fractions/index.js b/dist/entities/fractions/index.js new file mode 100644 index 00000000..59c31f21 --- /dev/null +++ b/dist/entities/fractions/index.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./currencyAmount"), exports); +tslib_1.__exportStar(require("./fraction"), exports); +tslib_1.__exportStar(require("./percent"), exports); +tslib_1.__exportStar(require("./price"), exports); +tslib_1.__exportStar(require("./priced-token-amount"), exports); +tslib_1.__exportStar(require("./tokenAmount"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/fractions/index.js.map b/dist/entities/fractions/index.js.map new file mode 100644 index 00000000..f6008678 --- /dev/null +++ b/dist/entities/fractions/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/fractions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC;AAChC,qDAA0B;AAC1B,oDAAyB;AACzB,kDAAuB;AACvB,gEAAqC;AACrC,wDAA6B"} \ No newline at end of file diff --git a/dist/entities/fractions/percent.d.ts b/dist/entities/fractions/percent.d.ts new file mode 100644 index 00000000..3089a80d --- /dev/null +++ b/dist/entities/fractions/percent.d.ts @@ -0,0 +1,6 @@ +import { Rounding } from '../../constants'; +import { Fraction } from './fraction'; +export declare class Percent extends Fraction { + toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; + toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; +} diff --git a/dist/entities/fractions/percent.js b/dist/entities/fractions/percent.js new file mode 100644 index 00000000..6cb666e1 --- /dev/null +++ b/dist/entities/fractions/percent.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Percent = void 0; +const constants_1 = require("../../constants"); +const fraction_1 = require("./fraction"); +const _100_PERCENT = new fraction_1.Fraction(constants_1._100); +class Percent extends fraction_1.Fraction { + toSignificant(significantDigits = 5, format, rounding) { + return this.multiply(_100_PERCENT).toSignificant(significantDigits, format, rounding); + } + toFixed(decimalPlaces = 2, format, rounding) { + return this.multiply(_100_PERCENT).toFixed(decimalPlaces, format, rounding); + } +} +exports.Percent = Percent; +//# sourceMappingURL=percent.js.map \ No newline at end of file diff --git a/dist/entities/fractions/percent.js.map b/dist/entities/fractions/percent.js.map new file mode 100644 index 00000000..f932d696 --- /dev/null +++ b/dist/entities/fractions/percent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"percent.js","sourceRoot":"","sources":["../../../src/entities/fractions/percent.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAqC;AAErC,MAAM,YAAY,GAAG,IAAI,mBAAQ,CAAC,gBAAI,CAAC,CAAA;AAEvC,MAAa,OAAQ,SAAQ,mBAAQ;IAC5B,aAAa,CAAC,iBAAiB,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QAC9E,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACvF,CAAC;IAEM,OAAO,CAAC,aAAa,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QACpE,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC7E,CAAC;CACF;AARD,0BAQC"} \ No newline at end of file diff --git a/dist/entities/fractions/price.d.ts b/dist/entities/fractions/price.d.ts new file mode 100644 index 00000000..a85fdd36 --- /dev/null +++ b/dist/entities/fractions/price.d.ts @@ -0,0 +1,25 @@ +import { BigintIsh, Rounding } from '../../constants'; +import { Currency } from '../currency'; +import { Route } from '../route'; +import { CurrencyAmount } from './currencyAmount'; +import { Fraction } from './fraction'; +export interface PriceConstructorParams { + baseCurrency: Currency; + quoteCurrency: Currency; + denominator: BigintIsh; + numerator: BigintIsh; +} +export declare class Price extends Fraction { + readonly baseCurrency: Currency; + readonly quoteCurrency: Currency; + readonly scalar: Fraction; + static fromRoute(route: Route): Price; + constructor({ baseCurrency, quoteCurrency, denominator, numerator }: PriceConstructorParams); + get raw(): Fraction; + get adjusted(): Fraction; + invert(): Price; + multiply(other: Price): Price; + quote(currencyAmount: CurrencyAmount): CurrencyAmount; + toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; + toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; +} diff --git a/dist/entities/fractions/price.js b/dist/entities/fractions/price.js new file mode 100644 index 00000000..5536dbae --- /dev/null +++ b/dist/entities/fractions/price.js @@ -0,0 +1,80 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Price = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../constants"); +const token_1 = require("../token"); +const token_2 = require("../token"); +const currencyAmount_1 = require("./currencyAmount"); +const fraction_1 = require("./fraction"); +const tokenAmount_1 = require("./tokenAmount"); +class Price extends fraction_1.Fraction { + static fromRoute(route) { + const prices = []; + for (const [i, pair] of route.pairs.entries()) { + prices.push(route.path[i].equals(pair.token0) + ? new Price({ + baseCurrency: pair.reserve0.currency, + quoteCurrency: pair.reserve1.currency, + denominator: pair.reserve0.raw, + numerator: pair.reserve1.raw, + }) + : new Price({ + baseCurrency: pair.reserve1.currency, + quoteCurrency: pair.reserve0.currency, + denominator: pair.reserve1.raw, + numerator: pair.reserve0.raw, + })); + } + return prices.slice(1).reduce((accumulator, currentValue) => accumulator.multiply(currentValue), prices[0]); + } + // denominator and numerator _must_ be raw, i.e. in the native representation + constructor({ baseCurrency, quoteCurrency, denominator, numerator }) { + super(numerator, denominator); + this.baseCurrency = baseCurrency; + this.quoteCurrency = quoteCurrency; + this.scalar = new fraction_1.Fraction(jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(baseCurrency.decimals)), jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(quoteCurrency.decimals))); + } + get raw() { + return new fraction_1.Fraction(this.numerator, this.denominator); + } + get adjusted() { + return super.multiply(this.scalar); + } + invert() { + return new Price({ + baseCurrency: this.quoteCurrency, + quoteCurrency: this.baseCurrency, + denominator: this.numerator, + numerator: this.denominator, + }); + } + multiply(other) { + (0, tiny_invariant_1.default)((0, token_2.currencyEquals)(this.quoteCurrency, other.baseCurrency), 'TOKEN'); + const fraction = super.multiply(other); + return new Price({ + baseCurrency: this.baseCurrency, + quoteCurrency: other.quoteCurrency, + denominator: fraction.denominator, + numerator: fraction.numerator, + }); + } + // performs floor division on overflow + quote(currencyAmount) { + (0, tiny_invariant_1.default)((0, token_2.currencyEquals)(currencyAmount.currency, this.baseCurrency), 'TOKEN'); + if (this.quoteCurrency instanceof token_1.Token) { + return new tokenAmount_1.TokenAmount(this.quoteCurrency, super.multiply(currencyAmount.raw).quotient); + } + return currencyAmount_1.CurrencyAmount.nativeCurrency(super.multiply(currencyAmount.raw).quotient, constants_1.ChainId.MAINNET); + } + toSignificant(significantDigits = 6, format, rounding) { + return this.adjusted.toSignificant(significantDigits, format, rounding); + } + toFixed(decimalPlaces = 4, format, rounding) { + return this.adjusted.toFixed(decimalPlaces, format, rounding); + } +} +exports.Price = Price; +//# sourceMappingURL=price.js.map \ No newline at end of file diff --git a/dist/entities/fractions/price.js.map b/dist/entities/fractions/price.js.map new file mode 100644 index 00000000..dc850324 --- /dev/null +++ b/dist/entities/fractions/price.js.map @@ -0,0 +1 @@ +{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/entities/fractions/price.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,4EAAsC;AAEtC,+CAAmE;AAGnE,oCAAgC;AAChC,oCAAyC;AACzC,qDAAiD;AACjD,yCAAqC;AACrC,+CAA2C;AAS3C,MAAa,KAAM,SAAQ,mBAAQ;IAK1B,MAAM,CAAC,SAAS,CAAC,KAAY;QAClC,MAAM,MAAM,GAAY,EAAE,CAAA;QAC1B,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE;YAC7C,MAAM,CAAC,IAAI,CACT,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC/B,CAAC,CAAC,IAAI,KAAK,CAAC;oBACR,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;oBACpC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;oBACrC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;oBAC9B,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;iBAC7B,CAAC;gBACJ,CAAC,CAAC,IAAI,KAAK,CAAC;oBACR,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;oBACpC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;oBACrC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;oBAC9B,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;iBAC7B,CAAC,CACP,CAAA;SACF;QACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,EA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AC,YAAY;YAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,SAAS,EAAE,QAAQ,CAAC,SAAS;SAC9B,CAAC,CAAA;IACJ,CAAC;IAED,sCAAsC;IAC/B,KAAK,CAAC,cAA8B;QACzC,IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAA;QAC9E,IAAI,IAAI,CAAC,aAAa,YAAY,aAAK,EAAE;YACvC,OAAO,IAAI,yBAAW,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAA;SACxF;QACD,OAAO,+BAAc,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,mBAAO,CAAC,OAAO,CAAC,CAAA;IACpG,CAAC;IAEM,aAAa,CAAC,iBAAiB,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QAC9E,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACzE,CAAC;IAEM,OAAO,CAAC,aAAa,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QACpE,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC/D,CAAC;CACF;AAnFD,sBAmFC"} \ No newline at end of file diff --git a/dist/entities/fractions/priced-token-amount.d.ts b/dist/entities/fractions/priced-token-amount.d.ts new file mode 100644 index 00000000..514451c4 --- /dev/null +++ b/dist/entities/fractions/priced-token-amount.d.ts @@ -0,0 +1,9 @@ +import { BigintIsh } from '../../constants'; +import { PricedToken } from '../priced-token'; +import { CurrencyAmount } from './currencyAmount'; +import { TokenAmount } from './tokenAmount'; +export declare class PricedTokenAmount extends TokenAmount { + readonly token: PricedToken; + constructor(token: PricedToken, amount: BigintIsh); + get nativeCurrencyAmount(): CurrencyAmount; +} diff --git a/dist/entities/fractions/priced-token-amount.js b/dist/entities/fractions/priced-token-amount.js new file mode 100644 index 00000000..64c90103 --- /dev/null +++ b/dist/entities/fractions/priced-token-amount.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricedTokenAmount = void 0; +const units_1 = require("@ethersproject/units"); +const currencyAmount_1 = require("./currencyAmount"); +const tokenAmount_1 = require("./tokenAmount"); +class PricedTokenAmount extends tokenAmount_1.TokenAmount { + // amount _must_ be raw, i.e. in the native representation + constructor(token, amount) { + super(token, amount); + this.token = token; + } + get nativeCurrencyAmount() { + return new currencyAmount_1.CurrencyAmount(this.token.price.quoteCurrency, (0, units_1.parseUnits)(this.multiply(this.token.price).toFixed(this.token.price.quoteCurrency.decimals), this.token.price.quoteCurrency.decimals).toString()); + } +} +exports.PricedTokenAmount = PricedTokenAmount; +//# sourceMappingURL=priced-token-amount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/priced-token-amount.js.map b/dist/entities/fractions/priced-token-amount.js.map new file mode 100644 index 00000000..82828e5a --- /dev/null +++ b/dist/entities/fractions/priced-token-amount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"priced-token-amount.js","sourceRoot":"","sources":["../../../src/entities/fractions/priced-token-amount.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAIjD,qDAAiD;AACjD,+CAA2C;AAE3C,MAAa,iBAAkB,SAAQ,yBAAW;IAGhD,0DAA0D;IAC1D,YAAmB,KAAkB,EAAE,MAAiB;QACtD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED,IAAW,oBAAoB;QAC7B,OAAO,IAAI,+BAAc,CACvB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAC9B,IAAA,kBAAU,EACR,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,EAChF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CACxC,CAAC,QAAQ,EAAE,CACb,CAAA;IACH,CAAC;CACF;AAlBD,8CAkBC"} \ No newline at end of file diff --git a/dist/entities/fractions/tokenAmount.d.ts b/dist/entities/fractions/tokenAmount.d.ts new file mode 100644 index 00000000..0ebed477 --- /dev/null +++ b/dist/entities/fractions/tokenAmount.d.ts @@ -0,0 +1,9 @@ +import { BigintIsh } from '../../constants'; +import { Token } from '../token'; +import { CurrencyAmount } from './currencyAmount'; +export declare class TokenAmount extends CurrencyAmount { + readonly token: Token; + constructor(token: Token, amount: BigintIsh); + add(other: TokenAmount): TokenAmount; + subtract(other: TokenAmount): TokenAmount; +} diff --git a/dist/entities/fractions/tokenAmount.js b/dist/entities/fractions/tokenAmount.js new file mode 100644 index 00000000..473735a5 --- /dev/null +++ b/dist/entities/fractions/tokenAmount.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TokenAmount = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const currencyAmount_1 = require("./currencyAmount"); +class TokenAmount extends currencyAmount_1.CurrencyAmount { + // amount _must_ be raw, i.e. in the native representation + constructor(token, amount) { + super(token, amount); + this.token = token; + } + add(other) { + (0, tiny_invariant_1.default)(this.token.equals(other.token), 'TOKEN'); + return new TokenAmount(this.token, jsbi_1.default.add(this.raw, other.raw)); + } + subtract(other) { + (0, tiny_invariant_1.default)(this.token.equals(other.token), 'TOKEN'); + return new TokenAmount(this.token, jsbi_1.default.subtract(this.raw, other.raw)); + } +} +exports.TokenAmount = TokenAmount; +//# sourceMappingURL=tokenAmount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/tokenAmount.js.map b/dist/entities/fractions/tokenAmount.js.map new file mode 100644 index 00000000..fbcd6c4e --- /dev/null +++ b/dist/entities/fractions/tokenAmount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tokenAmount.js","sourceRoot":"","sources":["../../../src/entities/fractions/tokenAmount.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,4EAAsC;AAItC,qDAAiD;AAEjD,MAAa,WAAY,SAAQ,+BAAc;IAG7C,0DAA0D;IAC1D,YAAmB,KAAY,EAAE,MAAiB;QAChD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAEM,GAAG,CAAC,KAAkB;QAC3B,IAAA,wBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAA;QAClD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,cAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACnE,CAAC;IAEM,QAAQ,CAAC,KAAkB;QAChC,IAAA,wBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAA;QAClD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACxE,CAAC;CACF;AAlBD,kCAkBC"} \ No newline at end of file diff --git a/dist/entities/index.d.ts b/dist/entities/index.d.ts new file mode 100644 index 00000000..0df4989d --- /dev/null +++ b/dist/entities/index.d.ts @@ -0,0 +1,11 @@ +export * from './currency'; +export * from './fractions'; +export * from './kpi-token'; +export * from './liquidity-mining-campaign'; +export * from './pair'; +export * from './platforms-breakdown'; +export * from './priced-token'; +export * from './route'; +export * from './single-sided-liquidity-mining-campaign'; +export * from './token'; +export * from './trades'; diff --git a/dist/entities/index.js b/dist/entities/index.js new file mode 100644 index 00000000..8aacfeda --- /dev/null +++ b/dist/entities/index.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./currency"), exports); +tslib_1.__exportStar(require("./fractions"), exports); +tslib_1.__exportStar(require("./kpi-token"), exports); +tslib_1.__exportStar(require("./liquidity-mining-campaign"), exports); +tslib_1.__exportStar(require("./pair"), exports); +tslib_1.__exportStar(require("./platforms-breakdown"), exports); +tslib_1.__exportStar(require("./priced-token"), exports); +tslib_1.__exportStar(require("./route"), exports); +tslib_1.__exportStar(require("./single-sided-liquidity-mining-campaign"), exports); +tslib_1.__exportStar(require("./token"), exports); +tslib_1.__exportStar(require("./trades"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/index.js.map b/dist/entities/index.js.map new file mode 100644 index 00000000..547f1552 --- /dev/null +++ b/dist/entities/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,sDAA2B;AAC3B,sDAA2B;AAC3B,sEAA2C;AAC3C,iDAAsB;AACtB,gEAAqC;AACrC,yDAA8B;AAC9B,kDAAuB;AACvB,mFAAwD;AACxD,kDAAuB;AACvB,mDAAwB"} \ No newline at end of file diff --git a/dist/entities/kpi-token.d.ts b/dist/entities/kpi-token.d.ts new file mode 100644 index 00000000..a7fae814 --- /dev/null +++ b/dist/entities/kpi-token.d.ts @@ -0,0 +1,9 @@ +import { BigintIsh, ChainId } from '../constants'; +import { PricedTokenAmount, TokenAmount } from '../entities/fractions'; +import { PricedToken } from './priced-token'; +export declare class KpiToken extends PricedToken { + readonly kpiId: string; + readonly totalSupply: TokenAmount; + readonly collateral: PricedTokenAmount; + constructor(chainId: ChainId, address: string, totalSupply: BigintIsh, collateral: PricedTokenAmount, kpiId: string, symbol?: string, name?: string); +} diff --git a/dist/entities/kpi-token.js b/dist/entities/kpi-token.js new file mode 100644 index 00000000..acc0339b --- /dev/null +++ b/dist/entities/kpi-token.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KpiToken = void 0; +const tslib_1 = require("tslib"); +const units_1 = require("@ethersproject/units"); +const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const currency_1 = require("../entities/currency"); +const fractions_1 = require("../entities/fractions"); +const token_1 = require("../entities/token"); +const priced_token_1 = require("./priced-token"); +class KpiToken extends priced_token_1.PricedToken { + constructor(chainId, address, totalSupply, collateral, kpiId, symbol, name) { + const collateralTokenNativeCurrency = collateral.nativeCurrencyAmount; + const kpiTokenPrice = new decimal_js_light_1.default(collateralTokenNativeCurrency.raw.toString()).dividedBy(totalSupply.toString()); + const nativeCurrency = currency_1.Currency.getNative(chainId); + const token = new token_1.Token(chainId, address, 18, symbol, name); + super(chainId, address, 18, new fractions_1.Price({ + baseCurrency: token, + quoteCurrency: nativeCurrency, + denominator: (0, units_1.parseUnits)('1', nativeCurrency.decimals).toString(), + numerator: (0, units_1.parseUnits)(kpiTokenPrice.toFixed(nativeCurrency.decimals), nativeCurrency.decimals).toString(), + }), symbol, name); // decimals are always 18 for kpi tokens + (0, tiny_invariant_1.default)(collateral.token.chainId === chainId, 'inconsistent chain id in collateral'); + this.totalSupply = new fractions_1.TokenAmount(this, totalSupply); + this.collateral = collateral; + this.kpiId = kpiId; + } +} +exports.KpiToken = KpiToken; +//# sourceMappingURL=kpi-token.js.map \ No newline at end of file diff --git a/dist/entities/kpi-token.js.map b/dist/entities/kpi-token.js.map new file mode 100644 index 00000000..a621da9c --- /dev/null +++ b/dist/entities/kpi-token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kpi-token.js","sourceRoot":"","sources":["../../src/entities/kpi-token.ts"],"names":[],"mappings":";;;;AAAA,gDAAiD;AACjD,gFAAsC;AACtC,4EAAsC;AAGtC,mDAA+C;AAC/C,qDAA6E;AAC7E,6CAAyC;AACzC,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,0BAAW;IAKvC,YACE,OAAgB,EAChB,OAAe,EACf,WAAsB,EACtB,UAA6B,EAC7B,KAAa,EACb,MAAe,EACf,IAAa;QAEb,MAAM,6BAA6B,GAAG,UAAU,CAAC,oBAAoB,CAAA;QACrE,MAAM,aAAa,GAAG,IAAI,0BAAO,CAAC,6BAA6B,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAA;QACjH,MAAM,cAAc,GAAG,mBAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;QAClD,MAAM,KAAK,GAAG,IAAI,aAAK,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC3D,KAAK,CACH,OAAO,EACP,OAAO,EACP,EAAE,EACF,IAAI,iBAAK,CAAC;YACR,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE,cAAc;YAC7B,WAAW,EAAE,IAAA,kBAAU,EAAC,GAAG,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;YAChE,SAAS,EAAE,IAAA,kBAAU,EAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;SAC1G,CAAC,EACF,MAAM,EACN,IAAI,CACL,CAAA,CAAC,wCAAwC;QAC1C,IAAA,wBAAS,EAAC,UAAU,CAAC,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE,qCAAqC,CAAC,CAAA;QACtF,IAAI,CAAC,WAAW,GAAG,IAAI,uBAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;QACrD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AApCD,4BAoCC"} \ No newline at end of file diff --git a/dist/entities/liquidity-mining-campaign.d.ts b/dist/entities/liquidity-mining-campaign.d.ts new file mode 100644 index 00000000..3ffae4ec --- /dev/null +++ b/dist/entities/liquidity-mining-campaign.d.ts @@ -0,0 +1,17 @@ +import { BigintIsh } from '../constants'; +import { Pair, PricedTokenAmount, TokenAmount } from '../entities'; +import { DistributionCampaignBase } from './DistributionCampaignBase'; +export interface LiquidityMiningCampaignConstructorParams { + startsAt: BigintIsh; + endsAt: BigintIsh; + targetedPair: Pair; + rewards: PricedTokenAmount[]; + staked: PricedTokenAmount; + locked: boolean; + stakingCap: TokenAmount; + address?: string; +} +export declare class LiquidityMiningCampaign extends DistributionCampaignBase { + readonly targetedPair: Pair; + constructor({ startsAt, endsAt, targetedPair, rewards, staked, locked, stakingCap, address, }: LiquidityMiningCampaignConstructorParams); +} diff --git a/dist/entities/liquidity-mining-campaign.js b/dist/entities/liquidity-mining-campaign.js new file mode 100644 index 00000000..49d326a0 --- /dev/null +++ b/dist/entities/liquidity-mining-campaign.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LiquidityMiningCampaign = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const DistributionCampaignBase_1 = require("./DistributionCampaignBase"); +class LiquidityMiningCampaign extends DistributionCampaignBase_1.DistributionCampaignBase { + constructor({ startsAt, endsAt, targetedPair, rewards, staked, locked, stakingCap, address, }) { + (0, tiny_invariant_1.default)(staked.token.equals(targetedPair.liquidityToken), 'STAKED_LP_TOKEN'); + super({ + startsAt, + endsAt, + rewards, + staked, + locked, + stakingCap, + address, + }); + this.targetedPair = targetedPair; + } +} +exports.LiquidityMiningCampaign = LiquidityMiningCampaign; +//# sourceMappingURL=liquidity-mining-campaign.js.map \ No newline at end of file diff --git a/dist/entities/liquidity-mining-campaign.js.map b/dist/entities/liquidity-mining-campaign.js.map new file mode 100644 index 00000000..891c1992 --- /dev/null +++ b/dist/entities/liquidity-mining-campaign.js.map @@ -0,0 +1 @@ +{"version":3,"file":"liquidity-mining-campaign.js","sourceRoot":"","sources":["../../src/entities/liquidity-mining-campaign.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,yEAAqE;AAarE,MAAa,uBAAwB,SAAQ,mDAAwB;IAGnE,YAAY,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,OAAO,EACP,MAAM,EACN,MAAM,EACN,UAAU,EACV,OAAO,GACkC;QACzC,IAAA,wBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,iBAAiB,CAAC,CAAA;QAE9E,KAAK,CAAC;YACJ,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,MAAM;YACN,UAAU;YACV,OAAO;SACR,CAAC,CAAA;QAEF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AA3BD,0DA2BC"} \ No newline at end of file diff --git a/dist/entities/pair.d.ts b/dist/entities/pair.d.ts new file mode 100644 index 00000000..fb060c80 --- /dev/null +++ b/dist/entities/pair.d.ts @@ -0,0 +1,53 @@ +import { BigintIsh } from '../constants'; +import { ChainId } from '../constants'; +import { Price } from './fractions/price'; +import { TokenAmount } from './fractions/tokenAmount'; +import { LiquidityMiningCampaign } from './liquidity-mining-campaign'; +import { Token } from './token'; +import { UniswapV2RoutablePlatform } from './trades/routable-platform'; +export declare class Pair { + readonly liquidityToken: Token; + private readonly tokenAmounts; + readonly swapFee: BigintIsh; + readonly protocolFeeDenominator: BigintIsh; + readonly platform: UniswapV2RoutablePlatform; + liquidityMiningCampaigns: LiquidityMiningCampaign[]; + /** + * Returns true if the two pairs are equivalent, i.e. have the same address (calculated using create2). + * @param other other pair to compare + */ + equals(other: Pair): boolean; + static getAddress(tokenA: Token, tokenB: Token, platform?: UniswapV2RoutablePlatform): string; + constructor(tokenAmountA: TokenAmount, tokenAmountB: TokenAmount, swapFee?: BigintIsh, protocolFeeDenominator?: BigintIsh, platform?: UniswapV2RoutablePlatform, liquidityMiningCampaigns?: LiquidityMiningCampaign[]); + /** + * Returns true if the token is either token0 or token1 + * @param token to check + */ + involvesToken(token: Token): boolean; + /** + * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0 + */ + get token0Price(): Price; + /** + * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1 + */ + get token1Price(): Price; + /** + * Return the price of the given token in terms of the other token in the pair. + * @param token token to return price of + */ + priceOf(token: Token): Price; + /** + * Returns the chain ID of the tokens in the pair. + */ + get chainId(): ChainId; + get token0(): Token; + get token1(): Token; + get reserve0(): TokenAmount; + get reserve1(): TokenAmount; + reserveOf(token: Token): TokenAmount; + getOutputAmount(inputAmount: TokenAmount): [TokenAmount, Pair]; + getInputAmount(outputAmount: TokenAmount): [TokenAmount, Pair]; + getLiquidityMinted(totalSupply: TokenAmount, tokenAmountA: TokenAmount, tokenAmountB: TokenAmount): TokenAmount; + getLiquidityValue(token: Token, totalSupply: TokenAmount, liquidity: TokenAmount, feeOn?: boolean, kLast?: BigintIsh): TokenAmount; +} diff --git a/dist/entities/pair.js b/dist/entities/pair.js new file mode 100644 index 00000000..c8fa0858 --- /dev/null +++ b/dist/entities/pair.js @@ -0,0 +1,230 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Pair = void 0; +const tslib_1 = require("tslib"); +const address_1 = require("@ethersproject/address"); +const solidity_1 = require("@ethersproject/solidity"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../constants"); +const constants_2 = require("../constants"); +const errors_1 = require("../errors"); +const utils_1 = require("../utils"); +const price_1 = require("./fractions/price"); +const tokenAmount_1 = require("./fractions/tokenAmount"); +const token_1 = require("./token"); +const routable_platform_1 = require("./trades/routable-platform"); +const INITIAL_CACHE_STATE = { + [constants_2.ChainId.MAINNET]: {}, + [constants_2.ChainId.RINKEBY]: {}, + [constants_2.ChainId.ARBITRUM_ONE]: {}, + [constants_2.ChainId.ARBITRUM_RINKEBY]: {}, + [constants_2.ChainId.ARBITRUM_GOERLI]: {}, + [constants_2.ChainId.XDAI]: {}, + [constants_2.ChainId.POLYGON]: {}, + [constants_2.ChainId.GOERLI]: {}, + [constants_2.ChainId.OPTIMISM_MAINNET]: {}, + [constants_2.ChainId.OPTIMISM_GOERLI]: {}, + [constants_2.ChainId.BSC_MAINNET]: {}, + [constants_2.ChainId.BSC_TESTNET]: {}, + [constants_2.ChainId.ZK_SYNC_ERA_MAINNET]: {}, + [constants_2.ChainId.ZK_SYNC_ERA_TESTNET]: {}, +}; +let PAIR_ADDRESS_CACHE = { + [routable_platform_1.UniswapV2RoutablePlatform.SWAPR.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.SUSHISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.UNISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.HONEYSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.BAOSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.LEVINSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.QUICKSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.PANCAKESWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.DFYN.name]: Object.assign({}, INITIAL_CACHE_STATE), + [routable_platform_1.UniswapV2RoutablePlatform.BISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), +}; +class Pair { + /** + * Returns true if the two pairs are equivalent, i.e. have the same address (calculated using create2). + * @param other other pair to compare + */ + equals(other) { + // short circuit on reference equality + if (this === other) { + return true; + } + return this.liquidityToken.address === other.liquidityToken.address; + } + static getAddress(tokenA, tokenB, platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR) { + var _a, _b, _c, _d, _e; + const tokens = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; // does safety checks + const chainId = tokenA.chainId; + (0, tiny_invariant_1.default)(platform.supportsChain(chainId), 'INVALID_PLATFORM_CHAIN_ID'); + if (((_c = (_b = (_a = PAIR_ADDRESS_CACHE === null || PAIR_ADDRESS_CACHE === void 0 ? void 0 : PAIR_ADDRESS_CACHE[platform.name]) === null || _a === void 0 ? void 0 : _a[chainId]) === null || _b === void 0 ? void 0 : _b[tokens[0].address]) === null || _c === void 0 ? void 0 : _c[tokens[1].address]) === undefined) { + PAIR_ADDRESS_CACHE = Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE), { [platform.name]: Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE[platform.name]), { [chainId]: Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE[platform.name][chainId]), { [tokens[0].address]: Object.assign(Object.assign({}, (_e = (_d = PAIR_ADDRESS_CACHE === null || PAIR_ADDRESS_CACHE === void 0 ? void 0 : PAIR_ADDRESS_CACHE[platform.name]) === null || _d === void 0 ? void 0 : _d[chainId]) === null || _e === void 0 ? void 0 : _e[tokens[0].address]), { [tokens[1].address]: (0, address_1.getCreate2Address)(platform.factoryAddress[chainId], (0, solidity_1.keccak256)(['bytes'], [(0, solidity_1.pack)(['address', 'address'], [tokens[0].address, tokens[1].address])]), platform.initCodeHash) }) }) }) }); + } + return PAIR_ADDRESS_CACHE[platform.name][chainId][tokens[0].address][tokens[1].address]; + } + constructor(tokenAmountA, tokenAmountB, swapFee, protocolFeeDenominator, platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR, liquidityMiningCampaigns = []) { + this.swapFee = constants_1.defaultSwapFee; + this.protocolFeeDenominator = constants_1.defaultProtocolFeeDenominator; + (0, tiny_invariant_1.default)(tokenAmountA.token.chainId === tokenAmountB.token.chainId, 'CHAIN_ID'); + const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks + ? [tokenAmountA, tokenAmountB] + : [tokenAmountB, tokenAmountA]; + this.platform = platform; + const liquidityTokenAddress = Pair.getAddress(tokenAmounts[0].token, tokenAmounts[1].token, platform); + this.liquidityToken = new token_1.Token(tokenAmounts[0].token.chainId, liquidityTokenAddress, 18, 'DXS', 'DXswap'); + this.protocolFeeDenominator = protocolFeeDenominator ? protocolFeeDenominator : constants_1.defaultProtocolFeeDenominator; + this.tokenAmounts = tokenAmounts; + this.swapFee = swapFee ? swapFee : platform.defaultSwapFee; + this.liquidityMiningCampaigns = liquidityMiningCampaigns; + } + /** + * Returns true if the token is either token0 or token1 + * @param token to check + */ + involvesToken(token) { + return token.equals(this.token0) || token.equals(this.token1); + } + /** + * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0 + */ + get token0Price() { + return new price_1.Price({ + baseCurrency: this.token0, + quoteCurrency: this.token1, + denominator: this.tokenAmounts[0].raw, + numerator: this.tokenAmounts[1].raw, + }); + } + /** + * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1 + */ + get token1Price() { + return new price_1.Price({ + baseCurrency: this.token1, + quoteCurrency: this.token0, + denominator: this.tokenAmounts[1].raw, + numerator: this.tokenAmounts[0].raw, + }); + } + /** + * Return the price of the given token in terms of the other token in the pair. + * @param token token to return price of + */ + priceOf(token) { + (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); + return token.equals(this.token0) ? this.token0Price : this.token1Price; + } + /** + * Returns the chain ID of the tokens in the pair. + */ + get chainId() { + return this.token0.chainId; + } + get token0() { + return this.tokenAmounts[0].token; + } + get token1() { + return this.tokenAmounts[1].token; + } + get reserve0() { + return this.tokenAmounts[0]; + } + get reserve1() { + return this.tokenAmounts[1]; + } + reserveOf(token) { + (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); + return token.equals(this.token0) ? this.reserve0 : this.reserve1; + } + getOutputAmount(inputAmount) { + (0, tiny_invariant_1.default)(this.involvesToken(inputAmount.token), 'TOKEN'); + if (jsbi_1.default.equal(this.reserve0.raw, constants_1.ZERO) || jsbi_1.default.equal(this.reserve1.raw, constants_1.ZERO)) { + throw new errors_1.InsufficientReservesError(); + } + const inputReserve = this.reserveOf(inputAmount.token); + const outputReserve = this.reserveOf(inputAmount.token.equals(this.token0) ? this.token1 : this.token0); + const inputAmountWithFee = jsbi_1.default.multiply(inputAmount.raw, jsbi_1.default.subtract(constants_1._10000, (0, utils_1.parseBigintIsh)(this.swapFee))); + const numerator = jsbi_1.default.multiply(inputAmountWithFee, outputReserve.raw); + const denominator = jsbi_1.default.add(jsbi_1.default.multiply(inputReserve.raw, constants_1._10000), inputAmountWithFee); + const outputAmount = new tokenAmount_1.TokenAmount(inputAmount.token.equals(this.token0) ? this.token1 : this.token0, jsbi_1.default.divide(numerator, denominator)); + if (jsbi_1.default.equal(outputAmount.raw, constants_1.ZERO)) { + throw new errors_1.InsufficientInputAmountError(); + } + return [ + outputAmount, + new Pair(inputReserve.add(inputAmount), outputReserve.subtract(outputAmount), this.swapFee, this.protocolFeeDenominator, this.platform, this.liquidityMiningCampaigns), + ]; + } + getInputAmount(outputAmount) { + (0, tiny_invariant_1.default)(this.involvesToken(outputAmount.token), 'TOKEN'); + if (jsbi_1.default.equal(this.reserve0.raw, constants_1.ZERO) || + jsbi_1.default.equal(this.reserve1.raw, constants_1.ZERO) || + jsbi_1.default.greaterThanOrEqual(outputAmount.raw, this.reserveOf(outputAmount.token).raw)) { + throw new errors_1.InsufficientReservesError(); + } + const outputReserve = this.reserveOf(outputAmount.token); + const inputReserve = this.reserveOf(outputAmount.token.equals(this.token0) ? this.token1 : this.token0); + const numerator = jsbi_1.default.multiply(jsbi_1.default.multiply(inputReserve.raw, outputAmount.raw), constants_1._10000); + const denominator = jsbi_1.default.multiply(jsbi_1.default.subtract(outputReserve.raw, outputAmount.raw), jsbi_1.default.subtract(constants_1._10000, (0, utils_1.parseBigintIsh)(this.swapFee))); + const inputAmount = new tokenAmount_1.TokenAmount(outputAmount.token.equals(this.token0) ? this.token1 : this.token0, jsbi_1.default.add(jsbi_1.default.divide(numerator, denominator), constants_1.ONE)); + return [ + inputAmount, + new Pair(inputReserve.add(inputAmount), outputReserve.subtract(outputAmount), this.swapFee, this.protocolFeeDenominator, this.platform, this.liquidityMiningCampaigns), + ]; + } + getLiquidityMinted(totalSupply, tokenAmountA, tokenAmountB) { + (0, tiny_invariant_1.default)(totalSupply.token.equals(this.liquidityToken), 'LIQUIDITY'); + const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks + ? [tokenAmountA, tokenAmountB] + : [tokenAmountB, tokenAmountA]; + (0, tiny_invariant_1.default)(tokenAmounts[0].token.equals(this.token0) && tokenAmounts[1].token.equals(this.token1), 'TOKEN'); + let liquidity; + if (jsbi_1.default.equal(totalSupply.raw, constants_1.ZERO)) { + liquidity = jsbi_1.default.subtract((0, utils_1.sqrt)(jsbi_1.default.multiply(tokenAmounts[0].raw, tokenAmounts[1].raw)), constants_1.MINIMUM_LIQUIDITY); + } + else { + const amount0 = jsbi_1.default.divide(jsbi_1.default.multiply(tokenAmounts[0].raw, totalSupply.raw), this.reserve0.raw); + const amount1 = jsbi_1.default.divide(jsbi_1.default.multiply(tokenAmounts[1].raw, totalSupply.raw), this.reserve1.raw); + liquidity = jsbi_1.default.lessThanOrEqual(amount0, amount1) ? amount0 : amount1; + } + if (!jsbi_1.default.greaterThan(liquidity, constants_1.ZERO)) { + throw new errors_1.InsufficientInputAmountError(); + } + return new tokenAmount_1.TokenAmount(this.liquidityToken, liquidity); + } + getLiquidityValue(token, totalSupply, liquidity, feeOn = false, kLast) { + (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); + (0, tiny_invariant_1.default)(totalSupply.token.equals(this.liquidityToken), 'TOTAL_SUPPLY'); + (0, tiny_invariant_1.default)(liquidity.token.equals(this.liquidityToken), 'LIQUIDITY'); + (0, tiny_invariant_1.default)(jsbi_1.default.lessThanOrEqual(liquidity.raw, totalSupply.raw), 'LIQUIDITY'); + let totalSupplyAdjusted; + if (!feeOn) { + totalSupplyAdjusted = totalSupply; + } + else { + (0, tiny_invariant_1.default)(!!kLast, 'K_LAST'); + const kLastParsed = (0, utils_1.parseBigintIsh)(kLast); + if (!jsbi_1.default.equal(kLastParsed, constants_1.ZERO)) { + const rootK = (0, utils_1.sqrt)(jsbi_1.default.multiply(this.reserve0.raw, this.reserve1.raw)); + const rootKLast = (0, utils_1.sqrt)(kLastParsed); + if (jsbi_1.default.greaterThan(rootK, rootKLast)) { + const numerator = jsbi_1.default.multiply(totalSupply.raw, jsbi_1.default.subtract(rootK, rootKLast)); + const denominator = jsbi_1.default.add(jsbi_1.default.multiply(rootK, (0, utils_1.parseBigintIsh)(this.protocolFeeDenominator)), rootKLast); + const feeLiquidity = jsbi_1.default.divide(numerator, denominator); + totalSupplyAdjusted = totalSupply.add(new tokenAmount_1.TokenAmount(this.liquidityToken, feeLiquidity)); + } + else { + totalSupplyAdjusted = totalSupply; + } + } + else { + totalSupplyAdjusted = totalSupply; + } + } + return new tokenAmount_1.TokenAmount(token, jsbi_1.default.divide(jsbi_1.default.multiply(liquidity.raw, this.reserveOf(token).raw), totalSupplyAdjusted.raw)); + } +} +exports.Pair = Pair; +//# sourceMappingURL=pair.js.map \ No newline at end of file diff --git a/dist/entities/pair.js.map b/dist/entities/pair.js.map new file mode 100644 index 00000000..4d0b326d --- /dev/null +++ b/dist/entities/pair.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pair.js","sourceRoot":"","sources":["../../src/entities/pair.ts"],"names":[],"mappings":";;;;AAAA,oDAA0D;AAC1D,sDAAyD;AACzD,wDAAuB;AACvB,4EAAsC;AAEtC,4CAQqB;AACrB,4CAAsC;AACtC,sCAAmF;AACnF,oCAA+C;AAC/C,6CAAyC;AACzC,yDAAqD;AAErD,mCAA+B;AAC/B,kEAAsE;AAEtE,MAAM,mBAAmB,GAAyB;IAChD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,EAAE;IAC1B,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,EAAE;IAClB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,EAAE;IACpB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA;AAED,IAAI,kBAAkB,GAIlB;IACF,CAAC,6CAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,oBACjC,mBAAmB,CACvB;IACD,CAAC,6CAAyB,CAAC,SAAS,CAAC,IAAI,CAAC,oB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BAClC,MAAM,KAAK,GAAG,IAAA,YAAI,EAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAA;gBACvE,MAAM,SAAS,GAAG,IAAA,YAAI,EAAC,WAAW,CAAC,CAAA;gBACnC,IAAI,cAAI,CAAC,WAAW,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE;oBACtC,MAAM,SAAS,GAAG,cAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,cAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAA;oBACjF,MAAM,WAAW,GAAG,cAAI,CAAC,GAAG,CAAC,cAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAA,sBAAc,EAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;oBAC1G,MAAM,YAAY,GAAG,cAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;oBACxD,mBAAmB,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,yBAAW,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,CAAA;iBAC1F;qBAAM;oBACL,mBAAmB,GAAG,WAAW,CAAA;iBAClC;aACF;iBAAM;gBACL,mBAAmB,GAAG,WAAW,CAAA;aAClC;SACF;QAED,OAAO,IAAI,yBAAW,CACpB,KAAK,EACL,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAC9F,CAAA;IACH,CAAC;CACF;AA7QD,oBA6QC"} \ No newline at end of file diff --git a/dist/entities/platforms-breakdown.d.ts b/dist/entities/platforms-breakdown.d.ts new file mode 100644 index 00000000..4f4c9332 --- /dev/null +++ b/dist/entities/platforms-breakdown.d.ts @@ -0,0 +1,16 @@ +import { ChainId } from '../constants'; +import { Currency } from './currency'; +import { Percent } from './fractions'; +import { Price } from './fractions/price'; +export interface Platform { + name: string; + percentage: Percent; +} +export declare class Breakdown { + readonly chainId: ChainId; + readonly platforms: Platform[]; + readonly input: Currency; + readonly output: Currency; + readonly midPrice: Price; + constructor(chainId: ChainId, platforms: Platform[], input: Currency, output: Currency, midPrice: Price); +} diff --git a/dist/entities/platforms-breakdown.js b/dist/entities/platforms-breakdown.js new file mode 100644 index 00000000..20ea3686 --- /dev/null +++ b/dist/entities/platforms-breakdown.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Breakdown = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const fractions_1 = require("./fractions"); +const token_1 = require("./token"); +class Breakdown { + constructor(chainId, platforms, input, output, midPrice) { + (0, tiny_invariant_1.default)(platforms.length > 0, 'Missing routable platform'); + (0, tiny_invariant_1.default)(platforms + .reduce((accumulator, platform) => accumulator.add(platform.percentage), new fractions_1.Percent('0', '100')) + .toFixed(2) === '1.00', 'Inconsistent breakdown percentage'); + if (input instanceof token_1.Token && output instanceof token_1.Token) + (0, tiny_invariant_1.default)(input.chainId === output.chainId, 'Input and output tokens must be on the same chain'); + this.chainId = chainId; + this.platforms = platforms; + this.midPrice = midPrice; + this.input = input; + this.output = output; + } +} +exports.Breakdown = Breakdown; +//# sourceMappingURL=platforms-breakdown.js.map \ No newline at end of file diff --git a/dist/entities/platforms-breakdown.js.map b/dist/entities/platforms-breakdown.js.map new file mode 100644 index 00000000..08cbfaab --- /dev/null +++ b/dist/entities/platforms-breakdown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"platforms-breakdown.js","sourceRoot":"","sources":["../../src/entities/platforms-breakdown.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,2CAAqC;AAErC,mCAA+B;AAO/B,MAAa,SAAS;IAOpB,YAAmB,OAAgB,EAAE,SAAqB,EAAE,KAAe,EAAE,MAAgB,EAAE,QAAe;QAC5G,IAAA,wBAAS,EAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,2BAA2B,CAAC,CAAA;QAC5D,IAAA,wBAAS,EACP,SAAS;aACN,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,mBAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;aAChG,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,EACxB,mCAAmC,CACpC,CAAA;QACD,IAAI,KAAK,YAAY,aAAK,IAAI,MAAM,YAAY,aAAK;YACnD,IAAA,wBAAS,EAAC,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,EAAE,mDAAmD,CAAC,CAAA;QAElG,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/dist/entities/priced-token.d.ts b/dist/entities/priced-token.d.ts new file mode 100644 index 00000000..8a638cd4 --- /dev/null +++ b/dist/entities/priced-token.d.ts @@ -0,0 +1,10 @@ +import { ChainId } from '../constants'; +import { Price } from './fractions'; +import { Token } from './token'; +/** + * Represents an ERC20 token and its price, expressed in any given currency. + */ +export declare class PricedToken extends Token { + readonly price: Price; + constructor(chainId: ChainId, address: string, decimals: number, price: Price, symbol?: string, name?: string); +} diff --git a/dist/entities/priced-token.js b/dist/entities/priced-token.js new file mode 100644 index 00000000..b194a97e --- /dev/null +++ b/dist/entities/priced-token.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricedToken = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const token_1 = require("./token"); +/** + * Represents an ERC20 token and its price, expressed in any given currency. + */ +class PricedToken extends token_1.Token { + constructor(chainId, address, decimals, price, symbol, name) { + (0, tiny_invariant_1.default)(price.baseCurrency.symbol === symbol && price.baseCurrency.decimals === decimals, 'TOKEN'); + super(chainId, address, decimals, symbol, name); + this.price = price; + } +} +exports.PricedToken = PricedToken; +//# sourceMappingURL=priced-token.js.map \ No newline at end of file diff --git a/dist/entities/priced-token.js.map b/dist/entities/priced-token.js.map new file mode 100644 index 00000000..ef437229 --- /dev/null +++ b/dist/entities/priced-token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"priced-token.js","sourceRoot":"","sources":["../../src/entities/priced-token.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,mCAA+B;AAE/B;;GAEG;AACH,MAAa,WAAY,SAAQ,aAAK;IAGpC,YAAY,OAAgB,EAAE,OAAe,EAAE,QAAgB,EAAE,KAAY,EAAE,MAAe,EAAE,IAAa;QAC3G,IAAA,wBAAS,EAAC,KAAK,CAAC,YAAY,CAAC,MAAM,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,QAAQ,KAAK,QAAQ,EAAE,OAAO,CAAC,CAAA;QACpG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AARD,kCAQC"} \ No newline at end of file diff --git a/dist/entities/route.d.ts b/dist/entities/route.d.ts new file mode 100644 index 00000000..7762c2ed --- /dev/null +++ b/dist/entities/route.d.ts @@ -0,0 +1,14 @@ +import { ChainId } from '../constants'; +import { Currency } from './currency'; +import { Price } from './fractions/price'; +import { Pair } from './pair'; +import { Token } from './token'; +export declare class Route { + readonly pairs: Pair[]; + readonly path: Token[]; + readonly input: Currency; + readonly output: Currency; + readonly midPrice: Price; + constructor(pairs: Pair[], input: Currency, output?: Currency); + get chainId(): ChainId; +} diff --git a/dist/entities/route.js b/dist/entities/route.js new file mode 100644 index 00000000..44fa4682 --- /dev/null +++ b/dist/entities/route.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Route = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const currency_1 = require("./currency"); +const price_1 = require("./fractions/price"); +const token_1 = require("./token"); +class Route { + constructor(pairs, input, output) { + (0, tiny_invariant_1.default)(pairs.length > 0, 'PAIRS'); + (0, tiny_invariant_1.default)(pairs.every((pair) => pair.chainId === pairs[0].chainId), 'CHAIN_IDS'); + (0, tiny_invariant_1.default)(pairs.every((pair) => pair.platform === pairs[0].platform), 'PLATFORM'); + (0, tiny_invariant_1.default)((input instanceof token_1.Token && pairs[0].involvesToken(input)) || + (currency_1.Currency.isNative(input) && pairs[0].involvesToken(token_1.Token.getNativeWrapper(pairs[0].chainId))), 'INPUT'); + (0, tiny_invariant_1.default)(typeof output === 'undefined' || + (output instanceof token_1.Token && pairs[pairs.length - 1].involvesToken(output)) || + (currency_1.Currency.isNative(output) && pairs[pairs.length - 1].involvesToken(token_1.Token.getNativeWrapper(pairs[0].chainId))), 'OUTPUT'); + const path = [input instanceof token_1.Token ? input : token_1.Token.getNativeWrapper(pairs[0].chainId)]; + for (const [i, pair] of pairs.entries()) { + const currentInput = path[i]; + (0, tiny_invariant_1.default)(currentInput.equals(pair.token0) || currentInput.equals(pair.token1), 'PATH'); + const output = currentInput.equals(pair.token0) ? pair.token1 : pair.token0; + path.push(output); + } + this.pairs = pairs; + this.path = path; + this.midPrice = price_1.Price.fromRoute(this); + this.input = input; + this.output = output !== null && output !== void 0 ? output : path[path.length - 1]; + } + get chainId() { + return this.pairs[0].chainId; + } +} +exports.Route = Route; +//# sourceMappingURL=route.js.map \ No newline at end of file diff --git a/dist/entities/route.js.map b/dist/entities/route.js.map new file mode 100644 index 00000000..d5561690 --- /dev/null +++ b/dist/entities/route.js.map @@ -0,0 +1 @@ +{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/entities/route.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAGtC,yCAAqC;AACrC,6CAAyC;AAEzC,mCAA+B;AAE/B,MAAa,KAAK;IAOhB,YAAmB,KAAa,EAAE,KAAe,EAAE,MAAiB;QAClE,IAAA,wBAAS,EAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;QACpC,IAAA,wBAAS,EACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EACxD,WAAW,CACZ,CAAA;QACD,IAAA,wBAAS,EACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAC1D,UAAU,CACX,CAAA;QACD,IAAA,wBAAS,EACP,CAAC,KAAK,YAAY,aAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YACvD,CAAC,mBAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,aAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAChG,OAAO,CACR,CAAA;QACD,IAAA,wBAAS,EACP,OAAO,MAAM,KAAK,WAAW;YAC3B,CAAC,MAAM,YAAY,aAAK,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,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C,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AA/CD,sBA+CC"} \ No newline at end of file diff --git a/dist/entities/single-sided-liquidity-mining-campaign.d.ts b/dist/entities/single-sided-liquidity-mining-campaign.d.ts new file mode 100644 index 00000000..fefa8368 --- /dev/null +++ b/dist/entities/single-sided-liquidity-mining-campaign.d.ts @@ -0,0 +1,7 @@ +import { BigintIsh } from '../constants'; +import { PricedTokenAmount, Token, TokenAmount } from '../entities'; +import { DistributionCampaignBase } from './DistributionCampaignBase'; +export declare class SingleSidedLiquidityMiningCampaign extends DistributionCampaignBase { + readonly stakeToken: Token; + constructor(startsAt: BigintIsh, endsAt: BigintIsh, stakeToken: Token, rewards: PricedTokenAmount[], staked: PricedTokenAmount, locked: boolean, stakingCap: TokenAmount, address?: string); +} diff --git a/dist/entities/single-sided-liquidity-mining-campaign.js b/dist/entities/single-sided-liquidity-mining-campaign.js new file mode 100644 index 00000000..cc9ab396 --- /dev/null +++ b/dist/entities/single-sided-liquidity-mining-campaign.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SingleSidedLiquidityMiningCampaign = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const DistributionCampaignBase_1 = require("./DistributionCampaignBase"); +class SingleSidedLiquidityMiningCampaign extends DistributionCampaignBase_1.DistributionCampaignBase { + constructor(startsAt, endsAt, stakeToken, rewards, staked, locked, stakingCap, address) { + (0, tiny_invariant_1.default)(staked.token.equals(stakeToken), 'STAKED_LP_TOKEN'); + super({ + startsAt, + endsAt, + rewards, + staked, + locked, + stakingCap, + address, + }); + this.stakeToken = stakeToken; + } +} +exports.SingleSidedLiquidityMiningCampaign = SingleSidedLiquidityMiningCampaign; +//# sourceMappingURL=single-sided-liquidity-mining-campaign.js.map \ No newline at end of file diff --git a/dist/entities/single-sided-liquidity-mining-campaign.js.map b/dist/entities/single-sided-liquidity-mining-campaign.js.map new file mode 100644 index 00000000..7bfdf6b2 --- /dev/null +++ b/dist/entities/single-sided-liquidity-mining-campaign.js.map @@ -0,0 +1 @@ +{"version":3,"file":"single-sided-liquidity-mining-campaign.js","sourceRoot":"","sources":["../../src/entities/single-sided-liquidity-mining-campaign.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,yEAAqE;AAErE,MAAa,kCAAmC,SAAQ,mDAAwB;IAG9E,YACE,QAAmB,EACnB,MAAiB,EACjB,UAAiB,EACjB,OAA4B,EAC5B,MAAyB,EACzB,MAAe,EACf,UAAuB,EACvB,OAAgB;QAEhB,IAAA,wBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC,CAAA;QAC7D,KAAK,CAAC;YACJ,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,MAAM;YACN,UAAU;YACV,OAAO;SACR,CAAC,CAAA;QAEF,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;CACF;AA1BD,gFA0BC"} \ No newline at end of file diff --git a/dist/entities/token.d.ts b/dist/entities/token.d.ts new file mode 100644 index 00000000..17cef3ee --- /dev/null +++ b/dist/entities/token.d.ts @@ -0,0 +1,51 @@ +import { ChainId } from '../constants'; +import { Currency } from './currency'; +/** + * Represents an ERC20 token with a unique address and some metadata. + */ +/** + * @TODO check why we have 2 different token lists here and + * src/entities/trades/uniswap-v2/constants.ts + */ +export declare class Token extends Currency { + readonly chainId: ChainId; + readonly address: string; + static readonly ARB: Record; + static readonly BUSD: Record; + static readonly CAKE: Record; + static readonly DXD: Record; + static readonly SWPR: Record; + static readonly WBNB: Record; + static readonly WETH: Record; + static readonly WMATIC: Record; + static readonly WXDAI: Record; + private static readonly NATIVE_CURRENCY_WRAPPER; + constructor(chainId: ChainId, address: string, decimals: number, symbol?: string, name?: string); + /** + * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. + * @param other other token to compare + */ + equals(other: Token): boolean; + /** + * Returns true if the address of this token sorts before the address of the other token + * @param other other token to compare + * @throws if the tokens have the same address + * @throws if the tokens are on different chains + */ + sortsBefore(other: Token): boolean; + static getNativeWrapper(chainId: ChainId): Token; + static isNativeWrapper(token: Token): boolean; +} +/** + * Compares two currencies for equality + */ +export declare function currencyEquals(currencyA: Currency, currencyB: Currency): boolean; +export declare const ARB: Record; +export declare const BUSD: Record; +export declare const CAKE: Record; +export declare const DXD: Record; +export declare const SWPR: Record; +export declare const WBNB: Record; +export declare const WETH: Record; +export declare const WMATIC: Record; +export declare const WXDAI: Record; diff --git a/dist/entities/token.js b/dist/entities/token.js new file mode 100644 index 00000000..5b5469b5 --- /dev/null +++ b/dist/entities/token.js @@ -0,0 +1,156 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WXDAI = exports.WMATIC = exports.WETH = exports.WBNB = exports.SWPR = exports.DXD = exports.CAKE = exports.BUSD = exports.ARB = exports.currencyEquals = exports.Token = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../constants"); +const utils_1 = require("../utils"); +const currency_1 = require("./currency"); +/** + * Represents an ERC20 token with a unique address and some metadata. + */ +/** + * @TODO check why we have 2 different token lists here and + * src/entities/trades/uniswap-v2/constants.ts + */ +class Token extends currency_1.Currency { + constructor(chainId, address, decimals, symbol, name) { + super(decimals, symbol, name); + this.chainId = chainId; + this.address = (0, utils_1.validateAndParseAddress)(address); + } + /** + * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. + * @param other other token to compare + */ + equals(other) { + // short circuit on reference equality + if (this === other) { + return true; + } + return this.chainId === other.chainId && this.address === other.address; + } + /** + * Returns true if the address of this token sorts before the address of the other token + * @param other other token to compare + * @throws if the tokens have the same address + * @throws if the tokens are on different chains + */ + sortsBefore(other) { + (0, tiny_invariant_1.default)(this.chainId === other.chainId, 'CHAIN_IDS'); + (0, tiny_invariant_1.default)(this.address !== other.address, 'ADDRESSES'); + return this.address.toLowerCase() < other.address.toLowerCase(); + } + static getNativeWrapper(chainId) { + return Token.NATIVE_CURRENCY_WRAPPER[chainId]; + } + static isNativeWrapper(token) { + return Token.NATIVE_CURRENCY_WRAPPER[token.chainId].equals(token); + } +} +exports.Token = Token; +Token.ARB = { + /** + * @see https://docs.arbitrum.foundation/deployment-addresses for token info + */ + [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0xF861378B543525ae0C47d33C90C954Dc774Ac1F9', 18, 'ARB', 'Arbitrum'), + [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0x912CE59144191C1204E64559FE8253a0e49E6548', 18, 'ARB', 'Arbitrum'), + [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1', 18, 'ARB', 'Arbitrum'), +}; +Token.BUSD = { + [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56', 18, 'BUSD', 'Binance-Peg BUSD Token'), +}; +Token.CAKE = { + [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82', 18, 'CAKE', 'PancakeSwap Token'), +}; +Token.DXD = { + [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0xCEf91E326978fEDbb14825E17DAFCa18508E6232', 18, 'DXD', 'DXdao'), + [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0xC3Ae0333F0F34aa734D5493276223d95B8F9Cb37', 18, 'DXD', 'DXdao'), + [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0x5d47100B0854525685907D5D773b92c22c0c745e', 18, 'DXD', 'DXdao'), + [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xa1d65E8fB6e87b60FECCBc582F7f97804B725521', 18, 'DXD', 'DXdao'), + [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0x554898A0BF98aB0C03ff86C7DccBE29269cc4d29', 18, 'DXD', 'DXdao'), + [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0xb90D6bec20993Be5d72A5ab353343f7a0281f158', 18, 'DXD', 'DXdao from Ethereum'), +}; +Token.SWPR = { + [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0x75902ae4D8AB92d38e20D65f758b03d595C0047B', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0xdE903E2712288A1dA82942DDdF2c20529565aC30', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0x8f2072c2142D9fFDc785955E0Ce71561753D44Fb', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.GOERLI]: new Token(constants_1.ChainId.GOERLI, '0x2F9343Cf18BAAcF57AC4a4e20188b9b00CFce3f1', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0x6cAcDB97e3fC8136805a9E7c342d866ab77D0957', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0xDcb0BeB93139c3e5eD0Edb749baccADd6badAc4f', 18, 'SWPR', 'Swapr'), + [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0x532801ED6f82FFfD2DAB70A19fC2d7B2772C4f4b', 18, 'SWPR', 'Swapr'), +}; +Token.WBNB = { + [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), + [constants_1.ChainId.BSC_TESTNET]: new Token(constants_1.ChainId.BSC_TESTNET, '0x094616F0BdFB0b526bD735Bf66Eca0Ad254ca81F', 18, 'WBNB', 'Wrapped BNB'), +}; +Token.WETH = { + [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0x89C0DBbF7559E200443735e113039cE5f1e0e6F0', 18, 'WETH', 'Wrapped Ether on Görli'), + [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), + [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), + [constants_1.ChainId.GOERLI]: new Token(constants_1.ChainId.GOERLI, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether on Görli'), + [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), + [constants_1.ChainId.OPTIMISM_MAINNET]: new Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), + [constants_1.ChainId.POLYGON]: new Token(constants_1.ChainId.POLYGON, '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', 18, 'WETH', 'Wrapped Ether on Polygon'), + [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), + [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', 18, 'WETH', 'Wrapped Ether on xDai'), + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new Token(constants_1.ChainId.ZK_SYNC_ERA_MAINNET, '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', 18, 'WETH', 'Wrapped Ether on zkSync'), + /** + * NOTE: Note the address of zkSync testnet contracts is subject + * to change without notice. + * @see https://era.zksync.io/docs/dev/building-on-zksync/useful-address.html + * @see https://syncswap.gitbook.io/api-documentation/resources/smart-contract + */ + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new Token(constants_1.ChainId.ZK_SYNC_ERA_TESTNET, '0x20b28b1e4665fff290650586ad76e977eab90c5d', 18, 'WETH', 'Wrapped Ether on zkSync Testnet'), +}; +Token.WMATIC = { + [constants_1.ChainId.POLYGON]: new Token(constants_1.ChainId.POLYGON, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), +}; +Token.WXDAI = { + [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', 18, 'WXDAI', 'Wrapped xDAI'), +}; +Token.NATIVE_CURRENCY_WRAPPER = { + [constants_1.ChainId.ARBITRUM_GOERLI]: Token.WETH[constants_1.ChainId.ARBITRUM_GOERLI], + [constants_1.ChainId.ARBITRUM_ONE]: Token.WETH[constants_1.ChainId.ARBITRUM_ONE], + [constants_1.ChainId.ARBITRUM_RINKEBY]: Token.WETH[constants_1.ChainId.ARBITRUM_RINKEBY], + [constants_1.ChainId.BSC_MAINNET]: Token.WBNB[constants_1.ChainId.BSC_MAINNET], + [constants_1.ChainId.BSC_TESTNET]: Token.WBNB[constants_1.ChainId.BSC_TESTNET], + [constants_1.ChainId.GOERLI]: Token.WETH[constants_1.ChainId.GOERLI], + [constants_1.ChainId.MAINNET]: Token.WETH[constants_1.ChainId.MAINNET], + [constants_1.ChainId.OPTIMISM_GOERLI]: Token.WETH[constants_1.ChainId.OPTIMISM_MAINNET], + [constants_1.ChainId.OPTIMISM_MAINNET]: Token.WETH[constants_1.ChainId.OPTIMISM_MAINNET], + [constants_1.ChainId.POLYGON]: Token.WMATIC[constants_1.ChainId.POLYGON], + [constants_1.ChainId.RINKEBY]: Token.WETH[constants_1.ChainId.RINKEBY], + [constants_1.ChainId.XDAI]: Token.WXDAI[constants_1.ChainId.XDAI], + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: Token.WETH[constants_1.ChainId.ZK_SYNC_ERA_MAINNET], + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: Token.WETH[constants_1.ChainId.ZK_SYNC_ERA_TESTNET], +}; +/** + * Compares two currencies for equality + */ +function currencyEquals(currencyA, currencyB) { + if (currencyA instanceof Token && currencyB instanceof Token) { + return currencyA.equals(currencyB); + } + else if (currencyA instanceof Token) { + return false; + } + else if (currencyB instanceof Token) { + return false; + } + else { + return currencyA === currencyB; + } +} +exports.currencyEquals = currencyEquals; +// reexport for convenience +exports.ARB = Token.ARB; +exports.BUSD = Token.BUSD; +exports.CAKE = Token.CAKE; +exports.DXD = Token.DXD; +exports.SWPR = Token.SWPR; +exports.WBNB = Token.WBNB; +exports.WETH = Token.WETH; +exports.WMATIC = Token.WMATIC; +exports.WXDAI = Token.WXDAI; +//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/dist/entities/token.js.map b/dist/entities/token.js.map new file mode 100644 index 00000000..13d19fc5 --- /dev/null +++ b/dist/entities/token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/entities/token.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAEtC,4CAAsC;AACtC,oCAAkD;AAClD,yCAAqC;AAErC;;GAEG;AACH;;;GAGG;AACH,MAAa,KAAM,SAAQ,mBAAQ;IAgPjC,YAAmB,OA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AAK,EAAE;QAC5D,OAAO,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;KACnC;SAAM,IAAI,SAAS,YAAY,KAAK,EAAE;QACrC,OAAO,KAAK,CAAA;KACb;SAAM,IAAI,SAAS,YAAY,KAAK,EAAE;QACrC,OAAO,KAAK,CAAA;KACb;SAAM;QACL,OAAO,SAAS,KAAK,SAAS,CAAA;KAC/B;AACH,CAAC;AAVD,wCAUC;AAED,2BAA2B;AACd,QAAA,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;AACf,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;AACf,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;AACrB,QAAA,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/0x/0xTrade.d.ts b/dist/entities/trades/0x/0xTrade.d.ts new file mode 100644 index 00000000..dc07163e --- /dev/null +++ b/dist/entities/trades/0x/0xTrade.d.ts @@ -0,0 +1,27 @@ +import type { UnsignedTransaction } from '@ethersproject/transactions'; +import { Currency } from '../../currency'; +import { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Percent } from '../../fractions/percent'; +import { TradeWithSwapTransaction } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +import { ZeroXTradeConstructorParams } from './types'; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +export declare class ZeroXTrade extends TradeWithSwapTransaction { + readonly to: string; + readonly callData: string; + readonly value: string; + constructor({ breakdown, input, output, maximumSlippage, tradeType, to, callData, value, priceImpact, estimatedGas, }: ZeroXTradeConstructorParams); + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + static bestTradeExactIn(currencyAmountIn: CurrencyAmount, currencyOut: Currency, maximumSlippage: Percent): Promise; + static bestTradeExactOut(currencyIn: Currency, currencyAmountOut: CurrencyAmount, maximumSlippage: Percent): Promise; + /** + * Returns the transaction to execute the trade + * @param options The options to execute the trade with + * @returns + */ + swapTransaction(options: TradeOptions): Promise; +} diff --git a/dist/entities/trades/0x/0xTrade.js b/dist/entities/trades/0x/0xTrade.js new file mode 100644 index 00000000..5550f2b0 --- /dev/null +++ b/dist/entities/trades/0x/0xTrade.js @@ -0,0 +1,209 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZeroXTrade = void 0; +const tslib_1 = require("tslib"); +const bignumber_1 = require("@ethersproject/bignumber"); +const debug_1 = tslib_1.__importDefault(require("debug")); +const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../../constants"); +const currency_1 = require("../../currency"); +const currencyAmount_1 = require("../../fractions/currencyAmount"); +const fraction_1 = require("../../fractions/fraction"); +const price_1 = require("../../fractions/price"); +const tokenAmount_1 = require("../../fractions/tokenAmount"); +const platforms_breakdown_1 = require("../../platforms-breakdown"); +const token_1 = require("../../token"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_1 = require("../utils"); +const constants_2 = require("./constants"); +const utils_2 = require("./utils"); +// Debuging logger. See documentation to enable logging. +const debug0X = (0, debug_1.default)('ecoRouter:0x'); +const headers = { '0x-api-key': `${process.env.REACT_APP_ZEROX_PROTOCOL_API_KEY}` }; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +class ZeroXTrade extends trade_1.TradeWithSwapTransaction { + constructor({ breakdown, input, output, maximumSlippage, tradeType, to, callData, value, priceImpact, estimatedGas, }) { + (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(input.currency, output.currency), 'CURRENCY'); + const chainId = breakdown.chainId; + super({ + details: breakdown, + type: tradeType, + inputAmount: input, + outputAmount: output, + executionPrice: new price_1.Price({ + baseCurrency: input.currency, + quoteCurrency: output.currency, + denominator: input.raw, + numerator: output.raw, + }), + maximumSlippage, + priceImpact, + chainId, + platform: routable_platform_1.RoutablePlatform.ZEROX, + approveAddress: to, + estimatedGas, + }); + this.to = to; + this.callData = callData; + this.value = value; + } + minimumAmountOut() { + if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + static bestTradeExactIn(currencyAmountIn, currencyOut, maximumSlippage) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); + const apiUrl = chainId && constants_2.ZEROX_API_URL[chainId]; + (0, tiny_invariant_1.default)(chainId !== undefined && apiUrl !== undefined && apiUrl.length > 0, 'CHAIN_ID'); + const amountIn = (0, utils_1.wrappedAmount)(currencyAmountIn, chainId); + const tokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); + const tokenOut = (0, utils_1.wrappedCurrency)(currencyOut, chainId); + (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); + let bestTrade; + try { + const buyToken = currency_1.Currency.isNative(currencyOut) ? currencyOut.symbol : tokenOut.address; + const sellToken = currency_1.Currency.isNative(currencyAmountIn.currency) + ? currencyAmountIn.currency.symbol + : tokenIn.address; + const apiUrlParams = (0, utils_2.build0xApiUrl)({ + apiUrl, + sellAmount: amountIn, + maximumSlippage, + chainId, + buyToken, + sellToken, + }); + // slippagePercentage for the 0X API needs to be a value between 0 and 1, others have between 0 and 100 + const response = yield (0, node_fetch_1.default)(apiUrlParams, { headers }); + if (!response.ok) + throw new Error('response not ok'); + const json = (yield response.json()); + const breakdown = new platforms_breakdown_1.Breakdown(chainId, (0, utils_2.platformsFromSources)(json.sources), tokenIn, tokenOut, new price_1.Price({ + baseCurrency: tokenIn, + quoteCurrency: tokenOut, + denominator: amountIn.raw, + numerator: json.buyAmount, + })); + bestTrade = new ZeroXTrade({ + breakdown, + input: currencyAmountIn, + output: currency_1.Currency.isNative(currencyOut) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(json.buyAmount, chainId) + : new tokenAmount_1.TokenAmount(tokenOut, json.buyAmount), + maximumSlippage, + tradeType: constants_1.TradeType.EXACT_INPUT, + to: json.to, + callData: json.data, + value: json.value, + priceImpact: (0, utils_2.decodeStringToPercent)(json.estimatedPriceImpact, true), + estimatedGas: bignumber_1.BigNumber.from(json.estimatedGas), + }); + } + catch (error) { + console.error('could not fetch 0x trade', error); + } + return bestTrade; + }); + } + static bestTradeExactOut(currencyIn, currencyAmountOut, maximumSlippage) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); + const apiUrl = chainId && constants_2.ZEROX_API_URL[chainId]; + (0, tiny_invariant_1.default)(chainId !== undefined && apiUrl !== undefined && apiUrl.length > 0, 'CHAIN_ID'); + const tokenIn = (0, utils_1.wrappedCurrency)(currencyIn, chainId); + const amountOut = (0, utils_1.wrappedAmount)(currencyAmountOut, chainId); + const tokenOut = (0, utils_1.wrappedCurrency)(currencyAmountOut.currency, chainId); + (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); + let bestTrade; + try { + const sellToken = currency_1.Currency.isNative(currencyIn) ? currencyIn.symbol : tokenIn.address; + const buyToken = currency_1.Currency.isNative(currencyAmountOut.currency) + ? currencyAmountOut.currency.symbol + : tokenOut.address; + const apiUrlParams = (0, utils_2.build0xApiUrl)({ + apiUrl, + buyAmount: amountOut, + maximumSlippage, + chainId, + buyToken, + sellToken, + }); + // slippagePercentage for the 0X API needs to be a value between 0 and 1, others have between 0 and 100 + const response = yield (0, node_fetch_1.default)(apiUrlParams, { headers }); + if (!response.ok) + throw new Error('response not ok'); + const json = (yield response.json()); + const breakdown = new platforms_breakdown_1.Breakdown(chainId, (0, utils_2.platformsFromSources)(json.sources), tokenIn, tokenOut, new price_1.Price({ + baseCurrency: tokenOut, + quoteCurrency: tokenIn, + denominator: amountOut.raw, + numerator: json.sellAmount, + })); + bestTrade = new ZeroXTrade({ + breakdown, + input: currency_1.Currency.isNative(currencyIn) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(json.sellAmount, chainId) + : new tokenAmount_1.TokenAmount(tokenIn, json.sellAmount), + output: currencyAmountOut, + maximumSlippage, + tradeType: constants_1.TradeType.EXACT_OUTPUT, + to: json.to, + callData: json.data, + value: json.value, + priceImpact: (0, utils_2.decodeStringToPercent)(json.estimatedPriceImpact, true), + estimatedGas: bignumber_1.BigNumber.from(json.estimatedGas), + }); + } + catch (error) { + console.error('could not fetch 0x trade', error); + } + return bestTrade; + }); + } + /** + * Returns the transaction to execute the trade + * @param options The options to execute the trade with + * @returns + */ + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + debug0X({ options }); + return { + to: this.to, + data: this.callData, + value: bignumber_1.BigNumber.from(this.value), + }; + }); + } +} +exports.ZeroXTrade = ZeroXTrade; +//# sourceMappingURL=0xTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/0xTrade.js.map b/dist/entities/trades/0x/0xTrade.js.map new file mode 100644 index 00000000..b6306144 --- /dev/null +++ b/dist/entities/trades/0x/0xTrade.js.map @@ -0,0 +1 @@ +{"version":3,"file":"0xTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/0xTrade.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AAEpD,0DAA+B;AAC/B,oEAA8B;AAC9B,4EAAsC;AAEtC,kDAAmD;AACnD,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AAEnD,iDAA6C;AAC7C,6DAAyD;AACzD,mEAAqD;AACrD,uCAA4C;AAC5C,+CAA8D;AAE9D,4DAAuD;AACvD,oCAAwE;AACxE,2CAA2C;AAE3C,mCAAoF;AAEpF,wDAAwD;AACxD,MAAM,OAAO,GAAG,IAAA,eAAW,EAAC,cAAc,CAAC,CAAA;AAC3C,MAAM,OAAO,GAAG,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,CAAA;AAEnF;;;GAGG;AACH,MAAa,UAAW,SAAQ,gCAAwB;IAKtD,YAAmB,EACjB,SAAS,EACT,KAAK,EACL,MAAM,EACN,eAAe,EACf,SAAS,EACT,EAAE,EACF,QAAQ,EACR,KAAK,EACL,WAAW,EACX,YAAY,GACgB;QAC5B,IAAA,wBAAS,EAAC,CAAC,IAAA,sBAAc,EAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;QACjC,KAAK,CAAC;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,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BACf,SAAS,EAAE,qBAAS,CAAC,YAAY;oBACjC,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,QAAQ,EAAE,IAAI,CAAC,IAAI;oBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,WAAW,EAAE,IAAA,6BAAqB,EAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC;oBACnE,YAAY,EAAE,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;iBAChD,CAAC,CAAA;aACH;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAA;aACjD;YAED,OAAO,SAAS,CAAA;QAClB,CAAC;KAAA;IAED;;;;OAIG;IACU,eAAe,CAAC,OAAqB;;YAChD,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;YACpB,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,QAAQ;gBACnB,KAAK,EAAE,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAA;QACH,CAAC;KAAA;CACF;AArND,gCAqNC"} \ No newline at end of file diff --git a/dist/entities/trades/0x/constants.d.ts b/dist/entities/trades/0x/constants.d.ts new file mode 100644 index 00000000..ef16082b --- /dev/null +++ b/dist/entities/trades/0x/constants.d.ts @@ -0,0 +1,7 @@ +import { ChainId } from '../../../constants/chains'; +/** + * For API endpoints reference, + * @see https://0x.org/docs/introduction/0x-cheat-sheet + */ +export declare const ZEROX_API_URL: Record; +export declare const ZERO_OX_REFFERER_FEE = "0"; diff --git a/dist/entities/trades/0x/constants.js b/dist/entities/trades/0x/constants.js new file mode 100644 index 00000000..43a710ba --- /dev/null +++ b/dist/entities/trades/0x/constants.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZERO_OX_REFFERER_FEE = exports.ZEROX_API_URL = void 0; +const chains_1 = require("../../../constants/chains"); +/** + * For API endpoints reference, + * @see https://0x.org/docs/introduction/0x-cheat-sheet + */ +exports.ZEROX_API_URL = { + [chains_1.ChainId.MAINNET]: 'https://api.0x.org/', + [chains_1.ChainId.RINKEBY]: '', + [chains_1.ChainId.ARBITRUM_ONE]: 'https://arbitrum.api.0x.org/', + [chains_1.ChainId.ARBITRUM_RINKEBY]: '', + [chains_1.ChainId.ARBITRUM_GOERLI]: '', + [chains_1.ChainId.XDAI]: '', + [chains_1.ChainId.POLYGON]: 'https://polygon.api.0x.org/', + [chains_1.ChainId.GOERLI]: 'https://goerli.api.0x.org/', + [chains_1.ChainId.OPTIMISM_MAINNET]: 'https://optimism.api.0x.org/', + [chains_1.ChainId.OPTIMISM_GOERLI]: '', + [chains_1.ChainId.BSC_MAINNET]: 'https://bsc.api.0x.org/', + [chains_1.ChainId.BSC_TESTNET]: '', + [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: '', + [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: '', +}; +//buyTOkenPercetageFee value +exports.ZERO_OX_REFFERER_FEE = '0'; //MIN-> 0. MAX-> 1 percent +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/constants.js.map b/dist/entities/trades/0x/constants.js.map new file mode 100644 index 00000000..ad3d6511 --- /dev/null +++ b/dist/entities/trades/0x/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/constants.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AAEnD;;;GAGG;AACU,QAAA,aAAa,GAA4B;IACpD,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,qBAAqB;IACxC,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,8BAA8B;IACtD,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,gBAAO,CAAC,IAAI,CAAC,EAAE,EAAE;IAClB,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,6BAA6B;IAChD,CAAC,gBAAO,CAAC,MAAM,CAAC,EAAE,4BAA4B;IAC9C,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,8BAA8B;IAC1D,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,yBAAyB;IAChD,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA;AAED,4BAA4B;AACf,QAAA,oBAAoB,GAAG,GAAG,CAAA,CAAC,0BAA0B"} \ No newline at end of file diff --git a/dist/entities/trades/0x/index.d.ts b/dist/entities/trades/0x/index.d.ts new file mode 100644 index 00000000..38eeb480 --- /dev/null +++ b/dist/entities/trades/0x/index.d.ts @@ -0,0 +1,2 @@ +export * from './0xTrade'; +export * from './types'; diff --git a/dist/entities/trades/0x/index.js b/dist/entities/trades/0x/index.js new file mode 100644 index 00000000..593618a3 --- /dev/null +++ b/dist/entities/trades/0x/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./0xTrade"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/index.js.map b/dist/entities/trades/0x/index.js.map new file mode 100644 index 00000000..9b7dd02a --- /dev/null +++ b/dist/entities/trades/0x/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/0x/types.d.ts b/dist/entities/trades/0x/types.d.ts new file mode 100644 index 00000000..6e9858e7 --- /dev/null +++ b/dist/entities/trades/0x/types.d.ts @@ -0,0 +1,45 @@ +import { BigNumber } from '@ethersproject/bignumber'; +import Decimal from 'decimal.js-light'; +import { TradeType } from '../../../constants'; +import { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Percent } from '../../fractions/percent'; +import { Breakdown } from '../../platforms-breakdown'; +export interface ApiSource { + name: string; + proportion: string; +} +export interface ApiResponse { + price: string; + estimatedPriceImpact: string; + guaranteedPrice: string; + to: string; + data: string; + value: string; + gas: string; + estimatedGas: string; + gasPrice: string; + protocolFee: string; + minimumProtocolFee: string; + buyTokenAddress: string; + sellTokenAddress: string; + buyAmount: string; + sellAmount: string; + estimatedGasTokenRefund: string; + sources: ApiSource[]; +} +export interface ZeroXTradeConstructorParams { + breakdown: Breakdown; + input: CurrencyAmount; + output: CurrencyAmount; + maximumSlippage: Percent; + tradeType: TradeType; + to: string; + callData: string; + value: string; + priceImpact: Percent; + estimatedGas: BigNumber; +} +export interface DecodeStringFractionReturn { + numerator: Decimal; + denominator: Decimal; +} diff --git a/dist/entities/trades/0x/types.js b/dist/entities/trades/0x/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/0x/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/types.js.map b/dist/entities/trades/0x/types.js.map new file mode 100644 index 00000000..6957d59d --- /dev/null +++ b/dist/entities/trades/0x/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/0x/utils.d.ts b/dist/entities/trades/0x/utils.d.ts new file mode 100644 index 00000000..d3295f2a --- /dev/null +++ b/dist/entities/trades/0x/utils.d.ts @@ -0,0 +1,20 @@ +import { ChainId } from '../../../constants'; +import { TokenAmount } from '../../fractions'; +import { Percent } from '../../fractions/percent'; +import { Platform } from '../../platforms-breakdown'; +import { ApiSource, DecodeStringFractionReturn } from './types'; +export declare const decodePlatformName: (apiName: string) => string; +export declare const decodeStringFraction: (value: string) => DecodeStringFractionReturn; +export declare const decodeStringToPercent: (value: string, isStringPercent?: boolean) => Percent; +export declare const platformsFromSources: (sources: ApiSource[]) => Platform[]; +interface ApiParams { + apiUrl: string; + sellAmount?: TokenAmount; + buyAmount?: TokenAmount; + maximumSlippage: Percent; + chainId: ChainId; + buyToken?: string; + sellToken?: string; +} +export declare function build0xApiUrl({ apiUrl, sellAmount, buyAmount, maximumSlippage, chainId, buyToken, sellToken, }: ApiParams): string; +export {}; diff --git a/dist/entities/trades/0x/utils.js b/dist/entities/trades/0x/utils.js new file mode 100644 index 00000000..e9e25e22 --- /dev/null +++ b/dist/entities/trades/0x/utils.js @@ -0,0 +1,52 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.build0xApiUrl = exports.platformsFromSources = exports.decodeStringToPercent = exports.decodeStringFraction = exports.decodePlatformName = void 0; +const tslib_1 = require("tslib"); +const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const percent_1 = require("../../fractions/percent"); +const constants_1 = require("../constants"); +const constants_2 = require("./constants"); +const decodePlatformName = (apiName) => apiName.replace(/_/g, ' '); +exports.decodePlatformName = decodePlatformName; +const decodeStringFraction = (value) => { + const proportion = new decimal_js_light_1.default(value); + const denominator = new decimal_js_light_1.default('10').pow(proportion.decimalPlaces()); + const numerator = proportion.times(denominator); + return { numerator, denominator }; +}; +exports.decodeStringFraction = decodeStringFraction; +const decodeStringToPercent = (value, isStringPercent) => { + const { numerator, denominator } = (0, exports.decodeStringFraction)(value); + const percent = isStringPercent ? new decimal_js_light_1.default('10').pow(2) : 1; + return new percent_1.Percent(numerator.toString(), denominator.times(percent).toString()); +}; +exports.decodeStringToPercent = decodeStringToPercent; +const platformsFromSources = (sources) => { + return sources + .map((source) => { + return { + name: (0, exports.decodePlatformName)(source.name), + percentage: (0, exports.decodeStringToPercent)(source.proportion), + }; + }) + .filter((platform) => platform.percentage.greaterThan('0')) + .sort((a, b) => (a.percentage.greaterThan(b.percentage) ? -1 : a.percentage.equalTo(b.percentage) ? 0 : 1)); +}; +exports.platformsFromSources = platformsFromSources; +function build0xApiUrl({ apiUrl, sellAmount, buyAmount, maximumSlippage, chainId, buyToken, sellToken, }) { + const slippagePercentage = new percent_1.Percent(maximumSlippage.numerator, jsbi_1.default.multiply(maximumSlippage.denominator, jsbi_1.default.BigInt(100))).toFixed(3); + let amountParam = ''; + if (!!sellAmount) + amountParam = `sellAmount=${sellAmount.raw}`; + else if (!!buyAmount) + amountParam = `buyAmount=${buyAmount.raw}`; + let apiUrlWithParams = `${apiUrl}swap/v1/quote?buyToken=${buyToken}&sellToken=${sellToken}&${amountParam}&slippagePercentage=${slippagePercentage}`; + if (constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) { + const feeRecipient = constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]; + apiUrlWithParams += `&feeRecipient=${feeRecipient}&buyTokenPercentageFee=${constants_2.ZERO_OX_REFFERER_FEE}`; + } + return apiUrlWithParams; +} +exports.build0xApiUrl = build0xApiUrl; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/utils.js.map b/dist/entities/trades/0x/utils.js.map new file mode 100644 index 00000000..ccc1ad71 --- /dev/null +++ b/dist/entities/trades/0x/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/utils.ts"],"names":[],"mappings":";;;;AAAA,gFAAsC;AACtC,wDAAuB;AAIvB,qDAAiD;AAEjD,4CAA6D;AAC7D,2CAAkD;AAG3C,MA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I,iBAAiB,YAAY,0BAA0B,gCAAoB,EAAE,CAAA;KAClG;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC;AA1BD,sCA0BC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/OneInch.d.ts b/dist/entities/trades/OneInch/OneInch.d.ts new file mode 100644 index 00000000..e8396b16 --- /dev/null +++ b/dist/entities/trades/OneInch/OneInch.d.ts @@ -0,0 +1,40 @@ +import { BaseProvider } from '@ethersproject/providers'; +import { UnsignedTransaction } from '@ethersproject/transactions'; +import { ChainId, TradeType } from '../../../constants'; +import { Currency } from '../../currency'; +import { CurrencyAmount, Percent } from '../../fractions'; +import { Trade } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +export interface OneInchQuoteTypes { + amount: CurrencyAmount; + quoteCurrency: Currency; + tradeType: TradeType; + maximumSlippage?: Percent; + recipient?: string; +} +interface ExtentendedTradeOptions extends TradeOptions { + account: string; +} +interface OneInchConstructorParams { + maximumSlippage: Percent; + currencyAmountIn: CurrencyAmount; + currencyAmountOut: CurrencyAmount; + tradeType: TradeType; + chainId: ChainId; + approveAddress: string; +} +/** + * 1Inch trade + */ +export declare class OneInchTrade extends Trade { + constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, approveAddress, }: OneInchConstructorParams); + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }: OneInchQuoteTypes, provider?: BaseProvider): Promise; + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + /** + * Returns unsigned transaction for the trade + * @returns the unsigned transaction + */ + swapTransaction(options: ExtentendedTradeOptions): Promise; +} +export {}; diff --git a/dist/entities/trades/OneInch/OneInch.js b/dist/entities/trades/OneInch/OneInch.js new file mode 100644 index 00000000..8f6e09bb --- /dev/null +++ b/dist/entities/trades/OneInch/OneInch.js @@ -0,0 +1,154 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OneInchTrade = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../../constants"); +const currency_1 = require("../../currency"); +const fractions_1 = require("../../fractions"); +const constants_2 = require("../constants"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_1 = require("../utils"); +const api_1 = require("./api"); +/** + * 1Inch trade + */ +class OneInchTrade extends trade_1.Trade { + constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, approveAddress, }) { + super({ + details: undefined, + type: tradeType, + inputAmount: currencyAmountIn, + outputAmount: currencyAmountOut, + maximumSlippage, + platform: routable_platform_1.RoutablePlatform.ONE_INCH, + chainId, + executionPrice: new fractions_1.Price({ + baseCurrency: currencyAmountIn.currency, + quoteCurrency: currencyAmountOut.currency, + denominator: currencyAmountIn.raw, + numerator: currencyAmountOut.raw, + }), + priceImpact: new fractions_1.Percent('0', '100'), + fee: new fractions_1.Percent('0', '10000'), + approveAddress, + }); + } + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage = constants_2.maximumSlippage }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); + if (!chainId) { + throw new Error('getQuote: chainId is required'); + } + provider = provider || (0, utils_1.getProvider)(chainId); + // Ensure the provider's chainId matches the provided currencies + (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `OneInch.getQuote: currencies chainId does not match provider's chainId`); + const currencyIn = amount.currency; + const currencyOut = quoteCurrency; + // Ensure that the currencies are present + (0, tiny_invariant_1.default)(currencyIn.address && currencyOut.address, `getQuote: Currency address is required`); + try { + //Fetch approve address + const { address: approveAddress } = yield (yield fetch((0, api_1.approveAddressUrl)(chainId))).json(); + // Prepare the query parameters for the API request + const queryParams = { + fromTokenAddress: currencyIn.address, + toTokenAddress: currencyOut.address, + amount: amount.raw.toString(), + }; + const { toAmount } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.QUOTE, queryParams, chainId }))).json(); + let toTokenAmountApi = toAmount; + const fromTokenAmountApi = amount.raw.toString(); + if (tradeType === constants_1.TradeType.EXACT_OUTPUT) { + // Prepare the query parameters for the API request + const queryParams = { + fromTokenAddress: currencyOut.address, + toTokenAddress: currencyIn.address, + amount: toAmount.toString(), + }; + const { toAmount: toTokenAmountOutput } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.QUOTE, queryParams, chainId }))).json(); + toTokenAmountApi = toTokenAmountOutput; + } + const currencyInType = tradeType === constants_1.TradeType.EXACT_INPUT ? currencyIn : currencyOut; + const currencyOutType = tradeType === constants_1.TradeType.EXACT_INPUT ? currencyOut : currencyIn; + const currencyAmountIn = currency_1.Currency.isNative(currencyInType) + ? fractions_1.CurrencyAmount.nativeCurrency(fromTokenAmountApi, chainId) + : new fractions_1.TokenAmount((0, utils_1.wrappedCurrency)(currencyInType, chainId), fromTokenAmountApi); + const currencyAmountOut = currency_1.Currency.isNative(currencyOutType) + ? fractions_1.CurrencyAmount.nativeCurrency(toTokenAmountApi, chainId) + : new fractions_1.TokenAmount((0, utils_1.wrappedCurrency)(currencyOutType, chainId), toTokenAmountApi); + return new OneInchTrade({ + maximumSlippage, + currencyAmountIn, + currencyAmountOut, + tradeType, + chainId, + approveAddress, + }); + } + catch (error) { + console.error('OneInch.getQuote: Error fetching the quote:', error.message); + return null; + } + }); + } + minimumAmountOut() { + if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + /** + * Returns unsigned transaction for the trade + * @returns the unsigned transaction + */ + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + (0, tiny_invariant_1.default)(this.inputAmount.currency.address && this.outputAmount.currency.address, 'OneInchTrade: Currency address is required'); + const queryParams = { + fromTokenAddress: this.inputAmount.currency.address, + toTokenAddress: this.outputAmount.currency.address, + amount: this.inputAmount.raw.toString(), + fromAddress: options.account, + slippage: this.maximumSlippage.toSignificant(2), + destReciever: options.recipient, + }; + try { + // Fetch the unsigned transaction from the API + const { tx } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.SWAP, queryParams, chainId: this.chainId }))).json(); + return { + data: tx.data, + to: tx.to, + value: tx.value, + }; + } + catch (e) { + throw new Error(`OneInch.swapTransaction: Error fetching the swap data: ${e.message}`); + } + }); + } +} +exports.OneInchTrade = OneInchTrade; +//# sourceMappingURL=OneInch.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/OneInch.js.map b/dist/entities/trades/OneInch/OneInch.js.map new file mode 100644 index 00000000..f4bc34c4 --- /dev/null +++ b/dist/entities/trades/OneInch/OneInch.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OneInch.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/OneInch.ts"],"names":[],"mappings":";;;;AAEA,4EAAsC;AAEtC,kDAA4D;AAC5D,6CAAyC;AACzC,+CAAuF;AACvF,4CAAwE;AACxE,+CAA2C;AAE3C,4DAAuD;AACvD,oCAAsE;AACtE,+BAA6E;AAuB7E;;GAEG;AACH,MAAa,YAAa,SAAQ,aA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gBAClD,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACvC,WAAW,EAAE,OAAO,CAAC,OAAO;gBAC5B,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC;gBAC/C,YAAY,EAAE,OAAO,CAAC,SAAS;aAChC,CAAA;YAED,IAAI;gBACF,8CAA8C;gBAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CACnB,MAAM,KAAK,CAAC,IAAA,2BAAqB,EAAC,EAAE,UAAU,EAAE,iBAAW,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CACzG,CAAC,IAAI,EAAE,CAAA;gBAER,OAAO;oBACL,IAAI,EAAE,EAAE,CAAC,IAAI;oBACb,EAAE,EAAE,EAAE,CAAC,EAAE;oBACT,KAAK,EAAE,EAAE,CAAC,KAAK;iBAChB,CAAA;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;aACvF;QACH,CAAC;KAAA;CACF;AAzKD,oCAyKC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/api.d.ts b/dist/entities/trades/OneInch/api.d.ts new file mode 100644 index 00000000..c4a488e9 --- /dev/null +++ b/dist/entities/trades/OneInch/api.d.ts @@ -0,0 +1,13 @@ +import { ChainId } from '../../../constants'; +export declare enum RequestType { + QUOTE = "/quote", + SWAP = "/swap" +} +interface ApiRequestUrlParams { + methodName: RequestType; + queryParams: Record; + chainId: ChainId; +} +export declare function generateApiRequestUrl({ methodName, queryParams, chainId }: ApiRequestUrlParams): string; +export declare function approveAddressUrl(chainId: ChainId): string; +export {}; diff --git a/dist/entities/trades/OneInch/api.js b/dist/entities/trades/OneInch/api.js new file mode 100644 index 00000000..b99a206a --- /dev/null +++ b/dist/entities/trades/OneInch/api.js @@ -0,0 +1,51 @@ +"use strict"; +var _a; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.approveAddressUrl = exports.generateApiRequestUrl = exports.RequestType = void 0; +const constants_1 = require("../constants"); +var RequestType; +(function (RequestType) { + RequestType["QUOTE"] = "/quote"; + RequestType["SWAP"] = "/swap"; +})(RequestType = exports.RequestType || (exports.RequestType = {})); +var ApiName; +(function (ApiName) { + ApiName["FUSION"] = "/fusion"; + ApiName["SPOT_PRICE"] = "/price"; + ApiName["SWAP"] = "/swap"; +})(ApiName || (ApiName = {})); +var SubApiName; +(function (SubApiName) { + SubApiName["ORDERS"] = "/orders"; + SubApiName["QUOTER"] = "/quoter"; + SubApiName["RELAYER"] = "/relayer"; +})(SubApiName || (SubApiName = {})); +var ApiVersion; +(function (ApiVersion) { + ApiVersion["FUSION"] = "/v1.0"; + ApiVersion["SPOT_PRICE"] = "/v1.1"; + ApiVersion["SWAP"] = "/v5.2"; +})(ApiVersion || (ApiVersion = {})); +/** + * @see https://portal.1inch.dev/documentation/swap/introduction + */ +const API_BASE_URL = (_a = process.env.REACT_APP_ONEINCH_BASE_API_URL) !== null && _a !== void 0 ? _a : 'https://api.1inch.dev/'; +const ONE_INCH_REFFERER_FEE = '0'; //MIN-> 0 MAX-> 3 +const getApiUrl = ({ apiName, apiVersion, chainId, subApiName = '' }) => `${API_BASE_URL}${apiName}${subApiName}${apiVersion}/${chainId}`; +function generateApiRequestUrl({ methodName, queryParams, chainId }) { + var _a; + if (constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) { + queryParams.referrerAddress = (_a = constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) !== null && _a !== void 0 ? _a : ''; + queryParams.fee = ONE_INCH_REFFERER_FEE; + } + return (getApiUrl({ apiName: ApiName.SWAP, apiVersion: ApiVersion.SWAP, chainId }) + + methodName + + '?' + + new URLSearchParams(queryParams).toString()); +} +exports.generateApiRequestUrl = generateApiRequestUrl; +function approveAddressUrl(chainId) { + return getApiUrl({ apiName: ApiName.SWAP, apiVersion: ApiVersion.SWAP, chainId }) + '/approve/spender'; +} +exports.approveAddressUrl = approveAddressUrl; +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/api.js.map b/dist/entities/trades/OneInch/api.js.map new file mode 100644 index 00000000..3e2c09ed --- /dev/null +++ b/dist/entities/trades/OneInch/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/api.ts"],"names":[],"mappings":";;;;AACA,4CAA6D;AAE7D,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,+BAAgB,CAAA;IAChB,6BAAc,CAAA;AAChB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAK,OAIJ;AAJD,WAAK,OAAO;IACV,6BAAkB,CAAA;IAClB,gCAAqB,CAAA;IACrB,yBAAc,CAAA;AAChB,CAAC,EAJI,OAAO,KAAP,OAAO,QAIX;AAED,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,gCAAkB,CAAA;IAClB,gCAAkB,CAAA;IAClB,kCAAoB,CAAA;AACtB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,8BAAgB,CAAA;IAChB,kCAAoB,CAAA;IACpB,4BAAc,CAAA;AAChB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAeD;;GAEG;AAEH,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,8BAA8B,mCAAI,wBAAwB,CAAA;AAC3F,MAAM,qBAAqB,GAAG,GAAG,CAAA,CAAC,iBAAiB;AAEnD,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,GAAG,EAAE,EAAgB,EAAE,EAAE,CACpF,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,IAAI,OAAO,EAAE,CAAA;AAElE,SAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAuB;;IAC7F,IAAI,0CAA8B,CAAC,OAAO,CAAC,EAAE;QAC3C,WAAW,CAAC,eAAe,GAAG,MAAA,0CAA8B,CAAC,OAAO,CAAC,mCAAI,EAAE,CAAA;QAC3E,WAAW,CAAC,GAAG,GAAG,qBAAqB,CAAA;KACxC;IAED,OAAO,CACL,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;QAC1E,UAAU;QACV,GAAG;QACH,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAC5C,CAAA;AACH,CAAC;AAZD,sDAYC;AAED,SAAgB,iBAAiB,CAAC,OAAgB;IAChD,OAAO,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAA;AACxG,CAAC;AAFD,8CAEC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/index.d.ts b/dist/entities/trades/OneInch/index.d.ts new file mode 100644 index 00000000..96b41ae8 --- /dev/null +++ b/dist/entities/trades/OneInch/index.d.ts @@ -0,0 +1 @@ +export * from './OneInch'; diff --git a/dist/entities/trades/OneInch/index.js b/dist/entities/trades/OneInch/index.js new file mode 100644 index 00000000..a5da981a --- /dev/null +++ b/dist/entities/trades/OneInch/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./OneInch"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/index.js.map b/dist/entities/trades/OneInch/index.js.map new file mode 100644 index 00000000..dd05351c --- /dev/null +++ b/dist/entities/trades/OneInch/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"} \ No newline at end of file diff --git a/dist/entities/trades/constants/index.d.ts b/dist/entities/trades/constants/index.d.ts new file mode 100644 index 00000000..ecb571ae --- /dev/null +++ b/dist/entities/trades/constants/index.d.ts @@ -0,0 +1,7 @@ +import { ChainId } from '../../../constants'; +import { Percent } from '../../../entities/fractions'; +/** + * Default maximum slippage tolerance at 3% + */ +export declare const maximumSlippage: Percent; +export declare const REFFERER_ADDRESS_CHAIN_MAPPING: Partial>; diff --git a/dist/entities/trades/constants/index.js b/dist/entities/trades/constants/index.js new file mode 100644 index 00000000..e9d79d39 --- /dev/null +++ b/dist/entities/trades/constants/index.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.REFFERER_ADDRESS_CHAIN_MAPPING = exports.maximumSlippage = void 0; +const constants_1 = require("../../../constants"); +const fractions_1 = require("../../../entities/fractions"); +/** + * Default maximum slippage tolerance at 3% + */ +exports.maximumSlippage = new fractions_1.Percent('3', '100'); +exports.REFFERER_ADDRESS_CHAIN_MAPPING = { + [constants_1.ChainId.MAINNET]: '0x424F2fc764aFFaE340021d65EF0343af1847Cf1d', + [constants_1.ChainId.POLYGON]: '0x6810B7D3FEF83A37fF39501d03A42d9f57DF1df1', + [constants_1.ChainId.ARBITRUM_ONE]: '0x654a8A1B2ee4F0B4470c5C7db9794664BA70E076', + [constants_1.ChainId.BSC_MAINNET]: '0x09D4B6C9c1Cb8Cf2d49C928d0109ba19931eC3c2', + [constants_1.ChainId.OPTIMISM_MAINNET]: '0x78C90A9f0e457278350D8BFfb4ee8be28238f891', + [constants_1.ChainId.GNOSIS]: '0xfe0da679F5DC5732CF6E6522026B7f2ea2856597', +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/constants/index.js.map b/dist/entities/trades/constants/index.js.map new file mode 100644 index 00000000..812cba5a --- /dev/null +++ b/dist/entities/trades/constants/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/constants/index.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,2DAAqD;AAErD;;GAEG;AACU,QAAA,eAAe,GAAG,IAAI,mBAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAEzC,QAAA,8BAA8B,GAAqC;IAC9E,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C;IACpE,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,4CAA4C;CAC/D,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/CurveTrade.d.ts b/dist/entities/trades/curve/CurveTrade.d.ts new file mode 100644 index 00000000..39c37c19 --- /dev/null +++ b/dist/entities/trades/curve/CurveTrade.d.ts @@ -0,0 +1,83 @@ +import { Contract } from '@ethersproject/contracts'; +import { Provider } from '@ethersproject/providers'; +import type { UnsignedTransaction } from '@ethersproject/transactions'; +import { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Token } from '../../token'; +import { Trade } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +import { CurveTradeBestTradeExactInParams, CurveTradeBestTradeExactOutParams, CurveTradeConstructorParams, CurveTradeGetQuoteParams, CurveTradeQuote } from './types'; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +export declare class CurveTrade extends Trade { + /** + * The Unsigned transaction + */ + readonly transactionRequest: UnsignedTransaction; + /** + * The contract instance through which the trade go through + */ + readonly contract: Contract; + /** + * + * @param {Object} obj Curve trade options. + * @param {CurrencyAmount} obj.inputAmount - Input token + * @param {CurrencyAmount} obj.outputAmount - Output token + * @param {Percent} obj.maximumSlippage - Maximum slippage indicated by the user + * @param {TradeType} obj.tradeType - Trade type + * @param {string} obj.transactionRequest - Address to to which transaction is send + * @param {Percent} obj.fee - Trade fee + * @param {string} obj.approveAddress - Approve address, defaults to `to` + */ + constructor({ inputAmount, outputAmount, maximumSlippage, tradeType, chainId, transactionRequest, approveAddress, fee, contract, }: CurveTradeConstructorParams); + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + /** + * Checks if two tokens can be routed between on Curve Finance pools. + * This method returns accurate results only on Ethereum since the Curve Router is available there. + * @param {string} tokenIn + * @param {string} tokenOut + * @returns a `boolean` whether the tokens can be exchanged on Curve Finance pools + */ + static canRoute(tokenIn: Token, tokenOut: Token): Promise; + /** + * Given an a sell token and a buy token, and amount of sell token, returns a + * quote from Curve's pools with best pool, and unsigned transactions data + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency in - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static getQuote({ currencyAmountIn, currencyOut, maximumSlippage, receiver }: CurveTradeGetQuoteParams, provider?: Provider): Promise; + /** + * Computes and returns the best trade from Curve pools + * by comparing all the Curve pools on target chain + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver }: CurveTradeBestTradeExactInParams, provider?: Provider): Promise; + /** + * Computes and returns the best trade from Curve pools using output as target. + * Avoid usig this method. It uses some optimistic math estimate right input. + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountOut the amount of curreny in - buy token + * @param {Currency} obj.currencyIn the currency in - sell token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver }: CurveTradeBestTradeExactOutParams, provider?: Provider): Promise; + /** + * Returns unsigned transaction for the trade + * @param options options + * @returns the unsigned transaction + */ + swapTransaction(options?: TradeOptions): Promise; +} diff --git a/dist/entities/trades/curve/CurveTrade.js b/dist/entities/trades/curve/CurveTrade.js new file mode 100644 index 00000000..9ea8160b --- /dev/null +++ b/dist/entities/trades/curve/CurveTrade.js @@ -0,0 +1,538 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CurveTrade = void 0; +const tslib_1 = require("tslib"); +const bignumber_1 = require("@ethersproject/bignumber"); +const constants_1 = require("@ethersproject/constants"); +const contracts_1 = require("@ethersproject/contracts"); +const units_1 = require("@ethersproject/units"); +const debug_1 = tslib_1.__importDefault(require("debug")); +const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); +const memoizee_1 = tslib_1.__importDefault(require("memoizee")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_2 = require("../../../constants"); +const currency_1 = require("../../currency"); +const currencyAmount_1 = require("../../fractions/currencyAmount"); +const fraction_1 = require("../../fractions/fraction"); +const percent_1 = require("../../fractions/percent"); +const price_1 = require("../../fractions/price"); +const tokenAmount_1 = require("../../fractions/tokenAmount"); +const token_1 = require("../../token"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_1 = require("../utils"); +const utils_2 = require("../utils"); +// Curve imports +const contracts_2 = require("./contracts"); +const pools_1 = require("./pools"); +const utils_3 = require("./utils"); +// Debuging logger. See documentation to enable logging. +const debugCurve = (0, debug_1.default)('ecoRouter:curve'); +const debugCurveGetQuote = (0, debug_1.default)('ecoRouter:curve:getQuote'); +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +class CurveTrade extends trade_1.Trade { + /** + * + * @param {Object} obj Curve trade options. + * @param {CurrencyAmount} obj.inputAmount - Input token + * @param {CurrencyAmount} obj.outputAmount - Output token + * @param {Percent} obj.maximumSlippage - Maximum slippage indicated by the user + * @param {TradeType} obj.tradeType - Trade type + * @param {string} obj.transactionRequest - Address to to which transaction is send + * @param {Percent} obj.fee - Trade fee + * @param {string} obj.approveAddress - Approve address, defaults to `to` + */ + constructor({ inputAmount, outputAmount, maximumSlippage, tradeType, chainId, transactionRequest, approveAddress, fee, contract, }) { + (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(inputAmount.currency, outputAmount.currency), 'SAME_TOKEN'); + super({ + details: undefined, + type: tradeType, + inputAmount, + outputAmount, + executionPrice: new price_1.Price({ + baseCurrency: inputAmount.currency, + quoteCurrency: outputAmount.currency, + denominator: inputAmount.raw, + numerator: outputAmount.raw, + }), + maximumSlippage, + priceImpact: new percent_1.Percent('0', '100'), + chainId, + platform: routable_platform_1.RoutablePlatform.CURVE, + fee, + approveAddress: approveAddress || transactionRequest.to, + }); + this.transactionRequest = transactionRequest; + this.contract = contract; + } + minimumAmountOut() { + if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + /** + * Checks if two tokens can be routed between on Curve Finance pools. + * This method returns accurate results only on Ethereum since the Curve Router is available there. + * @param {string} tokenIn + * @param {string} tokenOut + * @returns a `boolean` whether the tokens can be exchanged on Curve Finance pools + */ + static canRoute(tokenIn, tokenOut) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + return (0, contracts_2.getRouter)().can_route(tokenIn.address, tokenOut.address); + }); + } + /** + * Given an a sell token and a buy token, and amount of sell token, returns a + * quote from Curve's pools with best pool, and unsigned transactions data + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency in - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static getQuote({ currencyAmountIn, currencyOut, maximumSlippage, receiver = constants_1.AddressZero }, provider) { + var _a, _b, _c, _d, _e, _f, _g; + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Try to extract the chain ID from the tokens + const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); + // Require the chain ID + (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); + if (!routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId)) { + return undefined; + } + const wrappedTokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); + const wrappedtokenOut = (0, utils_1.wrappedCurrency)(currencyOut, chainId); + // Get the token's data from Curve + const tokenIn = (0, utils_3.getCurveToken)(wrappedTokenIn, chainId); + const tokenOut = (0, utils_3.getCurveToken)(wrappedtokenOut, chainId); + // Get the native address + const nativeCurrency = currency_1.Currency.getNative(chainId); + // Determine if the currency sent is native + // First using address + // then, using symbol/name + const isNativeAssetIn = ((_b = (_a = currencyAmountIn.currency) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === ((_c = nativeCurrency.address) === null || _c === void 0 ? void 0 : _c.toLowerCase()) + ? true + : currencyAmountIn.currency === nativeCurrency; + const isNativeAssetOut = (tokenOut === null || tokenOut === void 0 ? void 0 : tokenOut.address.toLowerCase()) == ((_d = nativeCurrency.address) === null || _d === void 0 ? void 0 : _d.toLowerCase()) + ? true + : ((_e = currencyOut.name) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === ((_f = nativeCurrency.name) === null || _f === void 0 ? void 0 : _f.toLowerCase()) + ? true + : currencyOut === nativeCurrency; + // Validations + (0, tiny_invariant_1.default)(tokenIn != undefined, 'NO_TOKEN_IN'); + (0, tiny_invariant_1.default)(tokenOut != undefined, 'NO_TOKEN_OUT'); + (0, tiny_invariant_1.default)(tokenIn.address.toLowerCase() != tokenOut.address.toLowerCase(), 'SAME_TOKEN'); + debugCurveGetQuote({ provider, newProvider: (0, utils_2.getProvider)(chainId) }); + provider = provider || (0, utils_2.getProvider)(chainId); + let value = '0x0'; // With Curve, most value exchanged is ERC20 + // Get the Router contract to populate the unsigned transaction + // Get all Curve pools for the chain + const curvePools = pools_1.CURVE_POOLS[chainId]; + // Basic trade information + const amountInBN = (0, units_1.parseUnits)(currencyAmountIn.toSignificant(), tokenIn.decimals); + if (isNativeAssetIn) { + value = amountInBN.toString(); + } + // Majority of Curve pools + // have 4bps fee of which 50% goes to Curve + const FEE_DECIMAL = 0.0004; + let fee = new percent_1.Percent('4', '10000'); + // Exchange fee + const exchangeRateWithoutFee = 1; + const exchangeRate = 1 - FEE_DECIMAL; + debugCurveGetQuote({ + isNativeAssetIn, + isNativeAssetOut, + }); + // Use Custom contract for native xDAI<>USDT and xDAI<>USDC trades on Gnosis Chain + if (chainId === constants_2.ChainId.XDAI && (isNativeAssetIn || isNativeAssetOut)) { + const poolContract = (0, contracts_2.getCurveDAIExchangeContract)(); + const tokenInAddress = isNativeAssetIn && nativeCurrency.address != undefined ? nativeCurrency.address : tokenIn.address; + const tokenOutAddress = isNativeAssetOut && nativeCurrency.address != undefined ? nativeCurrency.address : tokenOut.address; + const estimatedAmountOutParams = [tokenInAddress, tokenOutAddress, amountInBN.toString()]; + const estimatedAmountOut = yield poolContract.getEstimatedAmountOut(...estimatedAmountOutParams); + // Prepapre signature and params for Curve3PoolExchange + let exchangeSignature = 'exchangeExactNativeTokenForERC20'; + let exchangeParams = [tokenOut.address, estimatedAmountOut, receiver]; + if (isNativeAssetOut) { + exchangeSignature = 'exchangeExactERC20ForNativeToken'; + exchangeParams = [tokenInAddress, amountInBN.toString(), estimatedAmountOut, receiver]; + } + debugCurveGetQuote('populating transaction ', { + exchangeSignature, + exchangeParams, + value, + }); + const populatedTransaction = yield poolContract.populateTransaction[exchangeSignature](...exchangeParams, { + value, + }); + return { + currencyAmountIn, + populatedTransaction, + currencyOut, + estimatedAmountOut: currency_1.Currency.isNative(currencyOut) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(estimatedAmountOut.toBigInt(), chainId) + : new tokenAmount_1.TokenAmount(wrappedtokenOut, estimatedAmountOut.toBigInt()), + maximumSlippage, + fee, + to: poolContract.address, + exchangeRateWithoutFee, + exchangeRate, + contract: poolContract, + }; + } + // Check if the two pairs are of different type + // When the pair types are different, there is + // a potential that Curve Smart Router can handle the trade + const isCryptoSwap = tokenIn.type !== tokenOut.type; + const factoryPoolsMemoized = (0, memoizee_1.default)(utils_3.fetchCurveFactoryPools); + const factoryPools = yield factoryPoolsMemoized(chainId); + const allPools = curvePools.concat(factoryPools); + // Find all pools that the trade can go through from both factory and regular pools + let routablePools = yield (0, utils_3.getRoutablePools)(allPools, tokenIn, tokenOut, chainId); + // On mainnet, use the exchange info to get the best pool + const bestPoolAndOutputRes = chainId === constants_2.ChainId.MAINNET + ? yield (0, contracts_2.getBestCurvePoolAndOutput)({ + amountIn: amountInBN, + tokenInAddress: tokenIn.address, + tokenOutAddress: tokenOut.address, + chainId, + }) + : undefined; + // If a pool is found + // Ignore the manual off-chain search + if (bestPoolAndOutputRes) { + debugCurveGetQuote(`Found best pool from Curve registry`, bestPoolAndOutputRes); + const bestPool = routablePools.filter((pool) => pool.address.toLowerCase() === bestPoolAndOutputRes.poolAddress.toLowerCase()); + if (bestPool.length !== 0) + routablePools = bestPool; + } + debugCurveGetQuote('Routeable pools: ', routablePools); + // Start finding a possible pool + // First via Curve's internal best pool finder + // On Mainnet, try to find a route via Curve's Smart Router + if (isCryptoSwap && chainId === constants_2.ChainId.MAINNET) { + const exchangeRoutingInfo = yield (0, contracts_2.getExchangeRoutingInfo)({ + amountIn: amountInBN.toString(), + chainId: constants_2.ChainId.MAINNET, + tokenInAddress: tokenIn.address, + tokenOutAddress: tokenOut.address, + }); + // If the swap can be handled by the smart router, use it + if (exchangeRoutingInfo) { + const params = [ + amountInBN.toString(), + exchangeRoutingInfo.routes, + exchangeRoutingInfo.indices, + exchangeRoutingInfo.expectedAmountOut.mul(98).div(100).toString(), + ]; + const curveRouterContract = (0, contracts_2.getRouter)(); + debugCurveGetQuote(`Found a route via Smart Router at ${curveRouterContract.address}`, params); + const populatedTransaction = yield curveRouterContract.populateTransaction.exchange(...params, { + value, + }); + // Add 30% gas buffer + populatedTransaction.gasLimit = (_g = populatedTransaction.gasLimit) === null || _g === void 0 ? void 0 : _g.mul(130).div(100); + return { + fee, + estimatedAmountOut: new tokenAmount_1.TokenAmount(currencyOut, exchangeRoutingInfo.expectedAmountOut.toBigInt()), + currencyAmountIn, + currencyOut, + maximumSlippage, + populatedTransaction, + to: curveRouterContract.address, + exchangeRateWithoutFee, + exchangeRate, + contract: curveRouterContract, + }; + } + } + // Continue using pool-by-pool cases + // Exit since no pools have been found + if (routablePools.length === 0) { + console.error('CurveTrade: no pools found for trade pair'); + return; + } + // The final step + // Compile all the output + // Using Multicall contract + const quoteFromPoolList = yield Promise.all(routablePools.map((pool) => tslib_1.__awaiter(this, void 0, void 0, function* () { + const poolContract = new contracts_1.Contract(pool.address, pool.abi, provider); + // Map token address to index + const tokenInIndex = (0, utils_3.getTokenIndex)(pool, tokenIn.address); + const tokenOutIndex = (0, utils_3.getTokenIndex)(pool, tokenOut.address); + // Skip pool that return -1 + if (tokenInIndex < 0 || tokenOutIndex < 0) { + console.error(`Curve: pool does not have one of tokens: ${tokenIn.symbol}, ${tokenOut.symbol}`); + } + // Get expected output from the pool + // Use underylying signature if the pool is a meta pool + // A meta pool is a pool composed of an ERC20 pair with the Curve base 3Pool (DAI+USDC+USDT) + const dyMethodSignature = pool.isMeta ? 'get_dy_underlying' : 'get_dy'; + // Construct the params + const dyMethodParams = [tokenInIndex.toString(), tokenOutIndex.toString(), currencyAmountIn.raw.toString()]; + debugCurveGetQuote(`Fetching estimated output from ${pool.address}`, { + dyMethodSignature, + dyMethodParams, + }); + try { + const estimatedAmountOut = (yield poolContract[dyMethodSignature](...dyMethodParams)); + // Return the call bytes + return { + pool, + estimatedAmountOut, + poolContract, + }; + } + catch (error) { + console.error(`CurveTrade error: failed to fetch estimated out from `, { + address: pool.address, + dyMethodSignature, + dyMethodParams, + error, + }); + return { + pool, + estimatedAmountOut: bignumber_1.BigNumber.from(0), + poolContract, + error, + }; + } + }))); + // Sort the pool by best output + const estimatedAmountOutPerPoolSorted = quoteFromPoolList + .filter((pool) => { + return pool.estimatedAmountOut.gt(0) && pool.error == undefined; + }) + .sort((poolA, poolB) => poolA.estimatedAmountOut.gt(poolB.estimatedAmountOut) + ? -1 + : poolA.estimatedAmountOut.eq(poolB.estimatedAmountOut) + ? 0 + : 1); + if (estimatedAmountOutPerPoolSorted.length === 0) { + throw new Error('CurveTrade: zero pools returned an quote'); + } + // Select the best (first) pool + // among the sorted pools + const { pool, estimatedAmountOut, poolContract } = estimatedAmountOutPerPoolSorted[0]; + // Try to fetch the fee from the contract the newest + // If the call fails, the fee defaults back to 4bps + try { + const feeFromContract = (yield poolContract.fee()); + fee = new percent_1.Percent(feeFromContract.toString(), '10000000000'); + } + catch (e) { + (0, debug_1.default)(e); + } + // Map token address to index + const tokenInIndex = (0, utils_3.getTokenIndex)(pool, tokenIn.address, chainId); + const tokenOutIndex = (0, utils_3.getTokenIndex)(pool, tokenOut.address, chainId); + // Construct the unsigned transaction + // Default method signature and params + // This is the most optimistic + let exchangeSignature = Object.keys(poolContract.functions).find((signature) => { + return signature.startsWith('exchange('); + }) || 'exchange'; + // If the pool has meta coins + // Exit to avoid issues + if (pool.isMeta || (pool === null || pool === void 0 ? void 0 : pool.underlyingTokens)) { + // Try uint256 + exchangeSignature = 'exchange_underlying(uint256,uint256,uint256,uint256)'; + if (!(exchangeSignature in poolContract.functions)) { + exchangeSignature = 'exchange_underlying(int128,int128,uint256,uint256)'; + if (!(exchangeSignature in poolContract.functions)) { + // Exit the search + console.error(`CurveTrade: could not find a signature. Target: ${exchangeSignature}`); + return; + } + } + } + // Reduce by 0.1% to cover fees + const dyMinimumReceived = estimatedAmountOut.mul(9999).div(10000); + const exchangeParams = [ + tokenInIndex.toString(), + tokenOutIndex.toString(), + amountInBN.toString(), + dyMinimumReceived.toString(), + ]; + // Some pools allow trading ETH + // Use the correct method signature for swaps that involve ETH + if (pool.allowsTradingETH) { + exchangeSignature = 'exchange(uint256,uint256,uint256,uint256,bool)'; + if (!(exchangeSignature in poolContract.functions) || + !poolContract.interface.getFunction(exchangeSignature).payable) { + // Exit the search + console.error(`CurveTrade: could not find a signature. Target: ${exchangeSignature}`); + return; + } + // Native currency ETH parameter: eth_in + exchangeParams.push(isNativeAssetIn); + } + debugCurveGetQuote('Final pool', { + address: poolContract.address, + exchangeSignature, + exchangeParams, + }); + const populatedTransaction = yield poolContract.populateTransaction[exchangeSignature](...exchangeParams, { + value, + }); + return { + currencyAmountIn, + populatedTransaction, + currencyOut, + estimatedAmountOut: currency_1.Currency.isNative(currencyOut) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(estimatedAmountOut.toBigInt(), chainId) + : new tokenAmount_1.TokenAmount(wrappedtokenOut, estimatedAmountOut.toBigInt()), + maximumSlippage, + fee, + to: poolContract.address, + exchangeRateWithoutFee, + exchangeRate, + contract: poolContract, + }; + }); + } + /** + * Computes and returns the best trade from Curve pools + * by comparing all the Curve pools on target chain + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Try to extract the chain ID from the tokens + const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); + // Require the chain ID + (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId), 'CHAIN_ID'); + try { + const quote = yield CurveTrade.getQuote({ + currencyAmountIn, + currencyOut, + maximumSlippage, + receiver, + }, provider); + if (quote) { + const { currencyAmountIn, estimatedAmountOut, fee, maximumSlippage, populatedTransaction, to, contract } = quote; + // Return the CurveTrade + return new CurveTrade({ + fee, + maximumSlippage, + tradeType: constants_2.TradeType.EXACT_INPUT, + chainId, + transactionRequest: populatedTransaction, + inputAmount: currencyAmountIn, + outputAmount: estimatedAmountOut, + approveAddress: to, + contract, + }); + } + } + catch (error) { + console.error('could not fetch Curve trade', error); + } + return; + }); + } + /** + * Computes and returns the best trade from Curve pools using output as target. + * Avoid usig this method. It uses some optimistic math estimate right input. + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountOut the amount of curreny in - buy token + * @param {Currency} obj.currencyIn the currency in - sell token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Provider} provider an optional provider, the router defaults public providers + * @returns the best trade if found + */ + static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Try to extract the chain ID from the tokens + const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); + // Require the chain ID + (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId), 'CHAIN_ID'); + try { + // Get quote for original amounts in + const baseQuote = (yield CurveTrade.getQuote({ + currencyAmountIn: currencyAmountOut, + currencyOut: currencyIn, + maximumSlippage, + receiver, + }, provider)); + const currencyOut = currencyAmountOut.currency; + const rawInputToOutputExchangeRate = new decimal_js_light_1.default(baseQuote.exchangeRate).pow(-currencyOut.decimals); + const outputToInputExchangeRate = new decimal_js_light_1.default(rawInputToOutputExchangeRate).pow(-1); + const amountOut = new decimal_js_light_1.default(currencyAmountOut.toFixed(currencyOut.decimals)); + const estimatedAmountIn = amountOut.times(outputToInputExchangeRate).dividedBy('0.9996'); + const currencyAmountIn = new tokenAmount_1.TokenAmount(currencyIn, (0, units_1.parseUnits)(estimatedAmountIn.toFixed(currencyIn.decimals), currencyIn.decimals).toString()); + const quote = yield CurveTrade.getQuote({ + currencyAmountIn, + currencyOut, + maximumSlippage, + receiver, + }, provider); + if (quote) { + const { currencyAmountIn, estimatedAmountOut, fee, maximumSlippage, populatedTransaction, to, contract } = quote; + // Return the CurveTrade + return new CurveTrade({ + fee, + maximumSlippage, + tradeType: constants_2.TradeType.EXACT_OUTPUT, + chainId, + transactionRequest: populatedTransaction, + inputAmount: currencyAmountIn, + outputAmount: estimatedAmountOut, + approveAddress: to, + contract, + }); + } + } + catch (error) { + console.error('could not fetch Curve trade', error); + } + return; + }); + } + /** + * Returns unsigned transaction for the trade + * @param options options + * @returns the unsigned transaction + */ + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + debugCurve({ options }); + return Object.assign(Object.assign({}, this.transactionRequest), { gasLimit: this.transactionRequest.gasLimit ? bignumber_1.BigNumber.from(this.transactionRequest.gasLimit) : undefined, value: this.transactionRequest.value ? this.transactionRequest.value : bignumber_1.BigNumber.from(0) }); + }); + } +} +exports.CurveTrade = CurveTrade; +//# sourceMappingURL=CurveTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/CurveTrade.js.map b/dist/entities/trades/curve/CurveTrade.js.map new file mode 100644 index 00000000..9fae675a --- /dev/null +++ b/dist/entities/trades/curve/CurveTrade.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CurveTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/CurveTrade.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AACpD,wDAAsD;AACtD,wDAAmD;AAGnD,gDAAiD;AACjD,0DAAyB;AACzB,gFAAsC;AACtC,gEAA8B;AAC9B,4EAAsC;AAEtC,kDAA4D;AAC5D,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AACnD,qDAAiD;AACjD,iDAA6C;AAC7C,6DAAyD;AACzD,uCAAmD;AACnD,+CAA2C;AAE3C,4DAAuD;AACvD,oCAAyD;AACzD,oCAAsC;AACtC,gBAAgB;AAChB,2CAAuH;AACvH,mCAAqC;AASrC,mCAAgG;AAShG,wDAAwD;AACxD,MAAM,UAAU,GAAG,IAAA,eAAK,EAAC,iBAAiB,CAAC,CAAA;AAC3C,MAAM,kBAAkB,GAAG,IAAA,eAAK,EAAC,0BAA0B,CAAC,CAAA;AAE5D;;;GAGG;AACH,MAAa,UAAW,SAAQ,aAAK;IAUnC;;;;;;;;;;OAUG;IACH,YAAmB,EACjB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,GAAG,EACH,QAAQ,GACoB;QAC5B,IAAA,wBAAS,EAAC,CAAC,IAAA,sBAAc,EAAC,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAA;QACrF,KAAK,CAAC;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW;YACX,YAAY;YACZ,cAAc,EAAE,IAAI,aAAK,CAAC;gBACxB,YAAY,EAAE,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AG,EAAE,eAAe,EAAE,oBAAoB,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;oBAChH,wBAAwB;oBACxB,OAAO,IAAI,UAAU,CAAC;wBACpB,GAAG;wBACH,eAAe;wBACf,SAAS,EAAE,qBAAS,CAAC,YAAY;wBACjC,OAAO;wBACP,kBAAkB,EAAE,oBAAoB;wBACxC,WAAW,EAAE,gBAAgB;wBAC7B,YAAY,EAAE,kBAAkB;wBAChC,cAAc,EAAE,EAAE;wBAClB,QAAQ;qBACT,CAAC,CAAA;iBACH;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAA;aACpD;YAED,OAAM;QACR,CAAC;KAAA;IAED;;;;OAIG;IACU,eAAe,CAAC,OAAsB;;YACjD,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;YACvB,uCACK,IAAI,CAAC,kBAAkB,KAC1B,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EACzG,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IACzF;QACH,CAAC;KAAA;CACF;AAhmBD,gCAgmBC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/abi.d.ts b/dist/entities/trades/curve/abi/abi.d.ts new file mode 100644 index 00000000..26d25f6e --- /dev/null +++ b/dist/entities/trades/curve/abi/abi.d.ts @@ -0,0 +1,30 @@ +import { ContractInterface } from '@ethersproject/contracts'; +export declare const CURVE_3POOL_ABI: ContractInterface; +export declare const CURVE_3POOL_UNDERLYING_ABI: ContractInterface; +export declare const CURVE_EURSPOOL_ABI: ContractInterface; +export declare const CURVE_CRYPTO_SWAP_ABI: { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; +}[]; +export declare const CURVE_WETH_ERC20_POOL_ABI: ContractInterface; +export declare const CURVE_ETHXERC20_ABI: ContractInterface; +export declare const CURVE_TRICRYPTO_ABI: ContractInterface; +export declare const CURVE_ETHXERC20_256_ABI: ContractInterface; +export declare const CURVE_METAUSD_ABI: ContractInterface; +export declare const CURVE_PLAIN_ABI: ContractInterface; +export declare const CURVE_PLAIN_ETH_ABI: ContractInterface; +export declare const CURVE_METABTC_ABI: ContractInterface; +export declare const CURVE_POOL_ABI_MAP: Record; +/** + * A custom contract to trade on the Curve between xDAI (native token on Gnosis Chain) and USDT and USDC + */ +export declare const CURVE_DAI_EXCHANGE_ABI: ContractInterface; diff --git a/dist/entities/trades/curve/abi/abi.js b/dist/entities/trades/curve/abi/abi.js new file mode 100644 index 00000000..b5fa3d9a --- /dev/null +++ b/dist/entities/trades/curve/abi/abi.js @@ -0,0 +1,375 @@ +"use strict"; +// ABIs +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CURVE_DAI_EXCHANGE_ABI = exports.CURVE_POOL_ABI_MAP = exports.CURVE_METABTC_ABI = exports.CURVE_PLAIN_ETH_ABI = exports.CURVE_PLAIN_ABI = exports.CURVE_METAUSD_ABI = exports.CURVE_ETHXERC20_256_ABI = exports.CURVE_TRICRYPTO_ABI = exports.CURVE_ETHXERC20_ABI = exports.CURVE_WETH_ERC20_POOL_ABI = exports.CURVE_CRYPTO_SWAP_ABI = exports.CURVE_EURSPOOL_ABI = exports.CURVE_3POOL_UNDERLYING_ABI = exports.CURVE_3POOL_ABI = void 0; +const common_1 = require("./common"); +// 3pool ABI which has USDC, USDT and WXDAI +exports.CURVE_3POOL_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], +]; +// 3pool ABI which has USDC, USDT and WXDAI +exports.CURVE_3POOL_UNDERLYING_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], +]; +// 3pool ABI which has USDC, USDT and WXDAI +exports.CURVE_EURSPOOL_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], +]; +exports.CURVE_CRYPTO_SWAP_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy_underlying(uint256,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], +]; +exports.CURVE_WETH_ERC20_POOL_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool,address)'], + common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], +]; +exports.CURVE_ETHXERC20_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256)'], +]; +exports.CURVE_TRICRYPTO_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], +]; +exports.CURVE_ETHXERC20_256_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], + common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], +]; +exports.CURVE_METAUSD_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy_underlying(int128,int128,uint256)'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256,address)'], +]; +exports.CURVE_PLAIN_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], +]; +exports.CURVE_PLAIN_ETH_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256,address)'], +]; +exports.CURVE_METABTC_ABI = [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], + common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256,address)'], +]; +exports.CURVE_POOL_ABI_MAP = { + ['metabtc']: exports.CURVE_METABTC_ABI, + ['metabtcbalances']: exports.CURVE_METABTC_ABI, + ['metausd']: exports.CURVE_METAUSD_ABI, + ['v1metausd']: exports.CURVE_METAUSD_ABI, + ['metausd-fraxusdc']: exports.CURVE_METAUSD_ABI, + ['metausdbalances']: exports.CURVE_METAUSD_ABI, + ['plain2balances']: exports.CURVE_PLAIN_ABI, + ['plain2basic']: exports.CURVE_PLAIN_ABI, + ['plain2eth']: exports.CURVE_PLAIN_ETH_ABI, + ['plain2optimized']: exports.CURVE_PLAIN_ABI, + ['plain3balances']: exports.CURVE_PLAIN_ABI, + ['plain3basic']: exports.CURVE_PLAIN_ABI, + ['plain3eth']: exports.CURVE_PLAIN_ETH_ABI, + ['plain3optimized']: exports.CURVE_PLAIN_ABI, + ['plain4balances']: exports.CURVE_PLAIN_ABI, + ['plain4basic']: exports.CURVE_PLAIN_ABI, + ['plain4eth']: exports.CURVE_PLAIN_ETH_ABI, + ['plain4optimized']: exports.CURVE_PLAIN_ABI, +}; +/** + * A custom contract to trade on the Curve between xDAI (native token on Gnosis Chain) and USDT and USDC + */ +exports.CURVE_DAI_EXCHANGE_ABI = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'AlreadyInitialized', + type: 'error', + }, + { + inputs: [], + name: 'FailedToTransferFromWXDAI', + type: 'error', + }, + { + inputs: [], + name: 'Initialization', + type: 'error', + }, + { + inputs: [], + name: 'NotWXDAIContract', + type: 'error', + }, + { + inputs: [], + name: 'Transfer', + type: 'error', + }, + { + anonymous: false, + inputs: [], + name: 'Initialized', + type: 'event', + }, + { + inputs: [], + name: 'USDC', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'USDT', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'WXDAI', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_tokenIn', + type: 'address', + }, + { + internalType: 'uint256', + name: '_amountIn', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '_minimumAmountOut', + type: 'uint256', + }, + { + internalType: 'address', + name: '_receiver', + type: 'address', + }, + ], + name: 'exchangeExactERC20ForNativeToken', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_tokenOut', + type: 'address', + }, + { + internalType: 'uint256', + name: '_minimumAmountOut', + type: 'uint256', + }, + { + internalType: 'address', + name: '_receiver', + type: 'address', + }, + ], + name: 'exchangeExactNativeTokenForERC20', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: '_tokenOut', + type: 'address', + }, + { + internalType: 'uint256', + name: '_amountIn', + type: 'uint256', + }, + ], + name: 'getEstimatedAmountOut', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getFee', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int128', + name: '', + type: 'int128', + }, + ], + name: 'getTokenAddress', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + name: 'getTokenIndex', + outputs: [ + { + internalType: 'int128', + name: '', + type: 'int128', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'initialize', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'initialized', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'pool3crv', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +]; +//# sourceMappingURL=abi.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/abi.js.map b/dist/entities/trades/curve/abi/abi.js.map new file mode 100644 index 00000000..df206562 --- /dev/null +++ b/dist/entities/trades/curve/abi/abi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/abi.ts"],"names":[],"mappings":";AAAA,OAAO;;;AAIP,qCAAsC;AAEtC,2CAA2C;AAC9B,QAAA,eAAe,GAAsB;IAChD,oBAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC;IAC1B,oBAAW,CAAC,MAAM,CAAC,CAAC,+BAA+B,CAAC;IACpD,oBAAW,CAAC,YAAY,CAAC,CAAC,yCAAyC,CAAC;IACpE,oBAAW,CAAC,YAAY,CAAC,CAAC,oDAAoD,CAAC;IAC/E,oBAAW,CAAC,YAAY,CAAC,CAAC,8DAA8D,CAAC;CAC1F,CAAA;AAED,2CAA2C;AAC9B,QAAA,0BAA0B,GAAsB;IAC3D,oBAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC;IAC1B,oBAAW,CAAC,MAAM,CAAC,CAAC,+BAA+B,CAAC;IACpD,oBAAW,CAAC,YAAY,CAAC,CAAC,yCAAyC,CAAC;IACpE,oBAAW,CAAC,YAAY,CAAC,CAAC,oD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E,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/common.d.ts b/dist/entities/trades/curve/abi/common.d.ts new file mode 100644 index 00000000..d79071b7 --- /dev/null +++ b/dist/entities/trades/curve/abi/common.d.ts @@ -0,0 +1,296 @@ +export declare const poolMethodsSignatures: { + 'fee()': string; + 'get_dy(uint256,uint256,uint256)': string; + 'exchange(uint256,uint256,uint256,uint256)': string; +}; +export declare const poolMethods: { + view: { + fee: { + stateMutability: string; + type: string; + name: string; + outputs: { + type: string; + name: string; + }[]; + inputs: never[]; + }; + coins: { + stateMutability: string; + type: string; + name: string; + outputs: { + type: string; + name: string; + }[]; + inputs: { + type: string; + name: string; + }[]; + }; + underlying_coins: { + stateMutability: string; + type: string; + name: string; + outputs: { + type: string; + name: string; + }[]; + inputs: { + type: string; + name: string; + }[]; + }; + 'get_dy(uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + 'get_dy(int128,int128,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + 'get_dy_underlying(int128,int128,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + 'get_dy_underlying(uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + }; + nonpayable: { + 'exchange(int128,int128,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + gas: string; + }; + 'exchange(uint256,uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + /** + * Exchange methods + */ + 'exchange(int128,int128,int256,int256,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + gas: string; + }; + 'exchange_underlying(uint256,uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + gas: string; + }; + 'exchange_underlying(int128,int128,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + gas: string; + }; + 'exchange_underlying(int128,int128,uint256,uint256,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + }; + }; + payable: { + 'exchange(int128,int128,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + type: string; + name: string; + }[]; + gas: string; + }; + 'exchange(int128,int128,uint256,uint256,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + name: string; + type: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + }; + 'exchange(uint256,uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + gas: string; + }; + 'exchange(uint256,uint256,uint256,uint256,bool)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + gas: string; + }; + 'exchange(uint256,uint256,uint256,uint256,bool,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + gas: string; + }; + 'exchange_underlying(uint256,uint256,uint256,uint256)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + gas: string; + }; + 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { + stateMutability: string; + type: string; + name: string; + inputs: { + type: string; + name: string; + }[]; + outputs: { + name: string; + type: string; + }[]; + gas: string; + }; + }; +}; diff --git a/dist/entities/trades/curve/abi/common.js b/dist/entities/trades/curve/abi/common.js new file mode 100644 index 00000000..2d69d3e6 --- /dev/null +++ b/dist/entities/trades/curve/abi/common.js @@ -0,0 +1,273 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.poolMethods = exports.poolMethodsSignatures = void 0; +exports.poolMethodsSignatures = { + 'fee()': 'fee()', + 'get_dy(uint256,uint256,uint256)': 'get_dy(uint256,uint256,uint256)', + 'exchange(uint256,uint256,uint256,uint256)': 'exchange(uint256,uint256,uint256,uint256)', +}; +exports.poolMethods = { + view: { + fee: { + stateMutability: 'view', + type: 'function', + name: 'fee', + outputs: [{ type: 'uint256', name: '' }], + inputs: [], + }, + coins: { + stateMutability: 'view', + type: 'function', + name: 'coins', + outputs: [{ type: 'address', name: '' }], + inputs: [{ type: 'int128', name: '_coin' }], + }, + underlying_coins: { + stateMutability: 'view', + type: 'function', + name: 'underlying_coins', + outputs: [{ type: 'address', name: '' }], + inputs: [{ type: 'int128', name: '_coin' }], + }, + 'get_dy(uint256,uint256,uint256)': { + stateMutability: 'view', + type: 'function', + name: 'get_dy', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + ], + outputs: [{ type: 'uint256', name: '' }], + }, + 'get_dy(int128,int128,uint256)': { + stateMutability: 'view', + type: 'function', + name: 'get_dy', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: 'dx' }, + ], + outputs: [{ type: 'uint256', name: '' }], + }, + 'get_dy_underlying(int128,int128,uint256)': { + stateMutability: 'view', + type: 'function', + name: 'get_dy_underlying', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: 'dx' }, + ], + outputs: [{ type: 'uint256', name: '' }], + }, + 'get_dy_underlying(uint256,uint256,uint256)': { + stateMutability: 'view', + type: 'function', + name: 'get_dy_underlying', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: '_dx' }, + ], + outputs: [{ type: 'uint256', name: '' }], + }, + }, + nonpayable: { + 'exchange(int128,int128,uint256,uint256)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: '_dx' }, + { type: 'uint256', name: '_min_dy' }, + ], + outputs: [{ type: 'uint256', name: '' }], + gas: '5499133', + }, + 'exchange(uint256,uint256,uint256,uint256)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: '_dx' }, + { type: 'uint256', name: '_min_dy' }, + ], + outputs: [{ type: 'uint256', name: '' }], + }, + /** + * Exchange methods + */ + 'exchange(int128,int128,int256,int256,address)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'int256', name: '_dx' }, + { type: 'uint256', name: '_min_dy' }, + { type: 'address', name: '_receiver' }, + ], + outputs: [{ type: 'uint256', name: '' }], + // there was no gas in the in the metaUSD ABI + }, + 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: '_dx' }, + { type: 'uint256', name: '_min_dy' }, + { type: 'address', name: '_receiver' }, + ], + outputs: [{ type: 'uint256', name: '' }], + gas: '900000', + }, + 'exchange_underlying(uint256,uint256,uint256,uint256)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: '_dx' }, + { type: 'uint256', name: '_min_dy' }, + ], + outputs: [{ type: 'uint256', name: '' }], + gas: '57522', + }, + 'exchange_underlying(int128,int128,uint256,uint256)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + ], + outputs: [{ type: 'uint256', name: '' }], + gas: '6125699', + }, + 'exchange_underlying(int128,int128,uint256,uint256,address)': { + stateMutability: 'nonpayable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + { type: 'address', name: '_receiver' }, + ], + outputs: [{ type: 'uint256', name: '' }], + // there was no gas in the metaUSD ABI + }, + }, + payable: { + 'exchange(int128,int128,uint256,uint256)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'int128', name: 'i' }, + { type: 'int128', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + ], + outputs: [{ type: 'uint256', name: '' }], + gas: '2810134', + }, + 'exchange(int128,int128,uint256,uint256,address)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { name: 'i', type: 'int128' }, + { name: 'j', type: 'int128' }, + { name: '_dx', type: 'uint256' }, + { name: '_min_dy', type: 'uint256' }, + { name: '_receiver', type: 'address' }, + ], + outputs: [{ name: '', type: 'uint256' }], + }, + 'exchange(uint256,uint256,uint256,uint256)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + ], + outputs: [{ name: '', type: 'uint256' }], + gas: '16775598', + }, + 'exchange(uint256,uint256,uint256,uint256,bool)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + { type: 'bool', name: 'use_eth' }, + ], + outputs: [{ name: '', type: 'uint256' }], + gas: '16775598', + }, + 'exchange(uint256,uint256,uint256,uint256,bool,address)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + { type: 'bool', name: 'use_eth' }, + { type: 'address', name: 'receiver' }, + ], + outputs: [{ name: '', type: 'uint256' }], + gas: '16775598', + }, + 'exchange_underlying(uint256,uint256,uint256,uint256)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + ], + outputs: [{ name: '', type: 'uint256' }], + gas: '16775396', + }, + 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { + stateMutability: 'payable', + type: 'function', + name: 'exchange_underlying', + inputs: [ + { type: 'uint256', name: 'i' }, + { type: 'uint256', name: 'j' }, + { type: 'uint256', name: 'dx' }, + { type: 'uint256', name: 'min_dy' }, + { type: 'address', name: 'receiver' }, + ], + outputs: [{ name: '', type: 'uint256' }], + gas: '16775396', + }, + }, +}; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/common.js.map b/dist/entities/trades/curve/abi/common.js.map new file mode 100644 index 00000000..68b1da92 --- /dev/null +++ b/dist/entities/trades/curve/abi/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/common.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,OAAO;IAChB,iCAAiC,EAAE,iCAAiC;IACpE,2CAA2C,EAAE,2CAA2C;CACzF,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE;QACJ,GAAG,EAAE;YACH,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACxC,MAAM,EAAE,EAAE;SACX;QACD,KAAK,EAAE;YACL,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACxC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC5C;QACD,gBAAgB,EAAE;YAChB,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,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,EAAE,IAAI,EAAE,IAAI,EAAE;gBAC/B,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE;aACtC;YACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;YACxC,GAAG,EAAE,UAAU;SAChB;KACF;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/index.d.ts b/dist/entities/trades/curve/abi/index.d.ts new file mode 100644 index 00000000..dc68ac0f --- /dev/null +++ b/dist/entities/trades/curve/abi/index.d.ts @@ -0,0 +1,5 @@ +import type { ContractInterface } from '@ethersproject/contracts'; +export * from './abi'; +export declare const CURVE_ROUTER: ContractInterface; +export declare const REGISTRY_EXCHANGE: ContractInterface; +export declare const ADDRESS_PROVIDER: ContractInterface; diff --git a/dist/entities/trades/curve/abi/index.js b/dist/entities/trades/curve/abi/index.js new file mode 100644 index 00000000..b5c76e21 --- /dev/null +++ b/dist/entities/trades/curve/abi/index.js @@ -0,0 +1,97 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ADDRESS_PROVIDER = exports.REGISTRY_EXCHANGE = exports.CURVE_ROUTER = void 0; +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./abi"), exports); +exports.CURVE_ROUTER = [ + { + stateMutability: 'payable', + type: 'function', + name: 'exchange', + inputs: [ + { type: 'uint256', name: '_amount' }, + { type: 'address[6]', name: '_route' }, + { type: 'uint256[8]', name: '_indices' }, + { type: 'uint256', name: '_min_received' }, + ], + outputs: [], + gas: '4577395', + }, + { + stateMutability: 'view', + type: 'function', + name: 'get_exchange_routing', + inputs: [ + { type: 'address', name: '_initial' }, + { type: 'address', name: '_target' }, + { type: 'uint256', name: '_amount' }, + ], + outputs: [ + { type: 'address[6]', name: '' }, + { type: 'uint256[8]', name: '' }, + { type: 'uint256', name: '' }, + ], + }, + { + stateMutability: 'view', + type: 'function', + name: 'can_route', + inputs: [ + { type: 'address', name: '_initial' }, + { type: 'address', name: '_target' }, + ], + outputs: [{ name: '', type: 'bool' }], + gas: '26664', + }, + { + stateMutability: 'view', + type: 'function', + name: 'crypto_coins', + inputs: [{ type: 'uint256', name: 'arg0' }], + outputs: [{ type: 'address', name: '' }], + gas: '2763', + }, +]; +exports.REGISTRY_EXCHANGE = [ + { + stateMutability: 'view', + type: 'function', + name: 'get_best_rate', + inputs: [ + { + name: '_from', + type: 'address', + }, + { + name: '_to', + type: 'address', + }, + { + name: '_amount', + type: 'uint256', + }, + ], + outputs: [ + { + name: '', + type: 'address', + }, + { + name: '', + type: 'uint256', + }, + ], + gas: '395840312', + }, +]; +exports.ADDRESS_PROVIDER = [ + { + name: 'get_address', + outputs: [{ type: 'address', name: '' }], + inputs: [{ type: 'uint256', name: '_id' }], + stateMutability: 'view', + type: 'function', + gas: '1308', + }, +]; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/index.js.map b/dist/entities/trades/curve/abi/index.js.map new file mode 100644 index 00000000..85f31c48 --- /dev/null +++ b/dist/entities/trades/curve/abi/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/index.ts"],"names":[],"mappings":";;;;AACA,gDAAqB;AAER,QAAA,YAAY,GAAsB;IAC7C;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE;YACxC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE;SAC3C;Q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UAAU;QAChB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,GAAG,EAAE,WAAW;KACjB;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAsB;IACjD;QACE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC1C,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,MAAM;KACZ;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/contracts.d.ts b/dist/entities/trades/curve/contracts/contracts.d.ts new file mode 100644 index 00000000..af1d1039 --- /dev/null +++ b/dist/entities/trades/curve/contracts/contracts.d.ts @@ -0,0 +1,27 @@ +import { Contract } from '@ethersproject/contracts'; +import { GetBestPoolAndOutputParams, GetBestPoolAndOutputResult, GetExchangeRoutingInfoParams, GetExchangeRoutingInfoResults } from './types'; +export declare const MAINNET_CONTRACTS: { + readonly addressProvider: "0x0000000022d53366457f9d5e68ec105046fc4383"; + readonly router: "0xfA9a30350048B2BF66865ee20363067c66f67e58"; +}; +/** + * Returns the best pool to route a trade through using Curve Registry Exchange contract. + * The contract is only available on Mainnet. + * @returns the best pool to route the trade through and expected receive amount + */ +export declare function getBestCurvePoolAndOutput({ amountIn, tokenInAddress, tokenOutAddress, chainId, }: GetBestPoolAndOutputParams): Promise; +/** + * Returns Curve's Smart Router contract instance + */ +export declare function getRouter(): Contract; +/** + * Returns routing information from the Curve Smart Router. The router is only available on Mainnet. + * The contract calls reverts if there no route is found + * @returns the routing information + */ +export declare function getExchangeRoutingInfo({ amountIn, tokenInAddress, tokenOutAddress, }: GetExchangeRoutingInfoParams): Promise; +/** + * @description Returns an instance of the Curve DAI Exchange contract. This contract is only available on Gnosis Chain. + * @returns the DAI Exchange contract instance + */ +export declare function getCurveDAIExchangeContract(): Contract; diff --git a/dist/entities/trades/curve/contracts/contracts.js b/dist/entities/trades/curve/contracts/contracts.js new file mode 100644 index 00000000..1851d55d --- /dev/null +++ b/dist/entities/trades/curve/contracts/contracts.js @@ -0,0 +1,98 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCurveDAIExchangeContract = exports.getExchangeRoutingInfo = exports.getRouter = exports.getBestCurvePoolAndOutput = exports.MAINNET_CONTRACTS = void 0; +const tslib_1 = require("tslib"); +const constants_1 = require("@ethersproject/constants"); +const contracts_1 = require("@ethersproject/contracts"); +const constants_2 = require("../../../../constants"); +const utils_1 = require("../../utils"); +// ABIs: trimmed for bundle size +const abi_1 = require("../abi"); +const tokens_1 = require("../tokens"); +// Constants +exports.MAINNET_CONTRACTS = { + addressProvider: '0x0000000022d53366457f9d5e68ec105046fc4383', + router: '0xfA9a30350048B2BF66865ee20363067c66f67e58', +}; +/** + * Returns the best pool to route a trade through using Curve Registry Exchange contract. + * The contract is only available on Mainnet. + * @returns the best pool to route the trade through and expected receive amount + */ +function getBestCurvePoolAndOutput({ amountIn, tokenInAddress, tokenOutAddress, chainId, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (chainId !== constants_2.ChainId.MAINNET) { + throw new Error('Best Pool Find is only available on Mainnet'); + } + const addressProviderContract = new contracts_1.Contract(exports.MAINNET_CONTRACTS.addressProvider, abi_1.ADDRESS_PROVIDER, (0, utils_1.getProvider)(chainId)); + // Curve V2 pools + const tricryptoCoins = [ + tokens_1.TOKENS_MAINNET.usdt.address.toLowerCase(), + tokens_1.TOKENS_MAINNET.wbtc.address.toLowerCase(), + tokens_1.TOKENS_MAINNET.weth.address.toLowerCase(), + ]; + if (tricryptoCoins.includes(tokenInAddress.toLowerCase()) && tricryptoCoins.includes(tokenOutAddress.toLowerCase())) { + throw new Error("This pair can't be exchanged"); + } + const registryExchangeAddress = yield addressProviderContract.get_address(2, { + gasLimit: 100000, // due to Berlin upgrade. See https://github.com/ethers-io/ethers.js/issues/1474 + }); + const registryExchangeContract = new contracts_1.Contract(registryExchangeAddress, abi_1.REGISTRY_EXCHANGE, (0, utils_1.getProvider)(chainId)); + const [poolAddress, expectedAmountOut] = yield registryExchangeContract.get_best_rate(tokenInAddress, tokenOutAddress, amountIn.toString()); + if (poolAddress === constants_1.AddressZero) { + return; + } + return { + poolAddress, + expectedAmountOut, + registryExchangeAddress, + }; + }); +} +exports.getBestCurvePoolAndOutput = getBestCurvePoolAndOutput; +/** + * Returns Curve's Smart Router contract instance + */ +function getRouter() { + return new contracts_1.Contract(exports.MAINNET_CONTRACTS.router, abi_1.CURVE_ROUTER, (0, utils_1.getProvider)(constants_2.ChainId.MAINNET)); +} +exports.getRouter = getRouter; +/** + * Returns routing information from the Curve Smart Router. The router is only available on Mainnet. + * The contract calls reverts if there no route is found + * @returns the routing information + */ +function getExchangeRoutingInfo({ amountIn, tokenInAddress, tokenOutAddress, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const routerContract = getRouter(); + try { + const params = [tokenInAddress, tokenOutAddress, amountIn.toString()]; + const exchangeRoutingRes = yield routerContract.get_exchange_routing(...params, { + from: constants_1.AddressZero, + }); + const [routes, indices, expectedAmountOut] = exchangeRoutingRes; + return { + expectedAmountOut, + indices, + routes, + }; + } + catch (error) { + // Throw any non-EVM errors + if (!error.message.includes('execution reverted')) { + throw error; + } + } + return; + }); +} +exports.getExchangeRoutingInfo = getExchangeRoutingInfo; +/** + * @description Returns an instance of the Curve DAI Exchange contract. This contract is only available on Gnosis Chain. + * @returns the DAI Exchange contract instance + */ +function getCurveDAIExchangeContract() { + return new contracts_1.Contract('0x9C13176D08C699906fCbb3a6555fb24BD647BF06', abi_1.CURVE_DAI_EXCHANGE_ABI, (0, utils_1.getProvider)(constants_2.ChainId.XDAI)); +} +exports.getCurveDAIExchangeContract = getCurveDAIExchangeContract; +//# sourceMappingURL=contracts.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/contracts.js.map b/dist/entities/trades/curve/contracts/contracts.js.map new file mode 100644 index 00000000..9b8d427d --- /dev/null +++ b/dist/entities/trades/curve/contracts/contracts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/contracts.ts"],"names":[],"mappings":";;;;AAAA,wDAAsD;AACtD,wDAAmD;AAEnD,qDAA+C;AAC/C,uCAAyC;AACzC,gCAAgC;AAChC,gCAKe;AACf,sCAA0C;AAQ1C,YAAY;AACC,QAAA,iBAAiB,GAAG;IAC/B,eAAe,EAAE,4CAA4C;IAC7D,MAAM,EAAE,4CAA4C;CAC5C,CAAA;AAEV;;;;GAIG;AACH,SAAsB,yBAAyB,CAAC,EAC9C,QAAQ,EACR,cAAc,EACd,eAAe,EACf,OAAO,GACoB;;QAC3B,IAAI,OAAO,KAAK,mBAAO,CAAC,OAAO,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;SAC/D;QAED,MAAM,uBAAuB,GAAG,IAAI,oBAAQ,CAC1C,yBAAiB,CAAC,eAAe,EACjC,sBAAoB,EACpB,IAAA,mBAAW,EAAC,OAAO,CAAC,CACrB,CAAA;QAED,iBAAiB;QACjB,MAAM,cAAc,GAAG;YACrB,uBAAc,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YACzC,uBAAc,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;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B,GAAG,MAAM,cAAc,CAAC,oBAAoB,CAAC,GAAG,MAAM,EAAE;gBAC9E,IAAI,EAAE,uBAAW;aAClB,CAAC,CAAA;YAEF,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,GAAG,kBAAkB,CAAA;YAE/D,OAAO;gBACL,iBAAiB;gBACjB,OAAO;gBACP,MAAM;aACP,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,2BAA2B;YAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE;gBACjD,MAAM,KAAK,CAAA;aACZ;SACF;QACD,OAAM;IACR,CAAC;CAAA;AA5BD,wDA4BC;AAED;;;GAGG;AACH,SAAgB,2BAA2B;IACzC,OAAO,IAAI,oBAAQ,CAAC,4CAA4C,EAAE,4BAAsB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AACtH,CAAC;AAFD,kEAEC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/index.d.ts b/dist/entities/trades/curve/contracts/index.d.ts new file mode 100644 index 00000000..c3716014 --- /dev/null +++ b/dist/entities/trades/curve/contracts/index.d.ts @@ -0,0 +1,3 @@ +export * from './contracts'; +export * from './pools'; +export * from './types'; diff --git a/dist/entities/trades/curve/contracts/index.js b/dist/entities/trades/curve/contracts/index.js new file mode 100644 index 00000000..47960515 --- /dev/null +++ b/dist/entities/trades/curve/contracts/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./contracts"), exports); +tslib_1.__exportStar(require("./pools"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/index.js.map b/dist/entities/trades/curve/contracts/index.js.map new file mode 100644 index 00000000..df9f7aaf --- /dev/null +++ b/dist/entities/trades/curve/contracts/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,kDAAuB;AACvB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/pools.d.ts b/dist/entities/trades/curve/contracts/pools.d.ts new file mode 100644 index 00000000..9ed5e727 --- /dev/null +++ b/dist/entities/trades/curve/contracts/pools.d.ts @@ -0,0 +1,22 @@ +import { Provider } from '@ethersproject/providers'; +import { ChainId } from '../../../../constants'; +interface PoolToken { + index: number; + address: string; + isUnderlying?: boolean; +} +interface GetPoolTokenListResults { + allTokens: PoolToken[]; + mainTokens: PoolToken[]; + underlyingTokens: PoolToken[]; +} +interface GetPoolTokenListParams { + poolAddress: string; + chainId: ChainId; + provider?: Provider; +} +/** + * Fetches and returns tokens from given pool address + */ +export declare function getPoolTokenList({ chainId, poolAddress, provider, }: GetPoolTokenListParams): Promise; +export {}; diff --git a/dist/entities/trades/curve/contracts/pools.js b/dist/entities/trades/curve/contracts/pools.js new file mode 100644 index 00000000..607ef6a1 --- /dev/null +++ b/dist/entities/trades/curve/contracts/pools.js @@ -0,0 +1,60 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getPoolTokenList = void 0; +const tslib_1 = require("tslib"); +const contracts_1 = require("@ethersproject/contracts"); +const utils_1 = require("../../utils"); +const common_1 = require("../abi/common"); +const getPoolTokenListCache = new Map(); +/** + * Fetches and returns tokens from given pool address + */ +function getPoolTokenList({ chainId, poolAddress, provider = (0, utils_1.getProvider)(chainId), }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const cacheKey = `${chainId}-${poolAddress}`; + const tokensFromCache = getPoolTokenListCache.get(cacheKey); + if (tokensFromCache) { + return tokensFromCache; + } + // const multicallProvider = new MulticallProvider(provider, chainId) + // // // UniswapV3 multicall contract + // const multicall2Contract = new Contract('0x5ba1e12693dc8f9c48aad8770482f4739beed696', MULTICALL2_ABI, provider) + const poolContract = new contracts_1.Contract(poolAddress, [common_1.poolMethods['view']['coins'], common_1.poolMethods['view']['underlying_coins']], provider); + const indexList = [0, 1, 2, 3]; + const mainTokenResult = yield Promise.all(indexList.map((index) => tslib_1.__awaiter(this, void 0, void 0, function* () { + try { + return { + address: yield poolContract.coins(index), + index, + }; + // eslint-disable-next-line + } + catch (error) { } + return; + }))); + const underlyingTokenResult = yield Promise.all(indexList.map((index) => tslib_1.__awaiter(this, void 0, void 0, function* () { + try { + return { + address: yield poolContract.underlying_coins(index), + isUnderlying: true, + index, + }; + // eslint-disable-next-line + } + catch (error) { } + return; + }))); + const mainTokens = mainTokenResult.filter((token) => token !== undefined); + const underlyingTokens = underlyingTokenResult.filter((token) => token !== undefined); + const allTokens = [...mainTokens, ...underlyingTokens].map((token, index) => (Object.assign(Object.assign({}, token), { index }))); + const cacheContent = { + mainTokens, + underlyingTokens, + allTokens, + }; + cacheContent; + return cacheContent; + }); +} +exports.getPoolTokenList = getPoolTokenList; +//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/pools.js.map b/dist/entities/trades/curve/contracts/pools.js.map new file mode 100644 index 00000000..1a9a1f43 --- /dev/null +++ b/dist/entities/trades/curve/contracts/pools.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/pools.ts"],"names":[],"mappings":";;;;AAAA,wDAAmD;AAInD,uCAAyC;AACzC,0CAA2C;AAc3C,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAmC,CAAA;AAQxE;;GAEG;AACH,SAAsB,gBAAgB,CAAC,EACrC,OAAO,EACP,WAAW,EACX,QAAQ,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,GACR;;QACvB,MAAM,QAAQ,GAAG,GAAG,OAAO,IAAI,WAAW,EAAE,CAAA;QAC5C,MAAM,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC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,KAAK,KAAK,SAAS,CAAgB,CAAA;QACpG,MAAM,SAAS,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,iCACxE,KAAK,KACR,KAAK,IACL,CAAC,CAAA;QAEH,MAAM,YAAY,GAAG;YACnB,UAAU;YACV,gBAAgB;YAChB,SAAS;SACV,CAAA;QAED,YAAY,CAAA;QAEZ,OAAO,YAAY,CAAA;IACrB,CAAC;CAAA;AApED,4CAoEC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/types.d.ts b/dist/entities/trades/curve/contracts/types.d.ts new file mode 100644 index 00000000..afd24e5b --- /dev/null +++ b/dist/entities/trades/curve/contracts/types.d.ts @@ -0,0 +1,19 @@ +import type { BigNumber, BigNumberish } from '@ethersproject/bignumber'; +import type { ChainId } from '../../../../constants'; +export interface GetBestPoolAndOutputParams { + tokenInAddress: string; + tokenOutAddress: string; + amountIn: BigNumberish; + chainId: ChainId; +} +export type GetExchangeRoutingInfoParams = GetBestPoolAndOutputParams; +export interface GetBestPoolAndOutputResult { + expectedAmountOut: BigNumber; + poolAddress: string; + registryExchangeAddress: string; +} +export interface GetExchangeRoutingInfoResults { + routes: string[]; + indices: BigNumber[]; + expectedAmountOut: BigNumber; +} diff --git a/dist/entities/trades/curve/contracts/types.js b/dist/entities/trades/curve/contracts/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/curve/contracts/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/types.js.map b/dist/entities/trades/curve/contracts/types.js.map new file mode 100644 index 00000000..5e72f984 --- /dev/null +++ b/dist/entities/trades/curve/contracts/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/curve/index.d.ts b/dist/entities/trades/curve/index.d.ts new file mode 100644 index 00000000..fa258ff4 --- /dev/null +++ b/dist/entities/trades/curve/index.d.ts @@ -0,0 +1,2 @@ +export * from './CurveTrade'; +export * from './types'; diff --git a/dist/entities/trades/curve/index.js b/dist/entities/trades/curve/index.js new file mode 100644 index 00000000..5bffb71b --- /dev/null +++ b/dist/entities/trades/curve/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./CurveTrade"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/index.js.map b/dist/entities/trades/curve/index.js.map new file mode 100644 index 00000000..2cc6697c --- /dev/null +++ b/dist/entities/trades/curve/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/index.d.ts b/dist/entities/trades/curve/pools/index.d.ts new file mode 100644 index 00000000..f11166ef --- /dev/null +++ b/dist/entities/trades/curve/pools/index.d.ts @@ -0,0 +1 @@ +export * from './pools'; diff --git a/dist/entities/trades/curve/pools/index.js b/dist/entities/trades/curve/pools/index.js new file mode 100644 index 00000000..7880f27b --- /dev/null +++ b/dist/entities/trades/curve/pools/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./pools"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/index.js.map b/dist/entities/trades/curve/pools/index.js.map new file mode 100644 index 00000000..e530a00e --- /dev/null +++ b/dist/entities/trades/curve/pools/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/pools/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/pools.d.ts b/dist/entities/trades/curve/pools/pools.d.ts new file mode 100644 index 00000000..309f9036 --- /dev/null +++ b/dist/entities/trades/curve/pools/pools.d.ts @@ -0,0 +1,16 @@ +import { ChainId } from '../../../../constants'; +import { CurvePool } from '../tokens'; +/** + * xDAI pools + */ +export declare const POOLS_XDAI: CurvePool[]; +export declare const POOLS_ARBITRUM_ONE: CurvePool[]; +export declare const POOLS_MAINNET: CurvePool[]; +export declare const CURVE_FACTORY_SUPPORTED_APIS: { + [chainId in ChainId]: string; +}; +/** + * @TODO add missing Optimisn and Polygon pools. + * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk + */ +export declare const CURVE_POOLS: Record; diff --git a/dist/entities/trades/curve/pools/pools.js b/dist/entities/trades/curve/pools/pools.js new file mode 100644 index 00000000..e43c1523 --- /dev/null +++ b/dist/entities/trades/curve/pools/pools.js @@ -0,0 +1,522 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CURVE_POOLS = exports.CURVE_FACTORY_SUPPORTED_APIS = exports.POOLS_MAINNET = exports.POOLS_ARBITRUM_ONE = exports.POOLS_XDAI = void 0; +const constants_1 = require("../../../../constants"); +const abi_1 = require("../abi"); +const common_1 = require("../abi/common"); +const tokens_1 = require("../tokens"); +/** + * xDAI pools + */ +exports.POOLS_XDAI = [ + { + id: '3pool', + name: '3Pool', + abi: abi_1.CURVE_3POOL_ABI, + address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', + isMeta: false, + // Order is crucial + tokens: [tokens_1.TOKENS_XDAI.wxdai, tokens_1.TOKENS_XDAI.usdc, tokens_1.TOKENS_XDAI.usdt], + }, +]; +exports.POOLS_ARBITRUM_ONE = [ + { + id: '2pool', + name: '2pool', + address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', + abi: abi_1.CURVE_3POOL_ABI, + isMeta: false, + tokens: [tokens_1.TOKENS_ARBITRUM_ONE.usdc_e, tokens_1.TOKENS_ARBITRUM_ONE.usdt], + // underlyingTokens: [TOKENS_ARBITRUM_ONE.usdc, TOKENS_ARBITRUM_ONE.usdt], + }, + { + id: 'tricrypto', + name: 'Tricrypto', + abi: abi_1.CURVE_TRICRYPTO_ABI, + isMeta: false, + address: '0x960ea3e3C7FB317332d990873d354E18d7645590', + tokens: [tokens_1.TOKENS_ARBITRUM_ONE.usdt, tokens_1.TOKENS_ARBITRUM_ONE.wbtc, tokens_1.TOKENS_ARBITRUM_ONE.weth], + allowsTradingETH: true, + }, + { + id: 'ren', + name: 'Ren', + address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb', + abi: abi_1.CURVE_3POOL_ABI, + isMeta: false, + tokens: [tokens_1.TOKENS_ARBITRUM_ONE.wbtc, tokens_1.TOKENS_ARBITRUM_ONE.renbtc], + }, + /** + * @TODO update eursusd crypto v2 pool with correct data, TBD in SWAP-67 + * @see https://curve.fi/#/arbitrum/pools/eursusd/deposit + * @see https://linear.app/swaprdev/issue/SWA-67/update-usdc-token-in-arbitrum + */ + { + id: 'eursusd', + name: 'EURs USD', + address: '0x25e2e8d104bc1a70492e2be32da7c1f8367f9d2c', + abi: abi_1.CURVE_CRYPTO_SWAP_ABI, + isMeta: true, + tokens: [ + tokens_1.TOKENS_ARBITRUM_ONE.eurs, + tokens_1.TOKENS_ARBITRUM_ONE.usdc_e, + tokens_1.TOKENS_ARBITRUM_ONE.usdt, // USDT + ], + }, +]; +const tricrvMetaTokensMainnet = tokens_1.TOKENS_MAINNET.tricrv.poolTokens ? tokens_1.TOKENS_MAINNET.tricrv.poolTokens() : undefined; +const sbtccrvMetaTokens = tokens_1.TOKENS_MAINNET.sbtccrv.poolTokens ? tokens_1.TOKENS_MAINNET.sbtccrv.poolTokens() : undefined; +exports.POOLS_MAINNET = [ + { + id: 'compound', + name: 'Compound', + abi: abi_1.CURVE_3POOL_UNDERLYING_ABI, + tokens: [tokens_1.TOKENS_MAINNET.cdai, tokens_1.TOKENS_MAINNET.cusdc], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc], + address: '0xA2B47E3D5c44877cca798226B7B8118F9BFb7A56', + }, + { + id: 'usdt', + name: 'USDT', + abi: abi_1.CURVE_3POOL_UNDERLYING_ABI, + tokens: [tokens_1.TOKENS_MAINNET.cdai, tokens_1.TOKENS_MAINNET.cusdc, tokens_1.TOKENS_MAINNET.usdt], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt], + address: '0x52EA46506B9CC5Ef470C5bf89f17Dc28bB35D85C', + }, + { + id: 'pax', + name: 'PAX', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.ycdai, tokens_1.TOKENS_MAINNET.ycusdc, tokens_1.TOKENS_MAINNET.ycusdt, tokens_1.TOKENS_MAINNET.pax], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.pax], + address: '0x06364f10B501e868329afBc005b3492902d6C763', + }, + { + id: 'Y', + name: 'Y', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.ydai, tokens_1.TOKENS_MAINNET.yusdc, tokens_1.TOKENS_MAINNET.yusdt, tokens_1.TOKENS_MAINNET.ytusd], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.tusd], + address: '0x45F783CCE6B7FF23B2ab2D70e416cdb7D6055f51', + }, + { + id: 'busd', + name: 'Binance USD', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.ydai, tokens_1.TOKENS_MAINNET.yusdc, tokens_1.TOKENS_MAINNET.yusdt, tokens_1.TOKENS_MAINNET.ybusd], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.busd], + address: '0x79a8C46DeA5aDa233ABaFFD40F3A0A2B1e5A4F27', + }, + { + id: 'sUSD', + name: 'Synthetix USD', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.susd], + address: '0xA5407eAE9Ba41422680e2e00537571bcC53efBfD', + }, + { + id: 'ren', + name: 'Ren', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.renbtc, tokens_1.TOKENS_MAINNET.wbtc], + address: '0x93054188d876f558f4a66B2EF1d97d16eDf0895B', + }, + { + id: 'sbtc', + name: 'sbtc', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.renbtc, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.sbtc], + address: '0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714', + }, + { + id: 'hbtc', + name: 'Houbi BTC', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.hbtc, tokens_1.TOKENS_MAINNET.wbtc], + address: '0x4CA9b3063Ec5866A4B82E437059D2C43d1be596F', + }, + { + id: '3pool', + name: 'Curve 3Pool', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt], + address: '0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7', + }, + { + id: 'gusd', + name: 'Gemini USD', + isMeta: true, + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.gusd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x4f062658EaAF2C1ccf8C8e36D6824CDf41167956', + }, + { + id: 'husd', + name: 'Houbi USD', + isMeta: true, + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.husd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x3eF6A01A0f81D6046290f3e2A8c5b843e738E604', + }, + { + id: 'usdk', + name: 'usdk', + isMeta: true, + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.usdk, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb', + }, + { + id: 'usdn', + name: 'usdn', + isMeta: true, + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.usdn, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x0f9cb53Ebe405d49A0bbdBD291A65Ff571bC83e1', + }, + { + id: 'musd', + name: 'mStable USD', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.musd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x8474DdbE98F5aA3179B3B3F5942D724aFcdec9f6', + }, + { + id: 'rsv', + name: 'rsv', + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.rsv, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0xC18cC39da8b11dA8c3541C598eE022258F9744da', + }, + { + id: 'tbtc', + name: 'tbtc', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.tbtc, tokens_1.TOKENS_MAINNET.sbtccrv], + underlyingTokens: sbtccrvMetaTokens, + address: '0xC25099792E9349C7DD09759744ea681C7de2cb66', + }, + { + id: 'dusd', + name: 'dusd', + tokens: [tokens_1.TOKENS_MAINNET.dusd, tokens_1.TOKENS_MAINNET.tricrv], + abi: abi_1.CURVE_3POOL_ABI, + metaTokens: tricrvMetaTokensMainnet, + address: '0x8038C01A0390a8c547446a0b2c18fc9aEFEcc10c', + }, + { + id: 'pbtc', + name: 'pbtc', + tokens: [tokens_1.TOKENS_MAINNET.pbtc, tokens_1.TOKENS_MAINNET.sbtccrv], + abi: abi_1.CURVE_3POOL_ABI, + underlyingTokens: sbtccrvMetaTokens, + address: '0x7F55DDe206dbAD629C080068923b36fe9D6bDBeF', + }, + { + id: 'bbtc', + name: 'bbtc', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.bbtc, tokens_1.TOKENS_MAINNET.sbtccrv], + underlyingTokens: sbtccrvMetaTokens, + address: '0x071c661B4DeefB59E2a3DdB20Db036821eeE8F4b', + }, + { + id: 'obtc', + name: 'obtc', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.obtc, tokens_1.TOKENS_MAINNET.sbtccrv], + underlyingTokens: sbtccrvMetaTokens, + address: '0xd81dA8D904b52208541Bade1bD6595D8a251F8dd', + }, + { + id: 'ust', + name: 'ust', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.ust, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x890f4e345B1dAED0367A877a1612f86A1f86985f', + }, + { + id: 'saave', + name: 'saave', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.adai, tokens_1.TOKENS_MAINNET.asusd], + underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.susd], + address: '0xEB16Ae0052ed37f479f7fe63849198Df1765a733', + }, + { + id: 'eurs', + name: 'eurs', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eurs, tokens_1.TOKENS_MAINNET.seur], + address: '0x0Ce6a5fF5217e38315f87032CF90686C96627CAA', + }, + { + id: 'usdp', + name: 'usdp', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.usdp, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x42d7025938bEc20B69cBae5A77421082407f053A', + }, + { + id: 'link', + name: 'link', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.link, tokens_1.TOKENS_MAINNET.slink], + address: '0xF178C0b5Bb7e7aBF4e12A4838C7b7c5bA2C623c0', + }, + { + id: 'tusd', + name: 'tusd', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.tusd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0xecd5e75afb02efa118af914515d6521aabd189f1', + }, + { + id: 'frax', + name: 'Frax', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.frax, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B', + }, + { + id: 'lusd', + name: 'lusd', + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.lusd, tokens_1.TOKENS_MAINNET.tricrv], + isMeta: true, + metaTokens: tricrvMetaTokensMainnet, + address: '0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA', + }, + { + id: 'busdv2', + name: 'busdv2', + isMeta: true, + abi: abi_1.CURVE_METAUSD_ABI, + tokens: [tokens_1.TOKENS_MAINNET.busd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x4807862AA8b2bF68830e4C8dc86D0e9A998e085a', + }, + { + id: 'alusd', + name: 'alUSD', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.alusd, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x43b4FdFD4Ff969587185cDB6f0BD875c5Fc83f8c', + }, + { + id: 'mim', + name: 'Magic Internet Money', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.mim, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B', + }, + { + id: 'tricrypto', + name: 'Tricrypto', + abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.weth], + address: '0x80466c64868E1ab14a1Ddf27A676C3fcBE638Fe5', + }, + { + id: 'tricrypto2', + name: 'tricrypto2', + abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.weth], + allowsTradingETH: true, + address: '0xD51a44d3FaE010294C616388b506AcdA1bfAAE46', + }, + { + id: 'eurt', + name: 'eurt', + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eurt, tokens_1.TOKENS_MAINNET.seur], + address: '0xfd5db7463a3ab53fd211b4af195c5bccc1a03890', + }, + { + id: 'eurtusd', + name: 'eurtusd', + isMeta: true, + abi: abi_1.CURVE_3POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eurt, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x9838eCcC42659FA8AA7daF2aD134b53984c9427b', + }, + { + id: 'eursusd', + name: 'eursusd', + abi: abi_1.CURVE_EURSPOOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.eurs], + address: '0x98a7F18d4E56Cfe84E3D081B40001B3d5bD3eB8B', + }, + { + id: 'rai', + name: 'Rai', + abi: abi_1.CURVE_METAUSD_ABI, + isMeta: true, + tokens: [tokens_1.TOKENS_MAINNET.rai, tokens_1.TOKENS_MAINNET.tricrv], + metaTokens: tricrvMetaTokensMainnet, + address: '0x618788357D0EBd8A37e763ADab3bc575D54c2C7d', + }, + { + id: 'cvxeth', + name: 'cvxeth', + abi: abi_1.CURVE_ETHXERC20_256_ABI, + tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.cvx], + address: '0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4', + allowsTradingETH: true, + }, + { + id: 'spelleth', + name: 'spelleth', + abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, + tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.spell], + address: '0x98638FAcf9a3865cd033F36548713183f6996122', + allowsTradingETH: true, + }, + { + id: 'crveth', + name: 'crveth', + abi: abi_1.CURVE_ETHXERC20_256_ABI, + tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.crv], + address: '0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511', + allowsTradingETH: true, + }, + { + id: 'reth', + name: 'rETH', + abi: abi_1.CURVE_ETHXERC20_256_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.reth], + address: '0xF9440930043eb3997fc70e1339dBb11F341de7A8', + }, + { + id: 'seth', + name: 'seth', + abi: abi_1.CURVE_ETHXERC20_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.seth], + address: '0xc5424b857f758e906013f3555dad202e4bdb4567', + }, + { + id: 'steth', + name: 'steth', + abi: [ + common_1.poolMethods['view']['fee'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], + common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], + common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], + ], + tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.steth], + address: '0xDC24316b9AE028F1497c275EB9192a3Ea0f67022', + allowsTradingETH: true, + }, + { + id: 'ankreth', + name: 'ankreth', + abi: abi_1.CURVE_ETHXERC20_256_ABI, + tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.ankreth], + address: '0xA96A65c051bF88B4095Ee1f2451C2A9d43F53Ae2', + }, + /** + * @todo debug these + { + id: 'xautusd', + name: 'xautusd', + abi: CURVE_3POOL_ABI, + isMeta: true, + tokens: [TOKENS_MAINNET.xaut, TOKENS_MAINNET.tricrv], + metaTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], + address:'0xAdCFcf9894335dC340f6Cd182aFA45999F45Fc44' + }, + { + id: 'ironbank', + name: 'ironbank', + abi: CURVE_3POOL_ABI, + tokens: [TOKENS_MAINNET.cydai, TOKENS_MAINNET.cyusdc, TOKENS_MAINNET.cyusdt], + underlyingTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], + address:'0x2dded6Da1BF5DBdF597C45fcFaa3194e53EcfeAF' + }, + { + id: 'teth', + name: 'teth', + abi: CURVE_3POOL_ABI, + tokens: [TOKENS_MAINNET.weth, TOKENS_MAINNET.t], + address:'0x752eBeb79963cf0732E9c0fec72a49FD1DEfAEAC', + allowsTradingETH: true + }, + { + id: 'aave', + name: 'Aave', + abi: CURVE_3POOL_ABI, + tokens: [TOKENS_MAINNET.adai, TOKENS_MAINNET.ausdc, TOKENS_MAINNET.ausdt], + underlyingTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], + address:'0xDeBF20617708857ebe4F679508E7b7863a8A8EeE' + }, + */ + /* + Inactive pool + { + id: 'linkusd', + name: 'linkusd', + abi: CURVE_CRYPTO_SWAP_ABI, + tokens: [TOKENS_MAINNET.linkusd, TOKENS_MAINNET.tricrv], + metaTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], + address:'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171' + }, + */ +]; +exports.CURVE_FACTORY_SUPPORTED_APIS = { + [constants_1.ChainId.MAINNET]: 'ethereum', + [constants_1.ChainId.XDAI]: 'xdai', + [constants_1.ChainId.ARBITRUM_ONE]: 'arbitrum', + [constants_1.ChainId.POLYGON]: 'polygon', + [constants_1.ChainId.RINKEBY]: '', + [constants_1.ChainId.ARBITRUM_RINKEBY]: '', + [constants_1.ChainId.GOERLI]: '', + [constants_1.ChainId.OPTIMISM_MAINNET]: 'optimism', + [constants_1.ChainId.OPTIMISM_GOERLI]: '', + [constants_1.ChainId.ARBITRUM_GOERLI]: '', + [constants_1.ChainId.BSC_MAINNET]: '', + [constants_1.ChainId.BSC_TESTNET]: '', + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: '', + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: '', +}; +/** + * @TODO add missing Optimisn and Polygon pools. + * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk + */ +exports.CURVE_POOLS = { + [constants_1.ChainId.MAINNET]: exports.POOLS_MAINNET, + [constants_1.ChainId.XDAI]: exports.POOLS_XDAI, + [constants_1.ChainId.ARBITRUM_ONE]: exports.POOLS_ARBITRUM_ONE, + // Empty + [constants_1.ChainId.RINKEBY]: [], + [constants_1.ChainId.ARBITRUM_RINKEBY]: [], + [constants_1.ChainId.ARBITRUM_GOERLI]: [], + [constants_1.ChainId.POLYGON]: [], + [constants_1.ChainId.GOERLI]: [], + [constants_1.ChainId.OPTIMISM_MAINNET]: [], + [constants_1.ChainId.OPTIMISM_GOERLI]: [], + [constants_1.ChainId.BSC_MAINNET]: [], + [constants_1.ChainId.BSC_TESTNET]: [], + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: [], + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: [], +}; +//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/pools.js.map b/dist/entities/trades/curve/pools/pools.js.map new file mode 100644 index 00000000..0a4166bd --- /dev/null +++ b/dist/entities/trades/curve/pools/pools.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/pools/pools.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,gCAUe;AACf,0CAA2C;AAC3C,sCAAuF;AAEvF;;GAEG;AACU,QAAA,UAAU,GAAgB;IACrC;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,qBAAe;QACpB,OAAO,EAAE,4CAA4C;QACrD,MAAM,EAAE,KAAK;QACb,mBAAmB;QACnB,MAAM,EAAE,CAAC,oBAAW,CAAC,KAAK,EAAE,oBAAW,CAAC,IAAI,EAAE,oBAAW,CAAC,IAAI,CAAC;KAChE;CACF,CAAA;AAEY,QAAA,kBAAkB,GAAgB;IAC7C;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,4CAA4C;QACrD,GAAG,EAAE,qBAAe;QACpB,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,CAAC,4BAAmB,CAAC,MAAM,EAAE,4BAAmB,CAAC,IAAI,CAAC;QAC9D,0EAA0E;KAC3E;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,yBAAmB;QACxB,MAAM,EAAE,KAAK;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AAED;;;GAGG;AACU,QAAA,WAAW,GAAiC;IACvD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,qBAAa;IAChC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,kBAAU;IAC1B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,0BAAkB;IAC1C,QAAQ;IACR,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,EAAE;IACpB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/index.d.ts b/dist/entities/trades/curve/tokens/index.d.ts new file mode 100644 index 00000000..1b22cc5b --- /dev/null +++ b/dist/entities/trades/curve/tokens/index.d.ts @@ -0,0 +1,2 @@ +export * from './tokens'; +export * from './types'; diff --git a/dist/entities/trades/curve/tokens/index.js b/dist/entities/trades/curve/tokens/index.js new file mode 100644 index 00000000..9ad60689 --- /dev/null +++ b/dist/entities/trades/curve/tokens/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./tokens"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/index.js.map b/dist/entities/trades/curve/tokens/index.js.map new file mode 100644 index 00000000..ccf52c92 --- /dev/null +++ b/dist/entities/trades/curve/tokens/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/tokens.d.ts b/dist/entities/trades/curve/tokens/tokens.d.ts new file mode 100644 index 00000000..0081b0d3 --- /dev/null +++ b/dist/entities/trades/curve/tokens/tokens.d.ts @@ -0,0 +1,23 @@ +import { ChainId } from '../../../../constants'; +import { CurveToken } from './types'; +/** + * Gnosis Chain + */ +export declare const TOKENS_XDAI: Record; +/** + * Arbitrum + */ +export declare const TOKENS_ARBITRUM_ONE: Record; +/** + * Ethereum + */ +export declare const TOKENS_MAINNET: Record; +type CurveTokenList = { + [chainId in ChainId]: Record; +}; +/** + * @TODO add missing Optimisn and Polygon tokens. + * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk + */ +export declare const CURVE_TOKENS: CurveTokenList; +export {}; diff --git a/dist/entities/trades/curve/tokens/tokens.js b/dist/entities/trades/curve/tokens/tokens.js new file mode 100644 index 00000000..ffe36397 --- /dev/null +++ b/dist/entities/trades/curve/tokens/tokens.js @@ -0,0 +1,641 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CURVE_TOKENS = exports.TOKENS_MAINNET = exports.TOKENS_ARBITRUM_ONE = exports.TOKENS_XDAI = void 0; +const constants_1 = require("../../../../constants"); +const types_1 = require("./types"); +/** + * Gnosis Chain + */ +exports.TOKENS_XDAI = { + wxdai: { + symbol: 'WXDAI', + name: 'WXDAI', + address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', + decimals: 18, + type: types_1.TokenType.USD, + }, + usdc: { + symbol: 'USDC', + name: 'USDC', + address: '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', + decimals: 6, + type: types_1.TokenType.USD, + }, + usdt: { + symbol: 'USDT', + name: 'USDT', + address: '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', + decimals: 6, + type: types_1.TokenType.USD, + }, + x3crv: { + name: 'x3CRV', + symbol: 'x3CRV', + decimals: 18, + address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC', + isLPToken: true, + type: types_1.TokenType.USD, + poolTokens() { + return [exports.TOKENS_XDAI.wxdai, exports.TOKENS_XDAI.usdc, exports.TOKENS_XDAI.usdt]; + }, + }, +}; +/** + * Arbitrum + */ +exports.TOKENS_ARBITRUM_ONE = { + '2crv': { + name: '2pool', + symbol: '2CRV', + decimals: 18, + address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', + isLPToken: true, + type: types_1.TokenType.USD, + poolTokens() { + return [exports.TOKENS_ARBITRUM_ONE.usdc_e, exports.TOKENS_ARBITRUM_ONE.usdt]; + }, + }, + usdc_e: { + symbol: 'USDC.e', + name: 'Bridged USDC', + decimals: 6, + address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', + type: types_1.TokenType.USD, + }, + usdt: { + symbol: 'USDT', + name: 'USDT', + decimals: 6, + address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', + type: types_1.TokenType.USD, + }, + wbtc: { + symbol: 'wBTC', + name: 'wBTC', + decimals: 8, + address: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', + type: types_1.TokenType.BTC, + }, + renbtc: { + symbol: 'renBTC', + name: 'renBTC', + decimals: 8, + address: '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501', + type: types_1.TokenType.BTC, + }, + eth: { + symbol: 'ETH', + name: 'ETH', + decimals: 18, + address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', + type: types_1.TokenType.ETH, + }, + weth: { + symbol: 'WETH', + name: 'WETH', + decimals: 18, + address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', + type: types_1.TokenType.ETH, + }, + eurs: { + symbol: 'EURs', + name: 'EURs', + decimals: 2, + address: '0xD22a58f79e9481D1a88e00c343885A588b34b68B', + type: types_1.TokenType.EUR, + }, +}; +/** + * Ethereum + */ +exports.TOKENS_MAINNET = { + crv: { + address: '0xD533a949740bb3306d119CC777fa900bA034cd52', + name: 'Curve DAO Token', + symbol: 'CRV', + decimals: 18, + type: types_1.TokenType.CRV, + }, + // Bitcoin Tokens + hbtc: { + address: '0x0316EB71485b0Ab14103307bf65a021042c6d380', + name: 'Huobi BTC', + symbol: 'HBTC', + decimals: 18, + type: types_1.TokenType.BTC, + }, + sbtc: { + address: '0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6', + name: 'Synth sBTC', + symbol: 'sBTC', + decimals: 18, + type: types_1.TokenType.BTC, + }, + obtc: { + address: '0x8064d9Ae6cDf087b1bcd5BDf3531bD5d8C537a68', + name: 'BoringDAO BTC', + symbol: 'oBTC', + decimals: 18, + type: types_1.TokenType.BTC, + }, + bbtc: { + address: '0x9BE89D2a4cd102D8Fecc6BF9dA793be995C22541', + name: 'Binance Wrapped BTC', + symbol: 'BBTC', + decimals: 8, + type: types_1.TokenType.BTC, + }, + pbtc: { + address: '0x5228a22e72ccC52d415EcFd199F99D0665E7733b', + name: 'pTokens BTC', + symbol: 'pBTC', + decimals: 18, + type: types_1.TokenType.BTC, + }, + tbtc: { + address: '0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa', + name: 'tBTC', + symbol: 'TBTC', + decimals: 18, + type: types_1.TokenType.BTC, + }, + wbtc: { + address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', + name: 'Wrapped BTC', + symbol: 'WBTC', + decimals: 8, + type: types_1.TokenType.BTC, + }, + renbtc: { + address: '0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D', + name: 'renBTC', + symbol: 'renBTC', + decimals: 8, + type: types_1.TokenType.BTC, + }, + // USD Tokens + ycdai: { + address: '0x99d1Fa417f94dcD62BfE781a1213c092a47041Bc', + name: 'Curve (iearn fork) DAI', + symbol: 'ycDAI', + decimals: 18, + type: types_1.TokenType.USD, + }, + ycusdt: { + address: '0x1bE5d71F2dA660BFdee8012dDc58D024448A0A59', + name: 'Curve (iearn fork) USDT', + symbol: 'ycUSDT', + decimals: 6, + type: types_1.TokenType.USD, + }, + cusdc: { + address: '0x39AA39c021dfbaE8faC545936693aC917d5E7563', + name: 'Compound USD Coin', + symbol: 'cUSDC', + decimals: 8, + type: types_1.TokenType.USD, + }, + usdp: { + address: '0x1456688345527bE1f37E9e627DA0837D6f08C925', + name: 'USDP Stablecoin', + symbol: 'USDP', + decimals: 18, + type: types_1.TokenType.USD, + }, + adai: { + address: '0x028171bCA77440897B824Ca71D1c56caC55b68A3', + name: 'Aave interest bearing DAI', + symbol: 'aDAI', + decimals: 18, + type: types_1.TokenType.USD, + }, + musd: { + address: '0xe2f2a5C287993345a840Db3B0845fbC70f5935a5', + name: 'mStable USD', + symbol: 'mUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + gusd: { + address: '0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd', + name: 'Gemini dollar', + symbol: 'GUSD', + decimals: 2, + type: types_1.TokenType.USD, + }, + ydai: { + address: '0xC2cB1040220768554cf699b0d863A3cd4324ce32', + name: 'iearn DAI', + symbol: 'yDAI', + decimals: 18, + type: types_1.TokenType.USD, + }, + cyusdt: { + address: '0x48759f220ed983db51fa7a8c0d2aab8f3ce4166a', + name: 'Yearn Tether USD', + symbol: 'cyUSDT', + decimals: 8, + type: types_1.TokenType.USD, + }, + cyusdc: { + address: '0x76Eb2FE28b36B3ee97F3Adae0C69606eeDB2A37c', + name: 'Yearn USD Coin', + symbol: 'cyUSDC', + decimals: 8, + type: types_1.TokenType.USD, + }, + yusdc: { + address: '0xd6aD7a6750A7593E092a9B218d66C0A814a3436e', + name: 'iearn USDC', + symbol: 'yUSDC', + decimals: 6, + type: types_1.TokenType.USD, + }, + husd: { + address: '0xdF574c24545E5FfEcb9a659c229253D4111d87e1', + name: 'HUSD', + symbol: 'HUSD', + decimals: 8, + type: types_1.TokenType.USD, + }, + cydai: { + address: '0x8e595470Ed749b85C6F7669de83EAe304C2ec68F', + name: 'Yearn Dai Stablecoin', + symbol: 'cyDAI', + decimals: 8, + type: types_1.TokenType.USD, + }, + cdai: { + address: '0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643', + name: 'Compound Dai', + symbol: 'cDAI', + decimals: 8, + type: types_1.TokenType.USD, + }, + ycusdc: { + address: '0x9777d7E2b60bB01759D0E2f8be2095df444cb07E', + name: 'Curve (iearn fork) USDC', + symbol: 'ycUSDC', + decimals: 6, + type: types_1.TokenType.USD, + }, + ust: { + address: '0xa47c8bf37f92aBed4A126BDA807A7b7498661acD', + name: 'Wrapped UST Token', + symbol: 'UST', + decimals: 18, + type: types_1.TokenType.USD, + }, + yusdt: { + address: '0x83f798e925BcD4017Eb265844FDDAbb448f1707D', + name: 'iearn USDT', + symbol: 'yUSDT', + decimals: 6, + type: types_1.TokenType.USD, + }, + ybusd: { + address: '0x04bC0Ab673d88aE9dbC9DA2380cB6B79C4BCa9aE', + name: 'iearn BUSD', + symbol: 'yBUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + ausdc: { + address: '0xBcca60bB61934080951369a648Fb03DF4F96263C', + name: 'Aave interest bearing USDC', + symbol: 'aUSDC', + decimals: 6, + type: types_1.TokenType.USD, + }, + lusd: { + address: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0', + name: 'LUSD Stablecoin', + symbol: 'LUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + tusd: { + address: '0x0000000000085d4780B73119b644AE5ecd22b376', + name: 'TrueUSD', + symbol: 'TUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + usdn: { + address: '0x674C6Ad92Fd080e4004b2312b45f796a192D27a0', + name: 'Neutrino USD', + symbol: 'USDN', + decimals: 18, + type: types_1.TokenType.USD, + }, + usdc: { + address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + name: 'USD Coin', + symbol: 'USDC', + decimals: 6, + type: types_1.TokenType.USD, + }, + ausdt: { + address: '0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811', + name: 'Aave interest bearing USDT', + symbol: 'aUSDT', + decimals: 6, + type: types_1.TokenType.USD, + }, + crvfrax: { + address: '0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC', + name: 'crvFRAX', + symbol: 'crvFRAX', + decimals: 18, + isLPToken: true, + poolTokens() { + return [exports.TOKENS_MAINNET.frax, exports.TOKENS_MAINNET.usdc]; + }, + type: types_1.TokenType.USD, + }, + '3crv': { + address: '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490', + name: 'Curve.fi DAI/USDC/USDT', + symbol: '3Crv', + decimals: 18, + poolTokens() { + return [exports.TOKENS_MAINNET.dai, exports.TOKENS_MAINNET.usdc, exports.TOKENS_MAINNET.usdt]; + }, + type: types_1.TokenType.USD, + }, + usdk: { + address: '0x1c48f86ae57291F7686349F12601910BD8D470bb', + name: 'USDK', + symbol: 'USDK', + decimals: 18, + type: types_1.TokenType.USD, + }, + frax: { + address: '0x853d955aCEf822Db058eb8505911ED77F175b99e', + name: 'Frax', + symbol: 'FRAX', + decimals: 18, + type: types_1.TokenType.USD, + }, + busd: { + address: '0x4Fabb145d64652a948d72533023f6E7A623C7C53', + name: 'Binance USD', + symbol: 'BUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + asusd: { + address: '0x6C5024Cd4F8A59110119C56f8933403A539555EB', + name: 'Aave interest bearing SUSD', + symbol: 'aSUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + mim: { + address: '0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3', + name: 'Magic Internet Money', + symbol: 'MIM', + decimals: 18, + type: types_1.TokenType.USD, + }, + alusd: { + address: '0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9', + name: 'Alchemix USD', + symbol: 'alUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + usdt: { + address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', + name: 'Tether USD', + symbol: 'USDT', + decimals: 6, + type: types_1.TokenType.USD, + }, + dai: { + address: '0x6B175474E89094C44Da98b954EedeAC495271d0F', + name: 'Dai Stablecoin', + symbol: 'DAI', + decimals: 18, + type: types_1.TokenType.USD, + }, + susd: { + address: '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51', + name: 'Synth sUSD', + symbol: 'sUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + dusd: { + address: '0x5BC25f649fc4e26069dDF4cF4010F9f706c23831', + name: 'DefiDollar', + symbol: 'DUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + ytusd: { + address: '0x73a052500105205d34Daf004eAb301916DA8190f', + name: 'iearn TUSD', + symbol: 'yTUSD', + decimals: 18, + type: types_1.TokenType.USD, + }, + pax: { + address: '0x8E870D67F660D95d5be530380D0eC0bd388289E1', + name: 'Pax Dollar', + symbol: 'pax', + decimals: 18, + type: types_1.TokenType.USD, + }, + // Ether and deriivates + reth: { + address: '0x9559Aaa82d9649C7A7b220E7c461d2E74c9a3593', + name: 'StaFi', + symbol: 'rETH', + decimals: 18, + type: types_1.TokenType.ETH, + }, + eth: { + symbol: 'ETH', + name: 'Ether', + decimals: 18, + address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', + type: types_1.TokenType.ETH, + }, + ankreth: { + name: 'ankreth', + symbol: 'ankrETH', + decimals: 18, + address: '0xE95A203B1a91a908F9B9CE46459d101078c2c3cb', + type: types_1.TokenType.ETH, + }, + weth: { + address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', + name: 'Wrapped Ether', + symbol: 'WETH', + decimals: 18, + type: types_1.TokenType.ETH, + }, + aethc: { + address: '0xE95A203B1a91a908F9B9CE46459d101078c2c3cb', + name: 'Ankr ETH2 Reward Bearing Certificate', + symbol: 'aETHc', + decimals: 18, + type: types_1.TokenType.ETH, + }, + seth: { + address: '0x5e74C9036fb86BD7eCdcb084a0673EFc32eA31cb', + name: 'Synth sETH', + symbol: 'sETH', + decimals: 18, + type: types_1.TokenType.ETH, + }, + steth: { + address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84', + name: 'Liquid staked Ether 2.0', + symbol: 'stETH', + decimals: 18, + type: types_1.TokenType.ETH, + }, + snx: { + address: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f', + name: 'Synthetix Network Token', + symbol: 'SNX', + decimals: 18, + type: types_1.TokenType.OTHER, + }, + slink: { + address: '0xbBC455cb4F1B9e4bFC4B73970d360c8f032EfEE6', + name: 'Synth sLINK', + symbol: 'sLINK', + decimals: 18, + type: types_1.TokenType.LINK, + }, + link: { + address: '0x514910771AF9Ca656af840dff83E8264EcF986CA', + name: 'ChainLink Token', + symbol: 'LINK', + decimals: 18, + type: types_1.TokenType.LINK, + }, + seur: { + address: '0xD71eCFF9342A5Ced620049e616c5035F1dB98620', + name: 'Synth sEUR', + symbol: 'sEUR', + decimals: 18, + type: types_1.TokenType.EUR, + }, + eurs: { + address: '0xdB25f211AB05b1c97D595516F45794528a807ad8', + name: 'STASIS EURS Token', + symbol: 'EURS', + decimals: 2, + type: types_1.TokenType.EUR, + }, + linkusd: { + name: 'LINKUSD', + symbol: 'LINKUSD', + decimals: 18, + address: '0x0E2EC54fC0B509F445631Bf4b91AB8168230C752', + type: types_1.TokenType.LINK, + }, + spell: { + name: 'Spell', + symbol: 'SPELL', + decimals: 18, + address: '0x090185f2135308BaD17527004364eBcC2D37e5F6', + type: types_1.TokenType.SPELL, + }, + cvx: { + name: 'Convex', + symbol: 'CVX', + decimals: 18, + address: '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B', + type: types_1.TokenType.CVX, + }, + xaut: { + name: 'Tether Gold', + symbol: 'XAUt', + decimals: 6, + address: '0x68749665FF8D2d112Fa859AA293F07A622782F38', + type: types_1.TokenType.GOLD, + }, + t: { + name: 'Threshold Network', + symbol: 'T', + decimals: 18, + address: '0xCdF7028ceAB81fA0C6971208e83fa7872994beE5', + type: types_1.TokenType.T, + }, + eurt: { + name: 'Tether Euro', + symbol: 'EURT', + decimals: 6, + address: '0xC581b735A1688071A1746c968e0798D642EDE491', + type: types_1.TokenType.EUR, + }, + tricrv: { + name: 'Curve.fi DAI/USDC/USDT (3Crv)', + symbol: '3Crv', + decimals: 18, + address: '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490', + isLPToken: true, + type: types_1.TokenType.USD, + poolTokens() { + return [exports.TOKENS_MAINNET.dai, exports.TOKENS_MAINNET.usdc, exports.TOKENS_MAINNET.usdt]; + }, + }, + sbtccrv: { + symbol: 'sbtcCrv', + name: 'Curve.fi renBTC/wBTC/sBTC', + decimals: 18, + address: '0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3', + isLPToken: true, + type: types_1.TokenType.BTC, + poolTokens() { + return [exports.TOKENS_MAINNET.renbtc, exports.TOKENS_MAINNET.wbtc, exports.TOKENS_MAINNET.sbtc]; + }, + }, + rai: { + name: ' Rai Reflex Index', + symbol: 'RAI', + decimals: 18, + address: '0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919', + type: types_1.TokenType.OTHER, + }, + rsv: { + address: '0x196f4727526eA7FB1e17b2071B3d8eAA38486988', + name: 'Reserve', + symbol: 'RSV', + decimals: 18, + type: types_1.TokenType.OTHER, + }, + crvrenwsbtc: { + address: '0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3', + name: 'Curve.fi renBTC/wBTC/sBTC', + symbol: 'crvRenWSBTC', + decimals: 18, + type: types_1.TokenType.OTHER, + }, +}; +/** + * @TODO add missing Optimisn and Polygon tokens. + * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk + */ +exports.CURVE_TOKENS = { + [constants_1.ChainId.MAINNET]: exports.TOKENS_MAINNET, + [constants_1.ChainId.XDAI]: exports.TOKENS_XDAI, + [constants_1.ChainId.ARBITRUM_ONE]: exports.TOKENS_ARBITRUM_ONE, + [constants_1.ChainId.ARBITRUM_RINKEBY]: {}, + [constants_1.ChainId.ARBITRUM_GOERLI]: {}, + [constants_1.ChainId.RINKEBY]: {}, + [constants_1.ChainId.POLYGON]: {}, + [constants_1.ChainId.GOERLI]: {}, + [constants_1.ChainId.OPTIMISM_MAINNET]: {}, + [constants_1.ChainId.OPTIMISM_GOERLI]: {}, + [constants_1.ChainId.BSC_MAINNET]: {}, + [constants_1.ChainId.BSC_TESTNET]: {}, + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: {}, + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: {}, +}; +//# sourceMappingURL=tokens.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/tokens.js.map b/dist/entities/trades/curve/tokens/tokens.js.map new file mode 100644 index 00000000..58377891 --- /dev/null +++ b/dist/entities/trades/curve/tokens/tokens.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/tokens.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,mCAA+C;AAE/C;;GAEG;AACU,QAAA,WAAW,GAA+B;IACrD,KAAK,EAAE;QACL,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,iBAAS,CAAC,GAAG;KACpB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,iBAAS,CAAC,GAAG;KACpB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,4CAA4C;QACrD,QAAQ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,CAAA;AAMD;;;GAGG;AACU,QAAA,YAAY,GAAmB;IAC1C,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,sBAAc;IACjC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,mBAAW;IAC3B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,2BAAmB;IAC3C,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,EAAE;IACpB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/types.d.ts b/dist/entities/trades/curve/tokens/types.d.ts new file mode 100644 index 00000000..6c218052 --- /dev/null +++ b/dist/entities/trades/curve/tokens/types.d.ts @@ -0,0 +1,43 @@ +import type { ContractInterface } from '@ethersproject/contracts'; +/** + * Token type + */ +export declare enum TokenType { + USD = "usd", + EUR = "eur", + BTC = "btc", + ETH = "eth", + LINK = "link", + GOLD = "gold", + CRV = "crv", + CVX = "cvx", + SPELL = "spell", + T = "t", + CRYPTO = "crypto", + OTHER = "other" +} +/** + * Curve Token interface + */ +export interface CurveToken { + isLPToken?: boolean; + poolTokens?: () => CurveToken[]; + address: string; + symbol: string; + name: string; + decimals: number; + type: TokenType; +} +export interface CurvePool { + id: string; + name: string; + address: string; + abi: ContractInterface; + approveAddress?: string; + tokens: CurveToken[]; + underlyingTokens?: CurveToken[]; + metaTokens?: CurveToken[]; + riskLevel?: number; + isMeta?: boolean; + allowsTradingETH?: boolean; +} diff --git a/dist/entities/trades/curve/tokens/types.js b/dist/entities/trades/curve/tokens/types.js new file mode 100644 index 00000000..1b4a9ab4 --- /dev/null +++ b/dist/entities/trades/curve/tokens/types.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TokenType = void 0; +/** + * Token type + */ +var TokenType; +(function (TokenType) { + TokenType["USD"] = "usd"; + TokenType["EUR"] = "eur"; + TokenType["BTC"] = "btc"; + TokenType["ETH"] = "eth"; + TokenType["LINK"] = "link"; + TokenType["GOLD"] = "gold"; + TokenType["CRV"] = "crv"; + TokenType["CVX"] = "cvx"; + TokenType["SPELL"] = "spell"; + TokenType["T"] = "t"; + TokenType["CRYPTO"] = "crypto"; + TokenType["OTHER"] = "other"; +})(TokenType = exports.TokenType || (exports.TokenType = {})); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/types.js.map b/dist/entities/trades/curve/tokens/types.js.map new file mode 100644 index 00000000..7fbcd3b7 --- /dev/null +++ b/dist/entities/trades/curve/tokens/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/types.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,4BAAe,CAAA;IACf,oBAAO,CAAA;IACP,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAapB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/types.d.ts b/dist/entities/trades/curve/types.d.ts new file mode 100644 index 00000000..4a0452e2 --- /dev/null +++ b/dist/entities/trades/curve/types.d.ts @@ -0,0 +1,72 @@ +import type { Contract } from '@ethersproject/contracts'; +import type { UnsignedTransaction } from '@ethersproject/transactions'; +import type { ChainId, TradeType } from '../../../constants'; +import type { Currency } from '../../currency'; +import type { CurrencyAmount } from '../../fractions/currencyAmount'; +import type { Percent } from '../../fractions/percent'; +export interface CurveTradeConstructorParams { + inputAmount: CurrencyAmount; + outputAmount: CurrencyAmount; + maximumSlippage: Percent; + tradeType: TradeType; + chainId: ChainId; + transactionRequest: UnsignedTransaction; + approveAddress?: string; + fee?: Percent; + contract: Contract; +} +export interface CurveTradeGetQuoteParams { + currencyAmountIn: CurrencyAmount; + currencyOut: Currency; + maximumSlippage: Percent; + receiver?: string; +} +export interface CurveTradeQuote { + fee: Percent; + to: string; + populatedTransaction: UnsignedTransaction; + currencyAmountIn: CurrencyAmount; + estimatedAmountOut: CurrencyAmount; + exchangeRate: number; + exchangeRateWithoutFee: number; + currencyOut: Currency; + maximumSlippage: Percent; + contract: Contract; +} +interface CurveGetTradeCommonParams { + maximumSlippage: Percent; + receiver?: string; +} +export interface CurveTradeBestTradeExactInParams extends CurveGetTradeCommonParams { + currencyAmountIn: CurrencyAmount; + currencyOut: Currency; +} +export interface CurveTradeBestTradeExactOutParams extends CurveGetTradeCommonParams { + currencyIn: Currency; + currencyAmountOut: CurrencyAmount; +} +export interface FactoryPoolsApiResponse { + data: { + poolData: { + address: string; + assetTypeName: string; + coins: { + name: string; + address: string; + decimals: string; + symbol: string; + isBasePoolLpToken: boolean; + }[]; + coinsAddresses: string[]; + decimals: string[]; + id: string; + usdTotal: number; + isMetaPool: boolean; + implementation: string; + implementationAddress: string; + name: string; + symbol: string; + }[]; + }; +} +export {}; diff --git a/dist/entities/trades/curve/types.js b/dist/entities/trades/curve/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/curve/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/types.js.map b/dist/entities/trades/curve/types.js.map new file mode 100644 index 00000000..6605e3df --- /dev/null +++ b/dist/entities/trades/curve/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/curve/utils.d.ts b/dist/entities/trades/curve/utils.d.ts new file mode 100644 index 00000000..960e5e25 --- /dev/null +++ b/dist/entities/trades/curve/utils.d.ts @@ -0,0 +1,34 @@ +import { ChainId } from '../../../constants'; +import { Token } from '../../token'; +import { CurvePool, CurveToken, TokenType } from './tokens'; +/** + * Returns the token index of a token in a Curve pool + * @param pool the Curve pool + * @param tokenAddress the token address + */ +export declare function getTokenIndex(pool: CurvePool, tokenAddress: string, chainId?: ChainId): number; +/** + * Given a token, returns the token information if found otherwise returns token passed + * @param token The token + * @param chainId The chain ID. Default is Mainnet + * @returns The token information or undefined if not found + */ +export declare function getCurveToken(token: Token, chainId?: ChainId): CurveToken; +/** + * Fetches user created factory pools for curve protocol + */ +export declare function fetchCurveFactoryPools(chainId: ChainId): Promise; +/** + * + * @param pools The list of Curve pools + * @param tokenInAddress Token in address + * @param tokenOutAddress Token out address + * @returns List of potential pools at which the trade can be done + */ +export declare function getRoutablePools(pools: CurvePool[], tokenIn: CurveToken, tokenOut: CurveToken, chainId: ChainId): Promise; +/** + * Returns tokenType based on token symbol + * @param symbol symbol of curve token + * @returns token type of given symbol + */ +export declare function determineTokeType(symbol: string): TokenType; diff --git a/dist/entities/trades/curve/utils.js b/dist/entities/trades/curve/utils.js new file mode 100644 index 00000000..cd16dda0 --- /dev/null +++ b/dist/entities/trades/curve/utils.js @@ -0,0 +1,201 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.determineTokeType = exports.getRoutablePools = exports.fetchCurveFactoryPools = exports.getCurveToken = exports.getTokenIndex = void 0; +const tslib_1 = require("tslib"); +const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); +const constants_1 = require("../../../constants"); +const token_1 = require("../../token"); +const abi_1 = require("./abi"); +const pools_1 = require("./pools"); +const tokens_1 = require("./tokens"); +/** + * Returns the token index of a token in a Curve pool + * @param pool the Curve pool + * @param tokenAddress the token address + */ +function getTokenIndex(pool, tokenAddress, chainId = constants_1.ChainId.MAINNET) { + var _a; + // Combine all tokens without lpTokens + const tokensWithoutLpToken = pool.tokens.filter((token) => token.isLPToken); + // Use main tokens + let tokenList = pool.tokens; + // Append underlying tokens + const underlyingTokens = pool.underlyingTokens && pool.underlyingTokens; + if (underlyingTokens) { + tokenList = [...tokensWithoutLpToken, ...underlyingTokens]; + } + // Append meta tokens + else if (pool.isMeta && pool.metaTokens) { + tokenList = [...tokensWithoutLpToken, ...pool.metaTokens]; + } + // Search for WETH in the pool + const poolHasWETH = tokenList.find(({ address }) => { var _a, _b, _c; return ((_c = (_b = (_a = tokens_1.CURVE_TOKENS[chainId]) === null || _a === void 0 ? void 0 : _a.weth) === null || _b === void 0 ? void 0 : _b.address) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === address.toLowerCase(); }); + let tokenIndex; + // Case where both pool tokens and underlying tokens can be routed through + if (underlyingTokens && ((_a = pool.underlyingTokens) === null || _a === void 0 ? void 0 : _a.length) === pool.tokens.length) { + tokenIndex = pool.tokens.findIndex((item, index) => item.address.toLowerCase() == tokenAddress.toLowerCase() || + underlyingTokens[index].address.toLowerCase() == tokenAddress.toLowerCase()); + } + else { + // Search for the main/underlying token + tokenIndex = tokenList.findIndex(({ address }) => address.toLowerCase() == tokenAddress.toLowerCase()); + } + // ETH is always at 0 all pools + if (tokenIndex < 0 && poolHasWETH) { + tokenIndex = 0; + } + return tokenIndex; +} +exports.getTokenIndex = getTokenIndex; +/** + * Given a token, returns the token information if found otherwise returns token passed + * @param token The token + * @param chainId The chain ID. Default is Mainnet + * @returns The token information or undefined if not found + */ +function getCurveToken(token, chainId = constants_1.ChainId.MAINNET) { + const tokenList = tokens_1.CURVE_TOKENS[chainId]; + return (Object.values(tokenList).find(({ address }) => { var _a; return address.toLowerCase() === ((_a = token.address) === null || _a === void 0 ? void 0 : _a.toLowerCase()); }) || + Object.assign(Object.assign({}, token), { type: 'other' })); +} +exports.getCurveToken = getCurveToken; +/** + * Fetches user created factory pools for curve protocol + */ +function fetchCurveFactoryPools(chainId) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (pools_1.CURVE_FACTORY_SUPPORTED_APIS[chainId] === '') + return []; + const response = yield (0, node_fetch_1.default)(`https://api.curve.fi/api/getPools/${pools_1.CURVE_FACTORY_SUPPORTED_APIS[chainId]}/factory`); + if (!response.ok) + throw new Error('response not ok'); + const allPoolsArray = (yield response.json()); + //filter for low liquidty pool + const filteredLowLiquidityPools = allPoolsArray.data.poolData.filter((item) => item.usdTotal > 100000); + //restructures pools so they fit into curvePool type + const pooList = filteredLowLiquidityPools.map(({ symbol, name, coins, address, implementation, isMetaPool }) => { + var _a, _b; + const tokens = coins.map((token) => { + let currentToken = new token_1.Token(chainId, token.address, parseInt(token.decimals), token.symbol, token.name); + //wraps token if its Native so that it can be matched + if (token.address === '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE') + currentToken = token_1.Token.getNativeWrapper(chainId); + const symbol = currentToken.symbol ? currentToken.symbol : token.symbol; + return { + symbol, + name: symbol, + address: currentToken.address, + decimals: currentToken.decimals, + type: determineTokeType(symbol), + isLPToken: token.isBasePoolLpToken, + }; + }); + const isMeta = isMetaPool || implementation.includes('meta'); + const curvePoolObject = { + id: symbol, + name, + address, + abi: abi_1.CURVE_POOL_ABI_MAP[implementation], + isMeta, + tokens, + }; + //tries to find meta pool tokens + const findPoolTokens = tokens[1] && ((_b = (_a = tokens_1.CURVE_TOKENS[chainId][tokens[1].symbol.toLocaleLowerCase()]) === null || _a === void 0 ? void 0 : _a.poolTokens) === null || _b === void 0 ? void 0 : _b.call(_a)); + //if its meta pool puts token under metaTokens else under underlying tokens + if (findPoolTokens) { + if (isMeta) + curvePoolObject.metaTokens = findPoolTokens; + else + curvePoolObject.underlyingTokens = findPoolTokens; + } + return curvePoolObject; + }); + return pooList; + }); +} +exports.fetchCurveFactoryPools = fetchCurveFactoryPools; +/** + * + * @param pools The list of Curve pools + * @param tokenInAddress Token in address + * @param tokenOutAddress Token out address + * @returns List of potential pools at which the trade can be done + */ +function getRoutablePools(pools, tokenIn, tokenOut, chainId) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + return pools.filter(({ tokens, metaTokens, underlyingTokens, allowsTradingETH }) => { + let tokenInAddress = tokenIn.address; + let tokenOutAddress = tokenOut.address; + // For mainnet, account for ETH/WETH + if (chainId === constants_1.ChainId.MAINNET) { + const isTokenInEther = tokenIn.address.toLowerCase() === tokens_1.TOKENS_MAINNET.eth.address.toLowerCase(); + const isTokenOutEther = tokenOut.address.toLowerCase() === tokens_1.TOKENS_MAINNET.eth.address.toLowerCase(); + tokenInAddress = allowsTradingETH === true && isTokenInEther ? tokens_1.TOKENS_MAINNET.weth.address : tokenIn.address; + tokenOutAddress = allowsTradingETH === true && isTokenOutEther ? tokens_1.TOKENS_MAINNET.weth.address : tokenOut.address; + } + // main tokens + const hasTokenIn = tokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); + const hasTokenOut = tokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); + // Meta tokens in MetaPools [ERC20, [...3PoolTokens]] + const hasMetaTokenIn = metaTokens === null || metaTokens === void 0 ? void 0 : metaTokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); + const hasMetaTokenOut = metaTokens === null || metaTokens === void 0 ? void 0 : metaTokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); + // Underlying tokens, similar to meta tokens + const hasUnderlyingTokenIn = underlyingTokens === null || underlyingTokens === void 0 ? void 0 : underlyingTokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); + const hasUnderlyingTokenOut = underlyingTokens === null || underlyingTokens === void 0 ? void 0 : underlyingTokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); + return ((hasTokenIn || hasUnderlyingTokenIn || hasMetaTokenIn) && + (hasTokenOut || hasUnderlyingTokenOut || hasMetaTokenOut)); + }); + }); +} +exports.getRoutablePools = getRoutablePools; +const usd = [ + 'dai', + 'jpy', + 'aud', + 'dei', + 'home', + 'fiat', + 'alcx', + 'cad', + 'usx', + 'fei', + 'crv', + 'ust', + 'vst', + 'fxs', + 'fox', + 'cvx', + 'angle', + 'gamma', + 'apw', + 'usd', + 'mim', + 'frax', + 'apv', + 'rai', + 'eur', + 'gbp', + 'chf', + 'dola', + 'krw', +]; +const btc = ['btc']; +const eth = ['eth']; +/** + * Returns tokenType based on token symbol + * @param symbol symbol of curve token + * @returns token type of given symbol + */ +function determineTokeType(symbol) { + const symbolLowercased = symbol.toLocaleLowerCase(); + if (eth.includes(symbolLowercased)) + return tokens_1.TokenType.ETH; + if (btc.includes(symbolLowercased)) + return tokens_1.TokenType.BTC; + if (usd.includes(symbolLowercased)) + return tokens_1.TokenType.USD; + else + return tokens_1.TokenType.OTHER; +} +exports.determineTokeType = determineTokeType; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/utils.js.map b/dist/entities/trades/curve/utils.js.map new file mode 100644 index 00000000..1f139664 --- /dev/null +++ b/dist/entities/trades/curve/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/utils.ts"],"names":[],"mappings":";;;;AAAA,oEAA8B;AAE9B,kDAA4C;AAC5C,uCAAmC;AACnC,+BAA0C;AAC1C,mCAAsD;AACtD,qCAAyF;AAGzF;;;;GAIG;AACH,SAAgB,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ts b/dist/entities/trades/gnosis-protocol/CoWTrade.d.ts new file mode 100644 index 00000000..79d839a3 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTrade.d.ts @@ -0,0 +1,171 @@ +import { CowSdk, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk'; +import { CowContext } from '@cowprotocol/cow-sdk/dist/utils/context'; +import { UnsignedOrder } from '@cowprotocol/cow-sdk/dist/utils/sign'; +import { Signer } from '@ethersproject/abstract-signer'; +import { ChainId } from '../../../constants'; +import { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Price } from '../../fractions/price'; +import { Trade } from '../interfaces/trade'; +import { CoWTradeGetBestTradeExactInParams, CoWTradeGetBestTradeExactOutParams, CoWTradeParams } from './types'; +declare enum CowChainId { + MAINNET = 1, + RINKEBY = 4, + GOERLI = 5, + GNOSIS = 100, + SEPOLIA = 11155111 +} +/** + * CoWTrade uses CowFi API to find and route trades through the MEV-protected Gnosis Protocol v2 + */ +export declare class CoWTrade extends Trade { + readonly inputAmountWithoutFee: CurrencyAmount; + readonly outputAmountWithoutFee: CurrencyAmount; + /** + * The original quote from CoW + */ + readonly quote: SimpleGetQuoteResponse; + /** + * Order signature + */ + private orderSignatureInfo?; + /** + * The order + */ + readonly order: Omit; + /** + * The execution price of the trade without CoW fee + */ + readonly executionPriceWithoutFee: Price; + /** + * The Order Id. Obtained and set from after submitting the order from API + */ + orderId?: string; + /** + * The trade fee amount. Fees are paid in sell token + */ + readonly feeAmount: CurrencyAmount; + constructor(params: CoWTradeParams); + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + /** + * Returns the Gnosis Protocol API, with access to low level methods. + * @param quote Quote query params + * @param chainId The chainId, defaults to Mainnet (1) + * @returns + */ + static getCowSdk(chainId?: ChainId, cowContext?: CowContext): CowSdk; + /** + * Fetches the order metadata from the API + * @param orderId The order ID + * @param chainId The chainId, defaults to Mainnet (1) + */ + static getOrderMetadata(orderId: string, chainId?: ChainId): Promise; + /** + * Computes and returns the best trade from Gnosis Protocol API + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Percent} obj.receiver The receiver + * @returns A GPv2 trade if found, otherwise undefined + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver, user, }: CoWTradeGetBestTradeExactInParams): Promise; + /** + * Computes and returns the best trade from Gnosis Protocol API + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @returns A GPv2 trade if found, otherwise undefined + */ + static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver, user, }: CoWTradeGetBestTradeExactOutParams): Promise; + /** + * Signs the order by adding signature + * @param signer The signer + * @returns The current instance + * @throws {CoWTradeError} If the order is missing a receiver + */ + signOrder(signer: Signer, recipient: string): Promise; + /** + * Cancels the current instance order, if submitted + * @param signer The signer + * @returns True if the order was cancelled, false otherwise + * @throws {CoWTradeError} If the order is yet to be submitted + */ + cancelOrder(signer: Signer): Promise; + /** + * Cancels the current instance order, if submitted + * @param orderId The order ID from GPv2 + * @param chainId The chain Id on which the order exists + * @param signer A Signer with ability to sign the payload + * @returns the signing results + */ + static cancelOrder(orderId: string, chainId: ChainId, signer: Signer): Promise; + /** + * Submits the order to GPv2 API + * @returns The order ID from GPv2 + * @throws {CoWTradeError} If the order is missing a signature + */ + submitOrder(): Promise; + /** + * Fetches the order status from the API + * @throws {CoWTradeError} if the order ID is missing + */ + getOrderMetadata(): Promise; + /** + * Gets the app data for Swapr's CoW trade + * @param chainId The chain Id + */ + static getAppData(chainId: ChainId): { + ipfsHashInfo: { + cidV0: string; + appDataHash: string; + }; + content: { + version: string; + appCode: string; + metadata: { + referrer: { + address: string; + version: string; + }; + }; + }; + } | { + ipfsHashInfo: { + cidV0: string; + appDataHash: string; + }; + content: { + version: string; + appCode: string; + metadata: { + referrer: { + address: string; + version: string; + }; + }; + }; + }; + /** + * Returns the vault relayer contract address for the given chain. + * ERC20 tokens must approve this address. + * @param chainId The chain Id + * @returns The vault relayer address or undefined + */ + static getVaultRelayerAddress(chainId: ChainId | CowChainId): string; + /** + * Returns the settlement contract address for the given chain + * @param chainId The chain Id + * @returns The settlement address or undefined + */ + static getSettlementAddress(chainId: ChainId | CowChainId): string; +} +/** + * @deprecated use CoWTrade instead + */ +export declare class GnosisProtocolTrade extends CoWTrade { +} +export {}; diff --git a/dist/entities/trades/gnosis-protocol/CoWTrade.js b/dist/entities/trades/gnosis-protocol/CoWTrade.js new file mode 100644 index 00000000..4b9190d5 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTrade.js @@ -0,0 +1,346 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GnosisProtocolTrade = exports.CoWTrade = void 0; +const tslib_1 = require("tslib"); +const networks_json_1 = tslib_1.__importDefault(require("@cowprotocol/contracts/networks.json")); +const cow_sdk_1 = require("@cowprotocol/cow-sdk"); +const units_1 = require("@ethersproject/units"); +const dayjs_1 = tslib_1.__importDefault(require("dayjs")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../../constants"); +const currency_1 = require("../../currency"); +const currencyAmount_1 = require("../../fractions/currencyAmount"); +const percent_1 = require("../../fractions/percent"); +const price_1 = require("../../fractions/price"); +const tokenAmount_1 = require("../../fractions/tokenAmount"); +const token_1 = require("../../token"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_1 = require("../utils"); +const app_data_json_1 = tslib_1.__importDefault(require("./app-data.json")); +const CoWTradeError_1 = require("./CoWTradeError"); +const ZERO_PERCENT = new percent_1.Percent(constants_1.ZERO, constants_1.ONE); +var CowChainId; +(function (CowChainId) { + CowChainId[CowChainId["MAINNET"] = 1] = "MAINNET"; + CowChainId[CowChainId["RINKEBY"] = 4] = "RINKEBY"; + CowChainId[CowChainId["GOERLI"] = 5] = "GOERLI"; + CowChainId[CowChainId["GNOSIS"] = 100] = "GNOSIS"; + CowChainId[CowChainId["SEPOLIA"] = 11155111] = "SEPOLIA"; +})(CowChainId || (CowChainId = {})); +/** + * CoWTrade uses CowFi API to find and route trades through the MEV-protected Gnosis Protocol v2 + */ +class CoWTrade extends trade_1.Trade { + constructor(params) { + var _a; + const { chainId, feeAmount, inputAmount, maximumSlippage, outputAmount, quote, tradeType, fee } = params; + (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(inputAmount.currency, outputAmount.currency), 'SAME_TOKEN'); + const approveAddress = CoWTrade.getVaultRelayerAddress(chainId); + (0, tiny_invariant_1.default)(approveAddress, 'Missing GPv2VaultRelayer address'); + super({ + details: undefined, + type: tradeType, + inputAmount, + outputAmount, + executionPrice: new price_1.Price({ + baseCurrency: inputAmount.currency, + quoteCurrency: outputAmount.currency, + denominator: inputAmount.raw, + numerator: outputAmount.raw, + }), + maximumSlippage, + chainId, + priceImpact: new percent_1.Percent('0'), + platform: routable_platform_1.RoutablePlatform.COW, + fee, + approveAddress, + }); + this.quote = quote; + // construct the order + this.order = Object.assign(Object.assign({}, quote.quote), { validTo: parseInt(quote.quote.validTo), receiver: (_a = quote.quote.receiver) !== null && _a !== void 0 ? _a : quote.from }); + this.executionPriceWithoutFee = new price_1.Price({ + baseCurrency: inputAmount.currency, + quoteCurrency: outputAmount.currency, + denominator: inputAmount.subtract(feeAmount).raw, + numerator: outputAmount.raw, + }); + this.inputAmountWithoutFee = this.inputAmount.subtract(feeAmount); + this.outputAmountWithoutFee = this.outputAmount; + this.feeAmount = feeAmount; + } + minimumAmountOut() { + return this.outputAmount; + } + maximumAmountIn() { + return this.inputAmount; + } + /** + * Returns the Gnosis Protocol API, with access to low level methods. + * @param quote Quote query params + * @param chainId The chainId, defaults to Mainnet (1) + * @returns + */ + static getCowSdk(chainId = constants_1.ChainId.MAINNET, cowContext) { + return new cow_sdk_1.CowSdk(chainId, Object.assign(Object.assign({}, cowContext), { + // Always append correct app data + appDataHash: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash }), { + loglevel: 'debug', + }); + } + /** + * Fetches the order metadata from the API + * @param orderId The order ID + * @param chainId The chainId, defaults to Mainnet (1) + */ + static getOrderMetadata(orderId, chainId = constants_1.ChainId.MAINNET) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + return CoWTrade.getCowSdk(chainId).cowApi.getOrder(orderId); + }); + } + /** + * Computes and returns the best trade from Gnosis Protocol API + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @param {Percent} obj.receiver The receiver + * @returns A GPv2 trade if found, otherwise undefined + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver, user, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Try to extract the chain ID from the tokens + const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); + // Require the chain ID + (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.COW.supportsChain(chainId), 'CHAIN_ID'); + const tokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); + const tokenOut = currencyOut; + const amountInBN = (0, units_1.parseUnits)(currencyAmountIn.toSignificant(), tokenIn.decimals); + (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); + // const etherOut = this.outputAmount.currency === nativeCurrency + // the router does not support both ether in and out + // invariant(!(etherIn && etherOut), 'ETHER_IN_OUT') + try { + const quoteResponse = yield CoWTrade.getCowSdk(chainId).cowApi.getQuote({ + appData: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash, + buyToken: tokenOut.address, + kind: cow_sdk_1.OrderKind.SELL, + from: user, + receiver, + validTo: (0, dayjs_1.default)().add(1, 'h').unix(), + partiallyFillable: false, + sellAmountBeforeFee: amountInBN.toString(), + sellToken: tokenIn.address, + }); + // CoW Swap doesn't charge any fee + const fee = ZERO_PERCENT; + const feeAmount = currency_1.Currency.isNative(currencyAmountIn.currency) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(constants_1.ZERO, chainId) + : new tokenAmount_1.TokenAmount(currencyAmountIn.currency, constants_1.ZERO); + return new CoWTrade({ + chainId, + maximumSlippage, + tradeType: constants_1.TradeType.EXACT_INPUT, + inputAmount: currencyAmountIn, + outputAmount: currency_1.Currency.isNative(currencyOut) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.buyAmount.toString(), chainId) + : new tokenAmount_1.TokenAmount(tokenOut, quoteResponse.quote.buyAmount.toString()), + fee, + feeAmount, + quote: quoteResponse, + }); + } + catch (error) { + console.error('could not fetch Cow trade', error); + return; + } + }); + } + /** + * Computes and returns the best trade from Gnosis Protocol API + * @param {object} obj options + * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token + * @param {Currency} obj.currencyOut the currency out - buy token + * @param {Percent} obj.maximumSlippage Maximum slippage + * @returns A GPv2 trade if found, otherwise undefined + */ + static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver, user, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Try to extract the chain ID from the tokens + const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); + // Require the chain ID + (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.COW.supportsChain(chainId), 'CHAIN_ID'); + const tokenIn = (0, utils_1.wrappedCurrency)(currencyIn, chainId); + const tokenOut = currencyAmountOut.currency; + const amountOutBN = (0, units_1.parseUnits)(currencyAmountOut.toSignificant(), tokenOut.decimals); + (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); + try { + const cowSdk = CoWTrade.getCowSdk(chainId); + const quoteResponse = yield cowSdk.cowApi.getQuote({ + appData: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash, + buyAmountAfterFee: amountOutBN.toString(), + buyToken: tokenOut.address, + from: user, + kind: cow_sdk_1.OrderKind.BUY, + sellToken: tokenIn.address, + partiallyFillable: false, + receiver, + validTo: (0, dayjs_1.default)().add(1, 'h').unix(), // Order expires in 1 hour + }); + const inputAmount = currency_1.Currency.isNative(tokenIn) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.sellAmount.toString(), chainId) + : new tokenAmount_1.TokenAmount(tokenIn, quoteResponse.quote.sellAmount.toString()); + const outputAmount = currency_1.Currency.isNative(currencyAmountOut.currency) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.buyAmount.toString(), chainId) + : new tokenAmount_1.TokenAmount(tokenOut, quoteResponse.quote.buyAmount.toString()); + // CoW Swap doesn't charge any fee + const fee = ZERO_PERCENT; + const feeAmount = currency_1.Currency.isNative(currencyIn) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(constants_1.ZERO, chainId) + : new tokenAmount_1.TokenAmount(currencyIn, constants_1.ZERO); + return new CoWTrade({ + chainId, + maximumSlippage, + tradeType: constants_1.TradeType.EXACT_OUTPUT, + inputAmount, + outputAmount, + fee, + feeAmount, + quote: quoteResponse, + }); + } + catch (error) { + console.error('could not fetch COW trade', error); + return; + } + }); + } + /** + * Signs the order by adding signature + * @param signer The signer + * @returns The current instance + * @throws {CoWTradeError} If the order is missing a receiver + */ + signOrder(signer, recipient) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (!recipient && !this.order.receiver) { + throw new CoWTradeError_1.CoWTradeError('Missing order receiver'); + } + if (recipient) + this.order.receiver = recipient; + const signOrderResults = yield CoWTrade.getCowSdk(this.chainId, { + signer, + }).signOrder(this.order); + if (!signOrderResults.signature) { + throw new CoWTradeError_1.CoWTradeError('Order was not signed'); + } + this.orderSignatureInfo = signOrderResults; + return this; + }); + } + /** + * Cancels the current instance order, if submitted + * @param signer The signer + * @returns True if the order was cancelled, false otherwise + * @throws {CoWTradeError} If the order is yet to be submitted + */ + cancelOrder(signer) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (!this.orderId) { + throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order ID'); + } + return CoWTrade.cancelOrder(this.orderId, this.chainId, signer); + }); + } + /** + * Cancels the current instance order, if submitted + * @param orderId The order ID from GPv2 + * @param chainId The chain Id on which the order exists + * @param signer A Signer with ability to sign the payload + * @returns the signing results + */ + static cancelOrder(orderId, chainId, signer) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const cowSdk = CoWTrade.getCowSdk(chainId, { + signer, + }); + const orderCancellationSignature = yield cowSdk.signOrderCancellation(orderId); + if (!orderCancellationSignature.signature) { + throw new CoWTradeError_1.CoWTradeError('Order cancellation was not signed'); + } + return cowSdk.cowApi.sendSignedOrderCancellation({ + cancellation: { + signature: orderCancellationSignature.signature, + signingScheme: orderCancellationSignature.signingScheme, + }, + chainId: chainId, + owner: yield signer.getAddress(), + }); + }); + } + /** + * Submits the order to GPv2 API + * @returns The order ID from GPv2 + * @throws {CoWTradeError} If the order is missing a signature + */ + submitOrder() { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (!this.orderSignatureInfo) { + throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order signature'); + } + const { from, id: quoteId } = this.quote; + const sendOrderParams = { + order: Object.assign(Object.assign({}, this.order), { quoteId, signature: this.orderSignatureInfo.signature, signingScheme: this.orderSignatureInfo.signingScheme }), + owner: from, + }; + this.orderId = yield CoWTrade.getCowSdk(this.chainId).cowApi.sendOrder(sendOrderParams); + return this.orderId; + }); + } + /** + * Fetches the order status from the API + * @throws {CoWTradeError} if the order ID is missing + */ + getOrderMetadata() { + if (!this.orderId) { + throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order ID'); + } + return CoWTrade.getOrderMetadata(this.orderId, this.chainId); + } + /** + * Gets the app data for Swapr's CoW trade + * @param chainId The chain Id + */ + static getAppData(chainId) { + return app_data_json_1.default[chainId]; + } + /** + * Returns the vault relayer contract address for the given chain. + * ERC20 tokens must approve this address. + * @param chainId The chain Id + * @returns The vault relayer address or undefined + */ + static getVaultRelayerAddress(chainId) { + var _a; + const GPv2VaultRelayer = networks_json_1.default.GPv2VaultRelayer; + return (_a = GPv2VaultRelayer[chainId]) === null || _a === void 0 ? void 0 : _a.address; + } + /** + * Returns the settlement contract address for the given chain + * @param chainId The chain Id + * @returns The settlement address or undefined + */ + static getSettlementAddress(chainId) { + var _a; + const GPv2Settlement = networks_json_1.default.GPv2Settlement; + return (_a = GPv2Settlement[chainId]) === null || _a === void 0 ? void 0 : _a.address; + } +} +exports.CoWTrade = CoWTrade; +/** + * @deprecated use CoWTrade instead + */ +class GnosisProtocolTrade extends CoWTrade { +} +exports.GnosisProtocolTrade = GnosisProtocolTrade; +//# sourceMappingURL=CoWTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTrade.js.map b/dist/entities/trades/gnosis-protocol/CoWTrade.js.map new file mode 100644 index 00000000..04ad7ecc --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTrade.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CoWTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/CoWTrade.ts"],"names":[],"mappings":";;;;AAAA,iGAAmE;AACnE,kDAAgF;AAMhF,gDAAiD;AACjD,0DAAyB;AACzB,4EAAsC;AAEtC,kDAAkE;AAClE,6CAAyC;AACzC,mEAA+D;AAC/D,qDAAiD;AACjD,iDAA6C;AAC7C,6DAAyD;AACzD,uCAAmD;AACnD,+CAA2C;AAC3C,4DAAuD;AACvD,oCAAyD;AACzD,4EAAwC;AACxC,mDAA+C;AAG/C,MAAM,YAAY,GAAG,IAAI,iBAAO,CAAC,gBAAI,EAAE,eAAG,CAAC,CAAA;AAC3C,IAAK,UAMJ;AAND,WAAK,UAAU;IACb,iDAAW,CAAA;IACX,iDAAW,CAAA;IACX,+C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/CoWTradeError.d.ts b/dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts new file mode 100644 index 00000000..70d11e1f --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts @@ -0,0 +1,6 @@ +/** + * CoWTradeError + */ +export declare class CoWTradeError extends Error { + constructor(message: string); +} diff --git a/dist/entities/trades/gnosis-protocol/CoWTradeError.js b/dist/entities/trades/gnosis-protocol/CoWTradeError.js new file mode 100644 index 00000000..6b9083d9 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTradeError.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CoWTradeError = void 0; +/** + * CoWTradeError + */ +class CoWTradeError extends Error { + constructor(message) { + super(message); + this.name = 'CoWTradeError'; + } +} +exports.CoWTradeError = CoWTradeError; +//# sourceMappingURL=CoWTradeError.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map b/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map new file mode 100644 index 00000000..56c3405a --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CoWTradeError.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/CoWTradeError.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC7B,CAAC;CACF;AALD,sCAKC"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/app-data.json b/dist/entities/trades/gnosis-protocol/app-data.json new file mode 100644 index 00000000..1dbcd5f9 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/app-data.json @@ -0,0 +1,34 @@ +{ + "1": { + "ipfsHashInfo": { + "cidV0": "QmP8cqtJzuMkMh1iUUDZgA1ZrusEyvFf3hZvJgHunoU4cQ", + "appDataHash": "0x0bc69b825ad473b704d0746eb61e98f8716b180004fe42dd902a089e605659a9" + }, + "content": { + "version": "0.4.0", + "appCode": "Swapr", + "metadata": { + "referrer": { + "address": "0x519b70055af55A007110B4Ff99b0eA33071c720a", + "version": "0.1.0" + } + } + } + }, + "100": { + "ipfsHashInfo": { + "cidV0": "QmVcnb4PH9dXo2tNT2yCDuJKfHQW4HkN5kzJfipVyV1nwF", + "appDataHash": "0x6c240279a61e99270495394a46ace74065b511f8d3e6899f8ce87bbaefab21de" + }, + "content": { + "version": "0.4.0", + "appCode": "Swapr", + "metadata": { + "referrer": { + "address": "0xe716ec63c5673b3a4732d22909b38d779fa47c3f", + "version": "0.1.0" + } + } + } + } +} diff --git a/dist/entities/trades/gnosis-protocol/index.d.ts b/dist/entities/trades/gnosis-protocol/index.d.ts new file mode 100644 index 00000000..e994d3b4 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/index.d.ts @@ -0,0 +1,2 @@ +export * from './CoWTrade'; +export * from './types'; diff --git a/dist/entities/trades/gnosis-protocol/index.js b/dist/entities/trades/gnosis-protocol/index.js new file mode 100644 index 00000000..f80d0389 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./CoWTrade"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/index.js.map b/dist/entities/trades/gnosis-protocol/index.js.map new file mode 100644 index 00000000..66c5baa9 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/types.d.ts b/dist/entities/trades/gnosis-protocol/types.d.ts new file mode 100644 index 00000000..6ae5fa60 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/types.d.ts @@ -0,0 +1,30 @@ +import { ApiOrderStatus, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk'; +import type { ChainId, TradeType } from '../../../constants'; +import type { Currency } from '../../currency'; +import type { CurrencyAmount } from '../../fractions/currencyAmount'; +import type { Percent } from '../../fractions/percent'; +export interface CoWTradeParams { + inputAmount: CurrencyAmount; + outputAmount: CurrencyAmount; + maximumSlippage: Percent; + tradeType: TradeType; + chainId: ChainId; + fee?: Percent; + feeAmount: CurrencyAmount; + quote: SimpleGetQuoteResponse; +} +export interface CoWTradeGetBestTradeExactInParams { + currencyAmountIn: CurrencyAmount; + currencyOut: Currency; + maximumSlippage: Percent; + receiver: string; + user: string; +} +export interface CoWTradeGetBestTradeExactOutParams { + currencyAmountOut: CurrencyAmount; + currencyIn: Currency; + maximumSlippage: Percent; + receiver: string; + user: string; +} +export type CoWTradeApiOrderStatus = ApiOrderStatus; diff --git a/dist/entities/trades/gnosis-protocol/types.js b/dist/entities/trades/gnosis-protocol/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/types.js.map b/dist/entities/trades/gnosis-protocol/types.js.map new file mode 100644 index 00000000..10b35df2 --- /dev/null +++ b/dist/entities/trades/gnosis-protocol/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/index.d.ts b/dist/entities/trades/index.d.ts new file mode 100644 index 00000000..4715eb6c --- /dev/null +++ b/dist/entities/trades/index.d.ts @@ -0,0 +1,11 @@ +export * from './0x'; +export * from './curve'; +export * from './gnosis-protocol'; +export * from './interfaces/trade'; +export * from './interfaces/trade-options'; +export * from './OneInch'; +export { BaseRoutablePlatform, RoutablePlatform, UniswapV2RoutablePlatform } from './routable-platform'; +export * from './swapr-v3'; +export * from './uniswap'; +export * from './uniswap-v2'; +export * from './velodrome'; diff --git a/dist/entities/trades/index.js b/dist/entities/trades/index.js new file mode 100644 index 00000000..b205cd2e --- /dev/null +++ b/dist/entities/trades/index.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UniswapV2RoutablePlatform = exports.RoutablePlatform = exports.BaseRoutablePlatform = void 0; +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./0x"), exports); +tslib_1.__exportStar(require("./curve"), exports); +tslib_1.__exportStar(require("./gnosis-protocol"), exports); +tslib_1.__exportStar(require("./interfaces/trade"), exports); +tslib_1.__exportStar(require("./interfaces/trade-options"), exports); +tslib_1.__exportStar(require("./OneInch"), exports); +var routable_platform_1 = require("./routable-platform"); +Object.defineProperty(exports, "BaseRoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.BaseRoutablePlatform; } }); +Object.defineProperty(exports, "RoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.RoutablePlatform; } }); +Object.defineProperty(exports, "UniswapV2RoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.UniswapV2RoutablePlatform; } }); +tslib_1.__exportStar(require("./swapr-v3"), exports); +tslib_1.__exportStar(require("./uniswap"), exports); +tslib_1.__exportStar(require("./uniswap-v2"), exports); +tslib_1.__exportStar(require("./velodrome"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/index.js.map b/dist/entities/trades/index.js.map new file mode 100644 index 00000000..247fb4d2 --- /dev/null +++ b/dist/entities/trades/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/trades/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAoB;AACpB,kDAAuB;AACvB,4DAAiC;AACjC,6DAAkC;AAClC,qEAA0C;AAC1C,oDAAyB;AACzB,yDAAuG;AAA9F,yHAAA,oBAAoB,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAAE,8HAAA,yBAAyB,OAAA;AAC1E,qDAA0B;AAC1B,oDAAyB;AACzB,uDAA4B;AAC5B,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade-options.d.ts b/dist/entities/trades/interfaces/trade-options.d.ts new file mode 100644 index 00000000..72a4417e --- /dev/null +++ b/dist/entities/trades/interfaces/trade-options.d.ts @@ -0,0 +1,4 @@ +export interface TradeOptions { + recipient: string; + ttl?: number; +} diff --git a/dist/entities/trades/interfaces/trade-options.js b/dist/entities/trades/interfaces/trade-options.js new file mode 100644 index 00000000..2b92bf5e --- /dev/null +++ b/dist/entities/trades/interfaces/trade-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=trade-options.js.map \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade-options.js.map b/dist/entities/trades/interfaces/trade-options.js.map new file mode 100644 index 00000000..2c8d8c29 --- /dev/null +++ b/dist/entities/trades/interfaces/trade-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"trade-options.js","sourceRoot":"","sources":["../../../../src/entities/trades/interfaces/trade-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade.d.ts b/dist/entities/trades/interfaces/trade.d.ts new file mode 100644 index 00000000..bef25f09 --- /dev/null +++ b/dist/entities/trades/interfaces/trade.d.ts @@ -0,0 +1,92 @@ +import { BigNumber } from '@ethersproject/bignumber'; +import type { UnsignedTransaction } from '@ethersproject/transactions'; +import type { ChainId, TradeType } from '../../../constants'; +import type { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Percent } from '../../fractions/percent'; +import type { Price } from '../../fractions/price'; +import type { Breakdown } from '../../platforms-breakdown'; +import type { Route } from '../../route'; +import type { RoutablePlatform } from '../routable-platform'; +import type { TradeOptions } from './trade-options'; +export type Details = Route | Breakdown | undefined; +export interface TradeConstructorParams { + details: Details; + type: TradeType; + inputAmount: CurrencyAmount; + outputAmount: CurrencyAmount; + executionPrice: Price; + maximumSlippage: Percent; + priceImpact: Percent; + chainId: ChainId; + platform: RoutablePlatform; + fee?: Percent; + approveAddress: string; + estimatedGas?: BigNumber; +} +/** + * Represents a base Trade class. + * Extend this class to create more trades to the Eco Router + */ +export declare abstract class Trade { + readonly details: Details; + /** + * The input amount of the trade. + */ + readonly tradeType: TradeType; + /** + * The input amount of the trade. + */ + readonly inputAmount: CurrencyAmount; + /** + * The output amount of the trade. + */ + readonly outputAmount: CurrencyAmount; + /** + * The maximum slippage allowed in the trade. + */ + readonly maximumSlippage: Percent; + /** + * The execution price of the trade. + */ + readonly executionPrice: Price; + /** + * The price impact of the trade, as a percentage. + */ + readonly priceImpact: Percent; + /** + * The chainId of the trade. + */ + readonly chainId: ChainId; + /** + * A platform that this trade is executed on. + */ + readonly platform: RoutablePlatform; + /** + * An address the EOA must approve to spend its tokenIn + */ + readonly approveAddress: string; + /** + * The trade fee + */ + readonly fee: Percent; + /** + * Estimated gas cost of the trade + */ + readonly estimatedGas?: BigNumber; + protected constructor({ details, type, inputAmount, outputAmount, executionPrice, maximumSlippage, priceImpact, chainId, platform, fee, approveAddress, estimatedGas, }: TradeConstructorParams); + /** + * Get the minimum amount that must be received from this trade for the given slippage tolerance + */ + abstract minimumAmountOut(): CurrencyAmount; + /** + * Get the maximum amount in that can be spent via this trade for the given slippage tolerance + */ + abstract maximumAmountIn(): CurrencyAmount; +} +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +export declare abstract class TradeWithSwapTransaction extends Trade { + abstract swapTransaction(options: TradeOptions): Promise; +} diff --git a/dist/entities/trades/interfaces/trade.js b/dist/entities/trades/interfaces/trade.js new file mode 100644 index 00000000..7d28fb5a --- /dev/null +++ b/dist/entities/trades/interfaces/trade.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TradeWithSwapTransaction = exports.Trade = void 0; +const percent_1 = require("../../fractions/percent"); +/** + * Represents a base Trade class. + * Extend this class to create more trades to the Eco Router + */ +class Trade { + constructor({ details, type, inputAmount, outputAmount, executionPrice, maximumSlippage, priceImpact, chainId, platform, fee = new percent_1.Percent('0'), approveAddress, estimatedGas, }) { + this.details = details; + this.tradeType = type; + this.inputAmount = inputAmount; + this.maximumSlippage = maximumSlippage; + this.outputAmount = outputAmount; + this.executionPrice = executionPrice; + this.priceImpact = priceImpact; + this.chainId = chainId; + this.platform = platform; + this.fee = fee; + this.approveAddress = approveAddress; + this.estimatedGas = estimatedGas; + } +} +exports.Trade = Trade; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +class TradeWithSwapTransaction extends Trade { +} +exports.TradeWithSwapTransaction = TradeWithSwapTransaction; +//# sourceMappingURL=trade.js.map \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade.js.map b/dist/entities/trades/interfaces/trade.js.map new file mode 100644 index 00000000..be3f8f5a --- /dev/null +++ b/dist/entities/trades/interfaces/trade.js.map @@ -0,0 +1 @@ +{"version":3,"file":"trade.js","sourceRoot":"","sources":["../../../../src/entities/trades/interfaces/trade.ts"],"names":[],"mappings":";;;AAKA,qDAAiD;AAwBjD;;;GAGG;AACH,MAAsB,KAAK;IA+CzB,YAAsB,EACpB,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,EACX,OAAO,EACP,QAAQ,EACR,GAAG,GAAG,IAAI,iBAAO,CAAC,GAAG,CAAC,EACtB,cAAc,EACd,YAAY,GACW;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CAWF;AApFD,sBAoFC;AAED;;;GAGG;AACH,MAAsB,wBAAyB,SAAQ,KAAK;CAE3D;AAFD,4DAEC"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts b/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts new file mode 100644 index 00000000..a16140f4 --- /dev/null +++ b/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts @@ -0,0 +1,31 @@ +import { ChainId } from '../../../constants'; +export interface IBaseRoutablePlatform { + chainIds: ChainId[]; + name: string; +} +/** + * `BaseRoutablePlatform` should be used new platforms through which Swapr can route trades. + * @implements IBaseRoutablePlatform + */ +export declare abstract class BaseRoutablePlatform implements IBaseRoutablePlatform { + /** + * @returns List of chainIds supported by the platform + */ + readonly chainIds: ChainId[]; + /** + * @property The name of the platform. + */ + readonly name: string; + /** + * Create a new instance of the platform. + * @param chainIds list of chainIds to check + * @param name name of the platform + */ + constructor(chainIds: ChainId[], name: string); + /** + * Checks if the platform is compatible with the given chainId. + * @param chainId The chainId to check + * @returns whether the platform supports the given chainId + */ + supportsChain(chainId: ChainId): boolean; +} diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js new file mode 100644 index 00000000..055d4056 --- /dev/null +++ b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BaseRoutablePlatform = void 0; +/** + * `BaseRoutablePlatform` should be used new platforms through which Swapr can route trades. + * @implements IBaseRoutablePlatform + */ +class BaseRoutablePlatform { + /** + * Create a new instance of the platform. + * @param chainIds list of chainIds to check + * @param name name of the platform + */ + constructor(chainIds, name) { + this.chainIds = chainIds; + this.name = name; + } + /** + * Checks if the platform is compatible with the given chainId. + * @param chainId The chainId to check + * @returns whether the platform supports the given chainId + */ + supportsChain(chainId) { + return this.chainIds.includes(chainId); + } +} +exports.BaseRoutablePlatform = BaseRoutablePlatform; +//# sourceMappingURL=BaseRoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map new file mode 100644 index 00000000..f5c1cec6 --- /dev/null +++ b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BaseRoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/BaseRoutablePlatform.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,MAAsB,oBAAoB;IAUxC;;;;OAIG;IACH,YAAmB,QAAmB,EAAE,IAAY;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED;;;;OAIG;IACI,aAAa,CAAC,OAAgB;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IACxC,CAAC;CACF;AA5BD,oDA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.d.ts b/dist/entities/trades/routable-platform/RoutablePlatform.d.ts new file mode 100644 index 00000000..8b040406 --- /dev/null +++ b/dist/entities/trades/routable-platform/RoutablePlatform.d.ts @@ -0,0 +1,17 @@ +import { BaseRoutablePlatform } from './BaseRoutablePlatform'; +/** + * A platform to which Swapr can route through. + */ +export declare class RoutablePlatform extends BaseRoutablePlatform { + static readonly ZEROX: RoutablePlatform; + static readonly ONE_INCH: RoutablePlatform; + static readonly COW: RoutablePlatform; + static readonly CURVE: RoutablePlatform; + /** + * @deprecated Use {@link RoutablePlatform.COW} instead. + */ + static readonly GNOSIS_PROTOCOL: RoutablePlatform; + static readonly UNISWAP: RoutablePlatform; + static readonly VELODROME: RoutablePlatform; + static readonly SWAPR_V3: RoutablePlatform; +} diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.js b/dist/entities/trades/routable-platform/RoutablePlatform.js new file mode 100644 index 00000000..9160a1cb --- /dev/null +++ b/dist/entities/trades/routable-platform/RoutablePlatform.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RoutablePlatform = void 0; +const constants_1 = require("../../../constants"); +const BaseRoutablePlatform_1 = require("./BaseRoutablePlatform"); +/** + * A platform to which Swapr can route through. + */ +class RoutablePlatform extends BaseRoutablePlatform_1.BaseRoutablePlatform { +} +exports.RoutablePlatform = RoutablePlatform; +RoutablePlatform.ZEROX = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.POLYGON, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.BSC_MAINNET, constants_1.ChainId.OPTIMISM_MAINNET], '0x'); +RoutablePlatform.ONE_INCH = new RoutablePlatform([ + constants_1.ChainId.MAINNET, + constants_1.ChainId.ARBITRUM_ONE, + constants_1.ChainId.POLYGON, + constants_1.ChainId.OPTIMISM_MAINNET, + constants_1.ChainId.GNOSIS, + constants_1.ChainId.BSC_MAINNET, + constants_1.ChainId.ZK_SYNC_ERA_MAINNET, +], '1Inch'); +RoutablePlatform.COW = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.GNOSIS], 'CoW'); +RoutablePlatform.CURVE = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.GNOSIS], 'Curve'); +/** + * @deprecated Use {@link RoutablePlatform.COW} instead. + */ +RoutablePlatform.GNOSIS_PROTOCOL = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.GNOSIS], 'CoW'); +RoutablePlatform.UNISWAP = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.POLYGON, constants_1.ChainId.OPTIMISM_MAINNET], 'Uniswap'); +RoutablePlatform.VELODROME = new RoutablePlatform([constants_1.ChainId.OPTIMISM_MAINNET], 'Velodrome'); +RoutablePlatform.SWAPR_V3 = new RoutablePlatform([constants_1.ChainId.GNOSIS], 'Swapr V3'); +//# sourceMappingURL=RoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.js.map b/dist/entities/trades/routable-platform/RoutablePlatform.js.map new file mode 100644 index 00000000..91b68143 --- /dev/null +++ b/dist/entities/trades/routable-platform/RoutablePlatform.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/RoutablePlatform.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,iEAA6D;AAE7D;;GAEG;AACH,MAAa,gBAAiB,SAAQ,2CAAoB;;AAA1D,4CA8BC;AA7BwB,sBAAK,GAAG,IAAI,gBAAgB,CACjD,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,WAAW,EAAE,mBAAO,CAAC,gBAAgB,CAAC,EACvG,IAAI,CACL,CAAA;AACsB,yBAAQ,GAAG,IAAI,gBAAgB,CACpD;IACE,mBAAO,CAAC,OAAO;IACf,mBAAO,CAAC,YAAY;IACpB,mBAAO,CAAC,OAAO;IACf,mBAAO,CAAC,gBAAgB;IACxB,mBAAO,CAAC,MAAM;IACd,mBAAO,CAAC,WAAW;IACnB,mBAAO,CAAC,mBAAmB;CAC5B,EACD,OAAO,CACR,CAAA;AACsB,oBAAG,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;AACpE,sBAAK,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;AACrH;;GAEG;AACoB,gCAAe,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;AAChF,wBAAO,GAAG,IAAI,gBAAgB,CACnD,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,gBAAgB,CAAC,EAClF,SAAS,CACV,CAAA;AAEsB,0BAAS,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC,CAAA;AACzE,yBAAQ,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts new file mode 100644 index 00000000..2a5a278b --- /dev/null +++ b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts @@ -0,0 +1,80 @@ +import { BigintIsh, ChainId } from '../../../constants'; +import { BaseRoutablePlatform } from './BaseRoutablePlatform'; +export interface UniswapV2RoutablePlatformParams { + /** + * The chainIds this platform supports + */ + chainIds: ChainId[]; + /** + * The name of the platform. + */ + name: string; + /** + * List of factory addresses, one for each chainId. + */ + factoryAddress: { + [supportedChainId in ChainId]?: string; + }; + /** + * List of router addresses, one for each chainId. + */ + routerAddress: { + [supportedChainId in ChainId]?: string; + }; + /** + * List of subgraph endpoints, one for each chainId. + */ + subgraphEndpoint?: { + [supportedChainId in ChainId]?: string; + }; + /** + * Initial code hash + */ + initCodeHash: string; + /** + * The default swap fee for this platform. + */ + defaultSwapFee: BigintIsh; +} +/** + * A Uniswap V2 platform to which Swapr can route through. + */ +export declare class UniswapV2RoutablePlatform extends BaseRoutablePlatform { + readonly factoryAddress: { + [supportedChainId in ChainId]?: string; + }; + readonly routerAddress: { + [supportedChainId in ChainId]?: string; + }; + readonly subgraphEndpoint: { + [supportedChainId in ChainId]?: string; + }; + readonly initCodeHash: string; + readonly defaultSwapFee: BigintIsh; + static readonly BAOSWAP: UniswapV2RoutablePlatform; + /** + * @see https://docs.biswap.org/biswap/general-information/biswap-smart-contracts for smart contract info + * @see https://bscscan.com/address/0x858E3312ed3A876947EA49d572A7C42DE08af7EE#readContract (Factor address) for INIT_CODE_HASH + * @see https://github.com/biswap-org/core/blob/78a67b2bf9dccc551adf91b0529aec6df9eb9b27/contracts/BiswapPair.sol#L29 for swapFee default value + * @see https://thegraph.com/hosted-service/subgraph/unchase/biswap for Subraph Endpoint + */ + static readonly BISWAP: UniswapV2RoutablePlatform; + static readonly DFYN: UniswapV2RoutablePlatform; + static readonly HONEYSWAP: UniswapV2RoutablePlatform; + static readonly LEVINSWAP: UniswapV2RoutablePlatform; + static readonly PANCAKESWAP: UniswapV2RoutablePlatform; + static readonly QUICKSWAP: UniswapV2RoutablePlatform; + static readonly SUSHISWAP: UniswapV2RoutablePlatform; + static readonly SWAPR: UniswapV2RoutablePlatform; + static readonly UNISWAP: UniswapV2RoutablePlatform; + /** + * Create a new UniswapV2RoutablePlatform instance. + */ + constructor({ chainIds, name, factoryAddress, routerAddress, initCodeHash, defaultSwapFee, subgraphEndpoint, }: UniswapV2RoutablePlatformParams); + /** + * Check if the platform supports the given chain + * @param chainId The chainId of the desired platform + * @returns Whether the platform supports the given chain + */ + supportsChain(chainId: ChainId): boolean; +} diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js new file mode 100644 index 00000000..004e249d --- /dev/null +++ b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js @@ -0,0 +1,201 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UniswapV2RoutablePlatform = void 0; +const constants_1 = require("@ethersproject/constants"); +const constants_2 = require("../../../constants"); +const BaseRoutablePlatform_1 = require("./BaseRoutablePlatform"); +const BAOSWAP_FACTORY_ADDRESS = '0x45de240fbe2077dd3e711299538a09854fae9c9b'; +const BISWAP_FACTORY_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x858E3312ed3A876947EA49d572A7C42DE08af7EE' }; +const DFYN_FACTORY_ADDRESS = '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B'; +const HONEYSWAP_FACTORY_ADDRESS = '0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7'; +const LEVINSWAP_FACTORY_ADDRESS = '0x965769C9CeA8A7667246058504dcdcDb1E2975A5'; +const PANCAKESWAP_FACTORY_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73' }; +const QUICKSWAP_FACTORY_ADDRESS = '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32'; +const SUSHISWAP_FACTORY_ADDRESS = { + [constants_2.ChainId.MAINNET]: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac', + [constants_2.ChainId.RINKEBY]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', + [constants_2.ChainId.XDAI]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', + [constants_2.ChainId.ARBITRUM_ONE]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', + [constants_2.ChainId.POLYGON]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', + [constants_2.ChainId.BSC_MAINNET]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', +}; +const UNISWAP_FACTORY_ADDRESS = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f'; +const BAOSWAP_ROUTER_ADDRESS = '0x6093AeBAC87d62b1A5a4cEec91204e35020E38bE'; +const BISWAP_ROUTER_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x3a6d8cA21D1CF76F653A67577FA0D27453350dD8' }; +const DFYN_ROUTER_ADDRESS = '0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429'; +const HONEYSWAP_ROUTER_ADDRESS = '0x1C232F01118CB8B424793ae03F870aa7D0ac7f77'; +const LEVINSWAP_ROUTER_ADDRESS = '0xb18d4f69627F8320619A696202Ad2C430CeF7C53'; +const PANCAKESWAP_ROUTER_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x10ED43C718714eb63d5aA57B78B54704E256024E' }; +const QUICKSWAP_ROUTER_ADDRESS = '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff'; +const SUSHISWAP_ROUTER_ADDRESS = { + [constants_2.ChainId.MAINNET]: '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F', + [constants_2.ChainId.RINKEBY]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', + [constants_2.ChainId.XDAI]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', + [constants_2.ChainId.ARBITRUM_ONE]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', + [constants_2.ChainId.POLYGON]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', + [constants_2.ChainId.BSC_MAINNET]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', +}; +const UNISWAP_ROUTER_ADDRESS = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'; +/** + * A Uniswap V2 platform to which Swapr can route through. + */ +class UniswapV2RoutablePlatform extends BaseRoutablePlatform_1.BaseRoutablePlatform { + /** + * Create a new UniswapV2RoutablePlatform instance. + */ + constructor({ chainIds, name, factoryAddress, routerAddress, initCodeHash, defaultSwapFee, subgraphEndpoint, }) { + super(chainIds, name); + this.factoryAddress = factoryAddress; + this.routerAddress = routerAddress; + this.initCodeHash = initCodeHash; + this.defaultSwapFee = defaultSwapFee; + this.subgraphEndpoint = subgraphEndpoint || {}; + } + /** + * Check if the platform supports the given chain + * @param chainId The chainId of the desired platform + * @returns Whether the platform supports the given chain + */ + supportsChain(chainId) { + return (this.chainIds.includes(chainId) && + this.factoryAddress[chainId] !== constants_1.AddressZero && + this.routerAddress[chainId] !== constants_1.AddressZero); + } +} +exports.UniswapV2RoutablePlatform = UniswapV2RoutablePlatform; +UniswapV2RoutablePlatform.BAOSWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.XDAI], + name: 'Baoswap', + factoryAddress: { + [constants_2.ChainId.XDAI]: BAOSWAP_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.XDAI]: BAOSWAP_ROUTER_ADDRESS, + }, + initCodeHash: '0x0bae3ead48c325ce433426d2e8e6b07dac10835baec21e163760682ea3d3520d', + defaultSwapFee: constants_2._30, +}); +/** + * @see https://docs.biswap.org/biswap/general-information/biswap-smart-contracts for smart contract info + * @see https://bscscan.com/address/0x858E3312ed3A876947EA49d572A7C42DE08af7EE#readContract (Factor address) for INIT_CODE_HASH + * @see https://github.com/biswap-org/core/blob/78a67b2bf9dccc551adf91b0529aec6df9eb9b27/contracts/BiswapPair.sol#L29 for swapFee default value + * @see https://thegraph.com/hosted-service/subgraph/unchase/biswap for Subraph Endpoint + */ +UniswapV2RoutablePlatform.BISWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.BSC_MAINNET], + name: 'Biswap', + factoryAddress: BISWAP_FACTORY_ADDRESS, + routerAddress: BISWAP_ROUTER_ADDRESS, + initCodeHash: '0xfea293c909d87cd4153593f077b76bb7e94340200f4ee84211ae8e4f9bd7ffdf', + defaultSwapFee: constants_2.TEN, + subgraphEndpoint: { + [constants_2.ChainId.BSC_MAINNET]: 'https://api.thegraph.com/subgraphs/name/unchase/biswap', + }, +}); +UniswapV2RoutablePlatform.DFYN = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.POLYGON], + name: 'DFYN', + factoryAddress: { + [constants_2.ChainId.POLYGON]: DFYN_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.POLYGON]: DFYN_ROUTER_ADDRESS, + }, + initCodeHash: '0xf187ed688403aa4f7acfada758d8d53698753b998a3071b06f1b777f4330eaf3', + defaultSwapFee: constants_2._30, +}); +UniswapV2RoutablePlatform.HONEYSWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.XDAI], + name: 'Honeyswap', + factoryAddress: { + [constants_2.ChainId.XDAI]: HONEYSWAP_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.XDAI]: HONEYSWAP_ROUTER_ADDRESS, + }, + initCodeHash: '0x3f88503e8580ab941773b59034fb4b2a63e86dbc031b3633a925533ad3ed2b93', + defaultSwapFee: constants_2._30, +}); +UniswapV2RoutablePlatform.LEVINSWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.XDAI], + name: 'Levinswap', + factoryAddress: { + [constants_2.ChainId.XDAI]: LEVINSWAP_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.XDAI]: LEVINSWAP_ROUTER_ADDRESS, + }, + initCodeHash: '0x4955fd9146732ca7a64d43c7a8d65fe6db1acca27e9c5b3bee7c3abe5849f441', + defaultSwapFee: constants_2._30, +}); +UniswapV2RoutablePlatform.PANCAKESWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.BSC_MAINNET], + name: 'Pancakeswap', + factoryAddress: PANCAKESWAP_FACTORY_ADDRESS, + routerAddress: PANCAKESWAP_ROUTER_ADDRESS, + initCodeHash: '0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5', + defaultSwapFee: constants_2._25, + subgraphEndpoint: {}, +}); +UniswapV2RoutablePlatform.QUICKSWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.POLYGON], + name: 'Quickswap', + factoryAddress: { + [constants_2.ChainId.POLYGON]: QUICKSWAP_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.POLYGON]: QUICKSWAP_ROUTER_ADDRESS, + }, + initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', + defaultSwapFee: constants_2._30, +}); +UniswapV2RoutablePlatform.SUSHISWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.MAINNET, constants_2.ChainId.RINKEBY, constants_2.ChainId.ARBITRUM_ONE, constants_2.ChainId.POLYGON, constants_2.ChainId.BSC_MAINNET], + name: 'Sushiswap', + factoryAddress: SUSHISWAP_FACTORY_ADDRESS, + routerAddress: SUSHISWAP_ROUTER_ADDRESS, + initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303', + defaultSwapFee: constants_2._30, + subgraphEndpoint: {}, +}); +UniswapV2RoutablePlatform.SWAPR = new UniswapV2RoutablePlatform({ + chainIds: [ + constants_2.ChainId.MAINNET, + constants_2.ChainId.RINKEBY, + constants_2.ChainId.ARBITRUM_ONE, + constants_2.ChainId.ARBITRUM_RINKEBY, + constants_2.ChainId.ARBITRUM_GOERLI, + constants_2.ChainId.XDAI, + constants_2.ChainId.GOERLI, + ], + name: 'Swapr', + factoryAddress: constants_2.FACTORY_ADDRESS, + routerAddress: constants_2.ROUTER_ADDRESS, + initCodeHash: constants_2.INIT_CODE_HASH, + defaultSwapFee: constants_2.defaultSwapFee, + subgraphEndpoint: { + [constants_2.ChainId.MAINNET]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-mainnet-v2', + [constants_2.ChainId.ARBITRUM_ONE]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-arbitrum-one-v3', + [constants_2.ChainId.XDAI]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-xdai-v2', + [constants_2.ChainId.RINKEBY]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-rinkeby', + [constants_2.ChainId.ARBITRUM_RINKEBY]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-arbitrum-rinkeby-v2', + }, +}); +UniswapV2RoutablePlatform.UNISWAP = new UniswapV2RoutablePlatform({ + chainIds: [constants_2.ChainId.MAINNET, constants_2.ChainId.RINKEBY], + name: 'Uniswap v2', + factoryAddress: { + [constants_2.ChainId.MAINNET]: UNISWAP_FACTORY_ADDRESS, + [constants_2.ChainId.RINKEBY]: UNISWAP_FACTORY_ADDRESS, + }, + routerAddress: { + [constants_2.ChainId.MAINNET]: UNISWAP_ROUTER_ADDRESS, + [constants_2.ChainId.RINKEBY]: UNISWAP_ROUTER_ADDRESS, + }, + initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', + defaultSwapFee: constants_2._30, + subgraphEndpoint: { + [constants_2.ChainId.MAINNET]: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2', + }, +}); +//# sourceMappingURL=UniswapV2RoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map new file mode 100644 index 00000000..178ed956 --- /dev/null +++ b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UniswapV2RoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/UniswapV2RoutablePlatform.ts"],"names":[],"mappings":";;;AAAA,wDAAsD;AAEtD,kDAU2B;AAC3B,iEAA6D;AAE7D,MAAM,uBAAuB,GAAG,4CAA4C,CAAA;AAC5E,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,EAAE;QACR,mBAAO,CAAC,OAAO;QACf,mBAAO,CAAC,OAAO;QACf,mBAAO,CAAC,YAAY;QACpB,mBAAO,CAAC,gBAAgB;QACxB,mBAAO,CAAC,eAAe;QACvB,mBAAO,CAAC,IAAI;QACZ,mBAAO,CAAC,MAAM;KACf;IACD,IAAI,EAAE,OAAO;IACb,cAAc,EAAE,2BAAe;IAC/B,aAAa,EAAE,0BAAc;IAC7B,YAAY,EAAE,0BAAc;IAC5B,cAAc,EAAd,0BAAc;IACd,gBAAgB,EAAE;QAChB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,mEAAmE;QACtF,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,wEAAwE;QAChG,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,gEAAgE;QAChF,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,gEAAgE;QACnF,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,4EAA4E;KACzG;CACF,CAAC,CAAA;AAEqB,iCAAO,GAAG,IAAI,yBAAyB,CAAC;IAC7D,QAAQ,EAAE,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,OAAO,CAAC;IAC5C,IAAI,EAAE,YAAY;IAClB,cAAc,EAAE;QACd,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB;QAC1C,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB;KAC3C;IACD,aAAa,EAAE;QACb,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,sBAAsB;QACzC,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,sBAAsB;KAC1C;IACD,YAAY,EAAE,oEAAoE;IAClF,cAAc,EAAE,eAAG;IACnB,gBAAgB,EAAE;QAChB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4DAA4D;KAChF;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/index.d.ts b/dist/entities/trades/routable-platform/index.d.ts new file mode 100644 index 00000000..c00795dc --- /dev/null +++ b/dist/entities/trades/routable-platform/index.d.ts @@ -0,0 +1,3 @@ +export * from './BaseRoutablePlatform'; +export * from './RoutablePlatform'; +export * from './UniswapV2RoutablePlatform'; diff --git a/dist/entities/trades/routable-platform/index.js b/dist/entities/trades/routable-platform/index.js new file mode 100644 index 00000000..16826a21 --- /dev/null +++ b/dist/entities/trades/routable-platform/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./BaseRoutablePlatform"), exports); +tslib_1.__exportStar(require("./RoutablePlatform"), exports); +tslib_1.__exportStar(require("./UniswapV2RoutablePlatform"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/index.js.map b/dist/entities/trades/routable-platform/index.js.map new file mode 100644 index 00000000..78a42765 --- /dev/null +++ b/dist/entities/trades/routable-platform/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/index.ts"],"names":[],"mappings":";;;AAAA,iEAAsC;AACtC,6DAAkC;AAClC,sEAA2C"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/SwaprV3.d.ts b/dist/entities/trades/swapr-v3/SwaprV3.d.ts new file mode 100644 index 00000000..6f072dda --- /dev/null +++ b/dist/entities/trades/swapr-v3/SwaprV3.d.ts @@ -0,0 +1,31 @@ +import type { BaseProvider } from '@ethersproject/providers'; +import { UnsignedTransaction } from '@ethersproject/transactions'; +import { TradeType } from '../../../constants'; +import { Currency } from '../../currency'; +import { CurrencyAmount, Percent } from '../../fractions'; +import { TradeWithSwapTransaction } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +interface SwaprV3ConstructorParams { + maximumSlippage: Percent; + inputAmount: CurrencyAmount; + outputAmount: CurrencyAmount; + tradeType: TradeType; + chainId: number; + priceImpact: Percent; + fee: Percent; +} +export interface SwaprV3GetQuoteParams { + amount: CurrencyAmount; + quoteCurrency: Currency; + tradeType: TradeType; + maximumSlippage?: Percent; + recipient?: string; +} +export declare class SwaprV3Trade extends TradeWithSwapTransaction { + constructor({ inputAmount, outputAmount, maximumSlippage, priceImpact, tradeType, chainId, fee, }: SwaprV3ConstructorParams); + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }: SwaprV3GetQuoteParams, provider?: BaseProvider): Promise; + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + swapTransaction(options: TradeOptions): Promise; +} +export {}; diff --git a/dist/entities/trades/swapr-v3/SwaprV3.js b/dist/entities/trades/swapr-v3/SwaprV3.js new file mode 100644 index 00000000..d63c2f1e --- /dev/null +++ b/dist/entities/trades/swapr-v3/SwaprV3.js @@ -0,0 +1,157 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwaprV3Trade = void 0; +const tslib_1 = require("tslib"); +const units_1 = require("@ethersproject/units"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const dayjs_1 = tslib_1.__importDefault(require("dayjs")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../../constants"); +const currency_1 = require("../../currency"); +const fractions_1 = require("../../fractions"); +const token_1 = require("../../token"); +const constants_2 = require("../constants"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_1 = require("../utils"); +const constants_3 = require("./constants"); +const contracts_1 = require("./contracts"); +const routes_1 = require("./routes"); +class SwaprV3Trade extends trade_1.TradeWithSwapTransaction { + constructor({ inputAmount, outputAmount, maximumSlippage, priceImpact, tradeType, chainId, fee, }) { + super({ + details: undefined, + type: tradeType, + inputAmount, + outputAmount, + maximumSlippage, + platform: routable_platform_1.RoutablePlatform.SWAPR_V3, + chainId, + executionPrice: new fractions_1.Price({ + baseCurrency: inputAmount.currency, + quoteCurrency: outputAmount.currency, + denominator: inputAmount.raw, + numerator: outputAmount.raw, + }), + priceImpact, + fee, + approveAddress: constants_3.SWAPR_ALGEBRA_CONTRACTS['router'], + }); + } + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); + (0, tiny_invariant_1.default)(chainId, 'SwaprV3Trade.getQuote: chainId is required'); + maximumSlippage = maximumSlippage !== null && maximumSlippage !== void 0 ? maximumSlippage : constants_2.maximumSlippage; + provider = provider !== null && provider !== void 0 ? provider : (0, utils_1.getProvider)(chainId); + (0, tiny_invariant_1.default)(amount.currency.address, `SwaprV3Trade.getQuote: amount.currency.address is required`); + const tokenIn = currency_1.Currency.isNative(amount.currency) + ? token_1.WXDAI[constants_1.ChainId.GNOSIS] + : new token_1.Token(constants_1.ChainId.GNOSIS, amount.currency.address, amount.currency.decimals, amount.currency.symbol, amount.currency.name); + (0, tiny_invariant_1.default)(quoteCurrency.address, `SwaprV3Trade.getQuote: quoteCurrency.address is required`); + const tokenOut = currency_1.Currency.isNative(quoteCurrency) + ? token_1.WXDAI[constants_1.ChainId.GNOSIS] + : new token_1.Token(constants_1.ChainId.GNOSIS, quoteCurrency.address, quoteCurrency.decimals, quoteCurrency.symbol, quoteCurrency.name); + (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `SwaprV3Trade.getQuote: currencies chainId does not match provider's chainId`); + const routes = yield (0, routes_1.getRoutes)(tokenIn, tokenOut, chainId); + const fee = (routes === null || routes === void 0 ? void 0 : routes.length) > 0 && routes[0].pools.length > 0 + ? new fractions_1.Percent(routes[0].pools[0].fee.toString(), '1000000') + : new fractions_1.Percent('0', '0'); + if (tradeType === constants_1.TradeType.EXACT_INPUT) { + const quotedAmountOut = yield (0, contracts_1.getQuoterContract)() + .callStatic.quoteExactInputSingle(tokenIn.address, tokenOut.address, (0, units_1.parseUnits)(amount.toSignificant(), amount.currency.decimals), 0) + .catch((error) => { + console.error(`Error sending quoteExactInputSingle transaction: ${error}`); + return null; + }); + if (quotedAmountOut) { + return new SwaprV3Trade({ + maximumSlippage, + inputAmount: amount, + outputAmount: new fractions_1.TokenAmount(tokenOut, quotedAmountOut), + tradeType, + chainId, + priceImpact: new fractions_1.Percent('0', '1000'), + fee, + }); + } + } + else { + const quotedAmountIn = yield (0, contracts_1.getQuoterContract)() + .callStatic.quoteExactOutputSingle(tokenOut.address, amount.currency.address, (0, units_1.parseUnits)(amount.toSignificant(), amount.currency.decimals), 0) + .catch((error) => { + console.error(`Error sending quoteExactOutputSingle transaction: ${error}`); + return null; + }); + if (quotedAmountIn) { + return new SwaprV3Trade({ + maximumSlippage, + inputAmount: new fractions_1.TokenAmount(tokenOut, quotedAmountIn), + outputAmount: amount, + tradeType, + chainId, + priceImpact: new fractions_1.Percent('0', '1000'), + fee, + }); + } + } + return null; + }); + } + minimumAmountOut() { + if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new sdk_core_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new sdk_core_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const isNativeIn = currency_1.Currency.isNative(this.inputAmount.currency); + const isNativeOut = currency_1.Currency.isNative(this.outputAmount.currency); + (0, tiny_invariant_1.default)(!(isNativeIn && isNativeOut), 'SwaprV3Trade.swapTransaction: the router does not support both native in and out'); + const recipient = (0, sdk_core_1.validateAndParseAddress)(options.recipient); + const amountIn = `0x${this.maximumAmountIn().raw.toString(16)}`; + const amountOut = `0x${this.minimumAmountOut().raw.toString(16)}`; + const isTradeExactInput = this.tradeType === constants_1.TradeType.EXACT_INPUT; + const routerContract = (0, contracts_1.getRouterContract)(); + const baseParams = { + tokenIn: isNativeIn ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : this.inputAmount.currency.address, + tokenOut: isNativeOut ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : this.outputAmount.currency.address, + recipient, + deadline: (0, dayjs_1.default)().add(30, 'm').unix(), + sqrtPriceLimitX96: 0, + fee: this.fee, + }; + const value = isNativeIn ? amountIn : undefined; + const exactInputSingleParams = Object.assign(Object.assign({}, baseParams), { amountIn, amountOutMinimum: amountOut }); + const exactOutputSingleParams = Object.assign(Object.assign({}, baseParams), { amountOut, amountInMaximum: amountIn }); + const methodName = isTradeExactInput ? 'exactInputSingle' : 'exactOutputSingle'; + const params = isTradeExactInput ? exactInputSingleParams : exactOutputSingleParams; + const populatedTransaction = yield routerContract.populateTransaction[methodName](params, { value }); + return populatedTransaction; + }); + } +} +exports.SwaprV3Trade = SwaprV3Trade; +//# sourceMappingURL=SwaprV3.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/SwaprV3.js.map b/dist/entities/trades/swapr-v3/SwaprV3.js.map new file mode 100644 index 00000000..2c8f841f --- /dev/null +++ b/dist/entities/trades/swapr-v3/SwaprV3.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwaprV3.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/SwaprV3.ts"],"names":[],"mappings":";;;;AAEA,gDAAiD;AACjD,gDAAqE;AACrE,0DAAyB;AACzB,4EAAsC;AAEtC,kDAA4D;AAC5D,6CAAyC;AACzC,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EAAE,IAAA,eAAK,GAAE,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE;gBACrC,iBAAiB,EAAE,CAAC;gBACpB,GAAG,EAAE,IAAI,CAAC,GAAG;aACd,CAAA;YAED,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAA;YAE/C,MAAM,sBAAsB,mCACvB,UAAU,KACb,QAAQ,EACR,gBAAgB,EAAE,SAAS,GAC5B,CAAA;YAED,MAAM,uBAAuB,mCACxB,UAAU,KACb,SAAS,EACT,eAAe,EAAE,QAAQ,GAC1B,CAAA;YAED,MAAM,UAAU,GAAG,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAA;YAC/E,MAAM,MAAM,GAAG,iBAAiB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,uBAAuB,CAAA;YACnF,MAAM,oBAAoB,GAAG,MAAM,cAAc,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;YAEpG,OAAO,oBAAoB,CAAA;QAC7B,CAAC;KAAA;CACF;AAtMD,oCAsMC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/index.d.ts b/dist/entities/trades/swapr-v3/abi/index.d.ts new file mode 100644 index 00000000..6666cbc4 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/index.d.ts @@ -0,0 +1,3 @@ +export * from './swapr-algebra-pool'; +export * from './swapr-algebra-quoter'; +export * from './swapr-algebra-router'; diff --git a/dist/entities/trades/swapr-v3/abi/index.js b/dist/entities/trades/swapr-v3/abi/index.js new file mode 100644 index 00000000..d63d09dc --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./swapr-algebra-pool"), exports); +tslib_1.__exportStar(require("./swapr-algebra-quoter"), exports); +tslib_1.__exportStar(require("./swapr-algebra-router"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/index.js.map b/dist/entities/trades/swapr-v3/abi/index.js.map new file mode 100644 index 00000000..277dd7d4 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC;AACpC,iEAAsC;AACtC,iEAAsC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts new file mode 100644 index 00000000..a6433e03 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts @@ -0,0 +1,35 @@ +export declare const SWAPR_ALGEBRA_POOL_ABI: ({ + inputs: never[]; + stateMutability: string; + type: string; + anonymous?: undefined; + name?: undefined; + outputs?: undefined; +} | { + anonymous: boolean; + inputs: { + indexed: boolean; + internalType: string; + name: string; + type: string; + }[]; + name: string; + type: string; + stateMutability?: undefined; + outputs?: undefined; +} | { + inputs: { + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + anonymous?: undefined; +})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js new file mode 100644 index 00000000..ee3eb69d --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js @@ -0,0 +1,1045 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SWAPR_ALGEBRA_POOL_ABI = void 0; +exports.SWAPR_ALGEBRA_POOL_ABI = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + indexed: false, + internalType: 'uint128', + name: 'liquidityAmount', + type: 'uint128', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + ], + name: 'Burn', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + indexed: false, + internalType: 'uint128', + name: 'amount0', + type: 'uint128', + }, + { + indexed: false, + internalType: 'uint128', + name: 'amount1', + type: 'uint128', + }, + ], + name: 'Collect', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint8', + name: 'communityFee0New', + type: 'uint8', + }, + { + indexed: false, + internalType: 'uint8', + name: 'communityFee1New', + type: 'uint8', + }, + ], + name: 'CommunityFee', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint16', + name: 'fee', + type: 'uint16', + }, + ], + name: 'Fee', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'paid0', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'paid1', + type: 'uint256', + }, + ], + name: 'Flash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'virtualPoolAddress', + type: 'address', + }, + ], + name: 'Incentive', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint160', + name: 'price', + type: 'uint160', + }, + { + indexed: false, + internalType: 'int24', + name: 'tick', + type: 'int24', + }, + ], + name: 'Initialize', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint32', + name: 'liquidityCooldown', + type: 'uint32', + }, + ], + name: 'LiquidityCooldown', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: true, + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + indexed: true, + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + indexed: false, + internalType: 'uint128', + name: 'liquidityAmount', + type: 'uint128', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + ], + name: 'Mint', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'int256', + name: 'amount0', + type: 'int256', + }, + { + indexed: false, + internalType: 'int256', + name: 'amount1', + type: 'int256', + }, + { + indexed: false, + internalType: 'uint160', + name: 'price', + type: 'uint160', + }, + { + indexed: false, + internalType: 'uint128', + name: 'liquidity', + type: 'uint128', + }, + { + indexed: false, + internalType: 'int24', + name: 'tick', + type: 'int24', + }, + ], + name: 'Swap', + type: 'event', + }, + { + inputs: [], + name: 'activeIncentive', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + internalType: 'uint128', + name: 'amount', + type: 'uint128', + }, + ], + name: 'burn', + outputs: [ + { + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + internalType: 'uint128', + name: 'amount0Requested', + type: 'uint128', + }, + { + internalType: 'uint128', + name: 'amount1Requested', + type: 'uint128', + }, + ], + name: 'collect', + outputs: [ + { + internalType: 'uint128', + name: 'amount0', + type: 'uint128', + }, + { + internalType: 'uint128', + name: 'amount1', + type: 'uint128', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'dataStorageOperator', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'factory', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'flash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + ], + name: 'getInnerCumulatives', + outputs: [ + { + internalType: 'int56', + name: 'innerTickCumulative', + type: 'int56', + }, + { + internalType: 'uint160', + name: 'innerSecondsSpentPerLiquidity', + type: 'uint160', + }, + { + internalType: 'uint32', + name: 'innerSecondsSpent', + type: 'uint32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint32[]', + name: 'secondsAgos', + type: 'uint32[]', + }, + ], + name: 'getTimepoints', + outputs: [ + { + internalType: 'int56[]', + name: 'tickCumulatives', + type: 'int56[]', + }, + { + internalType: 'uint160[]', + name: 'secondsPerLiquidityCumulatives', + type: 'uint160[]', + }, + { + internalType: 'uint112[]', + name: 'volatilityCumulatives', + type: 'uint112[]', + }, + { + internalType: 'uint256[]', + name: 'volumePerAvgLiquiditys', + type: 'uint256[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'globalState', + outputs: [ + { + internalType: 'uint160', + name: 'price', + type: 'uint160', + }, + { + internalType: 'int24', + name: 'tick', + type: 'int24', + }, + { + internalType: 'uint16', + name: 'fee', + type: 'uint16', + }, + { + internalType: 'uint16', + name: 'timepointIndex', + type: 'uint16', + }, + { + internalType: 'uint8', + name: 'communityFeeToken0', + type: 'uint8', + }, + { + internalType: 'uint8', + name: 'communityFeeToken1', + type: 'uint8', + }, + { + internalType: 'bool', + name: 'unlocked', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint160', + name: 'initialPrice', + type: 'uint160', + }, + ], + name: 'initialize', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'liquidity', + outputs: [ + { + internalType: 'uint128', + name: '', + type: 'uint128', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'liquidityCooldown', + outputs: [ + { + internalType: 'uint32', + name: '', + type: 'uint32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'maxLiquidityPerTick', + outputs: [ + { + internalType: 'uint128', + name: '', + type: 'uint128', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'int24', + name: 'bottomTick', + type: 'int24', + }, + { + internalType: 'int24', + name: 'topTick', + type: 'int24', + }, + { + internalType: 'uint128', + name: 'liquidityDesired', + type: 'uint128', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'mint', + outputs: [ + { + internalType: 'uint256', + name: 'amount0', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amount1', + type: 'uint256', + }, + { + internalType: 'uint128', + name: 'liquidityActual', + type: 'uint128', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'positions', + outputs: [ + { + internalType: 'uint128', + name: 'liquidity', + type: 'uint128', + }, + { + internalType: 'uint32', + name: 'lastLiquidityAddTimestamp', + type: 'uint32', + }, + { + internalType: 'uint256', + name: 'innerFeeGrowth0Token', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'innerFeeGrowth1Token', + type: 'uint256', + }, + { + internalType: 'uint128', + name: 'fees0', + type: 'uint128', + }, + { + internalType: 'uint128', + name: 'fees1', + type: 'uint128', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint8', + name: 'communityFee0', + type: 'uint8', + }, + { + internalType: 'uint8', + name: 'communityFee1', + type: 'uint8', + }, + ], + name: 'setCommunityFee', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'virtualPoolAddress', + type: 'address', + }, + ], + name: 'setIncentive', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint32', + name: 'newLiquidityCooldown', + type: 'uint32', + }, + ], + name: 'setLiquidityCooldown', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'bool', + name: 'zeroToOne', + type: 'bool', + }, + { + internalType: 'int256', + name: 'amountRequired', + type: 'int256', + }, + { + internalType: 'uint160', + name: 'limitSqrtPrice', + type: 'uint160', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'swap', + outputs: [ + { + internalType: 'int256', + name: 'amount0', + type: 'int256', + }, + { + internalType: 'int256', + name: 'amount1', + type: 'int256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'bool', + name: 'zeroToOne', + type: 'bool', + }, + { + internalType: 'int256', + name: 'amountRequired', + type: 'int256', + }, + { + internalType: 'uint160', + name: 'limitSqrtPrice', + type: 'uint160', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'swapSupportingFeeOnInputTokens', + outputs: [ + { + internalType: 'int256', + name: 'amount0', + type: 'int256', + }, + { + internalType: 'int256', + name: 'amount1', + type: 'int256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'tickSpacing', + outputs: [ + { + internalType: 'int24', + name: '', + type: 'int24', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int16', + name: '', + type: 'int16', + }, + ], + name: 'tickTable', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int24', + name: '', + type: 'int24', + }, + ], + name: 'ticks', + outputs: [ + { + internalType: 'uint128', + name: 'liquidityTotal', + type: 'uint128', + }, + { + internalType: 'int128', + name: 'liquidityDelta', + type: 'int128', + }, + { + internalType: 'uint256', + name: 'outerFeeGrowth0Token', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'outerFeeGrowth1Token', + type: 'uint256', + }, + { + internalType: 'int56', + name: 'outerTickCumulative', + type: 'int56', + }, + { + internalType: 'uint160', + name: 'outerSecondsPerLiquidity', + type: 'uint160', + }, + { + internalType: 'uint32', + name: 'outerSecondsSpent', + type: 'uint32', + }, + { + internalType: 'bool', + name: 'initialized', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'index', + type: 'uint256', + }, + ], + name: 'timepoints', + outputs: [ + { + internalType: 'bool', + name: 'initialized', + type: 'bool', + }, + { + internalType: 'uint32', + name: 'blockTimestamp', + type: 'uint32', + }, + { + internalType: 'int56', + name: 'tickCumulative', + type: 'int56', + }, + { + internalType: 'uint160', + name: 'secondsPerLiquidityCumulative', + type: 'uint160', + }, + { + internalType: 'uint88', + name: 'volatilityCumulative', + type: 'uint88', + }, + { + internalType: 'int24', + name: 'averageTick', + type: 'int24', + }, + { + internalType: 'uint144', + name: 'volumePerLiquidityCumulative', + type: 'uint144', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'token0', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'token1', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'totalFeeGrowth0Token', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'totalFeeGrowth1Token', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, +]; +//# sourceMappingURL=swapr-algebra-pool.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map new file mode 100644 index 00000000..22fd988f --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swapr-algebra-pool.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC;QACE,MAAM,EAAE,EAAE;QACV,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,OAAO;aACd;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,OAAO;aACd;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY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AAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts new file mode 100644 index 00000000..3db7b6bd --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts @@ -0,0 +1,25 @@ +export declare const SWAPR_ALGEBRA_QUOTER_ABI: ({ + inputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + name?: undefined; + outputs?: undefined; +} | { + inputs: { + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js new file mode 100644 index 00000000..bd0ef140 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js @@ -0,0 +1,205 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SWAPR_ALGEBRA_QUOTER_ABI = void 0; +exports.SWAPR_ALGEBRA_QUOTER_ABI = [ + { + inputs: [ + { + internalType: 'address', + name: '_factory', + type: 'address', + }, + { + internalType: 'address', + name: '_WNativeToken', + type: 'address', + }, + { + internalType: 'address', + name: '_poolDeployer', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'WNativeToken', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'factory', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int256', + name: 'amount0Delta', + type: 'int256', + }, + { + internalType: 'int256', + name: 'amount1Delta', + type: 'int256', + }, + { + internalType: 'bytes', + name: 'path', + type: 'bytes', + }, + ], + name: 'AlgebraSwapCallback', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'poolDeployer', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'path', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + ], + name: 'quoteExactInput', + outputs: [ + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenOut', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + { + internalType: 'uint160', + name: 'sqrtPriceLimitX96', + type: 'uint160', + }, + ], + name: 'quoteExactInputSingle', + outputs: [ + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'path', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + name: 'quoteExactOutput', + outputs: [ + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenOut', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + { + internalType: 'uint160', + name: 'sqrtPriceLimitX96', + type: 'uint160', + }, + ], + name: 'quoteExactOutputSingle', + outputs: [ + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +]; +//# sourceMappingURL=swapr-algebra-quoter.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map new file mode 100644 index 00000000..423ef93a --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swapr-algebra-quoter.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-quoter.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,E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AY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts new file mode 100644 index 00000000..3cd40deb --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts @@ -0,0 +1,50 @@ +export declare const SWAPR_ALGEBRA_ROUTER_ABI: ({ + inputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + name?: undefined; + outputs?: undefined; +} | { + inputs: { + components: { + internalType: string; + name: string; + type: string; + }[]; + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +} | { + inputs: { + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +} | { + stateMutability: string; + type: string; + inputs?: undefined; + name?: undefined; + outputs?: undefined; +})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js new file mode 100644 index 00000000..2c88d212 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js @@ -0,0 +1,638 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SWAPR_ALGEBRA_ROUTER_ABI = void 0; +exports.SWAPR_ALGEBRA_ROUTER_ABI = [ + { + inputs: [ + { + internalType: 'address', + name: '_factory', + type: 'address', + }, + { + internalType: 'address', + name: '_WNativeToken', + type: 'address', + }, + { + internalType: 'address', + name: '_poolDeployer', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'WNativeToken', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'bytes', + name: 'path', + type: 'bytes', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountOutMinimum', + type: 'uint256', + }, + ], + internalType: 'struct ISwapRouter.ExactInputParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactInput', + outputs: [ + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'address', + name: 'tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenOut', + type: 'address', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountOutMinimum', + type: 'uint256', + }, + { + internalType: 'uint160', + name: 'sqrtPriceLimitX96', + type: 'uint160', + }, + ], + internalType: 'struct ISwapRouter.ExactInputSingleParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactInputSingle', + outputs: [ + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'address', + name: 'tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenOut', + type: 'address', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountOutMinimum', + type: 'uint256', + }, + { + internalType: 'uint160', + name: 'sqrtPriceLimitX96', + type: 'uint160', + }, + ], + internalType: 'struct ISwapRouter.ExactInputSingleParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactInputSingleSupportingFeeOnTransferTokens', + outputs: [ + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'bytes', + name: 'path', + type: 'bytes', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountInMaximum', + type: 'uint256', + }, + ], + internalType: 'struct ISwapRouter.ExactOutputParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactOutput', + outputs: [ + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'address', + name: 'tokenIn', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenOut', + type: 'address', + }, + { + internalType: 'uint24', + name: 'fee', + type: 'uint24', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountOut', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'amountInMaximum', + type: 'uint256', + }, + { + internalType: 'uint160', + name: 'sqrtPriceLimitX96', + type: 'uint160', + }, + ], + internalType: 'struct ISwapRouter.ExactOutputSingleParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactOutputSingle', + outputs: [ + { + internalType: 'uint256', + name: 'amountIn', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'factory', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'int256', + name: 'amount0Delta', + type: 'int256', + }, + { + internalType: 'int256', + name: 'amount1Delta', + type: 'int256', + }, + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'AlgebraSwapCallback', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes[]', + name: 'data', + type: 'bytes[]', + }, + ], + name: 'multicall', + outputs: [ + { + internalType: 'bytes[]', + name: 'results', + type: 'bytes[]', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'poolDeployer', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'refundNativeToken', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + ], + name: 'selfPermit', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'expiry', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + ], + name: 'selfPermitAllowed', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'expiry', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + ], + name: 'selfPermitAllowedIfNecessary', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + ], + name: 'selfPermitIfNecessary', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amountMinimum', + type: 'uint256', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + ], + name: 'sweepToken', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amountMinimum', + type: 'uint256', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'feeBips', + type: 'uint256', + }, + { + internalType: 'address', + name: 'feeRecipient', + type: 'address', + }, + ], + name: 'sweepTokenWithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'amountMinimum', + type: 'uint256', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + ], + name: 'unwrapWNativeToken', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'amountMinimum', + type: 'uint256', + }, + { + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + internalType: 'uint256', + name: 'feeBips', + type: 'uint256', + }, + { + internalType: 'address', + name: 'feeRecipient', + type: 'address', + }, + ], + name: 'unwrapWNativeTokenWithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +]; +//# sourceMappingURL=swapr-algebra-router.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map new file mode 100644 index 00000000..dbf5dfd7 --- /dev/null +++ b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swapr-algebra-router.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-router.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,OAAO;qBACd;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,Y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AE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/constants.d.ts b/dist/entities/trades/swapr-v3/constants.d.ts new file mode 100644 index 00000000..1e3a128f --- /dev/null +++ b/dist/entities/trades/swapr-v3/constants.d.ts @@ -0,0 +1,16 @@ +export declare const POOL_DEPLOYER_ADDRESS = "0xC1b576AC6Ec749d5Ace1787bF9Ec6340908ddB47"; +export declare const POOL_INIT_CODE_HASH = "0xbce37a54eab2fcd71913a0d40723e04238970e7fc1159bfd58ad5b79531697e7"; +export declare const SWAPR_ALGEBRA_CONTRACTS: { + quoter: string; + router: string; +}; +export type BaseToken = { + chainId: number; + decimals: number; + symbol: string; + name: string; + isNative: boolean; + isToken: boolean; + address: string; +}; +export declare const baseTokens: BaseToken[]; diff --git a/dist/entities/trades/swapr-v3/constants.js b/dist/entities/trades/swapr-v3/constants.js new file mode 100644 index 00000000..f5c5f5d0 --- /dev/null +++ b/dist/entities/trades/swapr-v3/constants.js @@ -0,0 +1,49 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.baseTokens = exports.SWAPR_ALGEBRA_CONTRACTS = exports.POOL_INIT_CODE_HASH = exports.POOL_DEPLOYER_ADDRESS = void 0; +const constants_1 = require("../../../constants"); +exports.POOL_DEPLOYER_ADDRESS = '0xC1b576AC6Ec749d5Ace1787bF9Ec6340908ddB47'; +exports.POOL_INIT_CODE_HASH = '0xbce37a54eab2fcd71913a0d40723e04238970e7fc1159bfd58ad5b79531697e7'; +exports.SWAPR_ALGEBRA_CONTRACTS = { + quoter: '0xcBaD9FDf0D2814659Eb26f600EFDeAF005Eda0F7', + router: '0xfFB643E73f280B97809A8b41f7232AB401a04ee1', +}; +exports.baseTokens = [ + { + chainId: constants_1.ChainId.GNOSIS, + decimals: 18, + symbol: 'WXDAI', + name: 'Wrapped XDAI', + isNative: false, + isToken: true, + address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', + }, + { + chainId: constants_1.ChainId.GNOSIS, + decimals: 6, + symbol: 'USDC', + name: 'USD//C on Gnosis', + isNative: false, + isToken: true, + address: '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', + }, + { + chainId: constants_1.ChainId.GNOSIS, + decimals: 18, + symbol: 'WETH', + name: 'Wrapped Ether on Gnosis chain', + isNative: false, + isToken: true, + address: '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', + }, + { + chainId: constants_1.ChainId.GNOSIS, + decimals: 18, + symbol: 'GNO', + name: 'Gnosis Token on Gnosis chain', + isNative: false, + isToken: true, + address: '0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb', + }, +]; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/constants.js.map b/dist/entities/trades/swapr-v3/constants.js.map new file mode 100644 index 00000000..80941b96 --- /dev/null +++ b/dist/entities/trades/swapr-v3/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/constants.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAE/B,QAAA,qBAAqB,GAAG,4CAA4C,CAAA;AACpE,QAAA,mBAAmB,GAAG,oEAAoE,CAAA;AAE1F,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,4CAA4C;IACpD,MAAM,EAAE,4CAA4C;CACrD,CAAA;AAYY,QAAA,UAAU,GAAgB;IACrC;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,+BAA+B;QACrC,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,8BAA8B;QACpC,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/contracts.d.ts b/dist/entities/trades/swapr-v3/contracts.d.ts new file mode 100644 index 00000000..b9a11c26 --- /dev/null +++ b/dist/entities/trades/swapr-v3/contracts.d.ts @@ -0,0 +1,4 @@ +import { Contract } from '@ethersproject/contracts'; +export declare function getPoolsContract(pool_address: string): Contract; +export declare function getRouterContract(): Contract; +export declare function getQuoterContract(): Contract; diff --git a/dist/entities/trades/swapr-v3/contracts.js b/dist/entities/trades/swapr-v3/contracts.js new file mode 100644 index 00000000..20d67965 --- /dev/null +++ b/dist/entities/trades/swapr-v3/contracts.js @@ -0,0 +1,21 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getQuoterContract = exports.getRouterContract = exports.getPoolsContract = void 0; +const contracts_1 = require("@ethersproject/contracts"); +const constants_1 = require("../../../constants"); +const utils_1 = require("../utils"); +const abi_1 = require("./abi"); +const constants_2 = require("./constants"); +function getPoolsContract(pool_address) { + return new contracts_1.Contract(pool_address, abi_1.SWAPR_ALGEBRA_POOL_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); +} +exports.getPoolsContract = getPoolsContract; +function getRouterContract() { + return new contracts_1.Contract(constants_2.SWAPR_ALGEBRA_CONTRACTS.router, abi_1.SWAPR_ALGEBRA_ROUTER_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); +} +exports.getRouterContract = getRouterContract; +function getQuoterContract() { + return new contracts_1.Contract(constants_2.SWAPR_ALGEBRA_CONTRACTS.quoter, abi_1.SWAPR_ALGEBRA_QUOTER_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); +} +exports.getQuoterContract = getQuoterContract; +//# sourceMappingURL=contracts.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/contracts.js.map b/dist/entities/trades/swapr-v3/contracts.js.map new file mode 100644 index 00000000..471fcabe --- /dev/null +++ b/dist/entities/trades/swapr-v3/contracts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/contracts.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEnD,kDAA4C;AAC5C,oCAAsC;AACtC,+BAAkG;AAClG,2CAAqD;AAErD,SAAgB,gBAAgB,CAAC,YAAoB;IACnD,OAAO,IAAI,oBAAQ,CAAC,YAAY,EAAE,4BAAsB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AACxF,CAAC;AAFD,4CAEC;AAED,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,oBAAQ,CAAC,mCAAuB,CAAC,MAAM,EAAE,8BAAwB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AAC5G,CAAC;AAFD,8CAEC;AAED,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,oBAAQ,CAAC,mCAAuB,CAAC,MAAM,EAAE,8BAAwB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AAC5G,CAAC;AAFD,8CAEC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/pool.d.ts b/dist/entities/trades/swapr-v3/entities/pool.d.ts new file mode 100644 index 00000000..0f4b16d2 --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/pool.d.ts @@ -0,0 +1,79 @@ +import { BigintIsh, CurrencyAmount, Price, Token } from '@uniswap/sdk-core'; +import { FeeAmount, Tick, TickConstructorArgs, TickDataProvider } from '@uniswap/v3-sdk'; +import JSBI from 'jsbi'; +/** + * Represents a V3 pool + */ +export declare class Pool { + readonly token0: Token; + readonly token1: Token; + readonly fee: FeeAmount; + readonly sqrtRatioX96: JSBI; + readonly liquidity: JSBI; + readonly tickCurrent: number; + readonly tickDataProvider: TickDataProvider; + /** + * Construct a pool + * @param tokenA One of the tokens in the pool + * @param tokenB The other token in the pool + * @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool + * @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0 + * @param liquidity The current value of in range liquidity + * @param tickCurrent The current tick of the pool + * @param ticks The current state of the pool ticks or a data provider that can return tick data + */ + constructor(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtRatioX96: BigintIsh, liquidity: BigintIsh, tickCurrent: number, ticks?: TickDataProvider | (Tick | TickConstructorArgs)[]); + private _token0Price?; + /** + * Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0 + */ + get token0Price(): Price; + private _token1Price?; + /** + * Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1 + */ + get token1Price(): Price; + /** + * Returns the chain ID of the tokens in the pool. + */ + get chainId(): number; + get tickSpacing(): number; + static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: string): string; + /** + * Returns true if the token is either token0 or token1 + * @param token The token to check + * @returns True if token is either token0 or token + */ + involvesToken(token: Token): boolean; + /** + * Return the price of the given token in terms of the other token in the pool. + * @param token The token to return price of + * @returns The price of the given token, in terms of the other. + */ + priceOf(token: Token): Price; + /** + * Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade + * @param inputAmount The input amount for which to quote the output amount + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit + * @returns The output amount and the pool with updated state + */ + getOutputAmount(inputAmount: CurrencyAmount, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount, Pool]>; + /** + * Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade + * @param outputAmount the output amount for which to quote the input amount + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap + * @returns The input amount and the pool with updated state + */ + getInputAmount(outputAmount: CurrencyAmount, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount, Pool]>; + /** + * Executes a swap + * @param zeroForOne Whether the amount in is token0 or token1 + * @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap + * @returns amountCalculated + * @returns sqrtRatioX96 + * @returns liquidity + * @returns tickCurrent + */ + private swap; +} diff --git a/dist/entities/trades/swapr-v3/entities/pool.js b/dist/entities/trades/swapr-v3/entities/pool.js new file mode 100644 index 00000000..d671a485 --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/pool.js @@ -0,0 +1,214 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Pool = void 0; +const tslib_1 = require("tslib"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const v3_sdk_1 = require("@uniswap/v3-sdk"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../constants"); +const Q96 = jsbi_1.default.exponentiate(jsbi_1.default.BigInt(2), jsbi_1.default.BigInt(96)); +const Q192 = jsbi_1.default.exponentiate(Q96, jsbi_1.default.BigInt(2)); +/** + * By default, pools will not allow operations that require ticks. + */ +const NO_TICK_DATA_PROVIDER_DEFAULT = new v3_sdk_1.NoTickDataProvider(); +/** + * Represents a V3 pool + */ +class Pool { + /** + * Construct a pool + * @param tokenA One of the tokens in the pool + * @param tokenB The other token in the pool + * @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool + * @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0 + * @param liquidity The current value of in range liquidity + * @param tickCurrent The current tick of the pool + * @param ticks The current state of the pool ticks or a data provider that can return tick data + */ + constructor(tokenA, tokenB, fee, sqrtRatioX96, liquidity, tickCurrent, ticks = NO_TICK_DATA_PROVIDER_DEFAULT) { + (0, tiny_invariant_1.default)(Number.isInteger(fee) && fee < 1000000, 'FEE'); + const tickCurrentSqrtRatioX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(tickCurrent); + const nextTickSqrtRatioX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(tickCurrent + 1); + (0, tiny_invariant_1.default)(jsbi_1.default.greaterThanOrEqual(jsbi_1.default.BigInt(sqrtRatioX96), tickCurrentSqrtRatioX96) && + jsbi_1.default.lessThanOrEqual(jsbi_1.default.BigInt(sqrtRatioX96), nextTickSqrtRatioX96), 'PRICE_BOUNDS'); + [this.token0, this.token1] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; + this.fee = fee; + this.sqrtRatioX96 = jsbi_1.default.BigInt(sqrtRatioX96); + this.liquidity = jsbi_1.default.BigInt(liquidity); + this.tickCurrent = tickCurrent; + this.tickDataProvider = Array.isArray(ticks) ? new v3_sdk_1.TickListDataProvider(ticks, 60) : ticks; + } + /** + * Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0 + */ + get token0Price() { + var _a; + return ((_a = this._token0Price) !== null && _a !== void 0 ? _a : (this._token0Price = new sdk_core_1.Price(this.token0, this.token1, Q192, jsbi_1.default.multiply(this.sqrtRatioX96, this.sqrtRatioX96)))); + } + /** + * Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1 + */ + get token1Price() { + var _a; + return ((_a = this._token1Price) !== null && _a !== void 0 ? _a : (this._token1Price = new sdk_core_1.Price(this.token1, this.token0, jsbi_1.default.multiply(this.sqrtRatioX96, this.sqrtRatioX96), Q192))); + } + /** + * Returns the chain ID of the tokens in the pool. + */ + get chainId() { + return this.token0.chainId; + } + get tickSpacing() { + return 60; + } + static getAddress(tokenA, tokenB, fee, initCodeHashManualOverride) { + return (0, v3_sdk_1.computePoolAddress)({ + factoryAddress: constants_1.POOL_DEPLOYER_ADDRESS, + fee, + tokenA, + tokenB, + initCodeHashManualOverride, + }); + } + /** + * Returns true if the token is either token0 or token1 + * @param token The token to check + * @returns True if token is either token0 or token + */ + involvesToken(token) { + return token.equals(this.token0) || token.equals(this.token1); + } + /** + * Return the price of the given token in terms of the other token in the pool. + * @param token The token to return price of + * @returns The price of the given token, in terms of the other. + */ + priceOf(token) { + (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); + return token.equals(this.token0) ? this.token0Price : this.token1Price; + } + /** + * Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade + * @param inputAmount The input amount for which to quote the output amount + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit + * @returns The output amount and the pool with updated state + */ + getOutputAmount(inputAmount, sqrtPriceLimitX96) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + (0, tiny_invariant_1.default)(this.involvesToken(inputAmount.currency), 'TOKEN'); + const zeroForOne = inputAmount.currency.equals(this.token0); + const { amountCalculated: outputAmount, sqrtRatioX96, liquidity, tickCurrent, } = yield this.swap(zeroForOne, inputAmount.quotient, sqrtPriceLimitX96); + const outputToken = zeroForOne ? this.token1 : this.token0; + return [ + sdk_core_1.CurrencyAmount.fromRawAmount(outputToken, jsbi_1.default.multiply(outputAmount, jsbi_1.default.BigInt(-1))), + new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider), + ]; + }); + } + /** + * Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade + * @param outputAmount the output amount for which to quote the input amount + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap + * @returns The input amount and the pool with updated state + */ + getInputAmount(outputAmount, sqrtPriceLimitX96) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + (0, tiny_invariant_1.default)(outputAmount.currency.isToken && this.involvesToken(outputAmount.currency), 'TOKEN'); + const zeroForOne = outputAmount.currency.equals(this.token1); + const { amountCalculated: inputAmount, sqrtRatioX96, liquidity, tickCurrent, } = yield this.swap(zeroForOne, jsbi_1.default.multiply(outputAmount.quotient, jsbi_1.default.BigInt(-1)), sqrtPriceLimitX96); + const inputToken = zeroForOne ? this.token0 : this.token1; + return [ + sdk_core_1.CurrencyAmount.fromRawAmount(inputToken, inputAmount), + new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider), + ]; + }); + } + /** + * Executes a swap + * @param zeroForOne Whether the amount in is token0 or token1 + * @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) + * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap + * @returns amountCalculated + * @returns sqrtRatioX96 + * @returns liquidity + * @returns tickCurrent + */ + swap(zeroForOne, amountSpecified, sqrtPriceLimitX96) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (!sqrtPriceLimitX96) + sqrtPriceLimitX96 = zeroForOne + ? jsbi_1.default.add(v3_sdk_1.TickMath.MIN_SQRT_RATIO, jsbi_1.default.BigInt(1)) + : jsbi_1.default.subtract(v3_sdk_1.TickMath.MAX_SQRT_RATIO, jsbi_1.default.BigInt(1)); + if (zeroForOne) { + (0, tiny_invariant_1.default)(jsbi_1.default.greaterThan(sqrtPriceLimitX96, v3_sdk_1.TickMath.MIN_SQRT_RATIO), 'RATIO_MIN'); + (0, tiny_invariant_1.default)(jsbi_1.default.lessThan(sqrtPriceLimitX96, this.sqrtRatioX96), 'RATIO_CURRENT'); + } + else { + (0, tiny_invariant_1.default)(jsbi_1.default.lessThan(sqrtPriceLimitX96, v3_sdk_1.TickMath.MAX_SQRT_RATIO), 'RATIO_MAX'); + (0, tiny_invariant_1.default)(jsbi_1.default.greaterThan(sqrtPriceLimitX96, this.sqrtRatioX96), 'RATIO_CURRENT'); + } + const exactInput = jsbi_1.default.greaterThanOrEqual(amountSpecified, jsbi_1.default.BigInt(0)); + // keep track of swap state + const state = { + amountSpecifiedRemaining: amountSpecified, + amountCalculated: jsbi_1.default.BigInt(0), + sqrtPriceX96: this.sqrtRatioX96, + tick: this.tickCurrent, + liquidity: this.liquidity, + }; + // start swap while loop + while (jsbi_1.default.notEqual(state.amountSpecifiedRemaining, jsbi_1.default.BigInt(0)) && state.sqrtPriceX96 != sqrtPriceLimitX96) { + const step = {}; + step.sqrtPriceStartX96 = state.sqrtPriceX96; + [step.tickNext, step.initialized] = yield this.tickDataProvider.nextInitializedTickWithinOneWord(state.tick, zeroForOne, this.tickSpacing); + if (step.tickNext < v3_sdk_1.TickMath.MIN_TICK) { + step.tickNext = v3_sdk_1.TickMath.MIN_TICK; + } + else if (step.tickNext > v3_sdk_1.TickMath.MAX_TICK) { + step.tickNext = v3_sdk_1.TickMath.MAX_TICK; + } + step.sqrtPriceNextX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(step.tickNext); + [state.sqrtPriceX96, step.amountIn, step.amountOut, step.feeAmount] = v3_sdk_1.SwapMath.computeSwapStep(state.sqrtPriceX96, (zeroForOne + ? jsbi_1.default.lessThan(step.sqrtPriceNextX96, sqrtPriceLimitX96) + : jsbi_1.default.greaterThan(step.sqrtPriceNextX96, sqrtPriceLimitX96)) + ? sqrtPriceLimitX96 + : step.sqrtPriceNextX96, state.liquidity, state.amountSpecifiedRemaining, this.fee); + if (exactInput) { + state.amountSpecifiedRemaining = jsbi_1.default.subtract(state.amountSpecifiedRemaining, jsbi_1.default.add(step.amountIn, step.feeAmount)); + state.amountCalculated = jsbi_1.default.subtract(state.amountCalculated, step.amountOut); + } + else { + state.amountSpecifiedRemaining = jsbi_1.default.add(state.amountSpecifiedRemaining, step.amountOut); + state.amountCalculated = jsbi_1.default.add(state.amountCalculated, jsbi_1.default.add(step.amountIn, step.feeAmount)); + } + // TODO + if (jsbi_1.default.equal(state.sqrtPriceX96, step.sqrtPriceNextX96)) { + // if the tick is initialized, run the tick transition + if (step.initialized) { + let liquidityNet = jsbi_1.default.BigInt((yield this.tickDataProvider.getTick(step.tickNext)).liquidityNet); + // if we're moving leftward, we interpret liquidityNet as the opposite sign + // safe because liquidityNet cannot be type(int128).min + if (zeroForOne) + liquidityNet = jsbi_1.default.multiply(liquidityNet, jsbi_1.default.BigInt(-1)); + state.liquidity = v3_sdk_1.LiquidityMath.addDelta(state.liquidity, liquidityNet); + } + state.tick = zeroForOne ? step.tickNext - 1 : step.tickNext; + } + else if (state.sqrtPriceX96 != step.sqrtPriceStartX96) { + // recompute unless we're on a lower tick boundary (i.e. already transitioned ticks), and haven't moved + state.tick = v3_sdk_1.TickMath.getTickAtSqrtRatio(state.sqrtPriceX96); + } + } + return { + amountCalculated: state.amountCalculated, + sqrtRatioX96: state.sqrtPriceX96, + liquidity: state.liquidity, + tickCurrent: state.tick, + }; + }); + } +} +exports.Pool = Pool; +//# sourceMappingURL=pool.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/pool.js.map b/dist/entities/trades/swapr-v3/entities/pool.js.map new file mode 100644 index 00000000..5d66001c --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/pool.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/entities/pool.ts"],"names":[],"mappings":";;;;AAAA,gDAA2E;AAC3E,4CAWwB;AACxB,wDAAuB;AACvB,4EAAsC;AAEtC,4CAAoD;AAEpD,MAAM,GAAG,GAAG,cAAI,CAAC,YAAY,CAAC,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA;AAC9D,MAAM,IAAI,GAAG,cAAI,CAAC,YAAY,CAAC,GAAG,EAAE,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAYnD;;GAEG;AACH,MAAM,6BAA6B,GAAG,IAAI,2BAAkB,EAAE,CAAA;AAE9D;;GAEG;AACH,MAAa,IAAI;IASf;;;;;;;;;OASG;IACH,YACE,MAAa,EACb,MAAa,EACb,GAAc,EACd,Y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ts b/dist/entities/trades/swapr-v3/entities/route.d.ts new file mode 100644 index 00000000..8827f0bf --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/route.d.ts @@ -0,0 +1,26 @@ +import { Currency, Price, Token } from '@uniswap/sdk-core'; +import { Pool } from './pool'; +/** + * Represents a list of pools through which a swap can occur + * @template TInput The input token + * @template TOutput The output token + */ +export declare class Route { + readonly pools: Pool[]; + readonly tokenPath: Token[]; + readonly input: TInput; + readonly output: TOutput; + /** + * Creates an instance of route. + * @param pools An array of `Pool` objects, ordered by the route the swap will take + * @param input The input token + * @param output The output token + */ + constructor(pools: Pool[], input: TInput, output: TOutput); + private _midPrice; + /** + * Returns the mid price of the route + */ + get midPrice(): Price; + get chainId(): number; +} diff --git a/dist/entities/trades/swapr-v3/entities/route.js b/dist/entities/trades/swapr-v3/entities/route.js new file mode 100644 index 00000000..51e31553 --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/route.js @@ -0,0 +1,75 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Route = void 0; +const tslib_1 = require("tslib"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +/** + * Represents a list of pools through which a swap can occur + * @template TInput The input token + * @template TOutput The output token + */ +class Route { + /** + * Creates an instance of route. + * @param pools An array of `Pool` objects, ordered by the route the swap will take + * @param input The input token + * @param output The output token + */ + constructor(pools, input, output) { + this._midPrice = null; + (0, tiny_invariant_1.default)(pools.length > 0, 'POOLS'); + const chainId = pools[0].chainId; + const allOnSameChain = pools.every((pool) => pool.chainId === chainId); + (0, tiny_invariant_1.default)(allOnSameChain, 'CHAIN_IDS'); + const wrappedInput = input.wrapped; + (0, tiny_invariant_1.default)(pools[0].involvesToken(wrappedInput), 'INPUT'); + (0, tiny_invariant_1.default)(pools[pools.length - 1].involvesToken(output.wrapped), 'OUTPUT'); + /** + * Normalizes token0-token1 order and selects the next token/fee step to add to the path + * */ + const tokenPath = [wrappedInput]; + for (const [i, pool] of pools.entries()) { + const currentInputToken = tokenPath[i]; + (0, tiny_invariant_1.default)(currentInputToken.equals(pool.token0) || currentInputToken.equals(pool.token1), 'PATH'); + const nextToken = currentInputToken.equals(pool.token0) ? pool.token1 : pool.token0; + tokenPath.push(nextToken); + } + this.pools = pools; + this.tokenPath = tokenPath; + this.input = input; + this.output = output !== null && output !== void 0 ? output : tokenPath[tokenPath.length - 1]; + } + /** + * Returns the mid price of the route + */ + get midPrice() { + if (this._midPrice !== null) + return this._midPrice; + const price = this.pools.slice(1).reduce(({ nextInput, price }, pool) => { + return nextInput.equals(pool.token0) + ? { + nextInput: pool.token1, + price: price.multiply(pool.token0Price), + } + : { + nextInput: pool.token0, + price: price.multiply(pool.token1Price), + }; + }, this.pools[0].token0.equals(this.input.wrapped) + ? { + nextInput: this.pools[0].token1, + price: this.pools[0].token0Price, + } + : { + nextInput: this.pools[0].token0, + price: this.pools[0].token1Price, + }).price; + return (this._midPrice = new sdk_core_1.Price(this.input, this.output, price.denominator, price.numerator)); + } + get chainId() { + return this.pools[0].chainId; + } +} +exports.Route = Route; +//# sourceMappingURL=route.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/route.js.map b/dist/entities/trades/swapr-v3/entities/route.js.map new file mode 100644 index 00000000..6edb12d1 --- /dev/null +++ b/dist/entities/trades/swapr-v3/entities/route.js.map @@ -0,0 +1 @@ +{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/entities/route.ts"],"names":[],"mappings":";;;;AAAA,gDAA0D;AAC1D,4EAAsC;AAItC;;;;GAIG;AACH,MAAa,KAAK;IAMhB;;;;;OAKG;IACH,YAAmB,KAAa,EAAE,KAAa,EAAE,MAAe;QA6BxD,cAAS,GAAkC,IAAI,CAAA;QA5BrD,IAAA,wBAAS,EAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;QAEpC,MAAM,OAAO,GAAG,KAA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IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;IAClG,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AA9ED,sBA8EC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/index.d.ts b/dist/entities/trades/swapr-v3/index.d.ts new file mode 100644 index 00000000..6e2511f4 --- /dev/null +++ b/dist/entities/trades/swapr-v3/index.d.ts @@ -0,0 +1 @@ +export * from './SwaprV3'; diff --git a/dist/entities/trades/swapr-v3/index.js b/dist/entities/trades/swapr-v3/index.js new file mode 100644 index 00000000..99fe71af --- /dev/null +++ b/dist/entities/trades/swapr-v3/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./SwaprV3"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/index.js.map b/dist/entities/trades/swapr-v3/index.js.map new file mode 100644 index 00000000..85f8a01f --- /dev/null +++ b/dist/entities/trades/swapr-v3/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/pools.d.ts b/dist/entities/trades/swapr-v3/pools.d.ts new file mode 100644 index 00000000..4b77236e --- /dev/null +++ b/dist/entities/trades/swapr-v3/pools.d.ts @@ -0,0 +1,7 @@ +import { Currency, Token } from '@uniswap/sdk-core'; +import { Pool } from './entities/pool'; +export declare const setupTokens: (currencyIn: Currency, currencyOut: Currency) => { + tokenA: Token; + tokenB: Token; +}; +export declare const getPools: (currencyIn: Currency, currencyOut: Currency) => Promise; diff --git a/dist/entities/trades/swapr-v3/pools.js b/dist/entities/trades/swapr-v3/pools.js new file mode 100644 index 00000000..2e8d1f09 --- /dev/null +++ b/dist/entities/trades/swapr-v3/pools.js @@ -0,0 +1,123 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getPools = exports.setupTokens = void 0; +const tslib_1 = require("tslib"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const constants_1 = require("../../../constants"); +const token_1 = require("../../token"); +const constants_2 = require("./constants"); +const contracts_1 = require("./contracts"); +const pool_1 = require("./entities/pool"); +const computePoolAddress_1 = require("./utils/computePoolAddress"); +const getBaseTokens = constants_2.baseTokens.map(({ address, decimals, symbol, name }) => new sdk_core_1.Token(constants_1.ChainId.GNOSIS, address, decimals, symbol, name)); +const currencyAddress = (currency) => { + return currency.isNative ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : currency.address; +}; +const setupTokens = (currencyIn, currencyOut) => { + const tokenIn = new sdk_core_1.Token(constants_1.ChainId.GNOSIS, currencyAddress(currencyIn), currencyIn.decimals, currencyIn.symbol, currencyIn.name); + const tokenOut = new sdk_core_1.Token(constants_1.ChainId.GNOSIS, currencyAddress(currencyOut), currencyOut.decimals, currencyOut.symbol, currencyOut.name); + const [tokenA, tokenB] = [tokenIn === null || tokenIn === void 0 ? void 0 : tokenIn.wrapped, tokenOut === null || tokenOut === void 0 ? void 0 : tokenOut.wrapped]; + return { tokenA, tokenB }; +}; +exports.setupTokens = setupTokens; +const pairsDiffCombinations = (tokenA, tokenB) => { + const basePairs = getBaseTokens + .flatMap((base) => getBaseTokens.map((otherBase) => [base, otherBase])) + .filter(([t0, t1]) => !t0.equals(t1)); + return ([ + // the direct pair + [tokenA, tokenB], + // token A against all bases + ...getBaseTokens.map((base) => [tokenA, base]), + // token B against all bases + ...getBaseTokens.map((base) => [tokenB, base]), + // each base against all bases + ...basePairs, + ] // filter out invalid pairs comprised of the same asset (e.g. WETH<>WETH) + .filter(([t0, t1]) => !t0.equals(t1)) + // filter out duplicate pairs + .filter(([t0, t1], i, otherPairs) => { + // find the first index in the array at which there are the same 2 tokens as the current + const firstIndexInOtherPairs = otherPairs.findIndex(([t0Other, t1Other]) => { + return (t0.equals(t0Other) && t1.equals(t1Other)) || (t0.equals(t1Other) && t1.equals(t0Other)); + }); + // only accept the first occurrence of the same 2 tokens + return firstIndexInOtherPairs === i; + })); +}; +const getPools = (currencyIn, currencyOut) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { + const { tokenA, tokenB } = (0, exports.setupTokens)(currencyIn, currencyOut); + const pairsCombinations = pairsDiffCombinations(tokenA, tokenB); + const sortedPairs = pairsCombinations.map(([currencyA, currencyB]) => { + const [token0, token1] = currencyA.sortsBefore(currencyB) ? [currencyA, currencyB] : [currencyB, currencyA]; + return [token0, token1]; + }); + const poolAddresses = sortedPairs.map((value) => { + return (0, computePoolAddress_1.computePoolAddress)({ + poolDeployer: constants_2.POOL_DEPLOYER_ADDRESS, + tokenA: value[0], + tokenB: value[1], + }); + }); + const poolsGlobalSpace = () => Promise.allSettled(poolAddresses.map((poolAddress) => fetchPoolGlobalState(poolAddress))).then((results) => results + .map((result, index) => { + if (result.status === 'fulfilled') { + return { value: result.value, poolAddress: poolAddresses[index] }; + } + else { + return { value: null, poolAddress: poolAddresses[index] }; + } + }) + .filter((result) => result.value)); + const poolsLiquidity = () => Promise.allSettled(poolAddresses.map((poolAddress) => fetchPoolLiquidity(poolAddress))).then((results) => results + .map((result, index) => { + if (result.status === 'fulfilled') { + return { value: result.value, poolAddress: poolAddresses[index] }; + } + else { + return { value: null, poolAddress: poolAddresses[index] }; + } + }) + .filter((result) => result.value)); + const getPoolsGlobalSpaceResults = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { + try { + const results = yield poolsGlobalSpace(); + return results; + } + catch (error) { + console.error('Failed fetching pool globalSpace results:', error); + return null; + } + }); + const getPoolsLiquiditiesResults = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { + try { + const results = yield poolsLiquidity(); + return results; + } + catch (error) { + console.error('Failed fetching pool liquidity results:', error); + return null; + } + }); + const [liquidityResults, globalSpaceResults] = yield Promise.all([ + yield getPoolsLiquiditiesResults(), + yield getPoolsGlobalSpaceResults(), + ]); + const combinedResults = poolAddresses.flatMap((poolAddress) => { + const liquidityResult = liquidityResults === null || liquidityResults === void 0 ? void 0 : liquidityResults.find(({ poolAddress: liquidityPoolAddress }) => liquidityPoolAddress === poolAddress); + const globalSpaceResult = globalSpaceResults === null || globalSpaceResults === void 0 ? void 0 : globalSpaceResults.find(({ poolAddress: globalSpacePoolAddress }) => globalSpacePoolAddress === poolAddress); + if (globalSpaceResult && liquidityResult) { + return new pool_1.Pool(tokenA, tokenB, globalSpaceResult.value.fee, globalSpaceResult.value.price, liquidityResult ? liquidityResult.value : null, globalSpaceResult.value.tick); + } + return []; + }); + return combinedResults; +}); +exports.getPools = getPools; +const fetchPoolGlobalState = (poolAddress) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { + return (0, contracts_1.getPoolsContract)(poolAddress).globalState(); +}); +const fetchPoolLiquidity = (poolAddress) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { + return (0, contracts_1.getPoolsContract)(poolAddress).liquidity(); +}); +//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/pools.js.map b/dist/entities/trades/swapr-v3/pools.js.map new file mode 100644 index 00000000..f72009af --- /dev/null +++ b/dist/entities/trades/swapr-v3/pools.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/pools.ts"],"names":[],"mappings":";;;;AAAA,gDAAmD;AAEnD,kDAA4C;AAC5C,uCAAmC;AACnC,2CAA+D;AAC/D,2CAA8C;AAC9C,0CAAsC;AACtC,mEAA+D;AAE/D,MAAM,aAAa,GAAY,sBAAU,CAAC,GAAG,CAC3C,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,gBAAK,C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AkB,GAAG,CAAO,WAAmB,EAAE,EAAE;IACvD,OAAO,IAAA,4BAAgB,EAAC,WAAW,CAAC,CAAC,SAAS,EAAE,CAAA;AAClD,CAAC,CAAA,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/routes.d.ts b/dist/entities/trades/swapr-v3/routes.d.ts new file mode 100644 index 00000000..d1c5b051 --- /dev/null +++ b/dist/entities/trades/swapr-v3/routes.d.ts @@ -0,0 +1,5 @@ +import { Currency } from '@uniswap/sdk-core'; +import { Pool } from './entities/pool'; +import { Route } from './entities/route'; +export declare function computeAllRoutes(pools: Pool[], chainId: number, currentPath?: Pool[], allPaths?: Route[], maxHops?: number): Route[]; +export declare function getRoutes(currencyIn: any, currencyOut: any, chainId: number): Promise[]>; diff --git a/dist/entities/trades/swapr-v3/routes.js b/dist/entities/trades/swapr-v3/routes.js new file mode 100644 index 00000000..55d3b5c5 --- /dev/null +++ b/dist/entities/trades/swapr-v3/routes.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getRoutes = exports.computeAllRoutes = void 0; +const tslib_1 = require("tslib"); +const route_1 = require("./entities/route"); +const pools_1 = require("./pools"); +/** + * Returns true if poolA is equivalent to poolB + * @param poolA one of the two pools + * @param poolB the other pool + */ +function poolEquals(poolA, poolB) { + return (poolA === poolB || + (poolA.token0.equals(poolB.token0) && poolA.token1.equals(poolB.token1) && poolA.fee === poolB.fee)); +} +function computeAllRoutes(pools, chainId, currentPath = [], allPaths = [], maxHops = 2) { + for (const pool of pools) { + if (!pool.involvesToken(pool.token0) || currentPath.some((pathPool) => poolEquals(pool, pathPool))) + continue; + const outputToken = pool.token0.equals(pool.token0) ? pool.token1 : pool.token0; + if (outputToken.equals(pool.token1)) { + allPaths.push(new route_1.Route([...currentPath, pool], pool.token0, pool.token1)); + } + else if (maxHops > 1) { + computeAllRoutes(pools, chainId, [...currentPath, pool], allPaths, maxHops - 1); + } + } + return allPaths; +} +exports.computeAllRoutes = computeAllRoutes; +function getRoutes(currencyIn, currencyOut, chainId) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const pools = yield (0, pools_1.getPools)(currencyIn, currencyOut); + return computeAllRoutes(pools, chainId, [], [], 3); + }); +} +exports.getRoutes = getRoutes; +//# sourceMappingURL=routes.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/routes.js.map b/dist/entities/trades/swapr-v3/routes.js.map new file mode 100644 index 00000000..b1e5a1f5 --- /dev/null +++ b/dist/entities/trades/swapr-v3/routes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/routes.ts"],"names":[],"mappings":";;;;AAGA,4CAAwC;AACxC,mCAAkC;AAElC;;;;GAIG;AACH,SAAS,UAAU,CAAC,KAAW,EAAE,KAAW;IAC1C,OAAO,CACL,KAAK,KAAK,KAAK;QACf,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,CACpG,CAAA;AACH,CAAC;AAED,SAAgB,gBAAgB,CAC9B,KAAa,EACb,OAAe,EACf,cAAsB,EAAE,EACxB,WAAwC,EAAE,EAC1C,OAAO,GAAG,CAAC;IAEX,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAAE,SAAQ;QAE5G,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAA;QAC/E,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACnC,QAAQ,CAAC,IAAI,CAAC,IAAI,aAAK,CAAC,CAAC,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;SAC3E;aAAM,IAAI,OAAO,GAAG,CAAC,EAAE;YACtB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,CAAC,CAAC,CAAA;SAChF;KACF;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC;AAnBD,4CAmBC;AAED,SAAsB,SAAS,CAAC,UAAe,EAAE,WAAgB,EAAE,OAAe;;QAChF,MAAM,KAAK,GAAG,MAAM,IAAA,gBAAQ,EAAC,UAAU,EAAE,WAAW,CAAC,CAAA;QACrD,OAAO,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;IACpD,CAAC;CAAA;AAHD,8BAGC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts b/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts new file mode 100644 index 00000000..9c7215fc --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts @@ -0,0 +1,32 @@ +import { Token } from '@uniswap/sdk-core'; +export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000"; +/** + * The default factory enabled fee amounts, denominated in hundredths of bips. + */ +export declare enum FeeAmount { + LOW = "LOW", + MEDIUM = "MEDIUM", + HIGH = "HIGH" +} +/** + * The default factory tick spacings by fee amount. + */ +export declare const TICK_SPACINGS: { + [amount in FeeAmount]: number; +}; +/** + * This function computes the pool address for a given pair of tokens and a fee tier. + * It uses the Swapr factory address, the addresses of the two tokens, and the pool initialization code hash. + * The tokens are sorted before the computation, and the initialization code hash can be manually overridden. + * @param poolDeployer This is the address of the factory contract that deploys new pools. + * @param tokenA The first token of the pair + * @param tokenB The second token of the pair + * @param initCodeHashManualOverride Optional manual override for the initialization code hash + * @returns The computed pool address. This address can then be used to interact with the pool on the blockchain. eg. https://gnosisscan.io/address/0x6a1507579b50abfc7ccc8f9e2b428095b5063538#tokentxns + */ +export declare function computePoolAddress({ poolDeployer, tokenA, tokenB, initCodeHashManualOverride, }: { + poolDeployer: string; + tokenA: Token; + tokenB: Token; + initCodeHashManualOverride?: string; +}): string; diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js new file mode 100644 index 00000000..525e17d6 --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.computePoolAddress = exports.TICK_SPACINGS = exports.FeeAmount = exports.ADDRESS_ZERO = void 0; +const abi_1 = require("@ethersproject/abi"); +const address_1 = require("@ethersproject/address"); +const solidity_1 = require("@ethersproject/solidity"); +const constants_1 = require("../constants"); +exports.ADDRESS_ZERO = '0x0000000000000000000000000000000000000000'; +/** + * The default factory enabled fee amounts, denominated in hundredths of bips. + */ +var FeeAmount; +(function (FeeAmount) { + FeeAmount["LOW"] = "LOW"; + FeeAmount["MEDIUM"] = "MEDIUM"; + FeeAmount["HIGH"] = "HIGH"; +})(FeeAmount = exports.FeeAmount || (exports.FeeAmount = {})); +/** + * The default factory tick spacings by fee amount. + */ +exports.TICK_SPACINGS = { + [FeeAmount.LOW]: 60, + [FeeAmount.MEDIUM]: 60, + [FeeAmount.HIGH]: 60, +}; +/** + * This function computes the pool address for a given pair of tokens and a fee tier. + * It uses the Swapr factory address, the addresses of the two tokens, and the pool initialization code hash. + * The tokens are sorted before the computation, and the initialization code hash can be manually overridden. + * @param poolDeployer This is the address of the factory contract that deploys new pools. + * @param tokenA The first token of the pair + * @param tokenB The second token of the pair + * @param initCodeHashManualOverride Optional manual override for the initialization code hash + * @returns The computed pool address. This address can then be used to interact with the pool on the blockchain. eg. https://gnosisscan.io/address/0x6a1507579b50abfc7ccc8f9e2b428095b5063538#tokentxns + */ +function computePoolAddress({ poolDeployer, tokenA, tokenB, initCodeHashManualOverride, }) { + const [token0, token1] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; // does safety checks + return (0, address_1.getCreate2Address)(poolDeployer, (0, solidity_1.keccak256)(['bytes'], [abi_1.defaultAbiCoder.encode(['address', 'address'], [token0.address, token1.address])]), initCodeHashManualOverride !== null && initCodeHashManualOverride !== void 0 ? initCodeHashManualOverride : constants_1.POOL_INIT_CODE_HASH); +} +exports.computePoolAddress = computePoolAddress; +//# sourceMappingURL=computePoolAddress.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map new file mode 100644 index 00000000..d85bd9e9 --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map @@ -0,0 +1 @@ +{"version":3,"file":"computePoolAddress.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/utils/computePoolAddress.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AACpD,oDAA0D;AAC1D,sDAAmD;AAGnD,4CAAkD;AAErC,QAAA,YAAY,GAAG,4CAA4C,CAAA;AAExE;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,0BAAa,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAED;;GAEG;AACU,QAAA,aAAa,GAAsC;IAC9D,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE;IACnB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE;IACtB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE;CACrB,CAAA;AAED;;;;;;;;;GASG;AAEH,SAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,MAAM,EACN,MAAM,EACN,0BAA0B,GAM3B;IACC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA,CAAC,qBAAqB;IAC/G,OAAO,IAAA,2BAAiB,EACtB,YAAY,EACZ,IAAA,oBAAS,EAAC,CAAC,OAAO,CAAC,EAAE,CAAC,qBAAe,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACxG,0BAA0B,aAA1B,0BAA0B,cAA1B,0BAA0B,GAAI,+BAAmB,CAClD,CAAA;AACH,CAAC;AAjBD,gDAiBC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.d.ts b/dist/entities/trades/swapr-v3/utils/encode-route.d.ts new file mode 100644 index 00000000..4a818026 --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/encode-route.d.ts @@ -0,0 +1,8 @@ +import { Currency } from '@uniswap/sdk-core'; +import { Route } from '../entities/route'; +/** + * Converts a route to a hex encoded path + * @param route the v3 path to convert to an encoded path + * @param exactOutput whether the route should be encoded in reverse, for making exact output swaps + */ +export declare function encodeRouteToPath(route: Route, exactOutput: boolean): string; diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.js b/dist/entities/trades/swapr-v3/utils/encode-route.js new file mode 100644 index 00000000..43f65d84 --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/encode-route.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.encodeRouteToPath = void 0; +const solidity_1 = require("@ethersproject/solidity"); +/** + * Converts a route to a hex encoded path + * @param route the v3 path to convert to an encoded path + * @param exactOutput whether the route should be encoded in reverse, for making exact output swaps + */ +function encodeRouteToPath(route, exactOutput) { + const firstInputToken = route.input.wrapped; + const { path, types } = route.pools.reduce(({ inputToken, path, types }, pool, index) => { + const outputToken = pool.token0.equals(inputToken) ? pool.token1 : pool.token0; + if (index === 0) { + return { + inputToken: outputToken, + types: ['address', 'address'], + path: [inputToken.address, outputToken.address], + }; + } + else { + return { + inputToken: outputToken, + types: [...types, 'address'], + path: [...path, outputToken.address], + }; + } + }, { inputToken: firstInputToken, path: [], types: [] }); + return exactOutput ? (0, solidity_1.pack)(types.reverse(), path.reverse()) : (0, solidity_1.pack)(types, path); +} +exports.encodeRouteToPath = encodeRouteToPath; +//# sourceMappingURL=encode-route.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.js.map b/dist/entities/trades/swapr-v3/utils/encode-route.js.map new file mode 100644 index 00000000..cfb9bff8 --- /dev/null +++ b/dist/entities/trades/swapr-v3/utils/encode-route.js.map @@ -0,0 +1 @@ +{"version":3,"file":"encode-route.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/utils/encode-route.ts"],"names":[],"mappings":";;;AAAA,sDAA8C;AAM9C;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,KAAgC,EAAE,WAAoB;IACtF,MAAM,eAAe,GAAU,KAAK,CAAC,KAAK,CAAC,OAAO,CAAA;IAElD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CACxC,CACE,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAqE,EAC9F,IAAU,EACV,KAAK,EAC8D,EAAE;QACrE,MAAM,WAAW,GAAU,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAA;QACrF,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,OAAO;gBACL,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;gBAC7B,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC;aAChD,CAAA;SACF;aAAM;YACL,OAAO;gBACL,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;gBAC5B,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC;aACrC,CAAA;SACF;IACH,CAAC,EACD,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CACrD,CAAA;IAED,OAAO,WAAW,CAAC,CAAC,CAAC,IAAA,eAAI,EAAC,KAAK,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,eAAI,EAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AAChF,CAAC;AA5BD,8CA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.d.ts b/dist/entities/trades/uniswap-v2/UniswapV2.d.ts new file mode 100644 index 00000000..e9dd4fe9 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/UniswapV2.d.ts @@ -0,0 +1,52 @@ +import { TradeType } from '../../../constants'; +import { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Percent } from '../../fractions/percent'; +import { Route } from '../../route'; +import { TradeWithSwapTransaction } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +import { UniswapV2TradeBestTradeExactInParams, UniswapV2TradeBestTradeExactOutParams, UniswapV2TradeComputeTradesExactInParams, UniswapV2TradeComputeTradesExactOutParams } from './types'; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +export declare class UniswapV2Trade extends TradeWithSwapTransaction { + constructor(route: Route, amount: CurrencyAmount, maximumSlippage: Percent, tradeType: TradeType); + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + /** + * Computes the best trade for the given input and output amounts. + * @param {UniswapV2TradeBestTradeExactInParams} params the pairs to consider in finding the best trade + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, maxHops: { maxNumResults, maxHops }, platform, }: UniswapV2TradeBestTradeExactInParams): Promise; + /** + * similar to the `bestTradeExactIn` method, but instead targets a fixed output amount + * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token + * to an output token amount, making at most `maxHops` hops + * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use + */ + static bestTradeExactOut({ currencyIn, currencyAmountOut, maximumSlippage, maxHops: { maxNumResults, maxHops }, platform, }: UniswapV2TradeBestTradeExactOutParams): Promise; + /** + * Given a list of pairs, and a fixed amount in, returns the top `maxNumResults` trades that go from an input token + * amount to an output token, making at most `maxHops` hops. + * Note this does not consider aggregation, as routes are linear. It's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeComputeTradesExactInParams} param0 + * @returns list of trades that go from an input token amount to an output token, making at most `maxHops` hops + */ + static computeTradesExactIn({ currencyAmountIn, currencyOut, maximumSlippage, pairs, maxHops: { maxNumResults, maxHops }, currentPairs, originalAmountIn, bestTrades, }: UniswapV2TradeComputeTradesExactInParams): UniswapV2Trade[]; + /** + * similar to the above method but instead targets a fixed output amount + * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token + * to an output token amount, making at most `maxHops` hops + * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use + * @returns list of trades that go from an input token to an output token amount, making at most `maxHops` hops + */ + static computeTradesExactOut({ currencyAmountOut, currencyIn, maximumSlippage, pairs, maxHops: { maxNumResults, maxHops }, currentPairs, originalAmountOut, bestTrades, }: UniswapV2TradeComputeTradesExactOutParams): UniswapV2Trade[]; + swapTransaction(options: TradeOptions): Promise; + get route(): Route; + static tradeComparator(a: UniswapV2Trade, b: UniswapV2Trade): number; +} diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.js b/dist/entities/trades/uniswap-v2/UniswapV2.js new file mode 100644 index 00000000..21d698d4 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/UniswapV2.js @@ -0,0 +1,386 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UniswapV2Trade = void 0; +const tslib_1 = require("tslib"); +const bignumber_1 = require("@ethersproject/bignumber"); +const contracts_1 = require("@ethersproject/contracts"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const router_json_1 = tslib_1.__importDefault(require("../../../abis/source/router.json")); +const constants_1 = require("../../../constants"); +const utils_1 = require("../../../utils"); +const currency_1 = require("../../currency"); +const currencyAmount_1 = require("../../fractions/currencyAmount"); +const fraction_1 = require("../../fractions/fraction"); +const price_1 = require("../../fractions/price"); +const tokenAmount_1 = require("../../fractions/tokenAmount"); +const route_1 = require("../../route"); +const token_1 = require("../../token"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utils_2 = require("../utils"); +const pairs_1 = require("./pairs"); +const utilts_1 = require("./utilts"); +const DFYN_GAS_LIMIT = 166004; +/** + * Represents a trade executed against a list of pairs. + * Does not account for slippage, i.e. trades that front run this trade and move the price. + */ +class UniswapV2Trade extends trade_1.TradeWithSwapTransaction { + constructor(route, amount, maximumSlippage, tradeType) { + (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); + const amounts = new Array(route.path.length); + const nextPairs = new Array(route.pairs.length); + if (tradeType === constants_1.TradeType.EXACT_INPUT) { + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(amount.currency, route.input), 'INPUT'); + amounts[0] = (0, utils_2.wrappedAmount)(amount, route.chainId); + for (let i = 0; i < route.path.length - 1; i++) { + const pair = route.pairs[i]; + const [outputAmount, nextPair] = pair.getOutputAmount(amounts[i]); + amounts[i + 1] = outputAmount; + nextPairs[i] = nextPair; + } + } + else { + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(amount.currency, route.output), 'OUTPUT'); + amounts[amounts.length - 1] = (0, utils_2.wrappedAmount)(amount, route.chainId); + for (let i = route.path.length - 1; i > 0; i--) { + const pair = route.pairs[i - 1]; + const [inputAmount, nextPair] = pair.getInputAmount(amounts[i]); + amounts[i - 1] = inputAmount; + nextPairs[i - 1] = nextPair; + } + } + const chainId = route.chainId; + const inputAmount = tradeType === constants_1.TradeType.EXACT_INPUT + ? amount + : currency_1.Currency.isNative(route.input) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(amounts[0].raw, chainId) + : amounts[0]; + const outputAmount = tradeType === constants_1.TradeType.EXACT_OUTPUT + ? amount + : currency_1.Currency.isNative(route.output) + ? currencyAmount_1.CurrencyAmount.nativeCurrency(amounts[amounts.length - 1].raw, chainId) + : amounts[amounts.length - 1]; + super({ + details: route, + type: tradeType, + inputAmount, + outputAmount, + executionPrice: new price_1.Price({ + baseCurrency: inputAmount.currency, + quoteCurrency: outputAmount.currency, + denominator: inputAmount.raw, + numerator: outputAmount.raw, + }), + maximumSlippage, + priceImpact: (0, utilts_1.computePriceImpact)(route.midPrice, inputAmount, outputAmount), + chainId: route.chainId, + platform: route.pairs[0].platform, + approveAddress: route.pairs[0].platform.routerAddress[chainId], + }); + } + minimumAmountOut() { + if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_1.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof tokenAmount_1.TokenAmount + ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + /** + * Computes the best trade for the given input and output amounts. + * @param {UniswapV2TradeBestTradeExactInParams} params the pairs to consider in finding the best trade + */ + static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, platform, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + let bestTrade; + try { + // Fetch the commons pairs between A and B + const commonPairsBetweenCurrenyInAndOut = yield (0, pairs_1.getAllCommonUniswapV2Pairs)({ + currencyA: currencyAmountIn.currency, + currencyB: currencyOut, + platform, + }); + // Compare and sort all routes from A to B + const tradeRoutes = UniswapV2Trade.computeTradesExactIn({ + currencyAmountIn, + currencyOut, + maximumSlippage, + pairs: commonPairsBetweenCurrenyInAndOut, + maxHops: { maxNumResults, maxHops }, + }); + bestTrade = tradeRoutes.at(0); + } + catch (error) { + // tslint:disable-next-line:no-console + } + return bestTrade; + }); + } + /** + * similar to the `bestTradeExactIn` method, but instead targets a fixed output amount + * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token + * to an output token amount, making at most `maxHops` hops + * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use + */ + static bestTradeExactOut({ currencyIn, currencyAmountOut, maximumSlippage, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, platform, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + let bestTrade; + try { + // Fetch the commons pairs between A and B + const commonPairsBetweenCurrenyInAndOut = yield (0, pairs_1.getAllCommonUniswapV2Pairs)({ + currencyA: currencyIn, + currencyB: currencyAmountOut.currency, + platform, + }); + // Compare and sort all routes from A to B + const tradeRoutes = UniswapV2Trade.computeTradesExactOut({ + currencyAmountOut, + currencyIn, + maximumSlippage, + pairs: commonPairsBetweenCurrenyInAndOut, + maxHops: { maxNumResults, maxHops }, + }); + // Return the best route + bestTrade = tradeRoutes.at(0); + } + catch (error) { + // tslint:disable-next-line:no-console + } + return bestTrade; + }); + } + /** + * Given a list of pairs, and a fixed amount in, returns the top `maxNumResults` trades that go from an input token + * amount to an output token, making at most `maxHops` hops. + * Note this does not consider aggregation, as routes are linear. It's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeComputeTradesExactInParams} param0 + * @returns list of trades that go from an input token amount to an output token, making at most `maxHops` hops + */ + static computeTradesExactIn({ currencyAmountIn, currencyOut, maximumSlippage, pairs, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, + // used in recursion. + currentPairs = [], originalAmountIn = currencyAmountIn, bestTrades = [], }) { + var _a; + (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); + (0, tiny_invariant_1.default)(pairs && pairs.length > 0, 'PAIRS'); + (0, tiny_invariant_1.default)(maxHops > 0, 'MAX_HOPS'); + (0, tiny_invariant_1.default)(originalAmountIn === currencyAmountIn || currentPairs.length > 0, 'INVALID_RECURSION'); + // Validate chain ID + const chainId = (_a = currencyAmountIn.currency.chainId) !== null && _a !== void 0 ? _a : currencyOut.chainId; + (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); + const amountIn = (0, utils_2.wrappedAmount)(currencyAmountIn, chainId); + const tokenOut = (0, utils_2.wrappedCurrency)(currencyOut, chainId); + // Find connecting pairs from token in to token out + for (let i = 0; i < pairs.length; i++) { + const pair = pairs[i]; + // pair irrelevant + if (!pair.token0.equals(amountIn.token) && !pair.token1.equals(amountIn.token)) + continue; + if (pair.reserve0.equalTo(constants_1.ZERO) || pair.reserve1.equalTo(constants_1.ZERO)) + continue; + let amountOut; + try { + amountOut = pair.getOutputAmount(amountIn)[0]; + } + catch (error) { + // input too low + if (error.isInsufficientInputAmountError) { + continue; + } + throw error; + } + // we have arrived at the output token, so this is the final trade of one of the paths + if (amountOut.token.equals(tokenOut)) { + (0, utils_1.sortedInsert)(bestTrades, new UniswapV2Trade(new route_1.Route([...currentPairs, pair], originalAmountIn.currency, currencyOut), originalAmountIn, maximumSlippage, constants_1.TradeType.EXACT_INPUT), maxNumResults, UniswapV2Trade.tradeComparator); + } + else if (maxHops > 1 && pairs.length > 1) { + const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)); + // otherwise, consider all the other paths that lead from this token as long as we have not exceeded maxHops + UniswapV2Trade.computeTradesExactIn({ + currencyAmountIn: amountOut, + currencyOut, + maximumSlippage, + pairs: pairsExcludingThisPair, + maxHops: { + maxNumResults, + maxHops: maxHops - 1, + }, + currentPairs: [...currentPairs, pair], + originalAmountIn, + bestTrades, + }); + } + } + return bestTrades; + } + /** + * similar to the above method but instead targets a fixed output amount + * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token + * to an output token amount, making at most `maxHops` hops + * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting + * the amount in among multiple routes. + * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use + * @returns list of trades that go from an input token to an output token amount, making at most `maxHops` hops + */ + static computeTradesExactOut({ currencyAmountOut, currencyIn, maximumSlippage, pairs, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, + // used in recursion. + currentPairs = [], originalAmountOut = currencyAmountOut, bestTrades = [], }) { + var _a; + // Validate params + (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); + (0, tiny_invariant_1.default)(pairs && pairs.length > 0, 'PAIRS'); + (0, tiny_invariant_1.default)(maxHops > 0, 'MAX_HOPS'); + (0, tiny_invariant_1.default)(originalAmountOut === currencyAmountOut || currentPairs.length > 0, 'INVALID_RECURSION'); + // Validate chain ID + const chainId = (_a = currencyAmountOut.currency.chainId) !== null && _a !== void 0 ? _a : currencyIn.chainId; + (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); + const amountOut = (0, utils_2.wrappedAmount)(currencyAmountOut, chainId); + const tokenIn = (0, utils_2.wrappedCurrency)(currencyIn, chainId); + // Find connecting pairs from token in to token out + for (let i = 0; i < pairs.length; i++) { + const pair = pairs[i]; + // pair irrelevant + if (!pair.token0.equals(amountOut.token) && !pair.token1.equals(amountOut.token)) + continue; + if (pair.reserve0.equalTo(constants_1.ZERO) || pair.reserve1.equalTo(constants_1.ZERO)) + continue; + let amountIn; + try { + amountIn = pair.getInputAmount(amountOut)[0]; + } + catch (error) { + // not enough liquidity in this pair + if (error.isInsufficientReservesError) { + continue; + } + throw error; + } + // we have arrived at the input token, so this is the first trade of one of the paths + if (amountIn.token.equals(tokenIn)) { + (0, utils_1.sortedInsert)(bestTrades, new UniswapV2Trade(new route_1.Route([pair, ...currentPairs], currencyIn, originalAmountOut.currency), originalAmountOut, maximumSlippage, constants_1.TradeType.EXACT_OUTPUT), maxNumResults, UniswapV2Trade.tradeComparator); + } + else if (maxHops > 1 && pairs.length > 1) { + const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)); + // otherwise, consider all the other paths that arrive at this token as long as we have not exceeded maxHops + UniswapV2Trade.computeTradesExactOut({ + currencyIn, + currencyAmountOut: amountIn, + maximumSlippage, + pairs: pairsExcludingThisPair, + maxHops: { + maxNumResults, + maxHops: maxHops - 1, + }, + currentPairs: [pair, ...currentPairs], + originalAmountOut, + bestTrades, + }); + } + } + return bestTrades; + } + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const nativeCurrency = currency_1.Currency.getNative(this.chainId); + const etherIn = this.inputAmount.currency === nativeCurrency; + const etherOut = this.outputAmount.currency === nativeCurrency; + // the router does not support both ether in and out + (0, tiny_invariant_1.default)(!(etherIn && etherOut), 'ETHER_IN_OUT'); + (0, tiny_invariant_1.default)(options.ttl && options.ttl > 0, 'TTL'); + const routerAddress = this.platform.routerAddress[this.chainId]; + (0, tiny_invariant_1.default)(!!routerAddress, 'ROUTER_ADDRESS_IN_CHAIN'); + const to = (0, utils_1.validateAndParseAddress)(options.recipient); + const amountIn = (0, utilts_1.toHex)(this.maximumAmountIn()); + const amountOut = (0, utilts_1.toHex)(this.minimumAmountOut()); + const path = this.route.path.map((token) => token.address); + const deadline = `0x${(Math.floor(new Date().getTime() / 1000) + options.ttl).toString(16)}`; + const override = { value: utilts_1.ZERO_HEX, gasLimit: undefined }; + if (routerAddress === routable_platform_1.UniswapV2RoutablePlatform.DFYN.routerAddress[this.chainId]) + override.gasLimit = bignumber_1.BigNumber.from(DFYN_GAS_LIMIT); + let methodName; + let args; + switch (this.tradeType) { + case constants_1.TradeType.EXACT_INPUT: + if (etherIn) { + methodName = 'swapExactETHForTokens'; + // (uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountOut, path, to, deadline]; + override.value = amountIn; + } + else if (etherOut) { + methodName = 'swapExactTokensForETH'; + // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountIn, amountOut, path, to, deadline]; + } + else { + methodName = 'swapExactTokensForTokens'; + // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountIn, amountOut, path, to, deadline]; + } + break; + case constants_1.TradeType.EXACT_OUTPUT: + if (etherIn) { + methodName = 'swapETHForExactTokens'; + // (uint amountOut, address[] calldata path, address to, uint deadline) + args = [amountOut, path, to, deadline]; + override.value = amountIn; + } + else if (etherOut) { + methodName = 'swapTokensForExactETH'; + // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) + args = [amountOut, amountIn, path, to, deadline]; + } + else { + methodName = 'swapTokensForExactTokens'; + // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) + args = [amountOut, amountIn, path, to, deadline]; + } + break; + } + return new contracts_1.Contract(routerAddress, router_json_1.default).populateTransaction[methodName](...args, Object.assign({}, override)); + }); + } + get route() { + return this.details; + } + // extension of the input output comparator that also considers other dimensions of the trade in ranking them + static tradeComparator(a, b) { + const ioComp = (0, utilts_1.inputOutputComparator)(a, b); + if (ioComp !== 0) { + return ioComp; + } + // consider lowest slippage next, since these are less likely to fail + if (a.priceImpact.lessThan(b.priceImpact)) { + return -1; + } + else if (a.priceImpact.greaterThan(b.priceImpact)) { + return 1; + } + // finally consider the number of hops since each hop costs gas + return a.route.path.length - b.route.path.length; + } +} +exports.UniswapV2Trade = UniswapV2Trade; +//# sourceMappingURL=UniswapV2.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.js.map b/dist/entities/trades/uniswap-v2/UniswapV2.js.map new file mode 100644 index 00000000..1c6fa831 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/UniswapV2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UniswapV2.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/UniswapV2.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AACpD,wDAAmD;AACnD,4EAAsC;AAEtC,2FAAyD;AACzD,kDAAyD;AACzD,0CAAsE;AACtE,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AAEnD,iDAA6C;AAC7C,6DAAyD;AAEzD,uCAAmC;AACnC,uCAAmD;AACnD,+CAA8D;AAE9D,4DAAgE;AAChE,oCAAyD;AACzD,mCAAoD;AAOpD,qCAAqF;AAErF,MAAM,cAAc,GAAG,MAAM,CAAA;AAE7B;;;GAGG;AACH,MAAa,cAAe,SAAQ,gCAAwB;IAC1D,YAAmB,KAAY,EAAE,MAAsB,EAAE,eAAw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Q,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;qBACjD;oBACD,MAAK;aACR;YAED,OAAO,IAAI,oBAAQ,CAAC,aAAa,EAAE,qBAAU,CAAC,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,oBACjF,QAAQ,EACX,CAAA;QACJ,CAAC;KAAA;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,OAAgB,CAAA;IAC9B,CAAC;IAED,6GAA6G;IAC7G,MAAM,CAAC,eAAe,CAAC,CAAiB,EAAE,CAAiB;QACzD,MAAM,MAAM,GAAG,IAAA,8BAAqB,EAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC1C,IAAI,MAAM,KAAK,CAAC,EAAE;YAChB,OAAO,MAAM,CAAA;SACd;QAED,qEAAqE;QACrE,IAAI,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACzC,OAAO,CAAC,CAAC,CAAA;SACV;aAAM,IAAI,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACnD,OAAO,CAAC,CAAA;SACT;QAED,+DAA+D;QAC/D,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAA;IAClD,CAAC;CACF;AA7ZD,wCA6ZC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/cache/index.d.ts b/dist/entities/trades/uniswap-v2/cache/index.d.ts new file mode 100644 index 00000000..1ead99cf --- /dev/null +++ b/dist/entities/trades/uniswap-v2/cache/index.d.ts @@ -0,0 +1,6 @@ +import { ChainId } from '../../../../constants'; +export type GeneralCacheList = Record>; +/** + * Creates a cache list for a given type. + */ +export declare function createCacheList(): GeneralCacheList; diff --git a/dist/entities/trades/uniswap-v2/cache/index.js b/dist/entities/trades/uniswap-v2/cache/index.js new file mode 100644 index 00000000..ed15f1a0 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/cache/index.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createCacheList = void 0; +const constants_1 = require("../../../../constants"); +/** + * Creates a cache list for a given type. + */ +function createCacheList() { + return { + [constants_1.ChainId.MAINNET]: new Map(), + [constants_1.ChainId.ARBITRUM_ONE]: new Map(), + [constants_1.ChainId.XDAI]: new Map(), + [constants_1.ChainId.RINKEBY]: new Map(), + [constants_1.ChainId.ARBITRUM_RINKEBY]: new Map(), + [constants_1.ChainId.ARBITRUM_GOERLI]: new Map(), + [constants_1.ChainId.POLYGON]: new Map(), + [constants_1.ChainId.GOERLI]: new Map(), + [constants_1.ChainId.OPTIMISM_MAINNET]: new Map(), + [constants_1.ChainId.OPTIMISM_GOERLI]: new Map(), + [constants_1.ChainId.BSC_MAINNET]: new Map(), + [constants_1.ChainId.BSC_TESTNET]: new Map(), + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new Map(), + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new Map(), + }; +} +exports.createCacheList = createCacheList; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/cache/index.js.map b/dist/entities/trades/uniswap-v2/cache/index.js.map new file mode 100644 index 00000000..63767021 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/cache/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/cache/index.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAI/C;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO;QACL,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,GAAG,EAAE;QACjC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE;QACzB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,EAAE;QACrC,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,EAAE;QACpC,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,EAAE;QAC3B,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,EAAE;QACrC,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,EAAE;QACpC,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,EAAE;QAChC,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,EAAE;QAChC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,IAAI,GAAG,EAAE;QACxC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,IAAI,GAAG,EAAE;KACzC,CAAA;AACH,CAAC;AAjBD,0CAiBC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/constants.d.ts b/dist/entities/trades/uniswap-v2/constants.d.ts new file mode 100644 index 00000000..bb01038e --- /dev/null +++ b/dist/entities/trades/uniswap-v2/constants.d.ts @@ -0,0 +1,20 @@ +import { ChainId } from '../../../constants'; +import { Token } from '../../token'; +/** + * @TODO check why we have 2 different token lists here and + * src/entities/token.ts + */ +type ChainTokenList = { + readonly [chainId in ChainId]: Token[]; +}; +export declare const DAI: Record; +export declare const USDC: Record; +export declare const USDT: Record; +export declare const WBTC: Record; +export declare const HONEY: Token; +export declare const STAKE: Token; +export declare const BAO: Token; +export declare const AGAVE: Token; +export declare const GNO: Token; +export declare const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList; +export {}; diff --git a/dist/entities/trades/uniswap-v2/constants.js b/dist/entities/trades/uniswap-v2/constants.js new file mode 100644 index 00000000..0385949e --- /dev/null +++ b/dist/entities/trades/uniswap-v2/constants.js @@ -0,0 +1,99 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BASES_TO_CHECK_TRADES_AGAINST = exports.GNO = exports.AGAVE = exports.BAO = exports.STAKE = exports.HONEY = exports.WBTC = exports.USDT = exports.USDC = exports.DAI = void 0; +const constants_1 = require("../../../constants"); +const token_1 = require("../../token"); +exports.DAI = { + [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0x6B175474E89094C44Da98b954EedeAC495271d0F', 18, 'DAI', 'Dai Stablecoin'), + [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063', 18, 'DAI', 'Dai Stablecoin'), + [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', 'Dai Stablecoin'), + [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', 'Dai Stablecoin'), + [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', 18, 'DAI', 'Binance-Peg Dai Stablecoin'), + [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0xEC5dCb5Dbf4B114C9d0F65BcCAb49EC54F6A0867', 18, 'DAI', 'Dai Token'), +}; +exports.USDC = { + [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', 6, 'USDC', 'USD//C'), + [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', 6, 'USDC.e', 'Bridged USDC'), + [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', 6, 'USDC', 'USD//C from Ethereum'), + [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', 6, 'USDC', 'USD//C from Ethereum'), + [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', 6, 'USDC', 'USD Coin'), + [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', 18, 'USDC', 'Binance-Peg USD Coin'), + [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0x64544969ed7EBf5f083679233325356EbE738930', 6, 'USDC', 'USDC Token'), + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new token_1.Token(constants_1.ChainId.ZK_SYNC_ERA_MAINNET, '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4', 6, 'USDC', 'USD Coin on zkSync Era'), + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new token_1.Token(constants_1.ChainId.ZK_SYNC_ERA_TESTNET, '0x0faF6df7054946141266420b43783387A78d82A9', 6, 'USDC', 'USD Coin on zkSync Era Tesnet'), +}; +exports.USDT = { + [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0xdAC17F958D2ee523a2206206994597C13D831ec7', 6, 'USDT', 'Tether USD'), + [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', 6, 'USDT', 'Tether USD from Ethereum'), + [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', 6, 'USDT', 'Tether USD'), + [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', 'Tether USD'), + [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58', 6, 'USDT', 'Tether USD'), + [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x55d398326f99059fF775485246999027B3197955', 18, 'USDT', 'Binance-Peg BSC-USD'), + [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0x337610d27c682E347C9cD60BD4b3b107C9d34dDd', 6, 'USDT', 'USDT Token'), +}; +exports.WBTC = { + [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', 8, 'WBTC', 'Wrapped BTC'), + [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', 8, 'WBTC', 'Wrapped BTC'), + [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252', 8, 'WBTC', 'Wrapped BTC from Ethereum'), + [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', 8, 'WBTC', 'Wrapped BTC from Ethereum'), + [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x68f180fcCe6836688e9084f035309E29Bf0A2095', 8, 'WBTC', 'Wrapped BTC'), +}; +exports.HONEY = new token_1.Token(constants_1.ChainId.XDAI, '0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9', 18, 'HNY', 'Honey'); +exports.STAKE = new token_1.Token(constants_1.ChainId.XDAI, '0xb7D311E2Eb55F2f68a9440da38e7989210b9A05e', 18, 'STAKE', 'Stake Token on xDai'); +exports.BAO = new token_1.Token(constants_1.ChainId.XDAI, '0x82dFe19164729949fD66Da1a37BC70dD6c4746ce', 18, 'BAO', 'BaoToken from Ethereum'); +exports.AGAVE = new token_1.Token(constants_1.ChainId.XDAI, '0x3a97704a1b25F08aa230ae53B352e2e72ef52843', 18, 'AGVE', 'Agave token'); +exports.GNO = new token_1.Token(constants_1.ChainId.XDAI, '0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb', 18, 'GNO', 'Gnosis Token'); +// used to construct intermediary pairs for trading +exports.BASES_TO_CHECK_TRADES_AGAINST = { + [constants_1.ChainId.MAINNET]: [ + token_1.WETH[constants_1.ChainId.MAINNET], + token_1.DXD[constants_1.ChainId.MAINNET], + exports.DAI[constants_1.ChainId.MAINNET], + exports.USDC[constants_1.ChainId.MAINNET], + exports.WBTC[constants_1.ChainId.MAINNET], + exports.USDT[constants_1.ChainId.MAINNET], + ], + [constants_1.ChainId.RINKEBY]: [token_1.WETH[constants_1.ChainId.RINKEBY]], + [constants_1.ChainId.ARBITRUM_ONE]: [ + token_1.WETH[constants_1.ChainId.ARBITRUM_ONE], + token_1.DXD[constants_1.ChainId.ARBITRUM_ONE], + exports.USDC[constants_1.ChainId.ARBITRUM_ONE], + exports.WBTC[constants_1.ChainId.ARBITRUM_ONE], + exports.USDT[constants_1.ChainId.ARBITRUM_ONE], + ], + [constants_1.ChainId.ARBITRUM_RINKEBY]: [token_1.WETH[constants_1.ChainId.ARBITRUM_RINKEBY], token_1.DXD[constants_1.ChainId.ARBITRUM_RINKEBY]], + [constants_1.ChainId.ARBITRUM_GOERLI]: [token_1.WETH[constants_1.ChainId.ARBITRUM_GOERLI]], + [constants_1.ChainId.XDAI]: [ + token_1.WXDAI[constants_1.ChainId.XDAI], + token_1.WETH[constants_1.ChainId.XDAI], + token_1.DXD[constants_1.ChainId.XDAI], + exports.USDC[constants_1.ChainId.XDAI], + exports.USDT[constants_1.ChainId.XDAI], + exports.WBTC[constants_1.ChainId.XDAI], + exports.HONEY, + exports.STAKE, + exports.AGAVE, + exports.BAO, + exports.GNO, + ], + [constants_1.ChainId.POLYGON]: [token_1.WMATIC[constants_1.ChainId.POLYGON], exports.WBTC[constants_1.ChainId.POLYGON], exports.USDC[constants_1.ChainId.POLYGON], exports.USDT[constants_1.ChainId.POLYGON]], + [constants_1.ChainId.GOERLI]: [token_1.WETH[constants_1.ChainId.GOERLI]], + [constants_1.ChainId.OPTIMISM_MAINNET]: [ + token_1.WETH[constants_1.ChainId.OPTIMISM_MAINNET], + exports.USDC[constants_1.ChainId.OPTIMISM_MAINNET], + exports.USDT[constants_1.ChainId.OPTIMISM_MAINNET], + exports.WBTC[constants_1.ChainId.OPTIMISM_MAINNET], + exports.DAI[constants_1.ChainId.OPTIMISM_MAINNET], + ], + [constants_1.ChainId.OPTIMISM_GOERLI]: [token_1.WETH[constants_1.ChainId.OPTIMISM_GOERLI]], + [constants_1.ChainId.BSC_MAINNET]: [ + token_1.WBNB[constants_1.ChainId.BSC_MAINNET], + exports.DAI[constants_1.ChainId.BSC_MAINNET], + exports.USDT[constants_1.ChainId.BSC_MAINNET], + exports.USDC[constants_1.ChainId.BSC_MAINNET], + ], + [constants_1.ChainId.BSC_TESTNET]: [exports.DAI[constants_1.ChainId.BSC_TESTNET], exports.USDT[constants_1.ChainId.BSC_TESTNET], exports.USDC[constants_1.ChainId.BSC_TESTNET]], + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: [exports.USDC[constants_1.ChainId.ZK_SYNC_ERA_MAINNET], token_1.WETH[constants_1.ChainId.ZK_SYNC_ERA_MAINNET]], + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: [exports.USDC[constants_1.ChainId.ZK_SYNC_ERA_TESTNET], token_1.WETH[constants_1.ChainId.ZK_SYNC_ERA_TESTNET]], +}; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/constants.js.map b/dist/entities/trades/uniswap-v2/constants.js.map new file mode 100644 index 00000000..4620a0dd --- /dev/null +++ b/dist/entities/trades/uniswap-v2/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/constants.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,uCAAmE;AAWtD,QAAA,GAAG,GAA0B;IACxC,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,aAAK,CAC1B,mBAAO,CAAC,OAAO,EACf,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,aAAK,CAC1B,mBAAO,CAAC,OAAO,EACf,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,aAAK,CAC/B,mBAAO,CAAC,YAAY,EACpB,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,aAAK,CACnC,mBAAO,CAAC,gBAAgB,EACxB,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,aAAK,CAC9B,mBAAO,CAAC,WAAW,EACnB,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,4BAA4B,CAC7B;IACD,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,aAAK,CAC9B,mBAAO,CAAC,WAAW,EACnB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I,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,CAAC;IACrG,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,CAAC;CACtG,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/index.d.ts b/dist/entities/trades/uniswap-v2/index.d.ts new file mode 100644 index 00000000..159c3e4c --- /dev/null +++ b/dist/entities/trades/uniswap-v2/index.d.ts @@ -0,0 +1,4 @@ +export * from './constants'; +export * from './pairs'; +export * from './types'; +export * from './UniswapV2'; diff --git a/dist/entities/trades/uniswap-v2/index.js b/dist/entities/trades/uniswap-v2/index.js new file mode 100644 index 00000000..edc01717 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/index.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./constants"), exports); +tslib_1.__exportStar(require("./pairs"), exports); +tslib_1.__exportStar(require("./types"), exports); +tslib_1.__exportStar(require("./UniswapV2"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/index.js.map b/dist/entities/trades/uniswap-v2/index.js.map new file mode 100644 index 00000000..7cec0498 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,kDAAuB;AACvB,kDAAuB;AACvB,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.d.ts b/dist/entities/trades/uniswap-v2/pairs/fees.d.ts new file mode 100644 index 00000000..53c009b0 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/fees.d.ts @@ -0,0 +1,6 @@ +import { GetUniswapV2PairSwapFeeParams } from './types'; +/** + * Given a list of UniswapV2 pair address, it fetches pair fee from the contract via multicall contract + * @returns the list of pair fee in basis points + */ +export declare function getUniswapV2PairSwapFee({ pairAddressList, chainId, provider, }: GetUniswapV2PairSwapFeeParams): Promise>; diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.js b/dist/entities/trades/uniswap-v2/pairs/fees.js new file mode 100644 index 00000000..3ace32c8 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/fees.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUniswapV2PairSwapFee = void 0; +const tslib_1 = require("tslib"); +const abi_1 = require("@ethersproject/abi"); +const contracts_1 = require("@ethersproject/contracts"); +const IDXswapPair_json_1 = require("@swapr/core/build/IDXswapPair.json"); +const multicall2_json_1 = tslib_1.__importDefault(require("../../../../abis/source/multicall2.json")); +const constants_1 = require("../../../../constants"); +const utils_1 = require("../../utils"); +/** + * Given a list of UniswapV2 pair address, it fetches pair fee from the contract via multicall contract + * @returns the list of pair fee in basis points + */ +function getUniswapV2PairSwapFee({ pairAddressList, chainId, provider, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + provider = provider || (0, utils_1.getProvider)(chainId); + // Fetch the pair reserves via multicall + const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], multicall2_json_1.default, provider); + const uniswapPairInterface = new abi_1.Interface(IDXswapPair_json_1.abi); + const callData = uniswapPairInterface.encodeFunctionData('swapFee', []); + const swapFeeCallResults = (yield multicallContract.callStatic.tryAggregate(false, pairAddressList.map((target) => ({ target, callData })))); + // Map the call results to the pair addresses + return pairAddressList.reduce((acc, pairAddress, index) => { + const { returnData, success } = swapFeeCallResults[index]; + // Push only the successful call results + if (success) { + const [swapFee] = uniswapPairInterface.decodeFunctionResult('swapFee', returnData); + acc[pairAddress.toLowerCase()] = swapFee; + } + return acc; + }, {}); + }); +} +exports.getUniswapV2PairSwapFee = getUniswapV2PairSwapFee; +//# sourceMappingURL=fees.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.js.map b/dist/entities/trades/uniswap-v2/pairs/fees.js.map new file mode 100644 index 00000000..a1aab6d6 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/fees.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fees.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/fees.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,wDAAmD;AACnD,yEAA6E;AAE7E,sGAAoE;AACpE,qDAA0D;AAC1D,uCAAyC;AAIzC;;;GAGG;AACH,SAAsB,uBAAuB,CAAC,EAC5C,eAAe,EACf,OAAO,EACP,QAAQ,GACsB;;QAC9B,QAAQ,GAAG,QAAQ,IAAI,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAA;QAE3C,wCAAwC;QACxC,MAAM,iBAAiB,GAAG,IAAI,oBAAQ,CAAC,8BAAkB,CAAC,OAAO,CAAC,EAAE,yBAAc,EAAE,QAAQ,CAAC,CAAA;QAE7F,MAAM,oBAAoB,GAAG,IAAI,eAAS,CAAC,sBAAiB,CAAC,CAAA;QAE7D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAA;QAEvE,MAAM,kBAAkB,GAAG,CAAC,MAAM,iBAAiB,CAAC,UAAU,CAAC,YAAY,CACzE,KAAK,EACL,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CACxD,CAAmC,CAAA;QAEpC,6CAA6C;QAC7C,OAAO,eAAe,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;YAChF,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAA;YAEzD,wCAAwC;YACxC,IAAI,OAAO,EAAE;gBACX,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;gBAClF,GAAG,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAA;aACzC;YAED,OAAO,GAAG,CAAA;QACZ,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,CAAC;CAAA;AA/BD,0DA+BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/index.d.ts b/dist/entities/trades/uniswap-v2/pairs/index.d.ts new file mode 100644 index 00000000..73c31d82 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/index.d.ts @@ -0,0 +1,3 @@ +export * from './fees'; +export * from './pairs'; +export * from './types'; diff --git a/dist/entities/trades/uniswap-v2/pairs/index.js b/dist/entities/trades/uniswap-v2/pairs/index.js new file mode 100644 index 00000000..019d529b --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./fees"), exports); +tslib_1.__exportStar(require("./pairs"), exports); +tslib_1.__exportStar(require("./types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/index.js.map b/dist/entities/trades/uniswap-v2/pairs/index.js.map new file mode 100644 index 00000000..520531ef --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/index.ts"],"names":[],"mappings":";;;AAAA,iDAAsB;AACtB,kDAAuB;AACvB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts b/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts new file mode 100644 index 00000000..d8fb9055 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts @@ -0,0 +1,11 @@ +import { Pair } from '../../../pair'; +import { GetAllCommonUniswapV2Pairs, GetAllCommonUniswapV2PairsFromSubgraphParams } from './types'; +/** + * Fetches all pairs through which the given tokens can be traded. Use `getAllCommonPairsFromSubgraph` for better results. + * @returns the pair list + */ +export declare function getAllCommonUniswapV2Pairs({ currencyA, currencyB, platform, provider, }: GetAllCommonUniswapV2Pairs): Promise; +/** + * + */ +export declare function getAllCommonUniswapV2PairsFromSubgraph({ currencyA, currencyB, platform, }: GetAllCommonUniswapV2PairsFromSubgraphParams): Promise; diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.js b/dist/entities/trades/uniswap-v2/pairs/pairs.js new file mode 100644 index 00000000..0cdda4bb --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/pairs.js @@ -0,0 +1,141 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getAllCommonUniswapV2PairsFromSubgraph = exports.getAllCommonUniswapV2Pairs = void 0; +const tslib_1 = require("tslib"); +const abi_1 = require("@ethersproject/abi"); +const contracts_1 = require("@ethersproject/contracts"); +const units_1 = require("@ethersproject/units"); +const IDXswapPair_json_1 = require("@swapr/core/build/IDXswapPair.json"); +const debug_1 = tslib_1.__importDefault(require("debug")); +const graphql_request_1 = require("graphql-request"); +const lodash_flatmap_1 = tslib_1.__importDefault(require("lodash.flatmap")); +const multicall2_json_1 = tslib_1.__importDefault(require("../../../../abis/source/multicall2.json")); +const constants_1 = require("../../../../constants"); +const graphql_1 = require("../../../../generated/graphql"); +const fractions_1 = require("../../../fractions"); +const pair_1 = require("../../../pair"); +const token_1 = require("../../../token"); +const utils_1 = require("../../utils"); +const constants_2 = require("../constants"); +const fees_1 = require("./fees"); +const getAllCommonUniswapV2PairsDebug = (0, debug_1.default)('ecoRouter:uniswap:getAllCommonUniswapV2Pairs'); +/** + * Fetches all pairs through which the given tokens can be traded. Use `getAllCommonPairsFromSubgraph` for better results. + * @returns the pair list + */ +function getAllCommonUniswapV2Pairs({ currencyA, currencyB, platform, provider, }) { + var _a, _b; + return tslib_1.__awaiter(this, void 0, void 0, function* () { + // Return value + const pairList = []; + // Extract the chain Id from the currencies + const chainId = (_a = currencyA.chainId) !== null && _a !== void 0 ? _a : currencyB.chainId; + // Get a provider if one isn't provided + provider = provider || (0, utils_1.getProvider)(chainId); + // Create list of all possible pairs for the given currencies + const bases = (_b = constants_2.BASES_TO_CHECK_TRADES_AGAINST[chainId]) !== null && _b !== void 0 ? _b : []; + const [tokenA, tokenB] = [(0, utils_1.wrappedCurrency)(currencyA, chainId), (0, utils_1.wrappedCurrency)(currencyB, chainId)]; + const basePairs = (0, lodash_flatmap_1.default)(bases, (base) => bases.map((otherBase) => [base, otherBase])).filter(([t0, t1]) => t0.address !== t1.address); + const allPairCombinations = [ + // the direct pair + [tokenA, tokenB], + // token A against all bases + ...bases.map((base) => [tokenA, base]), + // token B against all bases + ...bases.map((base) => [tokenB, base]), + // each base against all bases + ...basePairs, + ] + .filter((tokens) => Boolean(tokens[0] && tokens[1])) + .filter(([t0, t1]) => t0.address !== t1.address); + // Compute the pair addresses along with token0 and token1, sorted + const pairTokenList = allPairCombinations.reduce((list, [tokenA, tokenB]) => { + if (tokenA && tokenB && !tokenA.equals(tokenB) && chainId && platform.supportsChain(chainId)) { + const pairAddress = pair_1.Pair.getAddress(tokenA, tokenB, platform); + list[pairAddress] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; + } + return list; + }, {}); + const pairAddressList = Object.keys(pairTokenList); + // Fetch the pair reserves via multicall + const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], multicall2_json_1.default, provider); + const uniswapPairInterface = new abi_1.Interface(IDXswapPair_json_1.abi); + const getReservesCallData = uniswapPairInterface.encodeFunctionData('getReserves', []); + const swapFeeCallData = uniswapPairInterface.encodeFunctionData('swapFee', []); + const multicall2CallData = []; + for (const pairAddress of pairAddressList) { + multicall2CallData.push({ + target: pairAddress, + callData: getReservesCallData, + }); + multicall2CallData.push({ + target: pairAddress, + callData: swapFeeCallData, + }); + } + const getReservesAndSwapFeeCallResults = (yield multicallContract.callStatic.tryAggregate(false, multicall2CallData)); + for (let i = 0; i < getReservesAndSwapFeeCallResults.length; i += 2) { + const pairAddressIndex = i / 2; + const pairAddress = pairAddressList[pairAddressIndex]; + const getReservesResults = getReservesAndSwapFeeCallResults[i]; + const swapFeeResults = getReservesAndSwapFeeCallResults[i + 1]; + // Skip failed getReserves calls + if (!getReservesResults.success || !pairAddress) { + continue; + } + try { + // Decode reserves and swap fee from the results + const { reserve0, reserve1 } = uniswapPairInterface.decodeFunctionResult('getReserves', getReservesResults.returnData); + // Swap fee is only available in Swapr's extended UniswapV2Pair contract + // For any other fork, we use the default swap fee + const swapFee = (swapFeeResults === null || swapFeeResults === void 0 ? void 0 : swapFeeResults.success) + ? uniswapPairInterface.decodeFunctionResult('swapFee', swapFeeResults.returnData) + : platform.defaultSwapFee; + const [token0, token1] = pairTokenList[pairAddress]; + pairList.push(new pair_1.Pair(new fractions_1.TokenAmount(token0, reserve0.toString()), new fractions_1.TokenAmount(token1, reserve1.toString()), swapFee.toString(), BigInt(0), platform)); + } + catch (e) { + getAllCommonUniswapV2PairsDebug(e); + } + } + return pairList; + }); +} +exports.getAllCommonUniswapV2Pairs = getAllCommonUniswapV2Pairs; +/** + * + */ +function getAllCommonUniswapV2PairsFromSubgraph({ currencyA, currencyB, platform, }) { + var _a; + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (_a = currencyA.chainId) !== null && _a !== void 0 ? _a : currencyB.chainId; + const subgraphEndpoint = platform.subgraphEndpoint[chainId]; + if (!subgraphEndpoint) { + throw new Error(`No subgraph endpoint for chainId ${chainId}`); + } + const wrappedCurrencyA = (0, utils_1.wrappedCurrency)(currencyA, chainId); + const wrappedCurrencyB = (0, utils_1.wrappedCurrency)(currencyB, chainId); + const results = yield (0, graphql_1.getSdk)(new graphql_request_1.GraphQLClient(subgraphEndpoint)).GetAllCommonPairsBetweenTokenAAndTokenB({ + tokenA: wrappedCurrencyA.address.toLowerCase(), + tokenB: wrappedCurrencyB.address.toLowerCase(), + }); + const pairListWithDuplicates = [...results.pairsWithTokenA, ...results.pairsWithTokenB]; + // Remove duplicate pairs + const pairList = pairListWithDuplicates.filter((pair, index, self) => { + return self.findIndex((p) => p.id.toLowerCase() === pair.id.toLowerCase()) === index; + }); + // Fetch the swap fees for all pairs from the chain + const pairSwapFeeList = yield (0, fees_1.getUniswapV2PairSwapFee)({ + pairAddressList: pairList.map((pair) => pair.id), + chainId, + }); + return pairList.map((pair) => { + const token0 = new token_1.Token(chainId, pair.token0.id, pair.token0.decimals, pair.token0.symbol, pair.token0.name); + const token1 = new token_1.Token(chainId, pair.token1.id, pair.token1.decimals, pair.token1.symbol, pair.token1.name); + const swapFee = pairSwapFeeList[pair.id.toLowerCase()] || platform.defaultSwapFee; + return new pair_1.Pair(new fractions_1.TokenAmount(token0, (0, units_1.parseUnits)(pair.reserve0, token0.decimals).toString()), new fractions_1.TokenAmount(token1, (0, units_1.parseUnits)(pair.reserve1, token1.decimals).toString()), swapFee.toString(), BigInt(0), platform); + }); + }); +} +exports.getAllCommonUniswapV2PairsFromSubgraph = getAllCommonUniswapV2PairsFromSubgraph; +//# sourceMappingURL=pairs.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.js.map b/dist/entities/trades/uniswap-v2/pairs/pairs.js.map new file mode 100644 index 00000000..6c95a13e --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/pairs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pairs.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/pairs.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,wDAAmD;AACnD,gDAAiD;AACjD,yEAA6E;AAC7E,0D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MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAC7G,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAA;YAEjF,OAAO,IAAI,WAAI,CACb,IAAI,uBAAW,CAAC,MAAM,EAAE,IAAA,kBAAU,EAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC9E,IAAI,uBAAW,CAAC,MAAM,EAAE,IAAA,kBAAU,EAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC9E,OAAO,CAAC,QAAQ,EAAE,EAClB,MAAM,CAAC,CAAC,CAAC,EACT,QAAQ,CACT,CAAA;QACH,CAAC,CAAC,CAAA;;CACH;AA9CD,wFA8CC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.d.ts b/dist/entities/trades/uniswap-v2/pairs/queries.d.ts new file mode 100644 index 00000000..51cd8b96 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/queries.d.ts @@ -0,0 +1 @@ +export declare const GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B: string; diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.js b/dist/entities/trades/uniswap-v2/pairs/queries.js new file mode 100644 index 00000000..186ee74c --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/queries.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B = void 0; +const graphql_request_1 = require("graphql-request"); +exports.GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B = (0, graphql_request_1.gql) ` + query GetAllCommonPairsBetweenTokenAAndTokenB($tokenA: String!, $tokenB: String!) { + pairsWithTokenA: pairs(where: { token0_in: [$tokenA, $tokenB] }) { + ...PairDetails + } + pairsWithTokenB: pairs(where: { token1_in: [$tokenB, $tokenA] }) { + ...PairDetails + } + } + + fragment PairDetails on Pair { + id + reserve0 + reserve1 + token0 { + ...TokenDetails + } + token1 { + ...TokenDetails + } + } + + fragment TokenDetails on Token { + id + name + symbol + decimals + } +`; +//# sourceMappingURL=queries.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.js.map b/dist/entities/trades/uniswap-v2/pairs/queries.js.map new file mode 100644 index 00000000..3a6406b7 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/queries.js.map @@ -0,0 +1 @@ +{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/queries.ts"],"names":[],"mappings":";;;AAAA,qDAAqC;AAExB,QAAA,gDAAgD,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlE,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/types.d.ts b/dist/entities/trades/uniswap-v2/pairs/types.d.ts new file mode 100644 index 00000000..bbbf8b4c --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/types.d.ts @@ -0,0 +1,24 @@ +import type { Provider } from '@ethersproject/providers'; +import type { ChainId } from '../../../../constants'; +import type { Currency } from '../../../currency'; +import type { UniswapV2RoutablePlatform } from '../../routable-platform'; +export interface GetAllCommonUniswapV2Pairs { + currencyA: Currency; + currencyB: Currency; + platform: UniswapV2RoutablePlatform; + provider?: Provider; +} +export interface GetAllCommonUniswapV2PairsFromSubgraphParams { + currencyA: Currency; + currencyB: Currency; + platform: UniswapV2RoutablePlatform; +} +export interface UniswapV2PairSwapFee { + pairAddress: string; + swapFee: number; +} +export interface GetUniswapV2PairSwapFeeParams { + chainId: ChainId; + pairAddressList: string[]; + provider?: Provider; +} diff --git a/dist/entities/trades/uniswap-v2/pairs/types.js b/dist/entities/trades/uniswap-v2/pairs/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/types.js.map b/dist/entities/trades/uniswap-v2/pairs/types.js.map new file mode 100644 index 00000000..5a2f7928 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/pairs/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/types.d.ts b/dist/entities/trades/uniswap-v2/types.d.ts new file mode 100644 index 00000000..373ecdd9 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/types.d.ts @@ -0,0 +1,45 @@ +import type { BytesLike } from '@ethersproject/bytes'; +import type { Currency } from '../../currency'; +import type { CurrencyAmount } from '../../fractions/currencyAmount'; +import type { Percent } from '../../fractions/percent'; +import type { Pair } from '../../pair'; +import { UniswapV2RoutablePlatform } from '../routable-platform'; +import type { UniswapV2Trade } from './UniswapV2'; +export type Multicall2TryAggregateResult = { + success: boolean; + returnData: BytesLike; +}; +export interface BestTradeOptions { + maxNumResults?: number; + maxHops?: number; +} +/** + * Base interface + */ +export interface UniswapV2TradeBestTradeExactCommonParams { + maxHops?: BestTradeOptions; + maximumSlippage: Percent; + platform: UniswapV2RoutablePlatform; +} +export interface UniswapV2TradeBestTradeExactInParams extends UniswapV2TradeBestTradeExactCommonParams { + currencyAmountIn: CurrencyAmount; + currencyOut: Currency; +} +export interface UniswapV2TradeBestTradeExactOutParams extends UniswapV2TradeBestTradeExactCommonParams { + currencyIn: Currency; + currencyAmountOut: CurrencyAmount; +} +/** + * Common params for computing trade routes + */ +export interface UniswapV2TradeComputeTradeCommonParams { + pairs: Pair[]; + currentPairs?: Pair[]; + bestTrades?: UniswapV2Trade[]; +} +export type UniswapV2TradeComputeTradesExactInParams = UniswapV2TradeComputeTradeCommonParams & Omit & { + originalAmountIn?: CurrencyAmount; +}; +export type UniswapV2TradeComputeTradesExactOutParams = UniswapV2TradeComputeTradeCommonParams & Omit & { + originalAmountOut?: CurrencyAmount; +}; diff --git a/dist/entities/trades/uniswap-v2/types.js b/dist/entities/trades/uniswap-v2/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/types.js.map b/dist/entities/trades/uniswap-v2/types.js.map new file mode 100644 index 00000000..5a1393da --- /dev/null +++ b/dist/entities/trades/uniswap-v2/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/utilts.d.ts b/dist/entities/trades/uniswap-v2/utilts.d.ts new file mode 100644 index 00000000..a6f23b92 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/utilts.d.ts @@ -0,0 +1,18 @@ +import type { CurrencyAmount } from '../../fractions/currencyAmount'; +import { Percent } from '../../fractions/percent'; +import type { Price } from '../../fractions/price'; +export type { UniswapV2Trade } from './UniswapV2'; +export declare function toHex(currencyAmount: CurrencyAmount): string; +export declare const ZERO_HEX = "0x0"; +/** + * Returns the percent difference between the mid price and the execution price, i.e. price impact. + * @param midPrice mid price before the trade + * @param inputAmount the input amount of the trade + * @param outputAmount the output amount of the trade + */ +export declare function computePriceImpact(midPrice: Price, inputAmount: CurrencyAmount, outputAmount: CurrencyAmount): Percent; +interface InputOutput { + readonly inputAmount: CurrencyAmount; + readonly outputAmount: CurrencyAmount; +} +export declare function inputOutputComparator(a: InputOutput, b: InputOutput): number; diff --git a/dist/entities/trades/uniswap-v2/utilts.js b/dist/entities/trades/uniswap-v2/utilts.js new file mode 100644 index 00000000..c960cb81 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/utilts.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.inputOutputComparator = exports.computePriceImpact = exports.ZERO_HEX = exports.toHex = void 0; +const tslib_1 = require("tslib"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const percent_1 = require("../../fractions/percent"); +const token_1 = require("../../token"); +function toHex(currencyAmount) { + return `0x${currencyAmount.raw.toString(16)}`; +} +exports.toHex = toHex; +exports.ZERO_HEX = '0x0'; +/** + * Returns the percent difference between the mid price and the execution price, i.e. price impact. + * @param midPrice mid price before the trade + * @param inputAmount the input amount of the trade + * @param outputAmount the output amount of the trade + */ +function computePriceImpact(midPrice, inputAmount, outputAmount) { + const exactQuote = midPrice.raw.multiply(inputAmount.raw); + // calculate slippage := (exactQuote - outputAmount) / exactQuote + const slippage = exactQuote.subtract(outputAmount.raw).divide(exactQuote); + return new percent_1.Percent(slippage.numerator, slippage.denominator); +} +exports.computePriceImpact = computePriceImpact; +// comparator function that allows sorting trades by their output amounts, in decreasing order, and then input amounts +// in increasing order. i.e. the best trades have the most outputs for the least inputs and are sorted first +function inputOutputComparator(a, b) { + // must have same input and output token for comparison + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(a.inputAmount.currency, b.inputAmount.currency), 'INPUT_CURRENCY'); + (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(a.outputAmount.currency, b.outputAmount.currency), 'OUTPUT_CURRENCY'); + if (a.outputAmount.equalTo(b.outputAmount)) { + if (a.inputAmount.equalTo(b.inputAmount)) { + return 0; + } + // trade A requires less input than trade B, so A should come first + if (a.inputAmount.lessThan(b.inputAmount)) { + return -1; + } + else { + return 1; + } + } + else { + // tradeA has less output than trade B, so should come second + if (a.outputAmount.lessThan(b.outputAmount)) { + return 1; + } + else { + return -1; + } + } +} +exports.inputOutputComparator = inputOutputComparator; +//# sourceMappingURL=utilts.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/utilts.js.map b/dist/entities/trades/uniswap-v2/utilts.js.map new file mode 100644 index 00000000..201c9851 --- /dev/null +++ b/dist/entities/trades/uniswap-v2/utilts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utilts.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/utilts.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAGtC,qDAAiD;AAEjD,uCAA4C;AAG5C,SAAgB,KAAK,CAAC,cAA8B;IAClD,OAAO,KAAK,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;AAC/C,CAAC;AAFD,sBAEC;AAEY,QAAA,QAAQ,GAAG,KAAK,CAAA;AAE7B;;;;;GAKG;AACH,SAAgB,kBAAkB,CAChC,QAAe,EACf,WAA2B,EAC3B,YAA4B;IAE5B,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IACzD,iEAAiE;IACjE,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;IACzE,OAAO,IAAI,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC9D,CAAC;AATD,gDASC;AAQD,sHAAsH;AACtH,4GAA4G;AAC5G,SAAgB,qBAAqB,CAAC,CAAc,EAAE,CAAc;IAClE,uDAAuD;IACvD,IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAA;IAC3F,IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAA;IAC9F,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE;QAC1C,IAAI,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACxC,OAAO,CAAC,CAAA;SACT;QACD,mEAAmE;QACnE,IAAI,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACzC,OAAO,CAAC,CAAC,CAAA;SACV;aAAM;YACL,OAAO,CAAC,CAAA;SACT;KACF;SAAM;QACL,6DAA6D;QAC7D,IAAI,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE;YAC3C,OAAO,CAAC,CAAA;SACT;aAAM;YACL,OAAO,CAAC,CAAC,CAAA;SACV;KACF;AACH,CAAC;AAtBD,sDAsBC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts b/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts new file mode 100644 index 00000000..8595de5a --- /dev/null +++ b/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts @@ -0,0 +1,21 @@ +import type { BaseProvider } from '@ethersproject/providers'; +import { UnsignedTransaction } from '@ethersproject/transactions'; +import { SwapRoute } from '@uniswap/smart-order-router'; +import { CurrencyAmount } from '../../../fractions'; +import { TradeWithSwapTransaction } from '../../interfaces/trade'; +import { TradeOptions } from '../../interfaces/trade-options'; +import { UniswapTradeGetQuoteParams, UniswapTradeParams } from '../types/UniswapV3.types'; +/** + * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools + */ +export declare class UniswapTrade extends TradeWithSwapTransaction { + /** + * @property The original SwapRoute object from the Routing API + */ + swapRoute: SwapRoute; + constructor({ maximumSlippage, swapRoute }: UniswapTradeParams); + static getQuote({ amount, quoteCurrency, tradeType, recipient, maximumSlippage }: UniswapTradeGetQuoteParams, provider?: BaseProvider): Promise; + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + swapTransaction(options: TradeOptions): Promise; +} diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.js b/dist/entities/trades/uniswap/Uniswap/Uniswap.js new file mode 100644 index 00000000..e91ce52b --- /dev/null +++ b/dist/entities/trades/uniswap/Uniswap/Uniswap.js @@ -0,0 +1,161 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UniswapTrade = void 0; +const tslib_1 = require("tslib"); +const bignumber_1 = require("@ethersproject/bignumber"); +const constants_1 = require("@ethersproject/constants"); +const units_1 = require("@ethersproject/units"); +const router_sdk_1 = require("@uniswap/router-sdk"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const smart_order_router_1 = require("@uniswap/smart-order-router"); +const v2_sdk_1 = require("@uniswap/v2-sdk"); +const dayjs_1 = tslib_1.__importDefault(require("dayjs")); +const debug_1 = tslib_1.__importDefault(require("debug")); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_2 = require("../../../../constants"); +const currency_1 = require("../../../currency"); +const fractions_1 = require("../../../fractions"); +const constants_3 = require("../../constants"); +const trade_1 = require("../../interfaces/trade"); +const routable_platform_1 = require("../../routable-platform"); +const utils_1 = require("../../utils"); +const utils_2 = require("../utils"); +// Debuging logger. See documentation to enable logging. +const debugUniswapTradeGetQuote = (0, debug_1.default)('ecoRouter:uniswap:getQuote'); +/** + * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools + */ +class UniswapTrade extends trade_1.TradeWithSwapTransaction { + constructor({ maximumSlippage, swapRoute }) { + const chainId = swapRoute.trade.inputAmount.currency.chainId; + // Require chainId + (0, tiny_invariant_1.default)(chainId, 'UniswapTrade.constructor: chainId is required'); + const inputCurrency = swapRoute.trade.inputAmount.currency; + const outpuCurrency = swapRoute.trade.outputAmount.currency; + const inputAmountBN = (0, units_1.parseUnits)(swapRoute.trade.inputAmount.toSignificant(), inputCurrency.decimals); + const outputAmountBN = (0, units_1.parseUnits)(swapRoute.trade.outputAmount.toSignificant(), outpuCurrency.decimals); + // Make the Uniswap SDK types compatible with the Trade types + const inputAmount = inputCurrency.isNative + ? fractions_1.CurrencyAmount.nativeCurrency(inputAmountBN.toBigInt(), chainId) + : new fractions_1.TokenAmount(inputCurrency, inputAmountBN.toBigInt()); + const outputAmount = outpuCurrency.isNative + ? fractions_1.CurrencyAmount.nativeCurrency(outputAmountBN.toBigInt(), chainId) + : new fractions_1.TokenAmount(outpuCurrency, outputAmountBN.toBigInt()); + const executionPrice = new fractions_1.Price({ + baseCurrency: swapRoute.trade.executionPrice.baseCurrency, + quoteCurrency: swapRoute.trade.executionPrice.quoteCurrency, + denominator: swapRoute.trade.executionPrice.denominator, + numerator: swapRoute.trade.executionPrice.numerator, + }); + const priceImpact = new fractions_1.Percent(swapRoute.trade.priceImpact.numerator, swapRoute.trade.priceImpact.denominator); + // Calculate the total fee percentage as basis point by summing all v3 and v2 pools from the AutoRouter routes + // Then, divide by 100 because Uniswap uses hundredths of basis points + const fee = swapRoute.trade.swaps.reduce((acc, { route: { pools } }) => { + for (let i = 0; i < pools.length; i++) { + const nextPool = pools[i]; + acc = acc + (nextPool instanceof v2_sdk_1.Pair ? 3000 : nextPool.fee); // default V2 fee is 0.3% while v3 can be 0.01% to 1% + } + return acc; + }, 0) / 100; + super({ + details: undefined, + type: swapRoute.trade.tradeType, + inputAmount, + outputAmount, + maximumSlippage, + platform: routable_platform_1.RoutablePlatform.UNISWAP, + chainId, + executionPrice, + priceImpact, + fee: new fractions_1.Percent(jsbi_1.default.BigInt(fee), '10000'), + // Uniswap V3 Router v2 address + approveAddress: '0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45', + estimatedGas: swapRoute.estimatedGasUsed, + }); + this.swapRoute = swapRoute; + } + static getQuote({ amount, quoteCurrency, tradeType, recipient, maximumSlippage }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); + (0, tiny_invariant_1.default)(chainId, 'UniswapV3Trade.getQuote: chainId is required'); + // Defaults + recipient = recipient || constants_1.AddressZero; + maximumSlippage = maximumSlippage || constants_3.maximumSlippage; + provider = provider || (0, utils_1.getProvider)(chainId); + // Must match the currencies provided + (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `UniswapTrade.getQuote: currencies chainId does not match provider's chainId`); + const alphaRouter = new smart_order_router_1.AlphaRouter({ chainId: chainId, provider }); + // Map the current currencies to compatible types from the Uniswap SDK + const amountV3 = sdk_core_1.CurrencyAmount.fromRawAmount(currency_1.Currency.isNative(amount.currency) + ? (0, utils_2.getUniswapNativeCurrency)(chainId) + : new sdk_core_1.Token(chainId, amount.currency.address, amount.currency.decimals, amount.currency.symbol, amount.currency.name), amount.raw); + const quoteCurrencyV3 = currency_1.Currency.isNative(quoteCurrency) + ? (0, utils_2.getUniswapNativeCurrency)(chainId) + : new sdk_core_1.Token(chainId, quoteCurrency.address, quoteCurrency.decimals, quoteCurrency.symbol, quoteCurrency.name); + debugUniswapTradeGetQuote({ + amountV3, + quoteCurrencyV3, + tradeType, + recipient, + maximumSlippage, + alphaRouter, + }); + const routeResponse = yield alphaRouter.route(amountV3, quoteCurrencyV3, tradeType, { + recipient, + slippageTolerance: new sdk_core_1.Percent(maximumSlippage.numerator, maximumSlippage.denominator), + deadline: (0, dayjs_1.default)().add(30, 'm').unix(), + }, { + protocols: [router_sdk_1.Protocol.V2, router_sdk_1.Protocol.V3], + }); + // Debug + debugUniswapTradeGetQuote(routeResponse); + if (routeResponse) { + return new UniswapTrade({ maximumSlippage, swapRoute: routeResponse }); + } + return null; + }); + } + minimumAmountOut() { + if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + swapTransaction(options) { + var _a, _b, _c; + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const callData = (0, utils_2.encodeRecipient)(this.tradeType, options.recipient, (_a = this.swapRoute.methodParameters) === null || _a === void 0 ? void 0 : _a.calldata); + return { + value: ((_b = this.swapRoute.methodParameters) === null || _b === void 0 ? void 0 : _b.value) + ? bignumber_1.BigNumber.from((_c = this.swapRoute.methodParameters) === null || _c === void 0 ? void 0 : _c.value) + : undefined, + data: callData, + to: this.approveAddress, + }; + }); + } +} +exports.UniswapTrade = UniswapTrade; +//# sourceMappingURL=Uniswap.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map b/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map new file mode 100644 index 00000000..d4ce4492 --- /dev/null +++ b/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Uniswap.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap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e,EAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,QAAQ,CAAC,CAAA;YAE9G,OAAO;gBACL,KAAK,EAAE,CAAA,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,KAAK;oBAC3C,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,KAAK,CAAC;oBACxD,CAAC,CAAC,SAAS;gBACb,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,cAAc;aACxB,CAAA;;KACF;CACF;AAnLD,oCAmLC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/abi/index.d.ts b/dist/entities/trades/uniswap/abi/index.d.ts new file mode 100644 index 00000000..3f7a2cd5 --- /dev/null +++ b/dist/entities/trades/uniswap/abi/index.d.ts @@ -0,0 +1,50 @@ +export declare const UNISWAP_ROUTER_ABI: ({ + inputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + name?: undefined; + outputs?: undefined; +} | { + inputs: { + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +} | { + inputs: { + components: { + internalType: string; + name: string; + type: string; + }[]; + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +} | { + stateMutability: string; + type: string; + inputs?: undefined; + name?: undefined; + outputs?: undefined; +})[]; diff --git a/dist/entities/trades/uniswap/abi/index.js b/dist/entities/trades/uniswap/abi/index.js new file mode 100644 index 00000000..75fd6972 --- /dev/null +++ b/dist/entities/trades/uniswap/abi/index.js @@ -0,0 +1,460 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UNISWAP_ROUTER_ABI = void 0; +exports.UNISWAP_ROUTER_ABI = [ + { + inputs: [ + { internalType: 'address', name: '_factoryV2', type: 'address' }, + { internalType: 'address', name: 'factoryV3', type: 'address' }, + { internalType: 'address', name: '_positionManager', type: 'address' }, + { internalType: 'address', name: '_WETH9', type: 'address' }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'WETH9', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'token', type: 'address' }], + name: 'approveMax', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'token', type: 'address' }], + name: 'approveMaxMinusOne', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'token', type: 'address' }], + name: 'approveZeroThenMax', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'token', type: 'address' }], + name: 'approveZeroThenMaxMinusOne', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }], + name: 'callPositionManager', + outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes[]', name: 'paths', type: 'bytes[]' }, + { internalType: 'uint128[]', name: 'amounts', type: 'uint128[]' }, + { internalType: 'uint24', name: 'maximumTickDivergence', type: 'uint24' }, + { internalType: 'uint32', name: 'secondsAgo', type: 'uint32' }, + ], + name: 'checkOracleSlippage', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes', name: 'path', type: 'bytes' }, + { internalType: 'uint24', name: 'maximumTickDivergence', type: 'uint24' }, + { internalType: 'uint32', name: 'secondsAgo', type: 'uint32' }, + ], + name: 'checkOracleSlippage', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'bytes', name: 'path', type: 'bytes' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMinimum', type: 'uint256' }, + ], + internalType: 'struct IV3SwapRouter.ExactInputParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactInput', + outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'uint24', name: 'fee', type: 'uint24' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMinimum', type: 'uint256' }, + { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, + ], + internalType: 'struct IV3SwapRouter.ExactInputSingleParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactInputSingle', + outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'bytes', name: 'path', type: 'bytes' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, + { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, + ], + internalType: 'struct IV3SwapRouter.ExactOutputParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactOutput', + outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'uint24', name: 'fee', type: 'uint24' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, + { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, + { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, + ], + internalType: 'struct IV3SwapRouter.ExactOutputSingleParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'exactOutputSingle', + outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'factory', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'factoryV2', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'amount', type: 'uint256' }, + ], + name: 'getApprovalType', + outputs: [{ internalType: 'enum IApproveAndCall.ApprovalType', name: '', type: 'uint8' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'address', name: 'token0', type: 'address' }, + { internalType: 'address', name: 'token1', type: 'address' }, + { internalType: 'uint256', name: 'tokenId', type: 'uint256' }, + { internalType: 'uint256', name: 'amount0Min', type: 'uint256' }, + { internalType: 'uint256', name: 'amount1Min', type: 'uint256' }, + ], + internalType: 'struct IApproveAndCall.IncreaseLiquidityParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'increaseLiquidity', + outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'address', name: 'token0', type: 'address' }, + { internalType: 'address', name: 'token1', type: 'address' }, + { internalType: 'uint24', name: 'fee', type: 'uint24' }, + { internalType: 'int24', name: 'tickLower', type: 'int24' }, + { internalType: 'int24', name: 'tickUpper', type: 'int24' }, + { internalType: 'uint256', name: 'amount0Min', type: 'uint256' }, + { internalType: 'uint256', name: 'amount1Min', type: 'uint256' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + ], + internalType: 'struct IApproveAndCall.MintParams', + name: 'params', + type: 'tuple', + }, + ], + name: 'mint', + outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'previousBlockhash', type: 'bytes32' }, + { internalType: 'bytes[]', name: 'data', type: 'bytes[]' }, + ], + name: 'multicall', + outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'bytes[]', name: 'data', type: 'bytes[]' }, + ], + name: 'multicall', + outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }], + name: 'multicall', + outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'positionManager', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + ], + name: 'pull', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { inputs: [], name: 'refundETH', outputs: [], stateMutability: 'payable', type: 'function' }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'selfPermit', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'nonce', type: 'uint256' }, + { internalType: 'uint256', name: 'expiry', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'selfPermitAllowed', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'nonce', type: 'uint256' }, + { internalType: 'uint256', name: 'expiry', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'selfPermitAllowedIfNecessary', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'selfPermitIfNecessary', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, + { internalType: 'address[]', name: 'path', type: 'address[]' }, + { internalType: 'address', name: 'to', type: 'address' }, + ], + name: 'swapExactTokensForTokens', + outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, + { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, + { internalType: 'address[]', name: 'path', type: 'address[]' }, + { internalType: 'address', name: 'to', type: 'address' }, + ], + name: 'swapTokensForExactTokens', + outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + ], + name: 'sweepToken', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + ], + name: 'sweepToken', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, + { internalType: 'address', name: 'feeRecipient', type: 'address' }, + ], + name: 'sweepTokenWithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, + { internalType: 'address', name: 'feeRecipient', type: 'address' }, + ], + name: 'sweepTokenWithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'int256', name: 'amount0Delta', type: 'int256' }, + { internalType: 'int256', name: 'amount1Delta', type: 'int256' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, + ], + name: 'uniswapV3SwapCallback', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + ], + name: 'unwrapWETH9', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }], + name: 'unwrapWETH9', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'address', name: 'recipient', type: 'address' }, + { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, + { internalType: 'address', name: 'feeRecipient', type: 'address' }, + ], + name: 'unwrapWETH9WithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, + { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, + { internalType: 'address', name: 'feeRecipient', type: 'address' }, + ], + name: 'unwrapWETH9WithFee', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], + name: 'wrapETH', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { stateMutability: 'payable', type: 'receive' }, +]; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/abi/index.js.map b/dist/entities/trades/uniswap/abi/index.js.map new file mode 100644 index 00000000..30e33c01 --- /dev/null +++ b/dist/entities/trades/uniswap/abi/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/abi/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YAChE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE;YACtE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7D;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;Q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SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;SACnE;QACD,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE;YACnE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;SACnE;QACD,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CAChD,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/index.d.ts b/dist/entities/trades/uniswap/index.d.ts new file mode 100644 index 00000000..5b8b8624 --- /dev/null +++ b/dist/entities/trades/uniswap/index.d.ts @@ -0,0 +1,2 @@ +export { UniswapTradeGetQuoteParams, UniswapTradeParams } from './types/UniswapV3.types'; +export { UniswapTrade } from './Uniswap/Uniswap'; diff --git a/dist/entities/trades/uniswap/index.js b/dist/entities/trades/uniswap/index.js new file mode 100644 index 00000000..70bb88d4 --- /dev/null +++ b/dist/entities/trades/uniswap/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UniswapTrade = void 0; +var Uniswap_1 = require("./Uniswap/Uniswap"); +Object.defineProperty(exports, "UniswapTrade", { enumerable: true, get: function () { return Uniswap_1.UniswapTrade; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/index.js.map b/dist/entities/trades/uniswap/index.js.map new file mode 100644 index 00000000..ae7dc318 --- /dev/null +++ b/dist/entities/trades/uniswap/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap/index.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAAvC,uGAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts b/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts new file mode 100644 index 00000000..1a255af8 --- /dev/null +++ b/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts @@ -0,0 +1,16 @@ +import { SwapRoute } from '@uniswap/smart-order-router'; +import type { TradeType } from '../../../../constants'; +import type { Currency } from '../../../currency'; +import type { CurrencyAmount } from '../../../fractions/currencyAmount'; +import type { Percent } from '../../../fractions/percent'; +export interface UniswapTradeGetQuoteParams { + amount: CurrencyAmount; + quoteCurrency: Currency; + tradeType: TradeType; + maximumSlippage?: Percent; + recipient?: string; +} +export interface UniswapTradeParams { + swapRoute: SwapRoute; + maximumSlippage: Percent; +} diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.js b/dist/entities/trades/uniswap/types/UniswapV3.types.js new file mode 100644 index 00000000..afbe4326 --- /dev/null +++ b/dist/entities/trades/uniswap/types/UniswapV3.types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=UniswapV3.types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.js.map b/dist/entities/trades/uniswap/types/UniswapV3.types.js.map new file mode 100644 index 00000000..e5250d5d --- /dev/null +++ b/dist/entities/trades/uniswap/types/UniswapV3.types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UniswapV3.types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/types/UniswapV3.types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/index.d.ts b/dist/entities/trades/uniswap/utils/index.d.ts new file mode 100644 index 00000000..bb2c5514 --- /dev/null +++ b/dist/entities/trades/uniswap/utils/index.d.ts @@ -0,0 +1,3 @@ +import { TradeType } from '../../../../constants'; +export * from './nativeCurrency'; +export declare function encodeRecipient(tradeType: TradeType, recipient: string, callData?: string): string | undefined; diff --git a/dist/entities/trades/uniswap/utils/index.js b/dist/entities/trades/uniswap/utils/index.js new file mode 100644 index 00000000..9462c3c5 --- /dev/null +++ b/dist/entities/trades/uniswap/utils/index.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.encodeRecipient = void 0; +const tslib_1 = require("tslib"); +const abi_1 = require("@ethersproject/abi"); +const utils_1 = require("ethers/lib/utils"); +const constants_1 = require("../../../../constants"); +const abi_2 = require("../abi"); +tslib_1.__exportStar(require("./nativeCurrency"), exports); +function encodeRecipient(tradeType, recipient, callData) { + if (!callData) + return undefined; + const routerFunction = tradeType === constants_1.TradeType.EXACT_INPUT ? 'exactInputSingle' : 'exactOutputSingle'; + const routerInterface = new abi_1.Interface(abi_2.UNISWAP_ROUTER_ABI); + const data = routerInterface.decodeFunctionData('multicall(uint256,bytes[])', callData); + const decodedData = routerInterface.decodeFunctionData(routerFunction, data.data[0]); + const { params } = decodedData; + const routerFunctionCallData = routerInterface.encodeFunctionData(routerFunction, [ + [ + params.tokenIn, + params.tokenOut, + params.fee, + recipient, + //amountIn or amountOut + decodedData[0][4].toString(), + //amountInMaximum or amountOutMaximum + decodedData[0][5].toString(), + params.sqrtPriceLimitX96.toString(), + ], + ]); + const dataFormatted = (0, utils_1.arrayify)(routerFunctionCallData); + const newEncodedCallData = routerInterface.encodeFunctionData('multicall(uint256,bytes[])', [ + data.deadline.toString(), + [dataFormatted], + ]); + return newEncodedCallData; +} +exports.encodeRecipient = encodeRecipient; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/index.js.map b/dist/entities/trades/uniswap/utils/index.js.map new file mode 100644 index 00000000..a648d8ab --- /dev/null +++ b/dist/entities/trades/uniswap/utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/utils/index.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,4CAA2C;AAE3C,qDAAiD;AACjD,gCAA2C;AAE3C,2DAAgC;AAEhC,SAAgB,eAAe,CAAC,SAAoB,EAAE,SAAiB,EAAE,QAAiB;IACxF,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAA;IAC/B,MAAM,cAAc,GAAG,SAAS,KAAK,qBAAS,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAA;IACrG,MAAM,eAAe,GAAG,IAAI,eAAS,CAAC,wBAAkB,CAAC,CAAA;IACzD,MAAM,IAAI,GAAG,eAAe,CAAC,kBAAkB,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAA;IAEvF,MAAM,WAAW,GAAG,eAAe,CAAC,kBAAkB,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IACpF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAA;IAE9B,MAAM,sBAAsB,GAAG,eAAe,CAAC,kBAAkB,CAAC,cAAc,EAAE;QAChF;YACE,MAAM,CAAC,OAAO;YACd,MAAM,CAAC,QAAQ;YACf,MAAM,CAAC,GAAG;YACV,SAAS;YACT,uBAAuB;YACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC5B,qCAAqC;YACrC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC5B,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE;SACpC;KACF,CAAC,CAAA;IACF,MAAM,aAAa,GAAG,IAAA,gBAAQ,EAAC,sBAAsB,CAAC,CAAA;IACtD,MAAM,kBAAkB,GAAG,eAAe,CAAC,kBAAkB,CAAC,4BAA4B,EAAE;QAC1F,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACxB,CAAC,aAAa,CAAC;KAChB,CAAC,CAAA;IACF,OAAO,kBAAkB,CAAA;AAC3B,CAAC;AA5BD,0CA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts b/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts new file mode 100644 index 00000000..ee10924d --- /dev/null +++ b/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts @@ -0,0 +1,2 @@ +import { NativeCurrency as UniswapNativeCurrency } from '@uniswap/sdk-core'; +export declare function getUniswapNativeCurrency(chainId: number): UniswapNativeCurrency; diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.js b/dist/entities/trades/uniswap/utils/nativeCurrency.js new file mode 100644 index 00000000..0de24cfa --- /dev/null +++ b/dist/entities/trades/uniswap/utils/nativeCurrency.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUniswapNativeCurrency = void 0; +const tslib_1 = require("tslib"); +const sdk_core_1 = require("@uniswap/sdk-core"); +const smart_order_router_1 = require("@uniswap/smart-order-router"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +function isMatic(chainId) { + return chainId === smart_order_router_1.ChainId.POLYGON_MUMBAI || chainId === smart_order_router_1.ChainId.POLYGON; +} +class MaticNativeCurrency extends sdk_core_1.NativeCurrency { + equals(other) { + return other.isNative && other.chainId === this.chainId; + } + get wrapped() { + if (!isMatic(this.chainId)) + throw new Error('Not matic'); + const wrapped = smart_order_router_1.WRAPPED_NATIVE_CURRENCY[this.chainId]; + (0, tiny_invariant_1.default)(wrapped instanceof sdk_core_1.Token); + return wrapped; + } + constructor(chainId) { + if (!isMatic(chainId)) + throw new Error('Not matic'); + super(chainId, 18, 'MATIC', 'Polygon Matic'); + } +} +function getUniswapNativeCurrency(chainId) { + if (isMatic(chainId)) { + return new MaticNativeCurrency(chainId); + } + else { + return sdk_core_1.Ether.onChain(chainId); + } +} +exports.getUniswapNativeCurrency = getUniswapNativeCurrency; +//# sourceMappingURL=nativeCurrency.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.js.map b/dist/entities/trades/uniswap/utils/nativeCurrency.js.map new file mode 100644 index 00000000..c1fb622f --- /dev/null +++ b/dist/entities/trades/uniswap/utils/nativeCurrency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"nativeCurrency.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/utils/nativeCurrency.ts"],"names":[],"mappings":";;;;AAAA,gDAK0B;AAC1B,oEAA8E;AAC9E,4EAAsC;AAEtC,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO,OAAO,KAAK,4BAAO,CAAC,cAAc,IAAI,OAAO,KAAK,4BAAO,CAAC,OAAO,CAAA;AAC1E,CAAC;AAED,MAAM,mBAAoB,SAAQ,yBAAqB;IACrD,MAAM,CAAC,KAAsB;QAC3B,OAAO,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,CAAA;IACzD,CAAC;IAED,IAAI,OAAO;QACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAA;QACxD,MAAM,OAAO,GAAG,4CAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACrD,IAAA,wBAAS,EAAC,OAAO,YAAY,gBAAY,CAAC,CAAA;QAC1C,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,YAAmB,OAAe;QAChC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAA;QACnD,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,CAAA;IAC9C,CAAC;CACF;AAED,SAAgB,wBAAwB,CAAC,OAAe;IACtD,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACpB,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAA;KACxC;SAAM;QACL,OAAO,gBAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;KACrC;AACH,CAAC;AAND,4DAMC"} \ No newline at end of file diff --git a/dist/entities/trades/utils.d.ts b/dist/entities/trades/utils.d.ts new file mode 100644 index 00000000..2a903e66 --- /dev/null +++ b/dist/entities/trades/utils.d.ts @@ -0,0 +1,44 @@ +import { JsonRpcProvider } from '@ethersproject/providers'; +import { ChainId } from '../../constants'; +import { Currency } from '../currency'; +import { CurrencyAmount } from '../fractions/currencyAmount'; +import { TokenAmount } from '../fractions/tokenAmount'; +import { Token } from '../token'; +/** + * Same as `wrappedCurrency` util functiom, but for `TokenAmount` + * @param currencyAmount The currency amount to wrap + * @param chainId The chain ID + * @returns The wrapped currency amount if it is native, otherwise the currency itself + * @throws an error + */ +export declare function wrappedAmount(currencyAmount: CurrencyAmount, chainId: ChainId): TokenAmount; +/** + * Returns the wrapped currency for the given currency if it is native + * @param currency The currency to wrap + * @param chainId The chain ID + * @returns The wrapped currency if it is native, otherwise the currency itself + * @throws an error + */ +export declare function wrappedCurrency(currency: Currency, chainId: ChainId): Token; +/** + * Attempts to find the chain ID of the given currencies + * @param currencyAmount The currency amount to find the chain ID for + * @param currency The currency to find the chain ID for + * @returns + */ +export declare function tryGetChainId(currencyAmount: CurrencyAmount, currency: Currency): ChainId | undefined; +/** + * List of RPC provider URLs for different chains. + * @see https://chainlist.org/ lookup Chain info + */ +/** + * @TODO in https://linear.app/swaprdev/issue/SWA-65/provide-a-single-source-of-truth-for-chain-rpcs-from-the-sdk + * Make `RPC_PROVIDER_LIST` exportable from this repo + */ +export declare const RPC_PROVIDER_LIST: Record; +/** + * Returns a RPC provider for the given chainId. + * @param chainId The chainId + * @returns The RPC provider + */ +export declare function getProvider(chainId: ChainId): JsonRpcProvider; diff --git a/dist/entities/trades/utils.js b/dist/entities/trades/utils.js new file mode 100644 index 00000000..0ec1aaf9 --- /dev/null +++ b/dist/entities/trades/utils.js @@ -0,0 +1,89 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProvider = exports.RPC_PROVIDER_LIST = exports.tryGetChainId = exports.wrappedCurrency = exports.wrappedAmount = void 0; +const tslib_1 = require("tslib"); +const providers_1 = require("@ethersproject/providers"); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("../../constants"); +const currency_1 = require("../currency"); +const tokenAmount_1 = require("../fractions/tokenAmount"); +const token_1 = require("../token"); +/** + * Same as `wrappedCurrency` util functiom, but for `TokenAmount` + * @param currencyAmount The currency amount to wrap + * @param chainId The chain ID + * @returns The wrapped currency amount if it is native, otherwise the currency itself + * @throws an error + */ +function wrappedAmount(currencyAmount, chainId) { + if (currencyAmount instanceof tokenAmount_1.TokenAmount) + return currencyAmount; + if (currency_1.Currency.isNative(currencyAmount.currency)) + return new tokenAmount_1.TokenAmount(token_1.Token.getNativeWrapper(chainId), currencyAmount.raw); + (0, tiny_invariant_1.default)(false, 'CURRENCY'); +} +exports.wrappedAmount = wrappedAmount; +/** + * Returns the wrapped currency for the given currency if it is native + * @param currency The currency to wrap + * @param chainId The chain ID + * @returns The wrapped currency if it is native, otherwise the currency itself + * @throws an error + */ +function wrappedCurrency(currency, chainId) { + if (currency instanceof token_1.Token) + return currency; + if (currency_1.Currency.isNative(currency)) + return token_1.Token.getNativeWrapper(chainId); + (0, tiny_invariant_1.default)(false, 'CURRENCY'); +} +exports.wrappedCurrency = wrappedCurrency; +/** + * Attempts to find the chain ID of the given currencies + * @param currencyAmount The currency amount to find the chain ID for + * @param currency The currency to find the chain ID for + * @returns + */ +function tryGetChainId(currencyAmount, currency) { + return currencyAmount instanceof tokenAmount_1.TokenAmount + ? currencyAmount.token.chainId + : currency instanceof token_1.Token + ? currency.chainId + : undefined; +} +exports.tryGetChainId = tryGetChainId; +/** + * List of RPC provider URLs for different chains. + * @see https://chainlist.org/ lookup Chain info + */ +/** + * @TODO in https://linear.app/swaprdev/issue/SWA-65/provide-a-single-source-of-truth-for-chain-rpcs-from-the-sdk + * Make `RPC_PROVIDER_LIST` exportable from this repo + */ +exports.RPC_PROVIDER_LIST = { + [constants_1.ChainId.MAINNET]: 'https://mainnet.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', + [constants_1.ChainId.XDAI]: 'https://poa-xdai.gateway.pokt.network/v1/lb/627cd67433e8770039fe3dba', + [constants_1.ChainId.RINKEBY]: 'https://rinkeby.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', + [constants_1.ChainId.ARBITRUM_ONE]: 'https://arb1.arbitrum.io/rpc', + [constants_1.ChainId.ARBITRUM_RINKEBY]: 'https://rinkeby.arbitrum.io/rpc', + [constants_1.ChainId.ARBITRUM_GOERLI]: 'https://goerli-rollup.arbitrum.io/rpc', + [constants_1.ChainId.POLYGON]: 'https://polygon-rpc.com', + [constants_1.ChainId.GOERLI]: 'https://goerli.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', + [constants_1.ChainId.OPTIMISM_MAINNET]: 'https://opt-mainnet.g.alchemy.com/v2/6cRVjVO2uOTC9gWFCsBnquUwOM9zuWQZ', + [constants_1.ChainId.OPTIMISM_GOERLI]: 'https://goerli.optimism.io', + [constants_1.ChainId.BSC_MAINNET]: 'https://bsc-dataseed1.binance.org/', + [constants_1.ChainId.BSC_TESTNET]: 'https://data-seed-prebsc-1-s1.binance.org:8545/', + [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: 'https://mainnet.era.zksync.io', + [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: 'https://testnet.era.zksync.dev', +}; +/** + * Returns a RPC provider for the given chainId. + * @param chainId The chainId + * @returns The RPC provider + */ +function getProvider(chainId) { + const host = exports.RPC_PROVIDER_LIST[chainId]; + return new providers_1.JsonRpcProvider(host); +} +exports.getProvider = getProvider; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/utils.js.map b/dist/entities/trades/utils.js.map new file mode 100644 index 00000000..0b160441 --- /dev/null +++ b/dist/entities/trades/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/entities/trades/utils.ts"],"names":[],"mappings":";;;;AAAA,wDAA0D;AAC1D,4EAAsC;AAEtC,+CAAyC;AACzC,0CAAsC;AAEtC,0DAAsD;AACtD,oCAAgC;AAEhC;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,cAA8B,EAAE,OAAgB;IAC5E,IAAI,cAAc,YAAY,yBAAW;QAAE,OAAO,cAAc,CAAA;IAChE,IAAI,mBAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC;QAC5C,OAAO,IAAI,yBAAW,CAAC,aAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAA;IAC7E,IAAA,wBAAS,EAAC,KAAK,EAAE,UAAU,CAAC,CAAA;AAC9B,CAAC;AALD,sCAKC;AAED;;;;;;GAMG;AACH,SAAgB,eAAe,CAAC,QAAkB,EAAE,OAAgB;IAClE,IAAI,QAAQ,YAAY,aAAK;QAAE,OAAO,QAAQ,CAAA;IAC9C,IAAI,mBAAQ,CAAC,QAAQ,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;AAED;;;;GAIG;AACH,SAAgB,WAAW,CAAC,OAAgB;IAC1C,MAAM,IAAI,GAAG,yBAAiB,CAAC,OAAO,CAAC,CAAA;IACvC,OAAO,IAAI,2BAAe,CAAC,IAAI,CAAC,CAAA;AAClC,CAAC;AAHD,kCAGC"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/Velodrome.d.ts b/dist/entities/trades/velodrome/Velodrome.d.ts new file mode 100644 index 00000000..6ca4d558 --- /dev/null +++ b/dist/entities/trades/velodrome/Velodrome.d.ts @@ -0,0 +1,50 @@ +import { BaseProvider } from '@ethersproject/providers'; +import type { UnsignedTransaction } from '@ethersproject/transactions'; +import { ChainId, TradeType } from '../../../constants'; +import { Currency } from '../../currency'; +import { CurrencyAmount, Percent } from '../../fractions'; +import { Trade } from '../interfaces/trade'; +import { TradeOptions } from '../interfaces/trade-options'; +export interface VelodromeQuoteTypes { + amount: CurrencyAmount; + quoteCurrency: Currency; + tradeType: TradeType; + maximumSlippage?: Percent; + recipient?: string; +} +interface VelodromConstructorParams { + maximumSlippage: Percent; + currencyAmountIn: CurrencyAmount; + currencyAmountOut: CurrencyAmount; + tradeType: TradeType; + chainId: ChainId; + routes: { + from: string; + to: string; + stable: boolean; + }[]; + priceImpact: Percent; +} +/** + * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools + */ +export declare class VelodromeTrade extends Trade { + /** + * @property Route for trade to go through + */ + readonly routes?: { + from: string; + to: string; + stable: boolean; + }[]; + constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, routes, priceImpact, }: VelodromConstructorParams); + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage, recipient }: VelodromeQuoteTypes, provider?: BaseProvider): Promise; + minimumAmountOut(): CurrencyAmount; + maximumAmountIn(): CurrencyAmount; + /** + * Returns unsigned transaction for the trade + * @returns the unsigned transaction + */ + swapTransaction(options: TradeOptions): Promise; +} +export {}; diff --git a/dist/entities/trades/velodrome/Velodrome.js b/dist/entities/trades/velodrome/Velodrome.js new file mode 100644 index 00000000..c5aa608c --- /dev/null +++ b/dist/entities/trades/velodrome/Velodrome.js @@ -0,0 +1,233 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VelodromeTrade = void 0; +const tslib_1 = require("tslib"); +const constants_1 = require("@ethersproject/constants"); +const contracts_1 = require("@ethersproject/contracts"); +const units_1 = require("@ethersproject/units"); +const debug_1 = tslib_1.__importDefault(require("debug")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_2 = require("../../../constants"); +const utils_1 = require("../../../utils"); +const currency_1 = require("../../currency"); +const fractions_1 = require("../../fractions"); +const constants_3 = require("../constants"); +const trade_1 = require("../interfaces/trade"); +const routable_platform_1 = require("../routable-platform"); +const utilts_1 = require("../uniswap-v2/utilts"); +const utils_2 = require("../utils"); +const abi_1 = require("./abi"); +const contants_1 = require("./contants"); +const utils_3 = require("./utils"); +// Debuging logger. See documentation to enable logging. +const debugVelodromeGetQuote = (0, debug_1.default)('ecoRouter:velodrome:getQuote'); +/** + * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools + */ +class VelodromeTrade extends trade_1.Trade { + constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, routes, priceImpact, }) { + super({ + details: undefined, + type: tradeType, + inputAmount: currencyAmountIn, + outputAmount: currencyAmountOut, + maximumSlippage, + platform: routable_platform_1.RoutablePlatform.VELODROME, + chainId, + executionPrice: new fractions_1.Price({ + baseCurrency: currencyAmountIn.currency, + quoteCurrency: currencyAmountOut.currency, + denominator: currencyAmountIn.raw, + numerator: currencyAmountOut.raw, + }), + priceImpact, + fee: new fractions_1.Percent('2', '10000'), + approveAddress: contants_1.ROUTER_ADDRESS, + }); + this.routes = routes; + } + static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage, recipient }, provider) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const chainId = (0, utils_2.tryGetChainId)(amount, quoteCurrency); + (0, tiny_invariant_1.default)(chainId, 'VelodromeQuote.getQuote: chainId is required'); + // Defaults + recipient = recipient || constants_1.AddressZero; + maximumSlippage = maximumSlippage || constants_3.maximumSlippage; + provider = provider || (0, utils_2.getProvider)(chainId); + // Must match the currencies provided + (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `VelodromTrade.getQuote: currencies chainId does not match provider's chainId`); + const currencyIn = amount.currency; + const currencyOut = quoteCurrency; + const wrappedCurrencyIn = (0, utils_2.wrappedCurrency)(currencyIn, chainId); + const wrappedCurrencyOut = (0, utils_2.wrappedCurrency)(currencyOut, chainId); + debugVelodromeGetQuote({ + amount, + quoteCurrency, + currencyIn, + currencyOut, + tradeType, + recipient, + maximumSlippage, + }); + let bestAmountOut; + let finalValue; + try { + const bestAmount = yield (0, utils_3.getBestRoute)({ + currencyIn: wrappedCurrencyIn, + currencyOut: wrappedCurrencyOut, + amount, + provider, + chainId, + }); + bestAmountOut = bestAmount; + finalValue = bestAmount === null || bestAmount === void 0 ? void 0 : bestAmount.finalValue.toString(); + if (!bestAmount) { + return null; + } + if (tradeType === constants_2.TradeType.EXACT_OUTPUT) { + const bestAmountForOutput = yield (0, utils_3.getBestRoute)({ + currencyIn: wrappedCurrencyOut, + currencyOut: wrappedCurrencyIn, + amount: new fractions_1.TokenAmount(wrappedCurrencyOut, bestAmount.finalValue.toString()), + provider, + chainId, + }); + bestAmountOut = bestAmountForOutput; + } + if (!finalValue || !bestAmountOut) { + return null; + } + const libraryContract = new contracts_1.Contract(contants_1.LIBRARY_ADDRESS, abi_1.LIBRARY_ABI, provider); + let totalRatio = 1; + for (let i = 0; i < bestAmountOut.routes.length; i++) { + const amountIn = bestAmountOut.receiveAmounts[i]; + const res = yield libraryContract['getTradeDiff(uint256,address,address,bool)'](amountIn, bestAmountOut.routes[i].from, bestAmountOut.routes[i].to, bestAmountOut.routes[i].stable); + const decimals = tradeType === constants_2.TradeType.EXACT_INPUT ? quoteCurrency.decimals : amount.currency.decimals; + const numberA = (0, units_1.formatUnits)(res.a, decimals); + const numberB = (0, units_1.formatUnits)(res.b, decimals); + const ratio = parseFloat(numberB) / parseFloat(numberA); + totalRatio = totalRatio * ratio; + } + const calculation = Math.round((1 - totalRatio) * 1000); + const priceImpact = new fractions_1.Percent(calculation.toString(), '1000'); + const convertToNative = (amount, currency, chainId) => { + if (currency_1.Currency.isNative(currency)) + return fractions_1.CurrencyAmount.nativeCurrency(amount, chainId); + return new fractions_1.TokenAmount((0, utils_2.wrappedCurrency)(currency, chainId), amount); + }; + const currencyAmountIn = constants_2.TradeType.EXACT_INPUT === tradeType ? amount : convertToNative(finalValue.toString(), currencyOut, chainId); + const currencyAmountOut = constants_2.TradeType.EXACT_INPUT === tradeType + ? convertToNative(bestAmountOut.finalValue.toString(), currencyOut, chainId) + : convertToNative(bestAmountOut.finalValue.toString(), currencyIn, chainId); + return new VelodromeTrade({ + maximumSlippage, + currencyAmountIn, + currencyAmountOut, + tradeType, + chainId, + routes: bestAmountOut.routes, + priceImpact, + }); + } + catch (ex) { + console.error(ex); + return null; + } + }); + } + minimumAmountOut() { + if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { + return this.outputAmount; + } + else { + const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .invert() + .multiply(this.outputAmount.raw).quotient; + return this.outputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); + } + } + maximumAmountIn() { + if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { + return this.inputAmount; + } + else { + const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_2.ONE) + .add(this.maximumSlippage) + .multiply(this.inputAmount.raw).quotient; + return this.inputAmount instanceof fractions_1.TokenAmount + ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) + : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); + } + } + /** + * Returns unsigned transaction for the trade + * @returns the unsigned transaction + */ + swapTransaction(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const nativeCurrency = currency_1.Currency.getNative(this.chainId); + const etherIn = this.inputAmount.currency === nativeCurrency; + const etherOut = this.outputAmount.currency === nativeCurrency; + // the router does not support both ether in and out + (0, tiny_invariant_1.default)(this.routes, 'No Avaliable routes'); + (0, tiny_invariant_1.default)(!(etherIn && etherOut), 'ETHER_IN_OUT'); + (0, tiny_invariant_1.default)(options.ttl && options.ttl > 0, 'TTL'); + (0, tiny_invariant_1.default)(this.inputAmount.currency.address && this.outputAmount.currency.address, 'No currency'); + const to = (0, utils_1.validateAndParseAddress)(options.recipient); + const amountIn = (0, utilts_1.toHex)(this.maximumAmountIn()); + const amountOut = (0, utilts_1.toHex)(this.minimumAmountOut()); + const deadline = `0x${(Math.floor(new Date().getTime() / 1000) + options.ttl).toString(16)}`; + let methodName; + let args; + let value = utilts_1.ZERO_HEX; + switch (this.tradeType) { + case constants_2.TradeType.EXACT_INPUT: + if (etherIn) { + methodName = 'swapExactETHForTokens'; + // (uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountOut, this.routes, to, deadline]; + value = amountIn; + } + else if (etherOut) { + methodName = 'swapExactTokensForETH'; + // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountIn, amountOut, this.routes, to, deadline]; + value = utilts_1.ZERO_HEX; + } + else { + methodName = 'swapExactTokensForTokens'; + // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) + args = [amountIn, amountOut, this.routes, to, deadline]; + value = utilts_1.ZERO_HEX; + } + break; + case constants_2.TradeType.EXACT_OUTPUT: + if (etherIn) { + methodName = 'swapETHForExactTokens'; + // (uint amountOut, address[] calldata path, address to, uint deadline) + args = [amountOut, this.routes, to, deadline]; + value = amountIn; + } + else if (etherOut) { + methodName = 'swapTokensForExactETH'; + // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) + args = [amountOut, amountIn, this.routes, to, deadline]; + value = utilts_1.ZERO_HEX; + } + else { + methodName = 'swapTokensForExactTokens'; + // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) + args = [amountOut, amountIn, this.routes, to, deadline]; + value = utilts_1.ZERO_HEX; + } + break; + } + return new contracts_1.Contract(contants_1.ROUTER_ADDRESS, abi_1.ROUTER_ABI).populateTransaction[methodName](...args, { value }); + }); + } +} +exports.VelodromeTrade = VelodromeTrade; +//# sourceMappingURL=Velodrome.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/Velodrome.js.map b/dist/entities/trades/velodrome/Velodrome.js.map new file mode 100644 index 00000000..f5afcf92 --- /dev/null +++ b/dist/entities/trades/velodrome/Velodrome.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Velodrome.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/Velodrome.ts"],"names":[],"mappings":";;;;AAAA,wDAAsD;AACtD,wDAAmD;AAGnD,gDAAkD;AAClD,0DAAyB;AACzB,4EAAsC;AAEtC,kDAA4D;AAC5D,0CAAwD;AACxD,6CAAyC;AACzC,+CAAuF;AACvF,4CAAwE;AACxE,+CAA2C;AAE3C,4DAAuD;AACvD,iDAAsD;AACtD,oCAAsE;AACtE,+BAA+C;AAC/C,yCAA4D;AAC5D,mCAAsC;AAoBtC,wDAAwD;AACxD,MAAM,sBAAsB,GAAG,IAAA,eAAK,EAAC,8BAA8B,CAAC,CAAA;AAEpE;;GAEG;AACH,MAAa,cAAe,SAAQ,aAAK;IAMvC,YAAmB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,MAAM,EACN,WAAW,GACe;QAC1B,KAAK,CAAC;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gBAAgB;YAC7B,YAAY,EAAE,iBAAiB;YAC/B,eAAe;YACf,QAAQ,EAAE,oCAAgB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D,KAAK,GAAG,iBAAQ,CAAA;qBACjB;oBACD,MAAK;gBACP,KAAK,qBAAS,CAAC,YAAY;oBACzB,IAAI,OAAO,EAAE;wBACX,UAAU,GAAG,uBAAuB,CAAA;wBACpC,uEAAuE;wBACvE,IAAI,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;wBAC7C,KAAK,GAAG,QAAQ,CAAA;qBACjB;yBAAM,IAAI,QAAQ,EAAE;wBACnB,UAAU,GAAG,uBAAuB,CAAA;wBACpC,yFAAyF;wBACzF,IAAI,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;wBACvD,KAAK,GAAG,iBAAQ,CAAA;qBACjB;yBAAM;wBACL,UAAU,GAAG,0BAA0B,CAAA;wBACvC,yFAAyF;wBACzF,IAAI,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;wBACvD,KAAK,GAAG,iBAAQ,CAAA;qBACjB;oBACD,MAAK;aACR;YAED,OAAO,IAAI,oBAAQ,CAAC,yBAAc,EAAE,gBAAU,CAAC,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;QACrG,CAAC;KAAA;CACF;AApPD,wCAoPC"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/abi.d.ts b/dist/entities/trades/velodrome/abi.d.ts new file mode 100644 index 00000000..aeb84e43 --- /dev/null +++ b/dist/entities/trades/velodrome/abi.d.ts @@ -0,0 +1,66 @@ +export declare const ROUTER_ABI: ({ + inputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + name?: undefined; + outputs?: undefined; +} | { + inputs: ({ + internalType: string; + name: string; + type: string; + components?: undefined; + } | { + components: { + internalType: string; + name: string; + type: string; + }[]; + internalType: string; + name: string; + type: string; + })[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +} | { + stateMutability: string; + type: string; + inputs?: undefined; + name?: undefined; + outputs?: undefined; +})[]; +export declare const LIBRARY_ABI: ({ + inputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; + name?: undefined; + outputs?: undefined; +} | { + inputs: { + internalType: string; + name: string; + type: string; + }[]; + name: string; + outputs: { + internalType: string; + name: string; + type: string; + }[]; + stateMutability: string; + type: string; +})[]; diff --git a/dist/entities/trades/velodrome/abi.js b/dist/entities/trades/velodrome/abi.js new file mode 100644 index 00000000..0fff3f29 --- /dev/null +++ b/dist/entities/trades/velodrome/abi.js @@ -0,0 +1,436 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LIBRARY_ABI = exports.ROUTER_ABI = void 0; +exports.ROUTER_ABI = [ + { + inputs: [ + { internalType: 'address', name: '_factory', type: 'address' }, + { internalType: 'address', name: '_weth', type: 'address' }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, + { + components: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + internalType: 'struct Router.route[]', + name: 'routes', + type: 'tuple[]', + }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'UNSAFE_swapExactTokensForTokens', + outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, + { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, + { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'addLiquidity', + outputs: [ + { internalType: 'uint256', name: 'amountA', type: 'uint256' }, + { internalType: 'uint256', name: 'amountB', type: 'uint256' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' }, + { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'addLiquidityETH', + outputs: [ + { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'factory', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + ], + name: 'getAmountOut', + outputs: [ + { internalType: 'uint256', name: 'amount', type: 'uint256' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { + components: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + internalType: 'struct Router.route[]', + name: 'routes', + type: 'tuple[]', + }, + ], + name: 'getAmountsOut', + outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'getReserves', + outputs: [ + { internalType: 'uint256', name: 'reserveA', type: 'uint256' }, + { internalType: 'uint256', name: 'reserveB', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'pair', type: 'address' }], + name: 'isPair', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'pairFor', + outputs: [{ internalType: 'address', name: 'pair', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, + { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, + ], + name: 'quoteAddLiquidity', + outputs: [ + { internalType: 'uint256', name: 'amountA', type: 'uint256' }, + { internalType: 'uint256', name: 'amountB', type: 'uint256' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + ], + name: 'quoteRemoveLiquidity', + outputs: [ + { internalType: 'uint256', name: 'amountA', type: 'uint256' }, + { internalType: 'uint256', name: 'amountB', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'removeLiquidity', + outputs: [ + { internalType: 'uint256', name: 'amountA', type: 'uint256' }, + { internalType: 'uint256', name: 'amountB', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'removeLiquidityETH', + outputs: [ + { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'token', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'bool', name: 'approveMax', type: 'bool' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'removeLiquidityETHWithPermit', + outputs: [ + { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, + { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, + { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, + { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'bool', name: 'approveMax', type: 'bool' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'removeLiquidityWithPermit', + outputs: [ + { internalType: 'uint256', name: 'amountA', type: 'uint256' }, + { internalType: 'uint256', name: 'amountB', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenA', type: 'address' }, + { internalType: 'address', name: 'tokenB', type: 'address' }, + ], + name: 'sortTokens', + outputs: [ + { internalType: 'address', name: 'token0', type: 'address' }, + { internalType: 'address', name: 'token1', type: 'address' }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, + { + components: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + internalType: 'struct Router.route[]', + name: 'routes', + type: 'tuple[]', + }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'swapExactETHForTokens', + outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, + { + components: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + internalType: 'struct Router.route[]', + name: 'routes', + type: 'tuple[]', + }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'swapExactTokensForETH', + outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, + { + components: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + internalType: 'struct Router.route[]', + name: 'routes', + type: 'tuple[]', + }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'swapExactTokensForTokens', + outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, + { internalType: 'address', name: 'tokenFrom', type: 'address' }, + { internalType: 'address', name: 'tokenTo', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + ], + name: 'swapExactTokensForTokensSimple', + outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'weth', + outputs: [{ internalType: 'contract IWETH', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { stateMutability: 'payable', type: 'receive' }, +]; +exports.LIBRARY_ABI = [ + { + inputs: [{ internalType: 'address', name: '_router', type: 'address' }], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'getAmountOut', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'getMinimumValue', + outputs: [ + { internalType: 'uint256', name: '', type: 'uint256' }, + { internalType: 'uint256', name: '', type: 'uint256' }, + { internalType: 'uint256', name: '', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'getSample', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'tokenOut', type: 'address' }, + { internalType: 'bool', name: 'stable', type: 'bool' }, + ], + name: 'getTradeDiff', + outputs: [ + { internalType: 'uint256', name: 'a', type: 'uint256' }, + { internalType: 'uint256', name: 'b', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, + { internalType: 'address', name: 'tokenIn', type: 'address' }, + { internalType: 'address', name: 'pair', type: 'address' }, + ], + name: 'getTradeDiff', + outputs: [ + { internalType: 'uint256', name: 'a', type: 'uint256' }, + { internalType: 'uint256', name: 'b', type: 'uint256' }, + ], + stateMutability: 'view', + type: 'function', + }, +]; +//# sourceMappingURL=abi.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/abi.js.map b/dist/entities/trades/velodrome/abi.js.map new file mode 100644 index 00000000..5e8c81ad --- /dev/null +++ b/dist/entities/trades/velodrome/abi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5D;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;YACjE;gBACE,UAAU,EAAE;oBACV,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC1D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;oBACxD,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;iBACvD;gBACD,YAAY,EAAE,uBAAuB;gBACrC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EA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S,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;SACvD;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;YACvD,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;SACxD;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;SAC3D;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;YACvD,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;SACxD;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/contants.d.ts b/dist/entities/trades/velodrome/contants.d.ts new file mode 100644 index 00000000..b0840033 --- /dev/null +++ b/dist/entities/trades/velodrome/contants.d.ts @@ -0,0 +1,2 @@ +export declare const ROUTER_ADDRESS = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f"; +export declare const LIBRARY_ADDRESS = "0xfb1Fc21D2937bF5a49D480189e7FEd42bF8282aD"; diff --git a/dist/entities/trades/velodrome/contants.js b/dist/entities/trades/velodrome/contants.js new file mode 100644 index 00000000..96d5e8db --- /dev/null +++ b/dist/entities/trades/velodrome/contants.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LIBRARY_ADDRESS = exports.ROUTER_ADDRESS = void 0; +exports.ROUTER_ADDRESS = '0x9c12939390052919aF3155f41Bf4160Fd3666A6f'; +exports.LIBRARY_ADDRESS = '0xfb1Fc21D2937bF5a49D480189e7FEd42bF8282aD'; +//# sourceMappingURL=contants.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/contants.js.map b/dist/entities/trades/velodrome/contants.js.map new file mode 100644 index 00000000..d3c6e975 --- /dev/null +++ b/dist/entities/trades/velodrome/contants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,4CAA4C,CAAA;AAC7D,QAAA,eAAe,GAAG,4CAA4C,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/index.d.ts b/dist/entities/trades/velodrome/index.d.ts new file mode 100644 index 00000000..20b6c9bb --- /dev/null +++ b/dist/entities/trades/velodrome/index.d.ts @@ -0,0 +1 @@ +export * from './Velodrome'; diff --git a/dist/entities/trades/velodrome/index.js b/dist/entities/trades/velodrome/index.js new file mode 100644 index 00000000..249dc5b5 --- /dev/null +++ b/dist/entities/trades/velodrome/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./Velodrome"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/index.js.map b/dist/entities/trades/velodrome/index.js.map new file mode 100644 index 00000000..540cbd46 --- /dev/null +++ b/dist/entities/trades/velodrome/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/utils.d.ts b/dist/entities/trades/velodrome/utils.d.ts new file mode 100644 index 00000000..06cea699 --- /dev/null +++ b/dist/entities/trades/velodrome/utils.d.ts @@ -0,0 +1,23 @@ +import { BigNumber } from '@ethersproject/bignumber'; +import { ChainId } from '../../../constants'; +import { CurrencyAmount } from '../../fractions'; +import { Token } from '../../token'; +interface GetBestRoutesParams { + currencyIn: Token; + currencyOut: Token; + amount: CurrencyAmount; + provider: any; + chainId: ChainId; +} +interface BestRoute { + finalValue: BigNumber; + receiveAmounts: BigNumber[]; + routes: { + from: string; + to: string; + stable: boolean; + }[]; + routeAsset: any; +} +export declare function getBestRoute({ currencyIn, currencyOut, amount, provider, chainId, }: GetBestRoutesParams): Promise; +export {}; diff --git a/dist/entities/trades/velodrome/utils.js b/dist/entities/trades/velodrome/utils.js new file mode 100644 index 00000000..8ebb0339 --- /dev/null +++ b/dist/entities/trades/velodrome/utils.js @@ -0,0 +1,138 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getBestRoute = void 0; +const tslib_1 = require("tslib"); +const abi_1 = require("@ethersproject/abi"); +const contracts_1 = require("@ethersproject/contracts"); +const abis_1 = require("../../../abis"); +const constants_1 = require("../../../constants"); +const utilts_1 = require("../uniswap-v2/utilts"); +const abi_2 = require("./abi"); +const contants_1 = require("./contants"); +function getBestRoute({ currencyIn, currencyOut, amount, provider, chainId, }) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + //fetch assets that are routable + const routeAssetsResponse = yield fetch('https://api.velodrome.finance/api/v1/routeAssets'); + if (!routeAssetsResponse.ok) + throw new Error('response not ok'); + const routeAssets = (yield routeAssetsResponse.json()).data; + const fromAsset = currencyIn; + const toAsset = currencyOut; + const fromAmountRaw = amount.raw.toString(); + const fromAmountHex = (0, utilts_1.toHex)(amount); + if (!fromAsset || !toAsset || !fromAmountRaw || !fromAsset.address || !toAsset.address || fromAmountRaw === '') { + return null; + } + const fromAddress = fromAsset.address; + const toAddress = toAsset.address; + let amountOuts = []; + amountOuts = routeAssets + .map((routeAsset) => { + return [ + //pairs with one hop + { + routes: [ + { + from: fromAddress, + to: routeAsset.address, + stable: true, + }, + { + from: routeAsset.address, + to: toAddress, + stable: true, + }, + ], + routeAsset, + }, + { + routes: [ + { + from: fromAddress, + to: routeAsset.address, + stable: false, + }, + { + from: routeAsset.address, + to: toAddress, + stable: false, + }, + ], + routeAsset, + }, + { + routes: [ + { + from: fromAddress, + to: routeAsset.address, + stable: true, + }, + { + from: routeAsset.address, + to: toAddress, + stable: false, + }, + ], + routeAsset, + }, + { + routes: [ + { + from: fromAddress, + to: routeAsset.address, + stable: false, + }, + { + from: routeAsset.address, + to: toAddress, + stable: true, + }, + ], + routeAsset, + }, + //direct pairs + { + routes: [{ from: fromAddress, to: toAddress, stable: true }], + routeAsset: null, + }, + { + routes: [{ from: fromAddress, to: toAddress, stable: false }], + routeAsset: null, + }, + ]; + }) + .flat(); + const velodromRouterInterface = new abi_1.Interface(abi_2.ROUTER_ABI); + //multicall for fetching output from all given pairs + const multicall2CallData = amountOuts.map((route) => { + return { + target: contants_1.ROUTER_ADDRESS, + callData: velodromRouterInterface.encodeFunctionData('getAmountsOut', [fromAmountHex, route.routes]), + }; + }); + const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], abis_1.MULTICALL2_ABI, provider); + const receiveAmounts = yield multicallContract.callStatic.tryAggregate(false, multicall2CallData); + //decoding multicall result into digestable form and modifing existing amounts out array + for (let i = 0; i < receiveAmounts.length; i++) { + if (receiveAmounts[i].success) { + const { amounts } = velodromRouterInterface.decodeFunctionResult('getAmountsOut', receiveAmounts[i].returnData); + amountOuts[i].receiveAmounts = amounts; + amountOuts[i].finalValue = amounts[amounts.length - 1]; + } + } + //comparing routes and returning the best one + const bestAmountOut = amountOuts + .filter((ret) => { + return ret != null; + }) + .reduce((best, current) => { + if (!best || !current.finalValue || !best.finalValue) { + return current; + } + return best.finalValue.gt(current.finalValue) ? best : current; + }, 0); + return bestAmountOut; + }); +} +exports.getBestRoute = getBestRoute; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/utils.js.map b/dist/entities/trades/velodrome/utils.js.map new file mode 100644 index 00000000..4a37a118 --- /dev/null +++ b/dist/entities/trades/velodrome/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/utils.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAE9C,wDAAmD;AAEnD,wCAA8C;AAC9C,kDAAgE;AAGhE,iDAA4C;AAC5C,+BAAkC;AAClC,yCAA2C;AA0B3C,SAAsB,YAAY,CAAC,EACjC,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,GACa;;QACpB,gCAAgC;QAChC,MAAM,mBAAmB,GAAG,MAAM,KAAK,CAAC,kDAAkD,CAAC,CAAA;QAE3F,IAAI,CAAC,mBAAmB,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;QAC/D,MAAM,WAAW,GAAG,CAAC,MAAM,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,IAA0B,CAAA;QAEjF,MAAM,SAAS,GAAG,UAAU,CAAA;QAC5B,MAAM,OAAO,GAAG,WAAW,CAAA;QAE3B,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;QAC3C,MAAM,aAAa,GAAG,IAAA,cAAK,EAAC,MAAM,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AO,EAAE;gBAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,uBAAuB,CAAC,oBAAoB,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;gBAE/G,UAAU,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,OAAO,CAAA;gBACtC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;aACvD;SACF;QAED,6CAA6C;QAC7C,MAAM,aAAa,GAAG,UAAU;aAC7B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;YACd,OAAO,GAAG,IAAI,IAAI,CAAA;QACpB,CAAC,CAAC;aACD,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;YACxB,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBACpD,OAAO,OAAO,CAAA;aACf;YAED,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAA;QAChE,CAAC,EAAE,CAAC,CAAC,CAAA;QAEP,OAAO,aAAa,CAAA;IACtB,CAAC;CAAA;AA9ID,oCA8IC"} \ No newline at end of file diff --git a/dist/errors.d.ts b/dist/errors.d.ts new file mode 100644 index 00000000..59fda407 --- /dev/null +++ b/dist/errors.d.ts @@ -0,0 +1,16 @@ +/** + * Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be + * obtained by sending any amount of input. + */ +export declare class InsufficientReservesError extends Error { + readonly isInsufficientReservesError = true; + constructor(); +} +/** + * Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less + * than the price of a single unit of output after fees. + */ +export declare class InsufficientInputAmountError extends Error { + readonly isInsufficientInputAmountError = true; + constructor(); +} diff --git a/dist/errors.js b/dist/errors.js new file mode 100644 index 00000000..2c698477 --- /dev/null +++ b/dist/errors.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InsufficientInputAmountError = exports.InsufficientReservesError = void 0; +// see https://stackoverflow.com/a/41102306 +const CAN_SET_PROTOTYPE = 'setPrototypeOf' in Object; +/** + * Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be + * obtained by sending any amount of input. + */ +class InsufficientReservesError extends Error { + constructor() { + super(); + this.isInsufficientReservesError = true; + this.name = this.constructor.name; + if (CAN_SET_PROTOTYPE) + Object.setPrototypeOf(this, new.target.prototype); + } +} +exports.InsufficientReservesError = InsufficientReservesError; +/** + * Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less + * than the price of a single unit of output after fees. + */ +class InsufficientInputAmountError extends Error { + constructor() { + super(); + this.isInsufficientInputAmountError = true; + this.name = this.constructor.name; + if (CAN_SET_PROTOTYPE) + Object.setPrototypeOf(this, new.target.prototype); + } +} +exports.InsufficientInputAmountError = InsufficientInputAmountError; +//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/dist/errors.js.map b/dist/errors.js.map new file mode 100644 index 00000000..55a9e55c --- /dev/null +++ b/dist/errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,MAAM,iBAAiB,GAAG,gBAAgB,IAAI,MAAM,CAAA;AAEpD;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,KAAK;IAGlD;QACE,KAAK,EAAE,CAAA;QAHO,gCAA2B,GAAG,IAAI,CAAA;QAIhD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;QACjC,IAAI,iBAAiB;YAAE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC1E,CAAC;CACF;AARD,8DAQC;AAED;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,KAAK;IAGrD;QACE,KAAK,EAAE,CAAA;QAHO,mCAA8B,GAAG,IAAI,CAAA;QAInD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;QACjC,IAAI,iBAAiB;YAAE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC1E,CAAC;CACF;AARD,oEAQC"} \ No newline at end of file diff --git a/dist/fetcher.d.ts b/dist/fetcher.d.ts new file mode 100644 index 00000000..6a8b0325 --- /dev/null +++ b/dist/fetcher.d.ts @@ -0,0 +1,64 @@ +import { BigintIsh, ChainId } from './constants'; +import { Pair } from './entities/pair'; +import { Token } from './entities/token'; +import { UniswapV2RoutablePlatform } from './entities/trades/routable-platform'; +/** + * Contains methods for constructing instances of pairs and tokens from on-chain data. + */ +export declare abstract class Fetcher { + /** + * Cannot be constructed. + */ + private constructor(); + /** + * Fetches information about a pair and constructs a pair from the given two tokens. + * @param tokenA first token + * @param tokenB second token + * @param provider the provider to use to fetch the data + */ + static fetchPairData(tokenA: Token, tokenB: Token, provider?: import("@ethersproject/providers").BaseProvider, platform?: UniswapV2RoutablePlatform): Promise; + /** + * Fetches swap fee information from a liquidity token of a token pair + * @param liquidityToken the liquidity token from which the swap fee info will be fetched + * @param provider the provider to use to fetch the data + */ + static fetchSwapFee(liquidityToken: Token, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ + fee: BigintIsh; + owner: string; + }>; + /** + * Fetches swap fee information from liquidity tokens of token pairs + * @param liquidityToken the liquidity tokens from which the swap fee info will be fetched + * @param provider the provider to use to fetch the data + */ + static fetchSwapFees(liquidityTokens: Token[], provider?: import("@ethersproject/providers").BaseProvider): Promise<{ + fee: BigintIsh; + owner: string; + }[]>; + /** + * Fetches swap fee information of all registered token pairs from factory + * @param chainId the chainId of the network to fecth the swap fees + * @param swapFeesCache a cache of already fetched fees to be skiped + * @param provider the provider to use to fetch the data + */ + static fetchAllSwapFees(chainId: ChainId, swapFeesCache?: { + [key: string]: { + fee: BigintIsh; + owner: string; + }; + }, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ + [key: string]: { + fee: BigintIsh; + owner: string; + }; + }>; + /** + * Fetches protocol fee information from the token pair factory + * @param chainId the chainId of the network to fecth the protocol fee + * @param provider the provider to use to fetch the data + */ + static fetchProtocolFee(chainId: ChainId, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ + feeDenominator: BigintIsh; + feeReceiver: string; + }>; +} diff --git a/dist/fetcher.js b/dist/fetcher.js new file mode 100644 index 00000000..ed2e7b76 --- /dev/null +++ b/dist/fetcher.js @@ -0,0 +1,152 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Fetcher = void 0; +const tslib_1 = require("tslib"); +const contracts_1 = require("@ethersproject/contracts"); +const networks_1 = require("@ethersproject/networks"); +const providers_1 = require("@ethersproject/providers"); +const IDXswapFactory_json_1 = tslib_1.__importDefault(require("@swapr/core/build/IDXswapFactory.json")); +const IDXswapPair_json_1 = tslib_1.__importDefault(require("@swapr/core/build/IDXswapPair.json")); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const abis_1 = require("./abis"); +const constants_1 = require("./constants"); +const tokenAmount_1 = require("./entities/fractions/tokenAmount"); +const pair_1 = require("./entities/pair"); +const token_1 = require("./entities/token"); +const routable_platform_1 = require("./entities/trades/routable-platform"); +/** + * Contains methods for constructing instances of pairs and tokens from on-chain data. + */ +class Fetcher { + /** + * Cannot be constructed. + */ + constructor() { + // do nothing. + } + /** + * Fetches information about a pair and constructs a pair from the given two tokens. + * @param tokenA first token + * @param tokenB second token + * @param provider the provider to use to fetch the data + */ + static fetchPairData(tokenA, tokenB, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(tokenA.chainId)), platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + (0, tiny_invariant_1.default)(tokenA.chainId === tokenB.chainId, 'CHAIN_ID'); + const address = pair_1.Pair.getAddress(tokenA, tokenB, platform); + const [reserves0, reserves1] = yield new contracts_1.Contract(address, IDXswapPair_json_1.default.abi, provider).getReserves(); + const balances = tokenA.sortsBefore(tokenB) ? [reserves0, reserves1] : [reserves1, reserves0]; + const tokenAmountA = new tokenAmount_1.TokenAmount(tokenA, balances[0]); + const tokenAmountB = new tokenAmount_1.TokenAmount(tokenB, balances[1]); + const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks + ? [tokenAmountA, tokenAmountB] + : [tokenAmountB, tokenAmountA]; + const liquidityToken = new token_1.Token(tokenAmounts[0].token.chainId, pair_1.Pair.getAddress(tokenAmounts[0].token, tokenAmounts[1].token, platform), 18, 'DXS', 'DXswap'); + const swapFee = jsbi_1.default.BigInt(yield new contracts_1.Contract(liquidityToken.address, IDXswapPair_json_1.default.abi, provider).swapFee()); + const protocolFeeDenominator = jsbi_1.default.BigInt(yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[tokenAmountA.token.chainId], IDXswapFactory_json_1.default.abi, provider).protocolFeeDenominator()); + return new pair_1.Pair(tokenAmountA, tokenAmountB, swapFee, protocolFeeDenominator); + }); + } + /** + * Fetches swap fee information from a liquidity token of a token pair + * @param liquidityToken the liquidity token from which the swap fee info will be fetched + * @param provider the provider to use to fetch the data + */ + static fetchSwapFee(liquidityToken, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(liquidityToken.chainId))) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + return { + fee: jsbi_1.default.BigInt(yield new contracts_1.Contract(liquidityToken.address, IDXswapPair_json_1.default.abi, provider).swapFee()), + owner: yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[liquidityToken.chainId], IDXswapFactory_json_1.default.abi, provider).feeToSetter(), + }; + }); + } + /** + * Fetches swap fee information from liquidity tokens of token pairs + * @param liquidityToken the liquidity tokens from which the swap fee info will be fetched + * @param provider the provider to use to fetch the data + */ + static fetchSwapFees(liquidityTokens, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(liquidityTokens[0].chainId))) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const multicall = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[liquidityTokens[0].chainId], abis_1.MULTICALL2_ABI, provider); + const factoryContract = new contracts_1.Contract(constants_1.FACTORY_ADDRESS[liquidityTokens[0].chainId], IDXswapFactory_json_1.default.abi, provider); + const liquidityTokenContract = new contracts_1.Contract(liquidityTokens[0].address, IDXswapPair_json_1.default.abi, provider); + const calls = []; + calls.push({ + address: factoryContract.address, + callData: factoryContract.interface.encodeFunctionData(factoryContract.interface.getFunction('feeToSetter()')), + }); + for (let tokenPairsIndex = 0; tokenPairsIndex < liquidityTokens.length; tokenPairsIndex++) { + calls.push({ + address: liquidityTokens[tokenPairsIndex].address, + callData: liquidityTokenContract.interface.encodeFunctionData(liquidityTokenContract.interface.getFunction('swapFee()')), + }); + } + const result = yield multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])); + const owner = factoryContract.interface.decodeFunctionResult(factoryContract.interface.getFunction('feeToSetter()'), result.returnData[0])[0]; + const fees = []; + for (let resultIndex = 1; resultIndex < result.returnData.length; resultIndex++) { + fees.push({ + fee: jsbi_1.default.BigInt(liquidityTokenContract.interface.decodeFunctionResult(liquidityTokenContract.interface.getFunction('swapFee()'), result.returnData[resultIndex])[0]), + owner, + }); + } + return fees; + }); + } + /** + * Fetches swap fee information of all registered token pairs from factory + * @param chainId the chainId of the network to fecth the swap fees + * @param swapFeesCache a cache of already fetched fees to be skiped + * @param provider the provider to use to fetch the data + */ + static fetchAllSwapFees(chainId, swapFeesCache = {}, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(chainId))) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const multicall = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], abis_1.MULTICALL2_ABI, provider); + const factoryContract = new contracts_1.Contract(constants_1.FACTORY_ADDRESS[chainId], IDXswapFactory_json_1.default.abi, provider); + const allPairsLength = yield factoryContract.allPairsLength(); + const allSwapPairs = {}; + // Get first token pairs from cache + const tokenPairsCache = Object.keys(swapFeesCache); + const tokenPairsToFetch = []; + for (let tokenPaisCacheIndex = 0; tokenPaisCacheIndex < tokenPairsCache.length; tokenPaisCacheIndex++) { + allSwapPairs[tokenPairsCache[tokenPaisCacheIndex]] = { + fee: swapFeesCache[tokenPairsCache[tokenPaisCacheIndex]].fee, + owner: swapFeesCache[tokenPairsCache[tokenPaisCacheIndex]].owner, + }; + } + // Get rest of the token pairs that are not cached + const calls = []; + for (let pairIndex = tokenPairsCache.length; pairIndex < allPairsLength; pairIndex++) + calls.push({ + address: factoryContract.address, + callData: factoryContract.interface.encodeFunctionData(factoryContract.interface.getFunction('allPairs(uint)'), [pairIndex]), + }); + const result = yield multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])); + for (let resultIndex = 0; resultIndex < result.returnData.length; resultIndex++) { + const tokenPairAddress = factoryContract.interface.decodeFunctionResult(factoryContract.interface.getFunction('allPairs(uint256)'), result.returnData[resultIndex])[0]; + tokenPairsToFetch.push(new token_1.Token(chainId, tokenPairAddress, 18, 'DXS', 'DXswap')); + } + // Fetch the pairs that we dont have the fee and owner + const swapFeesFetched = tokenPairsToFetch.length === 0 ? [] : yield this.fetchSwapFees(tokenPairsToFetch, provider); + for (let tokenPairsToFetchIndex = 0; tokenPairsToFetchIndex < tokenPairsToFetch.length; tokenPairsToFetchIndex++) + allSwapPairs[tokenPairsToFetch[tokenPairsToFetchIndex].address] = swapFeesFetched[tokenPairsToFetchIndex]; + return allSwapPairs; + }); + } + /** + * Fetches protocol fee information from the token pair factory + * @param chainId the chainId of the network to fecth the protocol fee + * @param provider the provider to use to fetch the data + */ + static fetchProtocolFee(chainId, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(chainId))) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + const factoryContract = yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[chainId], IDXswapFactory_json_1.default.abi, provider); + const feeDenominator = yield factoryContract.protocolFeeDenominator(); + const feeReceiver = yield factoryContract.feeTo(); + return { feeDenominator, feeReceiver }; + }); + } +} +exports.Fetcher = Fetcher; +//# sourceMappingURL=fetcher.js.map \ No newline at end of file diff --git a/dist/fetcher.js.map b/dist/fetcher.js.map new file mode 100644 index 00000000..05f6c2c6 --- /dev/null +++ b/dist/fetcher.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../src/fetcher.ts"],"names":[],"mappings":";;;;AAAA,wDAAmD;AACnD,sDAAoD;AACpD,wDAA6D;AAC7D,wGAAkE;AAClE,kGAA4D;AAC5D,wDAAuB;AACvB,4EAAsC;AAEtC,iCAAuC;AACvC,2CAAqF;AACrF,kEAA8D;AAC9D,0CAAsC;AACtC,4CAAwC;AACxC,2EAA+E;AAE/E;;GAEG;AACH,MAAsB,OAAO;IAC3B;;OAEG;IACH;QACE,cAAc;IAChB,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAO,aAAa,CAC/B,MAAa,EACb,MAAa,EACb,QAAQ,GAAG,IAAA,8BAAkB,EAAC,IAAA,qBAAU,EAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EACzD,WAAsC,6CAAyB,CAAC,KAAK;;YAErE,IAAA,wBAAS,EAAC,MAAM,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;YACxD,MAAM,OAAO,GAAG,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;YACzD,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,MAAM,IAAI,oBAAQ,CAAC,OAAO,EAAE,0BAAW,CAAC,GAAG,EAAE,QAAQ,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AM,CAAO,gBAAgB,CAClC,OAAgB,EAChB,QAAQ,GAAG,IAAA,8BAAkB,EAAC,IAAA,qBAAU,EAAC,OAAO,CAAC,CAAC;;YAKlD,MAAM,eAAe,GAAG,MAAM,IAAI,oBAAQ,CAAC,2BAAe,CAAC,OAAO,CAAC,EAAE,6BAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAClG,MAAM,cAAc,GAAG,MAAM,eAAe,CAAC,sBAAsB,EAAE,CAAA;YACrE,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC,KAAK,EAAE,CAAA;YACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,CAAA;QACxC,CAAC;KAAA;CACF;AAvMD,0BAuMC"} \ No newline at end of file diff --git a/dist/generated/graphql/index.d.ts b/dist/generated/graphql/index.d.ts new file mode 100644 index 00000000..cb4d6940 --- /dev/null +++ b/dist/generated/graphql/index.d.ts @@ -0,0 +1,5349 @@ +import { GraphQLClient } from 'graphql-request'; +import * as Dom from 'graphql-request/dist/types.dom'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + BigDecimal: any; + BigInt: any; + Bytes: any; + Int8: any; +}; +export type BlockChangedFilter = { + number_gte: Scalars['Int']; +}; +export type Block_Height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; +export type Bundle = { + __typename?: 'Bundle'; + id: Scalars['ID']; + nativeCurrencyPrice: Scalars['BigDecimal']; +}; +export type Bundle_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + nativeCurrencyPrice?: InputMaybe; + nativeCurrencyPrice_gt?: InputMaybe; + nativeCurrencyPrice_gte?: InputMaybe; + nativeCurrencyPrice_in?: InputMaybe>; + nativeCurrencyPrice_lt?: InputMaybe; + nativeCurrencyPrice_lte?: InputMaybe; + nativeCurrencyPrice_not?: InputMaybe; + nativeCurrencyPrice_not_in?: InputMaybe>; + or?: InputMaybe>>; +}; +export declare enum Bundle_OrderBy { + Id = "id", + NativeCurrencyPrice = "nativeCurrencyPrice" +} +export type Burn = { + __typename?: 'Burn'; + amount0?: Maybe; + amount1?: Maybe; + amountUSD?: Maybe; + feeLiquidity?: Maybe; + feeTo?: Maybe; + id: Scalars['ID']; + liquidity: Scalars['BigDecimal']; + logIndex?: Maybe; + needsComplete: Scalars['Boolean']; + pair: Pair; + sender?: Maybe; + timestamp: Scalars['BigInt']; + to?: Maybe; + transaction: Transaction; +}; +export type Burn_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: InputMaybe>; + and?: InputMaybe>>; + feeLiquidity?: InputMaybe; + feeLiquidity_gt?: InputMaybe; + feeLiquidity_gte?: InputMaybe; + feeLiquidity_in?: InputMaybe>; + feeLiquidity_lt?: InputMaybe; + feeLiquidity_lte?: InputMaybe; + feeLiquidity_not?: InputMaybe; + feeLiquidity_not_in?: InputMaybe>; + feeTo?: InputMaybe; + feeTo_contains?: InputMaybe; + feeTo_gt?: InputMaybe; + feeTo_gte?: InputMaybe; + feeTo_in?: InputMaybe>; + feeTo_lt?: InputMaybe; + feeTo_lte?: InputMaybe; + feeTo_not?: InputMaybe; + feeTo_not_contains?: InputMaybe; + feeTo_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidity?: InputMaybe; + liquidity_gt?: InputMaybe; + liquidity_gte?: InputMaybe; + liquidity_in?: InputMaybe>; + liquidity_lt?: InputMaybe; + liquidity_lte?: InputMaybe; + liquidity_not?: InputMaybe; + liquidity_not_in?: InputMaybe>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + needsComplete?: InputMaybe; + needsComplete_in?: InputMaybe>; + needsComplete_not?: InputMaybe; + needsComplete_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + sender?: InputMaybe; + sender_contains?: InputMaybe; + sender_gt?: InputMaybe; + sender_gte?: InputMaybe; + sender_in?: InputMaybe>; + sender_lt?: InputMaybe; + sender_lte?: InputMaybe; + sender_not?: InputMaybe; + sender_not_contains?: InputMaybe; + sender_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_gt?: InputMaybe; + to_gte?: InputMaybe; + to_in?: InputMaybe>; + to_lt?: InputMaybe; + to_lte?: InputMaybe; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; +export declare enum Burn_OrderBy { + Amount0 = "amount0", + Amount1 = "amount1", + AmountUsd = "amountUSD", + FeeLiquidity = "feeLiquidity", + FeeTo = "feeTo", + Id = "id", + Liquidity = "liquidity", + LogIndex = "logIndex", + NeedsComplete = "needsComplete", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Sender = "sender", + Timestamp = "timestamp", + To = "to", + Transaction = "transaction", + TransactionBlockNumber = "transaction__blockNumber", + TransactionId = "transaction__id", + TransactionTimestamp = "transaction__timestamp" +} +export type Claim = { + __typename?: 'Claim'; + amounts: Array; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type Claim_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amounts?: InputMaybe>; + amounts_contains?: InputMaybe>; + amounts_contains_nocase?: InputMaybe>; + amounts_not?: InputMaybe>; + amounts_not_contains?: InputMaybe>; + amounts_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum Claim_OrderBy { + Amounts = "amounts", + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type DailyUniqueAddressInteraction = { + __typename?: 'DailyUniqueAddressInteraction'; + addresses: Array; + id: Scalars['ID']; + timestamp: Scalars['Int']; +}; +export type DailyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addresses?: InputMaybe>; + addresses_contains?: InputMaybe>; + addresses_contains_nocase?: InputMaybe>; + addresses_not?: InputMaybe>; + addresses_not_contains?: InputMaybe>; + addresses_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; +export declare enum DailyUniqueAddressInteraction_OrderBy { + Addresses = "addresses", + Id = "id", + Timestamp = "timestamp" +} +export type Deposit = { + __typename?: 'Deposit'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type Deposit_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum Deposit_OrderBy { + Amount = "amount", + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type LiquidityMiningCampaign = { + __typename?: 'LiquidityMiningCampaign'; + claims: Array; + deposits: Array; + duration: Scalars['BigInt']; + endsAt: Scalars['BigInt']; + id: Scalars['ID']; + initialized: Scalars['Boolean']; + liquidityMiningPositionSnapshots: Array; + liquidityMiningPositions: Array; + locked: Scalars['Boolean']; + owner: Scalars['Bytes']; + recoveries: Array; + rewards: Array; + stakablePair: Pair; + stakedAmount: Scalars['BigDecimal']; + stakingCap: Scalars['BigDecimal']; + startsAt: Scalars['BigInt']; + withdrawals: Array; +}; +export type LiquidityMiningCampaignClaimsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignDepositsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignLiquidityMiningPositionSnapshotsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignLiquidityMiningPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignRecoveriesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignRewardsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignWithdrawalsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type LiquidityMiningCampaignReward = { + __typename?: 'LiquidityMiningCampaignReward'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + token: Token; +}; +export type LiquidityMiningCampaignReward_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + token?: InputMaybe; + token_?: InputMaybe; + token_contains?: InputMaybe; + token_contains_nocase?: InputMaybe; + token_ends_with?: InputMaybe; + token_ends_with_nocase?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_contains_nocase?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_ends_with_nocase?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_not_starts_with_nocase?: InputMaybe; + token_starts_with?: InputMaybe; + token_starts_with_nocase?: InputMaybe; +}; +export declare enum LiquidityMiningCampaignReward_OrderBy { + Amount = "amount", + Id = "id", + Token = "token", + TokenDecimals = "token__decimals", + TokenDerivedNativeCurrency = "token__derivedNativeCurrency", + TokenId = "token__id", + TokenName = "token__name", + TokenSymbol = "token__symbol", + TokenTotalLiquidity = "token__totalLiquidity", + TokenTotalSupply = "token__totalSupply", + TokenTradeVolume = "token__tradeVolume", + TokenTradeVolumeUsd = "token__tradeVolumeUSD", + TokenTxCount = "token__txCount", + TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD" +} +export type LiquidityMiningCampaign_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + claims_?: InputMaybe; + deposits_?: InputMaybe; + duration?: InputMaybe; + duration_gt?: InputMaybe; + duration_gte?: InputMaybe; + duration_in?: InputMaybe>; + duration_lt?: InputMaybe; + duration_lte?: InputMaybe; + duration_not?: InputMaybe; + duration_not_in?: InputMaybe>; + endsAt?: InputMaybe; + endsAt_gt?: InputMaybe; + endsAt_gte?: InputMaybe; + endsAt_in?: InputMaybe>; + endsAt_lt?: InputMaybe; + endsAt_lte?: InputMaybe; + endsAt_not?: InputMaybe; + endsAt_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + initialized?: InputMaybe; + initialized_in?: InputMaybe>; + initialized_not?: InputMaybe; + initialized_not_in?: InputMaybe>; + liquidityMiningPositionSnapshots_?: InputMaybe; + liquidityMiningPositions_?: InputMaybe; + locked?: InputMaybe; + locked_in?: InputMaybe>; + locked_not?: InputMaybe; + locked_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_contains?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_in?: InputMaybe>; + recoveries_?: InputMaybe; + rewards?: InputMaybe>; + rewards_?: InputMaybe; + rewards_contains?: InputMaybe>; + rewards_contains_nocase?: InputMaybe>; + rewards_not?: InputMaybe>; + rewards_not_contains?: InputMaybe>; + rewards_not_contains_nocase?: InputMaybe>; + stakablePair?: InputMaybe; + stakablePair_?: InputMaybe; + stakablePair_contains?: InputMaybe; + stakablePair_contains_nocase?: InputMaybe; + stakablePair_ends_with?: InputMaybe; + stakablePair_ends_with_nocase?: InputMaybe; + stakablePair_gt?: InputMaybe; + stakablePair_gte?: InputMaybe; + stakablePair_in?: InputMaybe>; + stakablePair_lt?: InputMaybe; + stakablePair_lte?: InputMaybe; + stakablePair_not?: InputMaybe; + stakablePair_not_contains?: InputMaybe; + stakablePair_not_contains_nocase?: InputMaybe; + stakablePair_not_ends_with?: InputMaybe; + stakablePair_not_ends_with_nocase?: InputMaybe; + stakablePair_not_in?: InputMaybe>; + stakablePair_not_starts_with?: InputMaybe; + stakablePair_not_starts_with_nocase?: InputMaybe; + stakablePair_starts_with?: InputMaybe; + stakablePair_starts_with_nocase?: InputMaybe; + stakedAmount?: InputMaybe; + stakedAmount_gt?: InputMaybe; + stakedAmount_gte?: InputMaybe; + stakedAmount_in?: InputMaybe>; + stakedAmount_lt?: InputMaybe; + stakedAmount_lte?: InputMaybe; + stakedAmount_not?: InputMaybe; + stakedAmount_not_in?: InputMaybe>; + stakingCap?: InputMaybe; + stakingCap_gt?: InputMaybe; + stakingCap_gte?: InputMaybe; + stakingCap_in?: InputMaybe>; + stakingCap_lt?: InputMaybe; + stakingCap_lte?: InputMaybe; + stakingCap_not?: InputMaybe; + stakingCap_not_in?: InputMaybe>; + startsAt?: InputMaybe; + startsAt_gt?: InputMaybe; + startsAt_gte?: InputMaybe; + startsAt_in?: InputMaybe>; + startsAt_lt?: InputMaybe; + startsAt_lte?: InputMaybe; + startsAt_not?: InputMaybe; + startsAt_not_in?: InputMaybe>; + withdrawals_?: InputMaybe; +}; +export declare enum LiquidityMiningCampaign_OrderBy { + Claims = "claims", + Deposits = "deposits", + Duration = "duration", + EndsAt = "endsAt", + Id = "id", + Initialized = "initialized", + LiquidityMiningPositionSnapshots = "liquidityMiningPositionSnapshots", + LiquidityMiningPositions = "liquidityMiningPositions", + Locked = "locked", + Owner = "owner", + Recoveries = "recoveries", + Rewards = "rewards", + StakablePair = "stakablePair", + StakablePairCreatedAtBlockNumber = "stakablePair__createdAtBlockNumber", + StakablePairCreatedAtTimestamp = "stakablePair__createdAtTimestamp", + StakablePairId = "stakablePair__id", + StakablePairLiquidityProviderCount = "stakablePair__liquidityProviderCount", + StakablePairReserve0 = "stakablePair__reserve0", + StakablePairReserve1 = "stakablePair__reserve1", + StakablePairReserveNativeCurrency = "stakablePair__reserveNativeCurrency", + StakablePairReserveUsd = "stakablePair__reserveUSD", + StakablePairSwapFee = "stakablePair__swapFee", + StakablePairToken0Price = "stakablePair__token0Price", + StakablePairToken1Price = "stakablePair__token1Price", + StakablePairTotalSupply = "stakablePair__totalSupply", + StakablePairTrackedReserveNativeCurrency = "stakablePair__trackedReserveNativeCurrency", + StakablePairTxCount = "stakablePair__txCount", + StakablePairUntrackedVolumeUsd = "stakablePair__untrackedVolumeUSD", + StakablePairVolumeToken0 = "stakablePair__volumeToken0", + StakablePairVolumeToken1 = "stakablePair__volumeToken1", + StakablePairVolumeUsd = "stakablePair__volumeUSD", + StakedAmount = "stakedAmount", + StakingCap = "stakingCap", + StartsAt = "startsAt", + Withdrawals = "withdrawals" +} +export type LiquidityMiningPosition = { + __typename?: 'LiquidityMiningPosition'; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + stakedAmount: Scalars['BigDecimal']; + targetedPair: Pair; + user: User; +}; +export type LiquidityMiningPositionSnapshot = { + __typename?: 'LiquidityMiningPositionSnapshot'; + block: Scalars['Int']; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + liquidityMiningPosition: LiquidityMiningPosition; + pair: Pair; + reserve0: Scalars['BigDecimal']; + reserve1: Scalars['BigDecimal']; + reserveUSD: Scalars['BigDecimal']; + stakedLiquidityTokenBalance: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + token0PriceUSD: Scalars['BigDecimal']; + token1PriceUSD: Scalars['BigDecimal']; + totalStakedLiquidityToken: Scalars['BigDecimal']; + user: User; +}; +export type LiquidityMiningPositionSnapshot_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + block?: InputMaybe; + block_gt?: InputMaybe; + block_gte?: InputMaybe; + block_in?: InputMaybe>; + block_lt?: InputMaybe; + block_lte?: InputMaybe; + block_not?: InputMaybe; + block_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + liquidityMiningPosition?: InputMaybe; + liquidityMiningPosition_?: InputMaybe; + liquidityMiningPosition_contains?: InputMaybe; + liquidityMiningPosition_contains_nocase?: InputMaybe; + liquidityMiningPosition_ends_with?: InputMaybe; + liquidityMiningPosition_ends_with_nocase?: InputMaybe; + liquidityMiningPosition_gt?: InputMaybe; + liquidityMiningPosition_gte?: InputMaybe; + liquidityMiningPosition_in?: InputMaybe>; + liquidityMiningPosition_lt?: InputMaybe; + liquidityMiningPosition_lte?: InputMaybe; + liquidityMiningPosition_not?: InputMaybe; + liquidityMiningPosition_not_contains?: InputMaybe; + liquidityMiningPosition_not_contains_nocase?: InputMaybe; + liquidityMiningPosition_not_ends_with?: InputMaybe; + liquidityMiningPosition_not_ends_with_nocase?: InputMaybe; + liquidityMiningPosition_not_in?: InputMaybe>; + liquidityMiningPosition_not_starts_with?: InputMaybe; + liquidityMiningPosition_not_starts_with_nocase?: InputMaybe; + liquidityMiningPosition_starts_with?: InputMaybe; + liquidityMiningPosition_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + reserve0?: InputMaybe; + reserve0_gt?: InputMaybe; + reserve0_gte?: InputMaybe; + reserve0_in?: InputMaybe>; + reserve0_lt?: InputMaybe; + reserve0_lte?: InputMaybe; + reserve0_not?: InputMaybe; + reserve0_not_in?: InputMaybe>; + reserve1?: InputMaybe; + reserve1_gt?: InputMaybe; + reserve1_gte?: InputMaybe; + reserve1_in?: InputMaybe>; + reserve1_lt?: InputMaybe; + reserve1_lte?: InputMaybe; + reserve1_not?: InputMaybe; + reserve1_not_in?: InputMaybe>; + reserveUSD?: InputMaybe; + reserveUSD_gt?: InputMaybe; + reserveUSD_gte?: InputMaybe; + reserveUSD_in?: InputMaybe>; + reserveUSD_lt?: InputMaybe; + reserveUSD_lte?: InputMaybe; + reserveUSD_not?: InputMaybe; + reserveUSD_not_in?: InputMaybe>; + stakedLiquidityTokenBalance?: InputMaybe; + stakedLiquidityTokenBalance_gt?: InputMaybe; + stakedLiquidityTokenBalance_gte?: InputMaybe; + stakedLiquidityTokenBalance_in?: InputMaybe>; + stakedLiquidityTokenBalance_lt?: InputMaybe; + stakedLiquidityTokenBalance_lte?: InputMaybe; + stakedLiquidityTokenBalance_not?: InputMaybe; + stakedLiquidityTokenBalance_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token0PriceUSD?: InputMaybe; + token0PriceUSD_gt?: InputMaybe; + token0PriceUSD_gte?: InputMaybe; + token0PriceUSD_in?: InputMaybe>; + token0PriceUSD_lt?: InputMaybe; + token0PriceUSD_lte?: InputMaybe; + token0PriceUSD_not?: InputMaybe; + token0PriceUSD_not_in?: InputMaybe>; + token1PriceUSD?: InputMaybe; + token1PriceUSD_gt?: InputMaybe; + token1PriceUSD_gte?: InputMaybe; + token1PriceUSD_in?: InputMaybe>; + token1PriceUSD_lt?: InputMaybe; + token1PriceUSD_lte?: InputMaybe; + token1PriceUSD_not?: InputMaybe; + token1PriceUSD_not_in?: InputMaybe>; + totalStakedLiquidityToken?: InputMaybe; + totalStakedLiquidityToken_gt?: InputMaybe; + totalStakedLiquidityToken_gte?: InputMaybe; + totalStakedLiquidityToken_in?: InputMaybe>; + totalStakedLiquidityToken_lt?: InputMaybe; + totalStakedLiquidityToken_lte?: InputMaybe; + totalStakedLiquidityToken_not?: InputMaybe; + totalStakedLiquidityToken_not_in?: InputMaybe>; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; +export declare enum LiquidityMiningPositionSnapshot_OrderBy { + Block = "block", + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + LiquidityMiningPosition = "liquidityMiningPosition", + LiquidityMiningPositionId = "liquidityMiningPosition__id", + LiquidityMiningPositionStakedAmount = "liquidityMiningPosition__stakedAmount", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Reserve0 = "reserve0", + Reserve1 = "reserve1", + ReserveUsd = "reserveUSD", + StakedLiquidityTokenBalance = "stakedLiquidityTokenBalance", + Timestamp = "timestamp", + Token0PriceUsd = "token0PriceUSD", + Token1PriceUsd = "token1PriceUSD", + TotalStakedLiquidityToken = "totalStakedLiquidityToken", + User = "user", + UserId = "user__id", + UserUsdSwapped = "user__usdSwapped" +} +export type LiquidityMiningPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + stakedAmount?: InputMaybe; + stakedAmount_gt?: InputMaybe; + stakedAmount_gte?: InputMaybe; + stakedAmount_in?: InputMaybe>; + stakedAmount_lt?: InputMaybe; + stakedAmount_lte?: InputMaybe; + stakedAmount_not?: InputMaybe; + stakedAmount_not_in?: InputMaybe>; + targetedPair?: InputMaybe; + targetedPair_?: InputMaybe; + targetedPair_contains?: InputMaybe; + targetedPair_contains_nocase?: InputMaybe; + targetedPair_ends_with?: InputMaybe; + targetedPair_ends_with_nocase?: InputMaybe; + targetedPair_gt?: InputMaybe; + targetedPair_gte?: InputMaybe; + targetedPair_in?: InputMaybe>; + targetedPair_lt?: InputMaybe; + targetedPair_lte?: InputMaybe; + targetedPair_not?: InputMaybe; + targetedPair_not_contains?: InputMaybe; + targetedPair_not_contains_nocase?: InputMaybe; + targetedPair_not_ends_with?: InputMaybe; + targetedPair_not_ends_with_nocase?: InputMaybe; + targetedPair_not_in?: InputMaybe>; + targetedPair_not_starts_with?: InputMaybe; + targetedPair_not_starts_with_nocase?: InputMaybe; + targetedPair_starts_with?: InputMaybe; + targetedPair_starts_with_nocase?: InputMaybe; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; +export declare enum LiquidityMiningPosition_OrderBy { + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + StakedAmount = "stakedAmount", + TargetedPair = "targetedPair", + TargetedPairCreatedAtBlockNumber = "targetedPair__createdAtBlockNumber", + TargetedPairCreatedAtTimestamp = "targetedPair__createdAtTimestamp", + TargetedPairId = "targetedPair__id", + TargetedPairLiquidityProviderCount = "targetedPair__liquidityProviderCount", + TargetedPairReserve0 = "targetedPair__reserve0", + TargetedPairReserve1 = "targetedPair__reserve1", + TargetedPairReserveNativeCurrency = "targetedPair__reserveNativeCurrency", + TargetedPairReserveUsd = "targetedPair__reserveUSD", + TargetedPairSwapFee = "targetedPair__swapFee", + TargetedPairToken0Price = "targetedPair__token0Price", + TargetedPairToken1Price = "targetedPair__token1Price", + TargetedPairTotalSupply = "targetedPair__totalSupply", + TargetedPairTrackedReserveNativeCurrency = "targetedPair__trackedReserveNativeCurrency", + TargetedPairTxCount = "targetedPair__txCount", + TargetedPairUntrackedVolumeUsd = "targetedPair__untrackedVolumeUSD", + TargetedPairVolumeToken0 = "targetedPair__volumeToken0", + TargetedPairVolumeToken1 = "targetedPair__volumeToken1", + TargetedPairVolumeUsd = "targetedPair__volumeUSD", + User = "user", + UserId = "user__id", + UserUsdSwapped = "user__usdSwapped" +} +export type LiquidityPosition = { + __typename?: 'LiquidityPosition'; + id: Scalars['ID']; + liquidityTokenBalance: Scalars['BigDecimal']; + pair: Pair; + user: User; +}; +export type LiquidityPositionSnapshot = { + __typename?: 'LiquidityPositionSnapshot'; + block: Scalars['Int']; + id: Scalars['ID']; + liquidityPosition: LiquidityPosition; + liquidityTokenBalance: Scalars['BigDecimal']; + liquidityTokenTotalSupply: Scalars['BigDecimal']; + pair: Pair; + reserve0: Scalars['BigDecimal']; + reserve1: Scalars['BigDecimal']; + reserveUSD: Scalars['BigDecimal']; + timestamp: Scalars['Int']; + token0PriceUSD: Scalars['BigDecimal']; + token1PriceUSD: Scalars['BigDecimal']; + user: User; +}; +export type LiquidityPositionSnapshot_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + block?: InputMaybe; + block_gt?: InputMaybe; + block_gte?: InputMaybe; + block_in?: InputMaybe>; + block_lt?: InputMaybe; + block_lte?: InputMaybe; + block_not?: InputMaybe; + block_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPosition?: InputMaybe; + liquidityPosition_?: InputMaybe; + liquidityPosition_contains?: InputMaybe; + liquidityPosition_contains_nocase?: InputMaybe; + liquidityPosition_ends_with?: InputMaybe; + liquidityPosition_ends_with_nocase?: InputMaybe; + liquidityPosition_gt?: InputMaybe; + liquidityPosition_gte?: InputMaybe; + liquidityPosition_in?: InputMaybe>; + liquidityPosition_lt?: InputMaybe; + liquidityPosition_lte?: InputMaybe; + liquidityPosition_not?: InputMaybe; + liquidityPosition_not_contains?: InputMaybe; + liquidityPosition_not_contains_nocase?: InputMaybe; + liquidityPosition_not_ends_with?: InputMaybe; + liquidityPosition_not_ends_with_nocase?: InputMaybe; + liquidityPosition_not_in?: InputMaybe>; + liquidityPosition_not_starts_with?: InputMaybe; + liquidityPosition_not_starts_with_nocase?: InputMaybe; + liquidityPosition_starts_with?: InputMaybe; + liquidityPosition_starts_with_nocase?: InputMaybe; + liquidityTokenBalance?: InputMaybe; + liquidityTokenBalance_gt?: InputMaybe; + liquidityTokenBalance_gte?: InputMaybe; + liquidityTokenBalance_in?: InputMaybe>; + liquidityTokenBalance_lt?: InputMaybe; + liquidityTokenBalance_lte?: InputMaybe; + liquidityTokenBalance_not?: InputMaybe; + liquidityTokenBalance_not_in?: InputMaybe>; + liquidityTokenTotalSupply?: InputMaybe; + liquidityTokenTotalSupply_gt?: InputMaybe; + liquidityTokenTotalSupply_gte?: InputMaybe; + liquidityTokenTotalSupply_in?: InputMaybe>; + liquidityTokenTotalSupply_lt?: InputMaybe; + liquidityTokenTotalSupply_lte?: InputMaybe; + liquidityTokenTotalSupply_not?: InputMaybe; + liquidityTokenTotalSupply_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + reserve0?: InputMaybe; + reserve0_gt?: InputMaybe; + reserve0_gte?: InputMaybe; + reserve0_in?: InputMaybe>; + reserve0_lt?: InputMaybe; + reserve0_lte?: InputMaybe; + reserve0_not?: InputMaybe; + reserve0_not_in?: InputMaybe>; + reserve1?: InputMaybe; + reserve1_gt?: InputMaybe; + reserve1_gte?: InputMaybe; + reserve1_in?: InputMaybe>; + reserve1_lt?: InputMaybe; + reserve1_lte?: InputMaybe; + reserve1_not?: InputMaybe; + reserve1_not_in?: InputMaybe>; + reserveUSD?: InputMaybe; + reserveUSD_gt?: InputMaybe; + reserveUSD_gte?: InputMaybe; + reserveUSD_in?: InputMaybe>; + reserveUSD_lt?: InputMaybe; + reserveUSD_lte?: InputMaybe; + reserveUSD_not?: InputMaybe; + reserveUSD_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + token0PriceUSD?: InputMaybe; + token0PriceUSD_gt?: InputMaybe; + token0PriceUSD_gte?: InputMaybe; + token0PriceUSD_in?: InputMaybe>; + token0PriceUSD_lt?: InputMaybe; + token0PriceUSD_lte?: InputMaybe; + token0PriceUSD_not?: InputMaybe; + token0PriceUSD_not_in?: InputMaybe>; + token1PriceUSD?: InputMaybe; + token1PriceUSD_gt?: InputMaybe; + token1PriceUSD_gte?: InputMaybe; + token1PriceUSD_in?: InputMaybe>; + token1PriceUSD_lt?: InputMaybe; + token1PriceUSD_lte?: InputMaybe; + token1PriceUSD_not?: InputMaybe; + token1PriceUSD_not_in?: InputMaybe>; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; +export declare enum LiquidityPositionSnapshot_OrderBy { + Block = "block", + Id = "id", + LiquidityPosition = "liquidityPosition", + LiquidityPositionId = "liquidityPosition__id", + LiquidityPositionLiquidityTokenBalance = "liquidityPosition__liquidityTokenBalance", + LiquidityTokenBalance = "liquidityTokenBalance", + LiquidityTokenTotalSupply = "liquidityTokenTotalSupply", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Reserve0 = "reserve0", + Reserve1 = "reserve1", + ReserveUsd = "reserveUSD", + Timestamp = "timestamp", + Token0PriceUsd = "token0PriceUSD", + Token1PriceUsd = "token1PriceUSD", + User = "user", + UserId = "user__id", + UserUsdSwapped = "user__usdSwapped" +} +export type LiquidityPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityTokenBalance?: InputMaybe; + liquidityTokenBalance_gt?: InputMaybe; + liquidityTokenBalance_gte?: InputMaybe; + liquidityTokenBalance_in?: InputMaybe>; + liquidityTokenBalance_lt?: InputMaybe; + liquidityTokenBalance_lte?: InputMaybe; + liquidityTokenBalance_not?: InputMaybe; + liquidityTokenBalance_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; +export declare enum LiquidityPosition_OrderBy { + Id = "id", + LiquidityTokenBalance = "liquidityTokenBalance", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + User = "user", + UserId = "user__id", + UserUsdSwapped = "user__usdSwapped" +} +export type Mint = { + __typename?: 'Mint'; + amount0?: Maybe; + amount1?: Maybe; + amountUSD?: Maybe; + feeLiquidity?: Maybe; + feeTo?: Maybe; + id: Scalars['ID']; + liquidity: Scalars['BigDecimal']; + logIndex?: Maybe; + pair: Pair; + sender?: Maybe; + timestamp: Scalars['BigInt']; + to: Scalars['Bytes']; + transaction: Transaction; +}; +export type Mint_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: InputMaybe>; + and?: InputMaybe>>; + feeLiquidity?: InputMaybe; + feeLiquidity_gt?: InputMaybe; + feeLiquidity_gte?: InputMaybe; + feeLiquidity_in?: InputMaybe>; + feeLiquidity_lt?: InputMaybe; + feeLiquidity_lte?: InputMaybe; + feeLiquidity_not?: InputMaybe; + feeLiquidity_not_in?: InputMaybe>; + feeTo?: InputMaybe; + feeTo_contains?: InputMaybe; + feeTo_gt?: InputMaybe; + feeTo_gte?: InputMaybe; + feeTo_in?: InputMaybe>; + feeTo_lt?: InputMaybe; + feeTo_lte?: InputMaybe; + feeTo_not?: InputMaybe; + feeTo_not_contains?: InputMaybe; + feeTo_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidity?: InputMaybe; + liquidity_gt?: InputMaybe; + liquidity_gte?: InputMaybe; + liquidity_in?: InputMaybe>; + liquidity_lt?: InputMaybe; + liquidity_lte?: InputMaybe; + liquidity_not?: InputMaybe; + liquidity_not_in?: InputMaybe>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + sender?: InputMaybe; + sender_contains?: InputMaybe; + sender_gt?: InputMaybe; + sender_gte?: InputMaybe; + sender_in?: InputMaybe>; + sender_lt?: InputMaybe; + sender_lte?: InputMaybe; + sender_not?: InputMaybe; + sender_not_contains?: InputMaybe; + sender_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_gt?: InputMaybe; + to_gte?: InputMaybe; + to_in?: InputMaybe>; + to_lt?: InputMaybe; + to_lte?: InputMaybe; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; +export declare enum Mint_OrderBy { + Amount0 = "amount0", + Amount1 = "amount1", + AmountUsd = "amountUSD", + FeeLiquidity = "feeLiquidity", + FeeTo = "feeTo", + Id = "id", + Liquidity = "liquidity", + LogIndex = "logIndex", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Sender = "sender", + Timestamp = "timestamp", + To = "to", + Transaction = "transaction", + TransactionBlockNumber = "transaction__blockNumber", + TransactionId = "transaction__id", + TransactionTimestamp = "transaction__timestamp" +} +export type MonthlyUniqueAddressInteraction = { + __typename?: 'MonthlyUniqueAddressInteraction'; + addresses: Array; + id: Scalars['ID']; + timestamp: Scalars['Int']; +}; +export type MonthlyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addresses?: InputMaybe>; + addresses_contains?: InputMaybe>; + addresses_contains_nocase?: InputMaybe>; + addresses_not?: InputMaybe>; + addresses_not_contains?: InputMaybe>; + addresses_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; +export declare enum MonthlyUniqueAddressInteraction_OrderBy { + Addresses = "addresses", + Id = "id", + Timestamp = "timestamp" +} +/** Defines the order direction, either ascending or descending */ +export declare enum OrderDirection { + Asc = "asc", + Desc = "desc" +} +export type Pair = { + __typename?: 'Pair'; + burns: Array; + createdAtBlockNumber: Scalars['BigInt']; + createdAtTimestamp: Scalars['BigInt']; + id: Scalars['ID']; + liquidityMiningCampaigns: Array; + liquidityPositionSnapshots: Array; + liquidityPositions: Array; + liquidityProviderCount: Scalars['BigInt']; + mints: Array; + pairHourData: Array; + reserve0: Scalars['BigDecimal']; + reserve1: Scalars['BigDecimal']; + reserveNativeCurrency: Scalars['BigDecimal']; + reserveUSD: Scalars['BigDecimal']; + swapFee: Scalars['BigInt']; + swaps: Array; + token0: Token; + token0Price: Scalars['BigDecimal']; + token1: Token; + token1Price: Scalars['BigDecimal']; + totalSupply: Scalars['BigDecimal']; + trackedReserveNativeCurrency: Scalars['BigDecimal']; + txCount: Scalars['BigInt']; + untrackedVolumeUSD: Scalars['BigDecimal']; + volumeToken0: Scalars['BigDecimal']; + volumeToken1: Scalars['BigDecimal']; + volumeUSD: Scalars['BigDecimal']; +}; +export type PairBurnsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairLiquidityMiningCampaignsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairLiquidityPositionSnapshotsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairLiquidityPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairMintsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairPairHourDataArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairSwapsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type PairDayData = { + __typename?: 'PairDayData'; + dailyTxns: Scalars['BigInt']; + dailyVolumeToken0: Scalars['BigDecimal']; + dailyVolumeToken1: Scalars['BigDecimal']; + dailyVolumeUSD: Scalars['BigDecimal']; + date: Scalars['Int']; + id: Scalars['ID']; + pairAddress: Scalars['Bytes']; + reserve0: Scalars['BigDecimal']; + reserve1: Scalars['BigDecimal']; + reserveUSD: Scalars['BigDecimal']; + token0: Token; + token1: Token; + totalSupply: Scalars['BigDecimal']; +}; +export type PairDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeToken0?: InputMaybe; + dailyVolumeToken0_gt?: InputMaybe; + dailyVolumeToken0_gte?: InputMaybe; + dailyVolumeToken0_in?: InputMaybe>; + dailyVolumeToken0_lt?: InputMaybe; + dailyVolumeToken0_lte?: InputMaybe; + dailyVolumeToken0_not?: InputMaybe; + dailyVolumeToken0_not_in?: InputMaybe>; + dailyVolumeToken1?: InputMaybe; + dailyVolumeToken1_gt?: InputMaybe; + dailyVolumeToken1_gte?: InputMaybe; + dailyVolumeToken1_in?: InputMaybe>; + dailyVolumeToken1_lt?: InputMaybe; + dailyVolumeToken1_lte?: InputMaybe; + dailyVolumeToken1_not?: InputMaybe; + dailyVolumeToken1_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairAddress?: InputMaybe; + pairAddress_contains?: InputMaybe; + pairAddress_gt?: InputMaybe; + pairAddress_gte?: InputMaybe; + pairAddress_in?: InputMaybe>; + pairAddress_lt?: InputMaybe; + pairAddress_lte?: InputMaybe; + pairAddress_not?: InputMaybe; + pairAddress_not_contains?: InputMaybe; + pairAddress_not_in?: InputMaybe>; + reserve0?: InputMaybe; + reserve0_gt?: InputMaybe; + reserve0_gte?: InputMaybe; + reserve0_in?: InputMaybe>; + reserve0_lt?: InputMaybe; + reserve0_lte?: InputMaybe; + reserve0_not?: InputMaybe; + reserve0_not_in?: InputMaybe>; + reserve1?: InputMaybe; + reserve1_gt?: InputMaybe; + reserve1_gte?: InputMaybe; + reserve1_in?: InputMaybe>; + reserve1_lt?: InputMaybe; + reserve1_lte?: InputMaybe; + reserve1_not?: InputMaybe; + reserve1_not_in?: InputMaybe>; + reserveUSD?: InputMaybe; + reserveUSD_gt?: InputMaybe; + reserveUSD_gte?: InputMaybe; + reserveUSD_in?: InputMaybe>; + reserveUSD_lt?: InputMaybe; + reserveUSD_lte?: InputMaybe; + reserveUSD_not?: InputMaybe; + reserveUSD_not_in?: InputMaybe>; + token0?: InputMaybe; + token0_?: InputMaybe; + token0_contains?: InputMaybe; + token0_contains_nocase?: InputMaybe; + token0_ends_with?: InputMaybe; + token0_ends_with_nocase?: InputMaybe; + token0_gt?: InputMaybe; + token0_gte?: InputMaybe; + token0_in?: InputMaybe>; + token0_lt?: InputMaybe; + token0_lte?: InputMaybe; + token0_not?: InputMaybe; + token0_not_contains?: InputMaybe; + token0_not_contains_nocase?: InputMaybe; + token0_not_ends_with?: InputMaybe; + token0_not_ends_with_nocase?: InputMaybe; + token0_not_in?: InputMaybe>; + token0_not_starts_with?: InputMaybe; + token0_not_starts_with_nocase?: InputMaybe; + token0_starts_with?: InputMaybe; + token0_starts_with_nocase?: InputMaybe; + token1?: InputMaybe; + token1_?: InputMaybe; + token1_contains?: InputMaybe; + token1_contains_nocase?: InputMaybe; + token1_ends_with?: InputMaybe; + token1_ends_with_nocase?: InputMaybe; + token1_gt?: InputMaybe; + token1_gte?: InputMaybe; + token1_in?: InputMaybe>; + token1_lt?: InputMaybe; + token1_lte?: InputMaybe; + token1_not?: InputMaybe; + token1_not_contains?: InputMaybe; + token1_not_contains_nocase?: InputMaybe; + token1_not_ends_with?: InputMaybe; + token1_not_ends_with_nocase?: InputMaybe; + token1_not_in?: InputMaybe>; + token1_not_starts_with?: InputMaybe; + token1_not_starts_with_nocase?: InputMaybe; + token1_starts_with?: InputMaybe; + token1_starts_with_nocase?: InputMaybe; + totalSupply?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not?: InputMaybe; + totalSupply_not_in?: InputMaybe>; +}; +export declare enum PairDayData_OrderBy { + DailyTxns = "dailyTxns", + DailyVolumeToken0 = "dailyVolumeToken0", + DailyVolumeToken1 = "dailyVolumeToken1", + DailyVolumeUsd = "dailyVolumeUSD", + Date = "date", + Id = "id", + PairAddress = "pairAddress", + Reserve0 = "reserve0", + Reserve1 = "reserve1", + ReserveUsd = "reserveUSD", + Token0 = "token0", + Token0Decimals = "token0__decimals", + Token0DerivedNativeCurrency = "token0__derivedNativeCurrency", + Token0Id = "token0__id", + Token0Name = "token0__name", + Token0Symbol = "token0__symbol", + Token0TotalLiquidity = "token0__totalLiquidity", + Token0TotalSupply = "token0__totalSupply", + Token0TradeVolume = "token0__tradeVolume", + Token0TradeVolumeUsd = "token0__tradeVolumeUSD", + Token0TxCount = "token0__txCount", + Token0UntrackedVolumeUsd = "token0__untrackedVolumeUSD", + Token1 = "token1", + Token1Decimals = "token1__decimals", + Token1DerivedNativeCurrency = "token1__derivedNativeCurrency", + Token1Id = "token1__id", + Token1Name = "token1__name", + Token1Symbol = "token1__symbol", + Token1TotalLiquidity = "token1__totalLiquidity", + Token1TotalSupply = "token1__totalSupply", + Token1TradeVolume = "token1__tradeVolume", + Token1TradeVolumeUsd = "token1__tradeVolumeUSD", + Token1TxCount = "token1__txCount", + Token1UntrackedVolumeUsd = "token1__untrackedVolumeUSD", + TotalSupply = "totalSupply" +} +export type PairHourData = { + __typename?: 'PairHourData'; + hourStartUnix: Scalars['Int']; + hourlyTxns: Scalars['BigInt']; + hourlyVolumeToken0: Scalars['BigDecimal']; + hourlyVolumeToken1: Scalars['BigDecimal']; + hourlyVolumeUSD: Scalars['BigDecimal']; + id: Scalars['ID']; + pair: Pair; + reserve0: Scalars['BigDecimal']; + reserve1: Scalars['BigDecimal']; + reserveUSD: Scalars['BigDecimal']; +}; +export type PairHourData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + hourStartUnix?: InputMaybe; + hourStartUnix_gt?: InputMaybe; + hourStartUnix_gte?: InputMaybe; + hourStartUnix_in?: InputMaybe>; + hourStartUnix_lt?: InputMaybe; + hourStartUnix_lte?: InputMaybe; + hourStartUnix_not?: InputMaybe; + hourStartUnix_not_in?: InputMaybe>; + hourlyTxns?: InputMaybe; + hourlyTxns_gt?: InputMaybe; + hourlyTxns_gte?: InputMaybe; + hourlyTxns_in?: InputMaybe>; + hourlyTxns_lt?: InputMaybe; + hourlyTxns_lte?: InputMaybe; + hourlyTxns_not?: InputMaybe; + hourlyTxns_not_in?: InputMaybe>; + hourlyVolumeToken0?: InputMaybe; + hourlyVolumeToken0_gt?: InputMaybe; + hourlyVolumeToken0_gte?: InputMaybe; + hourlyVolumeToken0_in?: InputMaybe>; + hourlyVolumeToken0_lt?: InputMaybe; + hourlyVolumeToken0_lte?: InputMaybe; + hourlyVolumeToken0_not?: InputMaybe; + hourlyVolumeToken0_not_in?: InputMaybe>; + hourlyVolumeToken1?: InputMaybe; + hourlyVolumeToken1_gt?: InputMaybe; + hourlyVolumeToken1_gte?: InputMaybe; + hourlyVolumeToken1_in?: InputMaybe>; + hourlyVolumeToken1_lt?: InputMaybe; + hourlyVolumeToken1_lte?: InputMaybe; + hourlyVolumeToken1_not?: InputMaybe; + hourlyVolumeToken1_not_in?: InputMaybe>; + hourlyVolumeUSD?: InputMaybe; + hourlyVolumeUSD_gt?: InputMaybe; + hourlyVolumeUSD_gte?: InputMaybe; + hourlyVolumeUSD_in?: InputMaybe>; + hourlyVolumeUSD_lt?: InputMaybe; + hourlyVolumeUSD_lte?: InputMaybe; + hourlyVolumeUSD_not?: InputMaybe; + hourlyVolumeUSD_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + reserve0?: InputMaybe; + reserve0_gt?: InputMaybe; + reserve0_gte?: InputMaybe; + reserve0_in?: InputMaybe>; + reserve0_lt?: InputMaybe; + reserve0_lte?: InputMaybe; + reserve0_not?: InputMaybe; + reserve0_not_in?: InputMaybe>; + reserve1?: InputMaybe; + reserve1_gt?: InputMaybe; + reserve1_gte?: InputMaybe; + reserve1_in?: InputMaybe>; + reserve1_lt?: InputMaybe; + reserve1_lte?: InputMaybe; + reserve1_not?: InputMaybe; + reserve1_not_in?: InputMaybe>; + reserveUSD?: InputMaybe; + reserveUSD_gt?: InputMaybe; + reserveUSD_gte?: InputMaybe; + reserveUSD_in?: InputMaybe>; + reserveUSD_lt?: InputMaybe; + reserveUSD_lte?: InputMaybe; + reserveUSD_not?: InputMaybe; + reserveUSD_not_in?: InputMaybe>; +}; +export declare enum PairHourData_OrderBy { + HourStartUnix = "hourStartUnix", + HourlyTxns = "hourlyTxns", + HourlyVolumeToken0 = "hourlyVolumeToken0", + HourlyVolumeToken1 = "hourlyVolumeToken1", + HourlyVolumeUsd = "hourlyVolumeUSD", + Id = "id", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Reserve0 = "reserve0", + Reserve1 = "reserve1", + ReserveUsd = "reserveUSD" +} +export type Pair_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + burns_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaigns_?: InputMaybe; + liquidityPositionSnapshots_?: InputMaybe; + liquidityPositions_?: InputMaybe; + liquidityProviderCount?: InputMaybe; + liquidityProviderCount_gt?: InputMaybe; + liquidityProviderCount_gte?: InputMaybe; + liquidityProviderCount_in?: InputMaybe>; + liquidityProviderCount_lt?: InputMaybe; + liquidityProviderCount_lte?: InputMaybe; + liquidityProviderCount_not?: InputMaybe; + liquidityProviderCount_not_in?: InputMaybe>; + mints_?: InputMaybe; + or?: InputMaybe>>; + pairHourData_?: InputMaybe; + reserve0?: InputMaybe; + reserve0_gt?: InputMaybe; + reserve0_gte?: InputMaybe; + reserve0_in?: InputMaybe>; + reserve0_lt?: InputMaybe; + reserve0_lte?: InputMaybe; + reserve0_not?: InputMaybe; + reserve0_not_in?: InputMaybe>; + reserve1?: InputMaybe; + reserve1_gt?: InputMaybe; + reserve1_gte?: InputMaybe; + reserve1_in?: InputMaybe>; + reserve1_lt?: InputMaybe; + reserve1_lte?: InputMaybe; + reserve1_not?: InputMaybe; + reserve1_not_in?: InputMaybe>; + reserveNativeCurrency?: InputMaybe; + reserveNativeCurrency_gt?: InputMaybe; + reserveNativeCurrency_gte?: InputMaybe; + reserveNativeCurrency_in?: InputMaybe>; + reserveNativeCurrency_lt?: InputMaybe; + reserveNativeCurrency_lte?: InputMaybe; + reserveNativeCurrency_not?: InputMaybe; + reserveNativeCurrency_not_in?: InputMaybe>; + reserveUSD?: InputMaybe; + reserveUSD_gt?: InputMaybe; + reserveUSD_gte?: InputMaybe; + reserveUSD_in?: InputMaybe>; + reserveUSD_lt?: InputMaybe; + reserveUSD_lte?: InputMaybe; + reserveUSD_not?: InputMaybe; + reserveUSD_not_in?: InputMaybe>; + swapFee?: InputMaybe; + swapFee_gt?: InputMaybe; + swapFee_gte?: InputMaybe; + swapFee_in?: InputMaybe>; + swapFee_lt?: InputMaybe; + swapFee_lte?: InputMaybe; + swapFee_not?: InputMaybe; + swapFee_not_in?: InputMaybe>; + swaps_?: InputMaybe; + token0?: InputMaybe; + token0Price?: InputMaybe; + token0Price_gt?: InputMaybe; + token0Price_gte?: InputMaybe; + token0Price_in?: InputMaybe>; + token0Price_lt?: InputMaybe; + token0Price_lte?: InputMaybe; + token0Price_not?: InputMaybe; + token0Price_not_in?: InputMaybe>; + token0_?: InputMaybe; + token0_contains?: InputMaybe; + token0_contains_nocase?: InputMaybe; + token0_ends_with?: InputMaybe; + token0_ends_with_nocase?: InputMaybe; + token0_gt?: InputMaybe; + token0_gte?: InputMaybe; + token0_in?: InputMaybe>; + token0_lt?: InputMaybe; + token0_lte?: InputMaybe; + token0_not?: InputMaybe; + token0_not_contains?: InputMaybe; + token0_not_contains_nocase?: InputMaybe; + token0_not_ends_with?: InputMaybe; + token0_not_ends_with_nocase?: InputMaybe; + token0_not_in?: InputMaybe>; + token0_not_starts_with?: InputMaybe; + token0_not_starts_with_nocase?: InputMaybe; + token0_starts_with?: InputMaybe; + token0_starts_with_nocase?: InputMaybe; + token1?: InputMaybe; + token1Price?: InputMaybe; + token1Price_gt?: InputMaybe; + token1Price_gte?: InputMaybe; + token1Price_in?: InputMaybe>; + token1Price_lt?: InputMaybe; + token1Price_lte?: InputMaybe; + token1Price_not?: InputMaybe; + token1Price_not_in?: InputMaybe>; + token1_?: InputMaybe; + token1_contains?: InputMaybe; + token1_contains_nocase?: InputMaybe; + token1_ends_with?: InputMaybe; + token1_ends_with_nocase?: InputMaybe; + token1_gt?: InputMaybe; + token1_gte?: InputMaybe; + token1_in?: InputMaybe>; + token1_lt?: InputMaybe; + token1_lte?: InputMaybe; + token1_not?: InputMaybe; + token1_not_contains?: InputMaybe; + token1_not_contains_nocase?: InputMaybe; + token1_not_ends_with?: InputMaybe; + token1_not_ends_with_nocase?: InputMaybe; + token1_not_in?: InputMaybe>; + token1_not_starts_with?: InputMaybe; + token1_not_starts_with_nocase?: InputMaybe; + token1_starts_with?: InputMaybe; + token1_starts_with_nocase?: InputMaybe; + totalSupply?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not?: InputMaybe; + totalSupply_not_in?: InputMaybe>; + trackedReserveNativeCurrency?: InputMaybe; + trackedReserveNativeCurrency_gt?: InputMaybe; + trackedReserveNativeCurrency_gte?: InputMaybe; + trackedReserveNativeCurrency_in?: InputMaybe>; + trackedReserveNativeCurrency_lt?: InputMaybe; + trackedReserveNativeCurrency_lte?: InputMaybe; + trackedReserveNativeCurrency_not?: InputMaybe; + trackedReserveNativeCurrency_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; +export declare enum Pair_OrderBy { + Burns = "burns", + CreatedAtBlockNumber = "createdAtBlockNumber", + CreatedAtTimestamp = "createdAtTimestamp", + Id = "id", + LiquidityMiningCampaigns = "liquidityMiningCampaigns", + LiquidityPositionSnapshots = "liquidityPositionSnapshots", + LiquidityPositions = "liquidityPositions", + LiquidityProviderCount = "liquidityProviderCount", + Mints = "mints", + PairHourData = "pairHourData", + Reserve0 = "reserve0", + Reserve1 = "reserve1", + ReserveNativeCurrency = "reserveNativeCurrency", + ReserveUsd = "reserveUSD", + SwapFee = "swapFee", + Swaps = "swaps", + Token0 = "token0", + Token0Price = "token0Price", + Token0Decimals = "token0__decimals", + Token0DerivedNativeCurrency = "token0__derivedNativeCurrency", + Token0Id = "token0__id", + Token0Name = "token0__name", + Token0Symbol = "token0__symbol", + Token0TotalLiquidity = "token0__totalLiquidity", + Token0TotalSupply = "token0__totalSupply", + Token0TradeVolume = "token0__tradeVolume", + Token0TradeVolumeUsd = "token0__tradeVolumeUSD", + Token0TxCount = "token0__txCount", + Token0UntrackedVolumeUsd = "token0__untrackedVolumeUSD", + Token1 = "token1", + Token1Price = "token1Price", + Token1Decimals = "token1__decimals", + Token1DerivedNativeCurrency = "token1__derivedNativeCurrency", + Token1Id = "token1__id", + Token1Name = "token1__name", + Token1Symbol = "token1__symbol", + Token1TotalLiquidity = "token1__totalLiquidity", + Token1TotalSupply = "token1__totalSupply", + Token1TradeVolume = "token1__tradeVolume", + Token1TradeVolumeUsd = "token1__tradeVolumeUSD", + Token1TxCount = "token1__txCount", + Token1UntrackedVolumeUsd = "token1__untrackedVolumeUSD", + TotalSupply = "totalSupply", + TrackedReserveNativeCurrency = "trackedReserveNativeCurrency", + TxCount = "txCount", + UntrackedVolumeUsd = "untrackedVolumeUSD", + VolumeToken0 = "volumeToken0", + VolumeToken1 = "volumeToken1", + VolumeUsd = "volumeUSD" +} +export type Query = { + __typename?: 'Query'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + bundle?: Maybe; + bundles: Array; + burn?: Maybe; + burns: Array; + claim?: Maybe; + claims: Array; + dailyUniqueAddressInteraction?: Maybe; + dailyUniqueAddressInteractions: Array; + deposit?: Maybe; + deposits: Array; + liquidityMiningCampaign?: Maybe; + liquidityMiningCampaignReward?: Maybe; + liquidityMiningCampaignRewards: Array; + liquidityMiningCampaigns: Array; + liquidityMiningPosition?: Maybe; + liquidityMiningPositionSnapshot?: Maybe; + liquidityMiningPositionSnapshots: Array; + liquidityMiningPositions: Array; + liquidityPosition?: Maybe; + liquidityPositionSnapshot?: Maybe; + liquidityPositionSnapshots: Array; + liquidityPositions: Array; + mint?: Maybe; + mints: Array; + monthlyUniqueAddressInteraction?: Maybe; + monthlyUniqueAddressInteractions: Array; + pair?: Maybe; + pairDayData?: Maybe; + pairDayDatas: Array; + pairHourData?: Maybe; + pairHourDatas: Array; + pairs: Array; + recoveries: Array; + recovery?: Maybe; + singleSidedStakingCampaign?: Maybe; + singleSidedStakingCampaignClaim?: Maybe; + singleSidedStakingCampaignClaims: Array; + singleSidedStakingCampaignDeposit?: Maybe; + singleSidedStakingCampaignDeposits: Array; + singleSidedStakingCampaignPosition?: Maybe; + singleSidedStakingCampaignPositions: Array; + singleSidedStakingCampaignRecoveries: Array; + singleSidedStakingCampaignRecovery?: Maybe; + singleSidedStakingCampaignReward?: Maybe; + singleSidedStakingCampaignRewards: Array; + singleSidedStakingCampaignWithdrawal?: Maybe; + singleSidedStakingCampaignWithdrawals: Array; + singleSidedStakingCampaigns: Array; + swap?: Maybe; + swaprDayData?: Maybe; + swaprDayDatas: Array; + swaprFactories: Array; + swaprFactory?: Maybe; + swaprStakingRewardsFactories: Array; + swaprStakingRewardsFactory?: Maybe; + swaps: Array; + token?: Maybe; + tokenDayData?: Maybe; + tokenDayDatas: Array; + tokens: Array; + transaction?: Maybe; + transactions: Array; + user?: Maybe; + users: Array; + weeklyUniqueAddressInteraction?: Maybe; + weeklyUniqueAddressInteractions: Array; + withdrawal?: Maybe; + withdrawals: Array; +}; +export type Query_MetaArgs = { + block?: InputMaybe; +}; +export type QueryBundleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryBundlesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryBurnArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryBurnsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryClaimArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryClaimsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryDailyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryDailyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityMiningCampaignArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityMiningCampaignRewardArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityMiningCampaignRewardsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityMiningCampaignsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityMiningPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityMiningPositionSnapshotArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityMiningPositionSnapshotsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityMiningPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityPositionSnapshotArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryLiquidityPositionSnapshotsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryLiquidityPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryMintArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryMintsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryMonthlyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryMonthlyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryPairArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryPairDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryPairDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryPairHourDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryPairHourDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryPairsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryRecoveriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryRecoveryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignClaimArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignClaimsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignRecoveriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignRecoveryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignRewardArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignRewardsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySingleSidedStakingCampaignWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySingleSidedStakingCampaignsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySwaprDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySwaprDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySwaprFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySwaprFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySwaprStakingRewardsFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QuerySwaprStakingRewardsFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QuerySwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryTokenDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryTokenDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryUserArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryUsersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryWeeklyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryWeeklyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type QueryWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type QueryWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type Recovery = { + __typename?: 'Recovery'; + amounts: Array; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + timestamp: Scalars['BigInt']; +}; +export type Recovery_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amounts?: InputMaybe>; + amounts_contains?: InputMaybe>; + amounts_contains_nocase?: InputMaybe>; + amounts_not?: InputMaybe>; + amounts_not_contains?: InputMaybe>; + amounts_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; +export declare enum Recovery_OrderBy { + Amounts = "amounts", + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + Timestamp = "timestamp" +} +export type SingleSidedStakingCampaign = { + __typename?: 'SingleSidedStakingCampaign'; + claims: Array; + deposits: Array; + duration: Scalars['BigInt']; + endsAt: Scalars['BigInt']; + id: Scalars['ID']; + initialized: Scalars['Boolean']; + locked: Scalars['Boolean']; + owner: Scalars['Bytes']; + recoveries: Array; + rewards: Array; + singleSidedStakingPositions: Array; + stakeToken: Token; + stakedAmount: Scalars['BigDecimal']; + stakingCap: Scalars['BigDecimal']; + startsAt: Scalars['BigInt']; + withdrawals: Array; +}; +export type SingleSidedStakingCampaignClaimsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignDepositsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignRecoveriesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignRewardsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignSingleSidedStakingPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignWithdrawalsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type SingleSidedStakingCampaignClaim = { + __typename?: 'SingleSidedStakingCampaignClaim'; + amounts: Array; + id: Scalars['ID']; + singleSidedStakingCampaign: SingleSidedStakingCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type SingleSidedStakingCampaignClaim_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amounts?: InputMaybe>; + amounts_contains?: InputMaybe>; + amounts_contains_nocase?: InputMaybe>; + amounts_not?: InputMaybe>; + amounts_not_contains?: InputMaybe>; + amounts_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + singleSidedStakingCampaign?: InputMaybe; + singleSidedStakingCampaign_?: InputMaybe; + singleSidedStakingCampaign_contains?: InputMaybe; + singleSidedStakingCampaign_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_ends_with?: InputMaybe; + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_gt?: InputMaybe; + singleSidedStakingCampaign_gte?: InputMaybe; + singleSidedStakingCampaign_in?: InputMaybe>; + singleSidedStakingCampaign_lt?: InputMaybe; + singleSidedStakingCampaign_lte?: InputMaybe; + singleSidedStakingCampaign_not?: InputMaybe; + singleSidedStakingCampaign_not_contains?: InputMaybe; + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_not_ends_with?: InputMaybe; + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_not_in?: InputMaybe>; + singleSidedStakingCampaign_not_starts_with?: InputMaybe; + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; + singleSidedStakingCampaign_starts_with?: InputMaybe; + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum SingleSidedStakingCampaignClaim_OrderBy { + Amounts = "amounts", + Id = "id", + SingleSidedStakingCampaign = "singleSidedStakingCampaign", + SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", + SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", + SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", + SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", + SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", + SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", + SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", + SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", + SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type SingleSidedStakingCampaignDeposit = { + __typename?: 'SingleSidedStakingCampaignDeposit'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + singleSidedStakingCampaign: SingleSidedStakingCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type SingleSidedStakingCampaignDeposit_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + singleSidedStakingCampaign?: InputMaybe; + singleSidedStakingCampaign_?: InputMaybe; + singleSidedStakingCampaign_contains?: InputMaybe; + singleSidedStakingCampaign_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_ends_with?: InputMaybe; + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_gt?: InputMaybe; + singleSidedStakingCampaign_gte?: InputMaybe; + singleSidedStakingCampaign_in?: InputMaybe>; + singleSidedStakingCampaign_lt?: InputMaybe; + singleSidedStakingCampaign_lte?: InputMaybe; + singleSidedStakingCampaign_not?: InputMaybe; + singleSidedStakingCampaign_not_contains?: InputMaybe; + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_not_ends_with?: InputMaybe; + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_not_in?: InputMaybe>; + singleSidedStakingCampaign_not_starts_with?: InputMaybe; + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; + singleSidedStakingCampaign_starts_with?: InputMaybe; + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum SingleSidedStakingCampaignDeposit_OrderBy { + Amount = "amount", + Id = "id", + SingleSidedStakingCampaign = "singleSidedStakingCampaign", + SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", + SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", + SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", + SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", + SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", + SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", + SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", + SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", + SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type SingleSidedStakingCampaignPosition = { + __typename?: 'SingleSidedStakingCampaignPosition'; + id: Scalars['ID']; + singleSidedStakingCampaign: SingleSidedStakingCampaign; + stakedAmount: Scalars['BigDecimal']; + user: User; +}; +export type SingleSidedStakingCampaignPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + singleSidedStakingCampaign?: InputMaybe; + singleSidedStakingCampaign_?: InputMaybe; + singleSidedStakingCampaign_contains?: InputMaybe; + singleSidedStakingCampaign_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_ends_with?: InputMaybe; + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_gt?: InputMaybe; + singleSidedStakingCampaign_gte?: InputMaybe; + singleSidedStakingCampaign_in?: InputMaybe>; + singleSidedStakingCampaign_lt?: InputMaybe; + singleSidedStakingCampaign_lte?: InputMaybe; + singleSidedStakingCampaign_not?: InputMaybe; + singleSidedStakingCampaign_not_contains?: InputMaybe; + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_not_ends_with?: InputMaybe; + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_not_in?: InputMaybe>; + singleSidedStakingCampaign_not_starts_with?: InputMaybe; + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; + singleSidedStakingCampaign_starts_with?: InputMaybe; + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; + stakedAmount?: InputMaybe; + stakedAmount_gt?: InputMaybe; + stakedAmount_gte?: InputMaybe; + stakedAmount_in?: InputMaybe>; + stakedAmount_lt?: InputMaybe; + stakedAmount_lte?: InputMaybe; + stakedAmount_not?: InputMaybe; + stakedAmount_not_in?: InputMaybe>; + user?: InputMaybe; + user_?: InputMaybe; + user_contains?: InputMaybe; + user_contains_nocase?: InputMaybe; + user_ends_with?: InputMaybe; + user_ends_with_nocase?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_contains_nocase?: InputMaybe; + user_not_ends_with?: InputMaybe; + user_not_ends_with_nocase?: InputMaybe; + user_not_in?: InputMaybe>; + user_not_starts_with?: InputMaybe; + user_not_starts_with_nocase?: InputMaybe; + user_starts_with?: InputMaybe; + user_starts_with_nocase?: InputMaybe; +}; +export declare enum SingleSidedStakingCampaignPosition_OrderBy { + Id = "id", + SingleSidedStakingCampaign = "singleSidedStakingCampaign", + SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", + SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", + SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", + SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", + SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", + SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", + SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", + SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", + SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", + StakedAmount = "stakedAmount", + User = "user", + UserId = "user__id", + UserUsdSwapped = "user__usdSwapped" +} +export type SingleSidedStakingCampaignRecovery = { + __typename?: 'SingleSidedStakingCampaignRecovery'; + amounts: Array; + id: Scalars['ID']; + singleSidedStakingCampaign: SingleSidedStakingCampaign; + timestamp: Scalars['BigInt']; +}; +export type SingleSidedStakingCampaignRecovery_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amounts?: InputMaybe>; + amounts_contains?: InputMaybe>; + amounts_contains_nocase?: InputMaybe>; + amounts_not?: InputMaybe>; + amounts_not_contains?: InputMaybe>; + amounts_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + singleSidedStakingCampaign?: InputMaybe; + singleSidedStakingCampaign_?: InputMaybe; + singleSidedStakingCampaign_contains?: InputMaybe; + singleSidedStakingCampaign_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_ends_with?: InputMaybe; + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_gt?: InputMaybe; + singleSidedStakingCampaign_gte?: InputMaybe; + singleSidedStakingCampaign_in?: InputMaybe>; + singleSidedStakingCampaign_lt?: InputMaybe; + singleSidedStakingCampaign_lte?: InputMaybe; + singleSidedStakingCampaign_not?: InputMaybe; + singleSidedStakingCampaign_not_contains?: InputMaybe; + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_not_ends_with?: InputMaybe; + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_not_in?: InputMaybe>; + singleSidedStakingCampaign_not_starts_with?: InputMaybe; + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; + singleSidedStakingCampaign_starts_with?: InputMaybe; + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; +export declare enum SingleSidedStakingCampaignRecovery_OrderBy { + Amounts = "amounts", + Id = "id", + SingleSidedStakingCampaign = "singleSidedStakingCampaign", + SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", + SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", + SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", + SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", + SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", + SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", + SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", + SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", + SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", + Timestamp = "timestamp" +} +export type SingleSidedStakingCampaignReward = { + __typename?: 'SingleSidedStakingCampaignReward'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + token: Token; +}; +export type SingleSidedStakingCampaignReward_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + token?: InputMaybe; + token_?: InputMaybe; + token_contains?: InputMaybe; + token_contains_nocase?: InputMaybe; + token_ends_with?: InputMaybe; + token_ends_with_nocase?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_contains_nocase?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_ends_with_nocase?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_not_starts_with_nocase?: InputMaybe; + token_starts_with?: InputMaybe; + token_starts_with_nocase?: InputMaybe; +}; +export declare enum SingleSidedStakingCampaignReward_OrderBy { + Amount = "amount", + Id = "id", + Token = "token", + TokenDecimals = "token__decimals", + TokenDerivedNativeCurrency = "token__derivedNativeCurrency", + TokenId = "token__id", + TokenName = "token__name", + TokenSymbol = "token__symbol", + TokenTotalLiquidity = "token__totalLiquidity", + TokenTotalSupply = "token__totalSupply", + TokenTradeVolume = "token__tradeVolume", + TokenTradeVolumeUsd = "token__tradeVolumeUSD", + TokenTxCount = "token__txCount", + TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD" +} +export type SingleSidedStakingCampaignWithdrawal = { + __typename?: 'SingleSidedStakingCampaignWithdrawal'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + singleSidedStakingCampaign: SingleSidedStakingCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type SingleSidedStakingCampaignWithdrawal_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + singleSidedStakingCampaign?: InputMaybe; + singleSidedStakingCampaign_?: InputMaybe; + singleSidedStakingCampaign_contains?: InputMaybe; + singleSidedStakingCampaign_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_ends_with?: InputMaybe; + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_gt?: InputMaybe; + singleSidedStakingCampaign_gte?: InputMaybe; + singleSidedStakingCampaign_in?: InputMaybe>; + singleSidedStakingCampaign_lt?: InputMaybe; + singleSidedStakingCampaign_lte?: InputMaybe; + singleSidedStakingCampaign_not?: InputMaybe; + singleSidedStakingCampaign_not_contains?: InputMaybe; + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; + singleSidedStakingCampaign_not_ends_with?: InputMaybe; + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; + singleSidedStakingCampaign_not_in?: InputMaybe>; + singleSidedStakingCampaign_not_starts_with?: InputMaybe; + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; + singleSidedStakingCampaign_starts_with?: InputMaybe; + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum SingleSidedStakingCampaignWithdrawal_OrderBy { + Amount = "amount", + Id = "id", + SingleSidedStakingCampaign = "singleSidedStakingCampaign", + SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", + SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", + SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", + SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", + SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", + SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", + SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", + SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", + SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type SingleSidedStakingCampaign_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + claims_?: InputMaybe; + deposits_?: InputMaybe; + duration?: InputMaybe; + duration_gt?: InputMaybe; + duration_gte?: InputMaybe; + duration_in?: InputMaybe>; + duration_lt?: InputMaybe; + duration_lte?: InputMaybe; + duration_not?: InputMaybe; + duration_not_in?: InputMaybe>; + endsAt?: InputMaybe; + endsAt_gt?: InputMaybe; + endsAt_gte?: InputMaybe; + endsAt_in?: InputMaybe>; + endsAt_lt?: InputMaybe; + endsAt_lte?: InputMaybe; + endsAt_not?: InputMaybe; + endsAt_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + initialized?: InputMaybe; + initialized_in?: InputMaybe>; + initialized_not?: InputMaybe; + initialized_not_in?: InputMaybe>; + locked?: InputMaybe; + locked_in?: InputMaybe>; + locked_not?: InputMaybe; + locked_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_contains?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_in?: InputMaybe>; + recoveries_?: InputMaybe; + rewards?: InputMaybe>; + rewards_?: InputMaybe; + rewards_contains?: InputMaybe>; + rewards_contains_nocase?: InputMaybe>; + rewards_not?: InputMaybe>; + rewards_not_contains?: InputMaybe>; + rewards_not_contains_nocase?: InputMaybe>; + singleSidedStakingPositions_?: InputMaybe; + stakeToken?: InputMaybe; + stakeToken_?: InputMaybe; + stakeToken_contains?: InputMaybe; + stakeToken_contains_nocase?: InputMaybe; + stakeToken_ends_with?: InputMaybe; + stakeToken_ends_with_nocase?: InputMaybe; + stakeToken_gt?: InputMaybe; + stakeToken_gte?: InputMaybe; + stakeToken_in?: InputMaybe>; + stakeToken_lt?: InputMaybe; + stakeToken_lte?: InputMaybe; + stakeToken_not?: InputMaybe; + stakeToken_not_contains?: InputMaybe; + stakeToken_not_contains_nocase?: InputMaybe; + stakeToken_not_ends_with?: InputMaybe; + stakeToken_not_ends_with_nocase?: InputMaybe; + stakeToken_not_in?: InputMaybe>; + stakeToken_not_starts_with?: InputMaybe; + stakeToken_not_starts_with_nocase?: InputMaybe; + stakeToken_starts_with?: InputMaybe; + stakeToken_starts_with_nocase?: InputMaybe; + stakedAmount?: InputMaybe; + stakedAmount_gt?: InputMaybe; + stakedAmount_gte?: InputMaybe; + stakedAmount_in?: InputMaybe>; + stakedAmount_lt?: InputMaybe; + stakedAmount_lte?: InputMaybe; + stakedAmount_not?: InputMaybe; + stakedAmount_not_in?: InputMaybe>; + stakingCap?: InputMaybe; + stakingCap_gt?: InputMaybe; + stakingCap_gte?: InputMaybe; + stakingCap_in?: InputMaybe>; + stakingCap_lt?: InputMaybe; + stakingCap_lte?: InputMaybe; + stakingCap_not?: InputMaybe; + stakingCap_not_in?: InputMaybe>; + startsAt?: InputMaybe; + startsAt_gt?: InputMaybe; + startsAt_gte?: InputMaybe; + startsAt_in?: InputMaybe>; + startsAt_lt?: InputMaybe; + startsAt_lte?: InputMaybe; + startsAt_not?: InputMaybe; + startsAt_not_in?: InputMaybe>; + withdrawals_?: InputMaybe; +}; +export declare enum SingleSidedStakingCampaign_OrderBy { + Claims = "claims", + Deposits = "deposits", + Duration = "duration", + EndsAt = "endsAt", + Id = "id", + Initialized = "initialized", + Locked = "locked", + Owner = "owner", + Recoveries = "recoveries", + Rewards = "rewards", + SingleSidedStakingPositions = "singleSidedStakingPositions", + StakeToken = "stakeToken", + StakeTokenDecimals = "stakeToken__decimals", + StakeTokenDerivedNativeCurrency = "stakeToken__derivedNativeCurrency", + StakeTokenId = "stakeToken__id", + StakeTokenName = "stakeToken__name", + StakeTokenSymbol = "stakeToken__symbol", + StakeTokenTotalLiquidity = "stakeToken__totalLiquidity", + StakeTokenTotalSupply = "stakeToken__totalSupply", + StakeTokenTradeVolume = "stakeToken__tradeVolume", + StakeTokenTradeVolumeUsd = "stakeToken__tradeVolumeUSD", + StakeTokenTxCount = "stakeToken__txCount", + StakeTokenUntrackedVolumeUsd = "stakeToken__untrackedVolumeUSD", + StakedAmount = "stakedAmount", + StakingCap = "stakingCap", + StartsAt = "startsAt", + Withdrawals = "withdrawals" +} +export type Subscription = { + __typename?: 'Subscription'; + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_>; + bundle?: Maybe; + bundles: Array; + burn?: Maybe; + burns: Array; + claim?: Maybe; + claims: Array; + dailyUniqueAddressInteraction?: Maybe; + dailyUniqueAddressInteractions: Array; + deposit?: Maybe; + deposits: Array; + liquidityMiningCampaign?: Maybe; + liquidityMiningCampaignReward?: Maybe; + liquidityMiningCampaignRewards: Array; + liquidityMiningCampaigns: Array; + liquidityMiningPosition?: Maybe; + liquidityMiningPositionSnapshot?: Maybe; + liquidityMiningPositionSnapshots: Array; + liquidityMiningPositions: Array; + liquidityPosition?: Maybe; + liquidityPositionSnapshot?: Maybe; + liquidityPositionSnapshots: Array; + liquidityPositions: Array; + mint?: Maybe; + mints: Array; + monthlyUniqueAddressInteraction?: Maybe; + monthlyUniqueAddressInteractions: Array; + pair?: Maybe; + pairDayData?: Maybe; + pairDayDatas: Array; + pairHourData?: Maybe; + pairHourDatas: Array; + pairs: Array; + recoveries: Array; + recovery?: Maybe; + singleSidedStakingCampaign?: Maybe; + singleSidedStakingCampaignClaim?: Maybe; + singleSidedStakingCampaignClaims: Array; + singleSidedStakingCampaignDeposit?: Maybe; + singleSidedStakingCampaignDeposits: Array; + singleSidedStakingCampaignPosition?: Maybe; + singleSidedStakingCampaignPositions: Array; + singleSidedStakingCampaignRecoveries: Array; + singleSidedStakingCampaignRecovery?: Maybe; + singleSidedStakingCampaignReward?: Maybe; + singleSidedStakingCampaignRewards: Array; + singleSidedStakingCampaignWithdrawal?: Maybe; + singleSidedStakingCampaignWithdrawals: Array; + singleSidedStakingCampaigns: Array; + swap?: Maybe; + swaprDayData?: Maybe; + swaprDayDatas: Array; + swaprFactories: Array; + swaprFactory?: Maybe; + swaprStakingRewardsFactories: Array; + swaprStakingRewardsFactory?: Maybe; + swaps: Array; + token?: Maybe; + tokenDayData?: Maybe; + tokenDayDatas: Array; + tokens: Array; + transaction?: Maybe; + transactions: Array; + user?: Maybe; + users: Array; + weeklyUniqueAddressInteraction?: Maybe; + weeklyUniqueAddressInteractions: Array; + withdrawal?: Maybe; + withdrawals: Array; +}; +export type Subscription_MetaArgs = { + block?: InputMaybe; +}; +export type SubscriptionBundleArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionBundlesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionBurnArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionBurnsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionClaimArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionClaimsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionDailyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionDailyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityMiningCampaignArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityMiningCampaignRewardArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityMiningCampaignRewardsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityMiningCampaignsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityMiningPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityMiningPositionSnapshotArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityMiningPositionSnapshotsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityMiningPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityPositionSnapshotArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionLiquidityPositionSnapshotsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionLiquidityPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionMintArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionMintsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionMonthlyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionMonthlyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionPairArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionPairDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionPairDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionPairHourDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionPairHourDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionPairsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionRecoveriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionRecoveryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignClaimArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignClaimsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignDepositArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignDepositsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignPositionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignPositionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignRecoveriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignRecoveryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignRewardArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignRewardsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSingleSidedStakingCampaignWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSingleSidedStakingCampaignsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSwaprDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSwaprDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSwaprFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSwaprFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSwaprStakingRewardsFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionSwaprStakingRewardsFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionSwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionTokenDayDataArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionTokenDayDatasArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionTransactionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionTransactionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionUserArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionUsersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionWeeklyUniqueAddressInteractionArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionWeeklyUniqueAddressInteractionsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type SubscriptionWithdrawalArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; +export type SubscriptionWithdrawalsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; +export type Swap = { + __typename?: 'Swap'; + amount0In: Scalars['BigDecimal']; + amount0Out: Scalars['BigDecimal']; + amount1In: Scalars['BigDecimal']; + amount1Out: Scalars['BigDecimal']; + amountUSD: Scalars['BigDecimal']; + from: Scalars['Bytes']; + id: Scalars['ID']; + logIndex?: Maybe; + pair: Pair; + sender: Scalars['Bytes']; + timestamp: Scalars['BigInt']; + to: Scalars['Bytes']; + transaction: Transaction; +}; +export type Swap_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount0In?: InputMaybe; + amount0In_gt?: InputMaybe; + amount0In_gte?: InputMaybe; + amount0In_in?: InputMaybe>; + amount0In_lt?: InputMaybe; + amount0In_lte?: InputMaybe; + amount0In_not?: InputMaybe; + amount0In_not_in?: InputMaybe>; + amount0Out?: InputMaybe; + amount0Out_gt?: InputMaybe; + amount0Out_gte?: InputMaybe; + amount0Out_in?: InputMaybe>; + amount0Out_lt?: InputMaybe; + amount0Out_lte?: InputMaybe; + amount0Out_not?: InputMaybe; + amount0Out_not_in?: InputMaybe>; + amount1In?: InputMaybe; + amount1In_gt?: InputMaybe; + amount1In_gte?: InputMaybe; + amount1In_in?: InputMaybe>; + amount1In_lt?: InputMaybe; + amount1In_lte?: InputMaybe; + amount1In_not?: InputMaybe; + amount1In_not_in?: InputMaybe>; + amount1Out?: InputMaybe; + amount1Out_gt?: InputMaybe; + amount1Out_gte?: InputMaybe; + amount1Out_in?: InputMaybe>; + amount1Out_lt?: InputMaybe; + amount1Out_lte?: InputMaybe; + amount1Out_not?: InputMaybe; + amount1Out_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: InputMaybe>; + and?: InputMaybe>>; + from?: InputMaybe; + from_contains?: InputMaybe; + from_gt?: InputMaybe; + from_gte?: InputMaybe; + from_in?: InputMaybe>; + from_lt?: InputMaybe; + from_lte?: InputMaybe; + from_not?: InputMaybe; + from_not_contains?: InputMaybe; + from_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + or?: InputMaybe>>; + pair?: InputMaybe; + pair_?: InputMaybe; + pair_contains?: InputMaybe; + pair_contains_nocase?: InputMaybe; + pair_ends_with?: InputMaybe; + pair_ends_with_nocase?: InputMaybe; + pair_gt?: InputMaybe; + pair_gte?: InputMaybe; + pair_in?: InputMaybe>; + pair_lt?: InputMaybe; + pair_lte?: InputMaybe; + pair_not?: InputMaybe; + pair_not_contains?: InputMaybe; + pair_not_contains_nocase?: InputMaybe; + pair_not_ends_with?: InputMaybe; + pair_not_ends_with_nocase?: InputMaybe; + pair_not_in?: InputMaybe>; + pair_not_starts_with?: InputMaybe; + pair_not_starts_with_nocase?: InputMaybe; + pair_starts_with?: InputMaybe; + pair_starts_with_nocase?: InputMaybe; + sender?: InputMaybe; + sender_contains?: InputMaybe; + sender_gt?: InputMaybe; + sender_gte?: InputMaybe; + sender_in?: InputMaybe>; + sender_lt?: InputMaybe; + sender_lte?: InputMaybe; + sender_not?: InputMaybe; + sender_not_contains?: InputMaybe; + sender_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + to?: InputMaybe; + to_contains?: InputMaybe; + to_gt?: InputMaybe; + to_gte?: InputMaybe; + to_in?: InputMaybe>; + to_lt?: InputMaybe; + to_lte?: InputMaybe; + to_not?: InputMaybe; + to_not_contains?: InputMaybe; + to_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; +export declare enum Swap_OrderBy { + Amount0In = "amount0In", + Amount0Out = "amount0Out", + Amount1In = "amount1In", + Amount1Out = "amount1Out", + AmountUsd = "amountUSD", + From = "from", + Id = "id", + LogIndex = "logIndex", + Pair = "pair", + PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", + PairCreatedAtTimestamp = "pair__createdAtTimestamp", + PairId = "pair__id", + PairLiquidityProviderCount = "pair__liquidityProviderCount", + PairReserve0 = "pair__reserve0", + PairReserve1 = "pair__reserve1", + PairReserveNativeCurrency = "pair__reserveNativeCurrency", + PairReserveUsd = "pair__reserveUSD", + PairSwapFee = "pair__swapFee", + PairToken0Price = "pair__token0Price", + PairToken1Price = "pair__token1Price", + PairTotalSupply = "pair__totalSupply", + PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", + PairTxCount = "pair__txCount", + PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", + PairVolumeToken0 = "pair__volumeToken0", + PairVolumeToken1 = "pair__volumeToken1", + PairVolumeUsd = "pair__volumeUSD", + Sender = "sender", + Timestamp = "timestamp", + To = "to", + Transaction = "transaction", + TransactionBlockNumber = "transaction__blockNumber", + TransactionId = "transaction__id", + TransactionTimestamp = "transaction__timestamp" +} +export type SwaprDayData = { + __typename?: 'SwaprDayData'; + dailyBurns: Scalars['BigInt']; + dailyMints: Scalars['BigInt']; + dailySwaps: Scalars['BigInt']; + dailyVolumeNativeCurrency: Scalars['BigDecimal']; + dailyVolumeUSD: Scalars['BigDecimal']; + dailyVolumeUntracked: Scalars['BigDecimal']; + date: Scalars['Int']; + id: Scalars['ID']; + totalLiquidityNativeCurrency: Scalars['BigDecimal']; + totalLiquidityUSD: Scalars['BigDecimal']; + totalVolumeNativeCurrency: Scalars['BigDecimal']; + totalVolumeUSD: Scalars['BigDecimal']; + txCount: Scalars['BigInt']; +}; +export type SwaprDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyBurns?: InputMaybe; + dailyBurns_gt?: InputMaybe; + dailyBurns_gte?: InputMaybe; + dailyBurns_in?: InputMaybe>; + dailyBurns_lt?: InputMaybe; + dailyBurns_lte?: InputMaybe; + dailyBurns_not?: InputMaybe; + dailyBurns_not_in?: InputMaybe>; + dailyMints?: InputMaybe; + dailyMints_gt?: InputMaybe; + dailyMints_gte?: InputMaybe; + dailyMints_in?: InputMaybe>; + dailyMints_lt?: InputMaybe; + dailyMints_lte?: InputMaybe; + dailyMints_not?: InputMaybe; + dailyMints_not_in?: InputMaybe>; + dailySwaps?: InputMaybe; + dailySwaps_gt?: InputMaybe; + dailySwaps_gte?: InputMaybe; + dailySwaps_in?: InputMaybe>; + dailySwaps_lt?: InputMaybe; + dailySwaps_lte?: InputMaybe; + dailySwaps_not?: InputMaybe; + dailySwaps_not_in?: InputMaybe>; + dailyVolumeNativeCurrency?: InputMaybe; + dailyVolumeNativeCurrency_gt?: InputMaybe; + dailyVolumeNativeCurrency_gte?: InputMaybe; + dailyVolumeNativeCurrency_in?: InputMaybe>; + dailyVolumeNativeCurrency_lt?: InputMaybe; + dailyVolumeNativeCurrency_lte?: InputMaybe; + dailyVolumeNativeCurrency_not?: InputMaybe; + dailyVolumeNativeCurrency_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + dailyVolumeUntracked?: InputMaybe; + dailyVolumeUntracked_gt?: InputMaybe; + dailyVolumeUntracked_gte?: InputMaybe; + dailyVolumeUntracked_in?: InputMaybe>; + dailyVolumeUntracked_lt?: InputMaybe; + dailyVolumeUntracked_lte?: InputMaybe; + dailyVolumeUntracked_not?: InputMaybe; + dailyVolumeUntracked_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + totalLiquidityNativeCurrency?: InputMaybe; + totalLiquidityNativeCurrency_gt?: InputMaybe; + totalLiquidityNativeCurrency_gte?: InputMaybe; + totalLiquidityNativeCurrency_in?: InputMaybe>; + totalLiquidityNativeCurrency_lt?: InputMaybe; + totalLiquidityNativeCurrency_lte?: InputMaybe; + totalLiquidityNativeCurrency_not?: InputMaybe; + totalLiquidityNativeCurrency_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeNativeCurrency?: InputMaybe; + totalVolumeNativeCurrency_gt?: InputMaybe; + totalVolumeNativeCurrency_gte?: InputMaybe; + totalVolumeNativeCurrency_in?: InputMaybe>; + totalVolumeNativeCurrency_lt?: InputMaybe; + totalVolumeNativeCurrency_lte?: InputMaybe; + totalVolumeNativeCurrency_not?: InputMaybe; + totalVolumeNativeCurrency_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; +export declare enum SwaprDayData_OrderBy { + DailyBurns = "dailyBurns", + DailyMints = "dailyMints", + DailySwaps = "dailySwaps", + DailyVolumeNativeCurrency = "dailyVolumeNativeCurrency", + DailyVolumeUsd = "dailyVolumeUSD", + DailyVolumeUntracked = "dailyVolumeUntracked", + Date = "date", + Id = "id", + TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", + TotalLiquidityUsd = "totalLiquidityUSD", + TotalVolumeNativeCurrency = "totalVolumeNativeCurrency", + TotalVolumeUsd = "totalVolumeUSD", + TxCount = "txCount" +} +export type SwaprFactory = { + __typename?: 'SwaprFactory'; + id: Scalars['ID']; + pairCount: Scalars['Int']; + totalLiquidityNativeCurrency: Scalars['BigDecimal']; + totalLiquidityUSD: Scalars['BigDecimal']; + totalVolumeNativeCurrency: Scalars['BigDecimal']; + totalVolumeUSD: Scalars['BigDecimal']; + txCount: Scalars['BigInt']; + untrackedVolumeUSD: Scalars['BigDecimal']; +}; +export type SwaprFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairCount?: InputMaybe; + pairCount_gt?: InputMaybe; + pairCount_gte?: InputMaybe; + pairCount_in?: InputMaybe>; + pairCount_lt?: InputMaybe; + pairCount_lte?: InputMaybe; + pairCount_not?: InputMaybe; + pairCount_not_in?: InputMaybe>; + totalLiquidityNativeCurrency?: InputMaybe; + totalLiquidityNativeCurrency_gt?: InputMaybe; + totalLiquidityNativeCurrency_gte?: InputMaybe; + totalLiquidityNativeCurrency_in?: InputMaybe>; + totalLiquidityNativeCurrency_lt?: InputMaybe; + totalLiquidityNativeCurrency_lte?: InputMaybe; + totalLiquidityNativeCurrency_not?: InputMaybe; + totalLiquidityNativeCurrency_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeNativeCurrency?: InputMaybe; + totalVolumeNativeCurrency_gt?: InputMaybe; + totalVolumeNativeCurrency_gte?: InputMaybe; + totalVolumeNativeCurrency_in?: InputMaybe>; + totalVolumeNativeCurrency_lt?: InputMaybe; + totalVolumeNativeCurrency_lte?: InputMaybe; + totalVolumeNativeCurrency_not?: InputMaybe; + totalVolumeNativeCurrency_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; +export declare enum SwaprFactory_OrderBy { + Id = "id", + PairCount = "pairCount", + TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", + TotalLiquidityUsd = "totalLiquidityUSD", + TotalVolumeNativeCurrency = "totalVolumeNativeCurrency", + TotalVolumeUsd = "totalVolumeUSD", + TxCount = "txCount", + UntrackedVolumeUsd = "untrackedVolumeUSD" +} +export type SwaprStakingRewardsFactory = { + __typename?: 'SwaprStakingRewardsFactory'; + id: Scalars['ID']; + initializedCampaignsCount: Scalars['Int']; +}; +export type SwaprStakingRewardsFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + initializedCampaignsCount?: InputMaybe; + initializedCampaignsCount_gt?: InputMaybe; + initializedCampaignsCount_gte?: InputMaybe; + initializedCampaignsCount_in?: InputMaybe>; + initializedCampaignsCount_lt?: InputMaybe; + initializedCampaignsCount_lte?: InputMaybe; + initializedCampaignsCount_not?: InputMaybe; + initializedCampaignsCount_not_in?: InputMaybe>; + or?: InputMaybe>>; +}; +export declare enum SwaprStakingRewardsFactory_OrderBy { + Id = "id", + InitializedCampaignsCount = "initializedCampaignsCount" +} +export type Token = { + __typename?: 'Token'; + decimals: Scalars['BigInt']; + derivedNativeCurrency: Scalars['BigDecimal']; + id: Scalars['ID']; + name: Scalars['String']; + pairBase: Array; + pairDayDataBase: Array; + pairDayDataQuote: Array; + pairQuote: Array; + symbol: Scalars['String']; + tokenDayData: Array; + totalLiquidity: Scalars['BigDecimal']; + totalSupply: Scalars['BigInt']; + tradeVolume: Scalars['BigDecimal']; + tradeVolumeUSD: Scalars['BigDecimal']; + txCount: Scalars['BigInt']; + untrackedVolumeUSD: Scalars['BigDecimal']; + whitelistPairs: Array; +}; +export type TokenPairBaseArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenPairDayDataBaseArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenPairDayDataQuoteArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenPairQuoteArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenTokenDayDataArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenWhitelistPairsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TokenDayData = { + __typename?: 'TokenDayData'; + dailyTxns: Scalars['BigInt']; + dailyVolumeNativeCurrency: Scalars['BigDecimal']; + dailyVolumeToken: Scalars['BigDecimal']; + dailyVolumeUSD: Scalars['BigDecimal']; + date: Scalars['Int']; + id: Scalars['ID']; + priceUSD: Scalars['BigDecimal']; + token: Token; + totalLiquidityNativeCurrency: Scalars['BigDecimal']; + totalLiquidityToken: Scalars['BigDecimal']; + totalLiquidityUSD: Scalars['BigDecimal']; +}; +export type TokenDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeNativeCurrency?: InputMaybe; + dailyVolumeNativeCurrency_gt?: InputMaybe; + dailyVolumeNativeCurrency_gte?: InputMaybe; + dailyVolumeNativeCurrency_in?: InputMaybe>; + dailyVolumeNativeCurrency_lt?: InputMaybe; + dailyVolumeNativeCurrency_lte?: InputMaybe; + dailyVolumeNativeCurrency_not?: InputMaybe; + dailyVolumeNativeCurrency_not_in?: InputMaybe>; + dailyVolumeToken?: InputMaybe; + dailyVolumeToken_gt?: InputMaybe; + dailyVolumeToken_gte?: InputMaybe; + dailyVolumeToken_in?: InputMaybe>; + dailyVolumeToken_lt?: InputMaybe; + dailyVolumeToken_lte?: InputMaybe; + dailyVolumeToken_not?: InputMaybe; + dailyVolumeToken_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + priceUSD?: InputMaybe; + priceUSD_gt?: InputMaybe; + priceUSD_gte?: InputMaybe; + priceUSD_in?: InputMaybe>; + priceUSD_lt?: InputMaybe; + priceUSD_lte?: InputMaybe; + priceUSD_not?: InputMaybe; + priceUSD_not_in?: InputMaybe>; + token?: InputMaybe; + token_?: InputMaybe; + token_contains?: InputMaybe; + token_contains_nocase?: InputMaybe; + token_ends_with?: InputMaybe; + token_ends_with_nocase?: InputMaybe; + token_gt?: InputMaybe; + token_gte?: InputMaybe; + token_in?: InputMaybe>; + token_lt?: InputMaybe; + token_lte?: InputMaybe; + token_not?: InputMaybe; + token_not_contains?: InputMaybe; + token_not_contains_nocase?: InputMaybe; + token_not_ends_with?: InputMaybe; + token_not_ends_with_nocase?: InputMaybe; + token_not_in?: InputMaybe>; + token_not_starts_with?: InputMaybe; + token_not_starts_with_nocase?: InputMaybe; + token_starts_with?: InputMaybe; + token_starts_with_nocase?: InputMaybe; + totalLiquidityNativeCurrency?: InputMaybe; + totalLiquidityNativeCurrency_gt?: InputMaybe; + totalLiquidityNativeCurrency_gte?: InputMaybe; + totalLiquidityNativeCurrency_in?: InputMaybe>; + totalLiquidityNativeCurrency_lt?: InputMaybe; + totalLiquidityNativeCurrency_lte?: InputMaybe; + totalLiquidityNativeCurrency_not?: InputMaybe; + totalLiquidityNativeCurrency_not_in?: InputMaybe>; + totalLiquidityToken?: InputMaybe; + totalLiquidityToken_gt?: InputMaybe; + totalLiquidityToken_gte?: InputMaybe; + totalLiquidityToken_in?: InputMaybe>; + totalLiquidityToken_lt?: InputMaybe; + totalLiquidityToken_lte?: InputMaybe; + totalLiquidityToken_not?: InputMaybe; + totalLiquidityToken_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; +}; +export declare enum TokenDayData_OrderBy { + DailyTxns = "dailyTxns", + DailyVolumeNativeCurrency = "dailyVolumeNativeCurrency", + DailyVolumeToken = "dailyVolumeToken", + DailyVolumeUsd = "dailyVolumeUSD", + Date = "date", + Id = "id", + PriceUsd = "priceUSD", + Token = "token", + TokenDecimals = "token__decimals", + TokenDerivedNativeCurrency = "token__derivedNativeCurrency", + TokenId = "token__id", + TokenName = "token__name", + TokenSymbol = "token__symbol", + TokenTotalLiquidity = "token__totalLiquidity", + TokenTotalSupply = "token__totalSupply", + TokenTradeVolume = "token__tradeVolume", + TokenTradeVolumeUsd = "token__tradeVolumeUSD", + TokenTxCount = "token__txCount", + TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD", + TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", + TotalLiquidityToken = "totalLiquidityToken", + TotalLiquidityUsd = "totalLiquidityUSD" +} +export type Token_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + derivedNativeCurrency?: InputMaybe; + derivedNativeCurrency_gt?: InputMaybe; + derivedNativeCurrency_gte?: InputMaybe; + derivedNativeCurrency_in?: InputMaybe>; + derivedNativeCurrency_lt?: InputMaybe; + derivedNativeCurrency_lte?: InputMaybe; + derivedNativeCurrency_not?: InputMaybe; + derivedNativeCurrency_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + name?: InputMaybe; + name_contains?: InputMaybe; + name_contains_nocase?: InputMaybe; + name_ends_with?: InputMaybe; + name_ends_with_nocase?: InputMaybe; + name_gt?: InputMaybe; + name_gte?: InputMaybe; + name_in?: InputMaybe>; + name_lt?: InputMaybe; + name_lte?: InputMaybe; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_contains_nocase?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_ends_with_nocase?: InputMaybe; + name_not_in?: InputMaybe>; + name_not_starts_with?: InputMaybe; + name_not_starts_with_nocase?: InputMaybe; + name_starts_with?: InputMaybe; + name_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + pairBase_?: InputMaybe; + pairDayDataBase_?: InputMaybe; + pairDayDataQuote_?: InputMaybe; + pairQuote_?: InputMaybe; + symbol?: InputMaybe; + symbol_contains?: InputMaybe; + symbol_contains_nocase?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_ends_with_nocase?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_lt?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_not?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_contains_nocase?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_ends_with_nocase?: InputMaybe; + symbol_not_in?: InputMaybe>; + symbol_not_starts_with?: InputMaybe; + symbol_not_starts_with_nocase?: InputMaybe; + symbol_starts_with?: InputMaybe; + symbol_starts_with_nocase?: InputMaybe; + tokenDayData_?: InputMaybe; + totalLiquidity?: InputMaybe; + totalLiquidity_gt?: InputMaybe; + totalLiquidity_gte?: InputMaybe; + totalLiquidity_in?: InputMaybe>; + totalLiquidity_lt?: InputMaybe; + totalLiquidity_lte?: InputMaybe; + totalLiquidity_not?: InputMaybe; + totalLiquidity_not_in?: InputMaybe>; + totalSupply?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not?: InputMaybe; + totalSupply_not_in?: InputMaybe>; + tradeVolume?: InputMaybe; + tradeVolumeUSD?: InputMaybe; + tradeVolumeUSD_gt?: InputMaybe; + tradeVolumeUSD_gte?: InputMaybe; + tradeVolumeUSD_in?: InputMaybe>; + tradeVolumeUSD_lt?: InputMaybe; + tradeVolumeUSD_lte?: InputMaybe; + tradeVolumeUSD_not?: InputMaybe; + tradeVolumeUSD_not_in?: InputMaybe>; + tradeVolume_gt?: InputMaybe; + tradeVolume_gte?: InputMaybe; + tradeVolume_in?: InputMaybe>; + tradeVolume_lt?: InputMaybe; + tradeVolume_lte?: InputMaybe; + tradeVolume_not?: InputMaybe; + tradeVolume_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + whitelistPairs?: InputMaybe>; + whitelistPairs_?: InputMaybe; + whitelistPairs_contains?: InputMaybe>; + whitelistPairs_contains_nocase?: InputMaybe>; + whitelistPairs_not?: InputMaybe>; + whitelistPairs_not_contains?: InputMaybe>; + whitelistPairs_not_contains_nocase?: InputMaybe>; +}; +export declare enum Token_OrderBy { + Decimals = "decimals", + DerivedNativeCurrency = "derivedNativeCurrency", + Id = "id", + Name = "name", + PairBase = "pairBase", + PairDayDataBase = "pairDayDataBase", + PairDayDataQuote = "pairDayDataQuote", + PairQuote = "pairQuote", + Symbol = "symbol", + TokenDayData = "tokenDayData", + TotalLiquidity = "totalLiquidity", + TotalSupply = "totalSupply", + TradeVolume = "tradeVolume", + TradeVolumeUsd = "tradeVolumeUSD", + TxCount = "txCount", + UntrackedVolumeUsd = "untrackedVolumeUSD", + WhitelistPairs = "whitelistPairs" +} +export type Transaction = { + __typename?: 'Transaction'; + blockNumber: Scalars['BigInt']; + burns: Array; + id: Scalars['ID']; + mints: Array; + swaps: Array; + timestamp: Scalars['BigInt']; +}; +export type TransactionBurnsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TransactionMintsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type TransactionSwapsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type Transaction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + blockNumber?: InputMaybe; + blockNumber_gt?: InputMaybe; + blockNumber_gte?: InputMaybe; + blockNumber_in?: InputMaybe>; + blockNumber_lt?: InputMaybe; + blockNumber_lte?: InputMaybe; + blockNumber_not?: InputMaybe; + blockNumber_not_in?: InputMaybe>; + burns?: InputMaybe>; + burns_?: InputMaybe; + burns_contains?: InputMaybe>; + burns_contains_nocase?: InputMaybe>; + burns_not?: InputMaybe>; + burns_not_contains?: InputMaybe>; + burns_not_contains_nocase?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + mints?: InputMaybe>; + mints_?: InputMaybe; + mints_contains?: InputMaybe>; + mints_contains_nocase?: InputMaybe>; + mints_not?: InputMaybe>; + mints_not_contains?: InputMaybe>; + mints_not_contains_nocase?: InputMaybe>; + or?: InputMaybe>>; + swaps?: InputMaybe>; + swaps_?: InputMaybe; + swaps_contains?: InputMaybe>; + swaps_contains_nocase?: InputMaybe>; + swaps_not?: InputMaybe>; + swaps_not_contains?: InputMaybe>; + swaps_not_contains_nocase?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; +export declare enum Transaction_OrderBy { + BlockNumber = "blockNumber", + Burns = "burns", + Id = "id", + Mints = "mints", + Swaps = "swaps", + Timestamp = "timestamp" +} +export type User = { + __typename?: 'User'; + id: Scalars['ID']; + liquidityPositions?: Maybe>; + usdSwapped: Scalars['BigDecimal']; +}; +export type UserLiquidityPositionsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; +export type User_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityPositions_?: InputMaybe; + or?: InputMaybe>>; + usdSwapped?: InputMaybe; + usdSwapped_gt?: InputMaybe; + usdSwapped_gte?: InputMaybe; + usdSwapped_in?: InputMaybe>; + usdSwapped_lt?: InputMaybe; + usdSwapped_lte?: InputMaybe; + usdSwapped_not?: InputMaybe; + usdSwapped_not_in?: InputMaybe>; +}; +export declare enum User_OrderBy { + Id = "id", + LiquidityPositions = "liquidityPositions", + UsdSwapped = "usdSwapped" +} +export type WeeklyUniqueAddressInteraction = { + __typename?: 'WeeklyUniqueAddressInteraction'; + addresses: Array; + id: Scalars['ID']; + timestampEnd: Scalars['Int']; + timestampStart: Scalars['Int']; +}; +export type WeeklyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + addresses?: InputMaybe>; + addresses_contains?: InputMaybe>; + addresses_contains_nocase?: InputMaybe>; + addresses_not?: InputMaybe>; + addresses_not_contains?: InputMaybe>; + addresses_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + timestampEnd?: InputMaybe; + timestampEnd_gt?: InputMaybe; + timestampEnd_gte?: InputMaybe; + timestampEnd_in?: InputMaybe>; + timestampEnd_lt?: InputMaybe; + timestampEnd_lte?: InputMaybe; + timestampEnd_not?: InputMaybe; + timestampEnd_not_in?: InputMaybe>; + timestampStart?: InputMaybe; + timestampStart_gt?: InputMaybe; + timestampStart_gte?: InputMaybe; + timestampStart_in?: InputMaybe>; + timestampStart_lt?: InputMaybe; + timestampStart_lte?: InputMaybe; + timestampStart_not?: InputMaybe; + timestampStart_not_in?: InputMaybe>; +}; +export declare enum WeeklyUniqueAddressInteraction_OrderBy { + Addresses = "addresses", + Id = "id", + TimestampEnd = "timestampEnd", + TimestampStart = "timestampStart" +} +export type Withdrawal = { + __typename?: 'Withdrawal'; + amount: Scalars['BigDecimal']; + id: Scalars['ID']; + liquidityMiningCampaign: LiquidityMiningCampaign; + timestamp: Scalars['BigInt']; + user: Scalars['Bytes']; +}; +export type Withdrawal_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount_gt?: InputMaybe; + amount_gte?: InputMaybe; + amount_in?: InputMaybe>; + amount_lt?: InputMaybe; + amount_lte?: InputMaybe; + amount_not?: InputMaybe; + amount_not_in?: InputMaybe>; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + liquidityMiningCampaign?: InputMaybe; + liquidityMiningCampaign_?: InputMaybe; + liquidityMiningCampaign_contains?: InputMaybe; + liquidityMiningCampaign_contains_nocase?: InputMaybe; + liquidityMiningCampaign_ends_with?: InputMaybe; + liquidityMiningCampaign_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_gt?: InputMaybe; + liquidityMiningCampaign_gte?: InputMaybe; + liquidityMiningCampaign_in?: InputMaybe>; + liquidityMiningCampaign_lt?: InputMaybe; + liquidityMiningCampaign_lte?: InputMaybe; + liquidityMiningCampaign_not?: InputMaybe; + liquidityMiningCampaign_not_contains?: InputMaybe; + liquidityMiningCampaign_not_contains_nocase?: InputMaybe; + liquidityMiningCampaign_not_ends_with?: InputMaybe; + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; + liquidityMiningCampaign_not_in?: InputMaybe>; + liquidityMiningCampaign_not_starts_with?: InputMaybe; + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; + liquidityMiningCampaign_starts_with?: InputMaybe; + liquidityMiningCampaign_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; +}; +export declare enum Withdrawal_OrderBy { + Amount = "amount", + Id = "id", + LiquidityMiningCampaign = "liquidityMiningCampaign", + LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", + LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", + LiquidityMiningCampaignId = "liquidityMiningCampaign__id", + LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", + LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", + LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", + LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", + LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", + LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", + Timestamp = "timestamp", + User = "user" +} +export type _Block_ = { + __typename?: '_Block_'; + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']; + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe; +}; +/** The type for the top-level _meta field */ +export type _Meta_ = { + __typename?: '_Meta_'; + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_; + /** The deployment ID */ + deployment: Scalars['String']; + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean']; +}; +export declare enum _SubgraphErrorPolicy_ { + /** Data will be returned even if the subgraph has indexing errors */ + Allow = "allow", + /** If the subgraph has indexing errors, data will be omitted. The default. */ + Deny = "deny" +} +export type GetAllCommonPairsBetweenTokenAAndTokenBQueryVariables = Exact<{ + tokenA: Scalars['String']; + tokenB: Scalars['String']; +}>; +export type GetAllCommonPairsBetweenTokenAAndTokenBQuery = { + __typename?: 'Query'; + pairsWithTokenA: Array<{ + __typename?: 'Pair'; + id: string; + reserve0: any; + reserve1: any; + token0: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; + token1: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; + }>; + pairsWithTokenB: Array<{ + __typename?: 'Pair'; + id: string; + reserve0: any; + reserve1: any; + token0: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; + token1: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; + }>; +}; +export type PairDetailsFragment = { + __typename?: 'Pair'; + id: string; + reserve0: any; + reserve1: any; + token0: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; + token1: { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; + }; +}; +export type TokenDetailsFragment = { + __typename?: 'Token'; + id: string; + name: string; + symbol: string; + decimals: any; +}; +export declare const TokenDetailsFragmentDoc: import("graphql/language/ast").DocumentNode; +export declare const PairDetailsFragmentDoc: import("graphql/language/ast").DocumentNode; +export declare const GetAllCommonPairsBetweenTokenAAndTokenBDocument: import("graphql/language/ast").DocumentNode; +export type SdkFunctionWrapper = (action: (requestHeaders?: Record) => Promise, operationName: string, operationType?: string) => Promise; +export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { + GetAllCommonPairsBetweenTokenAAndTokenB(variables: GetAllCommonPairsBetweenTokenAAndTokenBQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise; +}; +export type Sdk = ReturnType; diff --git a/dist/generated/graphql/index.js b/dist/generated/graphql/index.js new file mode 100644 index 00000000..c545c0d0 --- /dev/null +++ b/dist/generated/graphql/index.js @@ -0,0 +1,812 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSdk = exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument = exports.PairDetailsFragmentDoc = exports.TokenDetailsFragmentDoc = exports._SubgraphErrorPolicy_ = exports.Withdrawal_OrderBy = exports.WeeklyUniqueAddressInteraction_OrderBy = exports.User_OrderBy = exports.Transaction_OrderBy = exports.Token_OrderBy = exports.TokenDayData_OrderBy = exports.SwaprStakingRewardsFactory_OrderBy = exports.SwaprFactory_OrderBy = exports.SwaprDayData_OrderBy = exports.Swap_OrderBy = exports.SingleSidedStakingCampaign_OrderBy = exports.SingleSidedStakingCampaignWithdrawal_OrderBy = exports.SingleSidedStakingCampaignReward_OrderBy = exports.SingleSidedStakingCampaignRecovery_OrderBy = exports.SingleSidedStakingCampaignPosition_OrderBy = exports.SingleSidedStakingCampaignDeposit_OrderBy = exports.SingleSidedStakingCampaignClaim_OrderBy = exports.Recovery_OrderBy = exports.Pair_OrderBy = exports.PairHourData_OrderBy = exports.PairDayData_OrderBy = exports.OrderDirection = exports.MonthlyUniqueAddressInteraction_OrderBy = exports.Mint_OrderBy = exports.LiquidityPosition_OrderBy = exports.LiquidityPositionSnapshot_OrderBy = exports.LiquidityMiningPosition_OrderBy = exports.LiquidityMiningPositionSnapshot_OrderBy = exports.LiquidityMiningCampaign_OrderBy = exports.LiquidityMiningCampaignReward_OrderBy = exports.Deposit_OrderBy = exports.DailyUniqueAddressInteraction_OrderBy = exports.Claim_OrderBy = exports.Burn_OrderBy = exports.Bundle_OrderBy = void 0; +const tslib_1 = require("tslib"); +const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag")); +var Bundle_OrderBy; +(function (Bundle_OrderBy) { + Bundle_OrderBy["Id"] = "id"; + Bundle_OrderBy["NativeCurrencyPrice"] = "nativeCurrencyPrice"; +})(Bundle_OrderBy = exports.Bundle_OrderBy || (exports.Bundle_OrderBy = {})); +var Burn_OrderBy; +(function (Burn_OrderBy) { + Burn_OrderBy["Amount0"] = "amount0"; + Burn_OrderBy["Amount1"] = "amount1"; + Burn_OrderBy["AmountUsd"] = "amountUSD"; + Burn_OrderBy["FeeLiquidity"] = "feeLiquidity"; + Burn_OrderBy["FeeTo"] = "feeTo"; + Burn_OrderBy["Id"] = "id"; + Burn_OrderBy["Liquidity"] = "liquidity"; + Burn_OrderBy["LogIndex"] = "logIndex"; + Burn_OrderBy["NeedsComplete"] = "needsComplete"; + Burn_OrderBy["Pair"] = "pair"; + Burn_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + Burn_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + Burn_OrderBy["PairId"] = "pair__id"; + Burn_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + Burn_OrderBy["PairReserve0"] = "pair__reserve0"; + Burn_OrderBy["PairReserve1"] = "pair__reserve1"; + Burn_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + Burn_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + Burn_OrderBy["PairSwapFee"] = "pair__swapFee"; + Burn_OrderBy["PairToken0Price"] = "pair__token0Price"; + Burn_OrderBy["PairToken1Price"] = "pair__token1Price"; + Burn_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + Burn_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + Burn_OrderBy["PairTxCount"] = "pair__txCount"; + Burn_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + Burn_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + Burn_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + Burn_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + Burn_OrderBy["Sender"] = "sender"; + Burn_OrderBy["Timestamp"] = "timestamp"; + Burn_OrderBy["To"] = "to"; + Burn_OrderBy["Transaction"] = "transaction"; + Burn_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; + Burn_OrderBy["TransactionId"] = "transaction__id"; + Burn_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; +})(Burn_OrderBy = exports.Burn_OrderBy || (exports.Burn_OrderBy = {})); +var Claim_OrderBy; +(function (Claim_OrderBy) { + Claim_OrderBy["Amounts"] = "amounts"; + Claim_OrderBy["Id"] = "id"; + Claim_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + Claim_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + Claim_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + Claim_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + Claim_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + Claim_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + Claim_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + Claim_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + Claim_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + Claim_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + Claim_OrderBy["Timestamp"] = "timestamp"; + Claim_OrderBy["User"] = "user"; +})(Claim_OrderBy = exports.Claim_OrderBy || (exports.Claim_OrderBy = {})); +var DailyUniqueAddressInteraction_OrderBy; +(function (DailyUniqueAddressInteraction_OrderBy) { + DailyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; + DailyUniqueAddressInteraction_OrderBy["Id"] = "id"; + DailyUniqueAddressInteraction_OrderBy["Timestamp"] = "timestamp"; +})(DailyUniqueAddressInteraction_OrderBy = exports.DailyUniqueAddressInteraction_OrderBy || (exports.DailyUniqueAddressInteraction_OrderBy = {})); +var Deposit_OrderBy; +(function (Deposit_OrderBy) { + Deposit_OrderBy["Amount"] = "amount"; + Deposit_OrderBy["Id"] = "id"; + Deposit_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + Deposit_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + Deposit_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + Deposit_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + Deposit_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + Deposit_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + Deposit_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + Deposit_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + Deposit_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + Deposit_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + Deposit_OrderBy["Timestamp"] = "timestamp"; + Deposit_OrderBy["User"] = "user"; +})(Deposit_OrderBy = exports.Deposit_OrderBy || (exports.Deposit_OrderBy = {})); +var LiquidityMiningCampaignReward_OrderBy; +(function (LiquidityMiningCampaignReward_OrderBy) { + LiquidityMiningCampaignReward_OrderBy["Amount"] = "amount"; + LiquidityMiningCampaignReward_OrderBy["Id"] = "id"; + LiquidityMiningCampaignReward_OrderBy["Token"] = "token"; + LiquidityMiningCampaignReward_OrderBy["TokenDecimals"] = "token__decimals"; + LiquidityMiningCampaignReward_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; + LiquidityMiningCampaignReward_OrderBy["TokenId"] = "token__id"; + LiquidityMiningCampaignReward_OrderBy["TokenName"] = "token__name"; + LiquidityMiningCampaignReward_OrderBy["TokenSymbol"] = "token__symbol"; + LiquidityMiningCampaignReward_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; + LiquidityMiningCampaignReward_OrderBy["TokenTotalSupply"] = "token__totalSupply"; + LiquidityMiningCampaignReward_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; + LiquidityMiningCampaignReward_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; + LiquidityMiningCampaignReward_OrderBy["TokenTxCount"] = "token__txCount"; + LiquidityMiningCampaignReward_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; +})(LiquidityMiningCampaignReward_OrderBy = exports.LiquidityMiningCampaignReward_OrderBy || (exports.LiquidityMiningCampaignReward_OrderBy = {})); +var LiquidityMiningCampaign_OrderBy; +(function (LiquidityMiningCampaign_OrderBy) { + LiquidityMiningCampaign_OrderBy["Claims"] = "claims"; + LiquidityMiningCampaign_OrderBy["Deposits"] = "deposits"; + LiquidityMiningCampaign_OrderBy["Duration"] = "duration"; + LiquidityMiningCampaign_OrderBy["EndsAt"] = "endsAt"; + LiquidityMiningCampaign_OrderBy["Id"] = "id"; + LiquidityMiningCampaign_OrderBy["Initialized"] = "initialized"; + LiquidityMiningCampaign_OrderBy["LiquidityMiningPositionSnapshots"] = "liquidityMiningPositionSnapshots"; + LiquidityMiningCampaign_OrderBy["LiquidityMiningPositions"] = "liquidityMiningPositions"; + LiquidityMiningCampaign_OrderBy["Locked"] = "locked"; + LiquidityMiningCampaign_OrderBy["Owner"] = "owner"; + LiquidityMiningCampaign_OrderBy["Recoveries"] = "recoveries"; + LiquidityMiningCampaign_OrderBy["Rewards"] = "rewards"; + LiquidityMiningCampaign_OrderBy["StakablePair"] = "stakablePair"; + LiquidityMiningCampaign_OrderBy["StakablePairCreatedAtBlockNumber"] = "stakablePair__createdAtBlockNumber"; + LiquidityMiningCampaign_OrderBy["StakablePairCreatedAtTimestamp"] = "stakablePair__createdAtTimestamp"; + LiquidityMiningCampaign_OrderBy["StakablePairId"] = "stakablePair__id"; + LiquidityMiningCampaign_OrderBy["StakablePairLiquidityProviderCount"] = "stakablePair__liquidityProviderCount"; + LiquidityMiningCampaign_OrderBy["StakablePairReserve0"] = "stakablePair__reserve0"; + LiquidityMiningCampaign_OrderBy["StakablePairReserve1"] = "stakablePair__reserve1"; + LiquidityMiningCampaign_OrderBy["StakablePairReserveNativeCurrency"] = "stakablePair__reserveNativeCurrency"; + LiquidityMiningCampaign_OrderBy["StakablePairReserveUsd"] = "stakablePair__reserveUSD"; + LiquidityMiningCampaign_OrderBy["StakablePairSwapFee"] = "stakablePair__swapFee"; + LiquidityMiningCampaign_OrderBy["StakablePairToken0Price"] = "stakablePair__token0Price"; + LiquidityMiningCampaign_OrderBy["StakablePairToken1Price"] = "stakablePair__token1Price"; + LiquidityMiningCampaign_OrderBy["StakablePairTotalSupply"] = "stakablePair__totalSupply"; + LiquidityMiningCampaign_OrderBy["StakablePairTrackedReserveNativeCurrency"] = "stakablePair__trackedReserveNativeCurrency"; + LiquidityMiningCampaign_OrderBy["StakablePairTxCount"] = "stakablePair__txCount"; + LiquidityMiningCampaign_OrderBy["StakablePairUntrackedVolumeUsd"] = "stakablePair__untrackedVolumeUSD"; + LiquidityMiningCampaign_OrderBy["StakablePairVolumeToken0"] = "stakablePair__volumeToken0"; + LiquidityMiningCampaign_OrderBy["StakablePairVolumeToken1"] = "stakablePair__volumeToken1"; + LiquidityMiningCampaign_OrderBy["StakablePairVolumeUsd"] = "stakablePair__volumeUSD"; + LiquidityMiningCampaign_OrderBy["StakedAmount"] = "stakedAmount"; + LiquidityMiningCampaign_OrderBy["StakingCap"] = "stakingCap"; + LiquidityMiningCampaign_OrderBy["StartsAt"] = "startsAt"; + LiquidityMiningCampaign_OrderBy["Withdrawals"] = "withdrawals"; +})(LiquidityMiningCampaign_OrderBy = exports.LiquidityMiningCampaign_OrderBy || (exports.LiquidityMiningCampaign_OrderBy = {})); +var LiquidityMiningPositionSnapshot_OrderBy; +(function (LiquidityMiningPositionSnapshot_OrderBy) { + LiquidityMiningPositionSnapshot_OrderBy["Block"] = "block"; + LiquidityMiningPositionSnapshot_OrderBy["Id"] = "id"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPosition"] = "liquidityMiningPosition"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPositionId"] = "liquidityMiningPosition__id"; + LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPositionStakedAmount"] = "liquidityMiningPosition__stakedAmount"; + LiquidityMiningPositionSnapshot_OrderBy["Pair"] = "pair"; + LiquidityMiningPositionSnapshot_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + LiquidityMiningPositionSnapshot_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + LiquidityMiningPositionSnapshot_OrderBy["PairId"] = "pair__id"; + LiquidityMiningPositionSnapshot_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + LiquidityMiningPositionSnapshot_OrderBy["PairReserve0"] = "pair__reserve0"; + LiquidityMiningPositionSnapshot_OrderBy["PairReserve1"] = "pair__reserve1"; + LiquidityMiningPositionSnapshot_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + LiquidityMiningPositionSnapshot_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + LiquidityMiningPositionSnapshot_OrderBy["PairSwapFee"] = "pair__swapFee"; + LiquidityMiningPositionSnapshot_OrderBy["PairToken0Price"] = "pair__token0Price"; + LiquidityMiningPositionSnapshot_OrderBy["PairToken1Price"] = "pair__token1Price"; + LiquidityMiningPositionSnapshot_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + LiquidityMiningPositionSnapshot_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + LiquidityMiningPositionSnapshot_OrderBy["PairTxCount"] = "pair__txCount"; + LiquidityMiningPositionSnapshot_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + LiquidityMiningPositionSnapshot_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + LiquidityMiningPositionSnapshot_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + LiquidityMiningPositionSnapshot_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + LiquidityMiningPositionSnapshot_OrderBy["Reserve0"] = "reserve0"; + LiquidityMiningPositionSnapshot_OrderBy["Reserve1"] = "reserve1"; + LiquidityMiningPositionSnapshot_OrderBy["ReserveUsd"] = "reserveUSD"; + LiquidityMiningPositionSnapshot_OrderBy["StakedLiquidityTokenBalance"] = "stakedLiquidityTokenBalance"; + LiquidityMiningPositionSnapshot_OrderBy["Timestamp"] = "timestamp"; + LiquidityMiningPositionSnapshot_OrderBy["Token0PriceUsd"] = "token0PriceUSD"; + LiquidityMiningPositionSnapshot_OrderBy["Token1PriceUsd"] = "token1PriceUSD"; + LiquidityMiningPositionSnapshot_OrderBy["TotalStakedLiquidityToken"] = "totalStakedLiquidityToken"; + LiquidityMiningPositionSnapshot_OrderBy["User"] = "user"; + LiquidityMiningPositionSnapshot_OrderBy["UserId"] = "user__id"; + LiquidityMiningPositionSnapshot_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; +})(LiquidityMiningPositionSnapshot_OrderBy = exports.LiquidityMiningPositionSnapshot_OrderBy || (exports.LiquidityMiningPositionSnapshot_OrderBy = {})); +var LiquidityMiningPosition_OrderBy; +(function (LiquidityMiningPosition_OrderBy) { + LiquidityMiningPosition_OrderBy["Id"] = "id"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + LiquidityMiningPosition_OrderBy["StakedAmount"] = "stakedAmount"; + LiquidityMiningPosition_OrderBy["TargetedPair"] = "targetedPair"; + LiquidityMiningPosition_OrderBy["TargetedPairCreatedAtBlockNumber"] = "targetedPair__createdAtBlockNumber"; + LiquidityMiningPosition_OrderBy["TargetedPairCreatedAtTimestamp"] = "targetedPair__createdAtTimestamp"; + LiquidityMiningPosition_OrderBy["TargetedPairId"] = "targetedPair__id"; + LiquidityMiningPosition_OrderBy["TargetedPairLiquidityProviderCount"] = "targetedPair__liquidityProviderCount"; + LiquidityMiningPosition_OrderBy["TargetedPairReserve0"] = "targetedPair__reserve0"; + LiquidityMiningPosition_OrderBy["TargetedPairReserve1"] = "targetedPair__reserve1"; + LiquidityMiningPosition_OrderBy["TargetedPairReserveNativeCurrency"] = "targetedPair__reserveNativeCurrency"; + LiquidityMiningPosition_OrderBy["TargetedPairReserveUsd"] = "targetedPair__reserveUSD"; + LiquidityMiningPosition_OrderBy["TargetedPairSwapFee"] = "targetedPair__swapFee"; + LiquidityMiningPosition_OrderBy["TargetedPairToken0Price"] = "targetedPair__token0Price"; + LiquidityMiningPosition_OrderBy["TargetedPairToken1Price"] = "targetedPair__token1Price"; + LiquidityMiningPosition_OrderBy["TargetedPairTotalSupply"] = "targetedPair__totalSupply"; + LiquidityMiningPosition_OrderBy["TargetedPairTrackedReserveNativeCurrency"] = "targetedPair__trackedReserveNativeCurrency"; + LiquidityMiningPosition_OrderBy["TargetedPairTxCount"] = "targetedPair__txCount"; + LiquidityMiningPosition_OrderBy["TargetedPairUntrackedVolumeUsd"] = "targetedPair__untrackedVolumeUSD"; + LiquidityMiningPosition_OrderBy["TargetedPairVolumeToken0"] = "targetedPair__volumeToken0"; + LiquidityMiningPosition_OrderBy["TargetedPairVolumeToken1"] = "targetedPair__volumeToken1"; + LiquidityMiningPosition_OrderBy["TargetedPairVolumeUsd"] = "targetedPair__volumeUSD"; + LiquidityMiningPosition_OrderBy["User"] = "user"; + LiquidityMiningPosition_OrderBy["UserId"] = "user__id"; + LiquidityMiningPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; +})(LiquidityMiningPosition_OrderBy = exports.LiquidityMiningPosition_OrderBy || (exports.LiquidityMiningPosition_OrderBy = {})); +var LiquidityPositionSnapshot_OrderBy; +(function (LiquidityPositionSnapshot_OrderBy) { + LiquidityPositionSnapshot_OrderBy["Block"] = "block"; + LiquidityPositionSnapshot_OrderBy["Id"] = "id"; + LiquidityPositionSnapshot_OrderBy["LiquidityPosition"] = "liquidityPosition"; + LiquidityPositionSnapshot_OrderBy["LiquidityPositionId"] = "liquidityPosition__id"; + LiquidityPositionSnapshot_OrderBy["LiquidityPositionLiquidityTokenBalance"] = "liquidityPosition__liquidityTokenBalance"; + LiquidityPositionSnapshot_OrderBy["LiquidityTokenBalance"] = "liquidityTokenBalance"; + LiquidityPositionSnapshot_OrderBy["LiquidityTokenTotalSupply"] = "liquidityTokenTotalSupply"; + LiquidityPositionSnapshot_OrderBy["Pair"] = "pair"; + LiquidityPositionSnapshot_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + LiquidityPositionSnapshot_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + LiquidityPositionSnapshot_OrderBy["PairId"] = "pair__id"; + LiquidityPositionSnapshot_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + LiquidityPositionSnapshot_OrderBy["PairReserve0"] = "pair__reserve0"; + LiquidityPositionSnapshot_OrderBy["PairReserve1"] = "pair__reserve1"; + LiquidityPositionSnapshot_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + LiquidityPositionSnapshot_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + LiquidityPositionSnapshot_OrderBy["PairSwapFee"] = "pair__swapFee"; + LiquidityPositionSnapshot_OrderBy["PairToken0Price"] = "pair__token0Price"; + LiquidityPositionSnapshot_OrderBy["PairToken1Price"] = "pair__token1Price"; + LiquidityPositionSnapshot_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + LiquidityPositionSnapshot_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + LiquidityPositionSnapshot_OrderBy["PairTxCount"] = "pair__txCount"; + LiquidityPositionSnapshot_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + LiquidityPositionSnapshot_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + LiquidityPositionSnapshot_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + LiquidityPositionSnapshot_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + LiquidityPositionSnapshot_OrderBy["Reserve0"] = "reserve0"; + LiquidityPositionSnapshot_OrderBy["Reserve1"] = "reserve1"; + LiquidityPositionSnapshot_OrderBy["ReserveUsd"] = "reserveUSD"; + LiquidityPositionSnapshot_OrderBy["Timestamp"] = "timestamp"; + LiquidityPositionSnapshot_OrderBy["Token0PriceUsd"] = "token0PriceUSD"; + LiquidityPositionSnapshot_OrderBy["Token1PriceUsd"] = "token1PriceUSD"; + LiquidityPositionSnapshot_OrderBy["User"] = "user"; + LiquidityPositionSnapshot_OrderBy["UserId"] = "user__id"; + LiquidityPositionSnapshot_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; +})(LiquidityPositionSnapshot_OrderBy = exports.LiquidityPositionSnapshot_OrderBy || (exports.LiquidityPositionSnapshot_OrderBy = {})); +var LiquidityPosition_OrderBy; +(function (LiquidityPosition_OrderBy) { + LiquidityPosition_OrderBy["Id"] = "id"; + LiquidityPosition_OrderBy["LiquidityTokenBalance"] = "liquidityTokenBalance"; + LiquidityPosition_OrderBy["Pair"] = "pair"; + LiquidityPosition_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + LiquidityPosition_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + LiquidityPosition_OrderBy["PairId"] = "pair__id"; + LiquidityPosition_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + LiquidityPosition_OrderBy["PairReserve0"] = "pair__reserve0"; + LiquidityPosition_OrderBy["PairReserve1"] = "pair__reserve1"; + LiquidityPosition_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + LiquidityPosition_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + LiquidityPosition_OrderBy["PairSwapFee"] = "pair__swapFee"; + LiquidityPosition_OrderBy["PairToken0Price"] = "pair__token0Price"; + LiquidityPosition_OrderBy["PairToken1Price"] = "pair__token1Price"; + LiquidityPosition_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + LiquidityPosition_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + LiquidityPosition_OrderBy["PairTxCount"] = "pair__txCount"; + LiquidityPosition_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + LiquidityPosition_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + LiquidityPosition_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + LiquidityPosition_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + LiquidityPosition_OrderBy["User"] = "user"; + LiquidityPosition_OrderBy["UserId"] = "user__id"; + LiquidityPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; +})(LiquidityPosition_OrderBy = exports.LiquidityPosition_OrderBy || (exports.LiquidityPosition_OrderBy = {})); +var Mint_OrderBy; +(function (Mint_OrderBy) { + Mint_OrderBy["Amount0"] = "amount0"; + Mint_OrderBy["Amount1"] = "amount1"; + Mint_OrderBy["AmountUsd"] = "amountUSD"; + Mint_OrderBy["FeeLiquidity"] = "feeLiquidity"; + Mint_OrderBy["FeeTo"] = "feeTo"; + Mint_OrderBy["Id"] = "id"; + Mint_OrderBy["Liquidity"] = "liquidity"; + Mint_OrderBy["LogIndex"] = "logIndex"; + Mint_OrderBy["Pair"] = "pair"; + Mint_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + Mint_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + Mint_OrderBy["PairId"] = "pair__id"; + Mint_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + Mint_OrderBy["PairReserve0"] = "pair__reserve0"; + Mint_OrderBy["PairReserve1"] = "pair__reserve1"; + Mint_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + Mint_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + Mint_OrderBy["PairSwapFee"] = "pair__swapFee"; + Mint_OrderBy["PairToken0Price"] = "pair__token0Price"; + Mint_OrderBy["PairToken1Price"] = "pair__token1Price"; + Mint_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + Mint_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + Mint_OrderBy["PairTxCount"] = "pair__txCount"; + Mint_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + Mint_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + Mint_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + Mint_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + Mint_OrderBy["Sender"] = "sender"; + Mint_OrderBy["Timestamp"] = "timestamp"; + Mint_OrderBy["To"] = "to"; + Mint_OrderBy["Transaction"] = "transaction"; + Mint_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; + Mint_OrderBy["TransactionId"] = "transaction__id"; + Mint_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; +})(Mint_OrderBy = exports.Mint_OrderBy || (exports.Mint_OrderBy = {})); +var MonthlyUniqueAddressInteraction_OrderBy; +(function (MonthlyUniqueAddressInteraction_OrderBy) { + MonthlyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; + MonthlyUniqueAddressInteraction_OrderBy["Id"] = "id"; + MonthlyUniqueAddressInteraction_OrderBy["Timestamp"] = "timestamp"; +})(MonthlyUniqueAddressInteraction_OrderBy = exports.MonthlyUniqueAddressInteraction_OrderBy || (exports.MonthlyUniqueAddressInteraction_OrderBy = {})); +/** Defines the order direction, either ascending or descending */ +var OrderDirection; +(function (OrderDirection) { + OrderDirection["Asc"] = "asc"; + OrderDirection["Desc"] = "desc"; +})(OrderDirection = exports.OrderDirection || (exports.OrderDirection = {})); +var PairDayData_OrderBy; +(function (PairDayData_OrderBy) { + PairDayData_OrderBy["DailyTxns"] = "dailyTxns"; + PairDayData_OrderBy["DailyVolumeToken0"] = "dailyVolumeToken0"; + PairDayData_OrderBy["DailyVolumeToken1"] = "dailyVolumeToken1"; + PairDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; + PairDayData_OrderBy["Date"] = "date"; + PairDayData_OrderBy["Id"] = "id"; + PairDayData_OrderBy["PairAddress"] = "pairAddress"; + PairDayData_OrderBy["Reserve0"] = "reserve0"; + PairDayData_OrderBy["Reserve1"] = "reserve1"; + PairDayData_OrderBy["ReserveUsd"] = "reserveUSD"; + PairDayData_OrderBy["Token0"] = "token0"; + PairDayData_OrderBy["Token0Decimals"] = "token0__decimals"; + PairDayData_OrderBy["Token0DerivedNativeCurrency"] = "token0__derivedNativeCurrency"; + PairDayData_OrderBy["Token0Id"] = "token0__id"; + PairDayData_OrderBy["Token0Name"] = "token0__name"; + PairDayData_OrderBy["Token0Symbol"] = "token0__symbol"; + PairDayData_OrderBy["Token0TotalLiquidity"] = "token0__totalLiquidity"; + PairDayData_OrderBy["Token0TotalSupply"] = "token0__totalSupply"; + PairDayData_OrderBy["Token0TradeVolume"] = "token0__tradeVolume"; + PairDayData_OrderBy["Token0TradeVolumeUsd"] = "token0__tradeVolumeUSD"; + PairDayData_OrderBy["Token0TxCount"] = "token0__txCount"; + PairDayData_OrderBy["Token0UntrackedVolumeUsd"] = "token0__untrackedVolumeUSD"; + PairDayData_OrderBy["Token1"] = "token1"; + PairDayData_OrderBy["Token1Decimals"] = "token1__decimals"; + PairDayData_OrderBy["Token1DerivedNativeCurrency"] = "token1__derivedNativeCurrency"; + PairDayData_OrderBy["Token1Id"] = "token1__id"; + PairDayData_OrderBy["Token1Name"] = "token1__name"; + PairDayData_OrderBy["Token1Symbol"] = "token1__symbol"; + PairDayData_OrderBy["Token1TotalLiquidity"] = "token1__totalLiquidity"; + PairDayData_OrderBy["Token1TotalSupply"] = "token1__totalSupply"; + PairDayData_OrderBy["Token1TradeVolume"] = "token1__tradeVolume"; + PairDayData_OrderBy["Token1TradeVolumeUsd"] = "token1__tradeVolumeUSD"; + PairDayData_OrderBy["Token1TxCount"] = "token1__txCount"; + PairDayData_OrderBy["Token1UntrackedVolumeUsd"] = "token1__untrackedVolumeUSD"; + PairDayData_OrderBy["TotalSupply"] = "totalSupply"; +})(PairDayData_OrderBy = exports.PairDayData_OrderBy || (exports.PairDayData_OrderBy = {})); +var PairHourData_OrderBy; +(function (PairHourData_OrderBy) { + PairHourData_OrderBy["HourStartUnix"] = "hourStartUnix"; + PairHourData_OrderBy["HourlyTxns"] = "hourlyTxns"; + PairHourData_OrderBy["HourlyVolumeToken0"] = "hourlyVolumeToken0"; + PairHourData_OrderBy["HourlyVolumeToken1"] = "hourlyVolumeToken1"; + PairHourData_OrderBy["HourlyVolumeUsd"] = "hourlyVolumeUSD"; + PairHourData_OrderBy["Id"] = "id"; + PairHourData_OrderBy["Pair"] = "pair"; + PairHourData_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + PairHourData_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + PairHourData_OrderBy["PairId"] = "pair__id"; + PairHourData_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + PairHourData_OrderBy["PairReserve0"] = "pair__reserve0"; + PairHourData_OrderBy["PairReserve1"] = "pair__reserve1"; + PairHourData_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + PairHourData_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + PairHourData_OrderBy["PairSwapFee"] = "pair__swapFee"; + PairHourData_OrderBy["PairToken0Price"] = "pair__token0Price"; + PairHourData_OrderBy["PairToken1Price"] = "pair__token1Price"; + PairHourData_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + PairHourData_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + PairHourData_OrderBy["PairTxCount"] = "pair__txCount"; + PairHourData_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + PairHourData_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + PairHourData_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + PairHourData_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + PairHourData_OrderBy["Reserve0"] = "reserve0"; + PairHourData_OrderBy["Reserve1"] = "reserve1"; + PairHourData_OrderBy["ReserveUsd"] = "reserveUSD"; +})(PairHourData_OrderBy = exports.PairHourData_OrderBy || (exports.PairHourData_OrderBy = {})); +var Pair_OrderBy; +(function (Pair_OrderBy) { + Pair_OrderBy["Burns"] = "burns"; + Pair_OrderBy["CreatedAtBlockNumber"] = "createdAtBlockNumber"; + Pair_OrderBy["CreatedAtTimestamp"] = "createdAtTimestamp"; + Pair_OrderBy["Id"] = "id"; + Pair_OrderBy["LiquidityMiningCampaigns"] = "liquidityMiningCampaigns"; + Pair_OrderBy["LiquidityPositionSnapshots"] = "liquidityPositionSnapshots"; + Pair_OrderBy["LiquidityPositions"] = "liquidityPositions"; + Pair_OrderBy["LiquidityProviderCount"] = "liquidityProviderCount"; + Pair_OrderBy["Mints"] = "mints"; + Pair_OrderBy["PairHourData"] = "pairHourData"; + Pair_OrderBy["Reserve0"] = "reserve0"; + Pair_OrderBy["Reserve1"] = "reserve1"; + Pair_OrderBy["ReserveNativeCurrency"] = "reserveNativeCurrency"; + Pair_OrderBy["ReserveUsd"] = "reserveUSD"; + Pair_OrderBy["SwapFee"] = "swapFee"; + Pair_OrderBy["Swaps"] = "swaps"; + Pair_OrderBy["Token0"] = "token0"; + Pair_OrderBy["Token0Price"] = "token0Price"; + Pair_OrderBy["Token0Decimals"] = "token0__decimals"; + Pair_OrderBy["Token0DerivedNativeCurrency"] = "token0__derivedNativeCurrency"; + Pair_OrderBy["Token0Id"] = "token0__id"; + Pair_OrderBy["Token0Name"] = "token0__name"; + Pair_OrderBy["Token0Symbol"] = "token0__symbol"; + Pair_OrderBy["Token0TotalLiquidity"] = "token0__totalLiquidity"; + Pair_OrderBy["Token0TotalSupply"] = "token0__totalSupply"; + Pair_OrderBy["Token0TradeVolume"] = "token0__tradeVolume"; + Pair_OrderBy["Token0TradeVolumeUsd"] = "token0__tradeVolumeUSD"; + Pair_OrderBy["Token0TxCount"] = "token0__txCount"; + Pair_OrderBy["Token0UntrackedVolumeUsd"] = "token0__untrackedVolumeUSD"; + Pair_OrderBy["Token1"] = "token1"; + Pair_OrderBy["Token1Price"] = "token1Price"; + Pair_OrderBy["Token1Decimals"] = "token1__decimals"; + Pair_OrderBy["Token1DerivedNativeCurrency"] = "token1__derivedNativeCurrency"; + Pair_OrderBy["Token1Id"] = "token1__id"; + Pair_OrderBy["Token1Name"] = "token1__name"; + Pair_OrderBy["Token1Symbol"] = "token1__symbol"; + Pair_OrderBy["Token1TotalLiquidity"] = "token1__totalLiquidity"; + Pair_OrderBy["Token1TotalSupply"] = "token1__totalSupply"; + Pair_OrderBy["Token1TradeVolume"] = "token1__tradeVolume"; + Pair_OrderBy["Token1TradeVolumeUsd"] = "token1__tradeVolumeUSD"; + Pair_OrderBy["Token1TxCount"] = "token1__txCount"; + Pair_OrderBy["Token1UntrackedVolumeUsd"] = "token1__untrackedVolumeUSD"; + Pair_OrderBy["TotalSupply"] = "totalSupply"; + Pair_OrderBy["TrackedReserveNativeCurrency"] = "trackedReserveNativeCurrency"; + Pair_OrderBy["TxCount"] = "txCount"; + Pair_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; + Pair_OrderBy["VolumeToken0"] = "volumeToken0"; + Pair_OrderBy["VolumeToken1"] = "volumeToken1"; + Pair_OrderBy["VolumeUsd"] = "volumeUSD"; +})(Pair_OrderBy = exports.Pair_OrderBy || (exports.Pair_OrderBy = {})); +var Recovery_OrderBy; +(function (Recovery_OrderBy) { + Recovery_OrderBy["Amounts"] = "amounts"; + Recovery_OrderBy["Id"] = "id"; + Recovery_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + Recovery_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + Recovery_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + Recovery_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + Recovery_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + Recovery_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + Recovery_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + Recovery_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + Recovery_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + Recovery_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + Recovery_OrderBy["Timestamp"] = "timestamp"; +})(Recovery_OrderBy = exports.Recovery_OrderBy || (exports.Recovery_OrderBy = {})); +var SingleSidedStakingCampaignClaim_OrderBy; +(function (SingleSidedStakingCampaignClaim_OrderBy) { + SingleSidedStakingCampaignClaim_OrderBy["Amounts"] = "amounts"; + SingleSidedStakingCampaignClaim_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; + SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; + SingleSidedStakingCampaignClaim_OrderBy["Timestamp"] = "timestamp"; + SingleSidedStakingCampaignClaim_OrderBy["User"] = "user"; +})(SingleSidedStakingCampaignClaim_OrderBy = exports.SingleSidedStakingCampaignClaim_OrderBy || (exports.SingleSidedStakingCampaignClaim_OrderBy = {})); +var SingleSidedStakingCampaignDeposit_OrderBy; +(function (SingleSidedStakingCampaignDeposit_OrderBy) { + SingleSidedStakingCampaignDeposit_OrderBy["Amount"] = "amount"; + SingleSidedStakingCampaignDeposit_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; + SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; + SingleSidedStakingCampaignDeposit_OrderBy["Timestamp"] = "timestamp"; + SingleSidedStakingCampaignDeposit_OrderBy["User"] = "user"; +})(SingleSidedStakingCampaignDeposit_OrderBy = exports.SingleSidedStakingCampaignDeposit_OrderBy || (exports.SingleSidedStakingCampaignDeposit_OrderBy = {})); +var SingleSidedStakingCampaignPosition_OrderBy; +(function (SingleSidedStakingCampaignPosition_OrderBy) { + SingleSidedStakingCampaignPosition_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; + SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; + SingleSidedStakingCampaignPosition_OrderBy["StakedAmount"] = "stakedAmount"; + SingleSidedStakingCampaignPosition_OrderBy["User"] = "user"; + SingleSidedStakingCampaignPosition_OrderBy["UserId"] = "user__id"; + SingleSidedStakingCampaignPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; +})(SingleSidedStakingCampaignPosition_OrderBy = exports.SingleSidedStakingCampaignPosition_OrderBy || (exports.SingleSidedStakingCampaignPosition_OrderBy = {})); +var SingleSidedStakingCampaignRecovery_OrderBy; +(function (SingleSidedStakingCampaignRecovery_OrderBy) { + SingleSidedStakingCampaignRecovery_OrderBy["Amounts"] = "amounts"; + SingleSidedStakingCampaignRecovery_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; + SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; + SingleSidedStakingCampaignRecovery_OrderBy["Timestamp"] = "timestamp"; +})(SingleSidedStakingCampaignRecovery_OrderBy = exports.SingleSidedStakingCampaignRecovery_OrderBy || (exports.SingleSidedStakingCampaignRecovery_OrderBy = {})); +var SingleSidedStakingCampaignReward_OrderBy; +(function (SingleSidedStakingCampaignReward_OrderBy) { + SingleSidedStakingCampaignReward_OrderBy["Amount"] = "amount"; + SingleSidedStakingCampaignReward_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignReward_OrderBy["Token"] = "token"; + SingleSidedStakingCampaignReward_OrderBy["TokenDecimals"] = "token__decimals"; + SingleSidedStakingCampaignReward_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; + SingleSidedStakingCampaignReward_OrderBy["TokenId"] = "token__id"; + SingleSidedStakingCampaignReward_OrderBy["TokenName"] = "token__name"; + SingleSidedStakingCampaignReward_OrderBy["TokenSymbol"] = "token__symbol"; + SingleSidedStakingCampaignReward_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; + SingleSidedStakingCampaignReward_OrderBy["TokenTotalSupply"] = "token__totalSupply"; + SingleSidedStakingCampaignReward_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; + SingleSidedStakingCampaignReward_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; + SingleSidedStakingCampaignReward_OrderBy["TokenTxCount"] = "token__txCount"; + SingleSidedStakingCampaignReward_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; +})(SingleSidedStakingCampaignReward_OrderBy = exports.SingleSidedStakingCampaignReward_OrderBy || (exports.SingleSidedStakingCampaignReward_OrderBy = {})); +var SingleSidedStakingCampaignWithdrawal_OrderBy; +(function (SingleSidedStakingCampaignWithdrawal_OrderBy) { + SingleSidedStakingCampaignWithdrawal_OrderBy["Amount"] = "amount"; + SingleSidedStakingCampaignWithdrawal_OrderBy["Id"] = "id"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; + SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; + SingleSidedStakingCampaignWithdrawal_OrderBy["Timestamp"] = "timestamp"; + SingleSidedStakingCampaignWithdrawal_OrderBy["User"] = "user"; +})(SingleSidedStakingCampaignWithdrawal_OrderBy = exports.SingleSidedStakingCampaignWithdrawal_OrderBy || (exports.SingleSidedStakingCampaignWithdrawal_OrderBy = {})); +var SingleSidedStakingCampaign_OrderBy; +(function (SingleSidedStakingCampaign_OrderBy) { + SingleSidedStakingCampaign_OrderBy["Claims"] = "claims"; + SingleSidedStakingCampaign_OrderBy["Deposits"] = "deposits"; + SingleSidedStakingCampaign_OrderBy["Duration"] = "duration"; + SingleSidedStakingCampaign_OrderBy["EndsAt"] = "endsAt"; + SingleSidedStakingCampaign_OrderBy["Id"] = "id"; + SingleSidedStakingCampaign_OrderBy["Initialized"] = "initialized"; + SingleSidedStakingCampaign_OrderBy["Locked"] = "locked"; + SingleSidedStakingCampaign_OrderBy["Owner"] = "owner"; + SingleSidedStakingCampaign_OrderBy["Recoveries"] = "recoveries"; + SingleSidedStakingCampaign_OrderBy["Rewards"] = "rewards"; + SingleSidedStakingCampaign_OrderBy["SingleSidedStakingPositions"] = "singleSidedStakingPositions"; + SingleSidedStakingCampaign_OrderBy["StakeToken"] = "stakeToken"; + SingleSidedStakingCampaign_OrderBy["StakeTokenDecimals"] = "stakeToken__decimals"; + SingleSidedStakingCampaign_OrderBy["StakeTokenDerivedNativeCurrency"] = "stakeToken__derivedNativeCurrency"; + SingleSidedStakingCampaign_OrderBy["StakeTokenId"] = "stakeToken__id"; + SingleSidedStakingCampaign_OrderBy["StakeTokenName"] = "stakeToken__name"; + SingleSidedStakingCampaign_OrderBy["StakeTokenSymbol"] = "stakeToken__symbol"; + SingleSidedStakingCampaign_OrderBy["StakeTokenTotalLiquidity"] = "stakeToken__totalLiquidity"; + SingleSidedStakingCampaign_OrderBy["StakeTokenTotalSupply"] = "stakeToken__totalSupply"; + SingleSidedStakingCampaign_OrderBy["StakeTokenTradeVolume"] = "stakeToken__tradeVolume"; + SingleSidedStakingCampaign_OrderBy["StakeTokenTradeVolumeUsd"] = "stakeToken__tradeVolumeUSD"; + SingleSidedStakingCampaign_OrderBy["StakeTokenTxCount"] = "stakeToken__txCount"; + SingleSidedStakingCampaign_OrderBy["StakeTokenUntrackedVolumeUsd"] = "stakeToken__untrackedVolumeUSD"; + SingleSidedStakingCampaign_OrderBy["StakedAmount"] = "stakedAmount"; + SingleSidedStakingCampaign_OrderBy["StakingCap"] = "stakingCap"; + SingleSidedStakingCampaign_OrderBy["StartsAt"] = "startsAt"; + SingleSidedStakingCampaign_OrderBy["Withdrawals"] = "withdrawals"; +})(SingleSidedStakingCampaign_OrderBy = exports.SingleSidedStakingCampaign_OrderBy || (exports.SingleSidedStakingCampaign_OrderBy = {})); +var Swap_OrderBy; +(function (Swap_OrderBy) { + Swap_OrderBy["Amount0In"] = "amount0In"; + Swap_OrderBy["Amount0Out"] = "amount0Out"; + Swap_OrderBy["Amount1In"] = "amount1In"; + Swap_OrderBy["Amount1Out"] = "amount1Out"; + Swap_OrderBy["AmountUsd"] = "amountUSD"; + Swap_OrderBy["From"] = "from"; + Swap_OrderBy["Id"] = "id"; + Swap_OrderBy["LogIndex"] = "logIndex"; + Swap_OrderBy["Pair"] = "pair"; + Swap_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; + Swap_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; + Swap_OrderBy["PairId"] = "pair__id"; + Swap_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; + Swap_OrderBy["PairReserve0"] = "pair__reserve0"; + Swap_OrderBy["PairReserve1"] = "pair__reserve1"; + Swap_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; + Swap_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; + Swap_OrderBy["PairSwapFee"] = "pair__swapFee"; + Swap_OrderBy["PairToken0Price"] = "pair__token0Price"; + Swap_OrderBy["PairToken1Price"] = "pair__token1Price"; + Swap_OrderBy["PairTotalSupply"] = "pair__totalSupply"; + Swap_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; + Swap_OrderBy["PairTxCount"] = "pair__txCount"; + Swap_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; + Swap_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; + Swap_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; + Swap_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; + Swap_OrderBy["Sender"] = "sender"; + Swap_OrderBy["Timestamp"] = "timestamp"; + Swap_OrderBy["To"] = "to"; + Swap_OrderBy["Transaction"] = "transaction"; + Swap_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; + Swap_OrderBy["TransactionId"] = "transaction__id"; + Swap_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; +})(Swap_OrderBy = exports.Swap_OrderBy || (exports.Swap_OrderBy = {})); +var SwaprDayData_OrderBy; +(function (SwaprDayData_OrderBy) { + SwaprDayData_OrderBy["DailyBurns"] = "dailyBurns"; + SwaprDayData_OrderBy["DailyMints"] = "dailyMints"; + SwaprDayData_OrderBy["DailySwaps"] = "dailySwaps"; + SwaprDayData_OrderBy["DailyVolumeNativeCurrency"] = "dailyVolumeNativeCurrency"; + SwaprDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; + SwaprDayData_OrderBy["DailyVolumeUntracked"] = "dailyVolumeUntracked"; + SwaprDayData_OrderBy["Date"] = "date"; + SwaprDayData_OrderBy["Id"] = "id"; + SwaprDayData_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; + SwaprDayData_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; + SwaprDayData_OrderBy["TotalVolumeNativeCurrency"] = "totalVolumeNativeCurrency"; + SwaprDayData_OrderBy["TotalVolumeUsd"] = "totalVolumeUSD"; + SwaprDayData_OrderBy["TxCount"] = "txCount"; +})(SwaprDayData_OrderBy = exports.SwaprDayData_OrderBy || (exports.SwaprDayData_OrderBy = {})); +var SwaprFactory_OrderBy; +(function (SwaprFactory_OrderBy) { + SwaprFactory_OrderBy["Id"] = "id"; + SwaprFactory_OrderBy["PairCount"] = "pairCount"; + SwaprFactory_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; + SwaprFactory_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; + SwaprFactory_OrderBy["TotalVolumeNativeCurrency"] = "totalVolumeNativeCurrency"; + SwaprFactory_OrderBy["TotalVolumeUsd"] = "totalVolumeUSD"; + SwaprFactory_OrderBy["TxCount"] = "txCount"; + SwaprFactory_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; +})(SwaprFactory_OrderBy = exports.SwaprFactory_OrderBy || (exports.SwaprFactory_OrderBy = {})); +var SwaprStakingRewardsFactory_OrderBy; +(function (SwaprStakingRewardsFactory_OrderBy) { + SwaprStakingRewardsFactory_OrderBy["Id"] = "id"; + SwaprStakingRewardsFactory_OrderBy["InitializedCampaignsCount"] = "initializedCampaignsCount"; +})(SwaprStakingRewardsFactory_OrderBy = exports.SwaprStakingRewardsFactory_OrderBy || (exports.SwaprStakingRewardsFactory_OrderBy = {})); +var TokenDayData_OrderBy; +(function (TokenDayData_OrderBy) { + TokenDayData_OrderBy["DailyTxns"] = "dailyTxns"; + TokenDayData_OrderBy["DailyVolumeNativeCurrency"] = "dailyVolumeNativeCurrency"; + TokenDayData_OrderBy["DailyVolumeToken"] = "dailyVolumeToken"; + TokenDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; + TokenDayData_OrderBy["Date"] = "date"; + TokenDayData_OrderBy["Id"] = "id"; + TokenDayData_OrderBy["PriceUsd"] = "priceUSD"; + TokenDayData_OrderBy["Token"] = "token"; + TokenDayData_OrderBy["TokenDecimals"] = "token__decimals"; + TokenDayData_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; + TokenDayData_OrderBy["TokenId"] = "token__id"; + TokenDayData_OrderBy["TokenName"] = "token__name"; + TokenDayData_OrderBy["TokenSymbol"] = "token__symbol"; + TokenDayData_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; + TokenDayData_OrderBy["TokenTotalSupply"] = "token__totalSupply"; + TokenDayData_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; + TokenDayData_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; + TokenDayData_OrderBy["TokenTxCount"] = "token__txCount"; + TokenDayData_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; + TokenDayData_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; + TokenDayData_OrderBy["TotalLiquidityToken"] = "totalLiquidityToken"; + TokenDayData_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; +})(TokenDayData_OrderBy = exports.TokenDayData_OrderBy || (exports.TokenDayData_OrderBy = {})); +var Token_OrderBy; +(function (Token_OrderBy) { + Token_OrderBy["Decimals"] = "decimals"; + Token_OrderBy["DerivedNativeCurrency"] = "derivedNativeCurrency"; + Token_OrderBy["Id"] = "id"; + Token_OrderBy["Name"] = "name"; + Token_OrderBy["PairBase"] = "pairBase"; + Token_OrderBy["PairDayDataBase"] = "pairDayDataBase"; + Token_OrderBy["PairDayDataQuote"] = "pairDayDataQuote"; + Token_OrderBy["PairQuote"] = "pairQuote"; + Token_OrderBy["Symbol"] = "symbol"; + Token_OrderBy["TokenDayData"] = "tokenDayData"; + Token_OrderBy["TotalLiquidity"] = "totalLiquidity"; + Token_OrderBy["TotalSupply"] = "totalSupply"; + Token_OrderBy["TradeVolume"] = "tradeVolume"; + Token_OrderBy["TradeVolumeUsd"] = "tradeVolumeUSD"; + Token_OrderBy["TxCount"] = "txCount"; + Token_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; + Token_OrderBy["WhitelistPairs"] = "whitelistPairs"; +})(Token_OrderBy = exports.Token_OrderBy || (exports.Token_OrderBy = {})); +var Transaction_OrderBy; +(function (Transaction_OrderBy) { + Transaction_OrderBy["BlockNumber"] = "blockNumber"; + Transaction_OrderBy["Burns"] = "burns"; + Transaction_OrderBy["Id"] = "id"; + Transaction_OrderBy["Mints"] = "mints"; + Transaction_OrderBy["Swaps"] = "swaps"; + Transaction_OrderBy["Timestamp"] = "timestamp"; +})(Transaction_OrderBy = exports.Transaction_OrderBy || (exports.Transaction_OrderBy = {})); +var User_OrderBy; +(function (User_OrderBy) { + User_OrderBy["Id"] = "id"; + User_OrderBy["LiquidityPositions"] = "liquidityPositions"; + User_OrderBy["UsdSwapped"] = "usdSwapped"; +})(User_OrderBy = exports.User_OrderBy || (exports.User_OrderBy = {})); +var WeeklyUniqueAddressInteraction_OrderBy; +(function (WeeklyUniqueAddressInteraction_OrderBy) { + WeeklyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; + WeeklyUniqueAddressInteraction_OrderBy["Id"] = "id"; + WeeklyUniqueAddressInteraction_OrderBy["TimestampEnd"] = "timestampEnd"; + WeeklyUniqueAddressInteraction_OrderBy["TimestampStart"] = "timestampStart"; +})(WeeklyUniqueAddressInteraction_OrderBy = exports.WeeklyUniqueAddressInteraction_OrderBy || (exports.WeeklyUniqueAddressInteraction_OrderBy = {})); +var Withdrawal_OrderBy; +(function (Withdrawal_OrderBy) { + Withdrawal_OrderBy["Amount"] = "amount"; + Withdrawal_OrderBy["Id"] = "id"; + Withdrawal_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; + Withdrawal_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; + Withdrawal_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; + Withdrawal_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; + Withdrawal_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; + Withdrawal_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; + Withdrawal_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; + Withdrawal_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; + Withdrawal_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; + Withdrawal_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; + Withdrawal_OrderBy["Timestamp"] = "timestamp"; + Withdrawal_OrderBy["User"] = "user"; +})(Withdrawal_OrderBy = exports.Withdrawal_OrderBy || (exports.Withdrawal_OrderBy = {})); +var _SubgraphErrorPolicy_; +(function (_SubgraphErrorPolicy_) { + /** Data will be returned even if the subgraph has indexing errors */ + _SubgraphErrorPolicy_["Allow"] = "allow"; + /** If the subgraph has indexing errors, data will be omitted. The default. */ + _SubgraphErrorPolicy_["Deny"] = "deny"; +})(_SubgraphErrorPolicy_ = exports._SubgraphErrorPolicy_ || (exports._SubgraphErrorPolicy_ = {})); +exports.TokenDetailsFragmentDoc = (0, graphql_tag_1.default) ` + fragment TokenDetails on Token { + id + name + symbol + decimals +} + `; +exports.PairDetailsFragmentDoc = (0, graphql_tag_1.default) ` + fragment PairDetails on Pair { + id + reserve0 + reserve1 + token0 { + ...TokenDetails + } + token1 { + ...TokenDetails + } +} + ${exports.TokenDetailsFragmentDoc}`; +exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument = (0, graphql_tag_1.default) ` + query GetAllCommonPairsBetweenTokenAAndTokenB($tokenA: String!, $tokenB: String!) { + pairsWithTokenA: pairs(where: {token0_in: [$tokenA, $tokenB]}) { + ...PairDetails + } + pairsWithTokenB: pairs(where: {token1_in: [$tokenB, $tokenA]}) { + ...PairDetails + } +} + ${exports.PairDetailsFragmentDoc}`; +const defaultWrapper = (action, _operationName, _operationType) => action(); +function getSdk(client, withWrapper = defaultWrapper) { + return { + GetAllCommonPairsBetweenTokenAAndTokenB(variables, requestHeaders) { + return withWrapper((wrappedRequestHeaders) => client.request(exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetAllCommonPairsBetweenTokenAAndTokenB', 'query'); + } + }; +} +exports.getSdk = getSdk; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/generated/graphql/index.js.map b/dist/generated/graphql/index.js.map new file mode 100644 index 00000000..2633799c --- /dev/null +++ b/dist/generated/graphql/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/graphql/index.ts"],"names":[],"mappings":";;;;AAEA,sEAA8B;AA0D9B,IAAY,cAGX;AAHD,WAAY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QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;MAYnC,+BAAuB,EAAE,CAAC;AACnB,QAAA,+CAA+C,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;MAS5D,8BAAsB,EAAE,CAAC;AAK/B,MAAM,cAAc,GAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;AAEhG,SAAgB,MAAM,CAAC,MAAqB,EAAE,cAAkC,cAAc;IAC5F,OAAO;QACL,uCAAuC,CAAC,SAAgE,EAAE,cAA2C;YACnJ,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAA+C,uDAA+C,EAAE,SAAS,kCAAM,cAAc,GAAK,qBAAqB,EAAE,EAAE,yCAAyC,EAAE,OAAO,CAAC,CAAC;QAC7Q,CAAC;KACF,CAAC;AACJ,CAAC;AAND,wBAMC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 00000000..2d7143dc --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,8 @@ +import JSBI from 'jsbi'; +export { JSBI }; +export * from './abis'; +export * from './constants'; +export * from './entities'; +export * from './errors'; +export * from './fetcher'; +export { parseBigintIsh } from './utils'; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 00000000..d531c362 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseBigintIsh = exports.JSBI = void 0; +const tslib_1 = require("tslib"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +exports.JSBI = jsbi_1.default; +tslib_1.__exportStar(require("./abis"), exports); +tslib_1.__exportStar(require("./constants"), exports); +tslib_1.__exportStar(require("./entities"), exports); +tslib_1.__exportStar(require("./errors"), exports); +tslib_1.__exportStar(require("./fetcher"), exports); +var utils_1 = require("./utils"); +Object.defineProperty(exports, "parseBigintIsh", { enumerable: true, get: function () { return utils_1.parseBigintIsh; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 00000000..ae3f0713 --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACd,eADF,cAAI,CACE;AAEb,iDAAsB;AACtB,sDAA2B;AAC3B,qDAA0B;AAC1B,mDAAwB;AACxB,oDAAyB;AACzB,iCAAwC;AAA/B,uGAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/dist/utils.d.ts b/dist/utils.d.ts new file mode 100644 index 00000000..6a5f88bb --- /dev/null +++ b/dist/utils.d.ts @@ -0,0 +1,13 @@ +import JSBI from 'jsbi'; +import { BigintIsh, SolidityType } from './constants'; +export declare function validateSolidityTypeInstance(value: JSBI, solidityType: SolidityType): void; +export declare function validateAndParseAddress(address: string): string; +export declare function parseBigintIsh(bigintIsh: BigintIsh): JSBI; +export declare function sqrt(y: JSBI): JSBI; +export declare function sortedInsert(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null; +/** + * Prints debug data to console. Requires setting `window.__SWAPR_SDK_DEBUG__` to `true` + * @param data + * @returns void + */ +export declare function debug(...data: any[]): void; diff --git a/dist/utils.js b/dist/utils.js new file mode 100644 index 00000000..40400d74 --- /dev/null +++ b/dist/utils.js @@ -0,0 +1,98 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.debug = exports.sortedInsert = exports.sqrt = exports.parseBigintIsh = exports.validateAndParseAddress = exports.validateSolidityTypeInstance = void 0; +const tslib_1 = require("tslib"); +const address_1 = require("@ethersproject/address"); +const jsbi_1 = tslib_1.__importDefault(require("jsbi")); +const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); +const constants_1 = require("./constants"); +function validateSolidityTypeInstance(value, solidityType) { + (0, tiny_invariant_1.default)(jsbi_1.default.greaterThanOrEqual(value, constants_1.ZERO), `${value} is not a ${solidityType}.`); + (0, tiny_invariant_1.default)(jsbi_1.default.lessThanOrEqual(value, constants_1.SOLIDITY_TYPE_MAXIMA[solidityType]), `${value} is not a ${solidityType}.`); +} +exports.validateSolidityTypeInstance = validateSolidityTypeInstance; +// warns if addresses are not checksummed +function validateAndParseAddress(address) { + try { + const checksummedAddress = (0, address_1.getAddress)(address); + return checksummedAddress; + } + catch (error) { + (0, tiny_invariant_1.default)(false, `${address} is not a valid address.`); + } +} +exports.validateAndParseAddress = validateAndParseAddress; +function parseBigintIsh(bigintIsh) { + return bigintIsh instanceof jsbi_1.default + ? bigintIsh + : typeof bigintIsh === 'bigint' + ? jsbi_1.default.BigInt(bigintIsh.toString()) + : jsbi_1.default.BigInt(bigintIsh); +} +exports.parseBigintIsh = parseBigintIsh; +// mock the on-chain sqrt function +function sqrt(y) { + validateSolidityTypeInstance(y, constants_1.SolidityType.uint256); + let z = constants_1.ZERO; + let x; + if (jsbi_1.default.greaterThan(y, constants_1.THREE)) { + z = y; + x = jsbi_1.default.add(jsbi_1.default.divide(y, constants_1.TWO), constants_1.ONE); + while (jsbi_1.default.lessThan(x, z)) { + z = x; + x = jsbi_1.default.divide(jsbi_1.default.add(jsbi_1.default.divide(y, x), x), constants_1.TWO); + } + } + else if (jsbi_1.default.notEqual(y, constants_1.ZERO)) { + z = constants_1.ONE; + } + return z; +} +exports.sqrt = sqrt; +// given an array of items sorted by `comparator`, insert an item into its sort index and constrain the size to +// `maxSize` by removing the last item +function sortedInsert(items, add, maxSize, comparator) { + (0, tiny_invariant_1.default)(maxSize > 0, 'MAX_SIZE_ZERO'); + // this is an invariant because the interface cannot return multiple removed items if items.length exceeds maxSize + (0, tiny_invariant_1.default)(items.length <= maxSize, 'ITEMS_SIZE'); + // short circuit first item add + if (items.length === 0) { + items.push(add); + return null; + } + else { + const isFull = items.length === maxSize; + // short circuit if full and the additional item does not come before the last item + if (isFull && comparator(items[items.length - 1], add) <= 0) { + return add; + } + let lo = 0, hi = items.length; + while (lo < hi) { + const mid = (lo + hi) >>> 1; + if (comparator(items[mid], add) <= 0) { + lo = mid + 1; + } + else { + hi = mid; + } + } + items.splice(lo, 0, add); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return isFull ? items.pop() : null; + } +} +exports.sortedInsert = sortedInsert; +/** + * Prints debug data to console. Requires setting `window.__SWAPR_SDK_DEBUG__` to `true` + * @param data + * @returns void + */ +function debug(...data) { + const isBrowser = typeof window !== 'undefined'; + const shouldDebug = isBrowser + ? window.__SWAPR_SDK_DEBUG__ === true + : process.env.__SWAPR_SDK_DEBUG__ != undefined; + shouldDebug && console.debug(...data); +} +exports.debug = debug; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/utils.js.map b/dist/utils.js.map new file mode 100644 index 00000000..de81095a --- /dev/null +++ b/dist/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;AAAA,oDAAmD;AACnD,wDAAuB;AACvB,4EAAsC;AAEtC,2CAAkG;AAElG,SAAgB,4BAA4B,CAAC,KAAW,EAAE,YAA0B;IAClF,IAAA,wBAAS,EAAC,cAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,gBAAI,CAAC,EAAE,GAAG,KAAK,aAAa,YAAY,GAAG,CAAC,CAAA;IACrF,IAAA,wBAAS,EAAC,cAAI,CAAC,eAAe,CAAC,KAAK,EAAE,gCAAoB,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,KAAK,aAAa,YAAY,GAAG,CAAC,CAAA;AAClH,CAAC;AAHD,oEAGC;AAED,yCAAyC;AACzC,SAAgB,uBAAuB,CAAC,OAAe;IACrD,IAAI;QACF,MAAM,kBAAkB,GAAG,IAAA,oBAAU,EAAC,OAAO,CAAC,CAAA;QAC9C,OAAO,kBAAkB,CAAA;KAC1B;IAAC,OAAO,KAAK,EAAE;QACd,IAAA,wBAAS,EAAC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AE/C,MAAM,WAAW,GAAG,SAAS;QAC3B,CAAC,CAAE,MAAc,CAAC,mBAAmB,KAAK,IAAI;QAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,SAAS,CAAA;IAEhD,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;AACvC,CAAC;AARD,sBAQC"} \ No newline at end of file From 9faead6e8c4ed76e519b1c9523f658a911766aae Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 16:41:13 -0300 Subject: [PATCH 5/7] chore(SWA-134): run linter fixes after rebasing --- src/entities/trades/swapr-v3/SwaprV3.ts | 6 +++--- src/entities/trades/swapr-v3/swapr-v3.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entities/trades/swapr-v3/SwaprV3.ts b/src/entities/trades/swapr-v3/SwaprV3.ts index 59333658..8bee1907 100644 --- a/src/entities/trades/swapr-v3/SwaprV3.ts +++ b/src/entities/trades/swapr-v3/SwaprV3.ts @@ -3,11 +3,14 @@ import { UnsignedTransaction } from '@ethersproject/transactions' import { parseUnits } from '@ethersproject/units' import { Fraction, validateAndParseAddress } from '@uniswap/sdk-core' import dayjs from 'dayjs' +import JSBI from 'jsbi' import invariant from 'tiny-invariant' import { ChainId, ONE, TradeType } from '../../../constants' import { Currency } from '../../currency' import { CurrencyAmount, Percent, Price, TokenAmount } from '../../fractions' +import { Token, WXDAI } from '../../token' +import { maximumSlippage as defaultMaximumSlippage } from '../constants' import { TradeWithSwapTransaction } from '../interfaces/trade' import { TradeOptions } from '../interfaces/trade-options' import { RoutablePlatform } from '../routable-platform' @@ -15,9 +18,6 @@ import { getProvider, tryGetChainId } from '../utils' import { SWAPR_ALGEBRA_CONTRACTS } from './constants' import { getQuoterContract, getRouterContract } from './contracts' import { getRoutes } from './routes' -import { maximumSlippage as defaultMaximumSlippage } from '../constants' -import { Token, WXDAI } from '../../token' -import JSBI from 'jsbi' interface SwaprV3ConstructorParams { maximumSlippage: Percent diff --git a/src/entities/trades/swapr-v3/swapr-v3.spec.ts b/src/entities/trades/swapr-v3/swapr-v3.spec.ts index 8eb7bb13..7a0a5c6e 100644 --- a/src/entities/trades/swapr-v3/swapr-v3.spec.ts +++ b/src/entities/trades/swapr-v3/swapr-v3.spec.ts @@ -150,7 +150,7 @@ describe('SwaprV3', () => { expect(trade?.inputAmount.currency.address).toBe(tokenUSDC.address) const swapOptions = { - recipient: recipient, + recipient, account: recipient, } From d1db701822b7c3e77d0a6b36c19bed9bcc591328 Mon Sep 17 00:00:00 2001 From: Rorry Date: Mon, 15 Jan 2024 17:57:25 -0300 Subject: [PATCH 6/7] Revert "chore(SWA-134): add dist folder for testing purposes" This reverts commit 497a787eec9514f3c9f2f97096db700de69cf167. --- dist/abis/index.d.ts | 7 - dist/abis/index.js | 17 - dist/abis/index.js.map | 1 - dist/abis/source/ERC20.json | 38 - dist/abis/source/multicall2.json | 1 - dist/abis/source/router.json | 963 --- .../staking-rewards-distribution-factory.json | 216 - .../source/staking-rewards-distribution.json | 725 --- dist/abis/source/swpr-claimer.json | 193 - dist/constants/addresses.d.ts | 28 - dist/constants/addresses.js | 66 - dist/constants/addresses.js.map | 1 - dist/constants/chains.d.ts | 32 - dist/constants/chains.js | 37 - dist/constants/chains.js.map | 1 - dist/constants/index.d.ts | 31 - dist/constants/index.js | 38 - dist/constants/index.js.map | 1 - dist/constants/solidity.d.ts | 9 - dist/constants/solidity.js | 15 - dist/constants/solidity.js.map | 1 - dist/entities/DistributionCampaignBase.d.ts | 31 - dist/entities/DistributionCampaignBase.js | 97 - dist/entities/DistributionCampaignBase.js.map | 1 - dist/entities/currency.d.ts | 45 - dist/entities/currency.js | 76 - dist/entities/currency.js.map | 1 - dist/entities/fractions/currencyAmount.d.ts | 24 - dist/entities/fractions/currencyAmount.js | 63 - dist/entities/fractions/currencyAmount.js.map | 1 - dist/entities/fractions/fraction.d.ts | 19 - dist/entities/fractions/fraction.js | 93 - dist/entities/fractions/fraction.js.map | 1 - dist/entities/fractions/index.d.ts | 6 - dist/entities/fractions/index.js | 10 - dist/entities/fractions/index.js.map | 1 - dist/entities/fractions/percent.d.ts | 6 - dist/entities/fractions/percent.js | 16 - dist/entities/fractions/percent.js.map | 1 - dist/entities/fractions/price.d.ts | 25 - dist/entities/fractions/price.js | 80 - dist/entities/fractions/price.js.map | 1 - .../fractions/priced-token-amount.d.ts | 9 - .../entities/fractions/priced-token-amount.js | 18 - .../fractions/priced-token-amount.js.map | 1 - dist/entities/fractions/tokenAmount.d.ts | 9 - dist/entities/fractions/tokenAmount.js | 24 - dist/entities/fractions/tokenAmount.js.map | 1 - dist/entities/index.d.ts | 11 - dist/entities/index.js | 15 - dist/entities/index.js.map | 1 - dist/entities/kpi-token.d.ts | 9 - dist/entities/kpi-token.js | 31 - dist/entities/kpi-token.js.map | 1 - dist/entities/liquidity-mining-campaign.d.ts | 17 - dist/entities/liquidity-mining-campaign.js | 23 - .../entities/liquidity-mining-campaign.js.map | 1 - dist/entities/pair.d.ts | 53 - dist/entities/pair.js | 230 - dist/entities/pair.js.map | 1 - dist/entities/platforms-breakdown.d.ts | 16 - dist/entities/platforms-breakdown.js | 24 - dist/entities/platforms-breakdown.js.map | 1 - dist/entities/priced-token.d.ts | 10 - dist/entities/priced-token.js | 18 - dist/entities/priced-token.js.map | 1 - dist/entities/route.d.ts | 14 - dist/entities/route.js | 37 - dist/entities/route.js.map | 1 - ...ingle-sided-liquidity-mining-campaign.d.ts | 7 - .../single-sided-liquidity-mining-campaign.js | 23 - ...gle-sided-liquidity-mining-campaign.js.map | 1 - dist/entities/token.d.ts | 51 - dist/entities/token.js | 156 - dist/entities/token.js.map | 1 - dist/entities/trades/0x/0xTrade.d.ts | 27 - dist/entities/trades/0x/0xTrade.js | 209 - dist/entities/trades/0x/0xTrade.js.map | 1 - dist/entities/trades/0x/constants.d.ts | 7 - dist/entities/trades/0x/constants.js | 27 - dist/entities/trades/0x/constants.js.map | 1 - dist/entities/trades/0x/index.d.ts | 2 - dist/entities/trades/0x/index.js | 6 - dist/entities/trades/0x/index.js.map | 1 - dist/entities/trades/0x/types.d.ts | 45 - dist/entities/trades/0x/types.js | 3 - dist/entities/trades/0x/types.js.map | 1 - dist/entities/trades/0x/utils.d.ts | 20 - dist/entities/trades/0x/utils.js | 52 - dist/entities/trades/0x/utils.js.map | 1 - dist/entities/trades/OneInch/OneInch.d.ts | 40 - dist/entities/trades/OneInch/OneInch.js | 154 - dist/entities/trades/OneInch/OneInch.js.map | 1 - dist/entities/trades/OneInch/api.d.ts | 13 - dist/entities/trades/OneInch/api.js | 51 - dist/entities/trades/OneInch/api.js.map | 1 - dist/entities/trades/OneInch/index.d.ts | 1 - dist/entities/trades/OneInch/index.js | 5 - dist/entities/trades/OneInch/index.js.map | 1 - dist/entities/trades/constants/index.d.ts | 7 - dist/entities/trades/constants/index.js | 18 - dist/entities/trades/constants/index.js.map | 1 - dist/entities/trades/curve/CurveTrade.d.ts | 83 - dist/entities/trades/curve/CurveTrade.js | 538 -- dist/entities/trades/curve/CurveTrade.js.map | 1 - dist/entities/trades/curve/abi/abi.d.ts | 30 - dist/entities/trades/curve/abi/abi.js | 375 -- dist/entities/trades/curve/abi/abi.js.map | 1 - dist/entities/trades/curve/abi/common.d.ts | 296 - dist/entities/trades/curve/abi/common.js | 273 - dist/entities/trades/curve/abi/common.js.map | 1 - dist/entities/trades/curve/abi/index.d.ts | 5 - dist/entities/trades/curve/abi/index.js | 97 - dist/entities/trades/curve/abi/index.js.map | 1 - .../trades/curve/contracts/contracts.d.ts | 27 - .../trades/curve/contracts/contracts.js | 98 - .../trades/curve/contracts/contracts.js.map | 1 - .../trades/curve/contracts/index.d.ts | 3 - dist/entities/trades/curve/contracts/index.js | 7 - .../trades/curve/contracts/index.js.map | 1 - .../trades/curve/contracts/pools.d.ts | 22 - dist/entities/trades/curve/contracts/pools.js | 60 - .../trades/curve/contracts/pools.js.map | 1 - .../trades/curve/contracts/types.d.ts | 19 - dist/entities/trades/curve/contracts/types.js | 3 - .../trades/curve/contracts/types.js.map | 1 - dist/entities/trades/curve/index.d.ts | 2 - dist/entities/trades/curve/index.js | 6 - dist/entities/trades/curve/index.js.map | 1 - dist/entities/trades/curve/pools/index.d.ts | 1 - dist/entities/trades/curve/pools/index.js | 5 - dist/entities/trades/curve/pools/index.js.map | 1 - dist/entities/trades/curve/pools/pools.d.ts | 16 - dist/entities/trades/curve/pools/pools.js | 522 -- dist/entities/trades/curve/pools/pools.js.map | 1 - dist/entities/trades/curve/tokens/index.d.ts | 2 - dist/entities/trades/curve/tokens/index.js | 6 - .../entities/trades/curve/tokens/index.js.map | 1 - dist/entities/trades/curve/tokens/tokens.d.ts | 23 - dist/entities/trades/curve/tokens/tokens.js | 641 -- .../trades/curve/tokens/tokens.js.map | 1 - dist/entities/trades/curve/tokens/types.d.ts | 43 - dist/entities/trades/curve/tokens/types.js | 22 - .../entities/trades/curve/tokens/types.js.map | 1 - dist/entities/trades/curve/types.d.ts | 72 - dist/entities/trades/curve/types.js | 3 - dist/entities/trades/curve/types.js.map | 1 - dist/entities/trades/curve/utils.d.ts | 34 - dist/entities/trades/curve/utils.js | 201 - dist/entities/trades/curve/utils.js.map | 1 - .../trades/gnosis-protocol/CoWTrade.d.ts | 171 - .../trades/gnosis-protocol/CoWTrade.js | 346 -- .../trades/gnosis-protocol/CoWTrade.js.map | 1 - .../trades/gnosis-protocol/CoWTradeError.d.ts | 6 - .../trades/gnosis-protocol/CoWTradeError.js | 14 - .../gnosis-protocol/CoWTradeError.js.map | 1 - .../trades/gnosis-protocol/app-data.json | 34 - .../trades/gnosis-protocol/index.d.ts | 2 - dist/entities/trades/gnosis-protocol/index.js | 6 - .../trades/gnosis-protocol/index.js.map | 1 - .../trades/gnosis-protocol/types.d.ts | 30 - dist/entities/trades/gnosis-protocol/types.js | 3 - .../trades/gnosis-protocol/types.js.map | 1 - dist/entities/trades/index.d.ts | 11 - dist/entities/trades/index.js | 19 - dist/entities/trades/index.js.map | 1 - .../trades/interfaces/trade-options.d.ts | 4 - .../trades/interfaces/trade-options.js | 3 - .../trades/interfaces/trade-options.js.map | 1 - dist/entities/trades/interfaces/trade.d.ts | 92 - dist/entities/trades/interfaces/trade.js | 33 - dist/entities/trades/interfaces/trade.js.map | 1 - .../BaseRoutablePlatform.d.ts | 31 - .../routable-platform/BaseRoutablePlatform.js | 28 - .../BaseRoutablePlatform.js.map | 1 - .../routable-platform/RoutablePlatform.d.ts | 17 - .../routable-platform/RoutablePlatform.js | 31 - .../routable-platform/RoutablePlatform.js.map | 1 - .../UniswapV2RoutablePlatform.d.ts | 80 - .../UniswapV2RoutablePlatform.js | 201 - .../UniswapV2RoutablePlatform.js.map | 1 - .../trades/routable-platform/index.d.ts | 3 - .../trades/routable-platform/index.js | 7 - .../trades/routable-platform/index.js.map | 1 - dist/entities/trades/swapr-v3/SwaprV3.d.ts | 31 - dist/entities/trades/swapr-v3/SwaprV3.js | 157 - dist/entities/trades/swapr-v3/SwaprV3.js.map | 1 - dist/entities/trades/swapr-v3/abi/index.d.ts | 3 - dist/entities/trades/swapr-v3/abi/index.js | 7 - .../entities/trades/swapr-v3/abi/index.js.map | 1 - .../swapr-v3/abi/swapr-algebra-pool.d.ts | 35 - .../trades/swapr-v3/abi/swapr-algebra-pool.js | 1045 ---- .../swapr-v3/abi/swapr-algebra-pool.js.map | 1 - .../swapr-v3/abi/swapr-algebra-quoter.d.ts | 25 - .../swapr-v3/abi/swapr-algebra-quoter.js | 205 - .../swapr-v3/abi/swapr-algebra-quoter.js.map | 1 - .../swapr-v3/abi/swapr-algebra-router.d.ts | 50 - .../swapr-v3/abi/swapr-algebra-router.js | 638 -- .../swapr-v3/abi/swapr-algebra-router.js.map | 1 - dist/entities/trades/swapr-v3/constants.d.ts | 16 - dist/entities/trades/swapr-v3/constants.js | 49 - .../entities/trades/swapr-v3/constants.js.map | 1 - dist/entities/trades/swapr-v3/contracts.d.ts | 4 - dist/entities/trades/swapr-v3/contracts.js | 21 - .../entities/trades/swapr-v3/contracts.js.map | 1 - .../trades/swapr-v3/entities/pool.d.ts | 79 - .../entities/trades/swapr-v3/entities/pool.js | 214 - .../trades/swapr-v3/entities/pool.js.map | 1 - .../trades/swapr-v3/entities/route.d.ts | 26 - .../trades/swapr-v3/entities/route.js | 75 - .../trades/swapr-v3/entities/route.js.map | 1 - dist/entities/trades/swapr-v3/index.d.ts | 1 - dist/entities/trades/swapr-v3/index.js | 5 - dist/entities/trades/swapr-v3/index.js.map | 1 - dist/entities/trades/swapr-v3/pools.d.ts | 7 - dist/entities/trades/swapr-v3/pools.js | 123 - dist/entities/trades/swapr-v3/pools.js.map | 1 - dist/entities/trades/swapr-v3/routes.d.ts | 5 - dist/entities/trades/swapr-v3/routes.js | 38 - dist/entities/trades/swapr-v3/routes.js.map | 1 - .../swapr-v3/utils/computePoolAddress.d.ts | 32 - .../swapr-v3/utils/computePoolAddress.js | 41 - .../swapr-v3/utils/computePoolAddress.js.map | 1 - .../trades/swapr-v3/utils/encode-route.d.ts | 8 - .../trades/swapr-v3/utils/encode-route.js | 32 - .../trades/swapr-v3/utils/encode-route.js.map | 1 - .../entities/trades/uniswap-v2/UniswapV2.d.ts | 52 - dist/entities/trades/uniswap-v2/UniswapV2.js | 386 -- .../trades/uniswap-v2/UniswapV2.js.map | 1 - .../trades/uniswap-v2/cache/index.d.ts | 6 - .../entities/trades/uniswap-v2/cache/index.js | 27 - .../trades/uniswap-v2/cache/index.js.map | 1 - .../entities/trades/uniswap-v2/constants.d.ts | 20 - dist/entities/trades/uniswap-v2/constants.js | 99 - .../trades/uniswap-v2/constants.js.map | 1 - dist/entities/trades/uniswap-v2/index.d.ts | 4 - dist/entities/trades/uniswap-v2/index.js | 8 - dist/entities/trades/uniswap-v2/index.js.map | 1 - .../trades/uniswap-v2/pairs/fees.d.ts | 6 - dist/entities/trades/uniswap-v2/pairs/fees.js | 36 - .../trades/uniswap-v2/pairs/fees.js.map | 1 - .../trades/uniswap-v2/pairs/index.d.ts | 3 - .../entities/trades/uniswap-v2/pairs/index.js | 7 - .../trades/uniswap-v2/pairs/index.js.map | 1 - .../trades/uniswap-v2/pairs/pairs.d.ts | 11 - .../entities/trades/uniswap-v2/pairs/pairs.js | 141 - .../trades/uniswap-v2/pairs/pairs.js.map | 1 - .../trades/uniswap-v2/pairs/queries.d.ts | 1 - .../trades/uniswap-v2/pairs/queries.js | 34 - .../trades/uniswap-v2/pairs/queries.js.map | 1 - .../trades/uniswap-v2/pairs/types.d.ts | 24 - .../entities/trades/uniswap-v2/pairs/types.js | 3 - .../trades/uniswap-v2/pairs/types.js.map | 1 - dist/entities/trades/uniswap-v2/types.d.ts | 45 - dist/entities/trades/uniswap-v2/types.js | 3 - dist/entities/trades/uniswap-v2/types.js.map | 1 - dist/entities/trades/uniswap-v2/utilts.d.ts | 18 - dist/entities/trades/uniswap-v2/utilts.js | 55 - dist/entities/trades/uniswap-v2/utilts.js.map | 1 - .../trades/uniswap/Uniswap/Uniswap.d.ts | 21 - .../trades/uniswap/Uniswap/Uniswap.js | 161 - .../trades/uniswap/Uniswap/Uniswap.js.map | 1 - dist/entities/trades/uniswap/abi/index.d.ts | 50 - dist/entities/trades/uniswap/abi/index.js | 460 -- dist/entities/trades/uniswap/abi/index.js.map | 1 - dist/entities/trades/uniswap/index.d.ts | 2 - dist/entities/trades/uniswap/index.js | 6 - dist/entities/trades/uniswap/index.js.map | 1 - .../trades/uniswap/types/UniswapV3.types.d.ts | 16 - .../trades/uniswap/types/UniswapV3.types.js | 3 - .../uniswap/types/UniswapV3.types.js.map | 1 - dist/entities/trades/uniswap/utils/index.d.ts | 3 - dist/entities/trades/uniswap/utils/index.js | 39 - .../trades/uniswap/utils/index.js.map | 1 - .../trades/uniswap/utils/nativeCurrency.d.ts | 2 - .../trades/uniswap/utils/nativeCurrency.js | 37 - .../uniswap/utils/nativeCurrency.js.map | 1 - dist/entities/trades/utils.d.ts | 44 - dist/entities/trades/utils.js | 89 - dist/entities/trades/utils.js.map | 1 - dist/entities/trades/velodrome/Velodrome.d.ts | 50 - dist/entities/trades/velodrome/Velodrome.js | 233 - .../trades/velodrome/Velodrome.js.map | 1 - dist/entities/trades/velodrome/abi.d.ts | 66 - dist/entities/trades/velodrome/abi.js | 436 -- dist/entities/trades/velodrome/abi.js.map | 1 - dist/entities/trades/velodrome/contants.d.ts | 2 - dist/entities/trades/velodrome/contants.js | 6 - .../entities/trades/velodrome/contants.js.map | 1 - dist/entities/trades/velodrome/index.d.ts | 1 - dist/entities/trades/velodrome/index.js | 5 - dist/entities/trades/velodrome/index.js.map | 1 - dist/entities/trades/velodrome/utils.d.ts | 23 - dist/entities/trades/velodrome/utils.js | 138 - dist/entities/trades/velodrome/utils.js.map | 1 - dist/errors.d.ts | 16 - dist/errors.js | 34 - dist/errors.js.map | 1 - dist/fetcher.d.ts | 64 - dist/fetcher.js | 152 - dist/fetcher.js.map | 1 - dist/generated/graphql/index.d.ts | 5349 ----------------- dist/generated/graphql/index.js | 812 --- dist/generated/graphql/index.js.map | 1 - dist/index.d.ts | 8 - dist/index.js | 14 - dist/index.js.map | 1 - dist/utils.d.ts | 13 - dist/utils.js | 98 - dist/utils.js.map | 1 - 310 files changed, 21721 deletions(-) delete mode 100644 dist/abis/index.d.ts delete mode 100644 dist/abis/index.js delete mode 100644 dist/abis/index.js.map delete mode 100644 dist/abis/source/ERC20.json delete mode 100644 dist/abis/source/multicall2.json delete mode 100644 dist/abis/source/router.json delete mode 100644 dist/abis/source/staking-rewards-distribution-factory.json delete mode 100644 dist/abis/source/staking-rewards-distribution.json delete mode 100644 dist/abis/source/swpr-claimer.json delete mode 100644 dist/constants/addresses.d.ts delete mode 100644 dist/constants/addresses.js delete mode 100644 dist/constants/addresses.js.map delete mode 100644 dist/constants/chains.d.ts delete mode 100644 dist/constants/chains.js delete mode 100644 dist/constants/chains.js.map delete mode 100644 dist/constants/index.d.ts delete mode 100644 dist/constants/index.js delete mode 100644 dist/constants/index.js.map delete mode 100644 dist/constants/solidity.d.ts delete mode 100644 dist/constants/solidity.js delete mode 100644 dist/constants/solidity.js.map delete mode 100644 dist/entities/DistributionCampaignBase.d.ts delete mode 100644 dist/entities/DistributionCampaignBase.js delete mode 100644 dist/entities/DistributionCampaignBase.js.map delete mode 100644 dist/entities/currency.d.ts delete mode 100644 dist/entities/currency.js delete mode 100644 dist/entities/currency.js.map delete mode 100644 dist/entities/fractions/currencyAmount.d.ts delete mode 100644 dist/entities/fractions/currencyAmount.js delete mode 100644 dist/entities/fractions/currencyAmount.js.map delete mode 100644 dist/entities/fractions/fraction.d.ts delete mode 100644 dist/entities/fractions/fraction.js delete mode 100644 dist/entities/fractions/fraction.js.map delete mode 100644 dist/entities/fractions/index.d.ts delete mode 100644 dist/entities/fractions/index.js delete mode 100644 dist/entities/fractions/index.js.map delete mode 100644 dist/entities/fractions/percent.d.ts delete mode 100644 dist/entities/fractions/percent.js delete mode 100644 dist/entities/fractions/percent.js.map delete mode 100644 dist/entities/fractions/price.d.ts delete mode 100644 dist/entities/fractions/price.js delete mode 100644 dist/entities/fractions/price.js.map delete mode 100644 dist/entities/fractions/priced-token-amount.d.ts delete mode 100644 dist/entities/fractions/priced-token-amount.js delete mode 100644 dist/entities/fractions/priced-token-amount.js.map delete mode 100644 dist/entities/fractions/tokenAmount.d.ts delete mode 100644 dist/entities/fractions/tokenAmount.js delete mode 100644 dist/entities/fractions/tokenAmount.js.map delete mode 100644 dist/entities/index.d.ts delete mode 100644 dist/entities/index.js delete mode 100644 dist/entities/index.js.map delete mode 100644 dist/entities/kpi-token.d.ts delete mode 100644 dist/entities/kpi-token.js delete mode 100644 dist/entities/kpi-token.js.map delete mode 100644 dist/entities/liquidity-mining-campaign.d.ts delete mode 100644 dist/entities/liquidity-mining-campaign.js delete mode 100644 dist/entities/liquidity-mining-campaign.js.map delete mode 100644 dist/entities/pair.d.ts delete mode 100644 dist/entities/pair.js delete mode 100644 dist/entities/pair.js.map delete mode 100644 dist/entities/platforms-breakdown.d.ts delete mode 100644 dist/entities/platforms-breakdown.js delete mode 100644 dist/entities/platforms-breakdown.js.map delete mode 100644 dist/entities/priced-token.d.ts delete mode 100644 dist/entities/priced-token.js delete mode 100644 dist/entities/priced-token.js.map delete mode 100644 dist/entities/route.d.ts delete mode 100644 dist/entities/route.js delete mode 100644 dist/entities/route.js.map delete mode 100644 dist/entities/single-sided-liquidity-mining-campaign.d.ts delete mode 100644 dist/entities/single-sided-liquidity-mining-campaign.js delete mode 100644 dist/entities/single-sided-liquidity-mining-campaign.js.map delete mode 100644 dist/entities/token.d.ts delete mode 100644 dist/entities/token.js delete mode 100644 dist/entities/token.js.map delete mode 100644 dist/entities/trades/0x/0xTrade.d.ts delete mode 100644 dist/entities/trades/0x/0xTrade.js delete mode 100644 dist/entities/trades/0x/0xTrade.js.map delete mode 100644 dist/entities/trades/0x/constants.d.ts delete mode 100644 dist/entities/trades/0x/constants.js delete mode 100644 dist/entities/trades/0x/constants.js.map delete mode 100644 dist/entities/trades/0x/index.d.ts delete mode 100644 dist/entities/trades/0x/index.js delete mode 100644 dist/entities/trades/0x/index.js.map delete mode 100644 dist/entities/trades/0x/types.d.ts delete mode 100644 dist/entities/trades/0x/types.js delete mode 100644 dist/entities/trades/0x/types.js.map delete mode 100644 dist/entities/trades/0x/utils.d.ts delete mode 100644 dist/entities/trades/0x/utils.js delete mode 100644 dist/entities/trades/0x/utils.js.map delete mode 100644 dist/entities/trades/OneInch/OneInch.d.ts delete mode 100644 dist/entities/trades/OneInch/OneInch.js delete mode 100644 dist/entities/trades/OneInch/OneInch.js.map delete mode 100644 dist/entities/trades/OneInch/api.d.ts delete mode 100644 dist/entities/trades/OneInch/api.js delete mode 100644 dist/entities/trades/OneInch/api.js.map delete mode 100644 dist/entities/trades/OneInch/index.d.ts delete mode 100644 dist/entities/trades/OneInch/index.js delete mode 100644 dist/entities/trades/OneInch/index.js.map delete mode 100644 dist/entities/trades/constants/index.d.ts delete mode 100644 dist/entities/trades/constants/index.js delete mode 100644 dist/entities/trades/constants/index.js.map delete mode 100644 dist/entities/trades/curve/CurveTrade.d.ts delete mode 100644 dist/entities/trades/curve/CurveTrade.js delete mode 100644 dist/entities/trades/curve/CurveTrade.js.map delete mode 100644 dist/entities/trades/curve/abi/abi.d.ts delete mode 100644 dist/entities/trades/curve/abi/abi.js delete mode 100644 dist/entities/trades/curve/abi/abi.js.map delete mode 100644 dist/entities/trades/curve/abi/common.d.ts delete mode 100644 dist/entities/trades/curve/abi/common.js delete mode 100644 dist/entities/trades/curve/abi/common.js.map delete mode 100644 dist/entities/trades/curve/abi/index.d.ts delete mode 100644 dist/entities/trades/curve/abi/index.js delete mode 100644 dist/entities/trades/curve/abi/index.js.map delete mode 100644 dist/entities/trades/curve/contracts/contracts.d.ts delete mode 100644 dist/entities/trades/curve/contracts/contracts.js delete mode 100644 dist/entities/trades/curve/contracts/contracts.js.map delete mode 100644 dist/entities/trades/curve/contracts/index.d.ts delete mode 100644 dist/entities/trades/curve/contracts/index.js delete mode 100644 dist/entities/trades/curve/contracts/index.js.map delete mode 100644 dist/entities/trades/curve/contracts/pools.d.ts delete mode 100644 dist/entities/trades/curve/contracts/pools.js delete mode 100644 dist/entities/trades/curve/contracts/pools.js.map delete mode 100644 dist/entities/trades/curve/contracts/types.d.ts delete mode 100644 dist/entities/trades/curve/contracts/types.js delete mode 100644 dist/entities/trades/curve/contracts/types.js.map delete mode 100644 dist/entities/trades/curve/index.d.ts delete mode 100644 dist/entities/trades/curve/index.js delete mode 100644 dist/entities/trades/curve/index.js.map delete mode 100644 dist/entities/trades/curve/pools/index.d.ts delete mode 100644 dist/entities/trades/curve/pools/index.js delete mode 100644 dist/entities/trades/curve/pools/index.js.map delete mode 100644 dist/entities/trades/curve/pools/pools.d.ts delete mode 100644 dist/entities/trades/curve/pools/pools.js delete mode 100644 dist/entities/trades/curve/pools/pools.js.map delete mode 100644 dist/entities/trades/curve/tokens/index.d.ts delete mode 100644 dist/entities/trades/curve/tokens/index.js delete mode 100644 dist/entities/trades/curve/tokens/index.js.map delete mode 100644 dist/entities/trades/curve/tokens/tokens.d.ts delete mode 100644 dist/entities/trades/curve/tokens/tokens.js delete mode 100644 dist/entities/trades/curve/tokens/tokens.js.map delete mode 100644 dist/entities/trades/curve/tokens/types.d.ts delete mode 100644 dist/entities/trades/curve/tokens/types.js delete mode 100644 dist/entities/trades/curve/tokens/types.js.map delete mode 100644 dist/entities/trades/curve/types.d.ts delete mode 100644 dist/entities/trades/curve/types.js delete mode 100644 dist/entities/trades/curve/types.js.map delete mode 100644 dist/entities/trades/curve/utils.d.ts delete mode 100644 dist/entities/trades/curve/utils.js delete mode 100644 dist/entities/trades/curve/utils.js.map delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.d.ts delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.js delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTrade.js.map delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.js delete mode 100644 dist/entities/trades/gnosis-protocol/CoWTradeError.js.map delete mode 100644 dist/entities/trades/gnosis-protocol/app-data.json delete mode 100644 dist/entities/trades/gnosis-protocol/index.d.ts delete mode 100644 dist/entities/trades/gnosis-protocol/index.js delete mode 100644 dist/entities/trades/gnosis-protocol/index.js.map delete mode 100644 dist/entities/trades/gnosis-protocol/types.d.ts delete mode 100644 dist/entities/trades/gnosis-protocol/types.js delete mode 100644 dist/entities/trades/gnosis-protocol/types.js.map delete mode 100644 dist/entities/trades/index.d.ts delete mode 100644 dist/entities/trades/index.js delete mode 100644 dist/entities/trades/index.js.map delete mode 100644 dist/entities/trades/interfaces/trade-options.d.ts delete mode 100644 dist/entities/trades/interfaces/trade-options.js delete mode 100644 dist/entities/trades/interfaces/trade-options.js.map delete mode 100644 dist/entities/trades/interfaces/trade.d.ts delete mode 100644 dist/entities/trades/interfaces/trade.js delete mode 100644 dist/entities/trades/interfaces/trade.js.map delete mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts delete mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.js delete mode 100644 dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map delete mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.d.ts delete mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.js delete mode 100644 dist/entities/trades/routable-platform/RoutablePlatform.js.map delete mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts delete mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js delete mode 100644 dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map delete mode 100644 dist/entities/trades/routable-platform/index.d.ts delete mode 100644 dist/entities/trades/routable-platform/index.js delete mode 100644 dist/entities/trades/routable-platform/index.js.map delete mode 100644 dist/entities/trades/swapr-v3/SwaprV3.d.ts delete mode 100644 dist/entities/trades/swapr-v3/SwaprV3.js delete mode 100644 dist/entities/trades/swapr-v3/SwaprV3.js.map delete mode 100644 dist/entities/trades/swapr-v3/abi/index.d.ts delete mode 100644 dist/entities/trades/swapr-v3/abi/index.js delete mode 100644 dist/entities/trades/swapr-v3/abi/index.js.map delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js delete mode 100644 dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map delete mode 100644 dist/entities/trades/swapr-v3/constants.d.ts delete mode 100644 dist/entities/trades/swapr-v3/constants.js delete mode 100644 dist/entities/trades/swapr-v3/constants.js.map delete mode 100644 dist/entities/trades/swapr-v3/contracts.d.ts delete mode 100644 dist/entities/trades/swapr-v3/contracts.js delete mode 100644 dist/entities/trades/swapr-v3/contracts.js.map delete mode 100644 dist/entities/trades/swapr-v3/entities/pool.d.ts delete mode 100644 dist/entities/trades/swapr-v3/entities/pool.js delete mode 100644 dist/entities/trades/swapr-v3/entities/pool.js.map delete mode 100644 dist/entities/trades/swapr-v3/entities/route.d.ts delete mode 100644 dist/entities/trades/swapr-v3/entities/route.js delete mode 100644 dist/entities/trades/swapr-v3/entities/route.js.map delete mode 100644 dist/entities/trades/swapr-v3/index.d.ts delete mode 100644 dist/entities/trades/swapr-v3/index.js delete mode 100644 dist/entities/trades/swapr-v3/index.js.map delete mode 100644 dist/entities/trades/swapr-v3/pools.d.ts delete mode 100644 dist/entities/trades/swapr-v3/pools.js delete mode 100644 dist/entities/trades/swapr-v3/pools.js.map delete mode 100644 dist/entities/trades/swapr-v3/routes.d.ts delete mode 100644 dist/entities/trades/swapr-v3/routes.js delete mode 100644 dist/entities/trades/swapr-v3/routes.js.map delete mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts delete mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.js delete mode 100644 dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map delete mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.d.ts delete mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.js delete mode 100644 dist/entities/trades/swapr-v3/utils/encode-route.js.map delete mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.js delete mode 100644 dist/entities/trades/uniswap-v2/UniswapV2.js.map delete mode 100644 dist/entities/trades/uniswap-v2/cache/index.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/cache/index.js delete mode 100644 dist/entities/trades/uniswap-v2/cache/index.js.map delete mode 100644 dist/entities/trades/uniswap-v2/constants.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/constants.js delete mode 100644 dist/entities/trades/uniswap-v2/constants.js.map delete mode 100644 dist/entities/trades/uniswap-v2/index.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/index.js delete mode 100644 dist/entities/trades/uniswap-v2/index.js.map delete mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.js delete mode 100644 dist/entities/trades/uniswap-v2/pairs/fees.js.map delete mode 100644 dist/entities/trades/uniswap-v2/pairs/index.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/pairs/index.js delete mode 100644 dist/entities/trades/uniswap-v2/pairs/index.js.map delete mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.js delete mode 100644 dist/entities/trades/uniswap-v2/pairs/pairs.js.map delete mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.js delete mode 100644 dist/entities/trades/uniswap-v2/pairs/queries.js.map delete mode 100644 dist/entities/trades/uniswap-v2/pairs/types.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/pairs/types.js delete mode 100644 dist/entities/trades/uniswap-v2/pairs/types.js.map delete mode 100644 dist/entities/trades/uniswap-v2/types.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/types.js delete mode 100644 dist/entities/trades/uniswap-v2/types.js.map delete mode 100644 dist/entities/trades/uniswap-v2/utilts.d.ts delete mode 100644 dist/entities/trades/uniswap-v2/utilts.js delete mode 100644 dist/entities/trades/uniswap-v2/utilts.js.map delete mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts delete mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.js delete mode 100644 dist/entities/trades/uniswap/Uniswap/Uniswap.js.map delete mode 100644 dist/entities/trades/uniswap/abi/index.d.ts delete mode 100644 dist/entities/trades/uniswap/abi/index.js delete mode 100644 dist/entities/trades/uniswap/abi/index.js.map delete mode 100644 dist/entities/trades/uniswap/index.d.ts delete mode 100644 dist/entities/trades/uniswap/index.js delete mode 100644 dist/entities/trades/uniswap/index.js.map delete mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.d.ts delete mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.js delete mode 100644 dist/entities/trades/uniswap/types/UniswapV3.types.js.map delete mode 100644 dist/entities/trades/uniswap/utils/index.d.ts delete mode 100644 dist/entities/trades/uniswap/utils/index.js delete mode 100644 dist/entities/trades/uniswap/utils/index.js.map delete mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.d.ts delete mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.js delete mode 100644 dist/entities/trades/uniswap/utils/nativeCurrency.js.map delete mode 100644 dist/entities/trades/utils.d.ts delete mode 100644 dist/entities/trades/utils.js delete mode 100644 dist/entities/trades/utils.js.map delete mode 100644 dist/entities/trades/velodrome/Velodrome.d.ts delete mode 100644 dist/entities/trades/velodrome/Velodrome.js delete mode 100644 dist/entities/trades/velodrome/Velodrome.js.map delete mode 100644 dist/entities/trades/velodrome/abi.d.ts delete mode 100644 dist/entities/trades/velodrome/abi.js delete mode 100644 dist/entities/trades/velodrome/abi.js.map delete mode 100644 dist/entities/trades/velodrome/contants.d.ts delete mode 100644 dist/entities/trades/velodrome/contants.js delete mode 100644 dist/entities/trades/velodrome/contants.js.map delete mode 100644 dist/entities/trades/velodrome/index.d.ts delete mode 100644 dist/entities/trades/velodrome/index.js delete mode 100644 dist/entities/trades/velodrome/index.js.map delete mode 100644 dist/entities/trades/velodrome/utils.d.ts delete mode 100644 dist/entities/trades/velodrome/utils.js delete mode 100644 dist/entities/trades/velodrome/utils.js.map delete mode 100644 dist/errors.d.ts delete mode 100644 dist/errors.js delete mode 100644 dist/errors.js.map delete mode 100644 dist/fetcher.d.ts delete mode 100644 dist/fetcher.js delete mode 100644 dist/fetcher.js.map delete mode 100644 dist/generated/graphql/index.d.ts delete mode 100644 dist/generated/graphql/index.js delete mode 100644 dist/generated/graphql/index.js.map delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 dist/utils.d.ts delete mode 100644 dist/utils.js delete mode 100644 dist/utils.js.map diff --git a/dist/abis/index.d.ts b/dist/abis/index.d.ts deleted file mode 100644 index 657fe3db..00000000 --- a/dist/abis/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import ERC20_ABI from './source/ERC20.json'; -import MULTICALL2_ABI from './source/multicall2.json'; -import ROUTER_ABI from './source/router.json'; -import STAKING_REWARDS_DISTRIBUTION_ABI from './source/staking-rewards-distribution.json'; -import STAKING_REWARDS_FACTORY_ABI from './source/staking-rewards-distribution-factory.json'; -import SWPR_CLAIMER_ABI from './source/swpr-claimer.json'; -export { ERC20_ABI, MULTICALL2_ABI, ROUTER_ABI, STAKING_REWARDS_DISTRIBUTION_ABI, STAKING_REWARDS_FACTORY_ABI, SWPR_CLAIMER_ABI, }; diff --git a/dist/abis/index.js b/dist/abis/index.js deleted file mode 100644 index 93edcc7a..00000000 --- a/dist/abis/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SWPR_CLAIMER_ABI = exports.STAKING_REWARDS_FACTORY_ABI = exports.STAKING_REWARDS_DISTRIBUTION_ABI = exports.ROUTER_ABI = exports.MULTICALL2_ABI = exports.ERC20_ABI = void 0; -const tslib_1 = require("tslib"); -const ERC20_json_1 = tslib_1.__importDefault(require("./source/ERC20.json")); -exports.ERC20_ABI = ERC20_json_1.default; -const multicall2_json_1 = tslib_1.__importDefault(require("./source/multicall2.json")); -exports.MULTICALL2_ABI = multicall2_json_1.default; -const router_json_1 = tslib_1.__importDefault(require("./source/router.json")); -exports.ROUTER_ABI = router_json_1.default; -const staking_rewards_distribution_json_1 = tslib_1.__importDefault(require("./source/staking-rewards-distribution.json")); -exports.STAKING_REWARDS_DISTRIBUTION_ABI = staking_rewards_distribution_json_1.default; -const staking_rewards_distribution_factory_json_1 = tslib_1.__importDefault(require("./source/staking-rewards-distribution-factory.json")); -exports.STAKING_REWARDS_FACTORY_ABI = staking_rewards_distribution_factory_json_1.default; -const swpr_claimer_json_1 = tslib_1.__importDefault(require("./source/swpr-claimer.json")); -exports.SWPR_CLAIMER_ABI = swpr_claimer_json_1.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/abis/index.js.map b/dist/abis/index.js.map deleted file mode 100644 index 395d2759..00000000 --- a/dist/abis/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/abis/index.ts"],"names":[],"mappings":";;;;AAAA,6EAA2C;AAQzC,oBARK,oBAAS,CAQL;AAPX,uFAAqD;AAQnD,yBARK,yBAAc,CAQL;AAPhB,+EAA6C;AAQ3C,qBARK,qBAAU,CAQL;AAPZ,2HAAyF;AAQvF,2CARK,2CAAgC,CAQL;AAPlC,2IAA4F;AAQ1F,sCARK,mDAA2B,CAQL;AAP7B,2FAAyD;AAQvD,2BARK,2BAAgB,CAQL"} \ No newline at end of file diff --git a/dist/abis/source/ERC20.json b/dist/abis/source/ERC20.json deleted file mode 100644 index 0c09a5de..00000000 --- a/dist/abis/source/ERC20.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - } -] diff --git a/dist/abis/source/multicall2.json b/dist/abis/source/multicall2.json deleted file mode 100644 index 00b991d9..00000000 --- a/dist/abis/source/multicall2.json +++ /dev/null @@ -1 +0,0 @@ -[{ "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes[]", "name": "returnData", "internalType": "bytes[]" }], "name": "aggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "blockAndAggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getBlockHash", "inputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }], "name": "getBlockNumber", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "address", "name": "coinbase", "internalType": "address" }], "name": "getCurrentBlockCoinbase", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "difficulty", "internalType": "uint256" }], "name": "getCurrentBlockDifficulty", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "gaslimit", "internalType": "uint256" }], "name": "getCurrentBlockGasLimit", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "timestamp", "internalType": "uint256" }], "name": "getCurrentBlockTimestamp", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "balance", "internalType": "uint256" }], "name": "getEthBalance", "inputs": [{ "type": "address", "name": "addr", "internalType": "address" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getLastBlockHash", "inputs": [] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryBlockAndAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }] diff --git a/dist/abis/source/router.json b/dist/abis/source/router.json deleted file mode 100644 index 0d26b51a..00000000 --- a/dist/abis/source/router.json +++ /dev/null @@ -1,963 +0,0 @@ -[ - { - "inputs": [], - "name": "WETH", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenA", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenB", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amountADesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBDesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountAMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "addLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "amountA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountB", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amountTokenDesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "addLiquidityETH", - "outputs": [ - { - "internalType": "uint256", - "name": "amountToken", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETH", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "swapFee", - "type": "uint256" - } - ], - "name": "getAmountIn", - "outputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "swapFee", - "type": "uint256" - } - ], - "name": "getAmountOut", - "outputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - } - ], - "name": "getAmountsIn", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - } - ], - "name": "getAmountsOut", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveB", - "type": "uint256" - } - ], - "name": "quote", - "outputs": [ - { - "internalType": "uint256", - "name": "amountB", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenA", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenB", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountAMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "amountA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountB", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidityETH", - "outputs": [ - { - "internalType": "uint256", - "name": "amountToken", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETH", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidityETHSupportingFeeOnTransferTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "amountETH", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "approveMax", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "removeLiquidityETHWithPermit", - "outputs": [ - { - "internalType": "uint256", - "name": "amountToken", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETH", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "approveMax", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "amountETH", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenA", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenB", - "type": "address" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountAMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBMin", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "approveMax", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "removeLiquidityWithPermit", - "outputs": [ - { - "internalType": "uint256", - "name": "amountA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountB", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapETHForExactTokens", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactETHForTokens", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactTokensForETH", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactTokensForTokens", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountInMax", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapTokensForExactETH", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountInMax", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "path", - "type": "address[]" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swapTokensForExactTokens", - "outputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/dist/abis/source/staking-rewards-distribution-factory.json b/dist/abis/source/staking-rewards-distribution-factory.json deleted file mode 100644 index 9b417608..00000000 --- a/dist/abis/source/staking-rewards-distribution-factory.json +++ /dev/null @@ -1,216 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokensValidatorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_stakableTokenValidatorAddress", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "deployedAt", - "type": "address" - } - ], - "name": "DistributionCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokensAddresses", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_stakableTokenAddress", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_rewardAmounts", - "type": "uint256[]" - }, - { - "internalType": "uint64", - "name": "_startingTimestamp", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "_endingTimestmp", - "type": "uint64" - }, - { - "internalType": "bool", - "name": "_locked", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "_stakingCap", - "type": "uint256" - } - ], - "name": "createDistribution", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "distributions", - "outputs": [ - { - "internalType": "contract ERC20StakingRewardsDistribution", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getDistributionsAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rewardTokensValidator", - "outputs": [ - { - "internalType": "contract IRewardTokensValidator", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokensValidatorAddress", - "type": "address" - } - ], - "name": "setRewardTokensValidator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_stakableTokenValidatorAddress", - "type": "address" - } - ], - "name": "setStakableTokenValidator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stakableTokenValidator", - "outputs": [ - { - "internalType": "contract IStakableTokenValidator", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/dist/abis/source/staking-rewards-distribution.json b/dist/abis/source/staking-rewards-distribution.json deleted file mode 100644 index 489ff2b2..00000000 --- a/dist/abis/source/staking-rewards-distribution.json +++ /dev/null @@ -1,725 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [], - "name": "Canceled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "claimer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "name": "Claimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "rewardsTokenAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address", - "name": "stakableTokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "rewardsAmounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "startingTimestamp", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "endingTimestamp", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "stakingCap", - "type": "uint256" - } - ], - "name": "Initialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "name": "Recovered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "staker", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Staked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "withdrawer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "claimedReward", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "consolidatedRewardsPerStakedToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "earnedRewards", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "endingTimestamp", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "initialized", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lastConsolidationTimestamp", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "locked", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "recoverableUnassignedReward", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardPerStakedToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "rewardTokens", - "outputs": [ - { - "internalType": "contract ERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "secondsDuration", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stakableToken", - "outputs": [ - { - "internalType": "contract ERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "stakedTokenAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "stakedTokensOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stakingCap", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "startingTimestamp", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "totalClaimedRewards", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalStakedTokensAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokens", - "outputs": [ - { - "internalType": "contract ERC20[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_claimer", - "type": "address" - } - ], - "name": "getClaimedRewards", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_stakableTokenAddress", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_rewardAmounts", - "type": "uint256[]" - }, - { - "internalType": "uint64", - "name": "_startingTimestamp", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "_endingTimestamp", - "type": "uint64" - }, - { - "internalType": "bool", - "name": "_locked", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "_stakingCap", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "cancel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "recoverUnassignedRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_amounts", - "type": "uint256[]" - }, - { - "internalType": "address", - "name": "_recipient", - "type": "address" - } - ], - "name": "claim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_recipient", - "type": "address" - } - ], - "name": "claimAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_recipient", - "type": "address" - } - ], - "name": "exit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "consolidateReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_staker", - "type": "address" - } - ], - "name": "claimableRewards", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "rewards", - "outputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "perStakedToken", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "recoverableAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "claimed", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/dist/abis/source/swpr-claimer.json b/dist/abis/source/swpr-claimer.json deleted file mode 100644 index ebea9dfd..00000000 --- a/dist/abis/source/swpr-claimer.json +++ /dev/null @@ -1,193 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_swprToken", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "_merkleRoot", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_claimTimeLimit", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "AlreadyClaimed", - "type": "error" - }, - { - "inputs": [], - "name": "ClaimTimeLimitNotYetReached", - "type": "error" - }, - { - "inputs": [], - "name": "ClaimTimeLimitReached", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidMerkleProof", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidMerkleRoot", - "type": "error" - }, - { - "inputs": [], - "name": "PastClaimTimeLimit", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroAddressInput", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - }, - { - "internalType": "bytes32[]", - "name": "_proof", - "type": "bytes32[]" - } - ], - "name": "claim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimTimeLimit", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "claimed", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "merkleRoot", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "recover", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "swprToken", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/dist/constants/addresses.d.ts b/dist/constants/addresses.d.ts deleted file mode 100644 index 1f320b9e..00000000 --- a/dist/constants/addresses.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ChainId } from './chains'; -/** - * List of the Swapr Factory contract address for each chain - */ -export declare const FACTORY_ADDRESS: Record; -/** - * List of the Swapr Router contract address for each chain - */ -export declare const ROUTER_ADDRESS: Record; -/** - * List of the Swapr Staking Factory contract address for each chain - */ -export declare const STAKING_REWARDS_FACTORY_ADDRESS: Record; -/** - * List of the Swapr Staking Factory contract address for each chain - */ -export declare const SWPR_CLAIMER_ADDRESS: Record; -/** - * The Swapr Converter contract address, available on Arbritrum One - */ -export declare const SWPR_CONVERTER_ADDRESS: Record; -/** - * Multicall2 contract address - * NOTE: this is an external repository not maintained by any entity funded or directed by MakerDAO governance. - * @see https://github.com/mds1/multicall/blob/main/deployments.json to check - * MakerDAO's fork from https://github.com/makerdao/multicall - */ -export declare const MULTICALL2_ADDRESS: Record; diff --git a/dist/constants/addresses.js b/dist/constants/addresses.js deleted file mode 100644 index 00642397..00000000 --- a/dist/constants/addresses.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MULTICALL2_ADDRESS = exports.SWPR_CONVERTER_ADDRESS = exports.SWPR_CLAIMER_ADDRESS = exports.STAKING_REWARDS_FACTORY_ADDRESS = exports.ROUTER_ADDRESS = exports.FACTORY_ADDRESS = void 0; -const constants_1 = require("@ethersproject/constants"); -const _contracts_json_1 = require("@swapr/core/.contracts.json"); -const _contracts_json_2 = require("@swapr/periphery/.contracts.json"); -const chains_1 = require("./chains"); -const emptyAddressList = { - [chains_1.ChainId.MAINNET]: constants_1.AddressZero, - [chains_1.ChainId.RINKEBY]: constants_1.AddressZero, - [chains_1.ChainId.ARBITRUM_ONE]: constants_1.AddressZero, - [chains_1.ChainId.ARBITRUM_RINKEBY]: constants_1.AddressZero, - [chains_1.ChainId.ARBITRUM_GOERLI]: constants_1.AddressZero, - [chains_1.ChainId.XDAI]: constants_1.AddressZero, - [chains_1.ChainId.POLYGON]: constants_1.AddressZero, - [chains_1.ChainId.GOERLI]: constants_1.AddressZero, - [chains_1.ChainId.OPTIMISM_MAINNET]: constants_1.AddressZero, - [chains_1.ChainId.OPTIMISM_GOERLI]: constants_1.AddressZero, - [chains_1.ChainId.BSC_MAINNET]: constants_1.AddressZero, - [chains_1.ChainId.BSC_TESTNET]: constants_1.AddressZero, - [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: constants_1.AddressZero, - [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: constants_1.AddressZero, -}; -/** - * List of the Swapr Factory contract address for each chain - */ -exports.FACTORY_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.MAINNET]: _contracts_json_1.mainnet.factory, [chains_1.ChainId.RINKEBY]: _contracts_json_1.rinkeby.factory, [chains_1.ChainId.ARBITRUM_ONE]: _contracts_json_1.arbitrumOne.factory, [chains_1.ChainId.ARBITRUM_RINKEBY]: _contracts_json_1.arbitrumRinkebyTestnet.factory, [chains_1.ChainId.ARBITRUM_GOERLI]: _contracts_json_1.arbitrumGoerliTestnet.factory, [chains_1.ChainId.XDAI]: _contracts_json_1.xdai.factory, [chains_1.ChainId.GOERLI]: _contracts_json_1.goerli.factory }); -/** - * List of the Swapr Router contract address for each chain - */ -exports.ROUTER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.RINKEBY]: _contracts_json_2.rinkeby.router, [chains_1.ChainId.MAINNET]: _contracts_json_2.mainnet.router, [chains_1.ChainId.XDAI]: _contracts_json_2.xdai.router, [chains_1.ChainId.ARBITRUM_ONE]: _contracts_json_2.arbitrumOne.router, [chains_1.ChainId.ARBITRUM_RINKEBY]: _contracts_json_2.arbitrumRinkebyTestnet.router, [chains_1.ChainId.ARBITRUM_GOERLI]: _contracts_json_2.arbitrumGoerliTestnet.router, [chains_1.ChainId.GOERLI]: _contracts_json_2.goerli.router }); -/** - * List of the Swapr Staking Factory contract address for each chain - */ -exports.STAKING_REWARDS_FACTORY_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.MAINNET]: '0x156F0568a6cE827e5d39F6768A5D24B694e1EA7b', [chains_1.ChainId.RINKEBY]: '0x0f9E49d473B813abe33F1BAB11fa9E16eE850EBa', [chains_1.ChainId.XDAI]: '0xa039793Af0bb060c597362E8155a0327d9b8BEE8', [chains_1.ChainId.ARBITRUM_ONE]: '0xecA7F78d59D16812948849663b26FE10E320f80C', [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x41e657cAdE74f45b7E2F0F4a5AeE0239f2fB4E1F', [chains_1.ChainId.ARBITRUM_GOERLI]: '0x95Bf186929194099899139Ff79998cC147290F28' }); -/** - * List of the Swapr Staking Factory contract address for each chain - */ -exports.SWPR_CLAIMER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.RINKEBY]: '0x6D525E4115d339aD4e336bCF4C85A1Fb8f4a594C', [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x99583f330814E04de96C0288FBF82B5E35A009dc', [chains_1.ChainId.ARBITRUM_ONE]: '0xe54942077Df7b8EEf8D4e6bCe2f7B58B0082b0cd' }); -/** - * The Swapr Converter contract address, available on Arbritrum One - */ -exports.SWPR_CONVERTER_ADDRESS = Object.assign(Object.assign({}, emptyAddressList), { [chains_1.ChainId.ARBITRUM_ONE]: '0x2b058af96175A847Bf3E5457B3A702F807daDdFd' }); -/** - * Multicall2 contract address - * NOTE: this is an external repository not maintained by any entity funded or directed by MakerDAO governance. - * @see https://github.com/mds1/multicall/blob/main/deployments.json to check - * MakerDAO's fork from https://github.com/makerdao/multicall - */ -exports.MULTICALL2_ADDRESS = { - [chains_1.ChainId.MAINNET]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696', - [chains_1.ChainId.RINKEBY]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696', - [chains_1.ChainId.ARBITRUM_ONE]: '0x80c7dd17b01855a6d2347444a0fcc36136a314de', - [chains_1.ChainId.XDAI]: '0xFAa296891cA6CECAF2D86eF5F7590316d0A17dA0', - [chains_1.ChainId.ARBITRUM_RINKEBY]: '0x309e61A4c36a4a9f131f8844eA521F6384B6C9E3', - [chains_1.ChainId.ARBITRUM_GOERLI]: '0xBbB06b25484AB9E23FEe8Ee321Af8e253ea7A76a', - [chains_1.ChainId.POLYGON]: '0x275617327c958bD06b5D6b871E7f491D76113dd8', - [chains_1.ChainId.GOERLI]: '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696', - [chains_1.ChainId.OPTIMISM_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', - [chains_1.ChainId.OPTIMISM_GOERLI]: '0xca11bde05977b3631167028862be2a173976ca11', - [chains_1.ChainId.BSC_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', - [chains_1.ChainId.BSC_TESTNET]: '0xca11bde05977b3631167028862be2a173976ca11', - [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: '0xF9cda624FBC7e059355ce98a31693d299FACd963', - [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: '0xF9cda624FBC7e059355ce98a31693d299FACd963', -}; -//# sourceMappingURL=addresses.js.map \ No newline at end of file diff --git a/dist/constants/addresses.js.map b/dist/constants/addresses.js.map deleted file mode 100644 index 7e9a7528..00000000 --- a/dist/constants/addresses.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../src/constants/addresses.ts"],"names":[],"mappings":";;;AAAA,wDAAsD;AACtD,iEAQoC;AACpC,sEAQyC;AAEzC,qCAAkC;AAElC,MAAM,gBAAgB,GAA4B;IAChD,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,uBAAW;IAC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AC/D,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C;IACpE,CAAC,gBAAO,CAAC,IAAI,CAAC,EAAE,4CAA4C;IAC5D,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,4CAA4C;IACvE,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,gBAAO,CAAC,MAAM,CAAC,EAAE,4CAA4C;IAC9D,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,4CAA4C;IACvE,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,4CAA4C;IAC3E,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,4CAA4C;CAC5E,CAAA"} \ No newline at end of file diff --git a/dist/constants/chains.d.ts b/dist/constants/chains.d.ts deleted file mode 100644 index 540b994a..00000000 --- a/dist/constants/chains.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Chain Id - */ -export declare enum ChainId { - MAINNET = 1, - /** - * @deprecated Use GOERLI instead - */ - RINKEBY = 4, - GOERLI = 5, - /** - * @deprecated Use GNOSIS instead - */ - XDAI = 100, - GNOSIS = 100, - POLYGON = 137, - ARBITRUM_ONE = 42161, - ARBITRUM_RINKEBY = 421611, - ARBITRUM_GOERLI = 421613, - /** - * Optimism Mainnet - */ - OPTIMISM_MAINNET = 10, - /** - * Optimism Göerli - */ - OPTIMISM_GOERLI = 420, - BSC_MAINNET = 56, - BSC_TESTNET = 97, - ZK_SYNC_ERA_MAINNET = 324, - ZK_SYNC_ERA_TESTNET = 280 -} diff --git a/dist/constants/chains.js b/dist/constants/chains.js deleted file mode 100644 index 52d0417f..00000000 --- a/dist/constants/chains.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChainId = void 0; -/** - * Chain Id - */ -var ChainId; -(function (ChainId) { - ChainId[ChainId["MAINNET"] = 1] = "MAINNET"; - /** - * @deprecated Use GOERLI instead - */ - ChainId[ChainId["RINKEBY"] = 4] = "RINKEBY"; - ChainId[ChainId["GOERLI"] = 5] = "GOERLI"; - /** - * @deprecated Use GNOSIS instead - */ - ChainId[ChainId["XDAI"] = 100] = "XDAI"; - ChainId[ChainId["GNOSIS"] = 100] = "GNOSIS"; - ChainId[ChainId["POLYGON"] = 137] = "POLYGON"; - ChainId[ChainId["ARBITRUM_ONE"] = 42161] = "ARBITRUM_ONE"; - ChainId[ChainId["ARBITRUM_RINKEBY"] = 421611] = "ARBITRUM_RINKEBY"; - ChainId[ChainId["ARBITRUM_GOERLI"] = 421613] = "ARBITRUM_GOERLI"; - /** - * Optimism Mainnet - */ - ChainId[ChainId["OPTIMISM_MAINNET"] = 10] = "OPTIMISM_MAINNET"; - /** - * Optimism Göerli - */ - ChainId[ChainId["OPTIMISM_GOERLI"] = 420] = "OPTIMISM_GOERLI"; - ChainId[ChainId["BSC_MAINNET"] = 56] = "BSC_MAINNET"; - ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET"; - ChainId[ChainId["ZK_SYNC_ERA_MAINNET"] = 324] = "ZK_SYNC_ERA_MAINNET"; - ChainId[ChainId["ZK_SYNC_ERA_TESTNET"] = 280] = "ZK_SYNC_ERA_TESTNET"; -})(ChainId = exports.ChainId || (exports.ChainId = {})); -//# sourceMappingURL=chains.js.map \ No newline at end of file diff --git a/dist/constants/chains.js.map b/dist/constants/chains.js.map deleted file mode 100644 index 689de46a..00000000 --- a/dist/constants/chains.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chains.js","sourceRoot":"","sources":["../../src/constants/chains.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,OA8BX;AA9BD,WAAY,OAAO;IACjB,2CAAW,CAAA;IACX;;OAEG;IACH,2CAAW,CAAA;IACX,yCAAU,CAAA;IACV;;OAEG;IACH,uCAAU,CAAA;IACV,2CAAY,CAAA;IACZ,6CAAa,CAAA;IACb,yDAAoB,CAAA;IACpB,kEAAyB,CAAA;IACzB,gEAAwB,CAAA;IAExB;;OAEG;IACH,8DAAqB,CAAA;IACrB;;OAEG;IACH,6DAAqB,CAAA;IAErB,oDAAgB,CAAA;IAChB,oDAAgB,CAAA;IAChB,qEAAyB,CAAA;IACzB,qEAAyB,CAAA;AAC3B,CAAC,EA9BW,OAAO,GAAP,eAAO,KAAP,eAAO,QA8BlB"} \ No newline at end of file diff --git a/dist/constants/index.d.ts b/dist/constants/index.d.ts deleted file mode 100644 index 0b336974..00000000 --- a/dist/constants/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import JSBI from 'jsbi'; -export * from './addresses'; -export * from './chains'; -export * from './solidity'; -export type BigintIsh = JSBI | bigint | string; -export declare enum TradeType { - EXACT_INPUT = 0, - EXACT_OUTPUT = 1 -} -export declare enum Rounding { - ROUND_DOWN = 0, - ROUND_HALF_UP = 1, - ROUND_UP = 2 -} -export declare const SWPR_WHITELIST_IPFS_HASH = "QmcjTAvDJZU339jrc9Ky2pXKR68R1SjnwdyGSQjt1kad9r"; -export declare const INIT_CODE_HASH = "0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776"; -export declare const MINIMUM_LIQUIDITY: JSBI; -export declare const ZERO: JSBI; -export declare const ONE: JSBI; -export declare const TWO: JSBI; -export declare const THREE: JSBI; -export declare const FIVE: JSBI; -export declare const TEN: JSBI; -export declare const _25: JSBI; -export declare const SECONDS_IN_YEAR: JSBI; -export declare const _30: JSBI; -export declare const _100: JSBI; -export declare const _1000: JSBI; -export declare const _10000: JSBI; -export declare const defaultSwapFee: JSBI; -export declare const defaultProtocolFeeDenominator: JSBI; diff --git a/dist/constants/index.js b/dist/constants/index.js deleted file mode 100644 index a5269905..00000000 --- a/dist/constants/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultProtocolFeeDenominator = exports.defaultSwapFee = exports._10000 = exports._1000 = exports._100 = exports._30 = exports.SECONDS_IN_YEAR = exports._25 = exports.TEN = exports.FIVE = exports.THREE = exports.TWO = exports.ONE = exports.ZERO = exports.MINIMUM_LIQUIDITY = exports.INIT_CODE_HASH = exports.SWPR_WHITELIST_IPFS_HASH = exports.Rounding = exports.TradeType = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -tslib_1.__exportStar(require("./addresses"), exports); -tslib_1.__exportStar(require("./chains"), exports); -tslib_1.__exportStar(require("./solidity"), exports); -var TradeType; -(function (TradeType) { - TradeType[TradeType["EXACT_INPUT"] = 0] = "EXACT_INPUT"; - TradeType[TradeType["EXACT_OUTPUT"] = 1] = "EXACT_OUTPUT"; -})(TradeType = exports.TradeType || (exports.TradeType = {})); -var Rounding; -(function (Rounding) { - Rounding[Rounding["ROUND_DOWN"] = 0] = "ROUND_DOWN"; - Rounding[Rounding["ROUND_HALF_UP"] = 1] = "ROUND_HALF_UP"; - Rounding[Rounding["ROUND_UP"] = 2] = "ROUND_UP"; -})(Rounding = exports.Rounding || (exports.Rounding = {})); -exports.SWPR_WHITELIST_IPFS_HASH = 'QmcjTAvDJZU339jrc9Ky2pXKR68R1SjnwdyGSQjt1kad9r'; -exports.INIT_CODE_HASH = '0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776'; -exports.MINIMUM_LIQUIDITY = jsbi_1.default.BigInt(1000); -// exports for internal consumption -exports.ZERO = jsbi_1.default.BigInt(0); -exports.ONE = jsbi_1.default.BigInt(1); -exports.TWO = jsbi_1.default.BigInt(2); -exports.THREE = jsbi_1.default.BigInt(3); -exports.FIVE = jsbi_1.default.BigInt(5); -exports.TEN = jsbi_1.default.BigInt(10); -exports._25 = jsbi_1.default.BigInt(25); -exports.SECONDS_IN_YEAR = jsbi_1.default.BigInt(31536000); -exports._30 = jsbi_1.default.BigInt(30); -exports._100 = jsbi_1.default.BigInt(100); -exports._1000 = jsbi_1.default.BigInt(1000); -exports._10000 = jsbi_1.default.BigInt(10000); -exports.defaultSwapFee = exports._25; -exports.defaultProtocolFeeDenominator = exports.FIVE; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/constants/index.js.map b/dist/constants/index.js.map deleted file mode 100644 index 3b39d8c9..00000000 --- a/dist/constants/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,sDAA2B;AAC3B,mDAAwB;AACxB,qDAA0B;AAK1B,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,uDAAW,CAAA;IACX,yDAAY,CAAA;AACd,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,mDAAU,CAAA;IACV,yDAAa,CAAA;IACb,+CAAQ,CAAA;AACV,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAEY,QAAA,wBAAwB,GAAG,gDAAgD,CAAA;AAE3E,QAAA,cAAc,GAAG,oEAAoE,CAAA;AAErF,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElD,mCAAmC;AACtB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACpB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACpB,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACtB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACvC,QAAA,GAAG,GAAG,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACrB,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AACvB,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AACzB,QAAA,MAAM,GAAG,cAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAE3B,QAAA,cAAc,GAAG,WAAG,CAAA;AACpB,QAAA,6BAA6B,GAAG,YAAI,CAAA"} \ No newline at end of file diff --git a/dist/constants/solidity.d.ts b/dist/constants/solidity.d.ts deleted file mode 100644 index af09722d..00000000 --- a/dist/constants/solidity.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import JSBI from 'jsbi'; -export declare enum SolidityType { - uint8 = "uint8", - uint256 = "uint256" -} -export declare const SOLIDITY_TYPE_MAXIMA: { - uint8: JSBI; - uint256: JSBI; -}; diff --git a/dist/constants/solidity.js b/dist/constants/solidity.js deleted file mode 100644 index 413ef173..00000000 --- a/dist/constants/solidity.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SOLIDITY_TYPE_MAXIMA = exports.SolidityType = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -var SolidityType; -(function (SolidityType) { - SolidityType["uint8"] = "uint8"; - SolidityType["uint256"] = "uint256"; -})(SolidityType = exports.SolidityType || (exports.SolidityType = {})); -exports.SOLIDITY_TYPE_MAXIMA = { - [SolidityType.uint8]: jsbi_1.default.BigInt('0xff'), - [SolidityType.uint256]: jsbi_1.default.BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'), -}; -//# sourceMappingURL=solidity.js.map \ No newline at end of file diff --git a/dist/constants/solidity.js.map b/dist/constants/solidity.js.map deleted file mode 100644 index 4c0a3968..00000000 --- a/dist/constants/solidity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"solidity.js","sourceRoot":"","sources":["../../src/constants/solidity.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AAEvB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAEY,QAAA,oBAAoB,GAAG;IAClC,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,oEAAoE,CAAC;CAC1G,CAAA"} \ No newline at end of file diff --git a/dist/entities/DistributionCampaignBase.d.ts b/dist/entities/DistributionCampaignBase.d.ts deleted file mode 100644 index 77ee9fc7..00000000 --- a/dist/entities/DistributionCampaignBase.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import JSBI from 'jsbi'; -import { BigintIsh, ChainId } from '../constants'; -import { Percent, TokenAmount } from './fractions'; -import { PricedTokenAmount } from './fractions/priced-token-amount'; -export interface DistributionCampaignBaseConstructoParams { - startsAt: BigintIsh; - endsAt: BigintIsh; - rewards: PricedTokenAmount[]; - staked: PricedTokenAmount; - locked: boolean; - stakingCap: TokenAmount; - address?: string; -} -export declare class DistributionCampaignBase { - readonly chainId: ChainId; - readonly address?: string; - readonly startsAt: BigintIsh; - readonly endsAt: BigintIsh; - readonly rewards: PricedTokenAmount[]; - readonly staked: PricedTokenAmount; - readonly duration: BigintIsh; - readonly locked: boolean; - readonly stakingCap: TokenAmount; - constructor({ startsAt, endsAt, rewards, staked, locked, stakingCap, address, }: DistributionCampaignBaseConstructoParams); - get remainingDuration(): JSBI; - get remainingDistributionPercentage(): Percent; - get remainingRewards(): PricedTokenAmount[]; - get apy(): Percent; - get currentlyActive(): boolean; - get ended(): boolean; -} diff --git a/dist/entities/DistributionCampaignBase.js b/dist/entities/DistributionCampaignBase.js deleted file mode 100644 index 357ca581..00000000 --- a/dist/entities/DistributionCampaignBase.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DistributionCampaignBase = void 0; -const tslib_1 = require("tslib"); -const units_1 = require("@ethersproject/units"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../constants"); -const utils_1 = require("../utils"); -const fractions_1 = require("./fractions"); -const priced_token_amount_1 = require("./fractions/priced-token-amount"); -const token_1 = require("./token"); -const MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY = { - [constants_1.ChainId.RINKEBY]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.RINKEBY).decimals).toString(), constants_1.ChainId.RINKEBY), - [constants_1.ChainId.MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.1', token_1.Token.getNative(constants_1.ChainId.MAINNET).decimals).toString(), constants_1.ChainId.MAINNET), - [constants_1.ChainId.XDAI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('1000', token_1.Token.getNative(constants_1.ChainId.XDAI).decimals).toString(), constants_1.ChainId.XDAI), - [constants_1.ChainId.ARBITRUM_ONE]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.1', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_ONE).decimals).toString(), constants_1.ChainId.ARBITRUM_ONE), - [constants_1.ChainId.ARBITRUM_RINKEBY]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_RINKEBY).decimals).toString(), constants_1.ChainId.ARBITRUM_RINKEBY), - [constants_1.ChainId.ARBITRUM_GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.ARBITRUM_GOERLI).decimals).toString(), constants_1.ChainId.ARBITRUM_GOERLI), - [constants_1.ChainId.POLYGON]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.POLYGON).decimals).toString(), constants_1.ChainId.POLYGON), - [constants_1.ChainId.GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.GOERLI).decimals).toString(), constants_1.ChainId.GOERLI), - [constants_1.ChainId.OPTIMISM_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.OPTIMISM_MAINNET).decimals).toString(), constants_1.ChainId.OPTIMISM_MAINNET), - [constants_1.ChainId.OPTIMISM_GOERLI]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.OPTIMISM_GOERLI).decimals).toString(), constants_1.ChainId.OPTIMISM_GOERLI), - [constants_1.ChainId.BSC_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.BSC_MAINNET).decimals).toString(), constants_1.ChainId.BSC_MAINNET), - [constants_1.ChainId.BSC_TESTNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0.05', token_1.Token.getNative(constants_1.ChainId.BSC_TESTNET).decimals).toString(), constants_1.ChainId.BSC_TESTNET), - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.ZK_SYNC_ERA_MAINNET).decimals).toString(), constants_1.ChainId.ZK_SYNC_ERA_MAINNET), - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: fractions_1.CurrencyAmount.nativeCurrency((0, units_1.parseUnits)('0', token_1.Token.getNative(constants_1.ChainId.ZK_SYNC_ERA_TESTNET).decimals).toString(), constants_1.ChainId.ZK_SYNC_ERA_TESTNET), -}; -class DistributionCampaignBase { - constructor({ startsAt, endsAt, rewards, staked, locked, stakingCap, address, }) { - (0, tiny_invariant_1.default)(jsbi_1.default.lessThan((0, utils_1.parseBigintIsh)(startsAt), (0, utils_1.parseBigintIsh)(endsAt)), 'INCONSISTENT_DATES'); - for (const reward of rewards) { - (0, tiny_invariant_1.default)(staked.token.chainId === reward.token.chainId, 'CHAIN_ID'); - } - this.chainId = staked.token.chainId; - this.startsAt = startsAt; - this.endsAt = endsAt; - this.rewards = rewards; - this.staked = staked; - this.duration = jsbi_1.default.subtract((0, utils_1.parseBigintIsh)(endsAt), (0, utils_1.parseBigintIsh)(startsAt)); - this.locked = locked; - this.stakingCap = stakingCap; - this.address = address; - } - get remainingDuration() { - const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); - const jsbiStartsAt = (0, utils_1.parseBigintIsh)(this.startsAt); - const jsbiEndsAt = (0, utils_1.parseBigintIsh)(this.endsAt); - if (jsbi_1.default.lessThan(now, jsbiStartsAt)) - return jsbi_1.default.subtract(jsbiEndsAt, jsbiStartsAt); - if (jsbi_1.default.greaterThanOrEqual(now, jsbiEndsAt)) - return jsbi_1.default.BigInt('0'); - return jsbi_1.default.subtract(jsbiEndsAt, now); - } - get remainingDistributionPercentage() { - const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); - const jsbiStartsAt = (0, utils_1.parseBigintIsh)(this.startsAt); - const jsbiEndsAt = (0, utils_1.parseBigintIsh)(this.endsAt); - if (jsbi_1.default.lessThan(now, jsbiStartsAt)) - return new fractions_1.Percent('100', '100'); - if (jsbi_1.default.greaterThanOrEqual(now, jsbiEndsAt)) - return new fractions_1.Percent('0', '100'); - return new fractions_1.Percent(jsbi_1.default.subtract(jsbiEndsAt, now), this.duration); - } - get remainingRewards() { - const remainingDistributionPercentage = this.remainingDistributionPercentage; - return this.rewards.map((reward) => { - return new priced_token_amount_1.PricedTokenAmount(reward.token, remainingDistributionPercentage.multiply(reward.raw).toFixed(0)); - }); - } - get apy() { - // when the campaign has ended, apy is returned as 0 - if (this.remainingDuration.toString() === '0') - return new fractions_1.Percent('0', '1'); - const remainingRewards = this.remainingRewards; - let stakedValueNativeCurrency = this.staked.nativeCurrencyAmount; - if (stakedValueNativeCurrency.lessThan(MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY[this.chainId])) { - stakedValueNativeCurrency = MINIMUM_STAKED_AMOUNT_NATIVE_CURRENCY[this.chainId]; - } - const cumulativeRemainingRewardAmountNativeCurrency = remainingRewards.reduce((accumulator, remainingRewardAmount) => { - return accumulator.add(remainingRewardAmount.nativeCurrencyAmount); - }, fractions_1.CurrencyAmount.nativeCurrency('0', this.chainId)); - const yieldInPeriod = cumulativeRemainingRewardAmountNativeCurrency.divide(stakedValueNativeCurrency); - const annualizationMultiplier = new fractions_1.Fraction(constants_1.SECONDS_IN_YEAR.toString(), this.remainingDuration.toString()); - const rawApy = yieldInPeriod.multiply(annualizationMultiplier); - return new fractions_1.Percent(rawApy.numerator, rawApy.denominator); - } - get currentlyActive() { - const now = jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)); - return (jsbi_1.default.lessThanOrEqual((0, utils_1.parseBigintIsh)(this.startsAt), now) && jsbi_1.default.greaterThan((0, utils_1.parseBigintIsh)(this.endsAt), now)); - } - get ended() { - return jsbi_1.default.greaterThan(jsbi_1.default.BigInt(Math.floor(Date.now() / 1000)), (0, utils_1.parseBigintIsh)(this.endsAt)); - } -} -exports.DistributionCampaignBase = DistributionCampaignBase; -//# sourceMappingURL=DistributionCampaignBase.js.map \ No newline at end of file diff --git a/dist/entities/DistributionCampaignBase.js.map b/dist/entities/DistributionCampaignBase.js.map deleted file mode 100644 index 39bc7b4f..00000000 --- a/dist/entities/DistributionCampaignBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DistributionCampaignBase.js","sourceRoot":"","sources":["../../src/entities/DistributionCampaignBase.ts"],"names":[],"mappings":";;;;AAAA,gDAAiD;AACjD,wDAAuB;AACvB,4EAAsC;AAEtC,4CAAkE;AAClE,oCAAyC;AACzC,2CAA4E;AAC5E,yEAAmE;AACnE,mCAA+B;AAE/B,MAAM,qCAAqC,GAAoC;IAC7E,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC9C,IAAA,kBAAU,EAAC,MAAM,EAAE,aAAK,CAAC,SAAS,CAAC,mBAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EACxE,mBAAO,CAAC,OAAO,CAChB;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC9C,IAAA,kBAAU,EAAC,KAAK,EAAE,aAAK,CAAC,SAAS,CAAC,mBAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EACvE,mBAAO,CAAC,OAAO,CAChB;IACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,0BAAc,CAAC,cAAc,CAC3C,IAAA,kBAAU,EAAC,MAAM,EAAE,aAAK,CAAC,SAAS,CAAC,mBAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EACrE,mBAAO,CAAC,IAAI,CACb;IACD,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,0BAAc,CAAC,cAAc,CACnD,IAAA,kBAAU,EAAC,KAAK,EAA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,eAAe,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,cAAI,CAAC,WAAW,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAC/G,CAAA;IACH,CAAC;IAED,IAAW,KAAK;QACd,OAAO,cAAI,CAAC,WAAW,CAAC,cAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,IAAA,sBAAc,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IAClG,CAAC;CACF;AA9FD,4DA8FC"} \ No newline at end of file diff --git a/dist/entities/currency.d.ts b/dist/entities/currency.d.ts deleted file mode 100644 index bc435d6a..00000000 --- a/dist/entities/currency.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { ChainId } from '../constants'; -/** - * A currency is any fungible financial instrument on the target chain. - * - * The only instances of the base class `Currency` are native currencies such as Ether for Ethereum and xDAI for xDAI. - */ -export declare class Currency { - readonly decimals: number; - readonly symbol?: string; - readonly name?: string; - readonly address?: string; - static readonly USD: Currency; - /** - * Ethereum and Ethereum testnets native currency. - */ - static readonly ETHER: Currency; - static readonly OPTIMISM_ETHER: Currency; - /** - * Gnosis Chain native currency - */ - static readonly XDAI: Currency; - /** - * Polygon PoS native currency - */ - static readonly MATIC: Currency; - /** - * BSC native currency - */ - static readonly BNB: Currency; - private static readonly NATIVE_CURRENCY; - /** - * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. - * @param decimals decimals of the currency - * @param symbol symbol of the currency - * @param name of the currency - */ - protected constructor(decimals: number, symbol?: string, name?: string, address?: string); - static isNative(currency: Currency): boolean; - static getNative(chainId: ChainId): Currency; -} -export declare const USD: Currency; -export declare const ETHER: Currency; -export declare const XDAI: Currency; -export declare const MATIC: Currency; -export declare const BNB: Currency; diff --git a/dist/entities/currency.js b/dist/entities/currency.js deleted file mode 100644 index 55b98fba..00000000 --- a/dist/entities/currency.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BNB = exports.MATIC = exports.XDAI = exports.ETHER = exports.USD = exports.Currency = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const constants_1 = require("../constants"); -const utils_1 = require("../utils"); -const NULL_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'; -/** - * A currency is any fungible financial instrument on the target chain. - * - * The only instances of the base class `Currency` are native currencies such as Ether for Ethereum and xDAI for xDAI. - */ -class Currency { - /** - * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. - * @param decimals decimals of the currency - * @param symbol symbol of the currency - * @param name of the currency - */ - constructor(decimals, symbol, name, address) { - (0, utils_1.validateSolidityTypeInstance)(jsbi_1.default.BigInt(decimals), constants_1.SolidityType.uint8); - this.decimals = decimals; - this.symbol = symbol; - this.name = name; - this.address = address; - } - static isNative(currency) { - return Object.values(Currency.NATIVE_CURRENCY).indexOf(currency) >= 0; - } - static getNative(chainId) { - return Currency.NATIVE_CURRENCY[chainId]; - } -} -exports.Currency = Currency; -// fiat currencies used to represent countervalues -Currency.USD = new Currency(18, 'USD', 'US dollar'); -/** - * Ethereum and Ethereum testnets native currency. - */ -Currency.ETHER = new Currency(18, 'ETH', 'Ether', NULL_ADDRESS); -Currency.OPTIMISM_ETHER = new Currency(18, 'ETH', 'Ether', '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000'); -/** - * Gnosis Chain native currency - */ -Currency.XDAI = new Currency(18, 'XDAI', 'xDAI', NULL_ADDRESS); -/** - * Polygon PoS native currency - */ -Currency.MATIC = new Currency(18, 'MATIC', 'Matic', NULL_ADDRESS); -/** - * BSC native currency - */ -Currency.BNB = new Currency(18, 'BNB', 'Binance Coin', NULL_ADDRESS); -Currency.NATIVE_CURRENCY = { - [constants_1.ChainId.MAINNET]: Currency.ETHER, - [constants_1.ChainId.RINKEBY]: Currency.ETHER, - [constants_1.ChainId.ARBITRUM_ONE]: Currency.ETHER, - [constants_1.ChainId.ARBITRUM_RINKEBY]: Currency.ETHER, - [constants_1.ChainId.ARBITRUM_GOERLI]: Currency.ETHER, - [constants_1.ChainId.XDAI]: Currency.XDAI, - [constants_1.ChainId.POLYGON]: Currency.MATIC, - [constants_1.ChainId.GOERLI]: Currency.ETHER, - [constants_1.ChainId.OPTIMISM_MAINNET]: Currency.OPTIMISM_ETHER, - [constants_1.ChainId.OPTIMISM_GOERLI]: Currency.OPTIMISM_ETHER, - [constants_1.ChainId.BSC_MAINNET]: Currency.BNB, - [constants_1.ChainId.BSC_TESTNET]: Currency.BNB, - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: Currency.ETHER, - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: Currency.ETHER, -}; -exports.USD = Currency.USD; -exports.ETHER = Currency.ETHER; -exports.XDAI = Currency.XDAI; -exports.MATIC = Currency.MATIC; -exports.BNB = Currency.BNB; -//# sourceMappingURL=currency.js.map \ No newline at end of file diff --git a/dist/entities/currency.js.map b/dist/entities/currency.js.map deleted file mode 100644 index d91435e6..00000000 --- a/dist/entities/currency.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/entities/currency.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AAEvB,4CAAoD;AACpD,oCAAuD;AAEvD,MAAM,YAAY,GAAG,4CAA4C,CAAA;AACjE;;;;GAIG;AACH,MAAa,QAAQ;IAmDnB;;;;;OAKG;IACH,YAAsB,QAAgB,EAAE,MAAe,EAAE,IAAa,EAAE,OAAgB;QACtF,IAAA,oCAA4B,EAAC,cAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,wBAAY,CAAC,KAAK,CAAC,CAAA;QAEvE,IAAI,CAAC,QAA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Y,CAAC,EAAE,QAAQ,CAAC,KAAK;IACtC,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,KAAK;IAC1C,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,KAAK;IACzC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI;IAC7B,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK;IACjC,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,KAAK;IAChC,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,cAAc;IACnD,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc;IAClD,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnC,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,KAAK;IAC7C,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,KAAK;CAC9C,CAAA;AA0BU,QAAA,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAA;AAElB,QAAA,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAA;AACtB,QAAA,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;AACpB,QAAA,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAA;AACtB,QAAA,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAA"} \ No newline at end of file diff --git a/dist/entities/fractions/currencyAmount.d.ts b/dist/entities/fractions/currencyAmount.d.ts deleted file mode 100644 index 45e219bf..00000000 --- a/dist/entities/fractions/currencyAmount.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import JSBI from 'jsbi'; -import { BigintIsh, Rounding } from '../../constants'; -import { Currency } from '../currency'; -import { Fraction } from './fraction'; -export declare class CurrencyAmount extends Fraction { - readonly currency: Currency; - /** - * Helper that calls the constructor with the ETHER currency - * @param amount ether amount in wei - */ - static nativeCurrency(amount: BigintIsh, chainId: number): CurrencyAmount; - /** - * Helper that calls the constructor with the USD currency - * @param amount amount of usd experessed in wei (with 18 decimals resolution) - */ - static usd(amount: BigintIsh): CurrencyAmount; - protected constructor(currency: Currency, amount: BigintIsh); - get raw(): JSBI; - add(other: CurrencyAmount): CurrencyAmount; - subtract(other: CurrencyAmount): CurrencyAmount; - toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; - toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; - toExact(format?: object): string; -} diff --git a/dist/entities/fractions/currencyAmount.js b/dist/entities/fractions/currencyAmount.js deleted file mode 100644 index 27b1e9c2..00000000 --- a/dist/entities/fractions/currencyAmount.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CurrencyAmount = void 0; -const tslib_1 = require("tslib"); -const big_js_1 = tslib_1.__importDefault(require("big.js")); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const toformat_1 = tslib_1.__importDefault(require("toformat")); -const constants_1 = require("../../constants"); -const utils_1 = require("../../utils"); -const currency_1 = require("../currency"); -const token_1 = require("../token"); -const fraction_1 = require("./fraction"); -const Big = (0, toformat_1.default)(big_js_1.default); -class CurrencyAmount extends fraction_1.Fraction { - /** - * Helper that calls the constructor with the ETHER currency - * @param amount ether amount in wei - */ - static nativeCurrency(amount, chainId) { - const nativeCurrency = currency_1.Currency.getNative(chainId); - (0, tiny_invariant_1.default)(!!nativeCurrency, 'NO_NATIVE_CURRENCY'); - return new CurrencyAmount(nativeCurrency, amount); - } - /** - * Helper that calls the constructor with the USD currency - * @param amount amount of usd experessed in wei (with 18 decimals resolution) - */ - static usd(amount) { - return new CurrencyAmount(currency_1.USD, amount); - } - // amount _must_ be raw, i.e. in the native representation - constructor(currency, amount) { - const parsedAmount = (0, utils_1.parseBigintIsh)(amount); - (0, utils_1.validateSolidityTypeInstance)(parsedAmount, constants_1.SolidityType.uint256); - super(parsedAmount, jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(currency.decimals))); - this.currency = currency; - } - get raw() { - return this.numerator; - } - add(other) { - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(this.currency, other.currency), 'TOKEN'); - return new CurrencyAmount(this.currency, jsbi_1.default.add(this.raw, other.raw)); - } - subtract(other) { - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(this.currency, other.currency), 'TOKEN'); - return new CurrencyAmount(this.currency, jsbi_1.default.subtract(this.raw, other.raw)); - } - toSignificant(significantDigits = 6, format, rounding = constants_1.Rounding.ROUND_DOWN) { - return super.toSignificant(significantDigits, format, rounding); - } - toFixed(decimalPlaces = this.currency.decimals, format, rounding = constants_1.Rounding.ROUND_DOWN) { - (0, tiny_invariant_1.default)(decimalPlaces <= this.currency.decimals, 'DECIMALS'); - return super.toFixed(decimalPlaces, format, rounding); - } - toExact(format = { groupSeparator: '' }) { - Big.DP = this.currency.decimals; - return new Big(this.numerator.toString()).div(this.denominator.toString()).toFormat(format); - } -} -exports.CurrencyAmount = CurrencyAmount; -//# sourceMappingURL=currencyAmount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/currencyAmount.js.map b/dist/entities/fractions/currencyAmount.js.map deleted file mode 100644 index 73c68448..00000000 --- a/dist/entities/fractions/currencyAmount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"currencyAmount.js","sourceRoot":"","sources":["../../../src/entities/fractions/currencyAmount.ts"],"names":[],"mappings":";;;;AAAA,4DAAyB;AACzB,wDAAuB;AACvB,4EAAsC;AACtC,gEAA+B;AAE/B,+CAAwE;AACxE,uCAA0E;AAC1E,0CAA2C;AAC3C,oCAAyC;AACzC,yCAAqC;AAErC,MAAM,GAAG,GAAG,IAAA,kBAAQ,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,wBAAS,EAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAA;QACjE,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9E,CAAC;IAEM,aAAa,CAAC,iBAAiB,GAAG,CAAC,EAAE,MAAe,EAAE,WAAqB,oBAAQ,CAAC,UAAU;QACnG,OAAO,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACjE,CAAC;IAEM,OAAO,CACZ,gBAAwB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAC9C,MAAe,EACf,WAAqB,oBAAQ,CAAC,UAAU;QAExC,IAAA,wBAAS,EAAC,aAAa,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAC9D,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACvD,CAAC;IAEM,OAAO,CAAC,SAAiB,EAAE,cAAc,EAAE,EAAE,EAAE;QACpD,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAA;QAC/B,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC7F,CAAC;CACF;AA7DD,wCA6DC"} \ No newline at end of file diff --git a/dist/entities/fractions/fraction.d.ts b/dist/entities/fractions/fraction.d.ts deleted file mode 100644 index 6e9e6a0b..00000000 --- a/dist/entities/fractions/fraction.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import JSBI from 'jsbi'; -import { BigintIsh, Rounding } from '../../constants'; -export declare class Fraction { - readonly numerator: JSBI; - readonly denominator: JSBI; - constructor(numerator: BigintIsh, denominator?: BigintIsh); - get quotient(): JSBI; - get remainder(): Fraction; - invert(): Fraction; - add(other: Fraction | BigintIsh): Fraction; - subtract(other: Fraction | BigintIsh): Fraction; - lessThan(other: Fraction | BigintIsh): boolean; - equalTo(other: Fraction | BigintIsh): boolean; - greaterThan(other: Fraction | BigintIsh): boolean; - multiply(other: Fraction | BigintIsh): Fraction; - divide(other: Fraction | BigintIsh): Fraction; - toSignificant(significantDigits: number, format?: object, rounding?: Rounding): string; - toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string; -} diff --git a/dist/entities/fractions/fraction.js b/dist/entities/fractions/fraction.js deleted file mode 100644 index 781d6b42..00000000 --- a/dist/entities/fractions/fraction.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Fraction = void 0; -const tslib_1 = require("tslib"); -const big_js_1 = tslib_1.__importDefault(require("big.js")); -const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const toformat_1 = tslib_1.__importDefault(require("toformat")); -const constants_1 = require("../../constants"); -const constants_2 = require("../../constants"); -const utils_1 = require("../../utils"); -const Decimal = (0, toformat_1.default)(decimal_js_light_1.default); -const Big = (0, toformat_1.default)(big_js_1.default); -const toSignificantRounding = { - [constants_1.Rounding.ROUND_DOWN]: Decimal.ROUND_DOWN, - [constants_1.Rounding.ROUND_HALF_UP]: Decimal.ROUND_HALF_UP, - [constants_1.Rounding.ROUND_UP]: Decimal.ROUND_UP, -}; -const toFixedRounding = { - [constants_1.Rounding.ROUND_DOWN]: 0 /* RoundingMode.RoundDown */, - [constants_1.Rounding.ROUND_HALF_UP]: 1 /* RoundingMode.RoundHalfUp */, - [constants_1.Rounding.ROUND_UP]: 3 /* RoundingMode.RoundUp */, -}; -class Fraction { - constructor(numerator, denominator = constants_2.ONE) { - this.numerator = (0, utils_1.parseBigintIsh)(numerator); - this.denominator = (0, utils_1.parseBigintIsh)(denominator); - } - // performs floor division - get quotient() { - return jsbi_1.default.divide(this.numerator, this.denominator); - } - // remainder after floor division - get remainder() { - return new Fraction(jsbi_1.default.remainder(this.numerator, this.denominator), this.denominator); - } - invert() { - return new Fraction(this.denominator, this.numerator); - } - add(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - if (jsbi_1.default.equal(this.denominator, otherParsed.denominator)) { - return new Fraction(jsbi_1.default.add(this.numerator, otherParsed.numerator), this.denominator); - } - return new Fraction(jsbi_1.default.add(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); - } - subtract(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - if (jsbi_1.default.equal(this.denominator, otherParsed.denominator)) { - return new Fraction(jsbi_1.default.subtract(this.numerator, otherParsed.numerator), this.denominator); - } - return new Fraction(jsbi_1.default.subtract(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); - } - lessThan(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - return jsbi_1.default.lessThan(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); - } - equalTo(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - return jsbi_1.default.equal(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); - } - greaterThan(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - return jsbi_1.default.greaterThan(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(otherParsed.numerator, this.denominator)); - } - multiply(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - return new Fraction(jsbi_1.default.multiply(this.numerator, otherParsed.numerator), jsbi_1.default.multiply(this.denominator, otherParsed.denominator)); - } - divide(other) { - const otherParsed = other instanceof Fraction ? other : new Fraction((0, utils_1.parseBigintIsh)(other)); - return new Fraction(jsbi_1.default.multiply(this.numerator, otherParsed.denominator), jsbi_1.default.multiply(this.denominator, otherParsed.numerator)); - } - toSignificant(significantDigits, format = { groupSeparator: '' }, rounding = constants_1.Rounding.ROUND_HALF_UP) { - (0, tiny_invariant_1.default)(Number.isInteger(significantDigits), `${significantDigits} is not an integer.`); - (0, tiny_invariant_1.default)(significantDigits > 0, `${significantDigits} is not positive.`); - Decimal.set({ precision: significantDigits + 1, rounding: toSignificantRounding[rounding] }); - const quotient = new Decimal(this.numerator.toString()) - .div(this.denominator.toString()) - .toSignificantDigits(significantDigits); - return quotient.toFormat(quotient.decimalPlaces(), format); - } - toFixed(decimalPlaces, format = { groupSeparator: '' }, rounding = constants_1.Rounding.ROUND_HALF_UP) { - (0, tiny_invariant_1.default)(Number.isInteger(decimalPlaces), `${decimalPlaces} is not an integer.`); - (0, tiny_invariant_1.default)(decimalPlaces >= 0, `${decimalPlaces} is negative.`); - Big.DP = decimalPlaces; - Big.RM = toFixedRounding[rounding]; - return new Big(this.numerator.toString()).div(this.denominator.toString()).toFormat(decimalPlaces, format); - } -} -exports.Fraction = Fraction; -//# sourceMappingURL=fraction.js.map \ No newline at end of file diff --git a/dist/entities/fractions/fraction.js.map b/dist/entities/fractions/fraction.js.map deleted file mode 100644 index ce751d93..00000000 --- a/dist/entities/fractions/fraction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fraction.js","sourceRoot":"","sources":["../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,wBAAS,EAAC,iBAAiB,GAAG,CAAC,EAAE,GAAG,iBAAiB,mBAAmB,CAAC,CAAA;QAEzE,OAAO,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC5F,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;aACpD,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;aAChC,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;QACzC,OAAO,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,EAAE,EAAE,MAAM,CAAC,CAAA;IAC5D,CAAC;IAEM,OAAO,CACZ,aAAqB,EACrB,SAAiB,EAAE,cAAc,EAAE,EAAE,EAAE,EACvC,WAAqB,oBAAQ,CAAC,aAAa;QAE3C,IAAA,wBAAS,EAAC,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,GAAG,aAAa,qBAAqB,CAAC,CAAA;QACjF,IAAA,wBAAS,EAAC,aAAa,IAAI,CAAC,EAAE,GAAG,aAAa,eAAe,CAAC,CAAA;QAE9D,GAAG,CAAC,EAAE,GAAG,aAAa,CAAA;QACtB,GAAG,CAAC,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAA;QAClC,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC5G,CAAC;CACF;AAtHD,4BAsHC"} \ No newline at end of file diff --git a/dist/entities/fractions/index.d.ts b/dist/entities/fractions/index.d.ts deleted file mode 100644 index 7124ea8f..00000000 --- a/dist/entities/fractions/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './currencyAmount'; -export * from './fraction'; -export * from './percent'; -export * from './price'; -export * from './priced-token-amount'; -export * from './tokenAmount'; diff --git a/dist/entities/fractions/index.js b/dist/entities/fractions/index.js deleted file mode 100644 index 59c31f21..00000000 --- a/dist/entities/fractions/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./currencyAmount"), exports); -tslib_1.__exportStar(require("./fraction"), exports); -tslib_1.__exportStar(require("./percent"), exports); -tslib_1.__exportStar(require("./price"), exports); -tslib_1.__exportStar(require("./priced-token-amount"), exports); -tslib_1.__exportStar(require("./tokenAmount"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/fractions/index.js.map b/dist/entities/fractions/index.js.map deleted file mode 100644 index f6008678..00000000 --- a/dist/entities/fractions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/fractions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC;AAChC,qDAA0B;AAC1B,oDAAyB;AACzB,kDAAuB;AACvB,gEAAqC;AACrC,wDAA6B"} \ No newline at end of file diff --git a/dist/entities/fractions/percent.d.ts b/dist/entities/fractions/percent.d.ts deleted file mode 100644 index 3089a80d..00000000 --- a/dist/entities/fractions/percent.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Rounding } from '../../constants'; -import { Fraction } from './fraction'; -export declare class Percent extends Fraction { - toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; - toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; -} diff --git a/dist/entities/fractions/percent.js b/dist/entities/fractions/percent.js deleted file mode 100644 index 6cb666e1..00000000 --- a/dist/entities/fractions/percent.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Percent = void 0; -const constants_1 = require("../../constants"); -const fraction_1 = require("./fraction"); -const _100_PERCENT = new fraction_1.Fraction(constants_1._100); -class Percent extends fraction_1.Fraction { - toSignificant(significantDigits = 5, format, rounding) { - return this.multiply(_100_PERCENT).toSignificant(significantDigits, format, rounding); - } - toFixed(decimalPlaces = 2, format, rounding) { - return this.multiply(_100_PERCENT).toFixed(decimalPlaces, format, rounding); - } -} -exports.Percent = Percent; -//# sourceMappingURL=percent.js.map \ No newline at end of file diff --git a/dist/entities/fractions/percent.js.map b/dist/entities/fractions/percent.js.map deleted file mode 100644 index f932d696..00000000 --- a/dist/entities/fractions/percent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"percent.js","sourceRoot":"","sources":["../../../src/entities/fractions/percent.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAqC;AAErC,MAAM,YAAY,GAAG,IAAI,mBAAQ,CAAC,gBAAI,CAAC,CAAA;AAEvC,MAAa,OAAQ,SAAQ,mBAAQ;IAC5B,aAAa,CAAC,iBAAiB,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QAC9E,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACvF,CAAC;IAEM,OAAO,CAAC,aAAa,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QACpE,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC7E,CAAC;CACF;AARD,0BAQC"} \ No newline at end of file diff --git a/dist/entities/fractions/price.d.ts b/dist/entities/fractions/price.d.ts deleted file mode 100644 index a85fdd36..00000000 --- a/dist/entities/fractions/price.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { BigintIsh, Rounding } from '../../constants'; -import { Currency } from '../currency'; -import { Route } from '../route'; -import { CurrencyAmount } from './currencyAmount'; -import { Fraction } from './fraction'; -export interface PriceConstructorParams { - baseCurrency: Currency; - quoteCurrency: Currency; - denominator: BigintIsh; - numerator: BigintIsh; -} -export declare class Price extends Fraction { - readonly baseCurrency: Currency; - readonly quoteCurrency: Currency; - readonly scalar: Fraction; - static fromRoute(route: Route): Price; - constructor({ baseCurrency, quoteCurrency, denominator, numerator }: PriceConstructorParams); - get raw(): Fraction; - get adjusted(): Fraction; - invert(): Price; - multiply(other: Price): Price; - quote(currencyAmount: CurrencyAmount): CurrencyAmount; - toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string; - toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; -} diff --git a/dist/entities/fractions/price.js b/dist/entities/fractions/price.js deleted file mode 100644 index 5536dbae..00000000 --- a/dist/entities/fractions/price.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Price = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../constants"); -const token_1 = require("../token"); -const token_2 = require("../token"); -const currencyAmount_1 = require("./currencyAmount"); -const fraction_1 = require("./fraction"); -const tokenAmount_1 = require("./tokenAmount"); -class Price extends fraction_1.Fraction { - static fromRoute(route) { - const prices = []; - for (const [i, pair] of route.pairs.entries()) { - prices.push(route.path[i].equals(pair.token0) - ? new Price({ - baseCurrency: pair.reserve0.currency, - quoteCurrency: pair.reserve1.currency, - denominator: pair.reserve0.raw, - numerator: pair.reserve1.raw, - }) - : new Price({ - baseCurrency: pair.reserve1.currency, - quoteCurrency: pair.reserve0.currency, - denominator: pair.reserve1.raw, - numerator: pair.reserve0.raw, - })); - } - return prices.slice(1).reduce((accumulator, currentValue) => accumulator.multiply(currentValue), prices[0]); - } - // denominator and numerator _must_ be raw, i.e. in the native representation - constructor({ baseCurrency, quoteCurrency, denominator, numerator }) { - super(numerator, denominator); - this.baseCurrency = baseCurrency; - this.quoteCurrency = quoteCurrency; - this.scalar = new fraction_1.Fraction(jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(baseCurrency.decimals)), jsbi_1.default.exponentiate(constants_1.TEN, jsbi_1.default.BigInt(quoteCurrency.decimals))); - } - get raw() { - return new fraction_1.Fraction(this.numerator, this.denominator); - } - get adjusted() { - return super.multiply(this.scalar); - } - invert() { - return new Price({ - baseCurrency: this.quoteCurrency, - quoteCurrency: this.baseCurrency, - denominator: this.numerator, - numerator: this.denominator, - }); - } - multiply(other) { - (0, tiny_invariant_1.default)((0, token_2.currencyEquals)(this.quoteCurrency, other.baseCurrency), 'TOKEN'); - const fraction = super.multiply(other); - return new Price({ - baseCurrency: this.baseCurrency, - quoteCurrency: other.quoteCurrency, - denominator: fraction.denominator, - numerator: fraction.numerator, - }); - } - // performs floor division on overflow - quote(currencyAmount) { - (0, tiny_invariant_1.default)((0, token_2.currencyEquals)(currencyAmount.currency, this.baseCurrency), 'TOKEN'); - if (this.quoteCurrency instanceof token_1.Token) { - return new tokenAmount_1.TokenAmount(this.quoteCurrency, super.multiply(currencyAmount.raw).quotient); - } - return currencyAmount_1.CurrencyAmount.nativeCurrency(super.multiply(currencyAmount.raw).quotient, constants_1.ChainId.MAINNET); - } - toSignificant(significantDigits = 6, format, rounding) { - return this.adjusted.toSignificant(significantDigits, format, rounding); - } - toFixed(decimalPlaces = 4, format, rounding) { - return this.adjusted.toFixed(decimalPlaces, format, rounding); - } -} -exports.Price = Price; -//# sourceMappingURL=price.js.map \ No newline at end of file diff --git a/dist/entities/fractions/price.js.map b/dist/entities/fractions/price.js.map deleted file mode 100644 index dc850324..00000000 --- a/dist/entities/fractions/price.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/entities/fractions/price.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,4EAAsC;AAEtC,+CAAmE;AAGnE,oCAAgC;AAChC,oCAAyC;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IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAA;QAC9E,IAAI,IAAI,CAAC,aAAa,YAAY,aAAK,EAAE;YACvC,OAAO,IAAI,yBAAW,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAA;SACxF;QACD,OAAO,+BAAc,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,mBAAO,CAAC,OAAO,CAAC,CAAA;IACpG,CAAC;IAEM,aAAa,CAAC,iBAAiB,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QAC9E,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACzE,CAAC;IAEM,OAAO,CAAC,aAAa,GAAG,CAAC,EAAE,MAAe,EAAE,QAAmB;QACpE,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC/D,CAAC;CACF;AAnFD,sBAmFC"} \ No newline at end of file diff --git a/dist/entities/fractions/priced-token-amount.d.ts b/dist/entities/fractions/priced-token-amount.d.ts deleted file mode 100644 index 514451c4..00000000 --- a/dist/entities/fractions/priced-token-amount.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BigintIsh } from '../../constants'; -import { PricedToken } from '../priced-token'; -import { CurrencyAmount } from './currencyAmount'; -import { TokenAmount } from './tokenAmount'; -export declare class PricedTokenAmount extends TokenAmount { - readonly token: PricedToken; - constructor(token: PricedToken, amount: BigintIsh); - get nativeCurrencyAmount(): CurrencyAmount; -} diff --git a/dist/entities/fractions/priced-token-amount.js b/dist/entities/fractions/priced-token-amount.js deleted file mode 100644 index 64c90103..00000000 --- a/dist/entities/fractions/priced-token-amount.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PricedTokenAmount = void 0; -const units_1 = require("@ethersproject/units"); -const currencyAmount_1 = require("./currencyAmount"); -const tokenAmount_1 = require("./tokenAmount"); -class PricedTokenAmount extends tokenAmount_1.TokenAmount { - // amount _must_ be raw, i.e. in the native representation - constructor(token, amount) { - super(token, amount); - this.token = token; - } - get nativeCurrencyAmount() { - return new currencyAmount_1.CurrencyAmount(this.token.price.quoteCurrency, (0, units_1.parseUnits)(this.multiply(this.token.price).toFixed(this.token.price.quoteCurrency.decimals), this.token.price.quoteCurrency.decimals).toString()); - } -} -exports.PricedTokenAmount = PricedTokenAmount; -//# sourceMappingURL=priced-token-amount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/priced-token-amount.js.map b/dist/entities/fractions/priced-token-amount.js.map deleted file mode 100644 index 82828e5a..00000000 --- a/dist/entities/fractions/priced-token-amount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priced-token-amount.js","sourceRoot":"","sources":["../../../src/entities/fractions/priced-token-amount.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAIjD,qDAAiD;AACjD,+CAA2C;AAE3C,MAAa,iBAAkB,SAAQ,yBAAW;IAGhD,0DAA0D;IAC1D,YAAmB,KAAkB,EAAE,MAAiB;QACtD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED,IAAW,oBAAoB;QAC7B,OAAO,IAAI,+BAAc,CACvB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAC9B,IAAA,kBAAU,EACR,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,EAChF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CACxC,CAAC,QAAQ,EAAE,CACb,CAAA;IACH,CAAC;CACF;AAlBD,8CAkBC"} \ No newline at end of file diff --git a/dist/entities/fractions/tokenAmount.d.ts b/dist/entities/fractions/tokenAmount.d.ts deleted file mode 100644 index 0ebed477..00000000 --- a/dist/entities/fractions/tokenAmount.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BigintIsh } from '../../constants'; -import { Token } from '../token'; -import { CurrencyAmount } from './currencyAmount'; -export declare class TokenAmount extends CurrencyAmount { - readonly token: Token; - constructor(token: Token, amount: BigintIsh); - add(other: TokenAmount): TokenAmount; - subtract(other: TokenAmount): TokenAmount; -} diff --git a/dist/entities/fractions/tokenAmount.js b/dist/entities/fractions/tokenAmount.js deleted file mode 100644 index 473735a5..00000000 --- a/dist/entities/fractions/tokenAmount.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TokenAmount = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const currencyAmount_1 = require("./currencyAmount"); -class TokenAmount extends currencyAmount_1.CurrencyAmount { - // amount _must_ be raw, i.e. in the native representation - constructor(token, amount) { - super(token, amount); - this.token = token; - } - add(other) { - (0, tiny_invariant_1.default)(this.token.equals(other.token), 'TOKEN'); - return new TokenAmount(this.token, jsbi_1.default.add(this.raw, other.raw)); - } - subtract(other) { - (0, tiny_invariant_1.default)(this.token.equals(other.token), 'TOKEN'); - return new TokenAmount(this.token, jsbi_1.default.subtract(this.raw, other.raw)); - } -} -exports.TokenAmount = TokenAmount; -//# sourceMappingURL=tokenAmount.js.map \ No newline at end of file diff --git a/dist/entities/fractions/tokenAmount.js.map b/dist/entities/fractions/tokenAmount.js.map deleted file mode 100644 index fbcd6c4e..00000000 --- a/dist/entities/fractions/tokenAmount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tokenAmount.js","sourceRoot":"","sources":["../../../src/entities/fractions/tokenAmount.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACvB,4EAAsC;AAItC,qDAAiD;AAEjD,MAAa,WAAY,SAAQ,+BAAc;IAG7C,0DAA0D;IAC1D,YAAmB,KAAY,EAAE,MAAiB;QAChD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAEM,GAAG,CAAC,KAAkB;QAC3B,IAAA,wBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAA;QAClD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,cAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACnE,CAAC;IAEM,QAAQ,CAAC,KAAkB;QAChC,IAAA,wBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAA;QAClD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACxE,CAAC;CACF;AAlBD,kCAkBC"} \ No newline at end of file diff --git a/dist/entities/index.d.ts b/dist/entities/index.d.ts deleted file mode 100644 index 0df4989d..00000000 --- a/dist/entities/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './currency'; -export * from './fractions'; -export * from './kpi-token'; -export * from './liquidity-mining-campaign'; -export * from './pair'; -export * from './platforms-breakdown'; -export * from './priced-token'; -export * from './route'; -export * from './single-sided-liquidity-mining-campaign'; -export * from './token'; -export * from './trades'; diff --git a/dist/entities/index.js b/dist/entities/index.js deleted file mode 100644 index 8aacfeda..00000000 --- a/dist/entities/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./currency"), exports); -tslib_1.__exportStar(require("./fractions"), exports); -tslib_1.__exportStar(require("./kpi-token"), exports); -tslib_1.__exportStar(require("./liquidity-mining-campaign"), exports); -tslib_1.__exportStar(require("./pair"), exports); -tslib_1.__exportStar(require("./platforms-breakdown"), exports); -tslib_1.__exportStar(require("./priced-token"), exports); -tslib_1.__exportStar(require("./route"), exports); -tslib_1.__exportStar(require("./single-sided-liquidity-mining-campaign"), exports); -tslib_1.__exportStar(require("./token"), exports); -tslib_1.__exportStar(require("./trades"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/index.js.map b/dist/entities/index.js.map deleted file mode 100644 index 547f1552..00000000 --- a/dist/entities/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,sDAA2B;AAC3B,sDAA2B;AAC3B,sEAA2C;AAC3C,iDAAsB;AACtB,gEAAqC;AACrC,yDAA8B;AAC9B,kDAAuB;AACvB,mFAAwD;AACxD,kDAAuB;AACvB,mDAAwB"} \ No newline at end of file diff --git a/dist/entities/kpi-token.d.ts b/dist/entities/kpi-token.d.ts deleted file mode 100644 index a7fae814..00000000 --- a/dist/entities/kpi-token.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BigintIsh, ChainId } from '../constants'; -import { PricedTokenAmount, TokenAmount } from '../entities/fractions'; -import { PricedToken } from './priced-token'; -export declare class KpiToken extends PricedToken { - readonly kpiId: string; - readonly totalSupply: TokenAmount; - readonly collateral: PricedTokenAmount; - constructor(chainId: ChainId, address: string, totalSupply: BigintIsh, collateral: PricedTokenAmount, kpiId: string, symbol?: string, name?: string); -} diff --git a/dist/entities/kpi-token.js b/dist/entities/kpi-token.js deleted file mode 100644 index acc0339b..00000000 --- a/dist/entities/kpi-token.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KpiToken = void 0; -const tslib_1 = require("tslib"); -const units_1 = require("@ethersproject/units"); -const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const currency_1 = require("../entities/currency"); -const fractions_1 = require("../entities/fractions"); -const token_1 = require("../entities/token"); -const priced_token_1 = require("./priced-token"); -class KpiToken extends priced_token_1.PricedToken { - constructor(chainId, address, totalSupply, collateral, kpiId, symbol, name) { - const collateralTokenNativeCurrency = collateral.nativeCurrencyAmount; - const kpiTokenPrice = new decimal_js_light_1.default(collateralTokenNativeCurrency.raw.toString()).dividedBy(totalSupply.toString()); - const nativeCurrency = currency_1.Currency.getNative(chainId); - const token = new token_1.Token(chainId, address, 18, symbol, name); - super(chainId, address, 18, new fractions_1.Price({ - baseCurrency: token, - quoteCurrency: nativeCurrency, - denominator: (0, units_1.parseUnits)('1', nativeCurrency.decimals).toString(), - numerator: (0, units_1.parseUnits)(kpiTokenPrice.toFixed(nativeCurrency.decimals), nativeCurrency.decimals).toString(), - }), symbol, name); // decimals are always 18 for kpi tokens - (0, tiny_invariant_1.default)(collateral.token.chainId === chainId, 'inconsistent chain id in collateral'); - this.totalSupply = new fractions_1.TokenAmount(this, totalSupply); - this.collateral = collateral; - this.kpiId = kpiId; - } -} -exports.KpiToken = KpiToken; -//# sourceMappingURL=kpi-token.js.map \ No newline at end of file diff --git a/dist/entities/kpi-token.js.map b/dist/entities/kpi-token.js.map deleted file mode 100644 index a621da9c..00000000 --- a/dist/entities/kpi-token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"kpi-token.js","sourceRoot":"","sources":["../../src/entities/kpi-token.ts"],"names":[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AU,CAAA;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AApCD,4BAoCC"} \ No newline at end of file diff --git a/dist/entities/liquidity-mining-campaign.d.ts b/dist/entities/liquidity-mining-campaign.d.ts deleted file mode 100644 index 3ffae4ec..00000000 --- a/dist/entities/liquidity-mining-campaign.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BigintIsh } from '../constants'; -import { Pair, PricedTokenAmount, TokenAmount } from '../entities'; -import { DistributionCampaignBase } from './DistributionCampaignBase'; -export interface LiquidityMiningCampaignConstructorParams { - startsAt: BigintIsh; - endsAt: BigintIsh; - targetedPair: Pair; - rewards: PricedTokenAmount[]; - staked: PricedTokenAmount; - locked: boolean; - stakingCap: TokenAmount; - address?: string; -} -export declare class LiquidityMiningCampaign extends DistributionCampaignBase { - readonly targetedPair: Pair; - constructor({ startsAt, endsAt, targetedPair, rewards, staked, locked, stakingCap, address, }: LiquidityMiningCampaignConstructorParams); -} diff --git a/dist/entities/liquidity-mining-campaign.js b/dist/entities/liquidity-mining-campaign.js deleted file mode 100644 index 49d326a0..00000000 --- a/dist/entities/liquidity-mining-campaign.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LiquidityMiningCampaign = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const DistributionCampaignBase_1 = require("./DistributionCampaignBase"); -class LiquidityMiningCampaign extends DistributionCampaignBase_1.DistributionCampaignBase { - constructor({ startsAt, endsAt, targetedPair, rewards, staked, locked, stakingCap, address, }) { - (0, tiny_invariant_1.default)(staked.token.equals(targetedPair.liquidityToken), 'STAKED_LP_TOKEN'); - super({ - startsAt, - endsAt, - rewards, - staked, - locked, - stakingCap, - address, - }); - this.targetedPair = targetedPair; - } -} -exports.LiquidityMiningCampaign = LiquidityMiningCampaign; -//# sourceMappingURL=liquidity-mining-campaign.js.map \ No newline at end of file diff --git a/dist/entities/liquidity-mining-campaign.js.map b/dist/entities/liquidity-mining-campaign.js.map deleted file mode 100644 index 891c1992..00000000 --- a/dist/entities/liquidity-mining-campaign.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"liquidity-mining-campaign.js","sourceRoot":"","sources":["../../src/entities/liquidity-mining-campaign.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,yEAAqE;AAarE,MAAa,uBAAwB,SAAQ,mDAAwB;IAGnE,YAAY,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,OAAO,EACP,MAAM,EACN,MAAM,EACN,UAAU,EACV,OAAO,GACkC;QACzC,IAAA,wBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,iBAAiB,CAAC,CAAA;QAE9E,KAAK,CAAC;YACJ,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,MAAM;YACN,UAAU;YACV,OAAO;SACR,CAAC,CAAA;QAEF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AA3BD,0DA2BC"} \ No newline at end of file diff --git a/dist/entities/pair.d.ts b/dist/entities/pair.d.ts deleted file mode 100644 index fb060c80..00000000 --- a/dist/entities/pair.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { BigintIsh } from '../constants'; -import { ChainId } from '../constants'; -import { Price } from './fractions/price'; -import { TokenAmount } from './fractions/tokenAmount'; -import { LiquidityMiningCampaign } from './liquidity-mining-campaign'; -import { Token } from './token'; -import { UniswapV2RoutablePlatform } from './trades/routable-platform'; -export declare class Pair { - readonly liquidityToken: Token; - private readonly tokenAmounts; - readonly swapFee: BigintIsh; - readonly protocolFeeDenominator: BigintIsh; - readonly platform: UniswapV2RoutablePlatform; - liquidityMiningCampaigns: LiquidityMiningCampaign[]; - /** - * Returns true if the two pairs are equivalent, i.e. have the same address (calculated using create2). - * @param other other pair to compare - */ - equals(other: Pair): boolean; - static getAddress(tokenA: Token, tokenB: Token, platform?: UniswapV2RoutablePlatform): string; - constructor(tokenAmountA: TokenAmount, tokenAmountB: TokenAmount, swapFee?: BigintIsh, protocolFeeDenominator?: BigintIsh, platform?: UniswapV2RoutablePlatform, liquidityMiningCampaigns?: LiquidityMiningCampaign[]); - /** - * Returns true if the token is either token0 or token1 - * @param token to check - */ - involvesToken(token: Token): boolean; - /** - * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0 - */ - get token0Price(): Price; - /** - * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1 - */ - get token1Price(): Price; - /** - * Return the price of the given token in terms of the other token in the pair. - * @param token token to return price of - */ - priceOf(token: Token): Price; - /** - * Returns the chain ID of the tokens in the pair. - */ - get chainId(): ChainId; - get token0(): Token; - get token1(): Token; - get reserve0(): TokenAmount; - get reserve1(): TokenAmount; - reserveOf(token: Token): TokenAmount; - getOutputAmount(inputAmount: TokenAmount): [TokenAmount, Pair]; - getInputAmount(outputAmount: TokenAmount): [TokenAmount, Pair]; - getLiquidityMinted(totalSupply: TokenAmount, tokenAmountA: TokenAmount, tokenAmountB: TokenAmount): TokenAmount; - getLiquidityValue(token: Token, totalSupply: TokenAmount, liquidity: TokenAmount, feeOn?: boolean, kLast?: BigintIsh): TokenAmount; -} diff --git a/dist/entities/pair.js b/dist/entities/pair.js deleted file mode 100644 index c8fa0858..00000000 --- a/dist/entities/pair.js +++ /dev/null @@ -1,230 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Pair = void 0; -const tslib_1 = require("tslib"); -const address_1 = require("@ethersproject/address"); -const solidity_1 = require("@ethersproject/solidity"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../constants"); -const constants_2 = require("../constants"); -const errors_1 = require("../errors"); -const utils_1 = require("../utils"); -const price_1 = require("./fractions/price"); -const tokenAmount_1 = require("./fractions/tokenAmount"); -const token_1 = require("./token"); -const routable_platform_1 = require("./trades/routable-platform"); -const INITIAL_CACHE_STATE = { - [constants_2.ChainId.MAINNET]: {}, - [constants_2.ChainId.RINKEBY]: {}, - [constants_2.ChainId.ARBITRUM_ONE]: {}, - [constants_2.ChainId.ARBITRUM_RINKEBY]: {}, - [constants_2.ChainId.ARBITRUM_GOERLI]: {}, - [constants_2.ChainId.XDAI]: {}, - [constants_2.ChainId.POLYGON]: {}, - [constants_2.ChainId.GOERLI]: {}, - [constants_2.ChainId.OPTIMISM_MAINNET]: {}, - [constants_2.ChainId.OPTIMISM_GOERLI]: {}, - [constants_2.ChainId.BSC_MAINNET]: {}, - [constants_2.ChainId.BSC_TESTNET]: {}, - [constants_2.ChainId.ZK_SYNC_ERA_MAINNET]: {}, - [constants_2.ChainId.ZK_SYNC_ERA_TESTNET]: {}, -}; -let PAIR_ADDRESS_CACHE = { - [routable_platform_1.UniswapV2RoutablePlatform.SWAPR.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.SUSHISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.UNISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.HONEYSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.BAOSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.LEVINSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.QUICKSWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.PANCAKESWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.DFYN.name]: Object.assign({}, INITIAL_CACHE_STATE), - [routable_platform_1.UniswapV2RoutablePlatform.BISWAP.name]: Object.assign({}, INITIAL_CACHE_STATE), -}; -class Pair { - /** - * Returns true if the two pairs are equivalent, i.e. have the same address (calculated using create2). - * @param other other pair to compare - */ - equals(other) { - // short circuit on reference equality - if (this === other) { - return true; - } - return this.liquidityToken.address === other.liquidityToken.address; - } - static getAddress(tokenA, tokenB, platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR) { - var _a, _b, _c, _d, _e; - const tokens = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; // does safety checks - const chainId = tokenA.chainId; - (0, tiny_invariant_1.default)(platform.supportsChain(chainId), 'INVALID_PLATFORM_CHAIN_ID'); - if (((_c = (_b = (_a = PAIR_ADDRESS_CACHE === null || PAIR_ADDRESS_CACHE === void 0 ? void 0 : PAIR_ADDRESS_CACHE[platform.name]) === null || _a === void 0 ? void 0 : _a[chainId]) === null || _b === void 0 ? void 0 : _b[tokens[0].address]) === null || _c === void 0 ? void 0 : _c[tokens[1].address]) === undefined) { - PAIR_ADDRESS_CACHE = Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE), { [platform.name]: Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE[platform.name]), { [chainId]: Object.assign(Object.assign({}, PAIR_ADDRESS_CACHE[platform.name][chainId]), { [tokens[0].address]: Object.assign(Object.assign({}, (_e = (_d = PAIR_ADDRESS_CACHE === null || PAIR_ADDRESS_CACHE === void 0 ? void 0 : PAIR_ADDRESS_CACHE[platform.name]) === null || _d === void 0 ? void 0 : _d[chainId]) === null || _e === void 0 ? void 0 : _e[tokens[0].address]), { [tokens[1].address]: (0, address_1.getCreate2Address)(platform.factoryAddress[chainId], (0, solidity_1.keccak256)(['bytes'], [(0, solidity_1.pack)(['address', 'address'], [tokens[0].address, tokens[1].address])]), platform.initCodeHash) }) }) }) }); - } - return PAIR_ADDRESS_CACHE[platform.name][chainId][tokens[0].address][tokens[1].address]; - } - constructor(tokenAmountA, tokenAmountB, swapFee, protocolFeeDenominator, platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR, liquidityMiningCampaigns = []) { - this.swapFee = constants_1.defaultSwapFee; - this.protocolFeeDenominator = constants_1.defaultProtocolFeeDenominator; - (0, tiny_invariant_1.default)(tokenAmountA.token.chainId === tokenAmountB.token.chainId, 'CHAIN_ID'); - const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks - ? [tokenAmountA, tokenAmountB] - : [tokenAmountB, tokenAmountA]; - this.platform = platform; - const liquidityTokenAddress = Pair.getAddress(tokenAmounts[0].token, tokenAmounts[1].token, platform); - this.liquidityToken = new token_1.Token(tokenAmounts[0].token.chainId, liquidityTokenAddress, 18, 'DXS', 'DXswap'); - this.protocolFeeDenominator = protocolFeeDenominator ? protocolFeeDenominator : constants_1.defaultProtocolFeeDenominator; - this.tokenAmounts = tokenAmounts; - this.swapFee = swapFee ? swapFee : platform.defaultSwapFee; - this.liquidityMiningCampaigns = liquidityMiningCampaigns; - } - /** - * Returns true if the token is either token0 or token1 - * @param token to check - */ - involvesToken(token) { - return token.equals(this.token0) || token.equals(this.token1); - } - /** - * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0 - */ - get token0Price() { - return new price_1.Price({ - baseCurrency: this.token0, - quoteCurrency: this.token1, - denominator: this.tokenAmounts[0].raw, - numerator: this.tokenAmounts[1].raw, - }); - } - /** - * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1 - */ - get token1Price() { - return new price_1.Price({ - baseCurrency: this.token1, - quoteCurrency: this.token0, - denominator: this.tokenAmounts[1].raw, - numerator: this.tokenAmounts[0].raw, - }); - } - /** - * Return the price of the given token in terms of the other token in the pair. - * @param token token to return price of - */ - priceOf(token) { - (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); - return token.equals(this.token0) ? this.token0Price : this.token1Price; - } - /** - * Returns the chain ID of the tokens in the pair. - */ - get chainId() { - return this.token0.chainId; - } - get token0() { - return this.tokenAmounts[0].token; - } - get token1() { - return this.tokenAmounts[1].token; - } - get reserve0() { - return this.tokenAmounts[0]; - } - get reserve1() { - return this.tokenAmounts[1]; - } - reserveOf(token) { - (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); - return token.equals(this.token0) ? this.reserve0 : this.reserve1; - } - getOutputAmount(inputAmount) { - (0, tiny_invariant_1.default)(this.involvesToken(inputAmount.token), 'TOKEN'); - if (jsbi_1.default.equal(this.reserve0.raw, constants_1.ZERO) || jsbi_1.default.equal(this.reserve1.raw, constants_1.ZERO)) { - throw new errors_1.InsufficientReservesError(); - } - const inputReserve = this.reserveOf(inputAmount.token); - const outputReserve = this.reserveOf(inputAmount.token.equals(this.token0) ? this.token1 : this.token0); - const inputAmountWithFee = jsbi_1.default.multiply(inputAmount.raw, jsbi_1.default.subtract(constants_1._10000, (0, utils_1.parseBigintIsh)(this.swapFee))); - const numerator = jsbi_1.default.multiply(inputAmountWithFee, outputReserve.raw); - const denominator = jsbi_1.default.add(jsbi_1.default.multiply(inputReserve.raw, constants_1._10000), inputAmountWithFee); - const outputAmount = new tokenAmount_1.TokenAmount(inputAmount.token.equals(this.token0) ? this.token1 : this.token0, jsbi_1.default.divide(numerator, denominator)); - if (jsbi_1.default.equal(outputAmount.raw, constants_1.ZERO)) { - throw new errors_1.InsufficientInputAmountError(); - } - return [ - outputAmount, - new Pair(inputReserve.add(inputAmount), outputReserve.subtract(outputAmount), this.swapFee, this.protocolFeeDenominator, this.platform, this.liquidityMiningCampaigns), - ]; - } - getInputAmount(outputAmount) { - (0, tiny_invariant_1.default)(this.involvesToken(outputAmount.token), 'TOKEN'); - if (jsbi_1.default.equal(this.reserve0.raw, constants_1.ZERO) || - jsbi_1.default.equal(this.reserve1.raw, constants_1.ZERO) || - jsbi_1.default.greaterThanOrEqual(outputAmount.raw, this.reserveOf(outputAmount.token).raw)) { - throw new errors_1.InsufficientReservesError(); - } - const outputReserve = this.reserveOf(outputAmount.token); - const inputReserve = this.reserveOf(outputAmount.token.equals(this.token0) ? this.token1 : this.token0); - const numerator = jsbi_1.default.multiply(jsbi_1.default.multiply(inputReserve.raw, outputAmount.raw), constants_1._10000); - const denominator = jsbi_1.default.multiply(jsbi_1.default.subtract(outputReserve.raw, outputAmount.raw), jsbi_1.default.subtract(constants_1._10000, (0, utils_1.parseBigintIsh)(this.swapFee))); - const inputAmount = new tokenAmount_1.TokenAmount(outputAmount.token.equals(this.token0) ? this.token1 : this.token0, jsbi_1.default.add(jsbi_1.default.divide(numerator, denominator), constants_1.ONE)); - return [ - inputAmount, - new Pair(inputReserve.add(inputAmount), outputReserve.subtract(outputAmount), this.swapFee, this.protocolFeeDenominator, this.platform, this.liquidityMiningCampaigns), - ]; - } - getLiquidityMinted(totalSupply, tokenAmountA, tokenAmountB) { - (0, tiny_invariant_1.default)(totalSupply.token.equals(this.liquidityToken), 'LIQUIDITY'); - const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks - ? [tokenAmountA, tokenAmountB] - : [tokenAmountB, tokenAmountA]; - (0, tiny_invariant_1.default)(tokenAmounts[0].token.equals(this.token0) && tokenAmounts[1].token.equals(this.token1), 'TOKEN'); - let liquidity; - if (jsbi_1.default.equal(totalSupply.raw, constants_1.ZERO)) { - liquidity = jsbi_1.default.subtract((0, utils_1.sqrt)(jsbi_1.default.multiply(tokenAmounts[0].raw, tokenAmounts[1].raw)), constants_1.MINIMUM_LIQUIDITY); - } - else { - const amount0 = jsbi_1.default.divide(jsbi_1.default.multiply(tokenAmounts[0].raw, totalSupply.raw), this.reserve0.raw); - const amount1 = jsbi_1.default.divide(jsbi_1.default.multiply(tokenAmounts[1].raw, totalSupply.raw), this.reserve1.raw); - liquidity = jsbi_1.default.lessThanOrEqual(amount0, amount1) ? amount0 : amount1; - } - if (!jsbi_1.default.greaterThan(liquidity, constants_1.ZERO)) { - throw new errors_1.InsufficientInputAmountError(); - } - return new tokenAmount_1.TokenAmount(this.liquidityToken, liquidity); - } - getLiquidityValue(token, totalSupply, liquidity, feeOn = false, kLast) { - (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); - (0, tiny_invariant_1.default)(totalSupply.token.equals(this.liquidityToken), 'TOTAL_SUPPLY'); - (0, tiny_invariant_1.default)(liquidity.token.equals(this.liquidityToken), 'LIQUIDITY'); - (0, tiny_invariant_1.default)(jsbi_1.default.lessThanOrEqual(liquidity.raw, totalSupply.raw), 'LIQUIDITY'); - let totalSupplyAdjusted; - if (!feeOn) { - totalSupplyAdjusted = totalSupply; - } - else { - (0, tiny_invariant_1.default)(!!kLast, 'K_LAST'); - const kLastParsed = (0, utils_1.parseBigintIsh)(kLast); - if (!jsbi_1.default.equal(kLastParsed, constants_1.ZERO)) { - const rootK = (0, utils_1.sqrt)(jsbi_1.default.multiply(this.reserve0.raw, this.reserve1.raw)); - const rootKLast = (0, utils_1.sqrt)(kLastParsed); - if (jsbi_1.default.greaterThan(rootK, rootKLast)) { - const numerator = jsbi_1.default.multiply(totalSupply.raw, jsbi_1.default.subtract(rootK, rootKLast)); - const denominator = jsbi_1.default.add(jsbi_1.default.multiply(rootK, (0, utils_1.parseBigintIsh)(this.protocolFeeDenominator)), rootKLast); - const feeLiquidity = jsbi_1.default.divide(numerator, denominator); - totalSupplyAdjusted = totalSupply.add(new tokenAmount_1.TokenAmount(this.liquidityToken, feeLiquidity)); - } - else { - totalSupplyAdjusted = totalSupply; - } - } - else { - totalSupplyAdjusted = totalSupply; - } - } - return new tokenAmount_1.TokenAmount(token, jsbi_1.default.divide(jsbi_1.default.multiply(liquidity.raw, this.reserveOf(token).raw), totalSupplyAdjusted.raw)); - } -} -exports.Pair = Pair; -//# sourceMappingURL=pair.js.map \ No newline at end of file diff --git a/dist/entities/pair.js.map b/dist/entities/pair.js.map deleted file mode 100644 index 4d0b326d..00000000 --- a/dist/entities/pair.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pair.js","sourceRoot":"","sources":["../../src/entities/pair.ts"],"names":[],"mappings":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;gBACvE,MAAM,SAAS,GAAG,IAAA,YAAI,EAAC,WAAW,CAAC,CAAA;gBACnC,IAAI,cAAI,CAAC,WAAW,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE;oBACtC,MAAM,SAAS,GAAG,cAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,cAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAA;oBACjF,MAAM,WAAW,GAAG,cAAI,CAAC,GAAG,CAAC,cAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAA,sBAAc,EAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;oBAC1G,MAAM,YAAY,GAAG,cAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;oBACxD,mBAAmB,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,yBAAW,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,CAAA;iBAC1F;qBAAM;oBACL,mBAAmB,GAAG,WAAW,CAAA;iBAClC;aACF;iBAAM;gBACL,mBAAmB,GAAG,WAAW,CAAA;aAClC;SACF;QAED,OAAO,IAAI,yBAAW,CACpB,KAAK,EACL,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAC9F,CAAA;IACH,CAAC;CACF;AA7QD,oBA6QC"} \ No newline at end of file diff --git a/dist/entities/platforms-breakdown.d.ts b/dist/entities/platforms-breakdown.d.ts deleted file mode 100644 index 4f4c9332..00000000 --- a/dist/entities/platforms-breakdown.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ChainId } from '../constants'; -import { Currency } from './currency'; -import { Percent } from './fractions'; -import { Price } from './fractions/price'; -export interface Platform { - name: string; - percentage: Percent; -} -export declare class Breakdown { - readonly chainId: ChainId; - readonly platforms: Platform[]; - readonly input: Currency; - readonly output: Currency; - readonly midPrice: Price; - constructor(chainId: ChainId, platforms: Platform[], input: Currency, output: Currency, midPrice: Price); -} diff --git a/dist/entities/platforms-breakdown.js b/dist/entities/platforms-breakdown.js deleted file mode 100644 index 20ea3686..00000000 --- a/dist/entities/platforms-breakdown.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Breakdown = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const fractions_1 = require("./fractions"); -const token_1 = require("./token"); -class Breakdown { - constructor(chainId, platforms, input, output, midPrice) { - (0, tiny_invariant_1.default)(platforms.length > 0, 'Missing routable platform'); - (0, tiny_invariant_1.default)(platforms - .reduce((accumulator, platform) => accumulator.add(platform.percentage), new fractions_1.Percent('0', '100')) - .toFixed(2) === '1.00', 'Inconsistent breakdown percentage'); - if (input instanceof token_1.Token && output instanceof token_1.Token) - (0, tiny_invariant_1.default)(input.chainId === output.chainId, 'Input and output tokens must be on the same chain'); - this.chainId = chainId; - this.platforms = platforms; - this.midPrice = midPrice; - this.input = input; - this.output = output; - } -} -exports.Breakdown = Breakdown; -//# sourceMappingURL=platforms-breakdown.js.map \ No newline at end of file diff --git a/dist/entities/platforms-breakdown.js.map b/dist/entities/platforms-breakdown.js.map deleted file mode 100644 index 08cbfaab..00000000 --- a/dist/entities/platforms-breakdown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"platforms-breakdown.js","sourceRoot":"","sources":["../../src/entities/platforms-breakdown.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,2CAAqC;AAErC,mCAA+B;AAO/B,MAAa,SAAS;IAOpB,YAAmB,OAAgB,EAAE,SAAqB,EAAE,KAAe,EAAE,MAAgB,EAAE,QAAe;QAC5G,IAAA,wBAAS,EAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,2BAA2B,CAAC,CAAA;QAC5D,IAAA,wBAAS,EACP,SAAS;aACN,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,mBAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;aAChG,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,EACxB,mCAAmC,CACpC,CAAA;QACD,IAAI,KAAK,YAAY,aAAK,IAAI,MAAM,YAAY,aAAK;YACnD,IAAA,wBAAS,EAAC,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,EAAE,mDAAmD,CAAC,CAAA;QAElG,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/dist/entities/priced-token.d.ts b/dist/entities/priced-token.d.ts deleted file mode 100644 index 8a638cd4..00000000 --- a/dist/entities/priced-token.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ChainId } from '../constants'; -import { Price } from './fractions'; -import { Token } from './token'; -/** - * Represents an ERC20 token and its price, expressed in any given currency. - */ -export declare class PricedToken extends Token { - readonly price: Price; - constructor(chainId: ChainId, address: string, decimals: number, price: Price, symbol?: string, name?: string); -} diff --git a/dist/entities/priced-token.js b/dist/entities/priced-token.js deleted file mode 100644 index b194a97e..00000000 --- a/dist/entities/priced-token.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PricedToken = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const token_1 = require("./token"); -/** - * Represents an ERC20 token and its price, expressed in any given currency. - */ -class PricedToken extends token_1.Token { - constructor(chainId, address, decimals, price, symbol, name) { - (0, tiny_invariant_1.default)(price.baseCurrency.symbol === symbol && price.baseCurrency.decimals === decimals, 'TOKEN'); - super(chainId, address, decimals, symbol, name); - this.price = price; - } -} -exports.PricedToken = PricedToken; -//# sourceMappingURL=priced-token.js.map \ No newline at end of file diff --git a/dist/entities/priced-token.js.map b/dist/entities/priced-token.js.map deleted file mode 100644 index ef437229..00000000 --- a/dist/entities/priced-token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priced-token.js","sourceRoot":"","sources":["../../src/entities/priced-token.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,mCAA+B;AAE/B;;GAEG;AACH,MAAa,WAAY,SAAQ,aAAK;IAGpC,YAAY,OAAgB,EAAE,OAAe,EAAE,QAAgB,EAAE,KAAY,EAAE,MAAe,EAAE,IAAa;QAC3G,IAAA,wBAAS,EAAC,KAAK,CAAC,YAAY,CAAC,MAAM,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,QAAQ,KAAK,QAAQ,EAAE,OAAO,CAAC,CAAA;QACpG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AARD,kCAQC"} \ No newline at end of file diff --git a/dist/entities/route.d.ts b/dist/entities/route.d.ts deleted file mode 100644 index 7762c2ed..00000000 --- a/dist/entities/route.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ChainId } from '../constants'; -import { Currency } from './currency'; -import { Price } from './fractions/price'; -import { Pair } from './pair'; -import { Token } from './token'; -export declare class Route { - readonly pairs: Pair[]; - readonly path: Token[]; - readonly input: Currency; - readonly output: Currency; - readonly midPrice: Price; - constructor(pairs: Pair[], input: Currency, output?: Currency); - get chainId(): ChainId; -} diff --git a/dist/entities/route.js b/dist/entities/route.js deleted file mode 100644 index 44fa4682..00000000 --- a/dist/entities/route.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Route = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const currency_1 = require("./currency"); -const price_1 = require("./fractions/price"); -const token_1 = require("./token"); -class Route { - constructor(pairs, input, output) { - (0, tiny_invariant_1.default)(pairs.length > 0, 'PAIRS'); - (0, tiny_invariant_1.default)(pairs.every((pair) => pair.chainId === pairs[0].chainId), 'CHAIN_IDS'); - (0, tiny_invariant_1.default)(pairs.every((pair) => pair.platform === pairs[0].platform), 'PLATFORM'); - (0, tiny_invariant_1.default)((input instanceof token_1.Token && pairs[0].involvesToken(input)) || - (currency_1.Currency.isNative(input) && pairs[0].involvesToken(token_1.Token.getNativeWrapper(pairs[0].chainId))), 'INPUT'); - (0, tiny_invariant_1.default)(typeof output === 'undefined' || - (output instanceof token_1.Token && pairs[pairs.length - 1].involvesToken(output)) || - (currency_1.Currency.isNative(output) && pairs[pairs.length - 1].involvesToken(token_1.Token.getNativeWrapper(pairs[0].chainId))), 'OUTPUT'); - const path = [input instanceof token_1.Token ? input : token_1.Token.getNativeWrapper(pairs[0].chainId)]; - for (const [i, pair] of pairs.entries()) { - const currentInput = path[i]; - (0, tiny_invariant_1.default)(currentInput.equals(pair.token0) || currentInput.equals(pair.token1), 'PATH'); - const output = currentInput.equals(pair.token0) ? pair.token1 : pair.token0; - path.push(output); - } - this.pairs = pairs; - this.path = path; - this.midPrice = price_1.Price.fromRoute(this); - this.input = input; - this.output = output !== null && output !== void 0 ? output : path[path.length - 1]; - } - get chainId() { - return this.pairs[0].chainId; - } -} -exports.Route = Route; -//# sourceMappingURL=route.js.map \ No newline at end of file diff --git a/dist/entities/route.js.map b/dist/entities/route.js.map deleted file mode 100644 index d5561690..00000000 --- a/dist/entities/route.js.map +++ /dev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line at end of file diff --git a/dist/entities/single-sided-liquidity-mining-campaign.d.ts b/dist/entities/single-sided-liquidity-mining-campaign.d.ts deleted file mode 100644 index fefa8368..00000000 --- a/dist/entities/single-sided-liquidity-mining-campaign.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BigintIsh } from '../constants'; -import { PricedTokenAmount, Token, TokenAmount } from '../entities'; -import { DistributionCampaignBase } from './DistributionCampaignBase'; -export declare class SingleSidedLiquidityMiningCampaign extends DistributionCampaignBase { - readonly stakeToken: Token; - constructor(startsAt: BigintIsh, endsAt: BigintIsh, stakeToken: Token, rewards: PricedTokenAmount[], staked: PricedTokenAmount, locked: boolean, stakingCap: TokenAmount, address?: string); -} diff --git a/dist/entities/single-sided-liquidity-mining-campaign.js b/dist/entities/single-sided-liquidity-mining-campaign.js deleted file mode 100644 index cc9ab396..00000000 --- a/dist/entities/single-sided-liquidity-mining-campaign.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SingleSidedLiquidityMiningCampaign = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const DistributionCampaignBase_1 = require("./DistributionCampaignBase"); -class SingleSidedLiquidityMiningCampaign extends DistributionCampaignBase_1.DistributionCampaignBase { - constructor(startsAt, endsAt, stakeToken, rewards, staked, locked, stakingCap, address) { - (0, tiny_invariant_1.default)(staked.token.equals(stakeToken), 'STAKED_LP_TOKEN'); - super({ - startsAt, - endsAt, - rewards, - staked, - locked, - stakingCap, - address, - }); - this.stakeToken = stakeToken; - } -} -exports.SingleSidedLiquidityMiningCampaign = SingleSidedLiquidityMiningCampaign; -//# sourceMappingURL=single-sided-liquidity-mining-campaign.js.map \ No newline at end of file diff --git a/dist/entities/single-sided-liquidity-mining-campaign.js.map b/dist/entities/single-sided-liquidity-mining-campaign.js.map deleted file mode 100644 index 7bfdf6b2..00000000 --- a/dist/entities/single-sided-liquidity-mining-campaign.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"single-sided-liquidity-mining-campaign.js","sourceRoot":"","sources":["../../src/entities/single-sided-liquidity-mining-campaign.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAItC,yEAAqE;AAErE,MAAa,kCAAmC,SAAQ,mDAAwB;IAG9E,YACE,QAAmB,EACnB,MAAiB,EACjB,UAAiB,EACjB,OAA4B,EAC5B,MAAyB,EACzB,MAAe,EACf,UAAuB,EACvB,OAAgB;QAEhB,IAAA,wBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC,CAAA;QAC7D,KAAK,CAAC;YACJ,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,MAAM;YACN,UAAU;YACV,OAAO;SACR,CAAC,CAAA;QAEF,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;CACF;AA1BD,gFA0BC"} \ No newline at end of file diff --git a/dist/entities/token.d.ts b/dist/entities/token.d.ts deleted file mode 100644 index 17cef3ee..00000000 --- a/dist/entities/token.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { ChainId } from '../constants'; -import { Currency } from './currency'; -/** - * Represents an ERC20 token with a unique address and some metadata. - */ -/** - * @TODO check why we have 2 different token lists here and - * src/entities/trades/uniswap-v2/constants.ts - */ -export declare class Token extends Currency { - readonly chainId: ChainId; - readonly address: string; - static readonly ARB: Record; - static readonly BUSD: Record; - static readonly CAKE: Record; - static readonly DXD: Record; - static readonly SWPR: Record; - static readonly WBNB: Record; - static readonly WETH: Record; - static readonly WMATIC: Record; - static readonly WXDAI: Record; - private static readonly NATIVE_CURRENCY_WRAPPER; - constructor(chainId: ChainId, address: string, decimals: number, symbol?: string, name?: string); - /** - * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. - * @param other other token to compare - */ - equals(other: Token): boolean; - /** - * Returns true if the address of this token sorts before the address of the other token - * @param other other token to compare - * @throws if the tokens have the same address - * @throws if the tokens are on different chains - */ - sortsBefore(other: Token): boolean; - static getNativeWrapper(chainId: ChainId): Token; - static isNativeWrapper(token: Token): boolean; -} -/** - * Compares two currencies for equality - */ -export declare function currencyEquals(currencyA: Currency, currencyB: Currency): boolean; -export declare const ARB: Record; -export declare const BUSD: Record; -export declare const CAKE: Record; -export declare const DXD: Record; -export declare const SWPR: Record; -export declare const WBNB: Record; -export declare const WETH: Record; -export declare const WMATIC: Record; -export declare const WXDAI: Record; diff --git a/dist/entities/token.js b/dist/entities/token.js deleted file mode 100644 index 5b5469b5..00000000 --- a/dist/entities/token.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WXDAI = exports.WMATIC = exports.WETH = exports.WBNB = exports.SWPR = exports.DXD = exports.CAKE = exports.BUSD = exports.ARB = exports.currencyEquals = exports.Token = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../constants"); -const utils_1 = require("../utils"); -const currency_1 = require("./currency"); -/** - * Represents an ERC20 token with a unique address and some metadata. - */ -/** - * @TODO check why we have 2 different token lists here and - * src/entities/trades/uniswap-v2/constants.ts - */ -class Token extends currency_1.Currency { - constructor(chainId, address, decimals, symbol, name) { - super(decimals, symbol, name); - this.chainId = chainId; - this.address = (0, utils_1.validateAndParseAddress)(address); - } - /** - * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. - * @param other other token to compare - */ - equals(other) { - // short circuit on reference equality - if (this === other) { - return true; - } - return this.chainId === other.chainId && this.address === other.address; - } - /** - * Returns true if the address of this token sorts before the address of the other token - * @param other other token to compare - * @throws if the tokens have the same address - * @throws if the tokens are on different chains - */ - sortsBefore(other) { - (0, tiny_invariant_1.default)(this.chainId === other.chainId, 'CHAIN_IDS'); - (0, tiny_invariant_1.default)(this.address !== other.address, 'ADDRESSES'); - return this.address.toLowerCase() < other.address.toLowerCase(); - } - static getNativeWrapper(chainId) { - return Token.NATIVE_CURRENCY_WRAPPER[chainId]; - } - static isNativeWrapper(token) { - return Token.NATIVE_CURRENCY_WRAPPER[token.chainId].equals(token); - } -} -exports.Token = Token; -Token.ARB = { - /** - * @see https://docs.arbitrum.foundation/deployment-addresses for token info - */ - [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0xF861378B543525ae0C47d33C90C954Dc774Ac1F9', 18, 'ARB', 'Arbitrum'), - [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0x912CE59144191C1204E64559FE8253a0e49E6548', 18, 'ARB', 'Arbitrum'), - [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1', 18, 'ARB', 'Arbitrum'), -}; -Token.BUSD = { - [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56', 18, 'BUSD', 'Binance-Peg BUSD Token'), -}; -Token.CAKE = { - [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82', 18, 'CAKE', 'PancakeSwap Token'), -}; -Token.DXD = { - [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0xCEf91E326978fEDbb14825E17DAFCa18508E6232', 18, 'DXD', 'DXdao'), - [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0xC3Ae0333F0F34aa734D5493276223d95B8F9Cb37', 18, 'DXD', 'DXdao'), - [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0x5d47100B0854525685907D5D773b92c22c0c745e', 18, 'DXD', 'DXdao'), - [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xa1d65E8fB6e87b60FECCBc582F7f97804B725521', 18, 'DXD', 'DXdao'), - [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0x554898A0BF98aB0C03ff86C7DccBE29269cc4d29', 18, 'DXD', 'DXdao'), - [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0xb90D6bec20993Be5d72A5ab353343f7a0281f158', 18, 'DXD', 'DXdao from Ethereum'), -}; -Token.SWPR = { - [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0x75902ae4D8AB92d38e20D65f758b03d595C0047B', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0xdE903E2712288A1dA82942DDdF2c20529565aC30', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0x8f2072c2142D9fFDc785955E0Ce71561753D44Fb', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.GOERLI]: new Token(constants_1.ChainId.GOERLI, '0x2F9343Cf18BAAcF57AC4a4e20188b9b00CFce3f1', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0x6cAcDB97e3fC8136805a9E7c342d866ab77D0957', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0xDcb0BeB93139c3e5eD0Edb749baccADd6badAc4f', 18, 'SWPR', 'Swapr'), - [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0x532801ED6f82FFfD2DAB70A19fC2d7B2772C4f4b', 18, 'SWPR', 'Swapr'), -}; -Token.WBNB = { - [constants_1.ChainId.BSC_MAINNET]: new Token(constants_1.ChainId.BSC_MAINNET, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), - [constants_1.ChainId.BSC_TESTNET]: new Token(constants_1.ChainId.BSC_TESTNET, '0x094616F0BdFB0b526bD735Bf66Eca0Ad254ca81F', 18, 'WBNB', 'Wrapped BNB'), -}; -Token.WETH = { - [constants_1.ChainId.ARBITRUM_GOERLI]: new Token(constants_1.ChainId.ARBITRUM_GOERLI, '0x89C0DBbF7559E200443735e113039cE5f1e0e6F0', 18, 'WETH', 'Wrapped Ether on Görli'), - [constants_1.ChainId.ARBITRUM_ONE]: new Token(constants_1.ChainId.ARBITRUM_ONE, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), - [constants_1.ChainId.ARBITRUM_RINKEBY]: new Token(constants_1.ChainId.ARBITRUM_RINKEBY, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), - [constants_1.ChainId.GOERLI]: new Token(constants_1.ChainId.GOERLI, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether on Görli'), - [constants_1.ChainId.MAINNET]: new Token(constants_1.ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), - [constants_1.ChainId.OPTIMISM_MAINNET]: new Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), - [constants_1.ChainId.POLYGON]: new Token(constants_1.ChainId.POLYGON, '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', 18, 'WETH', 'Wrapped Ether on Polygon'), - [constants_1.ChainId.RINKEBY]: new Token(constants_1.ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), - [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', 18, 'WETH', 'Wrapped Ether on xDai'), - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new Token(constants_1.ChainId.ZK_SYNC_ERA_MAINNET, '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', 18, 'WETH', 'Wrapped Ether on zkSync'), - /** - * NOTE: Note the address of zkSync testnet contracts is subject - * to change without notice. - * @see https://era.zksync.io/docs/dev/building-on-zksync/useful-address.html - * @see https://syncswap.gitbook.io/api-documentation/resources/smart-contract - */ - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new Token(constants_1.ChainId.ZK_SYNC_ERA_TESTNET, '0x20b28b1e4665fff290650586ad76e977eab90c5d', 18, 'WETH', 'Wrapped Ether on zkSync Testnet'), -}; -Token.WMATIC = { - [constants_1.ChainId.POLYGON]: new Token(constants_1.ChainId.POLYGON, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), -}; -Token.WXDAI = { - [constants_1.ChainId.XDAI]: new Token(constants_1.ChainId.XDAI, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', 18, 'WXDAI', 'Wrapped xDAI'), -}; -Token.NATIVE_CURRENCY_WRAPPER = { - [constants_1.ChainId.ARBITRUM_GOERLI]: Token.WETH[constants_1.ChainId.ARBITRUM_GOERLI], - [constants_1.ChainId.ARBITRUM_ONE]: Token.WETH[constants_1.ChainId.ARBITRUM_ONE], - [constants_1.ChainId.ARBITRUM_RINKEBY]: Token.WETH[constants_1.ChainId.ARBITRUM_RINKEBY], - [constants_1.ChainId.BSC_MAINNET]: Token.WBNB[constants_1.ChainId.BSC_MAINNET], - [constants_1.ChainId.BSC_TESTNET]: Token.WBNB[constants_1.ChainId.BSC_TESTNET], - [constants_1.ChainId.GOERLI]: Token.WETH[constants_1.ChainId.GOERLI], - [constants_1.ChainId.MAINNET]: Token.WETH[constants_1.ChainId.MAINNET], - [constants_1.ChainId.OPTIMISM_GOERLI]: Token.WETH[constants_1.ChainId.OPTIMISM_MAINNET], - [constants_1.ChainId.OPTIMISM_MAINNET]: Token.WETH[constants_1.ChainId.OPTIMISM_MAINNET], - [constants_1.ChainId.POLYGON]: Token.WMATIC[constants_1.ChainId.POLYGON], - [constants_1.ChainId.RINKEBY]: Token.WETH[constants_1.ChainId.RINKEBY], - [constants_1.ChainId.XDAI]: Token.WXDAI[constants_1.ChainId.XDAI], - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: Token.WETH[constants_1.ChainId.ZK_SYNC_ERA_MAINNET], - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: Token.WETH[constants_1.ChainId.ZK_SYNC_ERA_TESTNET], -}; -/** - * Compares two currencies for equality - */ -function currencyEquals(currencyA, currencyB) { - if (currencyA instanceof Token && currencyB instanceof Token) { - return currencyA.equals(currencyB); - } - else if (currencyA instanceof Token) { - return false; - } - else if (currencyB instanceof Token) { - return false; - } - else { - return currencyA === currencyB; - } -} -exports.currencyEquals = currencyEquals; -// reexport for convenience -exports.ARB = Token.ARB; -exports.BUSD = Token.BUSD; -exports.CAKE = Token.CAKE; -exports.DXD = Token.DXD; -exports.SWPR = Token.SWPR; -exports.WBNB = Token.WBNB; -exports.WETH = Token.WETH; -exports.WMATIC = Token.WMATIC; -exports.WXDAI = Token.WXDAI; -//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/dist/entities/token.js.map b/dist/entities/token.js.map deleted file mode 100644 index 13d19fc5..00000000 --- a/dist/entities/token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/entities/token.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAEtC,4CAAsC;AACtC,oCAAkD;AAClD,yCAAqC;AAErC;;GAEG;AACH;;;GAGG;AACH,MAAa,KAAM,SAAQ,mBAAQ;IAgPjC,YAAmB,OAAgB,EAAE,OAAe,EAAE,QAAgB,EAAE,MAAe,EAAE,IAAa;QACpG,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QA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O,KAAK,CAAA;KACb;SAAM,IAAI,SAAS,YAAY,KAAK,EAAE;QACrC,OAAO,KAAK,CAAA;KACb;SAAM;QACL,OAAO,SAAS,KAAK,SAAS,CAAA;KAC/B;AACH,CAAC;AAVD,wCAUC;AAED,2BAA2B;AACd,QAAA,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;AACf,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;AACf,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AACjB,QAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;AACrB,QAAA,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/0x/0xTrade.d.ts b/dist/entities/trades/0x/0xTrade.d.ts deleted file mode 100644 index dc07163e..00000000 --- a/dist/entities/trades/0x/0xTrade.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { UnsignedTransaction } from '@ethersproject/transactions'; -import { Currency } from '../../currency'; -import { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Percent } from '../../fractions/percent'; -import { TradeWithSwapTransaction } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -import { ZeroXTradeConstructorParams } from './types'; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -export declare class ZeroXTrade extends TradeWithSwapTransaction { - readonly to: string; - readonly callData: string; - readonly value: string; - constructor({ breakdown, input, output, maximumSlippage, tradeType, to, callData, value, priceImpact, estimatedGas, }: ZeroXTradeConstructorParams); - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - static bestTradeExactIn(currencyAmountIn: CurrencyAmount, currencyOut: Currency, maximumSlippage: Percent): Promise; - static bestTradeExactOut(currencyIn: Currency, currencyAmountOut: CurrencyAmount, maximumSlippage: Percent): Promise; - /** - * Returns the transaction to execute the trade - * @param options The options to execute the trade with - * @returns - */ - swapTransaction(options: TradeOptions): Promise; -} diff --git a/dist/entities/trades/0x/0xTrade.js b/dist/entities/trades/0x/0xTrade.js deleted file mode 100644 index 5550f2b0..00000000 --- a/dist/entities/trades/0x/0xTrade.js +++ /dev/null @@ -1,209 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZeroXTrade = void 0; -const tslib_1 = require("tslib"); -const bignumber_1 = require("@ethersproject/bignumber"); -const debug_1 = tslib_1.__importDefault(require("debug")); -const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../../constants"); -const currency_1 = require("../../currency"); -const currencyAmount_1 = require("../../fractions/currencyAmount"); -const fraction_1 = require("../../fractions/fraction"); -const price_1 = require("../../fractions/price"); -const tokenAmount_1 = require("../../fractions/tokenAmount"); -const platforms_breakdown_1 = require("../../platforms-breakdown"); -const token_1 = require("../../token"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_1 = require("../utils"); -const constants_2 = require("./constants"); -const utils_2 = require("./utils"); -// Debuging logger. See documentation to enable logging. -const debug0X = (0, debug_1.default)('ecoRouter:0x'); -const headers = { '0x-api-key': `${process.env.REACT_APP_ZEROX_PROTOCOL_API_KEY}` }; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -class ZeroXTrade extends trade_1.TradeWithSwapTransaction { - constructor({ breakdown, input, output, maximumSlippage, tradeType, to, callData, value, priceImpact, estimatedGas, }) { - (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(input.currency, output.currency), 'CURRENCY'); - const chainId = breakdown.chainId; - super({ - details: breakdown, - type: tradeType, - inputAmount: input, - outputAmount: output, - executionPrice: new price_1.Price({ - baseCurrency: input.currency, - quoteCurrency: output.currency, - denominator: input.raw, - numerator: output.raw, - }), - maximumSlippage, - priceImpact, - chainId, - platform: routable_platform_1.RoutablePlatform.ZEROX, - approveAddress: to, - estimatedGas, - }); - this.to = to; - this.callData = callData; - this.value = value; - } - minimumAmountOut() { - if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - static bestTradeExactIn(currencyAmountIn, currencyOut, maximumSlippage) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); - const apiUrl = chainId && constants_2.ZEROX_API_URL[chainId]; - (0, tiny_invariant_1.default)(chainId !== undefined && apiUrl !== undefined && apiUrl.length > 0, 'CHAIN_ID'); - const amountIn = (0, utils_1.wrappedAmount)(currencyAmountIn, chainId); - const tokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); - const tokenOut = (0, utils_1.wrappedCurrency)(currencyOut, chainId); - (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); - let bestTrade; - try { - const buyToken = currency_1.Currency.isNative(currencyOut) ? currencyOut.symbol : tokenOut.address; - const sellToken = currency_1.Currency.isNative(currencyAmountIn.currency) - ? currencyAmountIn.currency.symbol - : tokenIn.address; - const apiUrlParams = (0, utils_2.build0xApiUrl)({ - apiUrl, - sellAmount: amountIn, - maximumSlippage, - chainId, - buyToken, - sellToken, - }); - // slippagePercentage for the 0X API needs to be a value between 0 and 1, others have between 0 and 100 - const response = yield (0, node_fetch_1.default)(apiUrlParams, { headers }); - if (!response.ok) - throw new Error('response not ok'); - const json = (yield response.json()); - const breakdown = new platforms_breakdown_1.Breakdown(chainId, (0, utils_2.platformsFromSources)(json.sources), tokenIn, tokenOut, new price_1.Price({ - baseCurrency: tokenIn, - quoteCurrency: tokenOut, - denominator: amountIn.raw, - numerator: json.buyAmount, - })); - bestTrade = new ZeroXTrade({ - breakdown, - input: currencyAmountIn, - output: currency_1.Currency.isNative(currencyOut) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(json.buyAmount, chainId) - : new tokenAmount_1.TokenAmount(tokenOut, json.buyAmount), - maximumSlippage, - tradeType: constants_1.TradeType.EXACT_INPUT, - to: json.to, - callData: json.data, - value: json.value, - priceImpact: (0, utils_2.decodeStringToPercent)(json.estimatedPriceImpact, true), - estimatedGas: bignumber_1.BigNumber.from(json.estimatedGas), - }); - } - catch (error) { - console.error('could not fetch 0x trade', error); - } - return bestTrade; - }); - } - static bestTradeExactOut(currencyIn, currencyAmountOut, maximumSlippage) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); - const apiUrl = chainId && constants_2.ZEROX_API_URL[chainId]; - (0, tiny_invariant_1.default)(chainId !== undefined && apiUrl !== undefined && apiUrl.length > 0, 'CHAIN_ID'); - const tokenIn = (0, utils_1.wrappedCurrency)(currencyIn, chainId); - const amountOut = (0, utils_1.wrappedAmount)(currencyAmountOut, chainId); - const tokenOut = (0, utils_1.wrappedCurrency)(currencyAmountOut.currency, chainId); - (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); - let bestTrade; - try { - const sellToken = currency_1.Currency.isNative(currencyIn) ? currencyIn.symbol : tokenIn.address; - const buyToken = currency_1.Currency.isNative(currencyAmountOut.currency) - ? currencyAmountOut.currency.symbol - : tokenOut.address; - const apiUrlParams = (0, utils_2.build0xApiUrl)({ - apiUrl, - buyAmount: amountOut, - maximumSlippage, - chainId, - buyToken, - sellToken, - }); - // slippagePercentage for the 0X API needs to be a value between 0 and 1, others have between 0 and 100 - const response = yield (0, node_fetch_1.default)(apiUrlParams, { headers }); - if (!response.ok) - throw new Error('response not ok'); - const json = (yield response.json()); - const breakdown = new platforms_breakdown_1.Breakdown(chainId, (0, utils_2.platformsFromSources)(json.sources), tokenIn, tokenOut, new price_1.Price({ - baseCurrency: tokenOut, - quoteCurrency: tokenIn, - denominator: amountOut.raw, - numerator: json.sellAmount, - })); - bestTrade = new ZeroXTrade({ - breakdown, - input: currency_1.Currency.isNative(currencyIn) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(json.sellAmount, chainId) - : new tokenAmount_1.TokenAmount(tokenIn, json.sellAmount), - output: currencyAmountOut, - maximumSlippage, - tradeType: constants_1.TradeType.EXACT_OUTPUT, - to: json.to, - callData: json.data, - value: json.value, - priceImpact: (0, utils_2.decodeStringToPercent)(json.estimatedPriceImpact, true), - estimatedGas: bignumber_1.BigNumber.from(json.estimatedGas), - }); - } - catch (error) { - console.error('could not fetch 0x trade', error); - } - return bestTrade; - }); - } - /** - * Returns the transaction to execute the trade - * @param options The options to execute the trade with - * @returns - */ - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - debug0X({ options }); - return { - to: this.to, - data: this.callData, - value: bignumber_1.BigNumber.from(this.value), - }; - }); - } -} -exports.ZeroXTrade = ZeroXTrade; -//# sourceMappingURL=0xTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/0xTrade.js.map b/dist/entities/trades/0x/0xTrade.js.map deleted file mode 100644 index b6306144..00000000 --- a/dist/entities/trades/0x/0xTrade.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"0xTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/0xTrade.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AAEpD,0DAA+B;AAC/B,oEAA8B;AAC9B,4EAAsC;AAEtC,kDAAmD;AACnD,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AAEnD,iDAA6C;AAC7C,6DAAyD;AACzD,mEAAqD;AACrD,uCAA4C;AAC5C,+CAA8D;AAE9D,4DAAuD;AACvD,oCAAwE;AACxE,2CAA2C;AAE3C,mCAAoF;AAEpF,wDAAwD;AACxD,MAAM,OAAO,GAAG,IAAA,eAAW,EAAC,cAAc,CAAC,CAAA;AAC3C,MAAM,OAAO,GAAG,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,CAAA;AAEnF;;;GAGG;AACH,MAAa,UAAW,SAAQ,gCAAwB;IAKtD,YAAmB,EACjB,SAAS,EACT,KAAK,EACL,MAAM,EACN,eAAe,EACf,SAAS,EACT,EAAE,EACF,QAAQ,EACR,KAAK,EACL,WAAW,EACX,YAAY,GACgB;QAC5B,IAAA,wBAAS,EAAC,CAAC,IAAA,sBAAc,EAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;QACjC,KAAK,CAAC;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,MAAM;YACpB,cAAc,EAAE,IAAI,aAAK,CAAC;gBACxB,YAAY,EAAE,KAAK,CAAC,QAAQ;gBAC5B,aAAa,EAAE,MAAM,CAAC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BACnB,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,WAAW,EAAE,IAAA,6BAAqB,EAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC;oBACnE,YAAY,EAAE,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;iBAChD,CAAC,CAAA;aACH;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAA;aACjD;YAED,OAAO,SAAS,CAAA;QAClB,CAAC;KAAA;IAED;;;;OAIG;IACU,eAAe,CAAC,OAAqB;;YAChD,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;YACpB,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,QAAQ;gBACnB,KAAK,EAAE,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAA;QACH,CAAC;KAAA;CACF;AArND,gCAqNC"} \ No newline at end of file diff --git a/dist/entities/trades/0x/constants.d.ts b/dist/entities/trades/0x/constants.d.ts deleted file mode 100644 index ef16082b..00000000 --- a/dist/entities/trades/0x/constants.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ChainId } from '../../../constants/chains'; -/** - * For API endpoints reference, - * @see https://0x.org/docs/introduction/0x-cheat-sheet - */ -export declare const ZEROX_API_URL: Record; -export declare const ZERO_OX_REFFERER_FEE = "0"; diff --git a/dist/entities/trades/0x/constants.js b/dist/entities/trades/0x/constants.js deleted file mode 100644 index 43a710ba..00000000 --- a/dist/entities/trades/0x/constants.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZERO_OX_REFFERER_FEE = exports.ZEROX_API_URL = void 0; -const chains_1 = require("../../../constants/chains"); -/** - * For API endpoints reference, - * @see https://0x.org/docs/introduction/0x-cheat-sheet - */ -exports.ZEROX_API_URL = { - [chains_1.ChainId.MAINNET]: 'https://api.0x.org/', - [chains_1.ChainId.RINKEBY]: '', - [chains_1.ChainId.ARBITRUM_ONE]: 'https://arbitrum.api.0x.org/', - [chains_1.ChainId.ARBITRUM_RINKEBY]: '', - [chains_1.ChainId.ARBITRUM_GOERLI]: '', - [chains_1.ChainId.XDAI]: '', - [chains_1.ChainId.POLYGON]: 'https://polygon.api.0x.org/', - [chains_1.ChainId.GOERLI]: 'https://goerli.api.0x.org/', - [chains_1.ChainId.OPTIMISM_MAINNET]: 'https://optimism.api.0x.org/', - [chains_1.ChainId.OPTIMISM_GOERLI]: '', - [chains_1.ChainId.BSC_MAINNET]: 'https://bsc.api.0x.org/', - [chains_1.ChainId.BSC_TESTNET]: '', - [chains_1.ChainId.ZK_SYNC_ERA_MAINNET]: '', - [chains_1.ChainId.ZK_SYNC_ERA_TESTNET]: '', -}; -//buyTOkenPercetageFee value -exports.ZERO_OX_REFFERER_FEE = '0'; //MIN-> 0. MAX-> 1 percent -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/constants.js.map b/dist/entities/trades/0x/constants.js.map deleted file mode 100644 index ad3d6511..00000000 --- a/dist/entities/trades/0x/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/constants.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AAEnD;;;GAGG;AACU,QAAA,aAAa,GAA4B;IACpD,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,qBAAqB;IACxC,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,gBAAO,CAAC,YAAY,CAAC,EAAE,8BAA8B;IACtD,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,gBAAO,CAAC,IAAI,CAAC,EAAE,EAAE;IAClB,CAAC,gBAAO,CAAC,OAAO,CAAC,EAAE,6BAA6B;IAChD,CAAC,gBAAO,CAAC,MAAM,CAAC,EAAE,4BAA4B;IAC9C,CAAC,gBAAO,CAAC,gBAAgB,CAAC,EAAE,8BAA8B;IAC1D,CAAC,gBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,yBAAyB;IAChD,CAAC,gBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,gBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA;AAED,4BAA4B;AACf,QAAA,oBAAoB,GAAG,GAAG,CAAA,CAAC,0BAA0B"} \ No newline at end of file diff --git a/dist/entities/trades/0x/index.d.ts b/dist/entities/trades/0x/index.d.ts deleted file mode 100644 index 38eeb480..00000000 --- a/dist/entities/trades/0x/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './0xTrade'; -export * from './types'; diff --git a/dist/entities/trades/0x/index.js b/dist/entities/trades/0x/index.js deleted file mode 100644 index 593618a3..00000000 --- a/dist/entities/trades/0x/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./0xTrade"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/index.js.map b/dist/entities/trades/0x/index.js.map deleted file mode 100644 index 9b7dd02a..00000000 --- a/dist/entities/trades/0x/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/0x/types.d.ts b/dist/entities/trades/0x/types.d.ts deleted file mode 100644 index 6e9858e7..00000000 --- a/dist/entities/trades/0x/types.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { BigNumber } from '@ethersproject/bignumber'; -import Decimal from 'decimal.js-light'; -import { TradeType } from '../../../constants'; -import { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Percent } from '../../fractions/percent'; -import { Breakdown } from '../../platforms-breakdown'; -export interface ApiSource { - name: string; - proportion: string; -} -export interface ApiResponse { - price: string; - estimatedPriceImpact: string; - guaranteedPrice: string; - to: string; - data: string; - value: string; - gas: string; - estimatedGas: string; - gasPrice: string; - protocolFee: string; - minimumProtocolFee: string; - buyTokenAddress: string; - sellTokenAddress: string; - buyAmount: string; - sellAmount: string; - estimatedGasTokenRefund: string; - sources: ApiSource[]; -} -export interface ZeroXTradeConstructorParams { - breakdown: Breakdown; - input: CurrencyAmount; - output: CurrencyAmount; - maximumSlippage: Percent; - tradeType: TradeType; - to: string; - callData: string; - value: string; - priceImpact: Percent; - estimatedGas: BigNumber; -} -export interface DecodeStringFractionReturn { - numerator: Decimal; - denominator: Decimal; -} diff --git a/dist/entities/trades/0x/types.js b/dist/entities/trades/0x/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/0x/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/types.js.map b/dist/entities/trades/0x/types.js.map deleted file mode 100644 index 6957d59d..00000000 --- a/dist/entities/trades/0x/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/0x/utils.d.ts b/dist/entities/trades/0x/utils.d.ts deleted file mode 100644 index d3295f2a..00000000 --- a/dist/entities/trades/0x/utils.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ChainId } from '../../../constants'; -import { TokenAmount } from '../../fractions'; -import { Percent } from '../../fractions/percent'; -import { Platform } from '../../platforms-breakdown'; -import { ApiSource, DecodeStringFractionReturn } from './types'; -export declare const decodePlatformName: (apiName: string) => string; -export declare const decodeStringFraction: (value: string) => DecodeStringFractionReturn; -export declare const decodeStringToPercent: (value: string, isStringPercent?: boolean) => Percent; -export declare const platformsFromSources: (sources: ApiSource[]) => Platform[]; -interface ApiParams { - apiUrl: string; - sellAmount?: TokenAmount; - buyAmount?: TokenAmount; - maximumSlippage: Percent; - chainId: ChainId; - buyToken?: string; - sellToken?: string; -} -export declare function build0xApiUrl({ apiUrl, sellAmount, buyAmount, maximumSlippage, chainId, buyToken, sellToken, }: ApiParams): string; -export {}; diff --git a/dist/entities/trades/0x/utils.js b/dist/entities/trades/0x/utils.js deleted file mode 100644 index e9e25e22..00000000 --- a/dist/entities/trades/0x/utils.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.build0xApiUrl = exports.platformsFromSources = exports.decodeStringToPercent = exports.decodeStringFraction = exports.decodePlatformName = void 0; -const tslib_1 = require("tslib"); -const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const percent_1 = require("../../fractions/percent"); -const constants_1 = require("../constants"); -const constants_2 = require("./constants"); -const decodePlatformName = (apiName) => apiName.replace(/_/g, ' '); -exports.decodePlatformName = decodePlatformName; -const decodeStringFraction = (value) => { - const proportion = new decimal_js_light_1.default(value); - const denominator = new decimal_js_light_1.default('10').pow(proportion.decimalPlaces()); - const numerator = proportion.times(denominator); - return { numerator, denominator }; -}; -exports.decodeStringFraction = decodeStringFraction; -const decodeStringToPercent = (value, isStringPercent) => { - const { numerator, denominator } = (0, exports.decodeStringFraction)(value); - const percent = isStringPercent ? new decimal_js_light_1.default('10').pow(2) : 1; - return new percent_1.Percent(numerator.toString(), denominator.times(percent).toString()); -}; -exports.decodeStringToPercent = decodeStringToPercent; -const platformsFromSources = (sources) => { - return sources - .map((source) => { - return { - name: (0, exports.decodePlatformName)(source.name), - percentage: (0, exports.decodeStringToPercent)(source.proportion), - }; - }) - .filter((platform) => platform.percentage.greaterThan('0')) - .sort((a, b) => (a.percentage.greaterThan(b.percentage) ? -1 : a.percentage.equalTo(b.percentage) ? 0 : 1)); -}; -exports.platformsFromSources = platformsFromSources; -function build0xApiUrl({ apiUrl, sellAmount, buyAmount, maximumSlippage, chainId, buyToken, sellToken, }) { - const slippagePercentage = new percent_1.Percent(maximumSlippage.numerator, jsbi_1.default.multiply(maximumSlippage.denominator, jsbi_1.default.BigInt(100))).toFixed(3); - let amountParam = ''; - if (!!sellAmount) - amountParam = `sellAmount=${sellAmount.raw}`; - else if (!!buyAmount) - amountParam = `buyAmount=${buyAmount.raw}`; - let apiUrlWithParams = `${apiUrl}swap/v1/quote?buyToken=${buyToken}&sellToken=${sellToken}&${amountParam}&slippagePercentage=${slippagePercentage}`; - if (constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) { - const feeRecipient = constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]; - apiUrlWithParams += `&feeRecipient=${feeRecipient}&buyTokenPercentageFee=${constants_2.ZERO_OX_REFFERER_FEE}`; - } - return apiUrlWithParams; -} -exports.build0xApiUrl = build0xApiUrl; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/0x/utils.js.map b/dist/entities/trades/0x/utils.js.map deleted file mode 100644 index ccc1ad71..00000000 --- a/dist/entities/trades/0x/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/0x/utils.ts"],"names":[],"mappings":";;;;AAAA,gFAAsC;AACtC,wDAAuB;AAIvB,qDAAiD;AAEjD,4CAA6D;AAC7D,2CAAkD;AAG3C,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE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CAAC;AA1BD,sCA0BC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/OneInch.d.ts b/dist/entities/trades/OneInch/OneInch.d.ts deleted file mode 100644 index e8396b16..00000000 --- a/dist/entities/trades/OneInch/OneInch.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { BaseProvider } from '@ethersproject/providers'; -import { UnsignedTransaction } from '@ethersproject/transactions'; -import { ChainId, TradeType } from '../../../constants'; -import { Currency } from '../../currency'; -import { CurrencyAmount, Percent } from '../../fractions'; -import { Trade } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -export interface OneInchQuoteTypes { - amount: CurrencyAmount; - quoteCurrency: Currency; - tradeType: TradeType; - maximumSlippage?: Percent; - recipient?: string; -} -interface ExtentendedTradeOptions extends TradeOptions { - account: string; -} -interface OneInchConstructorParams { - maximumSlippage: Percent; - currencyAmountIn: CurrencyAmount; - currencyAmountOut: CurrencyAmount; - tradeType: TradeType; - chainId: ChainId; - approveAddress: string; -} -/** - * 1Inch trade - */ -export declare class OneInchTrade extends Trade { - constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, approveAddress, }: OneInchConstructorParams); - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }: OneInchQuoteTypes, provider?: BaseProvider): Promise; - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - /** - * Returns unsigned transaction for the trade - * @returns the unsigned transaction - */ - swapTransaction(options: ExtentendedTradeOptions): Promise; -} -export {}; diff --git a/dist/entities/trades/OneInch/OneInch.js b/dist/entities/trades/OneInch/OneInch.js deleted file mode 100644 index 8f6e09bb..00000000 --- a/dist/entities/trades/OneInch/OneInch.js +++ /dev/null @@ -1,154 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OneInchTrade = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../../constants"); -const currency_1 = require("../../currency"); -const fractions_1 = require("../../fractions"); -const constants_2 = require("../constants"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_1 = require("../utils"); -const api_1 = require("./api"); -/** - * 1Inch trade - */ -class OneInchTrade extends trade_1.Trade { - constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, approveAddress, }) { - super({ - details: undefined, - type: tradeType, - inputAmount: currencyAmountIn, - outputAmount: currencyAmountOut, - maximumSlippage, - platform: routable_platform_1.RoutablePlatform.ONE_INCH, - chainId, - executionPrice: new fractions_1.Price({ - baseCurrency: currencyAmountIn.currency, - quoteCurrency: currencyAmountOut.currency, - denominator: currencyAmountIn.raw, - numerator: currencyAmountOut.raw, - }), - priceImpact: new fractions_1.Percent('0', '100'), - fee: new fractions_1.Percent('0', '10000'), - approveAddress, - }); - } - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage = constants_2.maximumSlippage }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); - if (!chainId) { - throw new Error('getQuote: chainId is required'); - } - provider = provider || (0, utils_1.getProvider)(chainId); - // Ensure the provider's chainId matches the provided currencies - (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `OneInch.getQuote: currencies chainId does not match provider's chainId`); - const currencyIn = amount.currency; - const currencyOut = quoteCurrency; - // Ensure that the currencies are present - (0, tiny_invariant_1.default)(currencyIn.address && currencyOut.address, `getQuote: Currency address is required`); - try { - //Fetch approve address - const { address: approveAddress } = yield (yield fetch((0, api_1.approveAddressUrl)(chainId))).json(); - // Prepare the query parameters for the API request - const queryParams = { - fromTokenAddress: currencyIn.address, - toTokenAddress: currencyOut.address, - amount: amount.raw.toString(), - }; - const { toAmount } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.QUOTE, queryParams, chainId }))).json(); - let toTokenAmountApi = toAmount; - const fromTokenAmountApi = amount.raw.toString(); - if (tradeType === constants_1.TradeType.EXACT_OUTPUT) { - // Prepare the query parameters for the API request - const queryParams = { - fromTokenAddress: currencyOut.address, - toTokenAddress: currencyIn.address, - amount: toAmount.toString(), - }; - const { toAmount: toTokenAmountOutput } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.QUOTE, queryParams, chainId }))).json(); - toTokenAmountApi = toTokenAmountOutput; - } - const currencyInType = tradeType === constants_1.TradeType.EXACT_INPUT ? currencyIn : currencyOut; - const currencyOutType = tradeType === constants_1.TradeType.EXACT_INPUT ? currencyOut : currencyIn; - const currencyAmountIn = currency_1.Currency.isNative(currencyInType) - ? fractions_1.CurrencyAmount.nativeCurrency(fromTokenAmountApi, chainId) - : new fractions_1.TokenAmount((0, utils_1.wrappedCurrency)(currencyInType, chainId), fromTokenAmountApi); - const currencyAmountOut = currency_1.Currency.isNative(currencyOutType) - ? fractions_1.CurrencyAmount.nativeCurrency(toTokenAmountApi, chainId) - : new fractions_1.TokenAmount((0, utils_1.wrappedCurrency)(currencyOutType, chainId), toTokenAmountApi); - return new OneInchTrade({ - maximumSlippage, - currencyAmountIn, - currencyAmountOut, - tradeType, - chainId, - approveAddress, - }); - } - catch (error) { - console.error('OneInch.getQuote: Error fetching the quote:', error.message); - return null; - } - }); - } - minimumAmountOut() { - if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - /** - * Returns unsigned transaction for the trade - * @returns the unsigned transaction - */ - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - (0, tiny_invariant_1.default)(this.inputAmount.currency.address && this.outputAmount.currency.address, 'OneInchTrade: Currency address is required'); - const queryParams = { - fromTokenAddress: this.inputAmount.currency.address, - toTokenAddress: this.outputAmount.currency.address, - amount: this.inputAmount.raw.toString(), - fromAddress: options.account, - slippage: this.maximumSlippage.toSignificant(2), - destReciever: options.recipient, - }; - try { - // Fetch the unsigned transaction from the API - const { tx } = yield (yield fetch((0, api_1.generateApiRequestUrl)({ methodName: api_1.RequestType.SWAP, queryParams, chainId: this.chainId }))).json(); - return { - data: tx.data, - to: tx.to, - value: tx.value, - }; - } - catch (e) { - throw new Error(`OneInch.swapTransaction: Error fetching the swap data: ${e.message}`); - } - }); - } -} -exports.OneInchTrade = OneInchTrade; -//# sourceMappingURL=OneInch.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/OneInch.js.map b/dist/entities/trades/OneInch/OneInch.js.map deleted file mode 100644 index f4bc34c4..00000000 --- a/dist/entities/trades/OneInch/OneInch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OneInch.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/OneInch.ts"],"names":[],"mappings":";;;;AAEA,4EAAsC;AAEtC,kDAA4D;AAC5D,6CAAyC;AACzC,+CAAuF;AACvF,4CAAwE;AACxE,+CAA2C;AAE3C,4DAAuD;AACvD,oCAAsE;AACtE,+BAA6E;AAuB7E;;GAEG;AACH,MAAa,YAAa,SAAQ,aAAK;IACrC,YAAmB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,OAA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AAW,EAAE,OAAO,CAAC,OAAO;gBAC5B,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC;gBAC/C,YAAY,EAAE,OAAO,CAAC,SAAS;aAChC,CAAA;YAED,IAAI;gBACF,8CAA8C;gBAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CACnB,MAAM,KAAK,CAAC,IAAA,2BAAqB,EAAC,EAAE,UAAU,EAAE,iBAAW,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CACzG,CAAC,IAAI,EAAE,CAAA;gBAER,OAAO;oBACL,IAAI,EAAE,EAAE,CAAC,IAAI;oBACb,EAAE,EAAE,EAAE,CAAC,EAAE;oBACT,KAAK,EAAE,EAAE,CAAC,KAAK;iBAChB,CAAA;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;aACvF;QACH,CAAC;KAAA;CACF;AAzKD,oCAyKC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/api.d.ts b/dist/entities/trades/OneInch/api.d.ts deleted file mode 100644 index c4a488e9..00000000 --- a/dist/entities/trades/OneInch/api.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ChainId } from '../../../constants'; -export declare enum RequestType { - QUOTE = "/quote", - SWAP = "/swap" -} -interface ApiRequestUrlParams { - methodName: RequestType; - queryParams: Record; - chainId: ChainId; -} -export declare function generateApiRequestUrl({ methodName, queryParams, chainId }: ApiRequestUrlParams): string; -export declare function approveAddressUrl(chainId: ChainId): string; -export {}; diff --git a/dist/entities/trades/OneInch/api.js b/dist/entities/trades/OneInch/api.js deleted file mode 100644 index b99a206a..00000000 --- a/dist/entities/trades/OneInch/api.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.approveAddressUrl = exports.generateApiRequestUrl = exports.RequestType = void 0; -const constants_1 = require("../constants"); -var RequestType; -(function (RequestType) { - RequestType["QUOTE"] = "/quote"; - RequestType["SWAP"] = "/swap"; -})(RequestType = exports.RequestType || (exports.RequestType = {})); -var ApiName; -(function (ApiName) { - ApiName["FUSION"] = "/fusion"; - ApiName["SPOT_PRICE"] = "/price"; - ApiName["SWAP"] = "/swap"; -})(ApiName || (ApiName = {})); -var SubApiName; -(function (SubApiName) { - SubApiName["ORDERS"] = "/orders"; - SubApiName["QUOTER"] = "/quoter"; - SubApiName["RELAYER"] = "/relayer"; -})(SubApiName || (SubApiName = {})); -var ApiVersion; -(function (ApiVersion) { - ApiVersion["FUSION"] = "/v1.0"; - ApiVersion["SPOT_PRICE"] = "/v1.1"; - ApiVersion["SWAP"] = "/v5.2"; -})(ApiVersion || (ApiVersion = {})); -/** - * @see https://portal.1inch.dev/documentation/swap/introduction - */ -const API_BASE_URL = (_a = process.env.REACT_APP_ONEINCH_BASE_API_URL) !== null && _a !== void 0 ? _a : 'https://api.1inch.dev/'; -const ONE_INCH_REFFERER_FEE = '0'; //MIN-> 0 MAX-> 3 -const getApiUrl = ({ apiName, apiVersion, chainId, subApiName = '' }) => `${API_BASE_URL}${apiName}${subApiName}${apiVersion}/${chainId}`; -function generateApiRequestUrl({ methodName, queryParams, chainId }) { - var _a; - if (constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) { - queryParams.referrerAddress = (_a = constants_1.REFFERER_ADDRESS_CHAIN_MAPPING[chainId]) !== null && _a !== void 0 ? _a : ''; - queryParams.fee = ONE_INCH_REFFERER_FEE; - } - return (getApiUrl({ apiName: ApiName.SWAP, apiVersion: ApiVersion.SWAP, chainId }) + - methodName + - '?' + - new URLSearchParams(queryParams).toString()); -} -exports.generateApiRequestUrl = generateApiRequestUrl; -function approveAddressUrl(chainId) { - return getApiUrl({ apiName: ApiName.SWAP, apiVersion: ApiVersion.SWAP, chainId }) + '/approve/spender'; -} -exports.approveAddressUrl = approveAddressUrl; -//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/api.js.map b/dist/entities/trades/OneInch/api.js.map deleted file mode 100644 index 3e2c09ed..00000000 --- a/dist/entities/trades/OneInch/api.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/api.ts"],"names":[],"mappings":";;;;AACA,4CAA6D;AAE7D,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,+BAAgB,CAAA;IAChB,6BAAc,CAAA;AAChB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAK,OAIJ;AAJD,WAAK,OAAO;IACV,6BAAkB,CAAA;IAClB,gCAAqB,CAAA;IACrB,yBAAc,CAAA;AAChB,CAAC,EAJI,OAAO,KAAP,OAAO,QAIX;AAED,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,gCAAkB,CAAA;IAClB,gCAAkB,CAAA;IAClB,kCAAoB,CAAA;AACtB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,8BAAgB,CAAA;IAChB,kCAAoB,CAAA;IACpB,4BAAc,CAAA;AAChB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAeD;;GAEG;AAEH,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,8BAA8B,mCAAI,wBAAwB,CAAA;AAC3F,MAAM,qBAAqB,GAAG,GAAG,CAAA,CAAC,iBAAiB;AAEnD,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,GAAG,EAAE,EAAgB,EAAE,EAAE,CACpF,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,IAAI,OAAO,EAAE,CAAA;AAElE,SAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAuB;;IAC7F,IAAI,0CAA8B,CAAC,OAAO,CAAC,EAAE;QAC3C,WAAW,CAAC,eAAe,GAAG,MAAA,0CAA8B,CAAC,OAAO,CAAC,mCAAI,EAAE,CAAA;QAC3E,WAAW,CAAC,GAAG,GAAG,qBAAqB,CAAA;KACxC;IAED,OAAO,CACL,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;QAC1E,UAAU;QACV,GAAG;QACH,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAC5C,CAAA;AACH,CAAC;AAZD,sDAYC;AAED,SAAgB,iBAAiB,CAAC,OAAgB;IAChD,OAAO,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAA;AACxG,CAAC;AAFD,8CAEC"} \ No newline at end of file diff --git a/dist/entities/trades/OneInch/index.d.ts b/dist/entities/trades/OneInch/index.d.ts deleted file mode 100644 index 96b41ae8..00000000 --- a/dist/entities/trades/OneInch/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './OneInch'; diff --git a/dist/entities/trades/OneInch/index.js b/dist/entities/trades/OneInch/index.js deleted file mode 100644 index a5da981a..00000000 --- a/dist/entities/trades/OneInch/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./OneInch"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/OneInch/index.js.map b/dist/entities/trades/OneInch/index.js.map deleted file mode 100644 index dd05351c..00000000 --- a/dist/entities/trades/OneInch/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/OneInch/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"} \ No newline at end of file diff --git a/dist/entities/trades/constants/index.d.ts b/dist/entities/trades/constants/index.d.ts deleted file mode 100644 index ecb571ae..00000000 --- a/dist/entities/trades/constants/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ChainId } from '../../../constants'; -import { Percent } from '../../../entities/fractions'; -/** - * Default maximum slippage tolerance at 3% - */ -export declare const maximumSlippage: Percent; -export declare const REFFERER_ADDRESS_CHAIN_MAPPING: Partial>; diff --git a/dist/entities/trades/constants/index.js b/dist/entities/trades/constants/index.js deleted file mode 100644 index e9d79d39..00000000 --- a/dist/entities/trades/constants/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.REFFERER_ADDRESS_CHAIN_MAPPING = exports.maximumSlippage = void 0; -const constants_1 = require("../../../constants"); -const fractions_1 = require("../../../entities/fractions"); -/** - * Default maximum slippage tolerance at 3% - */ -exports.maximumSlippage = new fractions_1.Percent('3', '100'); -exports.REFFERER_ADDRESS_CHAIN_MAPPING = { - [constants_1.ChainId.MAINNET]: '0x424F2fc764aFFaE340021d65EF0343af1847Cf1d', - [constants_1.ChainId.POLYGON]: '0x6810B7D3FEF83A37fF39501d03A42d9f57DF1df1', - [constants_1.ChainId.ARBITRUM_ONE]: '0x654a8A1B2ee4F0B4470c5C7db9794664BA70E076', - [constants_1.ChainId.BSC_MAINNET]: '0x09D4B6C9c1Cb8Cf2d49C928d0109ba19931eC3c2', - [constants_1.ChainId.OPTIMISM_MAINNET]: '0x78C90A9f0e457278350D8BFfb4ee8be28238f891', - [constants_1.ChainId.GNOSIS]: '0xfe0da679F5DC5732CF6E6522026B7f2ea2856597', -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/constants/index.js.map b/dist/entities/trades/constants/index.js.map deleted file mode 100644 index 812cba5a..00000000 --- a/dist/entities/trades/constants/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/constants/index.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,2DAAqD;AAErD;;GAEG;AACU,QAAA,eAAe,GAAG,IAAI,mBAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAEzC,QAAA,8BAA8B,GAAqC;IAC9E,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4CAA4C;IAC/D,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,4CAA4C;IACpE,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,4CAA4C;IACnE,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,4CAA4C;IACxE,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,4CAA4C;CAC/D,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/CurveTrade.d.ts b/dist/entities/trades/curve/CurveTrade.d.ts deleted file mode 100644 index 39c37c19..00000000 --- a/dist/entities/trades/curve/CurveTrade.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Contract } from '@ethersproject/contracts'; -import { Provider } from '@ethersproject/providers'; -import type { UnsignedTransaction } from '@ethersproject/transactions'; -import { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Token } from '../../token'; -import { Trade } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -import { CurveTradeBestTradeExactInParams, CurveTradeBestTradeExactOutParams, CurveTradeConstructorParams, CurveTradeGetQuoteParams, CurveTradeQuote } from './types'; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -export declare class CurveTrade extends Trade { - /** - * The Unsigned transaction - */ - readonly transactionRequest: UnsignedTransaction; - /** - * The contract instance through which the trade go through - */ - readonly contract: Contract; - /** - * - * @param {Object} obj Curve trade options. - * @param {CurrencyAmount} obj.inputAmount - Input token - * @param {CurrencyAmount} obj.outputAmount - Output token - * @param {Percent} obj.maximumSlippage - Maximum slippage indicated by the user - * @param {TradeType} obj.tradeType - Trade type - * @param {string} obj.transactionRequest - Address to to which transaction is send - * @param {Percent} obj.fee - Trade fee - * @param {string} obj.approveAddress - Approve address, defaults to `to` - */ - constructor({ inputAmount, outputAmount, maximumSlippage, tradeType, chainId, transactionRequest, approveAddress, fee, contract, }: CurveTradeConstructorParams); - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - /** - * Checks if two tokens can be routed between on Curve Finance pools. - * This method returns accurate results only on Ethereum since the Curve Router is available there. - * @param {string} tokenIn - * @param {string} tokenOut - * @returns a `boolean` whether the tokens can be exchanged on Curve Finance pools - */ - static canRoute(tokenIn: Token, tokenOut: Token): Promise; - /** - * Given an a sell token and a buy token, and amount of sell token, returns a - * quote from Curve's pools with best pool, and unsigned transactions data - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency in - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static getQuote({ currencyAmountIn, currencyOut, maximumSlippage, receiver }: CurveTradeGetQuoteParams, provider?: Provider): Promise; - /** - * Computes and returns the best trade from Curve pools - * by comparing all the Curve pools on target chain - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver }: CurveTradeBestTradeExactInParams, provider?: Provider): Promise; - /** - * Computes and returns the best trade from Curve pools using output as target. - * Avoid usig this method. It uses some optimistic math estimate right input. - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountOut the amount of curreny in - buy token - * @param {Currency} obj.currencyIn the currency in - sell token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver }: CurveTradeBestTradeExactOutParams, provider?: Provider): Promise; - /** - * Returns unsigned transaction for the trade - * @param options options - * @returns the unsigned transaction - */ - swapTransaction(options?: TradeOptions): Promise; -} diff --git a/dist/entities/trades/curve/CurveTrade.js b/dist/entities/trades/curve/CurveTrade.js deleted file mode 100644 index 9ea8160b..00000000 --- a/dist/entities/trades/curve/CurveTrade.js +++ /dev/null @@ -1,538 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CurveTrade = void 0; -const tslib_1 = require("tslib"); -const bignumber_1 = require("@ethersproject/bignumber"); -const constants_1 = require("@ethersproject/constants"); -const contracts_1 = require("@ethersproject/contracts"); -const units_1 = require("@ethersproject/units"); -const debug_1 = tslib_1.__importDefault(require("debug")); -const decimal_js_light_1 = tslib_1.__importDefault(require("decimal.js-light")); -const memoizee_1 = tslib_1.__importDefault(require("memoizee")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_2 = require("../../../constants"); -const currency_1 = require("../../currency"); -const currencyAmount_1 = require("../../fractions/currencyAmount"); -const fraction_1 = require("../../fractions/fraction"); -const percent_1 = require("../../fractions/percent"); -const price_1 = require("../../fractions/price"); -const tokenAmount_1 = require("../../fractions/tokenAmount"); -const token_1 = require("../../token"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_1 = require("../utils"); -const utils_2 = require("../utils"); -// Curve imports -const contracts_2 = require("./contracts"); -const pools_1 = require("./pools"); -const utils_3 = require("./utils"); -// Debuging logger. See documentation to enable logging. -const debugCurve = (0, debug_1.default)('ecoRouter:curve'); -const debugCurveGetQuote = (0, debug_1.default)('ecoRouter:curve:getQuote'); -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -class CurveTrade extends trade_1.Trade { - /** - * - * @param {Object} obj Curve trade options. - * @param {CurrencyAmount} obj.inputAmount - Input token - * @param {CurrencyAmount} obj.outputAmount - Output token - * @param {Percent} obj.maximumSlippage - Maximum slippage indicated by the user - * @param {TradeType} obj.tradeType - Trade type - * @param {string} obj.transactionRequest - Address to to which transaction is send - * @param {Percent} obj.fee - Trade fee - * @param {string} obj.approveAddress - Approve address, defaults to `to` - */ - constructor({ inputAmount, outputAmount, maximumSlippage, tradeType, chainId, transactionRequest, approveAddress, fee, contract, }) { - (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(inputAmount.currency, outputAmount.currency), 'SAME_TOKEN'); - super({ - details: undefined, - type: tradeType, - inputAmount, - outputAmount, - executionPrice: new price_1.Price({ - baseCurrency: inputAmount.currency, - quoteCurrency: outputAmount.currency, - denominator: inputAmount.raw, - numerator: outputAmount.raw, - }), - maximumSlippage, - priceImpact: new percent_1.Percent('0', '100'), - chainId, - platform: routable_platform_1.RoutablePlatform.CURVE, - fee, - approveAddress: approveAddress || transactionRequest.to, - }); - this.transactionRequest = transactionRequest; - this.contract = contract; - } - minimumAmountOut() { - if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - /** - * Checks if two tokens can be routed between on Curve Finance pools. - * This method returns accurate results only on Ethereum since the Curve Router is available there. - * @param {string} tokenIn - * @param {string} tokenOut - * @returns a `boolean` whether the tokens can be exchanged on Curve Finance pools - */ - static canRoute(tokenIn, tokenOut) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - return (0, contracts_2.getRouter)().can_route(tokenIn.address, tokenOut.address); - }); - } - /** - * Given an a sell token and a buy token, and amount of sell token, returns a - * quote from Curve's pools with best pool, and unsigned transactions data - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency in - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static getQuote({ currencyAmountIn, currencyOut, maximumSlippage, receiver = constants_1.AddressZero }, provider) { - var _a, _b, _c, _d, _e, _f, _g; - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Try to extract the chain ID from the tokens - const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); - // Require the chain ID - (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); - if (!routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId)) { - return undefined; - } - const wrappedTokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); - const wrappedtokenOut = (0, utils_1.wrappedCurrency)(currencyOut, chainId); - // Get the token's data from Curve - const tokenIn = (0, utils_3.getCurveToken)(wrappedTokenIn, chainId); - const tokenOut = (0, utils_3.getCurveToken)(wrappedtokenOut, chainId); - // Get the native address - const nativeCurrency = currency_1.Currency.getNative(chainId); - // Determine if the currency sent is native - // First using address - // then, using symbol/name - const isNativeAssetIn = ((_b = (_a = currencyAmountIn.currency) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === ((_c = nativeCurrency.address) === null || _c === void 0 ? void 0 : _c.toLowerCase()) - ? true - : currencyAmountIn.currency === nativeCurrency; - const isNativeAssetOut = (tokenOut === null || tokenOut === void 0 ? void 0 : tokenOut.address.toLowerCase()) == ((_d = nativeCurrency.address) === null || _d === void 0 ? void 0 : _d.toLowerCase()) - ? true - : ((_e = currencyOut.name) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === ((_f = nativeCurrency.name) === null || _f === void 0 ? void 0 : _f.toLowerCase()) - ? true - : currencyOut === nativeCurrency; - // Validations - (0, tiny_invariant_1.default)(tokenIn != undefined, 'NO_TOKEN_IN'); - (0, tiny_invariant_1.default)(tokenOut != undefined, 'NO_TOKEN_OUT'); - (0, tiny_invariant_1.default)(tokenIn.address.toLowerCase() != tokenOut.address.toLowerCase(), 'SAME_TOKEN'); - debugCurveGetQuote({ provider, newProvider: (0, utils_2.getProvider)(chainId) }); - provider = provider || (0, utils_2.getProvider)(chainId); - let value = '0x0'; // With Curve, most value exchanged is ERC20 - // Get the Router contract to populate the unsigned transaction - // Get all Curve pools for the chain - const curvePools = pools_1.CURVE_POOLS[chainId]; - // Basic trade information - const amountInBN = (0, units_1.parseUnits)(currencyAmountIn.toSignificant(), tokenIn.decimals); - if (isNativeAssetIn) { - value = amountInBN.toString(); - } - // Majority of Curve pools - // have 4bps fee of which 50% goes to Curve - const FEE_DECIMAL = 0.0004; - let fee = new percent_1.Percent('4', '10000'); - // Exchange fee - const exchangeRateWithoutFee = 1; - const exchangeRate = 1 - FEE_DECIMAL; - debugCurveGetQuote({ - isNativeAssetIn, - isNativeAssetOut, - }); - // Use Custom contract for native xDAI<>USDT and xDAI<>USDC trades on Gnosis Chain - if (chainId === constants_2.ChainId.XDAI && (isNativeAssetIn || isNativeAssetOut)) { - const poolContract = (0, contracts_2.getCurveDAIExchangeContract)(); - const tokenInAddress = isNativeAssetIn && nativeCurrency.address != undefined ? nativeCurrency.address : tokenIn.address; - const tokenOutAddress = isNativeAssetOut && nativeCurrency.address != undefined ? nativeCurrency.address : tokenOut.address; - const estimatedAmountOutParams = [tokenInAddress, tokenOutAddress, amountInBN.toString()]; - const estimatedAmountOut = yield poolContract.getEstimatedAmountOut(...estimatedAmountOutParams); - // Prepapre signature and params for Curve3PoolExchange - let exchangeSignature = 'exchangeExactNativeTokenForERC20'; - let exchangeParams = [tokenOut.address, estimatedAmountOut, receiver]; - if (isNativeAssetOut) { - exchangeSignature = 'exchangeExactERC20ForNativeToken'; - exchangeParams = [tokenInAddress, amountInBN.toString(), estimatedAmountOut, receiver]; - } - debugCurveGetQuote('populating transaction ', { - exchangeSignature, - exchangeParams, - value, - }); - const populatedTransaction = yield poolContract.populateTransaction[exchangeSignature](...exchangeParams, { - value, - }); - return { - currencyAmountIn, - populatedTransaction, - currencyOut, - estimatedAmountOut: currency_1.Currency.isNative(currencyOut) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(estimatedAmountOut.toBigInt(), chainId) - : new tokenAmount_1.TokenAmount(wrappedtokenOut, estimatedAmountOut.toBigInt()), - maximumSlippage, - fee, - to: poolContract.address, - exchangeRateWithoutFee, - exchangeRate, - contract: poolContract, - }; - } - // Check if the two pairs are of different type - // When the pair types are different, there is - // a potential that Curve Smart Router can handle the trade - const isCryptoSwap = tokenIn.type !== tokenOut.type; - const factoryPoolsMemoized = (0, memoizee_1.default)(utils_3.fetchCurveFactoryPools); - const factoryPools = yield factoryPoolsMemoized(chainId); - const allPools = curvePools.concat(factoryPools); - // Find all pools that the trade can go through from both factory and regular pools - let routablePools = yield (0, utils_3.getRoutablePools)(allPools, tokenIn, tokenOut, chainId); - // On mainnet, use the exchange info to get the best pool - const bestPoolAndOutputRes = chainId === constants_2.ChainId.MAINNET - ? yield (0, contracts_2.getBestCurvePoolAndOutput)({ - amountIn: amountInBN, - tokenInAddress: tokenIn.address, - tokenOutAddress: tokenOut.address, - chainId, - }) - : undefined; - // If a pool is found - // Ignore the manual off-chain search - if (bestPoolAndOutputRes) { - debugCurveGetQuote(`Found best pool from Curve registry`, bestPoolAndOutputRes); - const bestPool = routablePools.filter((pool) => pool.address.toLowerCase() === bestPoolAndOutputRes.poolAddress.toLowerCase()); - if (bestPool.length !== 0) - routablePools = bestPool; - } - debugCurveGetQuote('Routeable pools: ', routablePools); - // Start finding a possible pool - // First via Curve's internal best pool finder - // On Mainnet, try to find a route via Curve's Smart Router - if (isCryptoSwap && chainId === constants_2.ChainId.MAINNET) { - const exchangeRoutingInfo = yield (0, contracts_2.getExchangeRoutingInfo)({ - amountIn: amountInBN.toString(), - chainId: constants_2.ChainId.MAINNET, - tokenInAddress: tokenIn.address, - tokenOutAddress: tokenOut.address, - }); - // If the swap can be handled by the smart router, use it - if (exchangeRoutingInfo) { - const params = [ - amountInBN.toString(), - exchangeRoutingInfo.routes, - exchangeRoutingInfo.indices, - exchangeRoutingInfo.expectedAmountOut.mul(98).div(100).toString(), - ]; - const curveRouterContract = (0, contracts_2.getRouter)(); - debugCurveGetQuote(`Found a route via Smart Router at ${curveRouterContract.address}`, params); - const populatedTransaction = yield curveRouterContract.populateTransaction.exchange(...params, { - value, - }); - // Add 30% gas buffer - populatedTransaction.gasLimit = (_g = populatedTransaction.gasLimit) === null || _g === void 0 ? void 0 : _g.mul(130).div(100); - return { - fee, - estimatedAmountOut: new tokenAmount_1.TokenAmount(currencyOut, exchangeRoutingInfo.expectedAmountOut.toBigInt()), - currencyAmountIn, - currencyOut, - maximumSlippage, - populatedTransaction, - to: curveRouterContract.address, - exchangeRateWithoutFee, - exchangeRate, - contract: curveRouterContract, - }; - } - } - // Continue using pool-by-pool cases - // Exit since no pools have been found - if (routablePools.length === 0) { - console.error('CurveTrade: no pools found for trade pair'); - return; - } - // The final step - // Compile all the output - // Using Multicall contract - const quoteFromPoolList = yield Promise.all(routablePools.map((pool) => tslib_1.__awaiter(this, void 0, void 0, function* () { - const poolContract = new contracts_1.Contract(pool.address, pool.abi, provider); - // Map token address to index - const tokenInIndex = (0, utils_3.getTokenIndex)(pool, tokenIn.address); - const tokenOutIndex = (0, utils_3.getTokenIndex)(pool, tokenOut.address); - // Skip pool that return -1 - if (tokenInIndex < 0 || tokenOutIndex < 0) { - console.error(`Curve: pool does not have one of tokens: ${tokenIn.symbol}, ${tokenOut.symbol}`); - } - // Get expected output from the pool - // Use underylying signature if the pool is a meta pool - // A meta pool is a pool composed of an ERC20 pair with the Curve base 3Pool (DAI+USDC+USDT) - const dyMethodSignature = pool.isMeta ? 'get_dy_underlying' : 'get_dy'; - // Construct the params - const dyMethodParams = [tokenInIndex.toString(), tokenOutIndex.toString(), currencyAmountIn.raw.toString()]; - debugCurveGetQuote(`Fetching estimated output from ${pool.address}`, { - dyMethodSignature, - dyMethodParams, - }); - try { - const estimatedAmountOut = (yield poolContract[dyMethodSignature](...dyMethodParams)); - // Return the call bytes - return { - pool, - estimatedAmountOut, - poolContract, - }; - } - catch (error) { - console.error(`CurveTrade error: failed to fetch estimated out from `, { - address: pool.address, - dyMethodSignature, - dyMethodParams, - error, - }); - return { - pool, - estimatedAmountOut: bignumber_1.BigNumber.from(0), - poolContract, - error, - }; - } - }))); - // Sort the pool by best output - const estimatedAmountOutPerPoolSorted = quoteFromPoolList - .filter((pool) => { - return pool.estimatedAmountOut.gt(0) && pool.error == undefined; - }) - .sort((poolA, poolB) => poolA.estimatedAmountOut.gt(poolB.estimatedAmountOut) - ? -1 - : poolA.estimatedAmountOut.eq(poolB.estimatedAmountOut) - ? 0 - : 1); - if (estimatedAmountOutPerPoolSorted.length === 0) { - throw new Error('CurveTrade: zero pools returned an quote'); - } - // Select the best (first) pool - // among the sorted pools - const { pool, estimatedAmountOut, poolContract } = estimatedAmountOutPerPoolSorted[0]; - // Try to fetch the fee from the contract the newest - // If the call fails, the fee defaults back to 4bps - try { - const feeFromContract = (yield poolContract.fee()); - fee = new percent_1.Percent(feeFromContract.toString(), '10000000000'); - } - catch (e) { - (0, debug_1.default)(e); - } - // Map token address to index - const tokenInIndex = (0, utils_3.getTokenIndex)(pool, tokenIn.address, chainId); - const tokenOutIndex = (0, utils_3.getTokenIndex)(pool, tokenOut.address, chainId); - // Construct the unsigned transaction - // Default method signature and params - // This is the most optimistic - let exchangeSignature = Object.keys(poolContract.functions).find((signature) => { - return signature.startsWith('exchange('); - }) || 'exchange'; - // If the pool has meta coins - // Exit to avoid issues - if (pool.isMeta || (pool === null || pool === void 0 ? void 0 : pool.underlyingTokens)) { - // Try uint256 - exchangeSignature = 'exchange_underlying(uint256,uint256,uint256,uint256)'; - if (!(exchangeSignature in poolContract.functions)) { - exchangeSignature = 'exchange_underlying(int128,int128,uint256,uint256)'; - if (!(exchangeSignature in poolContract.functions)) { - // Exit the search - console.error(`CurveTrade: could not find a signature. Target: ${exchangeSignature}`); - return; - } - } - } - // Reduce by 0.1% to cover fees - const dyMinimumReceived = estimatedAmountOut.mul(9999).div(10000); - const exchangeParams = [ - tokenInIndex.toString(), - tokenOutIndex.toString(), - amountInBN.toString(), - dyMinimumReceived.toString(), - ]; - // Some pools allow trading ETH - // Use the correct method signature for swaps that involve ETH - if (pool.allowsTradingETH) { - exchangeSignature = 'exchange(uint256,uint256,uint256,uint256,bool)'; - if (!(exchangeSignature in poolContract.functions) || - !poolContract.interface.getFunction(exchangeSignature).payable) { - // Exit the search - console.error(`CurveTrade: could not find a signature. Target: ${exchangeSignature}`); - return; - } - // Native currency ETH parameter: eth_in - exchangeParams.push(isNativeAssetIn); - } - debugCurveGetQuote('Final pool', { - address: poolContract.address, - exchangeSignature, - exchangeParams, - }); - const populatedTransaction = yield poolContract.populateTransaction[exchangeSignature](...exchangeParams, { - value, - }); - return { - currencyAmountIn, - populatedTransaction, - currencyOut, - estimatedAmountOut: currency_1.Currency.isNative(currencyOut) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(estimatedAmountOut.toBigInt(), chainId) - : new tokenAmount_1.TokenAmount(wrappedtokenOut, estimatedAmountOut.toBigInt()), - maximumSlippage, - fee, - to: poolContract.address, - exchangeRateWithoutFee, - exchangeRate, - contract: poolContract, - }; - }); - } - /** - * Computes and returns the best trade from Curve pools - * by comparing all the Curve pools on target chain - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Try to extract the chain ID from the tokens - const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); - // Require the chain ID - (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId), 'CHAIN_ID'); - try { - const quote = yield CurveTrade.getQuote({ - currencyAmountIn, - currencyOut, - maximumSlippage, - receiver, - }, provider); - if (quote) { - const { currencyAmountIn, estimatedAmountOut, fee, maximumSlippage, populatedTransaction, to, contract } = quote; - // Return the CurveTrade - return new CurveTrade({ - fee, - maximumSlippage, - tradeType: constants_2.TradeType.EXACT_INPUT, - chainId, - transactionRequest: populatedTransaction, - inputAmount: currencyAmountIn, - outputAmount: estimatedAmountOut, - approveAddress: to, - contract, - }); - } - } - catch (error) { - console.error('could not fetch Curve trade', error); - } - return; - }); - } - /** - * Computes and returns the best trade from Curve pools using output as target. - * Avoid usig this method. It uses some optimistic math estimate right input. - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountOut the amount of curreny in - buy token - * @param {Currency} obj.currencyIn the currency in - sell token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Provider} provider an optional provider, the router defaults public providers - * @returns the best trade if found - */ - static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Try to extract the chain ID from the tokens - const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); - // Require the chain ID - (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.CURVE.supportsChain(chainId), 'CHAIN_ID'); - try { - // Get quote for original amounts in - const baseQuote = (yield CurveTrade.getQuote({ - currencyAmountIn: currencyAmountOut, - currencyOut: currencyIn, - maximumSlippage, - receiver, - }, provider)); - const currencyOut = currencyAmountOut.currency; - const rawInputToOutputExchangeRate = new decimal_js_light_1.default(baseQuote.exchangeRate).pow(-currencyOut.decimals); - const outputToInputExchangeRate = new decimal_js_light_1.default(rawInputToOutputExchangeRate).pow(-1); - const amountOut = new decimal_js_light_1.default(currencyAmountOut.toFixed(currencyOut.decimals)); - const estimatedAmountIn = amountOut.times(outputToInputExchangeRate).dividedBy('0.9996'); - const currencyAmountIn = new tokenAmount_1.TokenAmount(currencyIn, (0, units_1.parseUnits)(estimatedAmountIn.toFixed(currencyIn.decimals), currencyIn.decimals).toString()); - const quote = yield CurveTrade.getQuote({ - currencyAmountIn, - currencyOut, - maximumSlippage, - receiver, - }, provider); - if (quote) { - const { currencyAmountIn, estimatedAmountOut, fee, maximumSlippage, populatedTransaction, to, contract } = quote; - // Return the CurveTrade - return new CurveTrade({ - fee, - maximumSlippage, - tradeType: constants_2.TradeType.EXACT_OUTPUT, - chainId, - transactionRequest: populatedTransaction, - inputAmount: currencyAmountIn, - outputAmount: estimatedAmountOut, - approveAddress: to, - contract, - }); - } - } - catch (error) { - console.error('could not fetch Curve trade', error); - } - return; - }); - } - /** - * Returns unsigned transaction for the trade - * @param options options - * @returns the unsigned transaction - */ - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - debugCurve({ options }); - return Object.assign(Object.assign({}, this.transactionRequest), { gasLimit: this.transactionRequest.gasLimit ? bignumber_1.BigNumber.from(this.transactionRequest.gasLimit) : undefined, value: this.transactionRequest.value ? this.transactionRequest.value : bignumber_1.BigNumber.from(0) }); - }); - } -} -exports.CurveTrade = CurveTrade; -//# sourceMappingURL=CurveTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/CurveTrade.js.map b/dist/entities/trades/curve/CurveTrade.js.map deleted file mode 100644 index 9fae675a..00000000 --- a/dist/entities/trades/curve/CurveTrade.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CurveTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/CurveTrade.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AACpD,wDAAsD;AACtD,wDAAmD;AAGnD,gDAAiD;AACjD,0DAAyB;AACzB,gFAAsC;AACtC,gEAA8B;AAC9B,4EAAsC;AAEtC,kDAA4D;AAC5D,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AACnD,qDAAiD;AACjD,iDAA6C;AAC7C,6DAAyD;AACzD,uCAAmD;AACnD,+CAA2C;AAE3C,4DAAuD;AACvD,oCAAyD;AACzD,oCAAsC;AACtC,gBAAgB;AAChB,2CAAuH;AACvH,mCAAqC;AASrC,mCAAgG;AAShG,wDAAwD;AACxD,MAAM,UAAU,GAAG,IAAA,eAAK,EAAC,iBAAiB,CAAC,CAAA;AAC3C,MAAM,kBAAkB,GAAG,IAAA,eAAK,EAAC,0BAA0B,CAAC,CAAA;AAE5D;;;GAGG;AACH,MAAa,UAAW,SAAQ,aAAK;IAUnC;;;;;;;;;;OAUG;IACH,YAAmB,EACjB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,GAAG,EACH,QAAQ,GACoB;QAC5B,IAAA,wBAAS,EAAC,CAAC,IAAA,sBAAc,EAAC,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAA;QACrF,KAAK,CAAC;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW;YACX,YAAY;YACZ,cAAc,EAAE,IAAI,aAAK,CAAC;gBACxB,YAAY,EAAE,WAAW,CAAC,QAAQ;gBAClC,aAAa,EAAE,YAAY,C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E,QAAQ,EAAE,GAAG,KAAK,CAAA;oBAChH,wBAAwB;oBACxB,OAAO,IAAI,UAAU,CAAC;wBACpB,GAAG;wBACH,eAAe;wBACf,SAAS,EAAE,qBAAS,CAAC,YAAY;wBACjC,OAAO;wBACP,kBAAkB,EAAE,oBAAoB;wBACxC,WAAW,EAAE,gBAAgB;wBAC7B,YAAY,EAAE,kBAAkB;wBAChC,cAAc,EAAE,EAAE;wBAClB,QAAQ;qBACT,CAAC,CAAA;iBACH;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAA;aACpD;YAED,OAAM;QACR,CAAC;KAAA;IAED;;;;OAIG;IACU,eAAe,CAAC,OAAsB;;YACjD,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;YACvB,uCACK,IAAI,CAAC,kBAAkB,KAC1B,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EACzG,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IACzF;QACH,CAAC;KAAA;CACF;AAhmBD,gCAgmBC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/abi.d.ts b/dist/entities/trades/curve/abi/abi.d.ts deleted file mode 100644 index 26d25f6e..00000000 --- a/dist/entities/trades/curve/abi/abi.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { ContractInterface } from '@ethersproject/contracts'; -export declare const CURVE_3POOL_ABI: ContractInterface; -export declare const CURVE_3POOL_UNDERLYING_ABI: ContractInterface; -export declare const CURVE_EURSPOOL_ABI: ContractInterface; -export declare const CURVE_CRYPTO_SWAP_ABI: { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; -}[]; -export declare const CURVE_WETH_ERC20_POOL_ABI: ContractInterface; -export declare const CURVE_ETHXERC20_ABI: ContractInterface; -export declare const CURVE_TRICRYPTO_ABI: ContractInterface; -export declare const CURVE_ETHXERC20_256_ABI: ContractInterface; -export declare const CURVE_METAUSD_ABI: ContractInterface; -export declare const CURVE_PLAIN_ABI: ContractInterface; -export declare const CURVE_PLAIN_ETH_ABI: ContractInterface; -export declare const CURVE_METABTC_ABI: ContractInterface; -export declare const CURVE_POOL_ABI_MAP: Record; -/** - * A custom contract to trade on the Curve between xDAI (native token on Gnosis Chain) and USDT and USDC - */ -export declare const CURVE_DAI_EXCHANGE_ABI: ContractInterface; diff --git a/dist/entities/trades/curve/abi/abi.js b/dist/entities/trades/curve/abi/abi.js deleted file mode 100644 index b5fa3d9a..00000000 --- a/dist/entities/trades/curve/abi/abi.js +++ /dev/null @@ -1,375 +0,0 @@ -"use strict"; -// ABIs -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CURVE_DAI_EXCHANGE_ABI = exports.CURVE_POOL_ABI_MAP = exports.CURVE_METABTC_ABI = exports.CURVE_PLAIN_ETH_ABI = exports.CURVE_PLAIN_ABI = exports.CURVE_METAUSD_ABI = exports.CURVE_ETHXERC20_256_ABI = exports.CURVE_TRICRYPTO_ABI = exports.CURVE_ETHXERC20_ABI = exports.CURVE_WETH_ERC20_POOL_ABI = exports.CURVE_CRYPTO_SWAP_ABI = exports.CURVE_EURSPOOL_ABI = exports.CURVE_3POOL_UNDERLYING_ABI = exports.CURVE_3POOL_ABI = void 0; -const common_1 = require("./common"); -// 3pool ABI which has USDC, USDT and WXDAI -exports.CURVE_3POOL_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], -]; -// 3pool ABI which has USDC, USDT and WXDAI -exports.CURVE_3POOL_UNDERLYING_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], -]; -// 3pool ABI which has USDC, USDT and WXDAI -exports.CURVE_EURSPOOL_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], -]; -exports.CURVE_CRYPTO_SWAP_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy_underlying(uint256,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], -]; -exports.CURVE_WETH_ERC20_POOL_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool,address)'], - common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256,address)'], -]; -exports.CURVE_ETHXERC20_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256)'], -]; -exports.CURVE_TRICRYPTO_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], -]; -exports.CURVE_ETHXERC20_256_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], - common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], -]; -exports.CURVE_METAUSD_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy_underlying(int128,int128,uint256)'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256,address)'], -]; -exports.CURVE_PLAIN_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], -]; -exports.CURVE_PLAIN_ETH_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(int128,int128,uint256,uint256,address)'], -]; -exports.CURVE_METABTC_ABI = [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange(int128,int128,int256,int256,address)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256)'], - common_1.poolMethods['nonpayable']['exchange_underlying(int128,int128,uint256,uint256,address)'], -]; -exports.CURVE_POOL_ABI_MAP = { - ['metabtc']: exports.CURVE_METABTC_ABI, - ['metabtcbalances']: exports.CURVE_METABTC_ABI, - ['metausd']: exports.CURVE_METAUSD_ABI, - ['v1metausd']: exports.CURVE_METAUSD_ABI, - ['metausd-fraxusdc']: exports.CURVE_METAUSD_ABI, - ['metausdbalances']: exports.CURVE_METAUSD_ABI, - ['plain2balances']: exports.CURVE_PLAIN_ABI, - ['plain2basic']: exports.CURVE_PLAIN_ABI, - ['plain2eth']: exports.CURVE_PLAIN_ETH_ABI, - ['plain2optimized']: exports.CURVE_PLAIN_ABI, - ['plain3balances']: exports.CURVE_PLAIN_ABI, - ['plain3basic']: exports.CURVE_PLAIN_ABI, - ['plain3eth']: exports.CURVE_PLAIN_ETH_ABI, - ['plain3optimized']: exports.CURVE_PLAIN_ABI, - ['plain4balances']: exports.CURVE_PLAIN_ABI, - ['plain4basic']: exports.CURVE_PLAIN_ABI, - ['plain4eth']: exports.CURVE_PLAIN_ETH_ABI, - ['plain4optimized']: exports.CURVE_PLAIN_ABI, -}; -/** - * A custom contract to trade on the Curve between xDAI (native token on Gnosis Chain) and USDT and USDC - */ -exports.CURVE_DAI_EXCHANGE_ABI = [ - { - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'AlreadyInitialized', - type: 'error', - }, - { - inputs: [], - name: 'FailedToTransferFromWXDAI', - type: 'error', - }, - { - inputs: [], - name: 'Initialization', - type: 'error', - }, - { - inputs: [], - name: 'NotWXDAIContract', - type: 'error', - }, - { - inputs: [], - name: 'Transfer', - type: 'error', - }, - { - anonymous: false, - inputs: [], - name: 'Initialized', - type: 'event', - }, - { - inputs: [], - name: 'USDC', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'USDT', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'WXDAI', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_tokenIn', - type: 'address', - }, - { - internalType: 'uint256', - name: '_amountIn', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_minimumAmountOut', - type: 'uint256', - }, - { - internalType: 'address', - name: '_receiver', - type: 'address', - }, - ], - name: 'exchangeExactERC20ForNativeToken', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_tokenOut', - type: 'address', - }, - { - internalType: 'uint256', - name: '_minimumAmountOut', - type: 'uint256', - }, - { - internalType: 'address', - name: '_receiver', - type: 'address', - }, - ], - name: 'exchangeExactNativeTokenForERC20', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: '_tokenOut', - type: 'address', - }, - { - internalType: 'uint256', - name: '_amountIn', - type: 'uint256', - }, - ], - name: 'getEstimatedAmountOut', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getFee', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int128', - name: '', - type: 'int128', - }, - ], - name: 'getTokenAddress', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'getTokenIndex', - outputs: [ - { - internalType: 'int128', - name: '', - type: 'int128', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'initialize', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'initialized', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pool3crv', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - stateMutability: 'payable', - type: 'receive', - }, -]; -//# sourceMappingURL=abi.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/abi.js.map b/dist/entities/trades/curve/abi/abi.js.map deleted file mode 100644 index df206562..00000000 --- a/dist/entities/trades/curve/abi/abi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/abi.ts"],"names":[],"mappings":";AAAA,OAAO;;;AAIP,qCAAsC;AAEtC,2CAA2C;AAC9B,QAAA,eAAe,GAAsB;IAChD,oBAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC;IAC1B,oBAAW,CAAC,MAAM,CAAC,CAAC,+BAA+B,CAAC;IACpD,oBAAW,CAAC,YAAY,CAAC,CAAC,yCAAyC,CAAC;IACpE,oBAAW,CAAC,YAAY,CAAC,CAAC,oDAAoD,CAAC;IAC/E,oBAAW,CAAC,YAAY,CAAC,CAAC,8DAA8D,CAAC;CAC1F,CAAA;AAED,2CAA2C;AAC9B,QAAA,0BAA0B,GAAsB;IAC3D,oBAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC;IAC1B,oBAAW,CAAC,MAAM,CAAC,CAAC,+BAA+B,CAAC;IACpD,oBAAW,CAAC,YAAY,CAAC,CAAC,yCAAyC,CAAC;IACpE,oBAAW,CAAC,YAAY,CAAC,CAAC,oDAAoD,CAAC;CAChF,CAAA;AAED,2CAA2C;A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AAa;QACnB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/common.d.ts b/dist/entities/trades/curve/abi/common.d.ts deleted file mode 100644 index d79071b7..00000000 --- a/dist/entities/trades/curve/abi/common.d.ts +++ /dev/null @@ -1,296 +0,0 @@ -export declare const poolMethodsSignatures: { - 'fee()': string; - 'get_dy(uint256,uint256,uint256)': string; - 'exchange(uint256,uint256,uint256,uint256)': string; -}; -export declare const poolMethods: { - view: { - fee: { - stateMutability: string; - type: string; - name: string; - outputs: { - type: string; - name: string; - }[]; - inputs: never[]; - }; - coins: { - stateMutability: string; - type: string; - name: string; - outputs: { - type: string; - name: string; - }[]; - inputs: { - type: string; - name: string; - }[]; - }; - underlying_coins: { - stateMutability: string; - type: string; - name: string; - outputs: { - type: string; - name: string; - }[]; - inputs: { - type: string; - name: string; - }[]; - }; - 'get_dy(uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - 'get_dy(int128,int128,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - 'get_dy_underlying(int128,int128,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - 'get_dy_underlying(uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - }; - nonpayable: { - 'exchange(int128,int128,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - gas: string; - }; - 'exchange(uint256,uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - /** - * Exchange methods - */ - 'exchange(int128,int128,int256,int256,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - gas: string; - }; - 'exchange_underlying(uint256,uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - gas: string; - }; - 'exchange_underlying(int128,int128,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - gas: string; - }; - 'exchange_underlying(int128,int128,uint256,uint256,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - }; - }; - payable: { - 'exchange(int128,int128,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - type: string; - name: string; - }[]; - gas: string; - }; - 'exchange(int128,int128,uint256,uint256,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - name: string; - type: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - }; - 'exchange(uint256,uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - gas: string; - }; - 'exchange(uint256,uint256,uint256,uint256,bool)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - gas: string; - }; - 'exchange(uint256,uint256,uint256,uint256,bool,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - gas: string; - }; - 'exchange_underlying(uint256,uint256,uint256,uint256)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - gas: string; - }; - 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { - stateMutability: string; - type: string; - name: string; - inputs: { - type: string; - name: string; - }[]; - outputs: { - name: string; - type: string; - }[]; - gas: string; - }; - }; -}; diff --git a/dist/entities/trades/curve/abi/common.js b/dist/entities/trades/curve/abi/common.js deleted file mode 100644 index 2d69d3e6..00000000 --- a/dist/entities/trades/curve/abi/common.js +++ /dev/null @@ -1,273 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.poolMethods = exports.poolMethodsSignatures = void 0; -exports.poolMethodsSignatures = { - 'fee()': 'fee()', - 'get_dy(uint256,uint256,uint256)': 'get_dy(uint256,uint256,uint256)', - 'exchange(uint256,uint256,uint256,uint256)': 'exchange(uint256,uint256,uint256,uint256)', -}; -exports.poolMethods = { - view: { - fee: { - stateMutability: 'view', - type: 'function', - name: 'fee', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - }, - coins: { - stateMutability: 'view', - type: 'function', - name: 'coins', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'int128', name: '_coin' }], - }, - underlying_coins: { - stateMutability: 'view', - type: 'function', - name: 'underlying_coins', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'int128', name: '_coin' }], - }, - 'get_dy(uint256,uint256,uint256)': { - stateMutability: 'view', - type: 'function', - name: 'get_dy', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - ], - outputs: [{ type: 'uint256', name: '' }], - }, - 'get_dy(int128,int128,uint256)': { - stateMutability: 'view', - type: 'function', - name: 'get_dy', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - ], - outputs: [{ type: 'uint256', name: '' }], - }, - 'get_dy_underlying(int128,int128,uint256)': { - stateMutability: 'view', - type: 'function', - name: 'get_dy_underlying', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - ], - outputs: [{ type: 'uint256', name: '' }], - }, - 'get_dy_underlying(uint256,uint256,uint256)': { - stateMutability: 'view', - type: 'function', - name: 'get_dy_underlying', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: '_dx' }, - ], - outputs: [{ type: 'uint256', name: '' }], - }, - }, - nonpayable: { - 'exchange(int128,int128,uint256,uint256)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: '_dx' }, - { type: 'uint256', name: '_min_dy' }, - ], - outputs: [{ type: 'uint256', name: '' }], - gas: '5499133', - }, - 'exchange(uint256,uint256,uint256,uint256)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: '_dx' }, - { type: 'uint256', name: '_min_dy' }, - ], - outputs: [{ type: 'uint256', name: '' }], - }, - /** - * Exchange methods - */ - 'exchange(int128,int128,int256,int256,address)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'int256', name: '_dx' }, - { type: 'uint256', name: '_min_dy' }, - { type: 'address', name: '_receiver' }, - ], - outputs: [{ type: 'uint256', name: '' }], - // there was no gas in the in the metaUSD ABI - }, - 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: '_dx' }, - { type: 'uint256', name: '_min_dy' }, - { type: 'address', name: '_receiver' }, - ], - outputs: [{ type: 'uint256', name: '' }], - gas: '900000', - }, - 'exchange_underlying(uint256,uint256,uint256,uint256)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: '_dx' }, - { type: 'uint256', name: '_min_dy' }, - ], - outputs: [{ type: 'uint256', name: '' }], - gas: '57522', - }, - 'exchange_underlying(int128,int128,uint256,uint256)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - outputs: [{ type: 'uint256', name: '' }], - gas: '6125699', - }, - 'exchange_underlying(int128,int128,uint256,uint256,address)': { - stateMutability: 'nonpayable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'address', name: '_receiver' }, - ], - outputs: [{ type: 'uint256', name: '' }], - // there was no gas in the metaUSD ABI - }, - }, - payable: { - 'exchange(int128,int128,uint256,uint256)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - outputs: [{ type: 'uint256', name: '' }], - gas: '2810134', - }, - 'exchange(int128,int128,uint256,uint256,address)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { name: 'i', type: 'int128' }, - { name: 'j', type: 'int128' }, - { name: '_dx', type: 'uint256' }, - { name: '_min_dy', type: 'uint256' }, - { name: '_receiver', type: 'address' }, - ], - outputs: [{ name: '', type: 'uint256' }], - }, - 'exchange(uint256,uint256,uint256,uint256)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: '16775598', - }, - 'exchange(uint256,uint256,uint256,uint256,bool)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'bool', name: 'use_eth' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: '16775598', - }, - 'exchange(uint256,uint256,uint256,uint256,bool,address)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'bool', name: 'use_eth' }, - { type: 'address', name: 'receiver' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: '16775598', - }, - 'exchange_underlying(uint256,uint256,uint256,uint256)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: '16775396', - }, - 'exchange_underlying(uint256,uint256,uint256,uint256,address)': { - stateMutability: 'payable', - type: 'function', - name: 'exchange_underlying', - inputs: [ - { type: 'uint256', name: 'i' }, - { type: 'uint256', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'address', name: 'receiver' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: '16775396', - }, - }, -}; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/common.js.map b/dist/entities/trades/curve/abi/common.js.map deleted file mode 100644 index 68b1da92..00000000 --- a/dist/entities/trades/curve/abi/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/common.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,OAAO;IAChB,iCAAiC,EAAE,iCAAiC;IACpE,2CAA2C,EAAE,2CAA2C;CACzF,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE;QACJ,GAAG,EAAE;YACH,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACxC,MAAM,EAAE,EAAE;SACX;QACD,KAAK,EAAE;YACL,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACxC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC5C;QACD,gBAAgB,EAAE;YAChB,eAAe,EAAE,MAAM;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACxC,MA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BAC/B,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE;aACtC;YACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;YACxC,GAAG,EAAE,UAAU;SAChB;KACF;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/index.d.ts b/dist/entities/trades/curve/abi/index.d.ts deleted file mode 100644 index dc68ac0f..00000000 --- a/dist/entities/trades/curve/abi/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { ContractInterface } from '@ethersproject/contracts'; -export * from './abi'; -export declare const CURVE_ROUTER: ContractInterface; -export declare const REGISTRY_EXCHANGE: ContractInterface; -export declare const ADDRESS_PROVIDER: ContractInterface; diff --git a/dist/entities/trades/curve/abi/index.js b/dist/entities/trades/curve/abi/index.js deleted file mode 100644 index b5c76e21..00000000 --- a/dist/entities/trades/curve/abi/index.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ADDRESS_PROVIDER = exports.REGISTRY_EXCHANGE = exports.CURVE_ROUTER = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./abi"), exports); -exports.CURVE_ROUTER = [ - { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { type: 'uint256', name: '_amount' }, - { type: 'address[6]', name: '_route' }, - { type: 'uint256[8]', name: '_indices' }, - { type: 'uint256', name: '_min_received' }, - ], - outputs: [], - gas: '4577395', - }, - { - stateMutability: 'view', - type: 'function', - name: 'get_exchange_routing', - inputs: [ - { type: 'address', name: '_initial' }, - { type: 'address', name: '_target' }, - { type: 'uint256', name: '_amount' }, - ], - outputs: [ - { type: 'address[6]', name: '' }, - { type: 'uint256[8]', name: '' }, - { type: 'uint256', name: '' }, - ], - }, - { - stateMutability: 'view', - type: 'function', - name: 'can_route', - inputs: [ - { type: 'address', name: '_initial' }, - { type: 'address', name: '_target' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: '26664', - }, - { - stateMutability: 'view', - type: 'function', - name: 'crypto_coins', - inputs: [{ type: 'uint256', name: 'arg0' }], - outputs: [{ type: 'address', name: '' }], - gas: '2763', - }, -]; -exports.REGISTRY_EXCHANGE = [ - { - stateMutability: 'view', - type: 'function', - name: 'get_best_rate', - inputs: [ - { - name: '_from', - type: 'address', - }, - { - name: '_to', - type: 'address', - }, - { - name: '_amount', - type: 'uint256', - }, - ], - outputs: [ - { - name: '', - type: 'address', - }, - { - name: '', - type: 'uint256', - }, - ], - gas: '395840312', - }, -]; -exports.ADDRESS_PROVIDER = [ - { - name: 'get_address', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'uint256', name: '_id' }], - stateMutability: 'view', - type: 'function', - gas: '1308', - }, -]; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/abi/index.js.map b/dist/entities/trades/curve/abi/index.js.map deleted file mode 100644 index 85f31c48..00000000 --- a/dist/entities/trades/curve/abi/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/abi/index.ts"],"names":[],"mappings":";;;;AACA,gDAAqB;AAER,QAAA,YAAY,GAAsB;IAC7C;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE;YACxC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE;SAC3C;QACD,OAAO,EAAE,EAAE;QACX,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Ae;QACrB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,GAAG,EAAE,WAAW;KACjB;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAsB;IACjD;QACE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC1C,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,MAAM;KACZ;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/contracts.d.ts b/dist/entities/trades/curve/contracts/contracts.d.ts deleted file mode 100644 index af1d1039..00000000 --- a/dist/entities/trades/curve/contracts/contracts.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Contract } from '@ethersproject/contracts'; -import { GetBestPoolAndOutputParams, GetBestPoolAndOutputResult, GetExchangeRoutingInfoParams, GetExchangeRoutingInfoResults } from './types'; -export declare const MAINNET_CONTRACTS: { - readonly addressProvider: "0x0000000022d53366457f9d5e68ec105046fc4383"; - readonly router: "0xfA9a30350048B2BF66865ee20363067c66f67e58"; -}; -/** - * Returns the best pool to route a trade through using Curve Registry Exchange contract. - * The contract is only available on Mainnet. - * @returns the best pool to route the trade through and expected receive amount - */ -export declare function getBestCurvePoolAndOutput({ amountIn, tokenInAddress, tokenOutAddress, chainId, }: GetBestPoolAndOutputParams): Promise; -/** - * Returns Curve's Smart Router contract instance - */ -export declare function getRouter(): Contract; -/** - * Returns routing information from the Curve Smart Router. The router is only available on Mainnet. - * The contract calls reverts if there no route is found - * @returns the routing information - */ -export declare function getExchangeRoutingInfo({ amountIn, tokenInAddress, tokenOutAddress, }: GetExchangeRoutingInfoParams): Promise; -/** - * @description Returns an instance of the Curve DAI Exchange contract. This contract is only available on Gnosis Chain. - * @returns the DAI Exchange contract instance - */ -export declare function getCurveDAIExchangeContract(): Contract; diff --git a/dist/entities/trades/curve/contracts/contracts.js b/dist/entities/trades/curve/contracts/contracts.js deleted file mode 100644 index 1851d55d..00000000 --- a/dist/entities/trades/curve/contracts/contracts.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getCurveDAIExchangeContract = exports.getExchangeRoutingInfo = exports.getRouter = exports.getBestCurvePoolAndOutput = exports.MAINNET_CONTRACTS = void 0; -const tslib_1 = require("tslib"); -const constants_1 = require("@ethersproject/constants"); -const contracts_1 = require("@ethersproject/contracts"); -const constants_2 = require("../../../../constants"); -const utils_1 = require("../../utils"); -// ABIs: trimmed for bundle size -const abi_1 = require("../abi"); -const tokens_1 = require("../tokens"); -// Constants -exports.MAINNET_CONTRACTS = { - addressProvider: '0x0000000022d53366457f9d5e68ec105046fc4383', - router: '0xfA9a30350048B2BF66865ee20363067c66f67e58', -}; -/** - * Returns the best pool to route a trade through using Curve Registry Exchange contract. - * The contract is only available on Mainnet. - * @returns the best pool to route the trade through and expected receive amount - */ -function getBestCurvePoolAndOutput({ amountIn, tokenInAddress, tokenOutAddress, chainId, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (chainId !== constants_2.ChainId.MAINNET) { - throw new Error('Best Pool Find is only available on Mainnet'); - } - const addressProviderContract = new contracts_1.Contract(exports.MAINNET_CONTRACTS.addressProvider, abi_1.ADDRESS_PROVIDER, (0, utils_1.getProvider)(chainId)); - // Curve V2 pools - const tricryptoCoins = [ - tokens_1.TOKENS_MAINNET.usdt.address.toLowerCase(), - tokens_1.TOKENS_MAINNET.wbtc.address.toLowerCase(), - tokens_1.TOKENS_MAINNET.weth.address.toLowerCase(), - ]; - if (tricryptoCoins.includes(tokenInAddress.toLowerCase()) && tricryptoCoins.includes(tokenOutAddress.toLowerCase())) { - throw new Error("This pair can't be exchanged"); - } - const registryExchangeAddress = yield addressProviderContract.get_address(2, { - gasLimit: 100000, // due to Berlin upgrade. See https://github.com/ethers-io/ethers.js/issues/1474 - }); - const registryExchangeContract = new contracts_1.Contract(registryExchangeAddress, abi_1.REGISTRY_EXCHANGE, (0, utils_1.getProvider)(chainId)); - const [poolAddress, expectedAmountOut] = yield registryExchangeContract.get_best_rate(tokenInAddress, tokenOutAddress, amountIn.toString()); - if (poolAddress === constants_1.AddressZero) { - return; - } - return { - poolAddress, - expectedAmountOut, - registryExchangeAddress, - }; - }); -} -exports.getBestCurvePoolAndOutput = getBestCurvePoolAndOutput; -/** - * Returns Curve's Smart Router contract instance - */ -function getRouter() { - return new contracts_1.Contract(exports.MAINNET_CONTRACTS.router, abi_1.CURVE_ROUTER, (0, utils_1.getProvider)(constants_2.ChainId.MAINNET)); -} -exports.getRouter = getRouter; -/** - * Returns routing information from the Curve Smart Router. The router is only available on Mainnet. - * The contract calls reverts if there no route is found - * @returns the routing information - */ -function getExchangeRoutingInfo({ amountIn, tokenInAddress, tokenOutAddress, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const routerContract = getRouter(); - try { - const params = [tokenInAddress, tokenOutAddress, amountIn.toString()]; - const exchangeRoutingRes = yield routerContract.get_exchange_routing(...params, { - from: constants_1.AddressZero, - }); - const [routes, indices, expectedAmountOut] = exchangeRoutingRes; - return { - expectedAmountOut, - indices, - routes, - }; - } - catch (error) { - // Throw any non-EVM errors - if (!error.message.includes('execution reverted')) { - throw error; - } - } - return; - }); -} -exports.getExchangeRoutingInfo = getExchangeRoutingInfo; -/** - * @description Returns an instance of the Curve DAI Exchange contract. This contract is only available on Gnosis Chain. - * @returns the DAI Exchange contract instance - */ -function getCurveDAIExchangeContract() { - return new contracts_1.Contract('0x9C13176D08C699906fCbb3a6555fb24BD647BF06', abi_1.CURVE_DAI_EXCHANGE_ABI, (0, utils_1.getProvider)(constants_2.ChainId.XDAI)); -} -exports.getCurveDAIExchangeContract = getCurveDAIExchangeContract; -//# sourceMappingURL=contracts.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/contracts.js.map b/dist/entities/trades/curve/contracts/contracts.js.map deleted file mode 100644 index 9b8d427d..00000000 --- a/dist/entities/trades/curve/contracts/contracts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/contracts.ts"],"names":[],"mappings":";;;;AAAA,wDAAsD;AACtD,wDAAmD;AAEnD,qDAA+C;AAC/C,uCAAyC;AACzC,gCAAgC;AAChC,gCAKe;AACf,sCAA0C;AAQ1C,YAAY;AACC,QAAA,iBAAiB,GAAG;IAC/B,eAAe,EAAE,4CAA4C;IAC7D,MAAM,EAAE,4CAA4C;CAC5C,CAAA;AAEV;;;;GAIG;AACH,SAAsB,yBAAyB,CAAC,EAC9C,QAAQ,EACR,cAAc,EACd,eAAe,EACf,OAAO,GACoB;;QAC3B,IAAI,OAAO,KAAK,mBAAO,CAAC,OAAO,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;SAC/D;QAED,MAAM,uBAAuB,GAAG,IAAI,oBAAQ,CAC1C,yBAAiB,CAAC,eAAe,EACjC,sBAAoB,EACpB,IAAA,mBAAW,EAAC,OAAO,CAAC,CACrB,CAAA;QAED,iBAAiB;QACjB,MAAM,cAAc,GAAG;YACrB,uBAAc,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YACzC,uBAAc,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YACzC,uBAAc,CAAC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c,CAAC,oBAAoB,CAAC,GAAG,MAAM,EAAE;gBAC9E,IAAI,EAAE,uBAAW;aAClB,CAAC,CAAA;YAEF,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,GAAG,kBAAkB,CAAA;YAE/D,OAAO;gBACL,iBAAiB;gBACjB,OAAO;gBACP,MAAM;aACP,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,2BAA2B;YAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE;gBACjD,MAAM,KAAK,CAAA;aACZ;SACF;QACD,OAAM;IACR,CAAC;CAAA;AA5BD,wDA4BC;AAED;;;GAGG;AACH,SAAgB,2BAA2B;IACzC,OAAO,IAAI,oBAAQ,CAAC,4CAA4C,EAAE,4BAAsB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AACtH,CAAC;AAFD,kEAEC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/index.d.ts b/dist/entities/trades/curve/contracts/index.d.ts deleted file mode 100644 index c3716014..00000000 --- a/dist/entities/trades/curve/contracts/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './contracts'; -export * from './pools'; -export * from './types'; diff --git a/dist/entities/trades/curve/contracts/index.js b/dist/entities/trades/curve/contracts/index.js deleted file mode 100644 index 47960515..00000000 --- a/dist/entities/trades/curve/contracts/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./contracts"), exports); -tslib_1.__exportStar(require("./pools"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/index.js.map b/dist/entities/trades/curve/contracts/index.js.map deleted file mode 100644 index df9f7aaf..00000000 --- a/dist/entities/trades/curve/contracts/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,kDAAuB;AACvB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/pools.d.ts b/dist/entities/trades/curve/contracts/pools.d.ts deleted file mode 100644 index 9ed5e727..00000000 --- a/dist/entities/trades/curve/contracts/pools.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Provider } from '@ethersproject/providers'; -import { ChainId } from '../../../../constants'; -interface PoolToken { - index: number; - address: string; - isUnderlying?: boolean; -} -interface GetPoolTokenListResults { - allTokens: PoolToken[]; - mainTokens: PoolToken[]; - underlyingTokens: PoolToken[]; -} -interface GetPoolTokenListParams { - poolAddress: string; - chainId: ChainId; - provider?: Provider; -} -/** - * Fetches and returns tokens from given pool address - */ -export declare function getPoolTokenList({ chainId, poolAddress, provider, }: GetPoolTokenListParams): Promise; -export {}; diff --git a/dist/entities/trades/curve/contracts/pools.js b/dist/entities/trades/curve/contracts/pools.js deleted file mode 100644 index 607ef6a1..00000000 --- a/dist/entities/trades/curve/contracts/pools.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getPoolTokenList = void 0; -const tslib_1 = require("tslib"); -const contracts_1 = require("@ethersproject/contracts"); -const utils_1 = require("../../utils"); -const common_1 = require("../abi/common"); -const getPoolTokenListCache = new Map(); -/** - * Fetches and returns tokens from given pool address - */ -function getPoolTokenList({ chainId, poolAddress, provider = (0, utils_1.getProvider)(chainId), }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const cacheKey = `${chainId}-${poolAddress}`; - const tokensFromCache = getPoolTokenListCache.get(cacheKey); - if (tokensFromCache) { - return tokensFromCache; - } - // const multicallProvider = new MulticallProvider(provider, chainId) - // // // UniswapV3 multicall contract - // const multicall2Contract = new Contract('0x5ba1e12693dc8f9c48aad8770482f4739beed696', MULTICALL2_ABI, provider) - const poolContract = new contracts_1.Contract(poolAddress, [common_1.poolMethods['view']['coins'], common_1.poolMethods['view']['underlying_coins']], provider); - const indexList = [0, 1, 2, 3]; - const mainTokenResult = yield Promise.all(indexList.map((index) => tslib_1.__awaiter(this, void 0, void 0, function* () { - try { - return { - address: yield poolContract.coins(index), - index, - }; - // eslint-disable-next-line - } - catch (error) { } - return; - }))); - const underlyingTokenResult = yield Promise.all(indexList.map((index) => tslib_1.__awaiter(this, void 0, void 0, function* () { - try { - return { - address: yield poolContract.underlying_coins(index), - isUnderlying: true, - index, - }; - // eslint-disable-next-line - } - catch (error) { } - return; - }))); - const mainTokens = mainTokenResult.filter((token) => token !== undefined); - const underlyingTokens = underlyingTokenResult.filter((token) => token !== undefined); - const allTokens = [...mainTokens, ...underlyingTokens].map((token, index) => (Object.assign(Object.assign({}, token), { index }))); - const cacheContent = { - mainTokens, - underlyingTokens, - allTokens, - }; - cacheContent; - return cacheContent; - }); -} -exports.getPoolTokenList = getPoolTokenList; -//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/pools.js.map b/dist/entities/trades/curve/contracts/pools.js.map deleted file mode 100644 index 1a9a1f43..00000000 --- a/dist/entities/trades/curve/contracts/pools.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/pools.ts"],"names":[],"mappings":";;;;AAAA,wDAAmD;AAInD,uCAAyC;AACzC,0CAA2C;AAc3C,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAmC,CAAA;AAQxE;;GAEG;AACH,SAAsB,gBAAgB,CAAC,EACrC,OAAO,EACP,WAAW,EACX,QAAQ,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,GACR;;QACvB,MAAM,QAAQ,GAAG,GAAG,OAAO,IAAI,WAAW,EAAE,CAAA;QAC5C,MAAM,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,QAA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K,KAAK,SAAS,CAAgB,CAAA;QACpG,MAAM,SAAS,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,iCACxE,KAAK,KACR,KAAK,IACL,CAAC,CAAA;QAEH,MAAM,YAAY,GAAG;YACnB,UAAU;YACV,gBAAgB;YAChB,SAAS;SACV,CAAA;QAED,YAAY,CAAA;QAEZ,OAAO,YAAY,CAAA;IACrB,CAAC;CAAA;AApED,4CAoEC"} \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/types.d.ts b/dist/entities/trades/curve/contracts/types.d.ts deleted file mode 100644 index afd24e5b..00000000 --- a/dist/entities/trades/curve/contracts/types.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { BigNumber, BigNumberish } from '@ethersproject/bignumber'; -import type { ChainId } from '../../../../constants'; -export interface GetBestPoolAndOutputParams { - tokenInAddress: string; - tokenOutAddress: string; - amountIn: BigNumberish; - chainId: ChainId; -} -export type GetExchangeRoutingInfoParams = GetBestPoolAndOutputParams; -export interface GetBestPoolAndOutputResult { - expectedAmountOut: BigNumber; - poolAddress: string; - registryExchangeAddress: string; -} -export interface GetExchangeRoutingInfoResults { - routes: string[]; - indices: BigNumber[]; - expectedAmountOut: BigNumber; -} diff --git a/dist/entities/trades/curve/contracts/types.js b/dist/entities/trades/curve/contracts/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/curve/contracts/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/contracts/types.js.map b/dist/entities/trades/curve/contracts/types.js.map deleted file mode 100644 index 5e72f984..00000000 --- a/dist/entities/trades/curve/contracts/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/contracts/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/curve/index.d.ts b/dist/entities/trades/curve/index.d.ts deleted file mode 100644 index fa258ff4..00000000 --- a/dist/entities/trades/curve/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './CurveTrade'; -export * from './types'; diff --git a/dist/entities/trades/curve/index.js b/dist/entities/trades/curve/index.js deleted file mode 100644 index 5bffb71b..00000000 --- a/dist/entities/trades/curve/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./CurveTrade"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/index.js.map b/dist/entities/trades/curve/index.js.map deleted file mode 100644 index 2cc6697c..00000000 --- a/dist/entities/trades/curve/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/index.d.ts b/dist/entities/trades/curve/pools/index.d.ts deleted file mode 100644 index f11166ef..00000000 --- a/dist/entities/trades/curve/pools/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './pools'; diff --git a/dist/entities/trades/curve/pools/index.js b/dist/entities/trades/curve/pools/index.js deleted file mode 100644 index 7880f27b..00000000 --- a/dist/entities/trades/curve/pools/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./pools"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/index.js.map b/dist/entities/trades/curve/pools/index.js.map deleted file mode 100644 index e530a00e..00000000 --- a/dist/entities/trades/curve/pools/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/pools/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/pools.d.ts b/dist/entities/trades/curve/pools/pools.d.ts deleted file mode 100644 index 309f9036..00000000 --- a/dist/entities/trades/curve/pools/pools.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ChainId } from '../../../../constants'; -import { CurvePool } from '../tokens'; -/** - * xDAI pools - */ -export declare const POOLS_XDAI: CurvePool[]; -export declare const POOLS_ARBITRUM_ONE: CurvePool[]; -export declare const POOLS_MAINNET: CurvePool[]; -export declare const CURVE_FACTORY_SUPPORTED_APIS: { - [chainId in ChainId]: string; -}; -/** - * @TODO add missing Optimisn and Polygon pools. - * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk - */ -export declare const CURVE_POOLS: Record; diff --git a/dist/entities/trades/curve/pools/pools.js b/dist/entities/trades/curve/pools/pools.js deleted file mode 100644 index e43c1523..00000000 --- a/dist/entities/trades/curve/pools/pools.js +++ /dev/null @@ -1,522 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CURVE_POOLS = exports.CURVE_FACTORY_SUPPORTED_APIS = exports.POOLS_MAINNET = exports.POOLS_ARBITRUM_ONE = exports.POOLS_XDAI = void 0; -const constants_1 = require("../../../../constants"); -const abi_1 = require("../abi"); -const common_1 = require("../abi/common"); -const tokens_1 = require("../tokens"); -/** - * xDAI pools - */ -exports.POOLS_XDAI = [ - { - id: '3pool', - name: '3Pool', - abi: abi_1.CURVE_3POOL_ABI, - address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', - isMeta: false, - // Order is crucial - tokens: [tokens_1.TOKENS_XDAI.wxdai, tokens_1.TOKENS_XDAI.usdc, tokens_1.TOKENS_XDAI.usdt], - }, -]; -exports.POOLS_ARBITRUM_ONE = [ - { - id: '2pool', - name: '2pool', - address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', - abi: abi_1.CURVE_3POOL_ABI, - isMeta: false, - tokens: [tokens_1.TOKENS_ARBITRUM_ONE.usdc_e, tokens_1.TOKENS_ARBITRUM_ONE.usdt], - // underlyingTokens: [TOKENS_ARBITRUM_ONE.usdc, TOKENS_ARBITRUM_ONE.usdt], - }, - { - id: 'tricrypto', - name: 'Tricrypto', - abi: abi_1.CURVE_TRICRYPTO_ABI, - isMeta: false, - address: '0x960ea3e3C7FB317332d990873d354E18d7645590', - tokens: [tokens_1.TOKENS_ARBITRUM_ONE.usdt, tokens_1.TOKENS_ARBITRUM_ONE.wbtc, tokens_1.TOKENS_ARBITRUM_ONE.weth], - allowsTradingETH: true, - }, - { - id: 'ren', - name: 'Ren', - address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb', - abi: abi_1.CURVE_3POOL_ABI, - isMeta: false, - tokens: [tokens_1.TOKENS_ARBITRUM_ONE.wbtc, tokens_1.TOKENS_ARBITRUM_ONE.renbtc], - }, - /** - * @TODO update eursusd crypto v2 pool with correct data, TBD in SWAP-67 - * @see https://curve.fi/#/arbitrum/pools/eursusd/deposit - * @see https://linear.app/swaprdev/issue/SWA-67/update-usdc-token-in-arbitrum - */ - { - id: 'eursusd', - name: 'EURs USD', - address: '0x25e2e8d104bc1a70492e2be32da7c1f8367f9d2c', - abi: abi_1.CURVE_CRYPTO_SWAP_ABI, - isMeta: true, - tokens: [ - tokens_1.TOKENS_ARBITRUM_ONE.eurs, - tokens_1.TOKENS_ARBITRUM_ONE.usdc_e, - tokens_1.TOKENS_ARBITRUM_ONE.usdt, // USDT - ], - }, -]; -const tricrvMetaTokensMainnet = tokens_1.TOKENS_MAINNET.tricrv.poolTokens ? tokens_1.TOKENS_MAINNET.tricrv.poolTokens() : undefined; -const sbtccrvMetaTokens = tokens_1.TOKENS_MAINNET.sbtccrv.poolTokens ? tokens_1.TOKENS_MAINNET.sbtccrv.poolTokens() : undefined; -exports.POOLS_MAINNET = [ - { - id: 'compound', - name: 'Compound', - abi: abi_1.CURVE_3POOL_UNDERLYING_ABI, - tokens: [tokens_1.TOKENS_MAINNET.cdai, tokens_1.TOKENS_MAINNET.cusdc], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc], - address: '0xA2B47E3D5c44877cca798226B7B8118F9BFb7A56', - }, - { - id: 'usdt', - name: 'USDT', - abi: abi_1.CURVE_3POOL_UNDERLYING_ABI, - tokens: [tokens_1.TOKENS_MAINNET.cdai, tokens_1.TOKENS_MAINNET.cusdc, tokens_1.TOKENS_MAINNET.usdt], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt], - address: '0x52EA46506B9CC5Ef470C5bf89f17Dc28bB35D85C', - }, - { - id: 'pax', - name: 'PAX', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.ycdai, tokens_1.TOKENS_MAINNET.ycusdc, tokens_1.TOKENS_MAINNET.ycusdt, tokens_1.TOKENS_MAINNET.pax], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.pax], - address: '0x06364f10B501e868329afBc005b3492902d6C763', - }, - { - id: 'Y', - name: 'Y', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.ydai, tokens_1.TOKENS_MAINNET.yusdc, tokens_1.TOKENS_MAINNET.yusdt, tokens_1.TOKENS_MAINNET.ytusd], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.tusd], - address: '0x45F783CCE6B7FF23B2ab2D70e416cdb7D6055f51', - }, - { - id: 'busd', - name: 'Binance USD', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.ydai, tokens_1.TOKENS_MAINNET.yusdc, tokens_1.TOKENS_MAINNET.yusdt, tokens_1.TOKENS_MAINNET.ybusd], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.busd], - address: '0x79a8C46DeA5aDa233ABaFFD40F3A0A2B1e5A4F27', - }, - { - id: 'sUSD', - name: 'Synthetix USD', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.susd], - address: '0xA5407eAE9Ba41422680e2e00537571bcC53efBfD', - }, - { - id: 'ren', - name: 'Ren', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.renbtc, tokens_1.TOKENS_MAINNET.wbtc], - address: '0x93054188d876f558f4a66B2EF1d97d16eDf0895B', - }, - { - id: 'sbtc', - name: 'sbtc', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.renbtc, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.sbtc], - address: '0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714', - }, - { - id: 'hbtc', - name: 'Houbi BTC', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.hbtc, tokens_1.TOKENS_MAINNET.wbtc], - address: '0x4CA9b3063Ec5866A4B82E437059D2C43d1be596F', - }, - { - id: '3pool', - name: 'Curve 3Pool', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.usdt], - address: '0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7', - }, - { - id: 'gusd', - name: 'Gemini USD', - isMeta: true, - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.gusd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x4f062658EaAF2C1ccf8C8e36D6824CDf41167956', - }, - { - id: 'husd', - name: 'Houbi USD', - isMeta: true, - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.husd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x3eF6A01A0f81D6046290f3e2A8c5b843e738E604', - }, - { - id: 'usdk', - name: 'usdk', - isMeta: true, - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.usdk, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb', - }, - { - id: 'usdn', - name: 'usdn', - isMeta: true, - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.usdn, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x0f9cb53Ebe405d49A0bbdBD291A65Ff571bC83e1', - }, - { - id: 'musd', - name: 'mStable USD', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.musd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x8474DdbE98F5aA3179B3B3F5942D724aFcdec9f6', - }, - { - id: 'rsv', - name: 'rsv', - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.rsv, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0xC18cC39da8b11dA8c3541C598eE022258F9744da', - }, - { - id: 'tbtc', - name: 'tbtc', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.tbtc, tokens_1.TOKENS_MAINNET.sbtccrv], - underlyingTokens: sbtccrvMetaTokens, - address: '0xC25099792E9349C7DD09759744ea681C7de2cb66', - }, - { - id: 'dusd', - name: 'dusd', - tokens: [tokens_1.TOKENS_MAINNET.dusd, tokens_1.TOKENS_MAINNET.tricrv], - abi: abi_1.CURVE_3POOL_ABI, - metaTokens: tricrvMetaTokensMainnet, - address: '0x8038C01A0390a8c547446a0b2c18fc9aEFEcc10c', - }, - { - id: 'pbtc', - name: 'pbtc', - tokens: [tokens_1.TOKENS_MAINNET.pbtc, tokens_1.TOKENS_MAINNET.sbtccrv], - abi: abi_1.CURVE_3POOL_ABI, - underlyingTokens: sbtccrvMetaTokens, - address: '0x7F55DDe206dbAD629C080068923b36fe9D6bDBeF', - }, - { - id: 'bbtc', - name: 'bbtc', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.bbtc, tokens_1.TOKENS_MAINNET.sbtccrv], - underlyingTokens: sbtccrvMetaTokens, - address: '0x071c661B4DeefB59E2a3DdB20Db036821eeE8F4b', - }, - { - id: 'obtc', - name: 'obtc', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.obtc, tokens_1.TOKENS_MAINNET.sbtccrv], - underlyingTokens: sbtccrvMetaTokens, - address: '0xd81dA8D904b52208541Bade1bD6595D8a251F8dd', - }, - { - id: 'ust', - name: 'ust', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.ust, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x890f4e345B1dAED0367A877a1612f86A1f86985f', - }, - { - id: 'saave', - name: 'saave', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.adai, tokens_1.TOKENS_MAINNET.asusd], - underlyingTokens: [tokens_1.TOKENS_MAINNET.dai, tokens_1.TOKENS_MAINNET.susd], - address: '0xEB16Ae0052ed37f479f7fe63849198Df1765a733', - }, - { - id: 'eurs', - name: 'eurs', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eurs, tokens_1.TOKENS_MAINNET.seur], - address: '0x0Ce6a5fF5217e38315f87032CF90686C96627CAA', - }, - { - id: 'usdp', - name: 'usdp', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.usdp, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x42d7025938bEc20B69cBae5A77421082407f053A', - }, - { - id: 'link', - name: 'link', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.link, tokens_1.TOKENS_MAINNET.slink], - address: '0xF178C0b5Bb7e7aBF4e12A4838C7b7c5bA2C623c0', - }, - { - id: 'tusd', - name: 'tusd', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.tusd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0xecd5e75afb02efa118af914515d6521aabd189f1', - }, - { - id: 'frax', - name: 'Frax', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.frax, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B', - }, - { - id: 'lusd', - name: 'lusd', - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.lusd, tokens_1.TOKENS_MAINNET.tricrv], - isMeta: true, - metaTokens: tricrvMetaTokensMainnet, - address: '0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA', - }, - { - id: 'busdv2', - name: 'busdv2', - isMeta: true, - abi: abi_1.CURVE_METAUSD_ABI, - tokens: [tokens_1.TOKENS_MAINNET.busd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x4807862AA8b2bF68830e4C8dc86D0e9A998e085a', - }, - { - id: 'alusd', - name: 'alUSD', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.alusd, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x43b4FdFD4Ff969587185cDB6f0BD875c5Fc83f8c', - }, - { - id: 'mim', - name: 'Magic Internet Money', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.mim, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B', - }, - { - id: 'tricrypto', - name: 'Tricrypto', - abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.weth], - address: '0x80466c64868E1ab14a1Ddf27A676C3fcBE638Fe5', - }, - { - id: 'tricrypto2', - name: 'tricrypto2', - abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.usdt, tokens_1.TOKENS_MAINNET.wbtc, tokens_1.TOKENS_MAINNET.weth], - allowsTradingETH: true, - address: '0xD51a44d3FaE010294C616388b506AcdA1bfAAE46', - }, - { - id: 'eurt', - name: 'eurt', - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eurt, tokens_1.TOKENS_MAINNET.seur], - address: '0xfd5db7463a3ab53fd211b4af195c5bccc1a03890', - }, - { - id: 'eurtusd', - name: 'eurtusd', - isMeta: true, - abi: abi_1.CURVE_3POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eurt, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x9838eCcC42659FA8AA7daF2aD134b53984c9427b', - }, - { - id: 'eursusd', - name: 'eursusd', - abi: abi_1.CURVE_EURSPOOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.usdc, tokens_1.TOKENS_MAINNET.eurs], - address: '0x98a7F18d4E56Cfe84E3D081B40001B3d5bD3eB8B', - }, - { - id: 'rai', - name: 'Rai', - abi: abi_1.CURVE_METAUSD_ABI, - isMeta: true, - tokens: [tokens_1.TOKENS_MAINNET.rai, tokens_1.TOKENS_MAINNET.tricrv], - metaTokens: tricrvMetaTokensMainnet, - address: '0x618788357D0EBd8A37e763ADab3bc575D54c2C7d', - }, - { - id: 'cvxeth', - name: 'cvxeth', - abi: abi_1.CURVE_ETHXERC20_256_ABI, - tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.cvx], - address: '0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4', - allowsTradingETH: true, - }, - { - id: 'spelleth', - name: 'spelleth', - abi: abi_1.CURVE_WETH_ERC20_POOL_ABI, - tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.spell], - address: '0x98638FAcf9a3865cd033F36548713183f6996122', - allowsTradingETH: true, - }, - { - id: 'crveth', - name: 'crveth', - abi: abi_1.CURVE_ETHXERC20_256_ABI, - tokens: [tokens_1.TOKENS_MAINNET.weth, tokens_1.TOKENS_MAINNET.crv], - address: '0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511', - allowsTradingETH: true, - }, - { - id: 'reth', - name: 'rETH', - abi: abi_1.CURVE_ETHXERC20_256_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.reth], - address: '0xF9440930043eb3997fc70e1339dBb11F341de7A8', - }, - { - id: 'seth', - name: 'seth', - abi: abi_1.CURVE_ETHXERC20_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.seth], - address: '0xc5424b857f758e906013f3555dad202e4bdb4567', - }, - { - id: 'steth', - name: 'steth', - abi: [ - common_1.poolMethods['view']['fee'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['payable']['exchange(uint256,uint256,uint256,uint256,bool)'], - common_1.poolMethods['payable']['exchange_underlying(uint256,uint256,uint256,uint256)'], - common_1.poolMethods['view']['get_dy(int128,int128,uint256)'], - ], - tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.steth], - address: '0xDC24316b9AE028F1497c275EB9192a3Ea0f67022', - allowsTradingETH: true, - }, - { - id: 'ankreth', - name: 'ankreth', - abi: abi_1.CURVE_ETHXERC20_256_ABI, - tokens: [tokens_1.TOKENS_MAINNET.eth, tokens_1.TOKENS_MAINNET.ankreth], - address: '0xA96A65c051bF88B4095Ee1f2451C2A9d43F53Ae2', - }, - /** - * @todo debug these - { - id: 'xautusd', - name: 'xautusd', - abi: CURVE_3POOL_ABI, - isMeta: true, - tokens: [TOKENS_MAINNET.xaut, TOKENS_MAINNET.tricrv], - metaTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], - address:'0xAdCFcf9894335dC340f6Cd182aFA45999F45Fc44' - }, - { - id: 'ironbank', - name: 'ironbank', - abi: CURVE_3POOL_ABI, - tokens: [TOKENS_MAINNET.cydai, TOKENS_MAINNET.cyusdc, TOKENS_MAINNET.cyusdt], - underlyingTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], - address:'0x2dded6Da1BF5DBdF597C45fcFaa3194e53EcfeAF' - }, - { - id: 'teth', - name: 'teth', - abi: CURVE_3POOL_ABI, - tokens: [TOKENS_MAINNET.weth, TOKENS_MAINNET.t], - address:'0x752eBeb79963cf0732E9c0fec72a49FD1DEfAEAC', - allowsTradingETH: true - }, - { - id: 'aave', - name: 'Aave', - abi: CURVE_3POOL_ABI, - tokens: [TOKENS_MAINNET.adai, TOKENS_MAINNET.ausdc, TOKENS_MAINNET.ausdt], - underlyingTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], - address:'0xDeBF20617708857ebe4F679508E7b7863a8A8EeE' - }, - */ - /* - Inactive pool - { - id: 'linkusd', - name: 'linkusd', - abi: CURVE_CRYPTO_SWAP_ABI, - tokens: [TOKENS_MAINNET.linkusd, TOKENS_MAINNET.tricrv], - metaTokens: [TOKENS_MAINNET.dai, TOKENS_MAINNET.usdc, TOKENS_MAINNET.usdt], - address:'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171' - }, - */ -]; -exports.CURVE_FACTORY_SUPPORTED_APIS = { - [constants_1.ChainId.MAINNET]: 'ethereum', - [constants_1.ChainId.XDAI]: 'xdai', - [constants_1.ChainId.ARBITRUM_ONE]: 'arbitrum', - [constants_1.ChainId.POLYGON]: 'polygon', - [constants_1.ChainId.RINKEBY]: '', - [constants_1.ChainId.ARBITRUM_RINKEBY]: '', - [constants_1.ChainId.GOERLI]: '', - [constants_1.ChainId.OPTIMISM_MAINNET]: 'optimism', - [constants_1.ChainId.OPTIMISM_GOERLI]: '', - [constants_1.ChainId.ARBITRUM_GOERLI]: '', - [constants_1.ChainId.BSC_MAINNET]: '', - [constants_1.ChainId.BSC_TESTNET]: '', - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: '', - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: '', -}; -/** - * @TODO add missing Optimisn and Polygon pools. - * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk - */ -exports.CURVE_POOLS = { - [constants_1.ChainId.MAINNET]: exports.POOLS_MAINNET, - [constants_1.ChainId.XDAI]: exports.POOLS_XDAI, - [constants_1.ChainId.ARBITRUM_ONE]: exports.POOLS_ARBITRUM_ONE, - // Empty - [constants_1.ChainId.RINKEBY]: [], - [constants_1.ChainId.ARBITRUM_RINKEBY]: [], - [constants_1.ChainId.ARBITRUM_GOERLI]: [], - [constants_1.ChainId.POLYGON]: [], - [constants_1.ChainId.GOERLI]: [], - [constants_1.ChainId.OPTIMISM_MAINNET]: [], - [constants_1.ChainId.OPTIMISM_GOERLI]: [], - [constants_1.ChainId.BSC_MAINNET]: [], - [constants_1.ChainId.BSC_TESTNET]: [], - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: [], - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: [], -}; -//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/pools/pools.js.map b/dist/entities/trades/curve/pools/pools.js.map deleted file mode 100644 index 0a4166bd..00000000 --- a/dist/entities/trades/curve/pools/pools.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/pools/pools.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,gCAUe;AACf,0CAA2C;AAC3C,sCAAuF;AAEvF;;GAEG;AACU,QAAA,UAAU,GAAgB;IACrC;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,qBAAe;QACpB,OAAO,EAAE,4CAA4C;QACrD,MAAM,EAAE,KAAK;QACb,mBAAmB;QACnB,MAAM,EAAE,CAAC,oBAAW,CAAC,KAAK,EAAE,oBAAW,CAAC,IAAI,EAAE,oBAAW,CAAC,IAAI,CAAC;KAChE;CACF,CAAA;AAEY,QAAA,kBAAkB,GAAgB;IAC7C;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,4CAA4C;QACrD,GAAG,EAAE,qBAAe;QACpB,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,CAAC,4BAAmB,CAAC,MAAM,EAAE,4BAAmB,CAAC,IAAI,CAAC;QAC9D,0EAA0E;KAC3E;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,yBAAm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C,EAAE,EAAE;CAClC,CAAA;AAED;;;GAGG;AACU,QAAA,WAAW,GAAiC;IACvD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,qBAAa;IAChC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,kBAAU;IAC1B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,0BAAkB;IAC1C,QAAQ;IACR,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,EAAE;IACpB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/index.d.ts b/dist/entities/trades/curve/tokens/index.d.ts deleted file mode 100644 index 1b22cc5b..00000000 --- a/dist/entities/trades/curve/tokens/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './tokens'; -export * from './types'; diff --git a/dist/entities/trades/curve/tokens/index.js b/dist/entities/trades/curve/tokens/index.js deleted file mode 100644 index 9ad60689..00000000 --- a/dist/entities/trades/curve/tokens/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./tokens"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/index.js.map b/dist/entities/trades/curve/tokens/index.js.map deleted file mode 100644 index ccf52c92..00000000 --- a/dist/entities/trades/curve/tokens/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/tokens.d.ts b/dist/entities/trades/curve/tokens/tokens.d.ts deleted file mode 100644 index 0081b0d3..00000000 --- a/dist/entities/trades/curve/tokens/tokens.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ChainId } from '../../../../constants'; -import { CurveToken } from './types'; -/** - * Gnosis Chain - */ -export declare const TOKENS_XDAI: Record; -/** - * Arbitrum - */ -export declare const TOKENS_ARBITRUM_ONE: Record; -/** - * Ethereum - */ -export declare const TOKENS_MAINNET: Record; -type CurveTokenList = { - [chainId in ChainId]: Record; -}; -/** - * @TODO add missing Optimisn and Polygon tokens. - * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk - */ -export declare const CURVE_TOKENS: CurveTokenList; -export {}; diff --git a/dist/entities/trades/curve/tokens/tokens.js b/dist/entities/trades/curve/tokens/tokens.js deleted file mode 100644 index ffe36397..00000000 --- a/dist/entities/trades/curve/tokens/tokens.js +++ /dev/null @@ -1,641 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CURVE_TOKENS = exports.TOKENS_MAINNET = exports.TOKENS_ARBITRUM_ONE = exports.TOKENS_XDAI = void 0; -const constants_1 = require("../../../../constants"); -const types_1 = require("./types"); -/** - * Gnosis Chain - */ -exports.TOKENS_XDAI = { - wxdai: { - symbol: 'WXDAI', - name: 'WXDAI', - address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', - decimals: 18, - type: types_1.TokenType.USD, - }, - usdc: { - symbol: 'USDC', - name: 'USDC', - address: '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', - decimals: 6, - type: types_1.TokenType.USD, - }, - usdt: { - symbol: 'USDT', - name: 'USDT', - address: '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', - decimals: 6, - type: types_1.TokenType.USD, - }, - x3crv: { - name: 'x3CRV', - symbol: 'x3CRV', - decimals: 18, - address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC', - isLPToken: true, - type: types_1.TokenType.USD, - poolTokens() { - return [exports.TOKENS_XDAI.wxdai, exports.TOKENS_XDAI.usdc, exports.TOKENS_XDAI.usdt]; - }, - }, -}; -/** - * Arbitrum - */ -exports.TOKENS_ARBITRUM_ONE = { - '2crv': { - name: '2pool', - symbol: '2CRV', - decimals: 18, - address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353', - isLPToken: true, - type: types_1.TokenType.USD, - poolTokens() { - return [exports.TOKENS_ARBITRUM_ONE.usdc_e, exports.TOKENS_ARBITRUM_ONE.usdt]; - }, - }, - usdc_e: { - symbol: 'USDC.e', - name: 'Bridged USDC', - decimals: 6, - address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', - type: types_1.TokenType.USD, - }, - usdt: { - symbol: 'USDT', - name: 'USDT', - decimals: 6, - address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', - type: types_1.TokenType.USD, - }, - wbtc: { - symbol: 'wBTC', - name: 'wBTC', - decimals: 8, - address: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', - type: types_1.TokenType.BTC, - }, - renbtc: { - symbol: 'renBTC', - name: 'renBTC', - decimals: 8, - address: '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501', - type: types_1.TokenType.BTC, - }, - eth: { - symbol: 'ETH', - name: 'ETH', - decimals: 18, - address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - type: types_1.TokenType.ETH, - }, - weth: { - symbol: 'WETH', - name: 'WETH', - decimals: 18, - address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', - type: types_1.TokenType.ETH, - }, - eurs: { - symbol: 'EURs', - name: 'EURs', - decimals: 2, - address: '0xD22a58f79e9481D1a88e00c343885A588b34b68B', - type: types_1.TokenType.EUR, - }, -}; -/** - * Ethereum - */ -exports.TOKENS_MAINNET = { - crv: { - address: '0xD533a949740bb3306d119CC777fa900bA034cd52', - name: 'Curve DAO Token', - symbol: 'CRV', - decimals: 18, - type: types_1.TokenType.CRV, - }, - // Bitcoin Tokens - hbtc: { - address: '0x0316EB71485b0Ab14103307bf65a021042c6d380', - name: 'Huobi BTC', - symbol: 'HBTC', - decimals: 18, - type: types_1.TokenType.BTC, - }, - sbtc: { - address: '0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6', - name: 'Synth sBTC', - symbol: 'sBTC', - decimals: 18, - type: types_1.TokenType.BTC, - }, - obtc: { - address: '0x8064d9Ae6cDf087b1bcd5BDf3531bD5d8C537a68', - name: 'BoringDAO BTC', - symbol: 'oBTC', - decimals: 18, - type: types_1.TokenType.BTC, - }, - bbtc: { - address: '0x9BE89D2a4cd102D8Fecc6BF9dA793be995C22541', - name: 'Binance Wrapped BTC', - symbol: 'BBTC', - decimals: 8, - type: types_1.TokenType.BTC, - }, - pbtc: { - address: '0x5228a22e72ccC52d415EcFd199F99D0665E7733b', - name: 'pTokens BTC', - symbol: 'pBTC', - decimals: 18, - type: types_1.TokenType.BTC, - }, - tbtc: { - address: '0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa', - name: 'tBTC', - symbol: 'TBTC', - decimals: 18, - type: types_1.TokenType.BTC, - }, - wbtc: { - address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', - name: 'Wrapped BTC', - symbol: 'WBTC', - decimals: 8, - type: types_1.TokenType.BTC, - }, - renbtc: { - address: '0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D', - name: 'renBTC', - symbol: 'renBTC', - decimals: 8, - type: types_1.TokenType.BTC, - }, - // USD Tokens - ycdai: { - address: '0x99d1Fa417f94dcD62BfE781a1213c092a47041Bc', - name: 'Curve (iearn fork) DAI', - symbol: 'ycDAI', - decimals: 18, - type: types_1.TokenType.USD, - }, - ycusdt: { - address: '0x1bE5d71F2dA660BFdee8012dDc58D024448A0A59', - name: 'Curve (iearn fork) USDT', - symbol: 'ycUSDT', - decimals: 6, - type: types_1.TokenType.USD, - }, - cusdc: { - address: '0x39AA39c021dfbaE8faC545936693aC917d5E7563', - name: 'Compound USD Coin', - symbol: 'cUSDC', - decimals: 8, - type: types_1.TokenType.USD, - }, - usdp: { - address: '0x1456688345527bE1f37E9e627DA0837D6f08C925', - name: 'USDP Stablecoin', - symbol: 'USDP', - decimals: 18, - type: types_1.TokenType.USD, - }, - adai: { - address: '0x028171bCA77440897B824Ca71D1c56caC55b68A3', - name: 'Aave interest bearing DAI', - symbol: 'aDAI', - decimals: 18, - type: types_1.TokenType.USD, - }, - musd: { - address: '0xe2f2a5C287993345a840Db3B0845fbC70f5935a5', - name: 'mStable USD', - symbol: 'mUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - gusd: { - address: '0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd', - name: 'Gemini dollar', - symbol: 'GUSD', - decimals: 2, - type: types_1.TokenType.USD, - }, - ydai: { - address: '0xC2cB1040220768554cf699b0d863A3cd4324ce32', - name: 'iearn DAI', - symbol: 'yDAI', - decimals: 18, - type: types_1.TokenType.USD, - }, - cyusdt: { - address: '0x48759f220ed983db51fa7a8c0d2aab8f3ce4166a', - name: 'Yearn Tether USD', - symbol: 'cyUSDT', - decimals: 8, - type: types_1.TokenType.USD, - }, - cyusdc: { - address: '0x76Eb2FE28b36B3ee97F3Adae0C69606eeDB2A37c', - name: 'Yearn USD Coin', - symbol: 'cyUSDC', - decimals: 8, - type: types_1.TokenType.USD, - }, - yusdc: { - address: '0xd6aD7a6750A7593E092a9B218d66C0A814a3436e', - name: 'iearn USDC', - symbol: 'yUSDC', - decimals: 6, - type: types_1.TokenType.USD, - }, - husd: { - address: '0xdF574c24545E5FfEcb9a659c229253D4111d87e1', - name: 'HUSD', - symbol: 'HUSD', - decimals: 8, - type: types_1.TokenType.USD, - }, - cydai: { - address: '0x8e595470Ed749b85C6F7669de83EAe304C2ec68F', - name: 'Yearn Dai Stablecoin', - symbol: 'cyDAI', - decimals: 8, - type: types_1.TokenType.USD, - }, - cdai: { - address: '0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643', - name: 'Compound Dai', - symbol: 'cDAI', - decimals: 8, - type: types_1.TokenType.USD, - }, - ycusdc: { - address: '0x9777d7E2b60bB01759D0E2f8be2095df444cb07E', - name: 'Curve (iearn fork) USDC', - symbol: 'ycUSDC', - decimals: 6, - type: types_1.TokenType.USD, - }, - ust: { - address: '0xa47c8bf37f92aBed4A126BDA807A7b7498661acD', - name: 'Wrapped UST Token', - symbol: 'UST', - decimals: 18, - type: types_1.TokenType.USD, - }, - yusdt: { - address: '0x83f798e925BcD4017Eb265844FDDAbb448f1707D', - name: 'iearn USDT', - symbol: 'yUSDT', - decimals: 6, - type: types_1.TokenType.USD, - }, - ybusd: { - address: '0x04bC0Ab673d88aE9dbC9DA2380cB6B79C4BCa9aE', - name: 'iearn BUSD', - symbol: 'yBUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - ausdc: { - address: '0xBcca60bB61934080951369a648Fb03DF4F96263C', - name: 'Aave interest bearing USDC', - symbol: 'aUSDC', - decimals: 6, - type: types_1.TokenType.USD, - }, - lusd: { - address: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0', - name: 'LUSD Stablecoin', - symbol: 'LUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - tusd: { - address: '0x0000000000085d4780B73119b644AE5ecd22b376', - name: 'TrueUSD', - symbol: 'TUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - usdn: { - address: '0x674C6Ad92Fd080e4004b2312b45f796a192D27a0', - name: 'Neutrino USD', - symbol: 'USDN', - decimals: 18, - type: types_1.TokenType.USD, - }, - usdc: { - address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', - name: 'USD Coin', - symbol: 'USDC', - decimals: 6, - type: types_1.TokenType.USD, - }, - ausdt: { - address: '0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811', - name: 'Aave interest bearing USDT', - symbol: 'aUSDT', - decimals: 6, - type: types_1.TokenType.USD, - }, - crvfrax: { - address: '0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC', - name: 'crvFRAX', - symbol: 'crvFRAX', - decimals: 18, - isLPToken: true, - poolTokens() { - return [exports.TOKENS_MAINNET.frax, exports.TOKENS_MAINNET.usdc]; - }, - type: types_1.TokenType.USD, - }, - '3crv': { - address: '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490', - name: 'Curve.fi DAI/USDC/USDT', - symbol: '3Crv', - decimals: 18, - poolTokens() { - return [exports.TOKENS_MAINNET.dai, exports.TOKENS_MAINNET.usdc, exports.TOKENS_MAINNET.usdt]; - }, - type: types_1.TokenType.USD, - }, - usdk: { - address: '0x1c48f86ae57291F7686349F12601910BD8D470bb', - name: 'USDK', - symbol: 'USDK', - decimals: 18, - type: types_1.TokenType.USD, - }, - frax: { - address: '0x853d955aCEf822Db058eb8505911ED77F175b99e', - name: 'Frax', - symbol: 'FRAX', - decimals: 18, - type: types_1.TokenType.USD, - }, - busd: { - address: '0x4Fabb145d64652a948d72533023f6E7A623C7C53', - name: 'Binance USD', - symbol: 'BUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - asusd: { - address: '0x6C5024Cd4F8A59110119C56f8933403A539555EB', - name: 'Aave interest bearing SUSD', - symbol: 'aSUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - mim: { - address: '0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3', - name: 'Magic Internet Money', - symbol: 'MIM', - decimals: 18, - type: types_1.TokenType.USD, - }, - alusd: { - address: '0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9', - name: 'Alchemix USD', - symbol: 'alUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - usdt: { - address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', - name: 'Tether USD', - symbol: 'USDT', - decimals: 6, - type: types_1.TokenType.USD, - }, - dai: { - address: '0x6B175474E89094C44Da98b954EedeAC495271d0F', - name: 'Dai Stablecoin', - symbol: 'DAI', - decimals: 18, - type: types_1.TokenType.USD, - }, - susd: { - address: '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51', - name: 'Synth sUSD', - symbol: 'sUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - dusd: { - address: '0x5BC25f649fc4e26069dDF4cF4010F9f706c23831', - name: 'DefiDollar', - symbol: 'DUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - ytusd: { - address: '0x73a052500105205d34Daf004eAb301916DA8190f', - name: 'iearn TUSD', - symbol: 'yTUSD', - decimals: 18, - type: types_1.TokenType.USD, - }, - pax: { - address: '0x8E870D67F660D95d5be530380D0eC0bd388289E1', - name: 'Pax Dollar', - symbol: 'pax', - decimals: 18, - type: types_1.TokenType.USD, - }, - // Ether and deriivates - reth: { - address: '0x9559Aaa82d9649C7A7b220E7c461d2E74c9a3593', - name: 'StaFi', - symbol: 'rETH', - decimals: 18, - type: types_1.TokenType.ETH, - }, - eth: { - symbol: 'ETH', - name: 'Ether', - decimals: 18, - address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - type: types_1.TokenType.ETH, - }, - ankreth: { - name: 'ankreth', - symbol: 'ankrETH', - decimals: 18, - address: '0xE95A203B1a91a908F9B9CE46459d101078c2c3cb', - type: types_1.TokenType.ETH, - }, - weth: { - address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', - name: 'Wrapped Ether', - symbol: 'WETH', - decimals: 18, - type: types_1.TokenType.ETH, - }, - aethc: { - address: '0xE95A203B1a91a908F9B9CE46459d101078c2c3cb', - name: 'Ankr ETH2 Reward Bearing Certificate', - symbol: 'aETHc', - decimals: 18, - type: types_1.TokenType.ETH, - }, - seth: { - address: '0x5e74C9036fb86BD7eCdcb084a0673EFc32eA31cb', - name: 'Synth sETH', - symbol: 'sETH', - decimals: 18, - type: types_1.TokenType.ETH, - }, - steth: { - address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84', - name: 'Liquid staked Ether 2.0', - symbol: 'stETH', - decimals: 18, - type: types_1.TokenType.ETH, - }, - snx: { - address: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f', - name: 'Synthetix Network Token', - symbol: 'SNX', - decimals: 18, - type: types_1.TokenType.OTHER, - }, - slink: { - address: '0xbBC455cb4F1B9e4bFC4B73970d360c8f032EfEE6', - name: 'Synth sLINK', - symbol: 'sLINK', - decimals: 18, - type: types_1.TokenType.LINK, - }, - link: { - address: '0x514910771AF9Ca656af840dff83E8264EcF986CA', - name: 'ChainLink Token', - symbol: 'LINK', - decimals: 18, - type: types_1.TokenType.LINK, - }, - seur: { - address: '0xD71eCFF9342A5Ced620049e616c5035F1dB98620', - name: 'Synth sEUR', - symbol: 'sEUR', - decimals: 18, - type: types_1.TokenType.EUR, - }, - eurs: { - address: '0xdB25f211AB05b1c97D595516F45794528a807ad8', - name: 'STASIS EURS Token', - symbol: 'EURS', - decimals: 2, - type: types_1.TokenType.EUR, - }, - linkusd: { - name: 'LINKUSD', - symbol: 'LINKUSD', - decimals: 18, - address: '0x0E2EC54fC0B509F445631Bf4b91AB8168230C752', - type: types_1.TokenType.LINK, - }, - spell: { - name: 'Spell', - symbol: 'SPELL', - decimals: 18, - address: '0x090185f2135308BaD17527004364eBcC2D37e5F6', - type: types_1.TokenType.SPELL, - }, - cvx: { - name: 'Convex', - symbol: 'CVX', - decimals: 18, - address: '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B', - type: types_1.TokenType.CVX, - }, - xaut: { - name: 'Tether Gold', - symbol: 'XAUt', - decimals: 6, - address: '0x68749665FF8D2d112Fa859AA293F07A622782F38', - type: types_1.TokenType.GOLD, - }, - t: { - name: 'Threshold Network', - symbol: 'T', - decimals: 18, - address: '0xCdF7028ceAB81fA0C6971208e83fa7872994beE5', - type: types_1.TokenType.T, - }, - eurt: { - name: 'Tether Euro', - symbol: 'EURT', - decimals: 6, - address: '0xC581b735A1688071A1746c968e0798D642EDE491', - type: types_1.TokenType.EUR, - }, - tricrv: { - name: 'Curve.fi DAI/USDC/USDT (3Crv)', - symbol: '3Crv', - decimals: 18, - address: '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490', - isLPToken: true, - type: types_1.TokenType.USD, - poolTokens() { - return [exports.TOKENS_MAINNET.dai, exports.TOKENS_MAINNET.usdc, exports.TOKENS_MAINNET.usdt]; - }, - }, - sbtccrv: { - symbol: 'sbtcCrv', - name: 'Curve.fi renBTC/wBTC/sBTC', - decimals: 18, - address: '0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3', - isLPToken: true, - type: types_1.TokenType.BTC, - poolTokens() { - return [exports.TOKENS_MAINNET.renbtc, exports.TOKENS_MAINNET.wbtc, exports.TOKENS_MAINNET.sbtc]; - }, - }, - rai: { - name: ' Rai Reflex Index', - symbol: 'RAI', - decimals: 18, - address: '0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919', - type: types_1.TokenType.OTHER, - }, - rsv: { - address: '0x196f4727526eA7FB1e17b2071B3d8eAA38486988', - name: 'Reserve', - symbol: 'RSV', - decimals: 18, - type: types_1.TokenType.OTHER, - }, - crvrenwsbtc: { - address: '0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3', - name: 'Curve.fi renBTC/wBTC/sBTC', - symbol: 'crvRenWSBTC', - decimals: 18, - type: types_1.TokenType.OTHER, - }, -}; -/** - * @TODO add missing Optimisn and Polygon tokens. - * TBD in https://linear.app/swaprdev/issue/SWA-61/add-curve-pools-and-tokens-for-polygon-and-optimism-in-the-sdk - */ -exports.CURVE_TOKENS = { - [constants_1.ChainId.MAINNET]: exports.TOKENS_MAINNET, - [constants_1.ChainId.XDAI]: exports.TOKENS_XDAI, - [constants_1.ChainId.ARBITRUM_ONE]: exports.TOKENS_ARBITRUM_ONE, - [constants_1.ChainId.ARBITRUM_RINKEBY]: {}, - [constants_1.ChainId.ARBITRUM_GOERLI]: {}, - [constants_1.ChainId.RINKEBY]: {}, - [constants_1.ChainId.POLYGON]: {}, - [constants_1.ChainId.GOERLI]: {}, - [constants_1.ChainId.OPTIMISM_MAINNET]: {}, - [constants_1.ChainId.OPTIMISM_GOERLI]: {}, - [constants_1.ChainId.BSC_MAINNET]: {}, - [constants_1.ChainId.BSC_TESTNET]: {}, - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: {}, - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: {}, -}; -//# sourceMappingURL=tokens.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/tokens.js.map b/dist/entities/trades/curve/tokens/tokens.js.map deleted file mode 100644 index 58377891..00000000 --- a/dist/entities/trades/curve/tokens/tokens.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/tokens.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,mCAA+C;AAE/C;;GAEG;AACU,QAAA,WAAW,GAA+B;IACrD,KAAK,EAAE;QACL,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,iBAAS,CAAC,GAAG;KACpB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,iBAAS,CAAC,GAAG;KACpB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM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AAI,EAAE,iBAAS,CAAC,KAAK;KACtB;CACF,CAAA;AAMD;;;GAGG;AACU,QAAA,YAAY,GAAmB;IAC1C,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,sBAAc;IACjC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,mBAAW;IAC3B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,2BAAmB;IAC3C,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,EAAE;IACrB,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,EAAE;IACpB,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC9B,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,EAAE;IAC7B,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,EAAE;IACzB,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;IACjC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;CAClC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/types.d.ts b/dist/entities/trades/curve/tokens/types.d.ts deleted file mode 100644 index 6c218052..00000000 --- a/dist/entities/trades/curve/tokens/types.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { ContractInterface } from '@ethersproject/contracts'; -/** - * Token type - */ -export declare enum TokenType { - USD = "usd", - EUR = "eur", - BTC = "btc", - ETH = "eth", - LINK = "link", - GOLD = "gold", - CRV = "crv", - CVX = "cvx", - SPELL = "spell", - T = "t", - CRYPTO = "crypto", - OTHER = "other" -} -/** - * Curve Token interface - */ -export interface CurveToken { - isLPToken?: boolean; - poolTokens?: () => CurveToken[]; - address: string; - symbol: string; - name: string; - decimals: number; - type: TokenType; -} -export interface CurvePool { - id: string; - name: string; - address: string; - abi: ContractInterface; - approveAddress?: string; - tokens: CurveToken[]; - underlyingTokens?: CurveToken[]; - metaTokens?: CurveToken[]; - riskLevel?: number; - isMeta?: boolean; - allowsTradingETH?: boolean; -} diff --git a/dist/entities/trades/curve/tokens/types.js b/dist/entities/trades/curve/tokens/types.js deleted file mode 100644 index 1b4a9ab4..00000000 --- a/dist/entities/trades/curve/tokens/types.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TokenType = void 0; -/** - * Token type - */ -var TokenType; -(function (TokenType) { - TokenType["USD"] = "usd"; - TokenType["EUR"] = "eur"; - TokenType["BTC"] = "btc"; - TokenType["ETH"] = "eth"; - TokenType["LINK"] = "link"; - TokenType["GOLD"] = "gold"; - TokenType["CRV"] = "crv"; - TokenType["CVX"] = "cvx"; - TokenType["SPELL"] = "spell"; - TokenType["T"] = "t"; - TokenType["CRYPTO"] = "crypto"; - TokenType["OTHER"] = "other"; -})(TokenType = exports.TokenType || (exports.TokenType = {})); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/tokens/types.js.map b/dist/entities/trades/curve/tokens/types.js.map deleted file mode 100644 index 7fbcd3b7..00000000 --- a/dist/entities/trades/curve/tokens/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/curve/tokens/types.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,4BAAe,CAAA;IACf,oBAAO,CAAA;IACP,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAapB"} \ No newline at end of file diff --git a/dist/entities/trades/curve/types.d.ts b/dist/entities/trades/curve/types.d.ts deleted file mode 100644 index 4a0452e2..00000000 --- a/dist/entities/trades/curve/types.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { Contract } from '@ethersproject/contracts'; -import type { UnsignedTransaction } from '@ethersproject/transactions'; -import type { ChainId, TradeType } from '../../../constants'; -import type { Currency } from '../../currency'; -import type { CurrencyAmount } from '../../fractions/currencyAmount'; -import type { Percent } from '../../fractions/percent'; -export interface CurveTradeConstructorParams { - inputAmount: CurrencyAmount; - outputAmount: CurrencyAmount; - maximumSlippage: Percent; - tradeType: TradeType; - chainId: ChainId; - transactionRequest: UnsignedTransaction; - approveAddress?: string; - fee?: Percent; - contract: Contract; -} -export interface CurveTradeGetQuoteParams { - currencyAmountIn: CurrencyAmount; - currencyOut: Currency; - maximumSlippage: Percent; - receiver?: string; -} -export interface CurveTradeQuote { - fee: Percent; - to: string; - populatedTransaction: UnsignedTransaction; - currencyAmountIn: CurrencyAmount; - estimatedAmountOut: CurrencyAmount; - exchangeRate: number; - exchangeRateWithoutFee: number; - currencyOut: Currency; - maximumSlippage: Percent; - contract: Contract; -} -interface CurveGetTradeCommonParams { - maximumSlippage: Percent; - receiver?: string; -} -export interface CurveTradeBestTradeExactInParams extends CurveGetTradeCommonParams { - currencyAmountIn: CurrencyAmount; - currencyOut: Currency; -} -export interface CurveTradeBestTradeExactOutParams extends CurveGetTradeCommonParams { - currencyIn: Currency; - currencyAmountOut: CurrencyAmount; -} -export interface FactoryPoolsApiResponse { - data: { - poolData: { - address: string; - assetTypeName: string; - coins: { - name: string; - address: string; - decimals: string; - symbol: string; - isBasePoolLpToken: boolean; - }[]; - coinsAddresses: string[]; - decimals: string[]; - id: string; - usdTotal: number; - isMetaPool: boolean; - implementation: string; - implementationAddress: string; - name: string; - symbol: string; - }[]; - }; -} -export {}; diff --git a/dist/entities/trades/curve/types.js b/dist/entities/trades/curve/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/curve/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/types.js.map b/dist/entities/trades/curve/types.js.map deleted file mode 100644 index 6605e3df..00000000 --- a/dist/entities/trades/curve/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/curve/utils.d.ts b/dist/entities/trades/curve/utils.d.ts deleted file mode 100644 index 960e5e25..00000000 --- a/dist/entities/trades/curve/utils.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { ChainId } from '../../../constants'; -import { Token } from '../../token'; -import { CurvePool, CurveToken, TokenType } from './tokens'; -/** - * Returns the token index of a token in a Curve pool - * @param pool the Curve pool - * @param tokenAddress the token address - */ -export declare function getTokenIndex(pool: CurvePool, tokenAddress: string, chainId?: ChainId): number; -/** - * Given a token, returns the token information if found otherwise returns token passed - * @param token The token - * @param chainId The chain ID. Default is Mainnet - * @returns The token information or undefined if not found - */ -export declare function getCurveToken(token: Token, chainId?: ChainId): CurveToken; -/** - * Fetches user created factory pools for curve protocol - */ -export declare function fetchCurveFactoryPools(chainId: ChainId): Promise; -/** - * - * @param pools The list of Curve pools - * @param tokenInAddress Token in address - * @param tokenOutAddress Token out address - * @returns List of potential pools at which the trade can be done - */ -export declare function getRoutablePools(pools: CurvePool[], tokenIn: CurveToken, tokenOut: CurveToken, chainId: ChainId): Promise; -/** - * Returns tokenType based on token symbol - * @param symbol symbol of curve token - * @returns token type of given symbol - */ -export declare function determineTokeType(symbol: string): TokenType; diff --git a/dist/entities/trades/curve/utils.js b/dist/entities/trades/curve/utils.js deleted file mode 100644 index cd16dda0..00000000 --- a/dist/entities/trades/curve/utils.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.determineTokeType = exports.getRoutablePools = exports.fetchCurveFactoryPools = exports.getCurveToken = exports.getTokenIndex = void 0; -const tslib_1 = require("tslib"); -const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); -const constants_1 = require("../../../constants"); -const token_1 = require("../../token"); -const abi_1 = require("./abi"); -const pools_1 = require("./pools"); -const tokens_1 = require("./tokens"); -/** - * Returns the token index of a token in a Curve pool - * @param pool the Curve pool - * @param tokenAddress the token address - */ -function getTokenIndex(pool, tokenAddress, chainId = constants_1.ChainId.MAINNET) { - var _a; - // Combine all tokens without lpTokens - const tokensWithoutLpToken = pool.tokens.filter((token) => token.isLPToken); - // Use main tokens - let tokenList = pool.tokens; - // Append underlying tokens - const underlyingTokens = pool.underlyingTokens && pool.underlyingTokens; - if (underlyingTokens) { - tokenList = [...tokensWithoutLpToken, ...underlyingTokens]; - } - // Append meta tokens - else if (pool.isMeta && pool.metaTokens) { - tokenList = [...tokensWithoutLpToken, ...pool.metaTokens]; - } - // Search for WETH in the pool - const poolHasWETH = tokenList.find(({ address }) => { var _a, _b, _c; return ((_c = (_b = (_a = tokens_1.CURVE_TOKENS[chainId]) === null || _a === void 0 ? void 0 : _a.weth) === null || _b === void 0 ? void 0 : _b.address) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === address.toLowerCase(); }); - let tokenIndex; - // Case where both pool tokens and underlying tokens can be routed through - if (underlyingTokens && ((_a = pool.underlyingTokens) === null || _a === void 0 ? void 0 : _a.length) === pool.tokens.length) { - tokenIndex = pool.tokens.findIndex((item, index) => item.address.toLowerCase() == tokenAddress.toLowerCase() || - underlyingTokens[index].address.toLowerCase() == tokenAddress.toLowerCase()); - } - else { - // Search for the main/underlying token - tokenIndex = tokenList.findIndex(({ address }) => address.toLowerCase() == tokenAddress.toLowerCase()); - } - // ETH is always at 0 all pools - if (tokenIndex < 0 && poolHasWETH) { - tokenIndex = 0; - } - return tokenIndex; -} -exports.getTokenIndex = getTokenIndex; -/** - * Given a token, returns the token information if found otherwise returns token passed - * @param token The token - * @param chainId The chain ID. Default is Mainnet - * @returns The token information or undefined if not found - */ -function getCurveToken(token, chainId = constants_1.ChainId.MAINNET) { - const tokenList = tokens_1.CURVE_TOKENS[chainId]; - return (Object.values(tokenList).find(({ address }) => { var _a; return address.toLowerCase() === ((_a = token.address) === null || _a === void 0 ? void 0 : _a.toLowerCase()); }) || - Object.assign(Object.assign({}, token), { type: 'other' })); -} -exports.getCurveToken = getCurveToken; -/** - * Fetches user created factory pools for curve protocol - */ -function fetchCurveFactoryPools(chainId) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (pools_1.CURVE_FACTORY_SUPPORTED_APIS[chainId] === '') - return []; - const response = yield (0, node_fetch_1.default)(`https://api.curve.fi/api/getPools/${pools_1.CURVE_FACTORY_SUPPORTED_APIS[chainId]}/factory`); - if (!response.ok) - throw new Error('response not ok'); - const allPoolsArray = (yield response.json()); - //filter for low liquidty pool - const filteredLowLiquidityPools = allPoolsArray.data.poolData.filter((item) => item.usdTotal > 100000); - //restructures pools so they fit into curvePool type - const pooList = filteredLowLiquidityPools.map(({ symbol, name, coins, address, implementation, isMetaPool }) => { - var _a, _b; - const tokens = coins.map((token) => { - let currentToken = new token_1.Token(chainId, token.address, parseInt(token.decimals), token.symbol, token.name); - //wraps token if its Native so that it can be matched - if (token.address === '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE') - currentToken = token_1.Token.getNativeWrapper(chainId); - const symbol = currentToken.symbol ? currentToken.symbol : token.symbol; - return { - symbol, - name: symbol, - address: currentToken.address, - decimals: currentToken.decimals, - type: determineTokeType(symbol), - isLPToken: token.isBasePoolLpToken, - }; - }); - const isMeta = isMetaPool || implementation.includes('meta'); - const curvePoolObject = { - id: symbol, - name, - address, - abi: abi_1.CURVE_POOL_ABI_MAP[implementation], - isMeta, - tokens, - }; - //tries to find meta pool tokens - const findPoolTokens = tokens[1] && ((_b = (_a = tokens_1.CURVE_TOKENS[chainId][tokens[1].symbol.toLocaleLowerCase()]) === null || _a === void 0 ? void 0 : _a.poolTokens) === null || _b === void 0 ? void 0 : _b.call(_a)); - //if its meta pool puts token under metaTokens else under underlying tokens - if (findPoolTokens) { - if (isMeta) - curvePoolObject.metaTokens = findPoolTokens; - else - curvePoolObject.underlyingTokens = findPoolTokens; - } - return curvePoolObject; - }); - return pooList; - }); -} -exports.fetchCurveFactoryPools = fetchCurveFactoryPools; -/** - * - * @param pools The list of Curve pools - * @param tokenInAddress Token in address - * @param tokenOutAddress Token out address - * @returns List of potential pools at which the trade can be done - */ -function getRoutablePools(pools, tokenIn, tokenOut, chainId) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - return pools.filter(({ tokens, metaTokens, underlyingTokens, allowsTradingETH }) => { - let tokenInAddress = tokenIn.address; - let tokenOutAddress = tokenOut.address; - // For mainnet, account for ETH/WETH - if (chainId === constants_1.ChainId.MAINNET) { - const isTokenInEther = tokenIn.address.toLowerCase() === tokens_1.TOKENS_MAINNET.eth.address.toLowerCase(); - const isTokenOutEther = tokenOut.address.toLowerCase() === tokens_1.TOKENS_MAINNET.eth.address.toLowerCase(); - tokenInAddress = allowsTradingETH === true && isTokenInEther ? tokens_1.TOKENS_MAINNET.weth.address : tokenIn.address; - tokenOutAddress = allowsTradingETH === true && isTokenOutEther ? tokens_1.TOKENS_MAINNET.weth.address : tokenOut.address; - } - // main tokens - const hasTokenIn = tokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); - const hasTokenOut = tokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); - // Meta tokens in MetaPools [ERC20, [...3PoolTokens]] - const hasMetaTokenIn = metaTokens === null || metaTokens === void 0 ? void 0 : metaTokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); - const hasMetaTokenOut = metaTokens === null || metaTokens === void 0 ? void 0 : metaTokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); - // Underlying tokens, similar to meta tokens - const hasUnderlyingTokenIn = underlyingTokens === null || underlyingTokens === void 0 ? void 0 : underlyingTokens.some((token) => token.address.toLowerCase() === tokenInAddress.toLowerCase()); - const hasUnderlyingTokenOut = underlyingTokens === null || underlyingTokens === void 0 ? void 0 : underlyingTokens.some((token) => token.address.toLowerCase() === tokenOutAddress.toLowerCase()); - return ((hasTokenIn || hasUnderlyingTokenIn || hasMetaTokenIn) && - (hasTokenOut || hasUnderlyingTokenOut || hasMetaTokenOut)); - }); - }); -} -exports.getRoutablePools = getRoutablePools; -const usd = [ - 'dai', - 'jpy', - 'aud', - 'dei', - 'home', - 'fiat', - 'alcx', - 'cad', - 'usx', - 'fei', - 'crv', - 'ust', - 'vst', - 'fxs', - 'fox', - 'cvx', - 'angle', - 'gamma', - 'apw', - 'usd', - 'mim', - 'frax', - 'apv', - 'rai', - 'eur', - 'gbp', - 'chf', - 'dola', - 'krw', -]; -const btc = ['btc']; -const eth = ['eth']; -/** - * Returns tokenType based on token symbol - * @param symbol symbol of curve token - * @returns token type of given symbol - */ -function determineTokeType(symbol) { - const symbolLowercased = symbol.toLocaleLowerCase(); - if (eth.includes(symbolLowercased)) - return tokens_1.TokenType.ETH; - if (btc.includes(symbolLowercased)) - return tokens_1.TokenType.BTC; - if (usd.includes(symbolLowercased)) - return tokens_1.TokenType.USD; - else - return tokens_1.TokenType.OTHER; -} -exports.determineTokeType = determineTokeType; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/curve/utils.js.map b/dist/entities/trades/curve/utils.js.map deleted file mode 100644 index 1f139664..00000000 --- a/dist/entities/trades/curve/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/curve/utils.ts"],"names":[],"mappings":";;;;AAAA,oEAA8B;AAE9B,kDAA4C;AAC5C,uCAAmC;AACnC,+BAA0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,8CAMC"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTrade.d.ts b/dist/entities/trades/gnosis-protocol/CoWTrade.d.ts deleted file mode 100644 index 79d839a3..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTrade.d.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { CowSdk, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk'; -import { CowContext } from '@cowprotocol/cow-sdk/dist/utils/context'; -import { UnsignedOrder } from '@cowprotocol/cow-sdk/dist/utils/sign'; -import { Signer } from '@ethersproject/abstract-signer'; -import { ChainId } from '../../../constants'; -import { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Price } from '../../fractions/price'; -import { Trade } from '../interfaces/trade'; -import { CoWTradeGetBestTradeExactInParams, CoWTradeGetBestTradeExactOutParams, CoWTradeParams } from './types'; -declare enum CowChainId { - MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, - GNOSIS = 100, - SEPOLIA = 11155111 -} -/** - * CoWTrade uses CowFi API to find and route trades through the MEV-protected Gnosis Protocol v2 - */ -export declare class CoWTrade extends Trade { - readonly inputAmountWithoutFee: CurrencyAmount; - readonly outputAmountWithoutFee: CurrencyAmount; - /** - * The original quote from CoW - */ - readonly quote: SimpleGetQuoteResponse; - /** - * Order signature - */ - private orderSignatureInfo?; - /** - * The order - */ - readonly order: Omit; - /** - * The execution price of the trade without CoW fee - */ - readonly executionPriceWithoutFee: Price; - /** - * The Order Id. Obtained and set from after submitting the order from API - */ - orderId?: string; - /** - * The trade fee amount. Fees are paid in sell token - */ - readonly feeAmount: CurrencyAmount; - constructor(params: CoWTradeParams); - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - /** - * Returns the Gnosis Protocol API, with access to low level methods. - * @param quote Quote query params - * @param chainId The chainId, defaults to Mainnet (1) - * @returns - */ - static getCowSdk(chainId?: ChainId, cowContext?: CowContext): CowSdk; - /** - * Fetches the order metadata from the API - * @param orderId The order ID - * @param chainId The chainId, defaults to Mainnet (1) - */ - static getOrderMetadata(orderId: string, chainId?: ChainId): Promise; - /** - * Computes and returns the best trade from Gnosis Protocol API - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Percent} obj.receiver The receiver - * @returns A GPv2 trade if found, otherwise undefined - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver, user, }: CoWTradeGetBestTradeExactInParams): Promise; - /** - * Computes and returns the best trade from Gnosis Protocol API - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @returns A GPv2 trade if found, otherwise undefined - */ - static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver, user, }: CoWTradeGetBestTradeExactOutParams): Promise; - /** - * Signs the order by adding signature - * @param signer The signer - * @returns The current instance - * @throws {CoWTradeError} If the order is missing a receiver - */ - signOrder(signer: Signer, recipient: string): Promise; - /** - * Cancels the current instance order, if submitted - * @param signer The signer - * @returns True if the order was cancelled, false otherwise - * @throws {CoWTradeError} If the order is yet to be submitted - */ - cancelOrder(signer: Signer): Promise; - /** - * Cancels the current instance order, if submitted - * @param orderId The order ID from GPv2 - * @param chainId The chain Id on which the order exists - * @param signer A Signer with ability to sign the payload - * @returns the signing results - */ - static cancelOrder(orderId: string, chainId: ChainId, signer: Signer): Promise; - /** - * Submits the order to GPv2 API - * @returns The order ID from GPv2 - * @throws {CoWTradeError} If the order is missing a signature - */ - submitOrder(): Promise; - /** - * Fetches the order status from the API - * @throws {CoWTradeError} if the order ID is missing - */ - getOrderMetadata(): Promise; - /** - * Gets the app data for Swapr's CoW trade - * @param chainId The chain Id - */ - static getAppData(chainId: ChainId): { - ipfsHashInfo: { - cidV0: string; - appDataHash: string; - }; - content: { - version: string; - appCode: string; - metadata: { - referrer: { - address: string; - version: string; - }; - }; - }; - } | { - ipfsHashInfo: { - cidV0: string; - appDataHash: string; - }; - content: { - version: string; - appCode: string; - metadata: { - referrer: { - address: string; - version: string; - }; - }; - }; - }; - /** - * Returns the vault relayer contract address for the given chain. - * ERC20 tokens must approve this address. - * @param chainId The chain Id - * @returns The vault relayer address or undefined - */ - static getVaultRelayerAddress(chainId: ChainId | CowChainId): string; - /** - * Returns the settlement contract address for the given chain - * @param chainId The chain Id - * @returns The settlement address or undefined - */ - static getSettlementAddress(chainId: ChainId | CowChainId): string; -} -/** - * @deprecated use CoWTrade instead - */ -export declare class GnosisProtocolTrade extends CoWTrade { -} -export {}; diff --git a/dist/entities/trades/gnosis-protocol/CoWTrade.js b/dist/entities/trades/gnosis-protocol/CoWTrade.js deleted file mode 100644 index 4b9190d5..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTrade.js +++ /dev/null @@ -1,346 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GnosisProtocolTrade = exports.CoWTrade = void 0; -const tslib_1 = require("tslib"); -const networks_json_1 = tslib_1.__importDefault(require("@cowprotocol/contracts/networks.json")); -const cow_sdk_1 = require("@cowprotocol/cow-sdk"); -const units_1 = require("@ethersproject/units"); -const dayjs_1 = tslib_1.__importDefault(require("dayjs")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../../constants"); -const currency_1 = require("../../currency"); -const currencyAmount_1 = require("../../fractions/currencyAmount"); -const percent_1 = require("../../fractions/percent"); -const price_1 = require("../../fractions/price"); -const tokenAmount_1 = require("../../fractions/tokenAmount"); -const token_1 = require("../../token"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_1 = require("../utils"); -const app_data_json_1 = tslib_1.__importDefault(require("./app-data.json")); -const CoWTradeError_1 = require("./CoWTradeError"); -const ZERO_PERCENT = new percent_1.Percent(constants_1.ZERO, constants_1.ONE); -var CowChainId; -(function (CowChainId) { - CowChainId[CowChainId["MAINNET"] = 1] = "MAINNET"; - CowChainId[CowChainId["RINKEBY"] = 4] = "RINKEBY"; - CowChainId[CowChainId["GOERLI"] = 5] = "GOERLI"; - CowChainId[CowChainId["GNOSIS"] = 100] = "GNOSIS"; - CowChainId[CowChainId["SEPOLIA"] = 11155111] = "SEPOLIA"; -})(CowChainId || (CowChainId = {})); -/** - * CoWTrade uses CowFi API to find and route trades through the MEV-protected Gnosis Protocol v2 - */ -class CoWTrade extends trade_1.Trade { - constructor(params) { - var _a; - const { chainId, feeAmount, inputAmount, maximumSlippage, outputAmount, quote, tradeType, fee } = params; - (0, tiny_invariant_1.default)(!(0, token_1.currencyEquals)(inputAmount.currency, outputAmount.currency), 'SAME_TOKEN'); - const approveAddress = CoWTrade.getVaultRelayerAddress(chainId); - (0, tiny_invariant_1.default)(approveAddress, 'Missing GPv2VaultRelayer address'); - super({ - details: undefined, - type: tradeType, - inputAmount, - outputAmount, - executionPrice: new price_1.Price({ - baseCurrency: inputAmount.currency, - quoteCurrency: outputAmount.currency, - denominator: inputAmount.raw, - numerator: outputAmount.raw, - }), - maximumSlippage, - chainId, - priceImpact: new percent_1.Percent('0'), - platform: routable_platform_1.RoutablePlatform.COW, - fee, - approveAddress, - }); - this.quote = quote; - // construct the order - this.order = Object.assign(Object.assign({}, quote.quote), { validTo: parseInt(quote.quote.validTo), receiver: (_a = quote.quote.receiver) !== null && _a !== void 0 ? _a : quote.from }); - this.executionPriceWithoutFee = new price_1.Price({ - baseCurrency: inputAmount.currency, - quoteCurrency: outputAmount.currency, - denominator: inputAmount.subtract(feeAmount).raw, - numerator: outputAmount.raw, - }); - this.inputAmountWithoutFee = this.inputAmount.subtract(feeAmount); - this.outputAmountWithoutFee = this.outputAmount; - this.feeAmount = feeAmount; - } - minimumAmountOut() { - return this.outputAmount; - } - maximumAmountIn() { - return this.inputAmount; - } - /** - * Returns the Gnosis Protocol API, with access to low level methods. - * @param quote Quote query params - * @param chainId The chainId, defaults to Mainnet (1) - * @returns - */ - static getCowSdk(chainId = constants_1.ChainId.MAINNET, cowContext) { - return new cow_sdk_1.CowSdk(chainId, Object.assign(Object.assign({}, cowContext), { - // Always append correct app data - appDataHash: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash }), { - loglevel: 'debug', - }); - } - /** - * Fetches the order metadata from the API - * @param orderId The order ID - * @param chainId The chainId, defaults to Mainnet (1) - */ - static getOrderMetadata(orderId, chainId = constants_1.ChainId.MAINNET) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - return CoWTrade.getCowSdk(chainId).cowApi.getOrder(orderId); - }); - } - /** - * Computes and returns the best trade from Gnosis Protocol API - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @param {Percent} obj.receiver The receiver - * @returns A GPv2 trade if found, otherwise undefined - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, receiver, user, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Try to extract the chain ID from the tokens - const chainId = (0, utils_1.tryGetChainId)(currencyAmountIn, currencyOut); - // Require the chain ID - (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.COW.supportsChain(chainId), 'CHAIN_ID'); - const tokenIn = (0, utils_1.wrappedCurrency)(currencyAmountIn.currency, chainId); - const tokenOut = currencyOut; - const amountInBN = (0, units_1.parseUnits)(currencyAmountIn.toSignificant(), tokenIn.decimals); - (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); - // const etherOut = this.outputAmount.currency === nativeCurrency - // the router does not support both ether in and out - // invariant(!(etherIn && etherOut), 'ETHER_IN_OUT') - try { - const quoteResponse = yield CoWTrade.getCowSdk(chainId).cowApi.getQuote({ - appData: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash, - buyToken: tokenOut.address, - kind: cow_sdk_1.OrderKind.SELL, - from: user, - receiver, - validTo: (0, dayjs_1.default)().add(1, 'h').unix(), - partiallyFillable: false, - sellAmountBeforeFee: amountInBN.toString(), - sellToken: tokenIn.address, - }); - // CoW Swap doesn't charge any fee - const fee = ZERO_PERCENT; - const feeAmount = currency_1.Currency.isNative(currencyAmountIn.currency) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(constants_1.ZERO, chainId) - : new tokenAmount_1.TokenAmount(currencyAmountIn.currency, constants_1.ZERO); - return new CoWTrade({ - chainId, - maximumSlippage, - tradeType: constants_1.TradeType.EXACT_INPUT, - inputAmount: currencyAmountIn, - outputAmount: currency_1.Currency.isNative(currencyOut) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.buyAmount.toString(), chainId) - : new tokenAmount_1.TokenAmount(tokenOut, quoteResponse.quote.buyAmount.toString()), - fee, - feeAmount, - quote: quoteResponse, - }); - } - catch (error) { - console.error('could not fetch Cow trade', error); - return; - } - }); - } - /** - * Computes and returns the best trade from Gnosis Protocol API - * @param {object} obj options - * @param {CurrencyAmount} obj.currencyAmountIn the amount of curreny in - sell token - * @param {Currency} obj.currencyOut the currency out - buy token - * @param {Percent} obj.maximumSlippage Maximum slippage - * @returns A GPv2 trade if found, otherwise undefined - */ - static bestTradeExactOut({ currencyAmountOut, currencyIn, maximumSlippage, receiver, user, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Try to extract the chain ID from the tokens - const chainId = (0, utils_1.tryGetChainId)(currencyAmountOut, currencyIn); - // Require the chain ID - (0, tiny_invariant_1.default)(chainId !== undefined && routable_platform_1.RoutablePlatform.COW.supportsChain(chainId), 'CHAIN_ID'); - const tokenIn = (0, utils_1.wrappedCurrency)(currencyIn, chainId); - const tokenOut = currencyAmountOut.currency; - const amountOutBN = (0, units_1.parseUnits)(currencyAmountOut.toSignificant(), tokenOut.decimals); - (0, tiny_invariant_1.default)(!tokenIn.equals(tokenOut), 'CURRENCY'); - try { - const cowSdk = CoWTrade.getCowSdk(chainId); - const quoteResponse = yield cowSdk.cowApi.getQuote({ - appData: CoWTrade.getAppData(chainId).ipfsHashInfo.appDataHash, - buyAmountAfterFee: amountOutBN.toString(), - buyToken: tokenOut.address, - from: user, - kind: cow_sdk_1.OrderKind.BUY, - sellToken: tokenIn.address, - partiallyFillable: false, - receiver, - validTo: (0, dayjs_1.default)().add(1, 'h').unix(), // Order expires in 1 hour - }); - const inputAmount = currency_1.Currency.isNative(tokenIn) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.sellAmount.toString(), chainId) - : new tokenAmount_1.TokenAmount(tokenIn, quoteResponse.quote.sellAmount.toString()); - const outputAmount = currency_1.Currency.isNative(currencyAmountOut.currency) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(quoteResponse.quote.buyAmount.toString(), chainId) - : new tokenAmount_1.TokenAmount(tokenOut, quoteResponse.quote.buyAmount.toString()); - // CoW Swap doesn't charge any fee - const fee = ZERO_PERCENT; - const feeAmount = currency_1.Currency.isNative(currencyIn) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(constants_1.ZERO, chainId) - : new tokenAmount_1.TokenAmount(currencyIn, constants_1.ZERO); - return new CoWTrade({ - chainId, - maximumSlippage, - tradeType: constants_1.TradeType.EXACT_OUTPUT, - inputAmount, - outputAmount, - fee, - feeAmount, - quote: quoteResponse, - }); - } - catch (error) { - console.error('could not fetch COW trade', error); - return; - } - }); - } - /** - * Signs the order by adding signature - * @param signer The signer - * @returns The current instance - * @throws {CoWTradeError} If the order is missing a receiver - */ - signOrder(signer, recipient) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (!recipient && !this.order.receiver) { - throw new CoWTradeError_1.CoWTradeError('Missing order receiver'); - } - if (recipient) - this.order.receiver = recipient; - const signOrderResults = yield CoWTrade.getCowSdk(this.chainId, { - signer, - }).signOrder(this.order); - if (!signOrderResults.signature) { - throw new CoWTradeError_1.CoWTradeError('Order was not signed'); - } - this.orderSignatureInfo = signOrderResults; - return this; - }); - } - /** - * Cancels the current instance order, if submitted - * @param signer The signer - * @returns True if the order was cancelled, false otherwise - * @throws {CoWTradeError} If the order is yet to be submitted - */ - cancelOrder(signer) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (!this.orderId) { - throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order ID'); - } - return CoWTrade.cancelOrder(this.orderId, this.chainId, signer); - }); - } - /** - * Cancels the current instance order, if submitted - * @param orderId The order ID from GPv2 - * @param chainId The chain Id on which the order exists - * @param signer A Signer with ability to sign the payload - * @returns the signing results - */ - static cancelOrder(orderId, chainId, signer) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const cowSdk = CoWTrade.getCowSdk(chainId, { - signer, - }); - const orderCancellationSignature = yield cowSdk.signOrderCancellation(orderId); - if (!orderCancellationSignature.signature) { - throw new CoWTradeError_1.CoWTradeError('Order cancellation was not signed'); - } - return cowSdk.cowApi.sendSignedOrderCancellation({ - cancellation: { - signature: orderCancellationSignature.signature, - signingScheme: orderCancellationSignature.signingScheme, - }, - chainId: chainId, - owner: yield signer.getAddress(), - }); - }); - } - /** - * Submits the order to GPv2 API - * @returns The order ID from GPv2 - * @throws {CoWTradeError} If the order is missing a signature - */ - submitOrder() { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (!this.orderSignatureInfo) { - throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order signature'); - } - const { from, id: quoteId } = this.quote; - const sendOrderParams = { - order: Object.assign(Object.assign({}, this.order), { quoteId, signature: this.orderSignatureInfo.signature, signingScheme: this.orderSignatureInfo.signingScheme }), - owner: from, - }; - this.orderId = yield CoWTrade.getCowSdk(this.chainId).cowApi.sendOrder(sendOrderParams); - return this.orderId; - }); - } - /** - * Fetches the order status from the API - * @throws {CoWTradeError} if the order ID is missing - */ - getOrderMetadata() { - if (!this.orderId) { - throw new CoWTradeError_1.CoWTradeError('CoWTrade: Missing order ID'); - } - return CoWTrade.getOrderMetadata(this.orderId, this.chainId); - } - /** - * Gets the app data for Swapr's CoW trade - * @param chainId The chain Id - */ - static getAppData(chainId) { - return app_data_json_1.default[chainId]; - } - /** - * Returns the vault relayer contract address for the given chain. - * ERC20 tokens must approve this address. - * @param chainId The chain Id - * @returns The vault relayer address or undefined - */ - static getVaultRelayerAddress(chainId) { - var _a; - const GPv2VaultRelayer = networks_json_1.default.GPv2VaultRelayer; - return (_a = GPv2VaultRelayer[chainId]) === null || _a === void 0 ? void 0 : _a.address; - } - /** - * Returns the settlement contract address for the given chain - * @param chainId The chain Id - * @returns The settlement address or undefined - */ - static getSettlementAddress(chainId) { - var _a; - const GPv2Settlement = networks_json_1.default.GPv2Settlement; - return (_a = GPv2Settlement[chainId]) === null || _a === void 0 ? void 0 : _a.address; - } -} -exports.CoWTrade = CoWTrade; -/** - * @deprecated use CoWTrade instead - */ -class GnosisProtocolTrade extends CoWTrade { -} -exports.GnosisProtocolTrade = GnosisProtocolTrade; -//# sourceMappingURL=CoWTrade.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTrade.js.map b/dist/entities/trades/gnosis-protocol/CoWTrade.js.map deleted file mode 100644 index 04ad7ecc..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTrade.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoWTrade.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/CoWTrade.ts"],"names":[],"mappings":";;;;AAAA,iGAAmE;AACnE,kDAAgF;AAMhF,gDAAiD;AACjD,0DAAyB;AACzB,4EAAsC;AAEtC,kDAAkE;AAClE,6CAAyC;AACzC,mEAA+D;AAC/D,qDAAiD;AACjD,iDAA6C;AAC7C,6DAAyD;AACzD,uCAAmD;AACnD,+CAA2C;AAC3C,4DAAuD;AACvD,oCAAyD;AACzD,4EAAwC;AACxC,mDAA+C;AAG/C,MAAM,YAAY,GAAG,IAAI,iBAAO,CAAC,gBAAI,EAAE,eAAG,CAAC,CAAA;AAC3C,IAA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,QAAQ;CAAG;AAApD,kDAAoD"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts b/dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts deleted file mode 100644 index 70d11e1f..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTradeError.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * CoWTradeError - */ -export declare class CoWTradeError extends Error { - constructor(message: string); -} diff --git a/dist/entities/trades/gnosis-protocol/CoWTradeError.js b/dist/entities/trades/gnosis-protocol/CoWTradeError.js deleted file mode 100644 index 6b9083d9..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTradeError.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CoWTradeError = void 0; -/** - * CoWTradeError - */ -class CoWTradeError extends Error { - constructor(message) { - super(message); - this.name = 'CoWTradeError'; - } -} -exports.CoWTradeError = CoWTradeError; -//# sourceMappingURL=CoWTradeError.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map b/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map deleted file mode 100644 index 56c3405a..00000000 --- a/dist/entities/trades/gnosis-protocol/CoWTradeError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoWTradeError.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/CoWTradeError.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC7B,CAAC;CACF;AALD,sCAKC"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/app-data.json b/dist/entities/trades/gnosis-protocol/app-data.json deleted file mode 100644 index 1dbcd5f9..00000000 --- a/dist/entities/trades/gnosis-protocol/app-data.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "1": { - "ipfsHashInfo": { - "cidV0": "QmP8cqtJzuMkMh1iUUDZgA1ZrusEyvFf3hZvJgHunoU4cQ", - "appDataHash": "0x0bc69b825ad473b704d0746eb61e98f8716b180004fe42dd902a089e605659a9" - }, - "content": { - "version": "0.4.0", - "appCode": "Swapr", - "metadata": { - "referrer": { - "address": "0x519b70055af55A007110B4Ff99b0eA33071c720a", - "version": "0.1.0" - } - } - } - }, - "100": { - "ipfsHashInfo": { - "cidV0": "QmVcnb4PH9dXo2tNT2yCDuJKfHQW4HkN5kzJfipVyV1nwF", - "appDataHash": "0x6c240279a61e99270495394a46ace74065b511f8d3e6899f8ce87bbaefab21de" - }, - "content": { - "version": "0.4.0", - "appCode": "Swapr", - "metadata": { - "referrer": { - "address": "0xe716ec63c5673b3a4732d22909b38d779fa47c3f", - "version": "0.1.0" - } - } - } - } -} diff --git a/dist/entities/trades/gnosis-protocol/index.d.ts b/dist/entities/trades/gnosis-protocol/index.d.ts deleted file mode 100644 index e994d3b4..00000000 --- a/dist/entities/trades/gnosis-protocol/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './CoWTrade'; -export * from './types'; diff --git a/dist/entities/trades/gnosis-protocol/index.js b/dist/entities/trades/gnosis-protocol/index.js deleted file mode 100644 index f80d0389..00000000 --- a/dist/entities/trades/gnosis-protocol/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./CoWTrade"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/index.js.map b/dist/entities/trades/gnosis-protocol/index.js.map deleted file mode 100644 index 66c5baa9..00000000 --- a/dist/entities/trades/gnosis-protocol/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/types.d.ts b/dist/entities/trades/gnosis-protocol/types.d.ts deleted file mode 100644 index 6ae5fa60..00000000 --- a/dist/entities/trades/gnosis-protocol/types.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { ApiOrderStatus, SimpleGetQuoteResponse } from '@cowprotocol/cow-sdk'; -import type { ChainId, TradeType } from '../../../constants'; -import type { Currency } from '../../currency'; -import type { CurrencyAmount } from '../../fractions/currencyAmount'; -import type { Percent } from '../../fractions/percent'; -export interface CoWTradeParams { - inputAmount: CurrencyAmount; - outputAmount: CurrencyAmount; - maximumSlippage: Percent; - tradeType: TradeType; - chainId: ChainId; - fee?: Percent; - feeAmount: CurrencyAmount; - quote: SimpleGetQuoteResponse; -} -export interface CoWTradeGetBestTradeExactInParams { - currencyAmountIn: CurrencyAmount; - currencyOut: Currency; - maximumSlippage: Percent; - receiver: string; - user: string; -} -export interface CoWTradeGetBestTradeExactOutParams { - currencyAmountOut: CurrencyAmount; - currencyIn: Currency; - maximumSlippage: Percent; - receiver: string; - user: string; -} -export type CoWTradeApiOrderStatus = ApiOrderStatus; diff --git a/dist/entities/trades/gnosis-protocol/types.js b/dist/entities/trades/gnosis-protocol/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/gnosis-protocol/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/gnosis-protocol/types.js.map b/dist/entities/trades/gnosis-protocol/types.js.map deleted file mode 100644 index 10b35df2..00000000 --- a/dist/entities/trades/gnosis-protocol/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/gnosis-protocol/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/index.d.ts b/dist/entities/trades/index.d.ts deleted file mode 100644 index 4715eb6c..00000000 --- a/dist/entities/trades/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './0x'; -export * from './curve'; -export * from './gnosis-protocol'; -export * from './interfaces/trade'; -export * from './interfaces/trade-options'; -export * from './OneInch'; -export { BaseRoutablePlatform, RoutablePlatform, UniswapV2RoutablePlatform } from './routable-platform'; -export * from './swapr-v3'; -export * from './uniswap'; -export * from './uniswap-v2'; -export * from './velodrome'; diff --git a/dist/entities/trades/index.js b/dist/entities/trades/index.js deleted file mode 100644 index b205cd2e..00000000 --- a/dist/entities/trades/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UniswapV2RoutablePlatform = exports.RoutablePlatform = exports.BaseRoutablePlatform = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./0x"), exports); -tslib_1.__exportStar(require("./curve"), exports); -tslib_1.__exportStar(require("./gnosis-protocol"), exports); -tslib_1.__exportStar(require("./interfaces/trade"), exports); -tslib_1.__exportStar(require("./interfaces/trade-options"), exports); -tslib_1.__exportStar(require("./OneInch"), exports); -var routable_platform_1 = require("./routable-platform"); -Object.defineProperty(exports, "BaseRoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.BaseRoutablePlatform; } }); -Object.defineProperty(exports, "RoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.RoutablePlatform; } }); -Object.defineProperty(exports, "UniswapV2RoutablePlatform", { enumerable: true, get: function () { return routable_platform_1.UniswapV2RoutablePlatform; } }); -tslib_1.__exportStar(require("./swapr-v3"), exports); -tslib_1.__exportStar(require("./uniswap"), exports); -tslib_1.__exportStar(require("./uniswap-v2"), exports); -tslib_1.__exportStar(require("./velodrome"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/index.js.map b/dist/entities/trades/index.js.map deleted file mode 100644 index 247fb4d2..00000000 --- a/dist/entities/trades/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/trades/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAoB;AACpB,kDAAuB;AACvB,4DAAiC;AACjC,6DAAkC;AAClC,qEAA0C;AAC1C,oDAAyB;AACzB,yDAAuG;AAA9F,yHAAA,oBAAoB,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAAE,8HAAA,yBAAyB,OAAA;AAC1E,qDAA0B;AAC1B,oDAAyB;AACzB,uDAA4B;AAC5B,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade-options.d.ts b/dist/entities/trades/interfaces/trade-options.d.ts deleted file mode 100644 index 72a4417e..00000000 --- a/dist/entities/trades/interfaces/trade-options.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface TradeOptions { - recipient: string; - ttl?: number; -} diff --git a/dist/entities/trades/interfaces/trade-options.js b/dist/entities/trades/interfaces/trade-options.js deleted file mode 100644 index 2b92bf5e..00000000 --- a/dist/entities/trades/interfaces/trade-options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=trade-options.js.map \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade-options.js.map b/dist/entities/trades/interfaces/trade-options.js.map deleted file mode 100644 index 2c8d8c29..00000000 --- a/dist/entities/trades/interfaces/trade-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trade-options.js","sourceRoot":"","sources":["../../../../src/entities/trades/interfaces/trade-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade.d.ts b/dist/entities/trades/interfaces/trade.d.ts deleted file mode 100644 index bef25f09..00000000 --- a/dist/entities/trades/interfaces/trade.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { BigNumber } from '@ethersproject/bignumber'; -import type { UnsignedTransaction } from '@ethersproject/transactions'; -import type { ChainId, TradeType } from '../../../constants'; -import type { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Percent } from '../../fractions/percent'; -import type { Price } from '../../fractions/price'; -import type { Breakdown } from '../../platforms-breakdown'; -import type { Route } from '../../route'; -import type { RoutablePlatform } from '../routable-platform'; -import type { TradeOptions } from './trade-options'; -export type Details = Route | Breakdown | undefined; -export interface TradeConstructorParams { - details: Details; - type: TradeType; - inputAmount: CurrencyAmount; - outputAmount: CurrencyAmount; - executionPrice: Price; - maximumSlippage: Percent; - priceImpact: Percent; - chainId: ChainId; - platform: RoutablePlatform; - fee?: Percent; - approveAddress: string; - estimatedGas?: BigNumber; -} -/** - * Represents a base Trade class. - * Extend this class to create more trades to the Eco Router - */ -export declare abstract class Trade { - readonly details: Details; - /** - * The input amount of the trade. - */ - readonly tradeType: TradeType; - /** - * The input amount of the trade. - */ - readonly inputAmount: CurrencyAmount; - /** - * The output amount of the trade. - */ - readonly outputAmount: CurrencyAmount; - /** - * The maximum slippage allowed in the trade. - */ - readonly maximumSlippage: Percent; - /** - * The execution price of the trade. - */ - readonly executionPrice: Price; - /** - * The price impact of the trade, as a percentage. - */ - readonly priceImpact: Percent; - /** - * The chainId of the trade. - */ - readonly chainId: ChainId; - /** - * A platform that this trade is executed on. - */ - readonly platform: RoutablePlatform; - /** - * An address the EOA must approve to spend its tokenIn - */ - readonly approveAddress: string; - /** - * The trade fee - */ - readonly fee: Percent; - /** - * Estimated gas cost of the trade - */ - readonly estimatedGas?: BigNumber; - protected constructor({ details, type, inputAmount, outputAmount, executionPrice, maximumSlippage, priceImpact, chainId, platform, fee, approveAddress, estimatedGas, }: TradeConstructorParams); - /** - * Get the minimum amount that must be received from this trade for the given slippage tolerance - */ - abstract minimumAmountOut(): CurrencyAmount; - /** - * Get the maximum amount in that can be spent via this trade for the given slippage tolerance - */ - abstract maximumAmountIn(): CurrencyAmount; -} -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -export declare abstract class TradeWithSwapTransaction extends Trade { - abstract swapTransaction(options: TradeOptions): Promise; -} diff --git a/dist/entities/trades/interfaces/trade.js b/dist/entities/trades/interfaces/trade.js deleted file mode 100644 index 7d28fb5a..00000000 --- a/dist/entities/trades/interfaces/trade.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TradeWithSwapTransaction = exports.Trade = void 0; -const percent_1 = require("../../fractions/percent"); -/** - * Represents a base Trade class. - * Extend this class to create more trades to the Eco Router - */ -class Trade { - constructor({ details, type, inputAmount, outputAmount, executionPrice, maximumSlippage, priceImpact, chainId, platform, fee = new percent_1.Percent('0'), approveAddress, estimatedGas, }) { - this.details = details; - this.tradeType = type; - this.inputAmount = inputAmount; - this.maximumSlippage = maximumSlippage; - this.outputAmount = outputAmount; - this.executionPrice = executionPrice; - this.priceImpact = priceImpact; - this.chainId = chainId; - this.platform = platform; - this.fee = fee; - this.approveAddress = approveAddress; - this.estimatedGas = estimatedGas; - } -} -exports.Trade = Trade; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -class TradeWithSwapTransaction extends Trade { -} -exports.TradeWithSwapTransaction = TradeWithSwapTransaction; -//# sourceMappingURL=trade.js.map \ No newline at end of file diff --git a/dist/entities/trades/interfaces/trade.js.map b/dist/entities/trades/interfaces/trade.js.map deleted file mode 100644 index be3f8f5a..00000000 --- a/dist/entities/trades/interfaces/trade.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trade.js","sourceRoot":"","sources":["../../../../src/entities/trades/interfaces/trade.ts"],"names":[],"mappings":";;;AAKA,qDAAiD;AAwBjD;;;GAGG;AACH,MAAsB,KAAK;IA+CzB,YAAsB,EACpB,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,EACX,OAAO,EACP,QAAQ,EACR,GAAG,GAAG,IAAI,iBAAO,CAAC,GAAG,CAAC,EACtB,cAAc,EACd,YAAY,GACW;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CAWF;AApFD,sBAoFC;AAED;;;GAGG;AACH,MAAsB,wBAAyB,SAAQ,KAAK;CAE3D;AAFD,4DAEC"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts b/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts deleted file mode 100644 index a16140f4..00000000 --- a/dist/entities/trades/routable-platform/BaseRoutablePlatform.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { ChainId } from '../../../constants'; -export interface IBaseRoutablePlatform { - chainIds: ChainId[]; - name: string; -} -/** - * `BaseRoutablePlatform` should be used new platforms through which Swapr can route trades. - * @implements IBaseRoutablePlatform - */ -export declare abstract class BaseRoutablePlatform implements IBaseRoutablePlatform { - /** - * @returns List of chainIds supported by the platform - */ - readonly chainIds: ChainId[]; - /** - * @property The name of the platform. - */ - readonly name: string; - /** - * Create a new instance of the platform. - * @param chainIds list of chainIds to check - * @param name name of the platform - */ - constructor(chainIds: ChainId[], name: string); - /** - * Checks if the platform is compatible with the given chainId. - * @param chainId The chainId to check - * @returns whether the platform supports the given chainId - */ - supportsChain(chainId: ChainId): boolean; -} diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js deleted file mode 100644 index 055d4056..00000000 --- a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseRoutablePlatform = void 0; -/** - * `BaseRoutablePlatform` should be used new platforms through which Swapr can route trades. - * @implements IBaseRoutablePlatform - */ -class BaseRoutablePlatform { - /** - * Create a new instance of the platform. - * @param chainIds list of chainIds to check - * @param name name of the platform - */ - constructor(chainIds, name) { - this.chainIds = chainIds; - this.name = name; - } - /** - * Checks if the platform is compatible with the given chainId. - * @param chainId The chainId to check - * @returns whether the platform supports the given chainId - */ - supportsChain(chainId) { - return this.chainIds.includes(chainId); - } -} -exports.BaseRoutablePlatform = BaseRoutablePlatform; -//# sourceMappingURL=BaseRoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map b/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map deleted file mode 100644 index f5c1cec6..00000000 --- a/dist/entities/trades/routable-platform/BaseRoutablePlatform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BaseRoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/BaseRoutablePlatform.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,MAAsB,oBAAoB;IAUxC;;;;OAIG;IACH,YAAmB,QAAmB,EAAE,IAAY;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED;;;;OAIG;IACI,aAAa,CAAC,OAAgB;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IACxC,CAAC;CACF;AA5BD,oDA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.d.ts b/dist/entities/trades/routable-platform/RoutablePlatform.d.ts deleted file mode 100644 index 8b040406..00000000 --- a/dist/entities/trades/routable-platform/RoutablePlatform.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseRoutablePlatform } from './BaseRoutablePlatform'; -/** - * A platform to which Swapr can route through. - */ -export declare class RoutablePlatform extends BaseRoutablePlatform { - static readonly ZEROX: RoutablePlatform; - static readonly ONE_INCH: RoutablePlatform; - static readonly COW: RoutablePlatform; - static readonly CURVE: RoutablePlatform; - /** - * @deprecated Use {@link RoutablePlatform.COW} instead. - */ - static readonly GNOSIS_PROTOCOL: RoutablePlatform; - static readonly UNISWAP: RoutablePlatform; - static readonly VELODROME: RoutablePlatform; - static readonly SWAPR_V3: RoutablePlatform; -} diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.js b/dist/entities/trades/routable-platform/RoutablePlatform.js deleted file mode 100644 index 9160a1cb..00000000 --- a/dist/entities/trades/routable-platform/RoutablePlatform.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RoutablePlatform = void 0; -const constants_1 = require("../../../constants"); -const BaseRoutablePlatform_1 = require("./BaseRoutablePlatform"); -/** - * A platform to which Swapr can route through. - */ -class RoutablePlatform extends BaseRoutablePlatform_1.BaseRoutablePlatform { -} -exports.RoutablePlatform = RoutablePlatform; -RoutablePlatform.ZEROX = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.POLYGON, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.BSC_MAINNET, constants_1.ChainId.OPTIMISM_MAINNET], '0x'); -RoutablePlatform.ONE_INCH = new RoutablePlatform([ - constants_1.ChainId.MAINNET, - constants_1.ChainId.ARBITRUM_ONE, - constants_1.ChainId.POLYGON, - constants_1.ChainId.OPTIMISM_MAINNET, - constants_1.ChainId.GNOSIS, - constants_1.ChainId.BSC_MAINNET, - constants_1.ChainId.ZK_SYNC_ERA_MAINNET, -], '1Inch'); -RoutablePlatform.COW = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.GNOSIS], 'CoW'); -RoutablePlatform.CURVE = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.GNOSIS], 'Curve'); -/** - * @deprecated Use {@link RoutablePlatform.COW} instead. - */ -RoutablePlatform.GNOSIS_PROTOCOL = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.GNOSIS], 'CoW'); -RoutablePlatform.UNISWAP = new RoutablePlatform([constants_1.ChainId.MAINNET, constants_1.ChainId.ARBITRUM_ONE, constants_1.ChainId.POLYGON, constants_1.ChainId.OPTIMISM_MAINNET], 'Uniswap'); -RoutablePlatform.VELODROME = new RoutablePlatform([constants_1.ChainId.OPTIMISM_MAINNET], 'Velodrome'); -RoutablePlatform.SWAPR_V3 = new RoutablePlatform([constants_1.ChainId.GNOSIS], 'Swapr V3'); -//# sourceMappingURL=RoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/RoutablePlatform.js.map b/dist/entities/trades/routable-platform/RoutablePlatform.js.map deleted file mode 100644 index 91b68143..00000000 --- a/dist/entities/trades/routable-platform/RoutablePlatform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/RoutablePlatform.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,iEAA6D;AAE7D;;GAEG;AACH,MAAa,gBAAiB,SAAQ,2CAAoB;;AAA1D,4CA8BC;AA7BwB,sBAAK,GAAG,IAAI,gBAAgB,CACjD,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,WAAW,EAAE,mBAAO,CAAC,gBAAgB,CAAC,EACvG,IAAI,CACL,CAAA;AACsB,yBAAQ,GAAG,IAAI,gBAAgB,CACpD;IACE,mBAAO,CAAC,OAAO;IACf,mBAAO,CAAC,YAAY;IACpB,mBAAO,CAAC,OAAO;IACf,mBAAO,CAAC,gBAAgB;IACxB,mBAAO,CAAC,MAAM;IACd,mBAAO,CAAC,WAAW;IACnB,mBAAO,CAAC,mBAAmB;CAC5B,EACD,OAAO,CACR,CAAA;AACsB,oBAAG,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;AACpE,sBAAK,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;AACrH;;GAEG;AACoB,gCAAe,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;AAChF,wBAAO,GAAG,IAAI,gBAAgB,CACnD,CAAC,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,YAAY,EAAE,mBAAO,CAAC,OAAO,EAAE,mBAAO,CAAC,gBAAgB,CAAC,EAClF,SAAS,CACV,CAAA;AAEsB,0BAAS,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC,CAAA;AACzE,yBAAQ,GAAG,IAAI,gBAAgB,CAAC,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts deleted file mode 100644 index 2a5a278b..00000000 --- a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { BigintIsh, ChainId } from '../../../constants'; -import { BaseRoutablePlatform } from './BaseRoutablePlatform'; -export interface UniswapV2RoutablePlatformParams { - /** - * The chainIds this platform supports - */ - chainIds: ChainId[]; - /** - * The name of the platform. - */ - name: string; - /** - * List of factory addresses, one for each chainId. - */ - factoryAddress: { - [supportedChainId in ChainId]?: string; - }; - /** - * List of router addresses, one for each chainId. - */ - routerAddress: { - [supportedChainId in ChainId]?: string; - }; - /** - * List of subgraph endpoints, one for each chainId. - */ - subgraphEndpoint?: { - [supportedChainId in ChainId]?: string; - }; - /** - * Initial code hash - */ - initCodeHash: string; - /** - * The default swap fee for this platform. - */ - defaultSwapFee: BigintIsh; -} -/** - * A Uniswap V2 platform to which Swapr can route through. - */ -export declare class UniswapV2RoutablePlatform extends BaseRoutablePlatform { - readonly factoryAddress: { - [supportedChainId in ChainId]?: string; - }; - readonly routerAddress: { - [supportedChainId in ChainId]?: string; - }; - readonly subgraphEndpoint: { - [supportedChainId in ChainId]?: string; - }; - readonly initCodeHash: string; - readonly defaultSwapFee: BigintIsh; - static readonly BAOSWAP: UniswapV2RoutablePlatform; - /** - * @see https://docs.biswap.org/biswap/general-information/biswap-smart-contracts for smart contract info - * @see https://bscscan.com/address/0x858E3312ed3A876947EA49d572A7C42DE08af7EE#readContract (Factor address) for INIT_CODE_HASH - * @see https://github.com/biswap-org/core/blob/78a67b2bf9dccc551adf91b0529aec6df9eb9b27/contracts/BiswapPair.sol#L29 for swapFee default value - * @see https://thegraph.com/hosted-service/subgraph/unchase/biswap for Subraph Endpoint - */ - static readonly BISWAP: UniswapV2RoutablePlatform; - static readonly DFYN: UniswapV2RoutablePlatform; - static readonly HONEYSWAP: UniswapV2RoutablePlatform; - static readonly LEVINSWAP: UniswapV2RoutablePlatform; - static readonly PANCAKESWAP: UniswapV2RoutablePlatform; - static readonly QUICKSWAP: UniswapV2RoutablePlatform; - static readonly SUSHISWAP: UniswapV2RoutablePlatform; - static readonly SWAPR: UniswapV2RoutablePlatform; - static readonly UNISWAP: UniswapV2RoutablePlatform; - /** - * Create a new UniswapV2RoutablePlatform instance. - */ - constructor({ chainIds, name, factoryAddress, routerAddress, initCodeHash, defaultSwapFee, subgraphEndpoint, }: UniswapV2RoutablePlatformParams); - /** - * Check if the platform supports the given chain - * @param chainId The chainId of the desired platform - * @returns Whether the platform supports the given chain - */ - supportsChain(chainId: ChainId): boolean; -} diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js deleted file mode 100644 index 004e249d..00000000 --- a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UniswapV2RoutablePlatform = void 0; -const constants_1 = require("@ethersproject/constants"); -const constants_2 = require("../../../constants"); -const BaseRoutablePlatform_1 = require("./BaseRoutablePlatform"); -const BAOSWAP_FACTORY_ADDRESS = '0x45de240fbe2077dd3e711299538a09854fae9c9b'; -const BISWAP_FACTORY_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x858E3312ed3A876947EA49d572A7C42DE08af7EE' }; -const DFYN_FACTORY_ADDRESS = '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B'; -const HONEYSWAP_FACTORY_ADDRESS = '0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7'; -const LEVINSWAP_FACTORY_ADDRESS = '0x965769C9CeA8A7667246058504dcdcDb1E2975A5'; -const PANCAKESWAP_FACTORY_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73' }; -const QUICKSWAP_FACTORY_ADDRESS = '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32'; -const SUSHISWAP_FACTORY_ADDRESS = { - [constants_2.ChainId.MAINNET]: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac', - [constants_2.ChainId.RINKEBY]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', - [constants_2.ChainId.XDAI]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', - [constants_2.ChainId.ARBITRUM_ONE]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', - [constants_2.ChainId.POLYGON]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', - [constants_2.ChainId.BSC_MAINNET]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4', -}; -const UNISWAP_FACTORY_ADDRESS = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f'; -const BAOSWAP_ROUTER_ADDRESS = '0x6093AeBAC87d62b1A5a4cEec91204e35020E38bE'; -const BISWAP_ROUTER_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x3a6d8cA21D1CF76F653A67577FA0D27453350dD8' }; -const DFYN_ROUTER_ADDRESS = '0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429'; -const HONEYSWAP_ROUTER_ADDRESS = '0x1C232F01118CB8B424793ae03F870aa7D0ac7f77'; -const LEVINSWAP_ROUTER_ADDRESS = '0xb18d4f69627F8320619A696202Ad2C430CeF7C53'; -const PANCAKESWAP_ROUTER_ADDRESS = { [constants_2.ChainId.BSC_MAINNET]: '0x10ED43C718714eb63d5aA57B78B54704E256024E' }; -const QUICKSWAP_ROUTER_ADDRESS = '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff'; -const SUSHISWAP_ROUTER_ADDRESS = { - [constants_2.ChainId.MAINNET]: '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F', - [constants_2.ChainId.RINKEBY]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', - [constants_2.ChainId.XDAI]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', - [constants_2.ChainId.ARBITRUM_ONE]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', - [constants_2.ChainId.POLYGON]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', - [constants_2.ChainId.BSC_MAINNET]: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', -}; -const UNISWAP_ROUTER_ADDRESS = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'; -/** - * A Uniswap V2 platform to which Swapr can route through. - */ -class UniswapV2RoutablePlatform extends BaseRoutablePlatform_1.BaseRoutablePlatform { - /** - * Create a new UniswapV2RoutablePlatform instance. - */ - constructor({ chainIds, name, factoryAddress, routerAddress, initCodeHash, defaultSwapFee, subgraphEndpoint, }) { - super(chainIds, name); - this.factoryAddress = factoryAddress; - this.routerAddress = routerAddress; - this.initCodeHash = initCodeHash; - this.defaultSwapFee = defaultSwapFee; - this.subgraphEndpoint = subgraphEndpoint || {}; - } - /** - * Check if the platform supports the given chain - * @param chainId The chainId of the desired platform - * @returns Whether the platform supports the given chain - */ - supportsChain(chainId) { - return (this.chainIds.includes(chainId) && - this.factoryAddress[chainId] !== constants_1.AddressZero && - this.routerAddress[chainId] !== constants_1.AddressZero); - } -} -exports.UniswapV2RoutablePlatform = UniswapV2RoutablePlatform; -UniswapV2RoutablePlatform.BAOSWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.XDAI], - name: 'Baoswap', - factoryAddress: { - [constants_2.ChainId.XDAI]: BAOSWAP_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.XDAI]: BAOSWAP_ROUTER_ADDRESS, - }, - initCodeHash: '0x0bae3ead48c325ce433426d2e8e6b07dac10835baec21e163760682ea3d3520d', - defaultSwapFee: constants_2._30, -}); -/** - * @see https://docs.biswap.org/biswap/general-information/biswap-smart-contracts for smart contract info - * @see https://bscscan.com/address/0x858E3312ed3A876947EA49d572A7C42DE08af7EE#readContract (Factor address) for INIT_CODE_HASH - * @see https://github.com/biswap-org/core/blob/78a67b2bf9dccc551adf91b0529aec6df9eb9b27/contracts/BiswapPair.sol#L29 for swapFee default value - * @see https://thegraph.com/hosted-service/subgraph/unchase/biswap for Subraph Endpoint - */ -UniswapV2RoutablePlatform.BISWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.BSC_MAINNET], - name: 'Biswap', - factoryAddress: BISWAP_FACTORY_ADDRESS, - routerAddress: BISWAP_ROUTER_ADDRESS, - initCodeHash: '0xfea293c909d87cd4153593f077b76bb7e94340200f4ee84211ae8e4f9bd7ffdf', - defaultSwapFee: constants_2.TEN, - subgraphEndpoint: { - [constants_2.ChainId.BSC_MAINNET]: 'https://api.thegraph.com/subgraphs/name/unchase/biswap', - }, -}); -UniswapV2RoutablePlatform.DFYN = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.POLYGON], - name: 'DFYN', - factoryAddress: { - [constants_2.ChainId.POLYGON]: DFYN_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.POLYGON]: DFYN_ROUTER_ADDRESS, - }, - initCodeHash: '0xf187ed688403aa4f7acfada758d8d53698753b998a3071b06f1b777f4330eaf3', - defaultSwapFee: constants_2._30, -}); -UniswapV2RoutablePlatform.HONEYSWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.XDAI], - name: 'Honeyswap', - factoryAddress: { - [constants_2.ChainId.XDAI]: HONEYSWAP_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.XDAI]: HONEYSWAP_ROUTER_ADDRESS, - }, - initCodeHash: '0x3f88503e8580ab941773b59034fb4b2a63e86dbc031b3633a925533ad3ed2b93', - defaultSwapFee: constants_2._30, -}); -UniswapV2RoutablePlatform.LEVINSWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.XDAI], - name: 'Levinswap', - factoryAddress: { - [constants_2.ChainId.XDAI]: LEVINSWAP_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.XDAI]: LEVINSWAP_ROUTER_ADDRESS, - }, - initCodeHash: '0x4955fd9146732ca7a64d43c7a8d65fe6db1acca27e9c5b3bee7c3abe5849f441', - defaultSwapFee: constants_2._30, -}); -UniswapV2RoutablePlatform.PANCAKESWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.BSC_MAINNET], - name: 'Pancakeswap', - factoryAddress: PANCAKESWAP_FACTORY_ADDRESS, - routerAddress: PANCAKESWAP_ROUTER_ADDRESS, - initCodeHash: '0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5', - defaultSwapFee: constants_2._25, - subgraphEndpoint: {}, -}); -UniswapV2RoutablePlatform.QUICKSWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.POLYGON], - name: 'Quickswap', - factoryAddress: { - [constants_2.ChainId.POLYGON]: QUICKSWAP_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.POLYGON]: QUICKSWAP_ROUTER_ADDRESS, - }, - initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', - defaultSwapFee: constants_2._30, -}); -UniswapV2RoutablePlatform.SUSHISWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.MAINNET, constants_2.ChainId.RINKEBY, constants_2.ChainId.ARBITRUM_ONE, constants_2.ChainId.POLYGON, constants_2.ChainId.BSC_MAINNET], - name: 'Sushiswap', - factoryAddress: SUSHISWAP_FACTORY_ADDRESS, - routerAddress: SUSHISWAP_ROUTER_ADDRESS, - initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303', - defaultSwapFee: constants_2._30, - subgraphEndpoint: {}, -}); -UniswapV2RoutablePlatform.SWAPR = new UniswapV2RoutablePlatform({ - chainIds: [ - constants_2.ChainId.MAINNET, - constants_2.ChainId.RINKEBY, - constants_2.ChainId.ARBITRUM_ONE, - constants_2.ChainId.ARBITRUM_RINKEBY, - constants_2.ChainId.ARBITRUM_GOERLI, - constants_2.ChainId.XDAI, - constants_2.ChainId.GOERLI, - ], - name: 'Swapr', - factoryAddress: constants_2.FACTORY_ADDRESS, - routerAddress: constants_2.ROUTER_ADDRESS, - initCodeHash: constants_2.INIT_CODE_HASH, - defaultSwapFee: constants_2.defaultSwapFee, - subgraphEndpoint: { - [constants_2.ChainId.MAINNET]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-mainnet-v2', - [constants_2.ChainId.ARBITRUM_ONE]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-arbitrum-one-v3', - [constants_2.ChainId.XDAI]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-xdai-v2', - [constants_2.ChainId.RINKEBY]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-rinkeby', - [constants_2.ChainId.ARBITRUM_RINKEBY]: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-arbitrum-rinkeby-v2', - }, -}); -UniswapV2RoutablePlatform.UNISWAP = new UniswapV2RoutablePlatform({ - chainIds: [constants_2.ChainId.MAINNET, constants_2.ChainId.RINKEBY], - name: 'Uniswap v2', - factoryAddress: { - [constants_2.ChainId.MAINNET]: UNISWAP_FACTORY_ADDRESS, - [constants_2.ChainId.RINKEBY]: UNISWAP_FACTORY_ADDRESS, - }, - routerAddress: { - [constants_2.ChainId.MAINNET]: UNISWAP_ROUTER_ADDRESS, - [constants_2.ChainId.RINKEBY]: UNISWAP_ROUTER_ADDRESS, - }, - initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', - defaultSwapFee: constants_2._30, - subgraphEndpoint: { - [constants_2.ChainId.MAINNET]: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2', - }, -}); -//# sourceMappingURL=UniswapV2RoutablePlatform.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map b/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map deleted file mode 100644 index 178ed956..00000000 --- a/dist/entities/trades/routable-platform/UniswapV2RoutablePlatform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UniswapV2RoutablePlatform.js","sourceRoot":"","sources":["../../../../src/entities/trades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,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,4DAA4D;KAChF;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/index.d.ts b/dist/entities/trades/routable-platform/index.d.ts deleted file mode 100644 index c00795dc..00000000 --- a/dist/entities/trades/routable-platform/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './BaseRoutablePlatform'; -export * from './RoutablePlatform'; -export * from './UniswapV2RoutablePlatform'; diff --git a/dist/entities/trades/routable-platform/index.js b/dist/entities/trades/routable-platform/index.js deleted file mode 100644 index 16826a21..00000000 --- a/dist/entities/trades/routable-platform/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./BaseRoutablePlatform"), exports); -tslib_1.__exportStar(require("./RoutablePlatform"), exports); -tslib_1.__exportStar(require("./UniswapV2RoutablePlatform"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/routable-platform/index.js.map b/dist/entities/trades/routable-platform/index.js.map deleted file mode 100644 index 78a42765..00000000 --- a/dist/entities/trades/routable-platform/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/routable-platform/index.ts"],"names":[],"mappings":";;;AAAA,iEAAsC;AACtC,6DAAkC;AAClC,sEAA2C"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/SwaprV3.d.ts b/dist/entities/trades/swapr-v3/SwaprV3.d.ts deleted file mode 100644 index 6f072dda..00000000 --- a/dist/entities/trades/swapr-v3/SwaprV3.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { BaseProvider } from '@ethersproject/providers'; -import { UnsignedTransaction } from '@ethersproject/transactions'; -import { TradeType } from '../../../constants'; -import { Currency } from '../../currency'; -import { CurrencyAmount, Percent } from '../../fractions'; -import { TradeWithSwapTransaction } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -interface SwaprV3ConstructorParams { - maximumSlippage: Percent; - inputAmount: CurrencyAmount; - outputAmount: CurrencyAmount; - tradeType: TradeType; - chainId: number; - priceImpact: Percent; - fee: Percent; -} -export interface SwaprV3GetQuoteParams { - amount: CurrencyAmount; - quoteCurrency: Currency; - tradeType: TradeType; - maximumSlippage?: Percent; - recipient?: string; -} -export declare class SwaprV3Trade extends TradeWithSwapTransaction { - constructor({ inputAmount, outputAmount, maximumSlippage, priceImpact, tradeType, chainId, fee, }: SwaprV3ConstructorParams); - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }: SwaprV3GetQuoteParams, provider?: BaseProvider): Promise; - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - swapTransaction(options: TradeOptions): Promise; -} -export {}; diff --git a/dist/entities/trades/swapr-v3/SwaprV3.js b/dist/entities/trades/swapr-v3/SwaprV3.js deleted file mode 100644 index d63c2f1e..00000000 --- a/dist/entities/trades/swapr-v3/SwaprV3.js +++ /dev/null @@ -1,157 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwaprV3Trade = void 0; -const tslib_1 = require("tslib"); -const units_1 = require("@ethersproject/units"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const dayjs_1 = tslib_1.__importDefault(require("dayjs")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../../constants"); -const currency_1 = require("../../currency"); -const fractions_1 = require("../../fractions"); -const token_1 = require("../../token"); -const constants_2 = require("../constants"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_1 = require("../utils"); -const constants_3 = require("./constants"); -const contracts_1 = require("./contracts"); -const routes_1 = require("./routes"); -class SwaprV3Trade extends trade_1.TradeWithSwapTransaction { - constructor({ inputAmount, outputAmount, maximumSlippage, priceImpact, tradeType, chainId, fee, }) { - super({ - details: undefined, - type: tradeType, - inputAmount, - outputAmount, - maximumSlippage, - platform: routable_platform_1.RoutablePlatform.SWAPR_V3, - chainId, - executionPrice: new fractions_1.Price({ - baseCurrency: inputAmount.currency, - quoteCurrency: outputAmount.currency, - denominator: inputAmount.raw, - numerator: outputAmount.raw, - }), - priceImpact, - fee, - approveAddress: constants_3.SWAPR_ALGEBRA_CONTRACTS['router'], - }); - } - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); - (0, tiny_invariant_1.default)(chainId, 'SwaprV3Trade.getQuote: chainId is required'); - maximumSlippage = maximumSlippage !== null && maximumSlippage !== void 0 ? maximumSlippage : constants_2.maximumSlippage; - provider = provider !== null && provider !== void 0 ? provider : (0, utils_1.getProvider)(chainId); - (0, tiny_invariant_1.default)(amount.currency.address, `SwaprV3Trade.getQuote: amount.currency.address is required`); - const tokenIn = currency_1.Currency.isNative(amount.currency) - ? token_1.WXDAI[constants_1.ChainId.GNOSIS] - : new token_1.Token(constants_1.ChainId.GNOSIS, amount.currency.address, amount.currency.decimals, amount.currency.symbol, amount.currency.name); - (0, tiny_invariant_1.default)(quoteCurrency.address, `SwaprV3Trade.getQuote: quoteCurrency.address is required`); - const tokenOut = currency_1.Currency.isNative(quoteCurrency) - ? token_1.WXDAI[constants_1.ChainId.GNOSIS] - : new token_1.Token(constants_1.ChainId.GNOSIS, quoteCurrency.address, quoteCurrency.decimals, quoteCurrency.symbol, quoteCurrency.name); - (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `SwaprV3Trade.getQuote: currencies chainId does not match provider's chainId`); - const routes = yield (0, routes_1.getRoutes)(tokenIn, tokenOut, chainId); - const fee = (routes === null || routes === void 0 ? void 0 : routes.length) > 0 && routes[0].pools.length > 0 - ? new fractions_1.Percent(routes[0].pools[0].fee.toString(), '1000000') - : new fractions_1.Percent('0', '0'); - if (tradeType === constants_1.TradeType.EXACT_INPUT) { - const quotedAmountOut = yield (0, contracts_1.getQuoterContract)() - .callStatic.quoteExactInputSingle(tokenIn.address, tokenOut.address, (0, units_1.parseUnits)(amount.toSignificant(), amount.currency.decimals), 0) - .catch((error) => { - console.error(`Error sending quoteExactInputSingle transaction: ${error}`); - return null; - }); - if (quotedAmountOut) { - return new SwaprV3Trade({ - maximumSlippage, - inputAmount: amount, - outputAmount: new fractions_1.TokenAmount(tokenOut, quotedAmountOut), - tradeType, - chainId, - priceImpact: new fractions_1.Percent('0', '1000'), - fee, - }); - } - } - else { - const quotedAmountIn = yield (0, contracts_1.getQuoterContract)() - .callStatic.quoteExactOutputSingle(tokenOut.address, amount.currency.address, (0, units_1.parseUnits)(amount.toSignificant(), amount.currency.decimals), 0) - .catch((error) => { - console.error(`Error sending quoteExactOutputSingle transaction: ${error}`); - return null; - }); - if (quotedAmountIn) { - return new SwaprV3Trade({ - maximumSlippage, - inputAmount: new fractions_1.TokenAmount(tokenOut, quotedAmountIn), - outputAmount: amount, - tradeType, - chainId, - priceImpact: new fractions_1.Percent('0', '1000'), - fee, - }); - } - } - return null; - }); - } - minimumAmountOut() { - if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new sdk_core_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new sdk_core_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const isNativeIn = currency_1.Currency.isNative(this.inputAmount.currency); - const isNativeOut = currency_1.Currency.isNative(this.outputAmount.currency); - (0, tiny_invariant_1.default)(!(isNativeIn && isNativeOut), 'SwaprV3Trade.swapTransaction: the router does not support both native in and out'); - const recipient = (0, sdk_core_1.validateAndParseAddress)(options.recipient); - const amountIn = `0x${this.maximumAmountIn().raw.toString(16)}`; - const amountOut = `0x${this.minimumAmountOut().raw.toString(16)}`; - const isTradeExactInput = this.tradeType === constants_1.TradeType.EXACT_INPUT; - const routerContract = (0, contracts_1.getRouterContract)(); - const baseParams = { - tokenIn: isNativeIn ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : this.inputAmount.currency.address, - tokenOut: isNativeOut ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : this.outputAmount.currency.address, - recipient, - deadline: (0, dayjs_1.default)().add(30, 'm').unix(), - sqrtPriceLimitX96: 0, - fee: this.fee, - }; - const value = isNativeIn ? amountIn : undefined; - const exactInputSingleParams = Object.assign(Object.assign({}, baseParams), { amountIn, amountOutMinimum: amountOut }); - const exactOutputSingleParams = Object.assign(Object.assign({}, baseParams), { amountOut, amountInMaximum: amountIn }); - const methodName = isTradeExactInput ? 'exactInputSingle' : 'exactOutputSingle'; - const params = isTradeExactInput ? exactInputSingleParams : exactOutputSingleParams; - const populatedTransaction = yield routerContract.populateTransaction[methodName](params, { value }); - return populatedTransaction; - }); - } -} -exports.SwaprV3Trade = SwaprV3Trade; -//# sourceMappingURL=SwaprV3.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/SwaprV3.js.map b/dist/entities/trades/swapr-v3/SwaprV3.js.map deleted file mode 100644 index 2c8f841f..00000000 --- a/dist/entities/trades/swapr-v3/SwaprV3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwaprV3.js","sourceR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W,CAAC,CAAC,CAAC,aAAK,CAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO;gBAC1F,SAAS;gBACT,QAAQ,EAAE,IAAA,eAAK,GAAE,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE;gBACrC,iBAAiB,EAAE,CAAC;gBACpB,GAAG,EAAE,IAAI,CAAC,GAAG;aACd,CAAA;YAED,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAA;YAE/C,MAAM,sBAAsB,mCACvB,UAAU,KACb,QAAQ,EACR,gBAAgB,EAAE,SAAS,GAC5B,CAAA;YAED,MAAM,uBAAuB,mCACxB,UAAU,KACb,SAAS,EACT,eAAe,EAAE,QAAQ,GAC1B,CAAA;YAED,MAAM,UAAU,GAAG,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAA;YAC/E,MAAM,MAAM,GAAG,iBAAiB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,uBAAuB,CAAA;YACnF,MAAM,oBAAoB,GAAG,MAAM,cAAc,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;YAEpG,OAAO,oBAAoB,CAAA;QAC7B,CAAC;KAAA;CACF;AAtMD,oCAsMC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/index.d.ts b/dist/entities/trades/swapr-v3/abi/index.d.ts deleted file mode 100644 index 6666cbc4..00000000 --- a/dist/entities/trades/swapr-v3/abi/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './swapr-algebra-pool'; -export * from './swapr-algebra-quoter'; -export * from './swapr-algebra-router'; diff --git a/dist/entities/trades/swapr-v3/abi/index.js b/dist/entities/trades/swapr-v3/abi/index.js deleted file mode 100644 index d63d09dc..00000000 --- a/dist/entities/trades/swapr-v3/abi/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./swapr-algebra-pool"), exports); -tslib_1.__exportStar(require("./swapr-algebra-quoter"), exports); -tslib_1.__exportStar(require("./swapr-algebra-router"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/index.js.map b/dist/entities/trades/swapr-v3/abi/index.js.map deleted file mode 100644 index 277dd7d4..00000000 --- a/dist/entities/trades/swapr-v3/abi/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC;AACpC,iEAAsC;AACtC,iEAAsC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts deleted file mode 100644 index a6433e03..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export declare const SWAPR_ALGEBRA_POOL_ABI: ({ - inputs: never[]; - stateMutability: string; - type: string; - anonymous?: undefined; - name?: undefined; - outputs?: undefined; -} | { - anonymous: boolean; - inputs: { - indexed: boolean; - internalType: string; - name: string; - type: string; - }[]; - name: string; - type: string; - stateMutability?: undefined; - outputs?: undefined; -} | { - inputs: { - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - anonymous?: undefined; -})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js deleted file mode 100644 index ee3eb69d..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js +++ /dev/null @@ -1,1045 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SWAPR_ALGEBRA_POOL_ABI = void 0; -exports.SWAPR_ALGEBRA_POOL_ABI = [ - { - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidityAmount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'Collect', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'communityFee0New', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'communityFee1New', - type: 'uint8', - }, - ], - name: 'CommunityFee', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint16', - name: 'fee', - type: 'uint16', - }, - ], - name: 'Fee', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid1', - type: 'uint256', - }, - ], - name: 'Flash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'virtualPoolAddress', - type: 'address', - }, - ], - name: 'Incentive', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint160', - name: 'price', - type: 'uint160', - }, - { - indexed: false, - internalType: 'int24', - name: 'tick', - type: 'int24', - }, - ], - name: 'Initialize', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint32', - name: 'liquidityCooldown', - type: 'uint32', - }, - ], - name: 'LiquidityCooldown', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidityAmount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - { - indexed: false, - internalType: 'uint160', - name: 'price', - type: 'uint160', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidity', - type: 'uint128', - }, - { - indexed: false, - internalType: 'int24', - name: 'tick', - type: 'int24', - }, - ], - name: 'Swap', - type: 'event', - }, - { - inputs: [], - name: 'activeIncentive', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - ], - name: 'burn', - outputs: [ - { - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - internalType: 'uint128', - name: 'amount0Requested', - type: 'uint128', - }, - { - internalType: 'uint128', - name: 'amount1Requested', - type: 'uint128', - }, - ], - name: 'collect', - outputs: [ - { - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'dataStorageOperator', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'flash', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - ], - name: 'getInnerCumulatives', - outputs: [ - { - internalType: 'int56', - name: 'innerTickCumulative', - type: 'int56', - }, - { - internalType: 'uint160', - name: 'innerSecondsSpentPerLiquidity', - type: 'uint160', - }, - { - internalType: 'uint32', - name: 'innerSecondsSpent', - type: 'uint32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint32[]', - name: 'secondsAgos', - type: 'uint32[]', - }, - ], - name: 'getTimepoints', - outputs: [ - { - internalType: 'int56[]', - name: 'tickCumulatives', - type: 'int56[]', - }, - { - internalType: 'uint160[]', - name: 'secondsPerLiquidityCumulatives', - type: 'uint160[]', - }, - { - internalType: 'uint112[]', - name: 'volatilityCumulatives', - type: 'uint112[]', - }, - { - internalType: 'uint256[]', - name: 'volumePerAvgLiquiditys', - type: 'uint256[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'globalState', - outputs: [ - { - internalType: 'uint160', - name: 'price', - type: 'uint160', - }, - { - internalType: 'int24', - name: 'tick', - type: 'int24', - }, - { - internalType: 'uint16', - name: 'fee', - type: 'uint16', - }, - { - internalType: 'uint16', - name: 'timepointIndex', - type: 'uint16', - }, - { - internalType: 'uint8', - name: 'communityFeeToken0', - type: 'uint8', - }, - { - internalType: 'uint8', - name: 'communityFeeToken1', - type: 'uint8', - }, - { - internalType: 'bool', - name: 'unlocked', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint160', - name: 'initialPrice', - type: 'uint160', - }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'liquidity', - outputs: [ - { - internalType: 'uint128', - name: '', - type: 'uint128', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'liquidityCooldown', - outputs: [ - { - internalType: 'uint32', - name: '', - type: 'uint32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxLiquidityPerTick', - outputs: [ - { - internalType: 'uint128', - name: '', - type: 'uint128', - }, - ], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'int24', - name: 'bottomTick', - type: 'int24', - }, - { - internalType: 'int24', - name: 'topTick', - type: 'int24', - }, - { - internalType: 'uint128', - name: 'liquidityDesired', - type: 'uint128', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'mint', - outputs: [ - { - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - internalType: 'uint128', - name: 'liquidityActual', - type: 'uint128', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - name: 'positions', - outputs: [ - { - internalType: 'uint128', - name: 'liquidity', - type: 'uint128', - }, - { - internalType: 'uint32', - name: 'lastLiquidityAddTimestamp', - type: 'uint32', - }, - { - internalType: 'uint256', - name: 'innerFeeGrowth0Token', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'innerFeeGrowth1Token', - type: 'uint256', - }, - { - internalType: 'uint128', - name: 'fees0', - type: 'uint128', - }, - { - internalType: 'uint128', - name: 'fees1', - type: 'uint128', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'communityFee0', - type: 'uint8', - }, - { - internalType: 'uint8', - name: 'communityFee1', - type: 'uint8', - }, - ], - name: 'setCommunityFee', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'virtualPoolAddress', - type: 'address', - }, - ], - name: 'setIncentive', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint32', - name: 'newLiquidityCooldown', - type: 'uint32', - }, - ], - name: 'setLiquidityCooldown', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'bool', - name: 'zeroToOne', - type: 'bool', - }, - { - internalType: 'int256', - name: 'amountRequired', - type: 'int256', - }, - { - internalType: 'uint160', - name: 'limitSqrtPrice', - type: 'uint160', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'swap', - outputs: [ - { - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'bool', - name: 'zeroToOne', - type: 'bool', - }, - { - internalType: 'int256', - name: 'amountRequired', - type: 'int256', - }, - { - internalType: 'uint160', - name: 'limitSqrtPrice', - type: 'uint160', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'swapSupportingFeeOnInputTokens', - outputs: [ - { - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'tickSpacing', - outputs: [ - { - internalType: 'int24', - name: '', - type: 'int24', - }, - ], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int16', - name: '', - type: 'int16', - }, - ], - name: 'tickTable', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int24', - name: '', - type: 'int24', - }, - ], - name: 'ticks', - outputs: [ - { - internalType: 'uint128', - name: 'liquidityTotal', - type: 'uint128', - }, - { - internalType: 'int128', - name: 'liquidityDelta', - type: 'int128', - }, - { - internalType: 'uint256', - name: 'outerFeeGrowth0Token', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'outerFeeGrowth1Token', - type: 'uint256', - }, - { - internalType: 'int56', - name: 'outerTickCumulative', - type: 'int56', - }, - { - internalType: 'uint160', - name: 'outerSecondsPerLiquidity', - type: 'uint160', - }, - { - internalType: 'uint32', - name: 'outerSecondsSpent', - type: 'uint32', - }, - { - internalType: 'bool', - name: 'initialized', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'index', - type: 'uint256', - }, - ], - name: 'timepoints', - outputs: [ - { - internalType: 'bool', - name: 'initialized', - type: 'bool', - }, - { - internalType: 'uint32', - name: 'blockTimestamp', - type: 'uint32', - }, - { - internalType: 'int56', - name: 'tickCumulative', - type: 'int56', - }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityCumulative', - type: 'uint160', - }, - { - internalType: 'uint88', - name: 'volatilityCumulative', - type: 'uint88', - }, - { - internalType: 'int24', - name: 'averageTick', - type: 'int24', - }, - { - internalType: 'uint144', - name: 'volumePerLiquidityCumulative', - type: 'uint144', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token0', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token1', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalFeeGrowth0Token', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalFeeGrowth1Token', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; -//# sourceMappingURL=swapr-algebra-pool.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map deleted file mode 100644 index 22fd988f..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-pool.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"swapr-algebra-pool.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-pool.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC;QACE,MAAM,EAAE,EAAE;QACV,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,OAAO;aACd;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,OAAO;aACd;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,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KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts deleted file mode 100644 index 3db7b6bd..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export declare const SWAPR_ALGEBRA_QUOTER_ABI: ({ - inputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - name?: undefined; - outputs?: undefined; -} | { - inputs: { - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js deleted file mode 100644 index bd0ef140..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SWAPR_ALGEBRA_QUOTER_ABI = void 0; -exports.SWAPR_ALGEBRA_QUOTER_ABI = [ - { - inputs: [ - { - internalType: 'address', - name: '_factory', - type: 'address', - }, - { - internalType: 'address', - name: '_WNativeToken', - type: 'address', - }, - { - internalType: 'address', - name: '_poolDeployer', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WNativeToken', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int256', - name: 'amount0Delta', - type: 'int256', - }, - { - internalType: 'int256', - name: 'amount1Delta', - type: 'int256', - }, - { - internalType: 'bytes', - name: 'path', - type: 'bytes', - }, - ], - name: 'AlgebraSwapCallback', - outputs: [], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'poolDeployer', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes', - name: 'path', - type: 'bytes', - }, - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - ], - name: 'quoteExactInput', - outputs: [ - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenOut', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - name: 'quoteExactInputSingle', - outputs: [ - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes', - name: 'path', - type: 'bytes', - }, - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - name: 'quoteExactOutput', - outputs: [ - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenOut', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - name: 'quoteExactOutputSingle', - outputs: [ - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, -]; -//# sourceMappingURL=swapr-algebra-quoter.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map deleted file mode 100644 index 423ef93a..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-quoter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"swapr-algebra-quoter.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-quoter.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,M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AAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts deleted file mode 100644 index 3cd40deb..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -export declare const SWAPR_ALGEBRA_ROUTER_ABI: ({ - inputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - name?: undefined; - outputs?: undefined; -} | { - inputs: { - components: { - internalType: string; - name: string; - type: string; - }[]; - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -} | { - inputs: { - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -} | { - stateMutability: string; - type: string; - inputs?: undefined; - name?: undefined; - outputs?: undefined; -})[]; diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js deleted file mode 100644 index 2c88d212..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js +++ /dev/null @@ -1,638 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SWAPR_ALGEBRA_ROUTER_ABI = void 0; -exports.SWAPR_ALGEBRA_ROUTER_ABI = [ - { - inputs: [ - { - internalType: 'address', - name: '_factory', - type: 'address', - }, - { - internalType: 'address', - name: '_WNativeToken', - type: 'address', - }, - { - internalType: 'address', - name: '_poolDeployer', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WNativeToken', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'bytes', - name: 'path', - type: 'bytes', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountOutMinimum', - type: 'uint256', - }, - ], - internalType: 'struct ISwapRouter.ExactInputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInput', - outputs: [ - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'address', - name: 'tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenOut', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountOutMinimum', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - internalType: 'struct ISwapRouter.ExactInputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInputSingle', - outputs: [ - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'address', - name: 'tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenOut', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountOutMinimum', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - internalType: 'struct ISwapRouter.ExactInputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInputSingleSupportingFeeOnTransferTokens', - outputs: [ - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'bytes', - name: 'path', - type: 'bytes', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountInMaximum', - type: 'uint256', - }, - ], - internalType: 'struct ISwapRouter.ExactOutputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutput', - outputs: [ - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'address', - name: 'tokenIn', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenOut', - type: 'address', - }, - { - internalType: 'uint24', - name: 'fee', - type: 'uint24', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountOut', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amountInMaximum', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - internalType: 'struct ISwapRouter.ExactOutputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutputSingle', - outputs: [ - { - internalType: 'uint256', - name: 'amountIn', - type: 'uint256', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'int256', - name: 'amount0Delta', - type: 'int256', - }, - { - internalType: 'int256', - name: 'amount1Delta', - type: 'int256', - }, - { - internalType: 'bytes', - name: '_data', - type: 'bytes', - }, - ], - name: 'AlgebraSwapCallback', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes[]', - name: 'data', - type: 'bytes[]', - }, - ], - name: 'multicall', - outputs: [ - { - internalType: 'bytes[]', - name: 'results', - type: 'bytes[]', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'poolDeployer', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'refundNativeToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'selfPermit', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'nonce', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'expiry', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'selfPermitAllowed', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'nonce', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'expiry', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'selfPermitAllowedIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'selfPermitIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amountMinimum', - type: 'uint256', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amountMinimum', - type: 'uint256', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'feeBips', - type: 'uint256', - }, - { - internalType: 'address', - name: 'feeRecipient', - type: 'address', - }, - ], - name: 'sweepTokenWithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amountMinimum', - type: 'uint256', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - ], - name: 'unwrapWNativeToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amountMinimum', - type: 'uint256', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'feeBips', - type: 'uint256', - }, - { - internalType: 'address', - name: 'feeRecipient', - type: 'address', - }, - ], - name: 'unwrapWNativeTokenWithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - stateMutability: 'payable', - type: 'receive', - }, -]; -//# sourceMappingURL=swapr-algebra-router.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map b/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map deleted file mode 100644 index dbf5dfd7..00000000 --- a/dist/entities/trades/swapr-v3/abi/swapr-algebra-router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"swapr-algebra-router.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/abi/swapr-algebra-router.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,OAAO;qBACd;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,SAAS;qBAChB;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AW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/constants.d.ts b/dist/entities/trades/swapr-v3/constants.d.ts deleted file mode 100644 index 1e3a128f..00000000 --- a/dist/entities/trades/swapr-v3/constants.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare const POOL_DEPLOYER_ADDRESS = "0xC1b576AC6Ec749d5Ace1787bF9Ec6340908ddB47"; -export declare const POOL_INIT_CODE_HASH = "0xbce37a54eab2fcd71913a0d40723e04238970e7fc1159bfd58ad5b79531697e7"; -export declare const SWAPR_ALGEBRA_CONTRACTS: { - quoter: string; - router: string; -}; -export type BaseToken = { - chainId: number; - decimals: number; - symbol: string; - name: string; - isNative: boolean; - isToken: boolean; - address: string; -}; -export declare const baseTokens: BaseToken[]; diff --git a/dist/entities/trades/swapr-v3/constants.js b/dist/entities/trades/swapr-v3/constants.js deleted file mode 100644 index f5c5f5d0..00000000 --- a/dist/entities/trades/swapr-v3/constants.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.baseTokens = exports.SWAPR_ALGEBRA_CONTRACTS = exports.POOL_INIT_CODE_HASH = exports.POOL_DEPLOYER_ADDRESS = void 0; -const constants_1 = require("../../../constants"); -exports.POOL_DEPLOYER_ADDRESS = '0xC1b576AC6Ec749d5Ace1787bF9Ec6340908ddB47'; -exports.POOL_INIT_CODE_HASH = '0xbce37a54eab2fcd71913a0d40723e04238970e7fc1159bfd58ad5b79531697e7'; -exports.SWAPR_ALGEBRA_CONTRACTS = { - quoter: '0xcBaD9FDf0D2814659Eb26f600EFDeAF005Eda0F7', - router: '0xfFB643E73f280B97809A8b41f7232AB401a04ee1', -}; -exports.baseTokens = [ - { - chainId: constants_1.ChainId.GNOSIS, - decimals: 18, - symbol: 'WXDAI', - name: 'Wrapped XDAI', - isNative: false, - isToken: true, - address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', - }, - { - chainId: constants_1.ChainId.GNOSIS, - decimals: 6, - symbol: 'USDC', - name: 'USD//C on Gnosis', - isNative: false, - isToken: true, - address: '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', - }, - { - chainId: constants_1.ChainId.GNOSIS, - decimals: 18, - symbol: 'WETH', - name: 'Wrapped Ether on Gnosis chain', - isNative: false, - isToken: true, - address: '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', - }, - { - chainId: constants_1.ChainId.GNOSIS, - decimals: 18, - symbol: 'GNO', - name: 'Gnosis Token on Gnosis chain', - isNative: false, - isToken: true, - address: '0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb', - }, -]; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/constants.js.map b/dist/entities/trades/swapr-v3/constants.js.map deleted file mode 100644 index 80941b96..00000000 --- a/dist/entities/trades/swapr-v3/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/constants.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAE/B,QAAA,qBAAqB,GAAG,4CAA4C,CAAA;AACpE,QAAA,mBAAmB,GAAG,oEAAoE,CAAA;AAE1F,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,4CAA4C;IACpD,MAAM,EAAE,4CAA4C;CACrD,CAAA;AAYY,QAAA,UAAU,GAAgB;IACrC;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,+BAA+B;QACrC,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;IACD;QACE,OAAO,EAAE,mBAAO,CAAC,MAAM;QACvB,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,8BAA8B;QACpC,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,4CAA4C;KACtD;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/contracts.d.ts b/dist/entities/trades/swapr-v3/contracts.d.ts deleted file mode 100644 index b9a11c26..00000000 --- a/dist/entities/trades/swapr-v3/contracts.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Contract } from '@ethersproject/contracts'; -export declare function getPoolsContract(pool_address: string): Contract; -export declare function getRouterContract(): Contract; -export declare function getQuoterContract(): Contract; diff --git a/dist/entities/trades/swapr-v3/contracts.js b/dist/entities/trades/swapr-v3/contracts.js deleted file mode 100644 index 20d67965..00000000 --- a/dist/entities/trades/swapr-v3/contracts.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getQuoterContract = exports.getRouterContract = exports.getPoolsContract = void 0; -const contracts_1 = require("@ethersproject/contracts"); -const constants_1 = require("../../../constants"); -const utils_1 = require("../utils"); -const abi_1 = require("./abi"); -const constants_2 = require("./constants"); -function getPoolsContract(pool_address) { - return new contracts_1.Contract(pool_address, abi_1.SWAPR_ALGEBRA_POOL_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); -} -exports.getPoolsContract = getPoolsContract; -function getRouterContract() { - return new contracts_1.Contract(constants_2.SWAPR_ALGEBRA_CONTRACTS.router, abi_1.SWAPR_ALGEBRA_ROUTER_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); -} -exports.getRouterContract = getRouterContract; -function getQuoterContract() { - return new contracts_1.Contract(constants_2.SWAPR_ALGEBRA_CONTRACTS.quoter, abi_1.SWAPR_ALGEBRA_QUOTER_ABI, (0, utils_1.getProvider)(constants_1.ChainId.GNOSIS)); -} -exports.getQuoterContract = getQuoterContract; -//# sourceMappingURL=contracts.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/contracts.js.map b/dist/entities/trades/swapr-v3/contracts.js.map deleted file mode 100644 index 471fcabe..00000000 --- a/dist/entities/trades/swapr-v3/contracts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/contracts.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEnD,kDAA4C;AAC5C,oCAAsC;AACtC,+BAAkG;AAClG,2CAAqD;AAErD,SAAgB,gBAAgB,CAAC,YAAoB;IACnD,OAAO,IAAI,oBAAQ,CAAC,YAAY,EAAE,4BAAsB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AACxF,CAAC;AAFD,4CAEC;AAED,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,oBAAQ,CAAC,mCAAuB,CAAC,MAAM,EAAE,8BAAwB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AAC5G,CAAC;AAFD,8CAEC;AAED,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,oBAAQ,CAAC,mCAAuB,CAAC,MAAM,EAAE,8BAAwB,EAAE,IAAA,mBAAW,EAAC,mBAAO,CAAC,MAAM,CAAC,CAAC,CAAA;AAC5G,CAAC;AAFD,8CAEC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/pool.d.ts b/dist/entities/trades/swapr-v3/entities/pool.d.ts deleted file mode 100644 index 0f4b16d2..00000000 --- a/dist/entities/trades/swapr-v3/entities/pool.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { BigintIsh, CurrencyAmount, Price, Token } from '@uniswap/sdk-core'; -import { FeeAmount, Tick, TickConstructorArgs, TickDataProvider } from '@uniswap/v3-sdk'; -import JSBI from 'jsbi'; -/** - * Represents a V3 pool - */ -export declare class Pool { - readonly token0: Token; - readonly token1: Token; - readonly fee: FeeAmount; - readonly sqrtRatioX96: JSBI; - readonly liquidity: JSBI; - readonly tickCurrent: number; - readonly tickDataProvider: TickDataProvider; - /** - * Construct a pool - * @param tokenA One of the tokens in the pool - * @param tokenB The other token in the pool - * @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool - * @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0 - * @param liquidity The current value of in range liquidity - * @param tickCurrent The current tick of the pool - * @param ticks The current state of the pool ticks or a data provider that can return tick data - */ - constructor(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtRatioX96: BigintIsh, liquidity: BigintIsh, tickCurrent: number, ticks?: TickDataProvider | (Tick | TickConstructorArgs)[]); - private _token0Price?; - /** - * Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0 - */ - get token0Price(): Price; - private _token1Price?; - /** - * Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1 - */ - get token1Price(): Price; - /** - * Returns the chain ID of the tokens in the pool. - */ - get chainId(): number; - get tickSpacing(): number; - static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: string): string; - /** - * Returns true if the token is either token0 or token1 - * @param token The token to check - * @returns True if token is either token0 or token - */ - involvesToken(token: Token): boolean; - /** - * Return the price of the given token in terms of the other token in the pool. - * @param token The token to return price of - * @returns The price of the given token, in terms of the other. - */ - priceOf(token: Token): Price; - /** - * Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade - * @param inputAmount The input amount for which to quote the output amount - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit - * @returns The output amount and the pool with updated state - */ - getOutputAmount(inputAmount: CurrencyAmount, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount, Pool]>; - /** - * Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade - * @param outputAmount the output amount for which to quote the input amount - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap - * @returns The input amount and the pool with updated state - */ - getInputAmount(outputAmount: CurrencyAmount, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount, Pool]>; - /** - * Executes a swap - * @param zeroForOne Whether the amount in is token0 or token1 - * @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap - * @returns amountCalculated - * @returns sqrtRatioX96 - * @returns liquidity - * @returns tickCurrent - */ - private swap; -} diff --git a/dist/entities/trades/swapr-v3/entities/pool.js b/dist/entities/trades/swapr-v3/entities/pool.js deleted file mode 100644 index d671a485..00000000 --- a/dist/entities/trades/swapr-v3/entities/pool.js +++ /dev/null @@ -1,214 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Pool = void 0; -const tslib_1 = require("tslib"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const v3_sdk_1 = require("@uniswap/v3-sdk"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../constants"); -const Q96 = jsbi_1.default.exponentiate(jsbi_1.default.BigInt(2), jsbi_1.default.BigInt(96)); -const Q192 = jsbi_1.default.exponentiate(Q96, jsbi_1.default.BigInt(2)); -/** - * By default, pools will not allow operations that require ticks. - */ -const NO_TICK_DATA_PROVIDER_DEFAULT = new v3_sdk_1.NoTickDataProvider(); -/** - * Represents a V3 pool - */ -class Pool { - /** - * Construct a pool - * @param tokenA One of the tokens in the pool - * @param tokenB The other token in the pool - * @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool - * @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0 - * @param liquidity The current value of in range liquidity - * @param tickCurrent The current tick of the pool - * @param ticks The current state of the pool ticks or a data provider that can return tick data - */ - constructor(tokenA, tokenB, fee, sqrtRatioX96, liquidity, tickCurrent, ticks = NO_TICK_DATA_PROVIDER_DEFAULT) { - (0, tiny_invariant_1.default)(Number.isInteger(fee) && fee < 1000000, 'FEE'); - const tickCurrentSqrtRatioX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(tickCurrent); - const nextTickSqrtRatioX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(tickCurrent + 1); - (0, tiny_invariant_1.default)(jsbi_1.default.greaterThanOrEqual(jsbi_1.default.BigInt(sqrtRatioX96), tickCurrentSqrtRatioX96) && - jsbi_1.default.lessThanOrEqual(jsbi_1.default.BigInt(sqrtRatioX96), nextTickSqrtRatioX96), 'PRICE_BOUNDS'); - [this.token0, this.token1] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; - this.fee = fee; - this.sqrtRatioX96 = jsbi_1.default.BigInt(sqrtRatioX96); - this.liquidity = jsbi_1.default.BigInt(liquidity); - this.tickCurrent = tickCurrent; - this.tickDataProvider = Array.isArray(ticks) ? new v3_sdk_1.TickListDataProvider(ticks, 60) : ticks; - } - /** - * Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0 - */ - get token0Price() { - var _a; - return ((_a = this._token0Price) !== null && _a !== void 0 ? _a : (this._token0Price = new sdk_core_1.Price(this.token0, this.token1, Q192, jsbi_1.default.multiply(this.sqrtRatioX96, this.sqrtRatioX96)))); - } - /** - * Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1 - */ - get token1Price() { - var _a; - return ((_a = this._token1Price) !== null && _a !== void 0 ? _a : (this._token1Price = new sdk_core_1.Price(this.token1, this.token0, jsbi_1.default.multiply(this.sqrtRatioX96, this.sqrtRatioX96), Q192))); - } - /** - * Returns the chain ID of the tokens in the pool. - */ - get chainId() { - return this.token0.chainId; - } - get tickSpacing() { - return 60; - } - static getAddress(tokenA, tokenB, fee, initCodeHashManualOverride) { - return (0, v3_sdk_1.computePoolAddress)({ - factoryAddress: constants_1.POOL_DEPLOYER_ADDRESS, - fee, - tokenA, - tokenB, - initCodeHashManualOverride, - }); - } - /** - * Returns true if the token is either token0 or token1 - * @param token The token to check - * @returns True if token is either token0 or token - */ - involvesToken(token) { - return token.equals(this.token0) || token.equals(this.token1); - } - /** - * Return the price of the given token in terms of the other token in the pool. - * @param token The token to return price of - * @returns The price of the given token, in terms of the other. - */ - priceOf(token) { - (0, tiny_invariant_1.default)(this.involvesToken(token), 'TOKEN'); - return token.equals(this.token0) ? this.token0Price : this.token1Price; - } - /** - * Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade - * @param inputAmount The input amount for which to quote the output amount - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit - * @returns The output amount and the pool with updated state - */ - getOutputAmount(inputAmount, sqrtPriceLimitX96) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - (0, tiny_invariant_1.default)(this.involvesToken(inputAmount.currency), 'TOKEN'); - const zeroForOne = inputAmount.currency.equals(this.token0); - const { amountCalculated: outputAmount, sqrtRatioX96, liquidity, tickCurrent, } = yield this.swap(zeroForOne, inputAmount.quotient, sqrtPriceLimitX96); - const outputToken = zeroForOne ? this.token1 : this.token0; - return [ - sdk_core_1.CurrencyAmount.fromRawAmount(outputToken, jsbi_1.default.multiply(outputAmount, jsbi_1.default.BigInt(-1))), - new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider), - ]; - }); - } - /** - * Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade - * @param outputAmount the output amount for which to quote the input amount - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap - * @returns The input amount and the pool with updated state - */ - getInputAmount(outputAmount, sqrtPriceLimitX96) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - (0, tiny_invariant_1.default)(outputAmount.currency.isToken && this.involvesToken(outputAmount.currency), 'TOKEN'); - const zeroForOne = outputAmount.currency.equals(this.token1); - const { amountCalculated: inputAmount, sqrtRatioX96, liquidity, tickCurrent, } = yield this.swap(zeroForOne, jsbi_1.default.multiply(outputAmount.quotient, jsbi_1.default.BigInt(-1)), sqrtPriceLimitX96); - const inputToken = zeroForOne ? this.token0 : this.token1; - return [ - sdk_core_1.CurrencyAmount.fromRawAmount(inputToken, inputAmount), - new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider), - ]; - }); - } - /** - * Executes a swap - * @param zeroForOne Whether the amount in is token0 or token1 - * @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) - * @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap - * @returns amountCalculated - * @returns sqrtRatioX96 - * @returns liquidity - * @returns tickCurrent - */ - swap(zeroForOne, amountSpecified, sqrtPriceLimitX96) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - if (!sqrtPriceLimitX96) - sqrtPriceLimitX96 = zeroForOne - ? jsbi_1.default.add(v3_sdk_1.TickMath.MIN_SQRT_RATIO, jsbi_1.default.BigInt(1)) - : jsbi_1.default.subtract(v3_sdk_1.TickMath.MAX_SQRT_RATIO, jsbi_1.default.BigInt(1)); - if (zeroForOne) { - (0, tiny_invariant_1.default)(jsbi_1.default.greaterThan(sqrtPriceLimitX96, v3_sdk_1.TickMath.MIN_SQRT_RATIO), 'RATIO_MIN'); - (0, tiny_invariant_1.default)(jsbi_1.default.lessThan(sqrtPriceLimitX96, this.sqrtRatioX96), 'RATIO_CURRENT'); - } - else { - (0, tiny_invariant_1.default)(jsbi_1.default.lessThan(sqrtPriceLimitX96, v3_sdk_1.TickMath.MAX_SQRT_RATIO), 'RATIO_MAX'); - (0, tiny_invariant_1.default)(jsbi_1.default.greaterThan(sqrtPriceLimitX96, this.sqrtRatioX96), 'RATIO_CURRENT'); - } - const exactInput = jsbi_1.default.greaterThanOrEqual(amountSpecified, jsbi_1.default.BigInt(0)); - // keep track of swap state - const state = { - amountSpecifiedRemaining: amountSpecified, - amountCalculated: jsbi_1.default.BigInt(0), - sqrtPriceX96: this.sqrtRatioX96, - tick: this.tickCurrent, - liquidity: this.liquidity, - }; - // start swap while loop - while (jsbi_1.default.notEqual(state.amountSpecifiedRemaining, jsbi_1.default.BigInt(0)) && state.sqrtPriceX96 != sqrtPriceLimitX96) { - const step = {}; - step.sqrtPriceStartX96 = state.sqrtPriceX96; - [step.tickNext, step.initialized] = yield this.tickDataProvider.nextInitializedTickWithinOneWord(state.tick, zeroForOne, this.tickSpacing); - if (step.tickNext < v3_sdk_1.TickMath.MIN_TICK) { - step.tickNext = v3_sdk_1.TickMath.MIN_TICK; - } - else if (step.tickNext > v3_sdk_1.TickMath.MAX_TICK) { - step.tickNext = v3_sdk_1.TickMath.MAX_TICK; - } - step.sqrtPriceNextX96 = v3_sdk_1.TickMath.getSqrtRatioAtTick(step.tickNext); - [state.sqrtPriceX96, step.amountIn, step.amountOut, step.feeAmount] = v3_sdk_1.SwapMath.computeSwapStep(state.sqrtPriceX96, (zeroForOne - ? jsbi_1.default.lessThan(step.sqrtPriceNextX96, sqrtPriceLimitX96) - : jsbi_1.default.greaterThan(step.sqrtPriceNextX96, sqrtPriceLimitX96)) - ? sqrtPriceLimitX96 - : step.sqrtPriceNextX96, state.liquidity, state.amountSpecifiedRemaining, this.fee); - if (exactInput) { - state.amountSpecifiedRemaining = jsbi_1.default.subtract(state.amountSpecifiedRemaining, jsbi_1.default.add(step.amountIn, step.feeAmount)); - state.amountCalculated = jsbi_1.default.subtract(state.amountCalculated, step.amountOut); - } - else { - state.amountSpecifiedRemaining = jsbi_1.default.add(state.amountSpecifiedRemaining, step.amountOut); - state.amountCalculated = jsbi_1.default.add(state.amountCalculated, jsbi_1.default.add(step.amountIn, step.feeAmount)); - } - // TODO - if (jsbi_1.default.equal(state.sqrtPriceX96, step.sqrtPriceNextX96)) { - // if the tick is initialized, run the tick transition - if (step.initialized) { - let liquidityNet = jsbi_1.default.BigInt((yield this.tickDataProvider.getTick(step.tickNext)).liquidityNet); - // if we're moving leftward, we interpret liquidityNet as the opposite sign - // safe because liquidityNet cannot be type(int128).min - if (zeroForOne) - liquidityNet = jsbi_1.default.multiply(liquidityNet, jsbi_1.default.BigInt(-1)); - state.liquidity = v3_sdk_1.LiquidityMath.addDelta(state.liquidity, liquidityNet); - } - state.tick = zeroForOne ? step.tickNext - 1 : step.tickNext; - } - else if (state.sqrtPriceX96 != step.sqrtPriceStartX96) { - // recompute unless we're on a lower tick boundary (i.e. already transitioned ticks), and haven't moved - state.tick = v3_sdk_1.TickMath.getTickAtSqrtRatio(state.sqrtPriceX96); - } - } - return { - amountCalculated: state.amountCalculated, - sqrtRatioX96: state.sqrtPriceX96, - liquidity: state.liquidity, - tickCurrent: state.tick, - }; - }); - } -} -exports.Pool = Pool; -//# sourceMappingURL=pool.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/pool.js.map b/dist/entities/trades/swapr-v3/entities/pool.js.map deleted file mode 100644 index 5d66001c..00000000 --- a/dist/entities/trades/swapr-v3/entities/pool.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/entities/pool.ts"],"names":[],"mappings":";;;;AAAA,gDAA2E;AAC3E,4CAWwB;AACxB,wDAAuB;AACvB,4EAAsC;AAEtC,4CAAoD;AAEpD,MAAM,GAAG,GAAG,cAAI,CAAC,YAAY,CAAC,cAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA;AAC9D,MAAM,IAAI,GAAG,cAAI,CAAC,YAAY,CAAC,GAAG,EAA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;gBACxC,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,WAAW,EAAE,KAAK,CAAC,IAAI;aACxB,CAAA;QACH,CAAC;KAAA;CACF;AA9RD,oBA8RC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/route.d.ts b/dist/entities/trades/swapr-v3/entities/route.d.ts deleted file mode 100644 index 8827f0bf..00000000 --- a/dist/entities/trades/swapr-v3/entities/route.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Currency, Price, Token } from '@uniswap/sdk-core'; -import { Pool } from './pool'; -/** - * Represents a list of pools through which a swap can occur - * @template TInput The input token - * @template TOutput The output token - */ -export declare class Route { - readonly pools: Pool[]; - readonly tokenPath: Token[]; - readonly input: TInput; - readonly output: TOutput; - /** - * Creates an instance of route. - * @param pools An array of `Pool` objects, ordered by the route the swap will take - * @param input The input token - * @param output The output token - */ - constructor(pools: Pool[], input: TInput, output: TOutput); - private _midPrice; - /** - * Returns the mid price of the route - */ - get midPrice(): Price; - get chainId(): number; -} diff --git a/dist/entities/trades/swapr-v3/entities/route.js b/dist/entities/trades/swapr-v3/entities/route.js deleted file mode 100644 index 51e31553..00000000 --- a/dist/entities/trades/swapr-v3/entities/route.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Route = void 0; -const tslib_1 = require("tslib"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -/** - * Represents a list of pools through which a swap can occur - * @template TInput The input token - * @template TOutput The output token - */ -class Route { - /** - * Creates an instance of route. - * @param pools An array of `Pool` objects, ordered by the route the swap will take - * @param input The input token - * @param output The output token - */ - constructor(pools, input, output) { - this._midPrice = null; - (0, tiny_invariant_1.default)(pools.length > 0, 'POOLS'); - const chainId = pools[0].chainId; - const allOnSameChain = pools.every((pool) => pool.chainId === chainId); - (0, tiny_invariant_1.default)(allOnSameChain, 'CHAIN_IDS'); - const wrappedInput = input.wrapped; - (0, tiny_invariant_1.default)(pools[0].involvesToken(wrappedInput), 'INPUT'); - (0, tiny_invariant_1.default)(pools[pools.length - 1].involvesToken(output.wrapped), 'OUTPUT'); - /** - * Normalizes token0-token1 order and selects the next token/fee step to add to the path - * */ - const tokenPath = [wrappedInput]; - for (const [i, pool] of pools.entries()) { - const currentInputToken = tokenPath[i]; - (0, tiny_invariant_1.default)(currentInputToken.equals(pool.token0) || currentInputToken.equals(pool.token1), 'PATH'); - const nextToken = currentInputToken.equals(pool.token0) ? pool.token1 : pool.token0; - tokenPath.push(nextToken); - } - this.pools = pools; - this.tokenPath = tokenPath; - this.input = input; - this.output = output !== null && output !== void 0 ? output : tokenPath[tokenPath.length - 1]; - } - /** - * Returns the mid price of the route - */ - get midPrice() { - if (this._midPrice !== null) - return this._midPrice; - const price = this.pools.slice(1).reduce(({ nextInput, price }, pool) => { - return nextInput.equals(pool.token0) - ? { - nextInput: pool.token1, - price: price.multiply(pool.token0Price), - } - : { - nextInput: pool.token0, - price: price.multiply(pool.token1Price), - }; - }, this.pools[0].token0.equals(this.input.wrapped) - ? { - nextInput: this.pools[0].token1, - price: this.pools[0].token0Price, - } - : { - nextInput: this.pools[0].token0, - price: this.pools[0].token1Price, - }).price; - return (this._midPrice = new sdk_core_1.Price(this.input, this.output, price.denominator, price.numerator)); - } - get chainId() { - return this.pools[0].chainId; - } -} -exports.Route = Route; -//# sourceMappingURL=route.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/entities/route.js.map b/dist/entities/trades/swapr-v3/entities/route.js.map deleted file mode 100644 index 6edb12d1..00000000 --- a/dist/entities/trades/swapr-v3/entities/route.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/entities/route.ts"],"names":[],"mappings":";;;;AAAA,gDAA0D;AAC1D,4EAAsC;AAItC;;;;GAIG;AAC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KAAK,CAAC,CAAC,CAAC,CAAC,MAAM;gBAC/B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW;aACjC,CACN,CAAC,KAAK,CAAA;QAEP,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;IAClG,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AA9ED,sBA8EC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/index.d.ts b/dist/entities/trades/swapr-v3/index.d.ts deleted file mode 100644 index 6e2511f4..00000000 --- a/dist/entities/trades/swapr-v3/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './SwaprV3'; diff --git a/dist/entities/trades/swapr-v3/index.js b/dist/entities/trades/swapr-v3/index.js deleted file mode 100644 index 99fe71af..00000000 --- a/dist/entities/trades/swapr-v3/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./SwaprV3"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/index.js.map b/dist/entities/trades/swapr-v3/index.js.map deleted file mode 100644 index 85f8a01f..00000000 --- a/dist/entities/trades/swapr-v3/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/pools.d.ts b/dist/entities/trades/swapr-v3/pools.d.ts deleted file mode 100644 index 4b77236e..00000000 --- a/dist/entities/trades/swapr-v3/pools.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Currency, Token } from '@uniswap/sdk-core'; -import { Pool } from './entities/pool'; -export declare const setupTokens: (currencyIn: Currency, currencyOut: Currency) => { - tokenA: Token; - tokenB: Token; -}; -export declare const getPools: (currencyIn: Currency, currencyOut: Currency) => Promise; diff --git a/dist/entities/trades/swapr-v3/pools.js b/dist/entities/trades/swapr-v3/pools.js deleted file mode 100644 index 2e8d1f09..00000000 --- a/dist/entities/trades/swapr-v3/pools.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getPools = exports.setupTokens = void 0; -const tslib_1 = require("tslib"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const constants_1 = require("../../../constants"); -const token_1 = require("../../token"); -const constants_2 = require("./constants"); -const contracts_1 = require("./contracts"); -const pool_1 = require("./entities/pool"); -const computePoolAddress_1 = require("./utils/computePoolAddress"); -const getBaseTokens = constants_2.baseTokens.map(({ address, decimals, symbol, name }) => new sdk_core_1.Token(constants_1.ChainId.GNOSIS, address, decimals, symbol, name)); -const currencyAddress = (currency) => { - return currency.isNative ? token_1.WXDAI[constants_1.ChainId.GNOSIS].address : currency.address; -}; -const setupTokens = (currencyIn, currencyOut) => { - const tokenIn = new sdk_core_1.Token(constants_1.ChainId.GNOSIS, currencyAddress(currencyIn), currencyIn.decimals, currencyIn.symbol, currencyIn.name); - const tokenOut = new sdk_core_1.Token(constants_1.ChainId.GNOSIS, currencyAddress(currencyOut), currencyOut.decimals, currencyOut.symbol, currencyOut.name); - const [tokenA, tokenB] = [tokenIn === null || tokenIn === void 0 ? void 0 : tokenIn.wrapped, tokenOut === null || tokenOut === void 0 ? void 0 : tokenOut.wrapped]; - return { tokenA, tokenB }; -}; -exports.setupTokens = setupTokens; -const pairsDiffCombinations = (tokenA, tokenB) => { - const basePairs = getBaseTokens - .flatMap((base) => getBaseTokens.map((otherBase) => [base, otherBase])) - .filter(([t0, t1]) => !t0.equals(t1)); - return ([ - // the direct pair - [tokenA, tokenB], - // token A against all bases - ...getBaseTokens.map((base) => [tokenA, base]), - // token B against all bases - ...getBaseTokens.map((base) => [tokenB, base]), - // each base against all bases - ...basePairs, - ] // filter out invalid pairs comprised of the same asset (e.g. WETH<>WETH) - .filter(([t0, t1]) => !t0.equals(t1)) - // filter out duplicate pairs - .filter(([t0, t1], i, otherPairs) => { - // find the first index in the array at which there are the same 2 tokens as the current - const firstIndexInOtherPairs = otherPairs.findIndex(([t0Other, t1Other]) => { - return (t0.equals(t0Other) && t1.equals(t1Other)) || (t0.equals(t1Other) && t1.equals(t0Other)); - }); - // only accept the first occurrence of the same 2 tokens - return firstIndexInOtherPairs === i; - })); -}; -const getPools = (currencyIn, currencyOut) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { - const { tokenA, tokenB } = (0, exports.setupTokens)(currencyIn, currencyOut); - const pairsCombinations = pairsDiffCombinations(tokenA, tokenB); - const sortedPairs = pairsCombinations.map(([currencyA, currencyB]) => { - const [token0, token1] = currencyA.sortsBefore(currencyB) ? [currencyA, currencyB] : [currencyB, currencyA]; - return [token0, token1]; - }); - const poolAddresses = sortedPairs.map((value) => { - return (0, computePoolAddress_1.computePoolAddress)({ - poolDeployer: constants_2.POOL_DEPLOYER_ADDRESS, - tokenA: value[0], - tokenB: value[1], - }); - }); - const poolsGlobalSpace = () => Promise.allSettled(poolAddresses.map((poolAddress) => fetchPoolGlobalState(poolAddress))).then((results) => results - .map((result, index) => { - if (result.status === 'fulfilled') { - return { value: result.value, poolAddress: poolAddresses[index] }; - } - else { - return { value: null, poolAddress: poolAddresses[index] }; - } - }) - .filter((result) => result.value)); - const poolsLiquidity = () => Promise.allSettled(poolAddresses.map((poolAddress) => fetchPoolLiquidity(poolAddress))).then((results) => results - .map((result, index) => { - if (result.status === 'fulfilled') { - return { value: result.value, poolAddress: poolAddresses[index] }; - } - else { - return { value: null, poolAddress: poolAddresses[index] }; - } - }) - .filter((result) => result.value)); - const getPoolsGlobalSpaceResults = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { - try { - const results = yield poolsGlobalSpace(); - return results; - } - catch (error) { - console.error('Failed fetching pool globalSpace results:', error); - return null; - } - }); - const getPoolsLiquiditiesResults = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { - try { - const results = yield poolsLiquidity(); - return results; - } - catch (error) { - console.error('Failed fetching pool liquidity results:', error); - return null; - } - }); - const [liquidityResults, globalSpaceResults] = yield Promise.all([ - yield getPoolsLiquiditiesResults(), - yield getPoolsGlobalSpaceResults(), - ]); - const combinedResults = poolAddresses.flatMap((poolAddress) => { - const liquidityResult = liquidityResults === null || liquidityResults === void 0 ? void 0 : liquidityResults.find(({ poolAddress: liquidityPoolAddress }) => liquidityPoolAddress === poolAddress); - const globalSpaceResult = globalSpaceResults === null || globalSpaceResults === void 0 ? void 0 : globalSpaceResults.find(({ poolAddress: globalSpacePoolAddress }) => globalSpacePoolAddress === poolAddress); - if (globalSpaceResult && liquidityResult) { - return new pool_1.Pool(tokenA, tokenB, globalSpaceResult.value.fee, globalSpaceResult.value.price, liquidityResult ? liquidityResult.value : null, globalSpaceResult.value.tick); - } - return []; - }); - return combinedResults; -}); -exports.getPools = getPools; -const fetchPoolGlobalState = (poolAddress) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { - return (0, contracts_1.getPoolsContract)(poolAddress).globalState(); -}); -const fetchPoolLiquidity = (poolAddress) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { - return (0, contracts_1.getPoolsContract)(poolAddress).liquidity(); -}); -//# sourceMappingURL=pools.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/pools.js.map b/dist/entities/trades/swapr-v3/pools.js.map deleted file mode 100644 index f72009af..00000000 --- a/dist/entities/trades/swapr-v3/pools.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/pools.ts"],"names":[],"mappings":";;;;AAAA,gDAAmD;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A;IAEF,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA,CAAA;AA3FY,QAAA,QAAQ,YA2FpB;AAED,MAAM,oBAAoB,GAAG,CAAO,WAAmB,EAAE,EAAE;IACzD,OAAO,IAAA,4BAAgB,EAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAA;AACpD,CAAC,CAAA,CAAA;AAED,MAAM,kBAAkB,GAAG,CAAO,WAAmB,EAAE,EAAE;IACvD,OAAO,IAAA,4BAAgB,EAAC,WAAW,CAAC,CAAC,SAAS,EAAE,CAAA;AAClD,CAAC,CAAA,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/routes.d.ts b/dist/entities/trades/swapr-v3/routes.d.ts deleted file mode 100644 index d1c5b051..00000000 --- a/dist/entities/trades/swapr-v3/routes.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Currency } from '@uniswap/sdk-core'; -import { Pool } from './entities/pool'; -import { Route } from './entities/route'; -export declare function computeAllRoutes(pools: Pool[], chainId: number, currentPath?: Pool[], allPaths?: Route[], maxHops?: number): Route[]; -export declare function getRoutes(currencyIn: any, currencyOut: any, chainId: number): Promise[]>; diff --git a/dist/entities/trades/swapr-v3/routes.js b/dist/entities/trades/swapr-v3/routes.js deleted file mode 100644 index 55d3b5c5..00000000 --- a/dist/entities/trades/swapr-v3/routes.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRoutes = exports.computeAllRoutes = void 0; -const tslib_1 = require("tslib"); -const route_1 = require("./entities/route"); -const pools_1 = require("./pools"); -/** - * Returns true if poolA is equivalent to poolB - * @param poolA one of the two pools - * @param poolB the other pool - */ -function poolEquals(poolA, poolB) { - return (poolA === poolB || - (poolA.token0.equals(poolB.token0) && poolA.token1.equals(poolB.token1) && poolA.fee === poolB.fee)); -} -function computeAllRoutes(pools, chainId, currentPath = [], allPaths = [], maxHops = 2) { - for (const pool of pools) { - if (!pool.involvesToken(pool.token0) || currentPath.some((pathPool) => poolEquals(pool, pathPool))) - continue; - const outputToken = pool.token0.equals(pool.token0) ? pool.token1 : pool.token0; - if (outputToken.equals(pool.token1)) { - allPaths.push(new route_1.Route([...currentPath, pool], pool.token0, pool.token1)); - } - else if (maxHops > 1) { - computeAllRoutes(pools, chainId, [...currentPath, pool], allPaths, maxHops - 1); - } - } - return allPaths; -} -exports.computeAllRoutes = computeAllRoutes; -function getRoutes(currencyIn, currencyOut, chainId) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const pools = yield (0, pools_1.getPools)(currencyIn, currencyOut); - return computeAllRoutes(pools, chainId, [], [], 3); - }); -} -exports.getRoutes = getRoutes; -//# sourceMappingURL=routes.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/routes.js.map b/dist/entities/trades/swapr-v3/routes.js.map deleted file mode 100644 index b1e5a1f5..00000000 --- a/dist/entities/trades/swapr-v3/routes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../../src/entities/trades/swapr-v3/routes.ts"],"names":[],"mappings":";;;;AAGA,4CAAwC;AACxC,mCAAkC;AAElC;;;;GAIG;AACH,SAAS,UAAU,CAAC,KAAW,EAAE,KAAW;IAC1C,OAAO,CACL,KAAK,KAAK,KAAK;QACf,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,CACpG,CAAA;AACH,CAAC;AAED,SAAgB,gBAAgB,CAC9B,KAAa,EACb,OAAe,EACf,cAAsB,EAAE,EACxB,WAAwC,EAAE,EAC1C,OAAO,GAAG,CAAC;IAEX,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAAE,SAAQ;QAE5G,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAA;QAC/E,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACnC,QAAQ,CAAC,IAAI,CAAC,IAAI,aAAK,CAAC,CAAC,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;SAC3E;aAAM,IAAI,OAAO,GAAG,CAAC,EAAE;YACtB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,CAAC,CAAC,CAAA;SAChF;KACF;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC;AAnBD,4CAmBC;AAED,SAAsB,SAAS,CAAC,UAAe,EAAE,WAAgB,EAAE,OAAe;;QAChF,MAAM,KAAK,GAAG,MAAM,IAAA,gBAAQ,EAAC,UAAU,EAAE,WAAW,CAAC,CAAA;QACrD,OAAO,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;IACpD,CAAC;CAAA;AAHD,8BAGC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts b/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts deleted file mode 100644 index 9c7215fc..00000000 --- a/dist/entities/trades/swapr-v3/utils/computePoolAddress.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Token } from '@uniswap/sdk-core'; -export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000"; -/** - * The default factory enabled fee amounts, denominated in hundredths of bips. - */ -export declare enum FeeAmount { - LOW = "LOW", - MEDIUM = "MEDIUM", - HIGH = "HIGH" -} -/** - * The default factory tick spacings by fee amount. - */ -export declare const TICK_SPACINGS: { - [amount in FeeAmount]: number; -}; -/** - * This function computes the pool address for a given pair of tokens and a fee tier. - * It uses the Swapr factory address, the addresses of the two tokens, and the pool initialization code hash. - * The tokens are sorted before the computation, and the initialization code hash can be manually overridden. - * @param poolDeployer This is the address of the factory contract that deploys new pools. - * @param tokenA The first token of the pair - * @param tokenB The second token of the pair - * @param initCodeHashManualOverride Optional manual override for the initialization code hash - * @returns The computed pool address. This address can then be used to interact with the pool on the blockchain. eg. https://gnosisscan.io/address/0x6a1507579b50abfc7ccc8f9e2b428095b5063538#tokentxns - */ -export declare function computePoolAddress({ poolDeployer, tokenA, tokenB, initCodeHashManualOverride, }: { - poolDeployer: string; - tokenA: Token; - tokenB: Token; - initCodeHashManualOverride?: string; -}): string; diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js deleted file mode 100644 index 525e17d6..00000000 --- a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.computePoolAddress = exports.TICK_SPACINGS = exports.FeeAmount = exports.ADDRESS_ZERO = void 0; -const abi_1 = require("@ethersproject/abi"); -const address_1 = require("@ethersproject/address"); -const solidity_1 = require("@ethersproject/solidity"); -const constants_1 = require("../constants"); -exports.ADDRESS_ZERO = '0x0000000000000000000000000000000000000000'; -/** - * The default factory enabled fee amounts, denominated in hundredths of bips. - */ -var FeeAmount; -(function (FeeAmount) { - FeeAmount["LOW"] = "LOW"; - FeeAmount["MEDIUM"] = "MEDIUM"; - FeeAmount["HIGH"] = "HIGH"; -})(FeeAmount = exports.FeeAmount || (exports.FeeAmount = {})); -/** - * The default factory tick spacings by fee amount. - */ -exports.TICK_SPACINGS = { - [FeeAmount.LOW]: 60, - [FeeAmount.MEDIUM]: 60, - [FeeAmount.HIGH]: 60, -}; -/** - * This function computes the pool address for a given pair of tokens and a fee tier. - * It uses the Swapr factory address, the addresses of the two tokens, and the pool initialization code hash. - * The tokens are sorted before the computation, and the initialization code hash can be manually overridden. - * @param poolDeployer This is the address of the factory contract that deploys new pools. - * @param tokenA The first token of the pair - * @param tokenB The second token of the pair - * @param initCodeHashManualOverride Optional manual override for the initialization code hash - * @returns The computed pool address. This address can then be used to interact with the pool on the blockchain. eg. https://gnosisscan.io/address/0x6a1507579b50abfc7ccc8f9e2b428095b5063538#tokentxns - */ -function computePoolAddress({ poolDeployer, tokenA, tokenB, initCodeHashManualOverride, }) { - const [token0, token1] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; // does safety checks - return (0, address_1.getCreate2Address)(poolDeployer, (0, solidity_1.keccak256)(['bytes'], [abi_1.defaultAbiCoder.encode(['address', 'address'], [token0.address, token1.address])]), initCodeHashManualOverride !== null && initCodeHashManualOverride !== void 0 ? initCodeHashManualOverride : constants_1.POOL_INIT_CODE_HASH); -} -exports.computePoolAddress = computePoolAddress; -//# sourceMappingURL=computePoolAddress.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map b/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map deleted file mode 100644 index d85bd9e9..00000000 --- a/dist/entities/trades/swapr-v3/utils/computePoolAddress.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"computePoolAddress.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/utils/computePoolAddress.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AACpD,oDAA0D;AAC1D,sDAAmD;AAGnD,4CAAkD;AAErC,QAAA,YAAY,GAAG,4CAA4C,CAAA;AAExE;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,0BAAa,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAED;;GAEG;AACU,QAAA,aAAa,GAAsC;IAC9D,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE;IACnB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE;IACtB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE;CACrB,CAAA;AAED;;;;;;;;;GASG;AAEH,SAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,MAAM,EACN,MAAM,EACN,0BAA0B,GAM3B;IACC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA,CAAC,qBAAqB;IAC/G,OAAO,IAAA,2BAAiB,EACtB,YAAY,EACZ,IAAA,oBAAS,EAAC,CAAC,OAAO,CAAC,EAAE,CAAC,qBAAe,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACxG,0BAA0B,aAA1B,0BAA0B,cAA1B,0BAA0B,GAAI,+BAAmB,CAClD,CAAA;AACH,CAAC;AAjBD,gDAiBC"} \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.d.ts b/dist/entities/trades/swapr-v3/utils/encode-route.d.ts deleted file mode 100644 index 4a818026..00000000 --- a/dist/entities/trades/swapr-v3/utils/encode-route.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Currency } from '@uniswap/sdk-core'; -import { Route } from '../entities/route'; -/** - * Converts a route to a hex encoded path - * @param route the v3 path to convert to an encoded path - * @param exactOutput whether the route should be encoded in reverse, for making exact output swaps - */ -export declare function encodeRouteToPath(route: Route, exactOutput: boolean): string; diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.js b/dist/entities/trades/swapr-v3/utils/encode-route.js deleted file mode 100644 index 43f65d84..00000000 --- a/dist/entities/trades/swapr-v3/utils/encode-route.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeRouteToPath = void 0; -const solidity_1 = require("@ethersproject/solidity"); -/** - * Converts a route to a hex encoded path - * @param route the v3 path to convert to an encoded path - * @param exactOutput whether the route should be encoded in reverse, for making exact output swaps - */ -function encodeRouteToPath(route, exactOutput) { - const firstInputToken = route.input.wrapped; - const { path, types } = route.pools.reduce(({ inputToken, path, types }, pool, index) => { - const outputToken = pool.token0.equals(inputToken) ? pool.token1 : pool.token0; - if (index === 0) { - return { - inputToken: outputToken, - types: ['address', 'address'], - path: [inputToken.address, outputToken.address], - }; - } - else { - return { - inputToken: outputToken, - types: [...types, 'address'], - path: [...path, outputToken.address], - }; - } - }, { inputToken: firstInputToken, path: [], types: [] }); - return exactOutput ? (0, solidity_1.pack)(types.reverse(), path.reverse()) : (0, solidity_1.pack)(types, path); -} -exports.encodeRouteToPath = encodeRouteToPath; -//# sourceMappingURL=encode-route.js.map \ No newline at end of file diff --git a/dist/entities/trades/swapr-v3/utils/encode-route.js.map b/dist/entities/trades/swapr-v3/utils/encode-route.js.map deleted file mode 100644 index cfb9bff8..00000000 --- a/dist/entities/trades/swapr-v3/utils/encode-route.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode-route.js","sourceRoot":"","sources":["../../../../../src/entities/trades/swapr-v3/utils/encode-route.ts"],"names":[],"mappings":";;;AAAA,sDAA8C;AAM9C;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,KAAgC,EAAE,WAAoB;IACtF,MAAM,eAAe,GAAU,KAAK,CAAC,KAAK,CAAC,OAAO,CAAA;IAElD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CACxC,CACE,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAqE,EAC9F,IAAU,EACV,KAAK,EAC8D,EAAE;QACrE,MAAM,WAAW,GAAU,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAA;QACrF,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,OAAO;gBACL,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;gBAC7B,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC;aAChD,CAAA;SACF;aAAM;YACL,OAAO;gBACL,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;gBAC5B,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC;aACrC,CAAA;SACF;IACH,CAAC,EACD,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CACrD,CAAA;IAED,OAAO,WAAW,CAAC,CAAC,CAAC,IAAA,eAAI,EAAC,KAAK,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,eAAI,EAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AAChF,CAAC;AA5BD,8CA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.d.ts b/dist/entities/trades/uniswap-v2/UniswapV2.d.ts deleted file mode 100644 index e9dd4fe9..00000000 --- a/dist/entities/trades/uniswap-v2/UniswapV2.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { TradeType } from '../../../constants'; -import { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Percent } from '../../fractions/percent'; -import { Route } from '../../route'; -import { TradeWithSwapTransaction } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -import { UniswapV2TradeBestTradeExactInParams, UniswapV2TradeBestTradeExactOutParams, UniswapV2TradeComputeTradesExactInParams, UniswapV2TradeComputeTradesExactOutParams } from './types'; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -export declare class UniswapV2Trade extends TradeWithSwapTransaction { - constructor(route: Route, amount: CurrencyAmount, maximumSlippage: Percent, tradeType: TradeType); - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - /** - * Computes the best trade for the given input and output amounts. - * @param {UniswapV2TradeBestTradeExactInParams} params the pairs to consider in finding the best trade - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, maxHops: { maxNumResults, maxHops }, platform, }: UniswapV2TradeBestTradeExactInParams): Promise; - /** - * similar to the `bestTradeExactIn` method, but instead targets a fixed output amount - * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token - * to an output token amount, making at most `maxHops` hops - * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use - */ - static bestTradeExactOut({ currencyIn, currencyAmountOut, maximumSlippage, maxHops: { maxNumResults, maxHops }, platform, }: UniswapV2TradeBestTradeExactOutParams): Promise; - /** - * Given a list of pairs, and a fixed amount in, returns the top `maxNumResults` trades that go from an input token - * amount to an output token, making at most `maxHops` hops. - * Note this does not consider aggregation, as routes are linear. It's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeComputeTradesExactInParams} param0 - * @returns list of trades that go from an input token amount to an output token, making at most `maxHops` hops - */ - static computeTradesExactIn({ currencyAmountIn, currencyOut, maximumSlippage, pairs, maxHops: { maxNumResults, maxHops }, currentPairs, originalAmountIn, bestTrades, }: UniswapV2TradeComputeTradesExactInParams): UniswapV2Trade[]; - /** - * similar to the above method but instead targets a fixed output amount - * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token - * to an output token amount, making at most `maxHops` hops - * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use - * @returns list of trades that go from an input token to an output token amount, making at most `maxHops` hops - */ - static computeTradesExactOut({ currencyAmountOut, currencyIn, maximumSlippage, pairs, maxHops: { maxNumResults, maxHops }, currentPairs, originalAmountOut, bestTrades, }: UniswapV2TradeComputeTradesExactOutParams): UniswapV2Trade[]; - swapTransaction(options: TradeOptions): Promise; - get route(): Route; - static tradeComparator(a: UniswapV2Trade, b: UniswapV2Trade): number; -} diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.js b/dist/entities/trades/uniswap-v2/UniswapV2.js deleted file mode 100644 index 21d698d4..00000000 --- a/dist/entities/trades/uniswap-v2/UniswapV2.js +++ /dev/null @@ -1,386 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UniswapV2Trade = void 0; -const tslib_1 = require("tslib"); -const bignumber_1 = require("@ethersproject/bignumber"); -const contracts_1 = require("@ethersproject/contracts"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const router_json_1 = tslib_1.__importDefault(require("../../../abis/source/router.json")); -const constants_1 = require("../../../constants"); -const utils_1 = require("../../../utils"); -const currency_1 = require("../../currency"); -const currencyAmount_1 = require("../../fractions/currencyAmount"); -const fraction_1 = require("../../fractions/fraction"); -const price_1 = require("../../fractions/price"); -const tokenAmount_1 = require("../../fractions/tokenAmount"); -const route_1 = require("../../route"); -const token_1 = require("../../token"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utils_2 = require("../utils"); -const pairs_1 = require("./pairs"); -const utilts_1 = require("./utilts"); -const DFYN_GAS_LIMIT = 166004; -/** - * Represents a trade executed against a list of pairs. - * Does not account for slippage, i.e. trades that front run this trade and move the price. - */ -class UniswapV2Trade extends trade_1.TradeWithSwapTransaction { - constructor(route, amount, maximumSlippage, tradeType) { - (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); - const amounts = new Array(route.path.length); - const nextPairs = new Array(route.pairs.length); - if (tradeType === constants_1.TradeType.EXACT_INPUT) { - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(amount.currency, route.input), 'INPUT'); - amounts[0] = (0, utils_2.wrappedAmount)(amount, route.chainId); - for (let i = 0; i < route.path.length - 1; i++) { - const pair = route.pairs[i]; - const [outputAmount, nextPair] = pair.getOutputAmount(amounts[i]); - amounts[i + 1] = outputAmount; - nextPairs[i] = nextPair; - } - } - else { - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(amount.currency, route.output), 'OUTPUT'); - amounts[amounts.length - 1] = (0, utils_2.wrappedAmount)(amount, route.chainId); - for (let i = route.path.length - 1; i > 0; i--) { - const pair = route.pairs[i - 1]; - const [inputAmount, nextPair] = pair.getInputAmount(amounts[i]); - amounts[i - 1] = inputAmount; - nextPairs[i - 1] = nextPair; - } - } - const chainId = route.chainId; - const inputAmount = tradeType === constants_1.TradeType.EXACT_INPUT - ? amount - : currency_1.Currency.isNative(route.input) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(amounts[0].raw, chainId) - : amounts[0]; - const outputAmount = tradeType === constants_1.TradeType.EXACT_OUTPUT - ? amount - : currency_1.Currency.isNative(route.output) - ? currencyAmount_1.CurrencyAmount.nativeCurrency(amounts[amounts.length - 1].raw, chainId) - : amounts[amounts.length - 1]; - super({ - details: route, - type: tradeType, - inputAmount, - outputAmount, - executionPrice: new price_1.Price({ - baseCurrency: inputAmount.currency, - quoteCurrency: outputAmount.currency, - denominator: inputAmount.raw, - numerator: outputAmount.raw, - }), - maximumSlippage, - priceImpact: (0, utilts_1.computePriceImpact)(route.midPrice, inputAmount, outputAmount), - chainId: route.chainId, - platform: route.pairs[0].platform, - approveAddress: route.pairs[0].platform.routerAddress[chainId], - }); - } - minimumAmountOut() { - if (this.tradeType === constants_1.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fraction_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_1.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fraction_1.Fraction(constants_1.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof tokenAmount_1.TokenAmount - ? new tokenAmount_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : currencyAmount_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - /** - * Computes the best trade for the given input and output amounts. - * @param {UniswapV2TradeBestTradeExactInParams} params the pairs to consider in finding the best trade - */ - static bestTradeExactIn({ currencyAmountIn, currencyOut, maximumSlippage, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, platform, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - let bestTrade; - try { - // Fetch the commons pairs between A and B - const commonPairsBetweenCurrenyInAndOut = yield (0, pairs_1.getAllCommonUniswapV2Pairs)({ - currencyA: currencyAmountIn.currency, - currencyB: currencyOut, - platform, - }); - // Compare and sort all routes from A to B - const tradeRoutes = UniswapV2Trade.computeTradesExactIn({ - currencyAmountIn, - currencyOut, - maximumSlippage, - pairs: commonPairsBetweenCurrenyInAndOut, - maxHops: { maxNumResults, maxHops }, - }); - bestTrade = tradeRoutes.at(0); - } - catch (error) { - // tslint:disable-next-line:no-console - } - return bestTrade; - }); - } - /** - * similar to the `bestTradeExactIn` method, but instead targets a fixed output amount - * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token - * to an output token amount, making at most `maxHops` hops - * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use - */ - static bestTradeExactOut({ currencyIn, currencyAmountOut, maximumSlippage, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, platform, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - let bestTrade; - try { - // Fetch the commons pairs between A and B - const commonPairsBetweenCurrenyInAndOut = yield (0, pairs_1.getAllCommonUniswapV2Pairs)({ - currencyA: currencyIn, - currencyB: currencyAmountOut.currency, - platform, - }); - // Compare and sort all routes from A to B - const tradeRoutes = UniswapV2Trade.computeTradesExactOut({ - currencyAmountOut, - currencyIn, - maximumSlippage, - pairs: commonPairsBetweenCurrenyInAndOut, - maxHops: { maxNumResults, maxHops }, - }); - // Return the best route - bestTrade = tradeRoutes.at(0); - } - catch (error) { - // tslint:disable-next-line:no-console - } - return bestTrade; - }); - } - /** - * Given a list of pairs, and a fixed amount in, returns the top `maxNumResults` trades that go from an input token - * amount to an output token, making at most `maxHops` hops. - * Note this does not consider aggregation, as routes are linear. It's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeComputeTradesExactInParams} param0 - * @returns list of trades that go from an input token amount to an output token, making at most `maxHops` hops - */ - static computeTradesExactIn({ currencyAmountIn, currencyOut, maximumSlippage, pairs, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, - // used in recursion. - currentPairs = [], originalAmountIn = currencyAmountIn, bestTrades = [], }) { - var _a; - (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); - (0, tiny_invariant_1.default)(pairs && pairs.length > 0, 'PAIRS'); - (0, tiny_invariant_1.default)(maxHops > 0, 'MAX_HOPS'); - (0, tiny_invariant_1.default)(originalAmountIn === currencyAmountIn || currentPairs.length > 0, 'INVALID_RECURSION'); - // Validate chain ID - const chainId = (_a = currencyAmountIn.currency.chainId) !== null && _a !== void 0 ? _a : currencyOut.chainId; - (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); - const amountIn = (0, utils_2.wrappedAmount)(currencyAmountIn, chainId); - const tokenOut = (0, utils_2.wrappedCurrency)(currencyOut, chainId); - // Find connecting pairs from token in to token out - for (let i = 0; i < pairs.length; i++) { - const pair = pairs[i]; - // pair irrelevant - if (!pair.token0.equals(amountIn.token) && !pair.token1.equals(amountIn.token)) - continue; - if (pair.reserve0.equalTo(constants_1.ZERO) || pair.reserve1.equalTo(constants_1.ZERO)) - continue; - let amountOut; - try { - amountOut = pair.getOutputAmount(amountIn)[0]; - } - catch (error) { - // input too low - if (error.isInsufficientInputAmountError) { - continue; - } - throw error; - } - // we have arrived at the output token, so this is the final trade of one of the paths - if (amountOut.token.equals(tokenOut)) { - (0, utils_1.sortedInsert)(bestTrades, new UniswapV2Trade(new route_1.Route([...currentPairs, pair], originalAmountIn.currency, currencyOut), originalAmountIn, maximumSlippage, constants_1.TradeType.EXACT_INPUT), maxNumResults, UniswapV2Trade.tradeComparator); - } - else if (maxHops > 1 && pairs.length > 1) { - const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)); - // otherwise, consider all the other paths that lead from this token as long as we have not exceeded maxHops - UniswapV2Trade.computeTradesExactIn({ - currencyAmountIn: amountOut, - currencyOut, - maximumSlippage, - pairs: pairsExcludingThisPair, - maxHops: { - maxNumResults, - maxHops: maxHops - 1, - }, - currentPairs: [...currentPairs, pair], - originalAmountIn, - bestTrades, - }); - } - } - return bestTrades; - } - /** - * similar to the above method but instead targets a fixed output amount - * given a list of pairs, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token - * to an output token amount, making at most `maxHops` hops - * note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting - * the amount in among multiple routes. - * @param {UniswapV2TradeBestTradeExactOutParams} params the parameters to use - * @returns list of trades that go from an input token to an output token amount, making at most `maxHops` hops - */ - static computeTradesExactOut({ currencyAmountOut, currencyIn, maximumSlippage, pairs, maxHops: { maxNumResults = 3, maxHops = 3 } = {}, - // used in recursion. - currentPairs = [], originalAmountOut = currencyAmountOut, bestTrades = [], }) { - var _a; - // Validate params - (0, tiny_invariant_1.default)(maximumSlippage.greaterThan('0'), 'MAXIMUM_SLIPPAGE'); - (0, tiny_invariant_1.default)(pairs && pairs.length > 0, 'PAIRS'); - (0, tiny_invariant_1.default)(maxHops > 0, 'MAX_HOPS'); - (0, tiny_invariant_1.default)(originalAmountOut === currencyAmountOut || currentPairs.length > 0, 'INVALID_RECURSION'); - // Validate chain ID - const chainId = (_a = currencyAmountOut.currency.chainId) !== null && _a !== void 0 ? _a : currencyIn.chainId; - (0, tiny_invariant_1.default)(chainId !== undefined, 'CHAIN_ID'); - const amountOut = (0, utils_2.wrappedAmount)(currencyAmountOut, chainId); - const tokenIn = (0, utils_2.wrappedCurrency)(currencyIn, chainId); - // Find connecting pairs from token in to token out - for (let i = 0; i < pairs.length; i++) { - const pair = pairs[i]; - // pair irrelevant - if (!pair.token0.equals(amountOut.token) && !pair.token1.equals(amountOut.token)) - continue; - if (pair.reserve0.equalTo(constants_1.ZERO) || pair.reserve1.equalTo(constants_1.ZERO)) - continue; - let amountIn; - try { - amountIn = pair.getInputAmount(amountOut)[0]; - } - catch (error) { - // not enough liquidity in this pair - if (error.isInsufficientReservesError) { - continue; - } - throw error; - } - // we have arrived at the input token, so this is the first trade of one of the paths - if (amountIn.token.equals(tokenIn)) { - (0, utils_1.sortedInsert)(bestTrades, new UniswapV2Trade(new route_1.Route([pair, ...currentPairs], currencyIn, originalAmountOut.currency), originalAmountOut, maximumSlippage, constants_1.TradeType.EXACT_OUTPUT), maxNumResults, UniswapV2Trade.tradeComparator); - } - else if (maxHops > 1 && pairs.length > 1) { - const pairsExcludingThisPair = pairs.slice(0, i).concat(pairs.slice(i + 1, pairs.length)); - // otherwise, consider all the other paths that arrive at this token as long as we have not exceeded maxHops - UniswapV2Trade.computeTradesExactOut({ - currencyIn, - currencyAmountOut: amountIn, - maximumSlippage, - pairs: pairsExcludingThisPair, - maxHops: { - maxNumResults, - maxHops: maxHops - 1, - }, - currentPairs: [pair, ...currentPairs], - originalAmountOut, - bestTrades, - }); - } - } - return bestTrades; - } - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const nativeCurrency = currency_1.Currency.getNative(this.chainId); - const etherIn = this.inputAmount.currency === nativeCurrency; - const etherOut = this.outputAmount.currency === nativeCurrency; - // the router does not support both ether in and out - (0, tiny_invariant_1.default)(!(etherIn && etherOut), 'ETHER_IN_OUT'); - (0, tiny_invariant_1.default)(options.ttl && options.ttl > 0, 'TTL'); - const routerAddress = this.platform.routerAddress[this.chainId]; - (0, tiny_invariant_1.default)(!!routerAddress, 'ROUTER_ADDRESS_IN_CHAIN'); - const to = (0, utils_1.validateAndParseAddress)(options.recipient); - const amountIn = (0, utilts_1.toHex)(this.maximumAmountIn()); - const amountOut = (0, utilts_1.toHex)(this.minimumAmountOut()); - const path = this.route.path.map((token) => token.address); - const deadline = `0x${(Math.floor(new Date().getTime() / 1000) + options.ttl).toString(16)}`; - const override = { value: utilts_1.ZERO_HEX, gasLimit: undefined }; - if (routerAddress === routable_platform_1.UniswapV2RoutablePlatform.DFYN.routerAddress[this.chainId]) - override.gasLimit = bignumber_1.BigNumber.from(DFYN_GAS_LIMIT); - let methodName; - let args; - switch (this.tradeType) { - case constants_1.TradeType.EXACT_INPUT: - if (etherIn) { - methodName = 'swapExactETHForTokens'; - // (uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountOut, path, to, deadline]; - override.value = amountIn; - } - else if (etherOut) { - methodName = 'swapExactTokensForETH'; - // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountIn, amountOut, path, to, deadline]; - } - else { - methodName = 'swapExactTokensForTokens'; - // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountIn, amountOut, path, to, deadline]; - } - break; - case constants_1.TradeType.EXACT_OUTPUT: - if (etherIn) { - methodName = 'swapETHForExactTokens'; - // (uint amountOut, address[] calldata path, address to, uint deadline) - args = [amountOut, path, to, deadline]; - override.value = amountIn; - } - else if (etherOut) { - methodName = 'swapTokensForExactETH'; - // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) - args = [amountOut, amountIn, path, to, deadline]; - } - else { - methodName = 'swapTokensForExactTokens'; - // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) - args = [amountOut, amountIn, path, to, deadline]; - } - break; - } - return new contracts_1.Contract(routerAddress, router_json_1.default).populateTransaction[methodName](...args, Object.assign({}, override)); - }); - } - get route() { - return this.details; - } - // extension of the input output comparator that also considers other dimensions of the trade in ranking them - static tradeComparator(a, b) { - const ioComp = (0, utilts_1.inputOutputComparator)(a, b); - if (ioComp !== 0) { - return ioComp; - } - // consider lowest slippage next, since these are less likely to fail - if (a.priceImpact.lessThan(b.priceImpact)) { - return -1; - } - else if (a.priceImpact.greaterThan(b.priceImpact)) { - return 1; - } - // finally consider the number of hops since each hop costs gas - return a.route.path.length - b.route.path.length; - } -} -exports.UniswapV2Trade = UniswapV2Trade; -//# sourceMappingURL=UniswapV2.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/UniswapV2.js.map b/dist/entities/trades/uniswap-v2/UniswapV2.js.map deleted file mode 100644 index 1c6fa831..00000000 --- a/dist/entities/trades/uniswap-v2/UniswapV2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UniswapV2.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/UniswapV2.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AACpD,wDAAmD;AACnD,4EAAsC;AAEtC,2FAAyD;AACzD,kDAAyD;AACzD,0CAAsE;AACtE,6CAAyC;AACzC,mEAA+D;AAC/D,uDAAmD;AAE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d.ts deleted file mode 100644 index 1ead99cf..00000000 --- a/dist/entities/trades/uniswap-v2/cache/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ChainId } from '../../../../constants'; -export type GeneralCacheList = Record>; -/** - * Creates a cache list for a given type. - */ -export declare function createCacheList(): GeneralCacheList; diff --git a/dist/entities/trades/uniswap-v2/cache/index.js b/dist/entities/trades/uniswap-v2/cache/index.js deleted file mode 100644 index ed15f1a0..00000000 --- a/dist/entities/trades/uniswap-v2/cache/index.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createCacheList = void 0; -const constants_1 = require("../../../../constants"); -/** - * Creates a cache list for a given type. - */ -function createCacheList() { - return { - [constants_1.ChainId.MAINNET]: new Map(), - [constants_1.ChainId.ARBITRUM_ONE]: new Map(), - [constants_1.ChainId.XDAI]: new Map(), - [constants_1.ChainId.RINKEBY]: new Map(), - [constants_1.ChainId.ARBITRUM_RINKEBY]: new Map(), - [constants_1.ChainId.ARBITRUM_GOERLI]: new Map(), - [constants_1.ChainId.POLYGON]: new Map(), - [constants_1.ChainId.GOERLI]: new Map(), - [constants_1.ChainId.OPTIMISM_MAINNET]: new Map(), - [constants_1.ChainId.OPTIMISM_GOERLI]: new Map(), - [constants_1.ChainId.BSC_MAINNET]: new Map(), - [constants_1.ChainId.BSC_TESTNET]: new Map(), - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new Map(), - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new Map(), - }; -} -exports.createCacheList = createCacheList; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/cache/index.js.map b/dist/entities/trades/uniswap-v2/cache/index.js.map deleted file mode 100644 index 63767021..00000000 --- a/dist/entities/trades/uniswap-v2/cache/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/cache/index.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAI/C;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO;QACL,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,GAAG,EAAE;QACjC,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE;QACzB,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,EAAE;QACrC,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,EAAE;QACpC,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,EAAE;QAC5B,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,EAAE;QAC3B,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,EAAE;QACrC,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,EAAE;QACpC,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,EAAE;QAChC,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,EAAE;QAChC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,IAAI,GAAG,EAAE;QACxC,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,IAAI,GAAG,EAAE;KACzC,CAAA;AACH,CAAC;AAjBD,0CAiBC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/constants.d.ts b/dist/entities/trades/uniswap-v2/constants.d.ts deleted file mode 100644 index bb01038e..00000000 --- a/dist/entities/trades/uniswap-v2/constants.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ChainId } from '../../../constants'; -import { Token } from '../../token'; -/** - * @TODO check why we have 2 different token lists here and - * src/entities/token.ts - */ -type ChainTokenList = { - readonly [chainId in ChainId]: Token[]; -}; -export declare const DAI: Record; -export declare const USDC: Record; -export declare const USDT: Record; -export declare const WBTC: Record; -export declare const HONEY: Token; -export declare const STAKE: Token; -export declare const BAO: Token; -export declare const AGAVE: Token; -export declare const GNO: Token; -export declare const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList; -export {}; diff --git a/dist/entities/trades/uniswap-v2/constants.js b/dist/entities/trades/uniswap-v2/constants.js deleted file mode 100644 index 0385949e..00000000 --- a/dist/entities/trades/uniswap-v2/constants.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BASES_TO_CHECK_TRADES_AGAINST = exports.GNO = exports.AGAVE = exports.BAO = exports.STAKE = exports.HONEY = exports.WBTC = exports.USDT = exports.USDC = exports.DAI = void 0; -const constants_1 = require("../../../constants"); -const token_1 = require("../../token"); -exports.DAI = { - [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0x6B175474E89094C44Da98b954EedeAC495271d0F', 18, 'DAI', 'Dai Stablecoin'), - [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063', 18, 'DAI', 'Dai Stablecoin'), - [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', 'Dai Stablecoin'), - [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', 18, 'DAI', 'Dai Stablecoin'), - [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', 18, 'DAI', 'Binance-Peg Dai Stablecoin'), - [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0xEC5dCb5Dbf4B114C9d0F65BcCAb49EC54F6A0867', 18, 'DAI', 'Dai Token'), -}; -exports.USDC = { - [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', 6, 'USDC', 'USD//C'), - [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', 6, 'USDC.e', 'Bridged USDC'), - [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', 6, 'USDC', 'USD//C from Ethereum'), - [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', 6, 'USDC', 'USD//C from Ethereum'), - [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', 6, 'USDC', 'USD Coin'), - [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', 18, 'USDC', 'Binance-Peg USD Coin'), - [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0x64544969ed7EBf5f083679233325356EbE738930', 6, 'USDC', 'USDC Token'), - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: new token_1.Token(constants_1.ChainId.ZK_SYNC_ERA_MAINNET, '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4', 6, 'USDC', 'USD Coin on zkSync Era'), - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: new token_1.Token(constants_1.ChainId.ZK_SYNC_ERA_TESTNET, '0x0faF6df7054946141266420b43783387A78d82A9', 6, 'USDC', 'USD Coin on zkSync Era Tesnet'), -}; -exports.USDT = { - [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0xdAC17F958D2ee523a2206206994597C13D831ec7', 6, 'USDT', 'Tether USD'), - [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0x4ECaBa5870353805a9F068101A40E0f32ed605C6', 6, 'USDT', 'Tether USD from Ethereum'), - [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', 6, 'USDT', 'Tether USD'), - [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', 6, 'USDT', 'Tether USD'), - [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58', 6, 'USDT', 'Tether USD'), - [constants_1.ChainId.BSC_MAINNET]: new token_1.Token(constants_1.ChainId.BSC_MAINNET, '0x55d398326f99059fF775485246999027B3197955', 18, 'USDT', 'Binance-Peg BSC-USD'), - [constants_1.ChainId.BSC_TESTNET]: new token_1.Token(constants_1.ChainId.BSC_TESTNET, '0x337610d27c682E347C9cD60BD4b3b107C9d34dDd', 6, 'USDT', 'USDT Token'), -}; -exports.WBTC = { - [constants_1.ChainId.MAINNET]: new token_1.Token(constants_1.ChainId.MAINNET, '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', 8, 'WBTC', 'Wrapped BTC'), - [constants_1.ChainId.ARBITRUM_ONE]: new token_1.Token(constants_1.ChainId.ARBITRUM_ONE, '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', 8, 'WBTC', 'Wrapped BTC'), - [constants_1.ChainId.XDAI]: new token_1.Token(constants_1.ChainId.XDAI, '0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252', 8, 'WBTC', 'Wrapped BTC from Ethereum'), - [constants_1.ChainId.POLYGON]: new token_1.Token(constants_1.ChainId.POLYGON, '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', 8, 'WBTC', 'Wrapped BTC from Ethereum'), - [constants_1.ChainId.OPTIMISM_MAINNET]: new token_1.Token(constants_1.ChainId.OPTIMISM_MAINNET, '0x68f180fcCe6836688e9084f035309E29Bf0A2095', 8, 'WBTC', 'Wrapped BTC'), -}; -exports.HONEY = new token_1.Token(constants_1.ChainId.XDAI, '0x71850b7E9Ee3f13Ab46d67167341E4bDc905Eef9', 18, 'HNY', 'Honey'); -exports.STAKE = new token_1.Token(constants_1.ChainId.XDAI, '0xb7D311E2Eb55F2f68a9440da38e7989210b9A05e', 18, 'STAKE', 'Stake Token on xDai'); -exports.BAO = new token_1.Token(constants_1.ChainId.XDAI, '0x82dFe19164729949fD66Da1a37BC70dD6c4746ce', 18, 'BAO', 'BaoToken from Ethereum'); -exports.AGAVE = new token_1.Token(constants_1.ChainId.XDAI, '0x3a97704a1b25F08aa230ae53B352e2e72ef52843', 18, 'AGVE', 'Agave token'); -exports.GNO = new token_1.Token(constants_1.ChainId.XDAI, '0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb', 18, 'GNO', 'Gnosis Token'); -// used to construct intermediary pairs for trading -exports.BASES_TO_CHECK_TRADES_AGAINST = { - [constants_1.ChainId.MAINNET]: [ - token_1.WETH[constants_1.ChainId.MAINNET], - token_1.DXD[constants_1.ChainId.MAINNET], - exports.DAI[constants_1.ChainId.MAINNET], - exports.USDC[constants_1.ChainId.MAINNET], - exports.WBTC[constants_1.ChainId.MAINNET], - exports.USDT[constants_1.ChainId.MAINNET], - ], - [constants_1.ChainId.RINKEBY]: [token_1.WETH[constants_1.ChainId.RINKEBY]], - [constants_1.ChainId.ARBITRUM_ONE]: [ - token_1.WETH[constants_1.ChainId.ARBITRUM_ONE], - token_1.DXD[constants_1.ChainId.ARBITRUM_ONE], - exports.USDC[constants_1.ChainId.ARBITRUM_ONE], - exports.WBTC[constants_1.ChainId.ARBITRUM_ONE], - exports.USDT[constants_1.ChainId.ARBITRUM_ONE], - ], - [constants_1.ChainId.ARBITRUM_RINKEBY]: [token_1.WETH[constants_1.ChainId.ARBITRUM_RINKEBY], token_1.DXD[constants_1.ChainId.ARBITRUM_RINKEBY]], - [constants_1.ChainId.ARBITRUM_GOERLI]: [token_1.WETH[constants_1.ChainId.ARBITRUM_GOERLI]], - [constants_1.ChainId.XDAI]: [ - token_1.WXDAI[constants_1.ChainId.XDAI], - token_1.WETH[constants_1.ChainId.XDAI], - token_1.DXD[constants_1.ChainId.XDAI], - exports.USDC[constants_1.ChainId.XDAI], - exports.USDT[constants_1.ChainId.XDAI], - exports.WBTC[constants_1.ChainId.XDAI], - exports.HONEY, - exports.STAKE, - exports.AGAVE, - exports.BAO, - exports.GNO, - ], - [constants_1.ChainId.POLYGON]: [token_1.WMATIC[constants_1.ChainId.POLYGON], exports.WBTC[constants_1.ChainId.POLYGON], exports.USDC[constants_1.ChainId.POLYGON], exports.USDT[constants_1.ChainId.POLYGON]], - [constants_1.ChainId.GOERLI]: [token_1.WETH[constants_1.ChainId.GOERLI]], - [constants_1.ChainId.OPTIMISM_MAINNET]: [ - token_1.WETH[constants_1.ChainId.OPTIMISM_MAINNET], - exports.USDC[constants_1.ChainId.OPTIMISM_MAINNET], - exports.USDT[constants_1.ChainId.OPTIMISM_MAINNET], - exports.WBTC[constants_1.ChainId.OPTIMISM_MAINNET], - exports.DAI[constants_1.ChainId.OPTIMISM_MAINNET], - ], - [constants_1.ChainId.OPTIMISM_GOERLI]: [token_1.WETH[constants_1.ChainId.OPTIMISM_GOERLI]], - [constants_1.ChainId.BSC_MAINNET]: [ - token_1.WBNB[constants_1.ChainId.BSC_MAINNET], - exports.DAI[constants_1.ChainId.BSC_MAINNET], - exports.USDT[constants_1.ChainId.BSC_MAINNET], - exports.USDC[constants_1.ChainId.BSC_MAINNET], - ], - [constants_1.ChainId.BSC_TESTNET]: [exports.DAI[constants_1.ChainId.BSC_TESTNET], exports.USDT[constants_1.ChainId.BSC_TESTNET], exports.USDC[constants_1.ChainId.BSC_TESTNET]], - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: [exports.USDC[constants_1.ChainId.ZK_SYNC_ERA_MAINNET], token_1.WETH[constants_1.ChainId.ZK_SYNC_ERA_MAINNET]], - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: [exports.USDC[constants_1.ChainId.ZK_SYNC_ERA_TESTNET], token_1.WETH[constants_1.ChainId.ZK_SYNC_ERA_TESTNET]], -}; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/constants.js.map b/dist/entities/trades/uniswap-v2/constants.js.map deleted file mode 100644 index 4620a0dd..00000000 --- a/dist/entities/trades/uniswap-v2/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/constants.ts"],"names":[],"mappings":";;;AAAA,kDAA4C;AAC5C,uCAAmE;AAWtD,QAAA,GAAG,GAA0B;IACxC,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,aAAK,CAC1B,mBAAO,CAAC,OAAO,EACf,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,aAAK,CAC1B,mBAAO,CAAC,OAAO,EACf,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,aAAK,CAC/B,mBAAO,CAAC,YAAY,EACpB,4CAA4C,EAC5C,EAAE,EACF,KAAK,EACL,gBAAgB,CACjB;IACD,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,aAAK,CACnC,mBAAO,CAAC,gBAAgB,EACxB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YAAI,CAAC,mBAAO,CAAC,WAAW,CAAC;KAC1B;IACD,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,CAAC,WAAG,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,WAAW,CAAC,CAAC;IACvG,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,CAAC;IACrG,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,YAAI,CAAC,mBAAO,CAAC,mBAAmB,CAAC,CAAC;CACtG,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/index.d.ts b/dist/entities/trades/uniswap-v2/index.d.ts deleted file mode 100644 index 159c3e4c..00000000 --- a/dist/entities/trades/uniswap-v2/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './constants'; -export * from './pairs'; -export * from './types'; -export * from './UniswapV2'; diff --git a/dist/entities/trades/uniswap-v2/index.js b/dist/entities/trades/uniswap-v2/index.js deleted file mode 100644 index edc01717..00000000 --- a/dist/entities/trades/uniswap-v2/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./constants"), exports); -tslib_1.__exportStar(require("./pairs"), exports); -tslib_1.__exportStar(require("./types"), exports); -tslib_1.__exportStar(require("./UniswapV2"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/index.js.map b/dist/entities/trades/uniswap-v2/index.js.map deleted file mode 100644 index 7cec0498..00000000 --- a/dist/entities/trades/uniswap-v2/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B;AAC3B,kDAAuB;AACvB,kDAAuB;AACvB,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.d.ts b/dist/entities/trades/uniswap-v2/pairs/fees.d.ts deleted file mode 100644 index 53c009b0..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/fees.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { GetUniswapV2PairSwapFeeParams } from './types'; -/** - * Given a list of UniswapV2 pair address, it fetches pair fee from the contract via multicall contract - * @returns the list of pair fee in basis points - */ -export declare function getUniswapV2PairSwapFee({ pairAddressList, chainId, provider, }: GetUniswapV2PairSwapFeeParams): Promise>; diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.js b/dist/entities/trades/uniswap-v2/pairs/fees.js deleted file mode 100644 index 3ace32c8..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/fees.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUniswapV2PairSwapFee = void 0; -const tslib_1 = require("tslib"); -const abi_1 = require("@ethersproject/abi"); -const contracts_1 = require("@ethersproject/contracts"); -const IDXswapPair_json_1 = require("@swapr/core/build/IDXswapPair.json"); -const multicall2_json_1 = tslib_1.__importDefault(require("../../../../abis/source/multicall2.json")); -const constants_1 = require("../../../../constants"); -const utils_1 = require("../../utils"); -/** - * Given a list of UniswapV2 pair address, it fetches pair fee from the contract via multicall contract - * @returns the list of pair fee in basis points - */ -function getUniswapV2PairSwapFee({ pairAddressList, chainId, provider, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - provider = provider || (0, utils_1.getProvider)(chainId); - // Fetch the pair reserves via multicall - const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], multicall2_json_1.default, provider); - const uniswapPairInterface = new abi_1.Interface(IDXswapPair_json_1.abi); - const callData = uniswapPairInterface.encodeFunctionData('swapFee', []); - const swapFeeCallResults = (yield multicallContract.callStatic.tryAggregate(false, pairAddressList.map((target) => ({ target, callData })))); - // Map the call results to the pair addresses - return pairAddressList.reduce((acc, pairAddress, index) => { - const { returnData, success } = swapFeeCallResults[index]; - // Push only the successful call results - if (success) { - const [swapFee] = uniswapPairInterface.decodeFunctionResult('swapFee', returnData); - acc[pairAddress.toLowerCase()] = swapFee; - } - return acc; - }, {}); - }); -} -exports.getUniswapV2PairSwapFee = getUniswapV2PairSwapFee; -//# sourceMappingURL=fees.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/fees.js.map b/dist/entities/trades/uniswap-v2/pairs/fees.js.map deleted file mode 100644 index a1aab6d6..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/fees.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fees.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/fees.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,wDAAmD;AACnD,yEAA6E;AAE7E,sGAAoE;AACpE,qDAA0D;AAC1D,uCAAyC;AAIzC;;;GAGG;AACH,SAAsB,uBAAuB,CAAC,EAC5C,eAAe,EACf,OAAO,EACP,QAAQ,GACsB;;QAC9B,QAAQ,GAAG,QAAQ,IAAI,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAA;QAE3C,wCAAwC;QACxC,MAAM,iBAAiB,GAAG,IAAI,oBAAQ,CAAC,8BAAkB,CAAC,OAAO,CAAC,EAAE,yBAAc,EAAE,QAAQ,CAAC,CAAA;QAE7F,MAAM,oBAAoB,GAAG,IAAI,eAAS,CAAC,sBAAiB,CAAC,CAAA;QAE7D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAA;QAEvE,MAAM,kBAAkB,GAAG,CAAC,MAAM,iBAAiB,CAAC,UAAU,CAAC,YAAY,CACzE,KAAK,EACL,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CACxD,CAAmC,CAAA;QAEpC,6CAA6C;QAC7C,OAAO,eAAe,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;YAChF,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAA;YAEzD,wCAAwC;YACxC,IAAI,OAAO,EAAE;gBACX,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;gBAClF,GAAG,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAA;aACzC;YAED,OAAO,GAAG,CAAA;QACZ,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,CAAC;CAAA;AA/BD,0DA+BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/index.d.ts b/dist/entities/trades/uniswap-v2/pairs/index.d.ts deleted file mode 100644 index 73c31d82..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './fees'; -export * from './pairs'; -export * from './types'; diff --git a/dist/entities/trades/uniswap-v2/pairs/index.js b/dist/entities/trades/uniswap-v2/pairs/index.js deleted file mode 100644 index 019d529b..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fees"), exports); -tslib_1.__exportStar(require("./pairs"), exports); -tslib_1.__exportStar(require("./types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/index.js.map b/dist/entities/trades/uniswap-v2/pairs/index.js.map deleted file mode 100644 index 520531ef..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/index.ts"],"names":[],"mappings":";;;AAAA,iDAAsB;AACtB,kDAAuB;AACvB,kDAAuB"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts b/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts deleted file mode 100644 index d8fb9055..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/pairs.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Pair } from '../../../pair'; -import { GetAllCommonUniswapV2Pairs, GetAllCommonUniswapV2PairsFromSubgraphParams } from './types'; -/** - * Fetches all pairs through which the given tokens can be traded. Use `getAllCommonPairsFromSubgraph` for better results. - * @returns the pair list - */ -export declare function getAllCommonUniswapV2Pairs({ currencyA, currencyB, platform, provider, }: GetAllCommonUniswapV2Pairs): Promise; -/** - * - */ -export declare function getAllCommonUniswapV2PairsFromSubgraph({ currencyA, currencyB, platform, }: GetAllCommonUniswapV2PairsFromSubgraphParams): Promise; diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.js b/dist/entities/trades/uniswap-v2/pairs/pairs.js deleted file mode 100644 index 0cdda4bb..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/pairs.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAllCommonUniswapV2PairsFromSubgraph = exports.getAllCommonUniswapV2Pairs = void 0; -const tslib_1 = require("tslib"); -const abi_1 = require("@ethersproject/abi"); -const contracts_1 = require("@ethersproject/contracts"); -const units_1 = require("@ethersproject/units"); -const IDXswapPair_json_1 = require("@swapr/core/build/IDXswapPair.json"); -const debug_1 = tslib_1.__importDefault(require("debug")); -const graphql_request_1 = require("graphql-request"); -const lodash_flatmap_1 = tslib_1.__importDefault(require("lodash.flatmap")); -const multicall2_json_1 = tslib_1.__importDefault(require("../../../../abis/source/multicall2.json")); -const constants_1 = require("../../../../constants"); -const graphql_1 = require("../../../../generated/graphql"); -const fractions_1 = require("../../../fractions"); -const pair_1 = require("../../../pair"); -const token_1 = require("../../../token"); -const utils_1 = require("../../utils"); -const constants_2 = require("../constants"); -const fees_1 = require("./fees"); -const getAllCommonUniswapV2PairsDebug = (0, debug_1.default)('ecoRouter:uniswap:getAllCommonUniswapV2Pairs'); -/** - * Fetches all pairs through which the given tokens can be traded. Use `getAllCommonPairsFromSubgraph` for better results. - * @returns the pair list - */ -function getAllCommonUniswapV2Pairs({ currencyA, currencyB, platform, provider, }) { - var _a, _b; - return tslib_1.__awaiter(this, void 0, void 0, function* () { - // Return value - const pairList = []; - // Extract the chain Id from the currencies - const chainId = (_a = currencyA.chainId) !== null && _a !== void 0 ? _a : currencyB.chainId; - // Get a provider if one isn't provided - provider = provider || (0, utils_1.getProvider)(chainId); - // Create list of all possible pairs for the given currencies - const bases = (_b = constants_2.BASES_TO_CHECK_TRADES_AGAINST[chainId]) !== null && _b !== void 0 ? _b : []; - const [tokenA, tokenB] = [(0, utils_1.wrappedCurrency)(currencyA, chainId), (0, utils_1.wrappedCurrency)(currencyB, chainId)]; - const basePairs = (0, lodash_flatmap_1.default)(bases, (base) => bases.map((otherBase) => [base, otherBase])).filter(([t0, t1]) => t0.address !== t1.address); - const allPairCombinations = [ - // the direct pair - [tokenA, tokenB], - // token A against all bases - ...bases.map((base) => [tokenA, base]), - // token B against all bases - ...bases.map((base) => [tokenB, base]), - // each base against all bases - ...basePairs, - ] - .filter((tokens) => Boolean(tokens[0] && tokens[1])) - .filter(([t0, t1]) => t0.address !== t1.address); - // Compute the pair addresses along with token0 and token1, sorted - const pairTokenList = allPairCombinations.reduce((list, [tokenA, tokenB]) => { - if (tokenA && tokenB && !tokenA.equals(tokenB) && chainId && platform.supportsChain(chainId)) { - const pairAddress = pair_1.Pair.getAddress(tokenA, tokenB, platform); - list[pairAddress] = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA]; - } - return list; - }, {}); - const pairAddressList = Object.keys(pairTokenList); - // Fetch the pair reserves via multicall - const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], multicall2_json_1.default, provider); - const uniswapPairInterface = new abi_1.Interface(IDXswapPair_json_1.abi); - const getReservesCallData = uniswapPairInterface.encodeFunctionData('getReserves', []); - const swapFeeCallData = uniswapPairInterface.encodeFunctionData('swapFee', []); - const multicall2CallData = []; - for (const pairAddress of pairAddressList) { - multicall2CallData.push({ - target: pairAddress, - callData: getReservesCallData, - }); - multicall2CallData.push({ - target: pairAddress, - callData: swapFeeCallData, - }); - } - const getReservesAndSwapFeeCallResults = (yield multicallContract.callStatic.tryAggregate(false, multicall2CallData)); - for (let i = 0; i < getReservesAndSwapFeeCallResults.length; i += 2) { - const pairAddressIndex = i / 2; - const pairAddress = pairAddressList[pairAddressIndex]; - const getReservesResults = getReservesAndSwapFeeCallResults[i]; - const swapFeeResults = getReservesAndSwapFeeCallResults[i + 1]; - // Skip failed getReserves calls - if (!getReservesResults.success || !pairAddress) { - continue; - } - try { - // Decode reserves and swap fee from the results - const { reserve0, reserve1 } = uniswapPairInterface.decodeFunctionResult('getReserves', getReservesResults.returnData); - // Swap fee is only available in Swapr's extended UniswapV2Pair contract - // For any other fork, we use the default swap fee - const swapFee = (swapFeeResults === null || swapFeeResults === void 0 ? void 0 : swapFeeResults.success) - ? uniswapPairInterface.decodeFunctionResult('swapFee', swapFeeResults.returnData) - : platform.defaultSwapFee; - const [token0, token1] = pairTokenList[pairAddress]; - pairList.push(new pair_1.Pair(new fractions_1.TokenAmount(token0, reserve0.toString()), new fractions_1.TokenAmount(token1, reserve1.toString()), swapFee.toString(), BigInt(0), platform)); - } - catch (e) { - getAllCommonUniswapV2PairsDebug(e); - } - } - return pairList; - }); -} -exports.getAllCommonUniswapV2Pairs = getAllCommonUniswapV2Pairs; -/** - * - */ -function getAllCommonUniswapV2PairsFromSubgraph({ currencyA, currencyB, platform, }) { - var _a; - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (_a = currencyA.chainId) !== null && _a !== void 0 ? _a : currencyB.chainId; - const subgraphEndpoint = platform.subgraphEndpoint[chainId]; - if (!subgraphEndpoint) { - throw new Error(`No subgraph endpoint for chainId ${chainId}`); - } - const wrappedCurrencyA = (0, utils_1.wrappedCurrency)(currencyA, chainId); - const wrappedCurrencyB = (0, utils_1.wrappedCurrency)(currencyB, chainId); - const results = yield (0, graphql_1.getSdk)(new graphql_request_1.GraphQLClient(subgraphEndpoint)).GetAllCommonPairsBetweenTokenAAndTokenB({ - tokenA: wrappedCurrencyA.address.toLowerCase(), - tokenB: wrappedCurrencyB.address.toLowerCase(), - }); - const pairListWithDuplicates = [...results.pairsWithTokenA, ...results.pairsWithTokenB]; - // Remove duplicate pairs - const pairList = pairListWithDuplicates.filter((pair, index, self) => { - return self.findIndex((p) => p.id.toLowerCase() === pair.id.toLowerCase()) === index; - }); - // Fetch the swap fees for all pairs from the chain - const pairSwapFeeList = yield (0, fees_1.getUniswapV2PairSwapFee)({ - pairAddressList: pairList.map((pair) => pair.id), - chainId, - }); - return pairList.map((pair) => { - const token0 = new token_1.Token(chainId, pair.token0.id, pair.token0.decimals, pair.token0.symbol, pair.token0.name); - const token1 = new token_1.Token(chainId, pair.token1.id, pair.token1.decimals, pair.token1.symbol, pair.token1.name); - const swapFee = pairSwapFeeList[pair.id.toLowerCase()] || platform.defaultSwapFee; - return new pair_1.Pair(new fractions_1.TokenAmount(token0, (0, units_1.parseUnits)(pair.reserve0, token0.decimals).toString()), new fractions_1.TokenAmount(token1, (0, units_1.parseUnits)(pair.reserve1, token1.decimals).toString()), swapFee.toString(), BigInt(0), platform); - }); - }); -} -exports.getAllCommonUniswapV2PairsFromSubgraph = getAllCommonUniswapV2PairsFromSubgraph; -//# sourceMappingURL=pairs.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/pairs.js.map b/dist/entities/trades/uniswap-v2/pairs/pairs.js.map deleted file mode 100644 index 6c95a13e..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/pairs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairs.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/pairs.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,wDAAmD;AACnD,gDAAiD;AACjD,yEAA6E;AAC7E,0DAAyB;AACzB,qDAA+C;AAC/C,4EAAoC;AAEpC,sGAAoE;AACpE,qDAA0D;AAC1D,2DAAsD;AACtD,kDAAgD;AAChD,wCAAoC;AACpC,0CAAsC;AACtC,uCAA0D;AAC1D,4CAA4D;AAE5D,iCAAgD;AAGhD,MAAM,+BAA+B,GAAG,IAAA,eAAK,EAAC,8CAA8C,CAAC,CAAA;AAE7F;;;GAGG;AACH,SAAsB,0BAA0B,CAAC,EAC/C,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,GACmB;;;QAC3B,eAAe;QACf,MAAM,QAAQ,GAAW,EAAE,CAAA;QAE3B,2CAA2C;QAC3C,MAAM,OAAO,GAAG,MAAC,SAAmB,CAAC,OAAO,mCAAK,SAAmB,CAAC,OAAO,CAAA;QAE5E,uCAAuC;QACvC,QAAQ,GAAG,QAAQ,IAAI,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAA;QAE3C,6DAA6D;QAC7D,MAAM,KAAK,GAAY,MAAA,yCAA6B,CAAC,OAAO,CAAC,mCAAI,EAAE,CAAA;QAEnE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,IAAA,uBAAe,EAAC,SAAS,EAAE,OAAO,CAAC,EAAE,IAAA,uBAAe,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;QAEnG,MAAM,SAAS,GAAqB,IAAA,wBAAO,EAAC,KAAK,EAAE,CAAC,IAAI,EAAoB,EAAE,CAC5E,KAAK,CAAC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AAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC3B,MAAM,MAAM,GAAG,IAAI,aAAK,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAC7G,MAAM,MAAM,GAAG,IAAI,aAAK,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAC7G,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAA;YAEjF,OAAO,IAAI,WAAI,CACb,IAAI,uBAAW,CAAC,MAAM,EAAE,IAAA,kBAAU,EAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC9E,IAAI,uBAAW,CAAC,MAAM,EAAE,IAAA,kBAAU,EAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC9E,OAAO,CAAC,QAAQ,EAAE,EAClB,MAAM,CAAC,CAAC,CAAC,EACT,QAAQ,CACT,CAAA;QACH,CAAC,CAAC,CAAA;;CACH;AA9CD,wFA8CC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.d.ts b/dist/entities/trades/uniswap-v2/pairs/queries.d.ts deleted file mode 100644 index 51cd8b96..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/queries.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B: string; diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.js b/dist/entities/trades/uniswap-v2/pairs/queries.js deleted file mode 100644 index 186ee74c..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/queries.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B = void 0; -const graphql_request_1 = require("graphql-request"); -exports.GET_ALL_COMMON_PAIRS_BETWEEN_TOKEN_A_AND_TOKEN_B = (0, graphql_request_1.gql) ` - query GetAllCommonPairsBetweenTokenAAndTokenB($tokenA: String!, $tokenB: String!) { - pairsWithTokenA: pairs(where: { token0_in: [$tokenA, $tokenB] }) { - ...PairDetails - } - pairsWithTokenB: pairs(where: { token1_in: [$tokenB, $tokenA] }) { - ...PairDetails - } - } - - fragment PairDetails on Pair { - id - reserve0 - reserve1 - token0 { - ...TokenDetails - } - token1 { - ...TokenDetails - } - } - - fragment TokenDetails on Token { - id - name - symbol - decimals - } -`; -//# sourceMappingURL=queries.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/queries.js.map b/dist/entities/trades/uniswap-v2/pairs/queries.js.map deleted file mode 100644 index 3a6406b7..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/queries.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/queries.ts"],"names":[],"mappings":";;;AAAA,qDAAqC;AAExB,QAAA,gDAAgD,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlE,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/types.d.ts b/dist/entities/trades/uniswap-v2/pairs/types.d.ts deleted file mode 100644 index bbbf8b4c..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/types.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { Provider } from '@ethersproject/providers'; -import type { ChainId } from '../../../../constants'; -import type { Currency } from '../../../currency'; -import type { UniswapV2RoutablePlatform } from '../../routable-platform'; -export interface GetAllCommonUniswapV2Pairs { - currencyA: Currency; - currencyB: Currency; - platform: UniswapV2RoutablePlatform; - provider?: Provider; -} -export interface GetAllCommonUniswapV2PairsFromSubgraphParams { - currencyA: Currency; - currencyB: Currency; - platform: UniswapV2RoutablePlatform; -} -export interface UniswapV2PairSwapFee { - pairAddress: string; - swapFee: number; -} -export interface GetUniswapV2PairSwapFeeParams { - chainId: ChainId; - pairAddressList: string[]; - provider?: Provider; -} diff --git a/dist/entities/trades/uniswap-v2/pairs/types.js b/dist/entities/trades/uniswap-v2/pairs/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/pairs/types.js.map b/dist/entities/trades/uniswap-v2/pairs/types.js.map deleted file mode 100644 index 5a2f7928..00000000 --- a/dist/entities/trades/uniswap-v2/pairs/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap-v2/pairs/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/types.d.ts b/dist/entities/trades/uniswap-v2/types.d.ts deleted file mode 100644 index 373ecdd9..00000000 --- a/dist/entities/trades/uniswap-v2/types.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { BytesLike } from '@ethersproject/bytes'; -import type { Currency } from '../../currency'; -import type { CurrencyAmount } from '../../fractions/currencyAmount'; -import type { Percent } from '../../fractions/percent'; -import type { Pair } from '../../pair'; -import { UniswapV2RoutablePlatform } from '../routable-platform'; -import type { UniswapV2Trade } from './UniswapV2'; -export type Multicall2TryAggregateResult = { - success: boolean; - returnData: BytesLike; -}; -export interface BestTradeOptions { - maxNumResults?: number; - maxHops?: number; -} -/** - * Base interface - */ -export interface UniswapV2TradeBestTradeExactCommonParams { - maxHops?: BestTradeOptions; - maximumSlippage: Percent; - platform: UniswapV2RoutablePlatform; -} -export interface UniswapV2TradeBestTradeExactInParams extends UniswapV2TradeBestTradeExactCommonParams { - currencyAmountIn: CurrencyAmount; - currencyOut: Currency; -} -export interface UniswapV2TradeBestTradeExactOutParams extends UniswapV2TradeBestTradeExactCommonParams { - currencyIn: Currency; - currencyAmountOut: CurrencyAmount; -} -/** - * Common params for computing trade routes - */ -export interface UniswapV2TradeComputeTradeCommonParams { - pairs: Pair[]; - currentPairs?: Pair[]; - bestTrades?: UniswapV2Trade[]; -} -export type UniswapV2TradeComputeTradesExactInParams = UniswapV2TradeComputeTradeCommonParams & Omit & { - originalAmountIn?: CurrencyAmount; -}; -export type UniswapV2TradeComputeTradesExactOutParams = UniswapV2TradeComputeTradeCommonParams & Omit & { - originalAmountOut?: CurrencyAmount; -}; diff --git a/dist/entities/trades/uniswap-v2/types.js b/dist/entities/trades/uniswap-v2/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/dist/entities/trades/uniswap-v2/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/types.js.map b/dist/entities/trades/uniswap-v2/types.js.map deleted file mode 100644 index 5a1393da..00000000 --- a/dist/entities/trades/uniswap-v2/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/utilts.d.ts b/dist/entities/trades/uniswap-v2/utilts.d.ts deleted file mode 100644 index a6f23b92..00000000 --- a/dist/entities/trades/uniswap-v2/utilts.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { CurrencyAmount } from '../../fractions/currencyAmount'; -import { Percent } from '../../fractions/percent'; -import type { Price } from '../../fractions/price'; -export type { UniswapV2Trade } from './UniswapV2'; -export declare function toHex(currencyAmount: CurrencyAmount): string; -export declare const ZERO_HEX = "0x0"; -/** - * Returns the percent difference between the mid price and the execution price, i.e. price impact. - * @param midPrice mid price before the trade - * @param inputAmount the input amount of the trade - * @param outputAmount the output amount of the trade - */ -export declare function computePriceImpact(midPrice: Price, inputAmount: CurrencyAmount, outputAmount: CurrencyAmount): Percent; -interface InputOutput { - readonly inputAmount: CurrencyAmount; - readonly outputAmount: CurrencyAmount; -} -export declare function inputOutputComparator(a: InputOutput, b: InputOutput): number; diff --git a/dist/entities/trades/uniswap-v2/utilts.js b/dist/entities/trades/uniswap-v2/utilts.js deleted file mode 100644 index c960cb81..00000000 --- a/dist/entities/trades/uniswap-v2/utilts.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.inputOutputComparator = exports.computePriceImpact = exports.ZERO_HEX = exports.toHex = void 0; -const tslib_1 = require("tslib"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const percent_1 = require("../../fractions/percent"); -const token_1 = require("../../token"); -function toHex(currencyAmount) { - return `0x${currencyAmount.raw.toString(16)}`; -} -exports.toHex = toHex; -exports.ZERO_HEX = '0x0'; -/** - * Returns the percent difference between the mid price and the execution price, i.e. price impact. - * @param midPrice mid price before the trade - * @param inputAmount the input amount of the trade - * @param outputAmount the output amount of the trade - */ -function computePriceImpact(midPrice, inputAmount, outputAmount) { - const exactQuote = midPrice.raw.multiply(inputAmount.raw); - // calculate slippage := (exactQuote - outputAmount) / exactQuote - const slippage = exactQuote.subtract(outputAmount.raw).divide(exactQuote); - return new percent_1.Percent(slippage.numerator, slippage.denominator); -} -exports.computePriceImpact = computePriceImpact; -// comparator function that allows sorting trades by their output amounts, in decreasing order, and then input amounts -// in increasing order. i.e. the best trades have the most outputs for the least inputs and are sorted first -function inputOutputComparator(a, b) { - // must have same input and output token for comparison - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(a.inputAmount.currency, b.inputAmount.currency), 'INPUT_CURRENCY'); - (0, tiny_invariant_1.default)((0, token_1.currencyEquals)(a.outputAmount.currency, b.outputAmount.currency), 'OUTPUT_CURRENCY'); - if (a.outputAmount.equalTo(b.outputAmount)) { - if (a.inputAmount.equalTo(b.inputAmount)) { - return 0; - } - // trade A requires less input than trade B, so A should come first - if (a.inputAmount.lessThan(b.inputAmount)) { - return -1; - } - else { - return 1; - } - } - else { - // tradeA has less output than trade B, so should come second - if (a.outputAmount.lessThan(b.outputAmount)) { - return 1; - } - else { - return -1; - } - } -} -exports.inputOutputComparator = inputOutputComparator; -//# sourceMappingURL=utilts.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap-v2/utilts.js.map b/dist/entities/trades/uniswap-v2/utilts.js.map deleted file mode 100644 index 201c9851..00000000 --- a/dist/entities/trades/uniswap-v2/utilts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utilts.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap-v2/utilts.ts"],"names":[],"mappings":";;;;AAAA,4EAAsC;AAGtC,qDAAiD;AAEjD,uCAA4C;AAG5C,SAAgB,KAAK,CAAC,cAA8B;IAClD,OAAO,KAAK,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;AAC/C,CAAC;AAFD,sBAEC;AAEY,QAAA,QAAQ,GAAG,KAAK,CAAA;AAE7B;;;;;GAKG;AACH,SAAgB,kBAAkB,CAChC,QAAe,EACf,WAA2B,EAC3B,YAA4B;IAE5B,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IACzD,iEAAiE;IACjE,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;IACzE,OAAO,IAAI,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC9D,CAAC;AATD,gDASC;AAQD,sHAAsH;AACtH,4GAA4G;AAC5G,SAAgB,qBAAqB,CAAC,CAAc,EAAE,CAAc;IAClE,uDAAuD;IACvD,IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAA;IAC3F,IAAA,wBAAS,EAAC,IAAA,sBAAc,EAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAA;IAC9F,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE;QAC1C,IAAI,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACxC,OAAO,CAAC,CAAA;SACT;QACD,mEAAmE;QACnE,IAAI,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;YACzC,OAAO,CAAC,CAAC,CAAA;SACV;aAAM;YACL,OAAO,CAAC,CAAA;SACT;KACF;SAAM;QACL,6DAA6D;QAC7D,IAAI,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE;YAC3C,OAAO,CAAC,CAAA;SACT;aAAM;YACL,OAAO,CAAC,CAAC,CAAA;SACV;KACF;AACH,CAAC;AAtBD,sDAsBC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts b/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts deleted file mode 100644 index 8595de5a..00000000 --- a/dist/entities/trades/uniswap/Uniswap/Uniswap.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { BaseProvider } from '@ethersproject/providers'; -import { UnsignedTransaction } from '@ethersproject/transactions'; -import { SwapRoute } from '@uniswap/smart-order-router'; -import { CurrencyAmount } from '../../../fractions'; -import { TradeWithSwapTransaction } from '../../interfaces/trade'; -import { TradeOptions } from '../../interfaces/trade-options'; -import { UniswapTradeGetQuoteParams, UniswapTradeParams } from '../types/UniswapV3.types'; -/** - * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools - */ -export declare class UniswapTrade extends TradeWithSwapTransaction { - /** - * @property The original SwapRoute object from the Routing API - */ - swapRoute: SwapRoute; - constructor({ maximumSlippage, swapRoute }: UniswapTradeParams); - static getQuote({ amount, quoteCurrency, tradeType, recipient, maximumSlippage }: UniswapTradeGetQuoteParams, provider?: BaseProvider): Promise; - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - swapTransaction(options: TradeOptions): Promise; -} diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.js b/dist/entities/trades/uniswap/Uniswap/Uniswap.js deleted file mode 100644 index e91ce52b..00000000 --- a/dist/entities/trades/uniswap/Uniswap/Uniswap.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UniswapTrade = void 0; -const tslib_1 = require("tslib"); -const bignumber_1 = require("@ethersproject/bignumber"); -const constants_1 = require("@ethersproject/constants"); -const units_1 = require("@ethersproject/units"); -const router_sdk_1 = require("@uniswap/router-sdk"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const smart_order_router_1 = require("@uniswap/smart-order-router"); -const v2_sdk_1 = require("@uniswap/v2-sdk"); -const dayjs_1 = tslib_1.__importDefault(require("dayjs")); -const debug_1 = tslib_1.__importDefault(require("debug")); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_2 = require("../../../../constants"); -const currency_1 = require("../../../currency"); -const fractions_1 = require("../../../fractions"); -const constants_3 = require("../../constants"); -const trade_1 = require("../../interfaces/trade"); -const routable_platform_1 = require("../../routable-platform"); -const utils_1 = require("../../utils"); -const utils_2 = require("../utils"); -// Debuging logger. See documentation to enable logging. -const debugUniswapTradeGetQuote = (0, debug_1.default)('ecoRouter:uniswap:getQuote'); -/** - * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools - */ -class UniswapTrade extends trade_1.TradeWithSwapTransaction { - constructor({ maximumSlippage, swapRoute }) { - const chainId = swapRoute.trade.inputAmount.currency.chainId; - // Require chainId - (0, tiny_invariant_1.default)(chainId, 'UniswapTrade.constructor: chainId is required'); - const inputCurrency = swapRoute.trade.inputAmount.currency; - const outpuCurrency = swapRoute.trade.outputAmount.currency; - const inputAmountBN = (0, units_1.parseUnits)(swapRoute.trade.inputAmount.toSignificant(), inputCurrency.decimals); - const outputAmountBN = (0, units_1.parseUnits)(swapRoute.trade.outputAmount.toSignificant(), outpuCurrency.decimals); - // Make the Uniswap SDK types compatible with the Trade types - const inputAmount = inputCurrency.isNative - ? fractions_1.CurrencyAmount.nativeCurrency(inputAmountBN.toBigInt(), chainId) - : new fractions_1.TokenAmount(inputCurrency, inputAmountBN.toBigInt()); - const outputAmount = outpuCurrency.isNative - ? fractions_1.CurrencyAmount.nativeCurrency(outputAmountBN.toBigInt(), chainId) - : new fractions_1.TokenAmount(outpuCurrency, outputAmountBN.toBigInt()); - const executionPrice = new fractions_1.Price({ - baseCurrency: swapRoute.trade.executionPrice.baseCurrency, - quoteCurrency: swapRoute.trade.executionPrice.quoteCurrency, - denominator: swapRoute.trade.executionPrice.denominator, - numerator: swapRoute.trade.executionPrice.numerator, - }); - const priceImpact = new fractions_1.Percent(swapRoute.trade.priceImpact.numerator, swapRoute.trade.priceImpact.denominator); - // Calculate the total fee percentage as basis point by summing all v3 and v2 pools from the AutoRouter routes - // Then, divide by 100 because Uniswap uses hundredths of basis points - const fee = swapRoute.trade.swaps.reduce((acc, { route: { pools } }) => { - for (let i = 0; i < pools.length; i++) { - const nextPool = pools[i]; - acc = acc + (nextPool instanceof v2_sdk_1.Pair ? 3000 : nextPool.fee); // default V2 fee is 0.3% while v3 can be 0.01% to 1% - } - return acc; - }, 0) / 100; - super({ - details: undefined, - type: swapRoute.trade.tradeType, - inputAmount, - outputAmount, - maximumSlippage, - platform: routable_platform_1.RoutablePlatform.UNISWAP, - chainId, - executionPrice, - priceImpact, - fee: new fractions_1.Percent(jsbi_1.default.BigInt(fee), '10000'), - // Uniswap V3 Router v2 address - approveAddress: '0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45', - estimatedGas: swapRoute.estimatedGasUsed, - }); - this.swapRoute = swapRoute; - } - static getQuote({ amount, quoteCurrency, tradeType, recipient, maximumSlippage }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_1.tryGetChainId)(amount, quoteCurrency); - (0, tiny_invariant_1.default)(chainId, 'UniswapV3Trade.getQuote: chainId is required'); - // Defaults - recipient = recipient || constants_1.AddressZero; - maximumSlippage = maximumSlippage || constants_3.maximumSlippage; - provider = provider || (0, utils_1.getProvider)(chainId); - // Must match the currencies provided - (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `UniswapTrade.getQuote: currencies chainId does not match provider's chainId`); - const alphaRouter = new smart_order_router_1.AlphaRouter({ chainId: chainId, provider }); - // Map the current currencies to compatible types from the Uniswap SDK - const amountV3 = sdk_core_1.CurrencyAmount.fromRawAmount(currency_1.Currency.isNative(amount.currency) - ? (0, utils_2.getUniswapNativeCurrency)(chainId) - : new sdk_core_1.Token(chainId, amount.currency.address, amount.currency.decimals, amount.currency.symbol, amount.currency.name), amount.raw); - const quoteCurrencyV3 = currency_1.Currency.isNative(quoteCurrency) - ? (0, utils_2.getUniswapNativeCurrency)(chainId) - : new sdk_core_1.Token(chainId, quoteCurrency.address, quoteCurrency.decimals, quoteCurrency.symbol, quoteCurrency.name); - debugUniswapTradeGetQuote({ - amountV3, - quoteCurrencyV3, - tradeType, - recipient, - maximumSlippage, - alphaRouter, - }); - const routeResponse = yield alphaRouter.route(amountV3, quoteCurrencyV3, tradeType, { - recipient, - slippageTolerance: new sdk_core_1.Percent(maximumSlippage.numerator, maximumSlippage.denominator), - deadline: (0, dayjs_1.default)().add(30, 'm').unix(), - }, { - protocols: [router_sdk_1.Protocol.V2, router_sdk_1.Protocol.V3], - }); - // Debug - debugUniswapTradeGetQuote(routeResponse); - if (routeResponse) { - return new UniswapTrade({ maximumSlippage, swapRoute: routeResponse }); - } - return null; - }); - } - minimumAmountOut() { - if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - swapTransaction(options) { - var _a, _b, _c; - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const callData = (0, utils_2.encodeRecipient)(this.tradeType, options.recipient, (_a = this.swapRoute.methodParameters) === null || _a === void 0 ? void 0 : _a.calldata); - return { - value: ((_b = this.swapRoute.methodParameters) === null || _b === void 0 ? void 0 : _b.value) - ? bignumber_1.BigNumber.from((_c = this.swapRoute.methodParameters) === null || _c === void 0 ? void 0 : _c.value) - : undefined, - data: callData, - to: this.approveAddress, - }; - }); - } -} -exports.UniswapTrade = UniswapTrade; -//# sourceMappingURL=Uniswap.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map b/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map deleted file mode 100644 index d4ce4492..00000000 --- a/dist/entities/trades/uniswap/Uniswap/Uniswap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Uniswap.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/Uniswap/Uniswap.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AACpD,wDAAsD;AAGtD,gDAAiD;AACjD,oDAA8C;AAC9C,gDAI0B;AAC1B,oEAAoE;AACpE,4CAAuD;AACvD,0DAAyB;AACzB,0DAAyB;AACzB,wDAAuB;AACvB,4EAAsC;AAEtC,qDAAsD;AACtD,gDAA4C;AAC5C,kDAA0F;AAE1F,+CAA2E;AAC3E,kDAAiE;AAEjE,+DAA0D;AAC1D,uCAAwD;AAExD,oCAAoE;AAEpE,wDAAwD;AACxD,MAAM,yBAAyB,GAAG,IAAA,eAAK,EAAC,4BAA4B,CAAC,CAAA;AAErE;;GAEG;AACH,MAAa,YAAa,SAAQ,gCAAwB;IAMxD,YAAmB,EAAE,eAAe,EAAE,SAAS,EAAsB;QACnE,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAA;QAC5D,kBAAkB;QAClB,IAAA,wBAAS,EAAC,OAAO,EAAE,+CAA+C,CAAC,CAAA;QAEnE,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAA;QAC1D,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAA;QAE3D,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,aAA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W,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAA;YAC1C,OAAO,IAAI,CAAC,WAAW,YAAY,uBAAW;gBAC5C,CAAC,CAAC,IAAI,uBAAW,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,wBAAwB,CAAC;gBACnE,CAAC,CAAC,0BAAc,CAAC,cAAc,CAAC,wBAAwB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;SAC1E;IACH,CAAC;IAEY,eAAe,CAAC,OAAqB;;;YAChD,MAAM,QAAQ,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,QAAQ,CAAC,CAAA;YAE9G,OAAO;gBACL,KAAK,EAAE,CAAA,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,KAAK;oBAC3C,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,MAAA,IAAI,CAAC,SAAS,CAAC,gBAAgB,0CAAE,KAAK,CAAC;oBACxD,CAAC,CAAC,SAAS;gBACb,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,cAAc;aACxB,CAAA;;KACF;CACF;AAnLD,oCAmLC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/abi/index.d.ts b/dist/entities/trades/uniswap/abi/index.d.ts deleted file mode 100644 index 3f7a2cd5..00000000 --- a/dist/entities/trades/uniswap/abi/index.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -export declare const UNISWAP_ROUTER_ABI: ({ - inputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - name?: undefined; - outputs?: undefined; -} | { - inputs: { - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -} | { - inputs: { - components: { - internalType: string; - name: string; - type: string; - }[]; - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -} | { - stateMutability: string; - type: string; - inputs?: undefined; - name?: undefined; - outputs?: undefined; -})[]; diff --git a/dist/entities/trades/uniswap/abi/index.js b/dist/entities/trades/uniswap/abi/index.js deleted file mode 100644 index 75fd6972..00000000 --- a/dist/entities/trades/uniswap/abi/index.js +++ /dev/null @@ -1,460 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UNISWAP_ROUTER_ABI = void 0; -exports.UNISWAP_ROUTER_ABI = [ - { - inputs: [ - { internalType: 'address', name: '_factoryV2', type: 'address' }, - { internalType: 'address', name: 'factoryV3', type: 'address' }, - { internalType: 'address', name: '_positionManager', type: 'address' }, - { internalType: 'address', name: '_WETH9', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WETH9', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'token', type: 'address' }], - name: 'approveMax', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'token', type: 'address' }], - name: 'approveMaxMinusOne', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'token', type: 'address' }], - name: 'approveZeroThenMax', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'token', type: 'address' }], - name: 'approveZeroThenMaxMinusOne', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }], - name: 'callPositionManager', - outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes[]', name: 'paths', type: 'bytes[]' }, - { internalType: 'uint128[]', name: 'amounts', type: 'uint128[]' }, - { internalType: 'uint24', name: 'maximumTickDivergence', type: 'uint24' }, - { internalType: 'uint32', name: 'secondsAgo', type: 'uint32' }, - ], - name: 'checkOracleSlippage', - outputs: [], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'uint24', name: 'maximumTickDivergence', type: 'uint24' }, - { internalType: 'uint32', name: 'secondsAgo', type: 'uint32' }, - ], - name: 'checkOracleSlippage', - outputs: [], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMinimum', type: 'uint256' }, - ], - internalType: 'struct IV3SwapRouter.ExactInputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInput', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMinimum', type: 'uint256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - ], - internalType: 'struct IV3SwapRouter.ExactInputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInputSingle', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, - ], - internalType: 'struct IV3SwapRouter.ExactOutputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutput', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - ], - internalType: 'struct IV3SwapRouter.ExactOutputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutputSingle', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'factoryV2', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'getApprovalType', - outputs: [{ internalType: 'enum IApproveAndCall.ApprovalType', name: '', type: 'uint8' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'token0', type: 'address' }, - { internalType: 'address', name: 'token1', type: 'address' }, - { internalType: 'uint256', name: 'tokenId', type: 'uint256' }, - { internalType: 'uint256', name: 'amount0Min', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1Min', type: 'uint256' }, - ], - internalType: 'struct IApproveAndCall.IncreaseLiquidityParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'increaseLiquidity', - outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'token0', type: 'address' }, - { internalType: 'address', name: 'token1', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint256', name: 'amount0Min', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1Min', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - ], - internalType: 'struct IApproveAndCall.MintParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'mint', - outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes32', name: 'previousBlockhash', type: 'bytes32' }, - { internalType: 'bytes[]', name: 'data', type: 'bytes[]' }, - ], - name: 'multicall', - outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bytes[]', name: 'data', type: 'bytes[]' }, - ], - name: 'multicall', - outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'positionManager', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'pull', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { inputs: [], name: 'refundETH', outputs: [], stateMutability: 'payable', type: 'function' }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermit', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitAllowed', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitAllowedIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'swapExactTokensForTokens', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'swapTokensForExactTokens', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'sweepTokenWithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'sweepTokenWithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'int256', name: 'amount0Delta', type: 'int256' }, - { internalType: 'int256', name: 'amount1Delta', type: 'int256' }, - { internalType: 'bytes', name: '_data', type: 'bytes' }, - ], - name: 'uniswapV3SwapCallback', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - ], - name: 'unwrapWETH9', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }], - name: 'unwrapWETH9', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'unwrapWETH9WithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'unwrapWETH9WithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], - name: 'wrapETH', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -]; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/abi/index.js.map b/dist/entities/trades/uniswap/abi/index.js.map deleted file mode 100644 index 30e33c01..00000000 --- a/dist/entities/trades/uniswap/abi/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/abi/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YAChE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAA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EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CAChD,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/index.d.ts b/dist/entities/trades/uniswap/index.d.ts deleted file mode 100644 index 5b8b8624..00000000 --- a/dist/entities/trades/uniswap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { UniswapTradeGetQuoteParams, UniswapTradeParams } from './types/UniswapV3.types'; -export { UniswapTrade } from './Uniswap/Uniswap'; diff --git a/dist/entities/trades/uniswap/index.js b/dist/entities/trades/uniswap/index.js deleted file mode 100644 index 70bb88d4..00000000 --- a/dist/entities/trades/uniswap/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UniswapTrade = void 0; -var Uniswap_1 = require("./Uniswap/Uniswap"); -Object.defineProperty(exports, "UniswapTrade", { enumerable: true, get: function () { return Uniswap_1.UniswapTrade; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/index.js.map b/dist/entities/trades/uniswap/index.js.map deleted file mode 100644 index ae7dc318..00000000 --- a/dist/entities/trades/uniswap/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/uniswap/index.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAAvC,uGAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts b/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts deleted file mode 100644 index 1a255af8..00000000 --- a/dist/entities/trades/uniswap/types/UniswapV3.types.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { SwapRoute } from '@uniswap/smart-order-router'; -import type { TradeType } from '../../../../constants'; -import type { Currency } from '../../../currency'; -import type { CurrencyAmount } from '../../../fractions/currencyAmount'; -import type { Percent } from '../../../fractions/percent'; -export interface UniswapTradeGetQuoteParams { - amount: CurrencyAmount; - quoteCurrency: Currency; - tradeType: TradeType; - maximumSlippage?: Percent; - recipient?: string; -} -export interface UniswapTradeParams { - swapRoute: SwapRoute; - maximumSlippage: Percent; -} diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.js b/dist/entities/trades/uniswap/types/UniswapV3.types.js deleted file mode 100644 index afbe4326..00000000 --- a/dist/entities/trades/uniswap/types/UniswapV3.types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=UniswapV3.types.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/types/UniswapV3.types.js.map b/dist/entities/trades/uniswap/types/UniswapV3.types.js.map deleted file mode 100644 index e5250d5d..00000000 --- a/dist/entities/trades/uniswap/types/UniswapV3.types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UniswapV3.types.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/types/UniswapV3.types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/index.d.ts b/dist/entities/trades/uniswap/utils/index.d.ts deleted file mode 100644 index bb2c5514..00000000 --- a/dist/entities/trades/uniswap/utils/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { TradeType } from '../../../../constants'; -export * from './nativeCurrency'; -export declare function encodeRecipient(tradeType: TradeType, recipient: string, callData?: string): string | undefined; diff --git a/dist/entities/trades/uniswap/utils/index.js b/dist/entities/trades/uniswap/utils/index.js deleted file mode 100644 index 9462c3c5..00000000 --- a/dist/entities/trades/uniswap/utils/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeRecipient = void 0; -const tslib_1 = require("tslib"); -const abi_1 = require("@ethersproject/abi"); -const utils_1 = require("ethers/lib/utils"); -const constants_1 = require("../../../../constants"); -const abi_2 = require("../abi"); -tslib_1.__exportStar(require("./nativeCurrency"), exports); -function encodeRecipient(tradeType, recipient, callData) { - if (!callData) - return undefined; - const routerFunction = tradeType === constants_1.TradeType.EXACT_INPUT ? 'exactInputSingle' : 'exactOutputSingle'; - const routerInterface = new abi_1.Interface(abi_2.UNISWAP_ROUTER_ABI); - const data = routerInterface.decodeFunctionData('multicall(uint256,bytes[])', callData); - const decodedData = routerInterface.decodeFunctionData(routerFunction, data.data[0]); - const { params } = decodedData; - const routerFunctionCallData = routerInterface.encodeFunctionData(routerFunction, [ - [ - params.tokenIn, - params.tokenOut, - params.fee, - recipient, - //amountIn or amountOut - decodedData[0][4].toString(), - //amountInMaximum or amountOutMaximum - decodedData[0][5].toString(), - params.sqrtPriceLimitX96.toString(), - ], - ]); - const dataFormatted = (0, utils_1.arrayify)(routerFunctionCallData); - const newEncodedCallData = routerInterface.encodeFunctionData('multicall(uint256,bytes[])', [ - data.deadline.toString(), - [dataFormatted], - ]); - return newEncodedCallData; -} -exports.encodeRecipient = encodeRecipient; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/index.js.map b/dist/entities/trades/uniswap/utils/index.js.map deleted file mode 100644 index a648d8ab..00000000 --- a/dist/entities/trades/uniswap/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/utils/index.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAC9C,4CAA2C;AAE3C,qDAAiD;AACjD,gCAA2C;AAE3C,2DAAgC;AAEhC,SAAgB,eAAe,CAAC,SAAoB,EAAE,SAAiB,EAAE,QAAiB;IACxF,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAA;IAC/B,MAAM,cAAc,GAAG,SAAS,KAAK,qBAAS,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAA;IACrG,MAAM,eAAe,GAAG,IAAI,eAAS,CAAC,wBAAkB,CAAC,CAAA;IACzD,MAAM,IAAI,GAAG,eAAe,CAAC,kBAAkB,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAA;IAEvF,MAAM,WAAW,GAAG,eAAe,CAAC,kBAAkB,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IACpF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAA;IAE9B,MAAM,sBAAsB,GAAG,eAAe,CAAC,kBAAkB,CAAC,cAAc,EAAE;QAChF;YACE,MAAM,CAAC,OAAO;YACd,MAAM,CAAC,QAAQ;YACf,MAAM,CAAC,GAAG;YACV,SAAS;YACT,uBAAuB;YACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC5B,qCAAqC;YACrC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC5B,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE;SACpC;KACF,CAAC,CAAA;IACF,MAAM,aAAa,GAAG,IAAA,gBAAQ,EAAC,sBAAsB,CAAC,CAAA;IACtD,MAAM,kBAAkB,GAAG,eAAe,CAAC,kBAAkB,CAAC,4BAA4B,EAAE;QAC1F,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACxB,CAAC,aAAa,CAAC;KAChB,CAAC,CAAA;IACF,OAAO,kBAAkB,CAAA;AAC3B,CAAC;AA5BD,0CA4BC"} \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts b/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts deleted file mode 100644 index ee10924d..00000000 --- a/dist/entities/trades/uniswap/utils/nativeCurrency.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { NativeCurrency as UniswapNativeCurrency } from '@uniswap/sdk-core'; -export declare function getUniswapNativeCurrency(chainId: number): UniswapNativeCurrency; diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.js b/dist/entities/trades/uniswap/utils/nativeCurrency.js deleted file mode 100644 index 0de24cfa..00000000 --- a/dist/entities/trades/uniswap/utils/nativeCurrency.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUniswapNativeCurrency = void 0; -const tslib_1 = require("tslib"); -const sdk_core_1 = require("@uniswap/sdk-core"); -const smart_order_router_1 = require("@uniswap/smart-order-router"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -function isMatic(chainId) { - return chainId === smart_order_router_1.ChainId.POLYGON_MUMBAI || chainId === smart_order_router_1.ChainId.POLYGON; -} -class MaticNativeCurrency extends sdk_core_1.NativeCurrency { - equals(other) { - return other.isNative && other.chainId === this.chainId; - } - get wrapped() { - if (!isMatic(this.chainId)) - throw new Error('Not matic'); - const wrapped = smart_order_router_1.WRAPPED_NATIVE_CURRENCY[this.chainId]; - (0, tiny_invariant_1.default)(wrapped instanceof sdk_core_1.Token); - return wrapped; - } - constructor(chainId) { - if (!isMatic(chainId)) - throw new Error('Not matic'); - super(chainId, 18, 'MATIC', 'Polygon Matic'); - } -} -function getUniswapNativeCurrency(chainId) { - if (isMatic(chainId)) { - return new MaticNativeCurrency(chainId); - } - else { - return sdk_core_1.Ether.onChain(chainId); - } -} -exports.getUniswapNativeCurrency = getUniswapNativeCurrency; -//# sourceMappingURL=nativeCurrency.js.map \ No newline at end of file diff --git a/dist/entities/trades/uniswap/utils/nativeCurrency.js.map b/dist/entities/trades/uniswap/utils/nativeCurrency.js.map deleted file mode 100644 index c1fb622f..00000000 --- a/dist/entities/trades/uniswap/utils/nativeCurrency.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nativeCurrency.js","sourceRoot":"","sources":["../../../../../src/entities/trades/uniswap/utils/nativeCurrency.ts"],"names":[],"mappings":";;;;AAAA,gDAK0B;AAC1B,oEAA8E;AAC9E,4EAAsC;AAEtC,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO,OAAO,KAAK,4BAAO,CAAC,cAAc,IAAI,OAAO,KAAK,4BAAO,CAAC,OAAO,CAAA;AAC1E,CAAC;AAED,MAAM,mBAAoB,SAAQ,yBAAqB;IACrD,MAAM,CAAC,KAAsB;QAC3B,OAAO,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,CAAA;IACzD,CAAC;IAED,IAAI,OAAO;QACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAA;QACxD,MAAM,OAAO,GAAG,4CAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACrD,IAAA,wBAAS,EAAC,OAAO,YAAY,gBAAY,CAAC,CAAA;QAC1C,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,YAAmB,OAAe;QAChC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAA;QACnD,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,CAAA;IAC9C,CAAC;CACF;AAED,SAAgB,wBAAwB,CAAC,OAAe;IACtD,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACpB,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAA;KACxC;SAAM;QACL,OAAO,gBAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;KACrC;AACH,CAAC;AAND,4DAMC"} \ No newline at end of file diff --git a/dist/entities/trades/utils.d.ts b/dist/entities/trades/utils.d.ts deleted file mode 100644 index 2a903e66..00000000 --- a/dist/entities/trades/utils.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { JsonRpcProvider } from '@ethersproject/providers'; -import { ChainId } from '../../constants'; -import { Currency } from '../currency'; -import { CurrencyAmount } from '../fractions/currencyAmount'; -import { TokenAmount } from '../fractions/tokenAmount'; -import { Token } from '../token'; -/** - * Same as `wrappedCurrency` util functiom, but for `TokenAmount` - * @param currencyAmount The currency amount to wrap - * @param chainId The chain ID - * @returns The wrapped currency amount if it is native, otherwise the currency itself - * @throws an error - */ -export declare function wrappedAmount(currencyAmount: CurrencyAmount, chainId: ChainId): TokenAmount; -/** - * Returns the wrapped currency for the given currency if it is native - * @param currency The currency to wrap - * @param chainId The chain ID - * @returns The wrapped currency if it is native, otherwise the currency itself - * @throws an error - */ -export declare function wrappedCurrency(currency: Currency, chainId: ChainId): Token; -/** - * Attempts to find the chain ID of the given currencies - * @param currencyAmount The currency amount to find the chain ID for - * @param currency The currency to find the chain ID for - * @returns - */ -export declare function tryGetChainId(currencyAmount: CurrencyAmount, currency: Currency): ChainId | undefined; -/** - * List of RPC provider URLs for different chains. - * @see https://chainlist.org/ lookup Chain info - */ -/** - * @TODO in https://linear.app/swaprdev/issue/SWA-65/provide-a-single-source-of-truth-for-chain-rpcs-from-the-sdk - * Make `RPC_PROVIDER_LIST` exportable from this repo - */ -export declare const RPC_PROVIDER_LIST: Record; -/** - * Returns a RPC provider for the given chainId. - * @param chainId The chainId - * @returns The RPC provider - */ -export declare function getProvider(chainId: ChainId): JsonRpcProvider; diff --git a/dist/entities/trades/utils.js b/dist/entities/trades/utils.js deleted file mode 100644 index 0ec1aaf9..00000000 --- a/dist/entities/trades/utils.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getProvider = exports.RPC_PROVIDER_LIST = exports.tryGetChainId = exports.wrappedCurrency = exports.wrappedAmount = void 0; -const tslib_1 = require("tslib"); -const providers_1 = require("@ethersproject/providers"); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("../../constants"); -const currency_1 = require("../currency"); -const tokenAmount_1 = require("../fractions/tokenAmount"); -const token_1 = require("../token"); -/** - * Same as `wrappedCurrency` util functiom, but for `TokenAmount` - * @param currencyAmount The currency amount to wrap - * @param chainId The chain ID - * @returns The wrapped currency amount if it is native, otherwise the currency itself - * @throws an error - */ -function wrappedAmount(currencyAmount, chainId) { - if (currencyAmount instanceof tokenAmount_1.TokenAmount) - return currencyAmount; - if (currency_1.Currency.isNative(currencyAmount.currency)) - return new tokenAmount_1.TokenAmount(token_1.Token.getNativeWrapper(chainId), currencyAmount.raw); - (0, tiny_invariant_1.default)(false, 'CURRENCY'); -} -exports.wrappedAmount = wrappedAmount; -/** - * Returns the wrapped currency for the given currency if it is native - * @param currency The currency to wrap - * @param chainId The chain ID - * @returns The wrapped currency if it is native, otherwise the currency itself - * @throws an error - */ -function wrappedCurrency(currency, chainId) { - if (currency instanceof token_1.Token) - return currency; - if (currency_1.Currency.isNative(currency)) - return token_1.Token.getNativeWrapper(chainId); - (0, tiny_invariant_1.default)(false, 'CURRENCY'); -} -exports.wrappedCurrency = wrappedCurrency; -/** - * Attempts to find the chain ID of the given currencies - * @param currencyAmount The currency amount to find the chain ID for - * @param currency The currency to find the chain ID for - * @returns - */ -function tryGetChainId(currencyAmount, currency) { - return currencyAmount instanceof tokenAmount_1.TokenAmount - ? currencyAmount.token.chainId - : currency instanceof token_1.Token - ? currency.chainId - : undefined; -} -exports.tryGetChainId = tryGetChainId; -/** - * List of RPC provider URLs for different chains. - * @see https://chainlist.org/ lookup Chain info - */ -/** - * @TODO in https://linear.app/swaprdev/issue/SWA-65/provide-a-single-source-of-truth-for-chain-rpcs-from-the-sdk - * Make `RPC_PROVIDER_LIST` exportable from this repo - */ -exports.RPC_PROVIDER_LIST = { - [constants_1.ChainId.MAINNET]: 'https://mainnet.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', - [constants_1.ChainId.XDAI]: 'https://poa-xdai.gateway.pokt.network/v1/lb/627cd67433e8770039fe3dba', - [constants_1.ChainId.RINKEBY]: 'https://rinkeby.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', - [constants_1.ChainId.ARBITRUM_ONE]: 'https://arb1.arbitrum.io/rpc', - [constants_1.ChainId.ARBITRUM_RINKEBY]: 'https://rinkeby.arbitrum.io/rpc', - [constants_1.ChainId.ARBITRUM_GOERLI]: 'https://goerli-rollup.arbitrum.io/rpc', - [constants_1.ChainId.POLYGON]: 'https://polygon-rpc.com', - [constants_1.ChainId.GOERLI]: 'https://goerli.infura.io/v3/e1a3bfc40093494ca4f36b286ab36f2d', - [constants_1.ChainId.OPTIMISM_MAINNET]: 'https://opt-mainnet.g.alchemy.com/v2/6cRVjVO2uOTC9gWFCsBnquUwOM9zuWQZ', - [constants_1.ChainId.OPTIMISM_GOERLI]: 'https://goerli.optimism.io', - [constants_1.ChainId.BSC_MAINNET]: 'https://bsc-dataseed1.binance.org/', - [constants_1.ChainId.BSC_TESTNET]: 'https://data-seed-prebsc-1-s1.binance.org:8545/', - [constants_1.ChainId.ZK_SYNC_ERA_MAINNET]: 'https://mainnet.era.zksync.io', - [constants_1.ChainId.ZK_SYNC_ERA_TESTNET]: 'https://testnet.era.zksync.dev', -}; -/** - * Returns a RPC provider for the given chainId. - * @param chainId The chainId - * @returns The RPC provider - */ -function getProvider(chainId) { - const host = exports.RPC_PROVIDER_LIST[chainId]; - return new providers_1.JsonRpcProvider(host); -} -exports.getProvider = getProvider; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/utils.js.map b/dist/entities/trades/utils.js.map deleted file mode 100644 index 0b160441..00000000 --- a/dist/entities/trades/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/entities/trades/utils.ts"],"names":[],"mappings":";;;;AAAA,wDAA0D;AAC1D,4EAAsC;AAEtC,+CAAyC;AACzC,0CAAsC;AAEtC,0DAAsD;AACtD,oCAAgC;AAEhC;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,cAA8B,EAAE,OAAgB;IAC5E,IAAI,cAAc,YAAY,yBAAW;QAAE,OAAO,cAAc,CAAA;IAChE,IAAI,mBAAQ,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B;IAC5C,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE,8DAA8D;IAChF,CAAC,mBAAO,CAAC,gBAAgB,CAAC,EAAE,uEAAuE;IACnG,CAAC,mBAAO,CAAC,eAAe,CAAC,EAAE,4BAA4B;IACvD,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,oCAAoC;IAC3D,CAAC,mBAAO,CAAC,WAAW,CAAC,EAAE,iDAAiD;IACxE,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,+BAA+B;IAC9D,CAAC,mBAAO,CAAC,mBAAmB,CAAC,EAAE,gCAAgC;CAChE,CAAA;AAED;;;;GAIG;AACH,SAAgB,WAAW,CAAC,OAAgB;IAC1C,MAAM,IAAI,GAAG,yBAAiB,CAAC,OAAO,CAAC,CAAA;IACvC,OAAO,IAAI,2BAAe,CAAC,IAAI,CAAC,CAAA;AAClC,CAAC;AAHD,kCAGC"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/Velodrome.d.ts b/dist/entities/trades/velodrome/Velodrome.d.ts deleted file mode 100644 index 6ca4d558..00000000 --- a/dist/entities/trades/velodrome/Velodrome.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { BaseProvider } from '@ethersproject/providers'; -import type { UnsignedTransaction } from '@ethersproject/transactions'; -import { ChainId, TradeType } from '../../../constants'; -import { Currency } from '../../currency'; -import { CurrencyAmount, Percent } from '../../fractions'; -import { Trade } from '../interfaces/trade'; -import { TradeOptions } from '../interfaces/trade-options'; -export interface VelodromeQuoteTypes { - amount: CurrencyAmount; - quoteCurrency: Currency; - tradeType: TradeType; - maximumSlippage?: Percent; - recipient?: string; -} -interface VelodromConstructorParams { - maximumSlippage: Percent; - currencyAmountIn: CurrencyAmount; - currencyAmountOut: CurrencyAmount; - tradeType: TradeType; - chainId: ChainId; - routes: { - from: string; - to: string; - stable: boolean; - }[]; - priceImpact: Percent; -} -/** - * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools - */ -export declare class VelodromeTrade extends Trade { - /** - * @property Route for trade to go through - */ - readonly routes?: { - from: string; - to: string; - stable: boolean; - }[]; - constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, routes, priceImpact, }: VelodromConstructorParams); - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage, recipient }: VelodromeQuoteTypes, provider?: BaseProvider): Promise; - minimumAmountOut(): CurrencyAmount; - maximumAmountIn(): CurrencyAmount; - /** - * Returns unsigned transaction for the trade - * @returns the unsigned transaction - */ - swapTransaction(options: TradeOptions): Promise; -} -export {}; diff --git a/dist/entities/trades/velodrome/Velodrome.js b/dist/entities/trades/velodrome/Velodrome.js deleted file mode 100644 index c5aa608c..00000000 --- a/dist/entities/trades/velodrome/Velodrome.js +++ /dev/null @@ -1,233 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VelodromeTrade = void 0; -const tslib_1 = require("tslib"); -const constants_1 = require("@ethersproject/constants"); -const contracts_1 = require("@ethersproject/contracts"); -const units_1 = require("@ethersproject/units"); -const debug_1 = tslib_1.__importDefault(require("debug")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_2 = require("../../../constants"); -const utils_1 = require("../../../utils"); -const currency_1 = require("../../currency"); -const fractions_1 = require("../../fractions"); -const constants_3 = require("../constants"); -const trade_1 = require("../interfaces/trade"); -const routable_platform_1 = require("../routable-platform"); -const utilts_1 = require("../uniswap-v2/utilts"); -const utils_2 = require("../utils"); -const abi_1 = require("./abi"); -const contants_1 = require("./contants"); -const utils_3 = require("./utils"); -// Debuging logger. See documentation to enable logging. -const debugVelodromeGetQuote = (0, debug_1.default)('ecoRouter:velodrome:getQuote'); -/** - * UniswapTrade uses the AutoRouter to find best trade across V2 and V3 pools - */ -class VelodromeTrade extends trade_1.Trade { - constructor({ maximumSlippage, currencyAmountIn, currencyAmountOut, tradeType, chainId, routes, priceImpact, }) { - super({ - details: undefined, - type: tradeType, - inputAmount: currencyAmountIn, - outputAmount: currencyAmountOut, - maximumSlippage, - platform: routable_platform_1.RoutablePlatform.VELODROME, - chainId, - executionPrice: new fractions_1.Price({ - baseCurrency: currencyAmountIn.currency, - quoteCurrency: currencyAmountOut.currency, - denominator: currencyAmountIn.raw, - numerator: currencyAmountOut.raw, - }), - priceImpact, - fee: new fractions_1.Percent('2', '10000'), - approveAddress: contants_1.ROUTER_ADDRESS, - }); - this.routes = routes; - } - static getQuote({ amount, quoteCurrency, tradeType, maximumSlippage, recipient }, provider) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const chainId = (0, utils_2.tryGetChainId)(amount, quoteCurrency); - (0, tiny_invariant_1.default)(chainId, 'VelodromeQuote.getQuote: chainId is required'); - // Defaults - recipient = recipient || constants_1.AddressZero; - maximumSlippage = maximumSlippage || constants_3.maximumSlippage; - provider = provider || (0, utils_2.getProvider)(chainId); - // Must match the currencies provided - (0, tiny_invariant_1.default)((yield provider.getNetwork()).chainId == chainId, `VelodromTrade.getQuote: currencies chainId does not match provider's chainId`); - const currencyIn = amount.currency; - const currencyOut = quoteCurrency; - const wrappedCurrencyIn = (0, utils_2.wrappedCurrency)(currencyIn, chainId); - const wrappedCurrencyOut = (0, utils_2.wrappedCurrency)(currencyOut, chainId); - debugVelodromeGetQuote({ - amount, - quoteCurrency, - currencyIn, - currencyOut, - tradeType, - recipient, - maximumSlippage, - }); - let bestAmountOut; - let finalValue; - try { - const bestAmount = yield (0, utils_3.getBestRoute)({ - currencyIn: wrappedCurrencyIn, - currencyOut: wrappedCurrencyOut, - amount, - provider, - chainId, - }); - bestAmountOut = bestAmount; - finalValue = bestAmount === null || bestAmount === void 0 ? void 0 : bestAmount.finalValue.toString(); - if (!bestAmount) { - return null; - } - if (tradeType === constants_2.TradeType.EXACT_OUTPUT) { - const bestAmountForOutput = yield (0, utils_3.getBestRoute)({ - currencyIn: wrappedCurrencyOut, - currencyOut: wrappedCurrencyIn, - amount: new fractions_1.TokenAmount(wrappedCurrencyOut, bestAmount.finalValue.toString()), - provider, - chainId, - }); - bestAmountOut = bestAmountForOutput; - } - if (!finalValue || !bestAmountOut) { - return null; - } - const libraryContract = new contracts_1.Contract(contants_1.LIBRARY_ADDRESS, abi_1.LIBRARY_ABI, provider); - let totalRatio = 1; - for (let i = 0; i < bestAmountOut.routes.length; i++) { - const amountIn = bestAmountOut.receiveAmounts[i]; - const res = yield libraryContract['getTradeDiff(uint256,address,address,bool)'](amountIn, bestAmountOut.routes[i].from, bestAmountOut.routes[i].to, bestAmountOut.routes[i].stable); - const decimals = tradeType === constants_2.TradeType.EXACT_INPUT ? quoteCurrency.decimals : amount.currency.decimals; - const numberA = (0, units_1.formatUnits)(res.a, decimals); - const numberB = (0, units_1.formatUnits)(res.b, decimals); - const ratio = parseFloat(numberB) / parseFloat(numberA); - totalRatio = totalRatio * ratio; - } - const calculation = Math.round((1 - totalRatio) * 1000); - const priceImpact = new fractions_1.Percent(calculation.toString(), '1000'); - const convertToNative = (amount, currency, chainId) => { - if (currency_1.Currency.isNative(currency)) - return fractions_1.CurrencyAmount.nativeCurrency(amount, chainId); - return new fractions_1.TokenAmount((0, utils_2.wrappedCurrency)(currency, chainId), amount); - }; - const currencyAmountIn = constants_2.TradeType.EXACT_INPUT === tradeType ? amount : convertToNative(finalValue.toString(), currencyOut, chainId); - const currencyAmountOut = constants_2.TradeType.EXACT_INPUT === tradeType - ? convertToNative(bestAmountOut.finalValue.toString(), currencyOut, chainId) - : convertToNative(bestAmountOut.finalValue.toString(), currencyIn, chainId); - return new VelodromeTrade({ - maximumSlippage, - currencyAmountIn, - currencyAmountOut, - tradeType, - chainId, - routes: bestAmountOut.routes, - priceImpact, - }); - } - catch (ex) { - console.error(ex); - return null; - } - }); - } - minimumAmountOut() { - if (this.tradeType === constants_2.TradeType.EXACT_OUTPUT) { - return this.outputAmount; - } - else { - const slippageAdjustedAmountOut = new fractions_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .invert() - .multiply(this.outputAmount.raw).quotient; - return this.outputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.outputAmount.token, slippageAdjustedAmountOut) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountOut, this.chainId); - } - } - maximumAmountIn() { - if (this.tradeType === constants_2.TradeType.EXACT_INPUT) { - return this.inputAmount; - } - else { - const slippageAdjustedAmountIn = new fractions_1.Fraction(constants_2.ONE) - .add(this.maximumSlippage) - .multiply(this.inputAmount.raw).quotient; - return this.inputAmount instanceof fractions_1.TokenAmount - ? new fractions_1.TokenAmount(this.inputAmount.token, slippageAdjustedAmountIn) - : fractions_1.CurrencyAmount.nativeCurrency(slippageAdjustedAmountIn, this.chainId); - } - } - /** - * Returns unsigned transaction for the trade - * @returns the unsigned transaction - */ - swapTransaction(options) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const nativeCurrency = currency_1.Currency.getNative(this.chainId); - const etherIn = this.inputAmount.currency === nativeCurrency; - const etherOut = this.outputAmount.currency === nativeCurrency; - // the router does not support both ether in and out - (0, tiny_invariant_1.default)(this.routes, 'No Avaliable routes'); - (0, tiny_invariant_1.default)(!(etherIn && etherOut), 'ETHER_IN_OUT'); - (0, tiny_invariant_1.default)(options.ttl && options.ttl > 0, 'TTL'); - (0, tiny_invariant_1.default)(this.inputAmount.currency.address && this.outputAmount.currency.address, 'No currency'); - const to = (0, utils_1.validateAndParseAddress)(options.recipient); - const amountIn = (0, utilts_1.toHex)(this.maximumAmountIn()); - const amountOut = (0, utilts_1.toHex)(this.minimumAmountOut()); - const deadline = `0x${(Math.floor(new Date().getTime() / 1000) + options.ttl).toString(16)}`; - let methodName; - let args; - let value = utilts_1.ZERO_HEX; - switch (this.tradeType) { - case constants_2.TradeType.EXACT_INPUT: - if (etherIn) { - methodName = 'swapExactETHForTokens'; - // (uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountOut, this.routes, to, deadline]; - value = amountIn; - } - else if (etherOut) { - methodName = 'swapExactTokensForETH'; - // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountIn, amountOut, this.routes, to, deadline]; - value = utilts_1.ZERO_HEX; - } - else { - methodName = 'swapExactTokensForTokens'; - // (uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) - args = [amountIn, amountOut, this.routes, to, deadline]; - value = utilts_1.ZERO_HEX; - } - break; - case constants_2.TradeType.EXACT_OUTPUT: - if (etherIn) { - methodName = 'swapETHForExactTokens'; - // (uint amountOut, address[] calldata path, address to, uint deadline) - args = [amountOut, this.routes, to, deadline]; - value = amountIn; - } - else if (etherOut) { - methodName = 'swapTokensForExactETH'; - // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) - args = [amountOut, amountIn, this.routes, to, deadline]; - value = utilts_1.ZERO_HEX; - } - else { - methodName = 'swapTokensForExactTokens'; - // (uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) - args = [amountOut, amountIn, this.routes, to, deadline]; - value = utilts_1.ZERO_HEX; - } - break; - } - return new contracts_1.Contract(contants_1.ROUTER_ADDRESS, abi_1.ROUTER_ABI).populateTransaction[methodName](...args, { value }); - }); - } -} -exports.VelodromeTrade = VelodromeTrade; -//# sourceMappingURL=Velodrome.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/Velodrome.js.map b/dist/entities/trades/velodrome/Velodrome.js.map deleted file mode 100644 index f5afcf92..00000000 --- a/dist/entities/trades/velodrome/Velodrome.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Velodrome.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/Velodrome.ts"],"names":[],"mappings":";;;;AAAA,wDAAsD;AACtD,wDAAmD;AAGnD,gDAAkD;AAClD,0DAAyB;AACzB,4EAAsC;AAEtC,kDAA4D;AAC5D,0CAAwD;AACxD,6CAAyC;AACzC,+CAAuF;AACvF,4CAAwE;AACxE,+CAA2C;AAE3C,4DAAuD;AACvD,iDAAsD;AACtD,oCAAsE;AACtE,+BAA+C;AAC/C,yCAA4D;AAC5D,mCAA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E,EAAE,KAAK,EAAE,CAAC,CAAA;QACrG,CAAC;KAAA;CACF;AApPD,wCAoPC"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/abi.d.ts b/dist/entities/trades/velodrome/abi.d.ts deleted file mode 100644 index aeb84e43..00000000 --- a/dist/entities/trades/velodrome/abi.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -export declare const ROUTER_ABI: ({ - inputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - name?: undefined; - outputs?: undefined; -} | { - inputs: ({ - internalType: string; - name: string; - type: string; - components?: undefined; - } | { - components: { - internalType: string; - name: string; - type: string; - }[]; - internalType: string; - name: string; - type: string; - })[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -} | { - stateMutability: string; - type: string; - inputs?: undefined; - name?: undefined; - outputs?: undefined; -})[]; -export declare const LIBRARY_ABI: ({ - inputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; - name?: undefined; - outputs?: undefined; -} | { - inputs: { - internalType: string; - name: string; - type: string; - }[]; - name: string; - outputs: { - internalType: string; - name: string; - type: string; - }[]; - stateMutability: string; - type: string; -})[]; diff --git a/dist/entities/trades/velodrome/abi.js b/dist/entities/trades/velodrome/abi.js deleted file mode 100644 index 0fff3f29..00000000 --- a/dist/entities/trades/velodrome/abi.js +++ /dev/null @@ -1,436 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LIBRARY_ABI = exports.ROUTER_ABI = void 0; -exports.ROUTER_ABI = [ - { - inputs: [ - { internalType: 'address', name: '_factory', type: 'address' }, - { internalType: 'address', name: '_weth', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - { - components: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - internalType: 'struct Router.route[]', - name: 'routes', - type: 'tuple[]', - }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'UNSAFE_swapExactTokensForTokens', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - ], - name: 'getAmountOut', - outputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { - components: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - internalType: 'struct Router.route[]', - name: 'routes', - type: 'tuple[]', - }, - ], - name: 'getAmountsOut', - outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'getReserves', - outputs: [ - { internalType: 'uint256', name: 'reserveA', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveB', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'pair', type: 'address' }], - name: 'isPair', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'pairFor', - outputs: [{ internalType: 'address', name: 'pair', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, - ], - name: 'quoteAddLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - name: 'quoteRemoveLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityETHWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - ], - name: 'sortTokens', - outputs: [ - { internalType: 'address', name: 'token0', type: 'address' }, - { internalType: 'address', name: 'token1', type: 'address' }, - ], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { - components: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - internalType: 'struct Router.route[]', - name: 'routes', - type: 'tuple[]', - }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactETHForTokens', - outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { - components: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - internalType: 'struct Router.route[]', - name: 'routes', - type: 'tuple[]', - }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForETH', - outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { - components: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - internalType: 'struct Router.route[]', - name: 'routes', - type: 'tuple[]', - }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokens', - outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address', name: 'tokenFrom', type: 'address' }, - { internalType: 'address', name: 'tokenTo', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokensSimple', - outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'weth', - outputs: [{ internalType: 'contract IWETH', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -]; -exports.LIBRARY_ABI = [ - { - inputs: [{ internalType: 'address', name: '_router', type: 'address' }], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'getAmountOut', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'getMinimumValue', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'getSample', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'bool', name: 'stable', type: 'bool' }, - ], - name: 'getTradeDiff', - outputs: [ - { internalType: 'uint256', name: 'a', type: 'uint256' }, - { internalType: 'uint256', name: 'b', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'pair', type: 'address' }, - ], - name: 'getTradeDiff', - outputs: [ - { internalType: 'uint256', name: 'a', type: 'uint256' }, - { internalType: 'uint256', name: 'b', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, -]; -//# sourceMappingURL=abi.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/abi.js.map b/dist/entities/trades/velodrome/abi.js.map deleted file mode 100644 index 5e8c81ad..00000000 --- a/dist/entities/trades/velodrome/abi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5D;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;YACjE;gBACE,UAAU,EAAE;oBAC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EAAE,IAAI,EAAE,SAAS,EAAE;SAC3D;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;YACvD,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;SACxD;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/contants.d.ts b/dist/entities/trades/velodrome/contants.d.ts deleted file mode 100644 index b0840033..00000000 --- a/dist/entities/trades/velodrome/contants.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ROUTER_ADDRESS = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f"; -export declare const LIBRARY_ADDRESS = "0xfb1Fc21D2937bF5a49D480189e7FEd42bF8282aD"; diff --git a/dist/entities/trades/velodrome/contants.js b/dist/entities/trades/velodrome/contants.js deleted file mode 100644 index 96d5e8db..00000000 --- a/dist/entities/trades/velodrome/contants.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LIBRARY_ADDRESS = exports.ROUTER_ADDRESS = void 0; -exports.ROUTER_ADDRESS = '0x9c12939390052919aF3155f41Bf4160Fd3666A6f'; -exports.LIBRARY_ADDRESS = '0xfb1Fc21D2937bF5a49D480189e7FEd42bF8282aD'; -//# sourceMappingURL=contants.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/contants.js.map b/dist/entities/trades/velodrome/contants.js.map deleted file mode 100644 index d3c6e975..00000000 --- a/dist/entities/trades/velodrome/contants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,4CAA4C,CAAA;AAC7D,QAAA,eAAe,GAAG,4CAA4C,CAAA"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/index.d.ts b/dist/entities/trades/velodrome/index.d.ts deleted file mode 100644 index 20b6c9bb..00000000 --- a/dist/entities/trades/velodrome/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Velodrome'; diff --git a/dist/entities/trades/velodrome/index.js b/dist/entities/trades/velodrome/index.js deleted file mode 100644 index 249dc5b5..00000000 --- a/dist/entities/trades/velodrome/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./Velodrome"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/index.js.map b/dist/entities/trades/velodrome/index.js.map deleted file mode 100644 index 540cbd46..00000000 --- a/dist/entities/trades/velodrome/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"} \ No newline at end of file diff --git a/dist/entities/trades/velodrome/utils.d.ts b/dist/entities/trades/velodrome/utils.d.ts deleted file mode 100644 index 06cea699..00000000 --- a/dist/entities/trades/velodrome/utils.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BigNumber } from '@ethersproject/bignumber'; -import { ChainId } from '../../../constants'; -import { CurrencyAmount } from '../../fractions'; -import { Token } from '../../token'; -interface GetBestRoutesParams { - currencyIn: Token; - currencyOut: Token; - amount: CurrencyAmount; - provider: any; - chainId: ChainId; -} -interface BestRoute { - finalValue: BigNumber; - receiveAmounts: BigNumber[]; - routes: { - from: string; - to: string; - stable: boolean; - }[]; - routeAsset: any; -} -export declare function getBestRoute({ currencyIn, currencyOut, amount, provider, chainId, }: GetBestRoutesParams): Promise; -export {}; diff --git a/dist/entities/trades/velodrome/utils.js b/dist/entities/trades/velodrome/utils.js deleted file mode 100644 index 8ebb0339..00000000 --- a/dist/entities/trades/velodrome/utils.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getBestRoute = void 0; -const tslib_1 = require("tslib"); -const abi_1 = require("@ethersproject/abi"); -const contracts_1 = require("@ethersproject/contracts"); -const abis_1 = require("../../../abis"); -const constants_1 = require("../../../constants"); -const utilts_1 = require("../uniswap-v2/utilts"); -const abi_2 = require("./abi"); -const contants_1 = require("./contants"); -function getBestRoute({ currencyIn, currencyOut, amount, provider, chainId, }) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - //fetch assets that are routable - const routeAssetsResponse = yield fetch('https://api.velodrome.finance/api/v1/routeAssets'); - if (!routeAssetsResponse.ok) - throw new Error('response not ok'); - const routeAssets = (yield routeAssetsResponse.json()).data; - const fromAsset = currencyIn; - const toAsset = currencyOut; - const fromAmountRaw = amount.raw.toString(); - const fromAmountHex = (0, utilts_1.toHex)(amount); - if (!fromAsset || !toAsset || !fromAmountRaw || !fromAsset.address || !toAsset.address || fromAmountRaw === '') { - return null; - } - const fromAddress = fromAsset.address; - const toAddress = toAsset.address; - let amountOuts = []; - amountOuts = routeAssets - .map((routeAsset) => { - return [ - //pairs with one hop - { - routes: [ - { - from: fromAddress, - to: routeAsset.address, - stable: true, - }, - { - from: routeAsset.address, - to: toAddress, - stable: true, - }, - ], - routeAsset, - }, - { - routes: [ - { - from: fromAddress, - to: routeAsset.address, - stable: false, - }, - { - from: routeAsset.address, - to: toAddress, - stable: false, - }, - ], - routeAsset, - }, - { - routes: [ - { - from: fromAddress, - to: routeAsset.address, - stable: true, - }, - { - from: routeAsset.address, - to: toAddress, - stable: false, - }, - ], - routeAsset, - }, - { - routes: [ - { - from: fromAddress, - to: routeAsset.address, - stable: false, - }, - { - from: routeAsset.address, - to: toAddress, - stable: true, - }, - ], - routeAsset, - }, - //direct pairs - { - routes: [{ from: fromAddress, to: toAddress, stable: true }], - routeAsset: null, - }, - { - routes: [{ from: fromAddress, to: toAddress, stable: false }], - routeAsset: null, - }, - ]; - }) - .flat(); - const velodromRouterInterface = new abi_1.Interface(abi_2.ROUTER_ABI); - //multicall for fetching output from all given pairs - const multicall2CallData = amountOuts.map((route) => { - return { - target: contants_1.ROUTER_ADDRESS, - callData: velodromRouterInterface.encodeFunctionData('getAmountsOut', [fromAmountHex, route.routes]), - }; - }); - const multicallContract = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], abis_1.MULTICALL2_ABI, provider); - const receiveAmounts = yield multicallContract.callStatic.tryAggregate(false, multicall2CallData); - //decoding multicall result into digestable form and modifing existing amounts out array - for (let i = 0; i < receiveAmounts.length; i++) { - if (receiveAmounts[i].success) { - const { amounts } = velodromRouterInterface.decodeFunctionResult('getAmountsOut', receiveAmounts[i].returnData); - amountOuts[i].receiveAmounts = amounts; - amountOuts[i].finalValue = amounts[amounts.length - 1]; - } - } - //comparing routes and returning the best one - const bestAmountOut = amountOuts - .filter((ret) => { - return ret != null; - }) - .reduce((best, current) => { - if (!best || !current.finalValue || !best.finalValue) { - return current; - } - return best.finalValue.gt(current.finalValue) ? best : current; - }, 0); - return bestAmountOut; - }); -} -exports.getBestRoute = getBestRoute; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/entities/trades/velodrome/utils.js.map b/dist/entities/trades/velodrome/utils.js.map deleted file mode 100644 index 4a37a118..00000000 --- a/dist/entities/trades/velodrome/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/entities/trades/velodrome/utils.ts"],"names":[],"mappings":";;;;AAAA,4CAA8C;AAE9C,wDAAmD;AAEnD,wCAA8C;AAC9C,kDAAgE;AAGhE,iDAA4C;AAC5C,+BAAkC;AAClC,yCAA2C;AA0B3C,SAAsB,YAAY,CAAC,EACjC,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,GACa;;QACpB,gCAAgC;QAChC,MAAM,mBA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A;IACtB,CAAC;CAAA;AA9ID,oCA8IC"} \ No newline at end of file diff --git a/dist/errors.d.ts b/dist/errors.d.ts deleted file mode 100644 index 59fda407..00000000 --- a/dist/errors.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be - * obtained by sending any amount of input. - */ -export declare class InsufficientReservesError extends Error { - readonly isInsufficientReservesError = true; - constructor(); -} -/** - * Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less - * than the price of a single unit of output after fees. - */ -export declare class InsufficientInputAmountError extends Error { - readonly isInsufficientInputAmountError = true; - constructor(); -} diff --git a/dist/errors.js b/dist/errors.js deleted file mode 100644 index 2c698477..00000000 --- a/dist/errors.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InsufficientInputAmountError = exports.InsufficientReservesError = void 0; -// see https://stackoverflow.com/a/41102306 -const CAN_SET_PROTOTYPE = 'setPrototypeOf' in Object; -/** - * Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be - * obtained by sending any amount of input. - */ -class InsufficientReservesError extends Error { - constructor() { - super(); - this.isInsufficientReservesError = true; - this.name = this.constructor.name; - if (CAN_SET_PROTOTYPE) - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.InsufficientReservesError = InsufficientReservesError; -/** - * Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less - * than the price of a single unit of output after fees. - */ -class InsufficientInputAmountError extends Error { - constructor() { - super(); - this.isInsufficientInputAmountError = true; - this.name = this.constructor.name; - if (CAN_SET_PROTOTYPE) - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.InsufficientInputAmountError = InsufficientInputAmountError; -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/dist/errors.js.map b/dist/errors.js.map deleted file mode 100644 index 55a9e55c..00000000 --- a/dist/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,MAAM,iBAAiB,GAAG,gBAAgB,IAAI,MAAM,CAAA;AAEpD;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,KAAK;IAGlD;QACE,KAAK,EAAE,CAAA;QAHO,gCAA2B,GAAG,IAAI,CAAA;QAIhD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;QACjC,IAAI,iBAAiB;YAAE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC1E,CAAC;CACF;AARD,8DAQC;AAED;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,KAAK;IAGrD;QACE,KAAK,EAAE,CAAA;QAHO,mCAA8B,GAAG,IAAI,CAAA;QAInD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;QACjC,IAAI,iBAAiB;YAAE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC1E,CAAC;CACF;AARD,oEAQC"} \ No newline at end of file diff --git a/dist/fetcher.d.ts b/dist/fetcher.d.ts deleted file mode 100644 index 6a8b0325..00000000 --- a/dist/fetcher.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { BigintIsh, ChainId } from './constants'; -import { Pair } from './entities/pair'; -import { Token } from './entities/token'; -import { UniswapV2RoutablePlatform } from './entities/trades/routable-platform'; -/** - * Contains methods for constructing instances of pairs and tokens from on-chain data. - */ -export declare abstract class Fetcher { - /** - * Cannot be constructed. - */ - private constructor(); - /** - * Fetches information about a pair and constructs a pair from the given two tokens. - * @param tokenA first token - * @param tokenB second token - * @param provider the provider to use to fetch the data - */ - static fetchPairData(tokenA: Token, tokenB: Token, provider?: import("@ethersproject/providers").BaseProvider, platform?: UniswapV2RoutablePlatform): Promise; - /** - * Fetches swap fee information from a liquidity token of a token pair - * @param liquidityToken the liquidity token from which the swap fee info will be fetched - * @param provider the provider to use to fetch the data - */ - static fetchSwapFee(liquidityToken: Token, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ - fee: BigintIsh; - owner: string; - }>; - /** - * Fetches swap fee information from liquidity tokens of token pairs - * @param liquidityToken the liquidity tokens from which the swap fee info will be fetched - * @param provider the provider to use to fetch the data - */ - static fetchSwapFees(liquidityTokens: Token[], provider?: import("@ethersproject/providers").BaseProvider): Promise<{ - fee: BigintIsh; - owner: string; - }[]>; - /** - * Fetches swap fee information of all registered token pairs from factory - * @param chainId the chainId of the network to fecth the swap fees - * @param swapFeesCache a cache of already fetched fees to be skiped - * @param provider the provider to use to fetch the data - */ - static fetchAllSwapFees(chainId: ChainId, swapFeesCache?: { - [key: string]: { - fee: BigintIsh; - owner: string; - }; - }, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ - [key: string]: { - fee: BigintIsh; - owner: string; - }; - }>; - /** - * Fetches protocol fee information from the token pair factory - * @param chainId the chainId of the network to fecth the protocol fee - * @param provider the provider to use to fetch the data - */ - static fetchProtocolFee(chainId: ChainId, provider?: import("@ethersproject/providers").BaseProvider): Promise<{ - feeDenominator: BigintIsh; - feeReceiver: string; - }>; -} diff --git a/dist/fetcher.js b/dist/fetcher.js deleted file mode 100644 index ed2e7b76..00000000 --- a/dist/fetcher.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Fetcher = void 0; -const tslib_1 = require("tslib"); -const contracts_1 = require("@ethersproject/contracts"); -const networks_1 = require("@ethersproject/networks"); -const providers_1 = require("@ethersproject/providers"); -const IDXswapFactory_json_1 = tslib_1.__importDefault(require("@swapr/core/build/IDXswapFactory.json")); -const IDXswapPair_json_1 = tslib_1.__importDefault(require("@swapr/core/build/IDXswapPair.json")); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const abis_1 = require("./abis"); -const constants_1 = require("./constants"); -const tokenAmount_1 = require("./entities/fractions/tokenAmount"); -const pair_1 = require("./entities/pair"); -const token_1 = require("./entities/token"); -const routable_platform_1 = require("./entities/trades/routable-platform"); -/** - * Contains methods for constructing instances of pairs and tokens from on-chain data. - */ -class Fetcher { - /** - * Cannot be constructed. - */ - constructor() { - // do nothing. - } - /** - * Fetches information about a pair and constructs a pair from the given two tokens. - * @param tokenA first token - * @param tokenB second token - * @param provider the provider to use to fetch the data - */ - static fetchPairData(tokenA, tokenB, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(tokenA.chainId)), platform = routable_platform_1.UniswapV2RoutablePlatform.SWAPR) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - (0, tiny_invariant_1.default)(tokenA.chainId === tokenB.chainId, 'CHAIN_ID'); - const address = pair_1.Pair.getAddress(tokenA, tokenB, platform); - const [reserves0, reserves1] = yield new contracts_1.Contract(address, IDXswapPair_json_1.default.abi, provider).getReserves(); - const balances = tokenA.sortsBefore(tokenB) ? [reserves0, reserves1] : [reserves1, reserves0]; - const tokenAmountA = new tokenAmount_1.TokenAmount(tokenA, balances[0]); - const tokenAmountB = new tokenAmount_1.TokenAmount(tokenB, balances[1]); - const tokenAmounts = tokenAmountA.token.sortsBefore(tokenAmountB.token) // does safety checks - ? [tokenAmountA, tokenAmountB] - : [tokenAmountB, tokenAmountA]; - const liquidityToken = new token_1.Token(tokenAmounts[0].token.chainId, pair_1.Pair.getAddress(tokenAmounts[0].token, tokenAmounts[1].token, platform), 18, 'DXS', 'DXswap'); - const swapFee = jsbi_1.default.BigInt(yield new contracts_1.Contract(liquidityToken.address, IDXswapPair_json_1.default.abi, provider).swapFee()); - const protocolFeeDenominator = jsbi_1.default.BigInt(yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[tokenAmountA.token.chainId], IDXswapFactory_json_1.default.abi, provider).protocolFeeDenominator()); - return new pair_1.Pair(tokenAmountA, tokenAmountB, swapFee, protocolFeeDenominator); - }); - } - /** - * Fetches swap fee information from a liquidity token of a token pair - * @param liquidityToken the liquidity token from which the swap fee info will be fetched - * @param provider the provider to use to fetch the data - */ - static fetchSwapFee(liquidityToken, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(liquidityToken.chainId))) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - return { - fee: jsbi_1.default.BigInt(yield new contracts_1.Contract(liquidityToken.address, IDXswapPair_json_1.default.abi, provider).swapFee()), - owner: yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[liquidityToken.chainId], IDXswapFactory_json_1.default.abi, provider).feeToSetter(), - }; - }); - } - /** - * Fetches swap fee information from liquidity tokens of token pairs - * @param liquidityToken the liquidity tokens from which the swap fee info will be fetched - * @param provider the provider to use to fetch the data - */ - static fetchSwapFees(liquidityTokens, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(liquidityTokens[0].chainId))) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const multicall = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[liquidityTokens[0].chainId], abis_1.MULTICALL2_ABI, provider); - const factoryContract = new contracts_1.Contract(constants_1.FACTORY_ADDRESS[liquidityTokens[0].chainId], IDXswapFactory_json_1.default.abi, provider); - const liquidityTokenContract = new contracts_1.Contract(liquidityTokens[0].address, IDXswapPair_json_1.default.abi, provider); - const calls = []; - calls.push({ - address: factoryContract.address, - callData: factoryContract.interface.encodeFunctionData(factoryContract.interface.getFunction('feeToSetter()')), - }); - for (let tokenPairsIndex = 0; tokenPairsIndex < liquidityTokens.length; tokenPairsIndex++) { - calls.push({ - address: liquidityTokens[tokenPairsIndex].address, - callData: liquidityTokenContract.interface.encodeFunctionData(liquidityTokenContract.interface.getFunction('swapFee()')), - }); - } - const result = yield multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])); - const owner = factoryContract.interface.decodeFunctionResult(factoryContract.interface.getFunction('feeToSetter()'), result.returnData[0])[0]; - const fees = []; - for (let resultIndex = 1; resultIndex < result.returnData.length; resultIndex++) { - fees.push({ - fee: jsbi_1.default.BigInt(liquidityTokenContract.interface.decodeFunctionResult(liquidityTokenContract.interface.getFunction('swapFee()'), result.returnData[resultIndex])[0]), - owner, - }); - } - return fees; - }); - } - /** - * Fetches swap fee information of all registered token pairs from factory - * @param chainId the chainId of the network to fecth the swap fees - * @param swapFeesCache a cache of already fetched fees to be skiped - * @param provider the provider to use to fetch the data - */ - static fetchAllSwapFees(chainId, swapFeesCache = {}, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(chainId))) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const multicall = new contracts_1.Contract(constants_1.MULTICALL2_ADDRESS[chainId], abis_1.MULTICALL2_ABI, provider); - const factoryContract = new contracts_1.Contract(constants_1.FACTORY_ADDRESS[chainId], IDXswapFactory_json_1.default.abi, provider); - const allPairsLength = yield factoryContract.allPairsLength(); - const allSwapPairs = {}; - // Get first token pairs from cache - const tokenPairsCache = Object.keys(swapFeesCache); - const tokenPairsToFetch = []; - for (let tokenPaisCacheIndex = 0; tokenPaisCacheIndex < tokenPairsCache.length; tokenPaisCacheIndex++) { - allSwapPairs[tokenPairsCache[tokenPaisCacheIndex]] = { - fee: swapFeesCache[tokenPairsCache[tokenPaisCacheIndex]].fee, - owner: swapFeesCache[tokenPairsCache[tokenPaisCacheIndex]].owner, - }; - } - // Get rest of the token pairs that are not cached - const calls = []; - for (let pairIndex = tokenPairsCache.length; pairIndex < allPairsLength; pairIndex++) - calls.push({ - address: factoryContract.address, - callData: factoryContract.interface.encodeFunctionData(factoryContract.interface.getFunction('allPairs(uint)'), [pairIndex]), - }); - const result = yield multicall.callStatic.aggregate(calls.map((call) => [call.address, call.callData])); - for (let resultIndex = 0; resultIndex < result.returnData.length; resultIndex++) { - const tokenPairAddress = factoryContract.interface.decodeFunctionResult(factoryContract.interface.getFunction('allPairs(uint256)'), result.returnData[resultIndex])[0]; - tokenPairsToFetch.push(new token_1.Token(chainId, tokenPairAddress, 18, 'DXS', 'DXswap')); - } - // Fetch the pairs that we dont have the fee and owner - const swapFeesFetched = tokenPairsToFetch.length === 0 ? [] : yield this.fetchSwapFees(tokenPairsToFetch, provider); - for (let tokenPairsToFetchIndex = 0; tokenPairsToFetchIndex < tokenPairsToFetch.length; tokenPairsToFetchIndex++) - allSwapPairs[tokenPairsToFetch[tokenPairsToFetchIndex].address] = swapFeesFetched[tokenPairsToFetchIndex]; - return allSwapPairs; - }); - } - /** - * Fetches protocol fee information from the token pair factory - * @param chainId the chainId of the network to fecth the protocol fee - * @param provider the provider to use to fetch the data - */ - static fetchProtocolFee(chainId, provider = (0, providers_1.getDefaultProvider)((0, networks_1.getNetwork)(chainId))) { - return tslib_1.__awaiter(this, void 0, void 0, function* () { - const factoryContract = yield new contracts_1.Contract(constants_1.FACTORY_ADDRESS[chainId], IDXswapFactory_json_1.default.abi, provider); - const feeDenominator = yield factoryContract.protocolFeeDenominator(); - const feeReceiver = yield factoryContract.feeTo(); - return { feeDenominator, feeReceiver }; - }); - } -} -exports.Fetcher = Fetcher; -//# sourceMappingURL=fetcher.js.map \ No newline at end of file diff --git a/dist/fetcher.js.map b/dist/fetcher.js.map deleted file mode 100644 index 05f6c2c6..00000000 --- a/dist/fetcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../src/fetcher.ts"],"names":[],"mappings":";;;;AAAA,wDAAmD;AACnD,sDAAoD;AACpD,wDAA6D;AAC7D,wGAAkE;AAClE,kGAA4D;AAC5D,wDAAuB;AACvB,4EAAsC;AAEtC,iCAAuC;AACvC,2CAAqF;AACrF,kEAA8D;AAC9D,0CAAsC;AACtC,4CAAwC;AACxC,2EAA+E;AAE/E;;GAEG;AACH,MAAsB,OAAO;IAC3B;;OAEG;IACH;QACE,cAAc;IAChB,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAO,aAAa,CAC/B,MAAa,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D;YACtD,MAAM,eAAe,GAAG,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA;YACnH,KAAK,IAAI,sBAAsB,GAAG,CAAC,EAAE,sBAAsB,GAAG,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,EAAE;gBAC9G,YAAY,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAA;YAC3G,OAAO,YAAY,CAAA;QACrB,CAAC;KAAA;IAED;;;;OAIG;IACI,MAAM,CAAO,gBAAgB,CAClC,OAAgB,EAChB,QAAQ,GAAG,IAAA,8BAAkB,EAAC,IAAA,qBAAU,EAAC,OAAO,CAAC,CAAC;;YAKlD,MAAM,eAAe,GAAG,MAAM,IAAI,oBAAQ,CAAC,2BAAe,CAAC,OAAO,CAAC,EAAE,6BAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAClG,MAAM,cAAc,GAAG,MAAM,eAAe,CAAC,sBAAsB,EAAE,CAAA;YACrE,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC,KAAK,EAAE,CAAA;YACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,CAAA;QACxC,CAAC;KAAA;CACF;AAvMD,0BAuMC"} \ No newline at end of file diff --git a/dist/generated/graphql/index.d.ts b/dist/generated/graphql/index.d.ts deleted file mode 100644 index cb4d6940..00000000 --- a/dist/generated/graphql/index.d.ts +++ /dev/null @@ -1,5349 +0,0 @@ -import { GraphQLClient } from 'graphql-request'; -import * as Dom from 'graphql-request/dist/types.dom'; -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { - [K in keyof T]: T[K]; -}; -export type MakeOptional = Omit & { - [SubKey in K]?: Maybe; -}; -export type MakeMaybe = Omit & { - [SubKey in K]: Maybe; -}; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - BigDecimal: any; - BigInt: any; - Bytes: any; - Int8: any; -}; -export type BlockChangedFilter = { - number_gte: Scalars['Int']; -}; -export type Block_Height = { - hash?: InputMaybe; - number?: InputMaybe; - number_gte?: InputMaybe; -}; -export type Bundle = { - __typename?: 'Bundle'; - id: Scalars['ID']; - nativeCurrencyPrice: Scalars['BigDecimal']; -}; -export type Bundle_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - nativeCurrencyPrice?: InputMaybe; - nativeCurrencyPrice_gt?: InputMaybe; - nativeCurrencyPrice_gte?: InputMaybe; - nativeCurrencyPrice_in?: InputMaybe>; - nativeCurrencyPrice_lt?: InputMaybe; - nativeCurrencyPrice_lte?: InputMaybe; - nativeCurrencyPrice_not?: InputMaybe; - nativeCurrencyPrice_not_in?: InputMaybe>; - or?: InputMaybe>>; -}; -export declare enum Bundle_OrderBy { - Id = "id", - NativeCurrencyPrice = "nativeCurrencyPrice" -} -export type Burn = { - __typename?: 'Burn'; - amount0?: Maybe; - amount1?: Maybe; - amountUSD?: Maybe; - feeLiquidity?: Maybe; - feeTo?: Maybe; - id: Scalars['ID']; - liquidity: Scalars['BigDecimal']; - logIndex?: Maybe; - needsComplete: Scalars['Boolean']; - pair: Pair; - sender?: Maybe; - timestamp: Scalars['BigInt']; - to?: Maybe; - transaction: Transaction; -}; -export type Burn_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount0?: InputMaybe; - amount0_gt?: InputMaybe; - amount0_gte?: InputMaybe; - amount0_in?: InputMaybe>; - amount0_lt?: InputMaybe; - amount0_lte?: InputMaybe; - amount0_not?: InputMaybe; - amount0_not_in?: InputMaybe>; - amount1?: InputMaybe; - amount1_gt?: InputMaybe; - amount1_gte?: InputMaybe; - amount1_in?: InputMaybe>; - amount1_lt?: InputMaybe; - amount1_lte?: InputMaybe; - amount1_not?: InputMaybe; - amount1_not_in?: InputMaybe>; - amountUSD?: InputMaybe; - amountUSD_gt?: InputMaybe; - amountUSD_gte?: InputMaybe; - amountUSD_in?: InputMaybe>; - amountUSD_lt?: InputMaybe; - amountUSD_lte?: InputMaybe; - amountUSD_not?: InputMaybe; - amountUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - feeLiquidity?: InputMaybe; - feeLiquidity_gt?: InputMaybe; - feeLiquidity_gte?: InputMaybe; - feeLiquidity_in?: InputMaybe>; - feeLiquidity_lt?: InputMaybe; - feeLiquidity_lte?: InputMaybe; - feeLiquidity_not?: InputMaybe; - feeLiquidity_not_in?: InputMaybe>; - feeTo?: InputMaybe; - feeTo_contains?: InputMaybe; - feeTo_gt?: InputMaybe; - feeTo_gte?: InputMaybe; - feeTo_in?: InputMaybe>; - feeTo_lt?: InputMaybe; - feeTo_lte?: InputMaybe; - feeTo_not?: InputMaybe; - feeTo_not_contains?: InputMaybe; - feeTo_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - needsComplete?: InputMaybe; - needsComplete_in?: InputMaybe>; - needsComplete_not?: InputMaybe; - needsComplete_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_contains?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_contains?: InputMaybe; - to_gt?: InputMaybe; - to_gte?: InputMaybe; - to_in?: InputMaybe>; - to_lt?: InputMaybe; - to_lte?: InputMaybe; - to_not?: InputMaybe; - to_not_contains?: InputMaybe; - to_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; -export declare enum Burn_OrderBy { - Amount0 = "amount0", - Amount1 = "amount1", - AmountUsd = "amountUSD", - FeeLiquidity = "feeLiquidity", - FeeTo = "feeTo", - Id = "id", - Liquidity = "liquidity", - LogIndex = "logIndex", - NeedsComplete = "needsComplete", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Sender = "sender", - Timestamp = "timestamp", - To = "to", - Transaction = "transaction", - TransactionBlockNumber = "transaction__blockNumber", - TransactionId = "transaction__id", - TransactionTimestamp = "transaction__timestamp" -} -export type Claim = { - __typename?: 'Claim'; - amounts: Array; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type Claim_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum Claim_OrderBy { - Amounts = "amounts", - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type DailyUniqueAddressInteraction = { - __typename?: 'DailyUniqueAddressInteraction'; - addresses: Array; - id: Scalars['ID']; - timestamp: Scalars['Int']; -}; -export type DailyUniqueAddressInteraction_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - addresses?: InputMaybe>; - addresses_contains?: InputMaybe>; - addresses_contains_nocase?: InputMaybe>; - addresses_not?: InputMaybe>; - addresses_not_contains?: InputMaybe>; - addresses_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; -export declare enum DailyUniqueAddressInteraction_OrderBy { - Addresses = "addresses", - Id = "id", - Timestamp = "timestamp" -} -export type Deposit = { - __typename?: 'Deposit'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type Deposit_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum Deposit_OrderBy { - Amount = "amount", - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type LiquidityMiningCampaign = { - __typename?: 'LiquidityMiningCampaign'; - claims: Array; - deposits: Array; - duration: Scalars['BigInt']; - endsAt: Scalars['BigInt']; - id: Scalars['ID']; - initialized: Scalars['Boolean']; - liquidityMiningPositionSnapshots: Array; - liquidityMiningPositions: Array; - locked: Scalars['Boolean']; - owner: Scalars['Bytes']; - recoveries: Array; - rewards: Array; - stakablePair: Pair; - stakedAmount: Scalars['BigDecimal']; - stakingCap: Scalars['BigDecimal']; - startsAt: Scalars['BigInt']; - withdrawals: Array; -}; -export type LiquidityMiningCampaignClaimsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignDepositsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignLiquidityMiningPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignLiquidityMiningPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignRecoveriesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignRewardsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignWithdrawalsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type LiquidityMiningCampaignReward = { - __typename?: 'LiquidityMiningCampaignReward'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - token: Token; -}; -export type LiquidityMiningCampaignReward_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; -}; -export declare enum LiquidityMiningCampaignReward_OrderBy { - Amount = "amount", - Id = "id", - Token = "token", - TokenDecimals = "token__decimals", - TokenDerivedNativeCurrency = "token__derivedNativeCurrency", - TokenId = "token__id", - TokenName = "token__name", - TokenSymbol = "token__symbol", - TokenTotalLiquidity = "token__totalLiquidity", - TokenTotalSupply = "token__totalSupply", - TokenTradeVolume = "token__tradeVolume", - TokenTradeVolumeUsd = "token__tradeVolumeUSD", - TokenTxCount = "token__txCount", - TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD" -} -export type LiquidityMiningCampaign_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - claims_?: InputMaybe; - deposits_?: InputMaybe; - duration?: InputMaybe; - duration_gt?: InputMaybe; - duration_gte?: InputMaybe; - duration_in?: InputMaybe>; - duration_lt?: InputMaybe; - duration_lte?: InputMaybe; - duration_not?: InputMaybe; - duration_not_in?: InputMaybe>; - endsAt?: InputMaybe; - endsAt_gt?: InputMaybe; - endsAt_gte?: InputMaybe; - endsAt_in?: InputMaybe>; - endsAt_lt?: InputMaybe; - endsAt_lte?: InputMaybe; - endsAt_not?: InputMaybe; - endsAt_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - initialized?: InputMaybe; - initialized_in?: InputMaybe>; - initialized_not?: InputMaybe; - initialized_not_in?: InputMaybe>; - liquidityMiningPositionSnapshots_?: InputMaybe; - liquidityMiningPositions_?: InputMaybe; - locked?: InputMaybe; - locked_in?: InputMaybe>; - locked_not?: InputMaybe; - locked_not_in?: InputMaybe>; - or?: InputMaybe>>; - owner?: InputMaybe; - owner_contains?: InputMaybe; - owner_gt?: InputMaybe; - owner_gte?: InputMaybe; - owner_in?: InputMaybe>; - owner_lt?: InputMaybe; - owner_lte?: InputMaybe; - owner_not?: InputMaybe; - owner_not_contains?: InputMaybe; - owner_not_in?: InputMaybe>; - recoveries_?: InputMaybe; - rewards?: InputMaybe>; - rewards_?: InputMaybe; - rewards_contains?: InputMaybe>; - rewards_contains_nocase?: InputMaybe>; - rewards_not?: InputMaybe>; - rewards_not_contains?: InputMaybe>; - rewards_not_contains_nocase?: InputMaybe>; - stakablePair?: InputMaybe; - stakablePair_?: InputMaybe; - stakablePair_contains?: InputMaybe; - stakablePair_contains_nocase?: InputMaybe; - stakablePair_ends_with?: InputMaybe; - stakablePair_ends_with_nocase?: InputMaybe; - stakablePair_gt?: InputMaybe; - stakablePair_gte?: InputMaybe; - stakablePair_in?: InputMaybe>; - stakablePair_lt?: InputMaybe; - stakablePair_lte?: InputMaybe; - stakablePair_not?: InputMaybe; - stakablePair_not_contains?: InputMaybe; - stakablePair_not_contains_nocase?: InputMaybe; - stakablePair_not_ends_with?: InputMaybe; - stakablePair_not_ends_with_nocase?: InputMaybe; - stakablePair_not_in?: InputMaybe>; - stakablePair_not_starts_with?: InputMaybe; - stakablePair_not_starts_with_nocase?: InputMaybe; - stakablePair_starts_with?: InputMaybe; - stakablePair_starts_with_nocase?: InputMaybe; - stakedAmount?: InputMaybe; - stakedAmount_gt?: InputMaybe; - stakedAmount_gte?: InputMaybe; - stakedAmount_in?: InputMaybe>; - stakedAmount_lt?: InputMaybe; - stakedAmount_lte?: InputMaybe; - stakedAmount_not?: InputMaybe; - stakedAmount_not_in?: InputMaybe>; - stakingCap?: InputMaybe; - stakingCap_gt?: InputMaybe; - stakingCap_gte?: InputMaybe; - stakingCap_in?: InputMaybe>; - stakingCap_lt?: InputMaybe; - stakingCap_lte?: InputMaybe; - stakingCap_not?: InputMaybe; - stakingCap_not_in?: InputMaybe>; - startsAt?: InputMaybe; - startsAt_gt?: InputMaybe; - startsAt_gte?: InputMaybe; - startsAt_in?: InputMaybe>; - startsAt_lt?: InputMaybe; - startsAt_lte?: InputMaybe; - startsAt_not?: InputMaybe; - startsAt_not_in?: InputMaybe>; - withdrawals_?: InputMaybe; -}; -export declare enum LiquidityMiningCampaign_OrderBy { - Claims = "claims", - Deposits = "deposits", - Duration = "duration", - EndsAt = "endsAt", - Id = "id", - Initialized = "initialized", - LiquidityMiningPositionSnapshots = "liquidityMiningPositionSnapshots", - LiquidityMiningPositions = "liquidityMiningPositions", - Locked = "locked", - Owner = "owner", - Recoveries = "recoveries", - Rewards = "rewards", - StakablePair = "stakablePair", - StakablePairCreatedAtBlockNumber = "stakablePair__createdAtBlockNumber", - StakablePairCreatedAtTimestamp = "stakablePair__createdAtTimestamp", - StakablePairId = "stakablePair__id", - StakablePairLiquidityProviderCount = "stakablePair__liquidityProviderCount", - StakablePairReserve0 = "stakablePair__reserve0", - StakablePairReserve1 = "stakablePair__reserve1", - StakablePairReserveNativeCurrency = "stakablePair__reserveNativeCurrency", - StakablePairReserveUsd = "stakablePair__reserveUSD", - StakablePairSwapFee = "stakablePair__swapFee", - StakablePairToken0Price = "stakablePair__token0Price", - StakablePairToken1Price = "stakablePair__token1Price", - StakablePairTotalSupply = "stakablePair__totalSupply", - StakablePairTrackedReserveNativeCurrency = "stakablePair__trackedReserveNativeCurrency", - StakablePairTxCount = "stakablePair__txCount", - StakablePairUntrackedVolumeUsd = "stakablePair__untrackedVolumeUSD", - StakablePairVolumeToken0 = "stakablePair__volumeToken0", - StakablePairVolumeToken1 = "stakablePair__volumeToken1", - StakablePairVolumeUsd = "stakablePair__volumeUSD", - StakedAmount = "stakedAmount", - StakingCap = "stakingCap", - StartsAt = "startsAt", - Withdrawals = "withdrawals" -} -export type LiquidityMiningPosition = { - __typename?: 'LiquidityMiningPosition'; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - stakedAmount: Scalars['BigDecimal']; - targetedPair: Pair; - user: User; -}; -export type LiquidityMiningPositionSnapshot = { - __typename?: 'LiquidityMiningPositionSnapshot'; - block: Scalars['Int']; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - liquidityMiningPosition: LiquidityMiningPosition; - pair: Pair; - reserve0: Scalars['BigDecimal']; - reserve1: Scalars['BigDecimal']; - reserveUSD: Scalars['BigDecimal']; - stakedLiquidityTokenBalance: Scalars['BigDecimal']; - timestamp: Scalars['Int']; - token0PriceUSD: Scalars['BigDecimal']; - token1PriceUSD: Scalars['BigDecimal']; - totalStakedLiquidityToken: Scalars['BigDecimal']; - user: User; -}; -export type LiquidityMiningPositionSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - liquidityMiningPosition?: InputMaybe; - liquidityMiningPosition_?: InputMaybe; - liquidityMiningPosition_contains?: InputMaybe; - liquidityMiningPosition_contains_nocase?: InputMaybe; - liquidityMiningPosition_ends_with?: InputMaybe; - liquidityMiningPosition_ends_with_nocase?: InputMaybe; - liquidityMiningPosition_gt?: InputMaybe; - liquidityMiningPosition_gte?: InputMaybe; - liquidityMiningPosition_in?: InputMaybe>; - liquidityMiningPosition_lt?: InputMaybe; - liquidityMiningPosition_lte?: InputMaybe; - liquidityMiningPosition_not?: InputMaybe; - liquidityMiningPosition_not_contains?: InputMaybe; - liquidityMiningPosition_not_contains_nocase?: InputMaybe; - liquidityMiningPosition_not_ends_with?: InputMaybe; - liquidityMiningPosition_not_ends_with_nocase?: InputMaybe; - liquidityMiningPosition_not_in?: InputMaybe>; - liquidityMiningPosition_not_starts_with?: InputMaybe; - liquidityMiningPosition_not_starts_with_nocase?: InputMaybe; - liquidityMiningPosition_starts_with?: InputMaybe; - liquidityMiningPosition_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - reserve0?: InputMaybe; - reserve0_gt?: InputMaybe; - reserve0_gte?: InputMaybe; - reserve0_in?: InputMaybe>; - reserve0_lt?: InputMaybe; - reserve0_lte?: InputMaybe; - reserve0_not?: InputMaybe; - reserve0_not_in?: InputMaybe>; - reserve1?: InputMaybe; - reserve1_gt?: InputMaybe; - reserve1_gte?: InputMaybe; - reserve1_in?: InputMaybe>; - reserve1_lt?: InputMaybe; - reserve1_lte?: InputMaybe; - reserve1_not?: InputMaybe; - reserve1_not_in?: InputMaybe>; - reserveUSD?: InputMaybe; - reserveUSD_gt?: InputMaybe; - reserveUSD_gte?: InputMaybe; - reserveUSD_in?: InputMaybe>; - reserveUSD_lt?: InputMaybe; - reserveUSD_lte?: InputMaybe; - reserveUSD_not?: InputMaybe; - reserveUSD_not_in?: InputMaybe>; - stakedLiquidityTokenBalance?: InputMaybe; - stakedLiquidityTokenBalance_gt?: InputMaybe; - stakedLiquidityTokenBalance_gte?: InputMaybe; - stakedLiquidityTokenBalance_in?: InputMaybe>; - stakedLiquidityTokenBalance_lt?: InputMaybe; - stakedLiquidityTokenBalance_lte?: InputMaybe; - stakedLiquidityTokenBalance_not?: InputMaybe; - stakedLiquidityTokenBalance_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - token0PriceUSD?: InputMaybe; - token0PriceUSD_gt?: InputMaybe; - token0PriceUSD_gte?: InputMaybe; - token0PriceUSD_in?: InputMaybe>; - token0PriceUSD_lt?: InputMaybe; - token0PriceUSD_lte?: InputMaybe; - token0PriceUSD_not?: InputMaybe; - token0PriceUSD_not_in?: InputMaybe>; - token1PriceUSD?: InputMaybe; - token1PriceUSD_gt?: InputMaybe; - token1PriceUSD_gte?: InputMaybe; - token1PriceUSD_in?: InputMaybe>; - token1PriceUSD_lt?: InputMaybe; - token1PriceUSD_lte?: InputMaybe; - token1PriceUSD_not?: InputMaybe; - token1PriceUSD_not_in?: InputMaybe>; - totalStakedLiquidityToken?: InputMaybe; - totalStakedLiquidityToken_gt?: InputMaybe; - totalStakedLiquidityToken_gte?: InputMaybe; - totalStakedLiquidityToken_in?: InputMaybe>; - totalStakedLiquidityToken_lt?: InputMaybe; - totalStakedLiquidityToken_lte?: InputMaybe; - totalStakedLiquidityToken_not?: InputMaybe; - totalStakedLiquidityToken_not_in?: InputMaybe>; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; -}; -export declare enum LiquidityMiningPositionSnapshot_OrderBy { - Block = "block", - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - LiquidityMiningPosition = "liquidityMiningPosition", - LiquidityMiningPositionId = "liquidityMiningPosition__id", - LiquidityMiningPositionStakedAmount = "liquidityMiningPosition__stakedAmount", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Reserve0 = "reserve0", - Reserve1 = "reserve1", - ReserveUsd = "reserveUSD", - StakedLiquidityTokenBalance = "stakedLiquidityTokenBalance", - Timestamp = "timestamp", - Token0PriceUsd = "token0PriceUSD", - Token1PriceUsd = "token1PriceUSD", - TotalStakedLiquidityToken = "totalStakedLiquidityToken", - User = "user", - UserId = "user__id", - UserUsdSwapped = "user__usdSwapped" -} -export type LiquidityMiningPosition_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - stakedAmount?: InputMaybe; - stakedAmount_gt?: InputMaybe; - stakedAmount_gte?: InputMaybe; - stakedAmount_in?: InputMaybe>; - stakedAmount_lt?: InputMaybe; - stakedAmount_lte?: InputMaybe; - stakedAmount_not?: InputMaybe; - stakedAmount_not_in?: InputMaybe>; - targetedPair?: InputMaybe; - targetedPair_?: InputMaybe; - targetedPair_contains?: InputMaybe; - targetedPair_contains_nocase?: InputMaybe; - targetedPair_ends_with?: InputMaybe; - targetedPair_ends_with_nocase?: InputMaybe; - targetedPair_gt?: InputMaybe; - targetedPair_gte?: InputMaybe; - targetedPair_in?: InputMaybe>; - targetedPair_lt?: InputMaybe; - targetedPair_lte?: InputMaybe; - targetedPair_not?: InputMaybe; - targetedPair_not_contains?: InputMaybe; - targetedPair_not_contains_nocase?: InputMaybe; - targetedPair_not_ends_with?: InputMaybe; - targetedPair_not_ends_with_nocase?: InputMaybe; - targetedPair_not_in?: InputMaybe>; - targetedPair_not_starts_with?: InputMaybe; - targetedPair_not_starts_with_nocase?: InputMaybe; - targetedPair_starts_with?: InputMaybe; - targetedPair_starts_with_nocase?: InputMaybe; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; -}; -export declare enum LiquidityMiningPosition_OrderBy { - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - StakedAmount = "stakedAmount", - TargetedPair = "targetedPair", - TargetedPairCreatedAtBlockNumber = "targetedPair__createdAtBlockNumber", - TargetedPairCreatedAtTimestamp = "targetedPair__createdAtTimestamp", - TargetedPairId = "targetedPair__id", - TargetedPairLiquidityProviderCount = "targetedPair__liquidityProviderCount", - TargetedPairReserve0 = "targetedPair__reserve0", - TargetedPairReserve1 = "targetedPair__reserve1", - TargetedPairReserveNativeCurrency = "targetedPair__reserveNativeCurrency", - TargetedPairReserveUsd = "targetedPair__reserveUSD", - TargetedPairSwapFee = "targetedPair__swapFee", - TargetedPairToken0Price = "targetedPair__token0Price", - TargetedPairToken1Price = "targetedPair__token1Price", - TargetedPairTotalSupply = "targetedPair__totalSupply", - TargetedPairTrackedReserveNativeCurrency = "targetedPair__trackedReserveNativeCurrency", - TargetedPairTxCount = "targetedPair__txCount", - TargetedPairUntrackedVolumeUsd = "targetedPair__untrackedVolumeUSD", - TargetedPairVolumeToken0 = "targetedPair__volumeToken0", - TargetedPairVolumeToken1 = "targetedPair__volumeToken1", - TargetedPairVolumeUsd = "targetedPair__volumeUSD", - User = "user", - UserId = "user__id", - UserUsdSwapped = "user__usdSwapped" -} -export type LiquidityPosition = { - __typename?: 'LiquidityPosition'; - id: Scalars['ID']; - liquidityTokenBalance: Scalars['BigDecimal']; - pair: Pair; - user: User; -}; -export type LiquidityPositionSnapshot = { - __typename?: 'LiquidityPositionSnapshot'; - block: Scalars['Int']; - id: Scalars['ID']; - liquidityPosition: LiquidityPosition; - liquidityTokenBalance: Scalars['BigDecimal']; - liquidityTokenTotalSupply: Scalars['BigDecimal']; - pair: Pair; - reserve0: Scalars['BigDecimal']; - reserve1: Scalars['BigDecimal']; - reserveUSD: Scalars['BigDecimal']; - timestamp: Scalars['Int']; - token0PriceUSD: Scalars['BigDecimal']; - token1PriceUSD: Scalars['BigDecimal']; - user: User; -}; -export type LiquidityPositionSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityPosition?: InputMaybe; - liquidityPosition_?: InputMaybe; - liquidityPosition_contains?: InputMaybe; - liquidityPosition_contains_nocase?: InputMaybe; - liquidityPosition_ends_with?: InputMaybe; - liquidityPosition_ends_with_nocase?: InputMaybe; - liquidityPosition_gt?: InputMaybe; - liquidityPosition_gte?: InputMaybe; - liquidityPosition_in?: InputMaybe>; - liquidityPosition_lt?: InputMaybe; - liquidityPosition_lte?: InputMaybe; - liquidityPosition_not?: InputMaybe; - liquidityPosition_not_contains?: InputMaybe; - liquidityPosition_not_contains_nocase?: InputMaybe; - liquidityPosition_not_ends_with?: InputMaybe; - liquidityPosition_not_ends_with_nocase?: InputMaybe; - liquidityPosition_not_in?: InputMaybe>; - liquidityPosition_not_starts_with?: InputMaybe; - liquidityPosition_not_starts_with_nocase?: InputMaybe; - liquidityPosition_starts_with?: InputMaybe; - liquidityPosition_starts_with_nocase?: InputMaybe; - liquidityTokenBalance?: InputMaybe; - liquidityTokenBalance_gt?: InputMaybe; - liquidityTokenBalance_gte?: InputMaybe; - liquidityTokenBalance_in?: InputMaybe>; - liquidityTokenBalance_lt?: InputMaybe; - liquidityTokenBalance_lte?: InputMaybe; - liquidityTokenBalance_not?: InputMaybe; - liquidityTokenBalance_not_in?: InputMaybe>; - liquidityTokenTotalSupply?: InputMaybe; - liquidityTokenTotalSupply_gt?: InputMaybe; - liquidityTokenTotalSupply_gte?: InputMaybe; - liquidityTokenTotalSupply_in?: InputMaybe>; - liquidityTokenTotalSupply_lt?: InputMaybe; - liquidityTokenTotalSupply_lte?: InputMaybe; - liquidityTokenTotalSupply_not?: InputMaybe; - liquidityTokenTotalSupply_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - reserve0?: InputMaybe; - reserve0_gt?: InputMaybe; - reserve0_gte?: InputMaybe; - reserve0_in?: InputMaybe>; - reserve0_lt?: InputMaybe; - reserve0_lte?: InputMaybe; - reserve0_not?: InputMaybe; - reserve0_not_in?: InputMaybe>; - reserve1?: InputMaybe; - reserve1_gt?: InputMaybe; - reserve1_gte?: InputMaybe; - reserve1_in?: InputMaybe>; - reserve1_lt?: InputMaybe; - reserve1_lte?: InputMaybe; - reserve1_not?: InputMaybe; - reserve1_not_in?: InputMaybe>; - reserveUSD?: InputMaybe; - reserveUSD_gt?: InputMaybe; - reserveUSD_gte?: InputMaybe; - reserveUSD_in?: InputMaybe>; - reserveUSD_lt?: InputMaybe; - reserveUSD_lte?: InputMaybe; - reserveUSD_not?: InputMaybe; - reserveUSD_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - token0PriceUSD?: InputMaybe; - token0PriceUSD_gt?: InputMaybe; - token0PriceUSD_gte?: InputMaybe; - token0PriceUSD_in?: InputMaybe>; - token0PriceUSD_lt?: InputMaybe; - token0PriceUSD_lte?: InputMaybe; - token0PriceUSD_not?: InputMaybe; - token0PriceUSD_not_in?: InputMaybe>; - token1PriceUSD?: InputMaybe; - token1PriceUSD_gt?: InputMaybe; - token1PriceUSD_gte?: InputMaybe; - token1PriceUSD_in?: InputMaybe>; - token1PriceUSD_lt?: InputMaybe; - token1PriceUSD_lte?: InputMaybe; - token1PriceUSD_not?: InputMaybe; - token1PriceUSD_not_in?: InputMaybe>; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; -}; -export declare enum LiquidityPositionSnapshot_OrderBy { - Block = "block", - Id = "id", - LiquidityPosition = "liquidityPosition", - LiquidityPositionId = "liquidityPosition__id", - LiquidityPositionLiquidityTokenBalance = "liquidityPosition__liquidityTokenBalance", - LiquidityTokenBalance = "liquidityTokenBalance", - LiquidityTokenTotalSupply = "liquidityTokenTotalSupply", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Reserve0 = "reserve0", - Reserve1 = "reserve1", - ReserveUsd = "reserveUSD", - Timestamp = "timestamp", - Token0PriceUsd = "token0PriceUSD", - Token1PriceUsd = "token1PriceUSD", - User = "user", - UserId = "user__id", - UserUsdSwapped = "user__usdSwapped" -} -export type LiquidityPosition_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityTokenBalance?: InputMaybe; - liquidityTokenBalance_gt?: InputMaybe; - liquidityTokenBalance_gte?: InputMaybe; - liquidityTokenBalance_in?: InputMaybe>; - liquidityTokenBalance_lt?: InputMaybe; - liquidityTokenBalance_lte?: InputMaybe; - liquidityTokenBalance_not?: InputMaybe; - liquidityTokenBalance_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; -}; -export declare enum LiquidityPosition_OrderBy { - Id = "id", - LiquidityTokenBalance = "liquidityTokenBalance", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - User = "user", - UserId = "user__id", - UserUsdSwapped = "user__usdSwapped" -} -export type Mint = { - __typename?: 'Mint'; - amount0?: Maybe; - amount1?: Maybe; - amountUSD?: Maybe; - feeLiquidity?: Maybe; - feeTo?: Maybe; - id: Scalars['ID']; - liquidity: Scalars['BigDecimal']; - logIndex?: Maybe; - pair: Pair; - sender?: Maybe; - timestamp: Scalars['BigInt']; - to: Scalars['Bytes']; - transaction: Transaction; -}; -export type Mint_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount0?: InputMaybe; - amount0_gt?: InputMaybe; - amount0_gte?: InputMaybe; - amount0_in?: InputMaybe>; - amount0_lt?: InputMaybe; - amount0_lte?: InputMaybe; - amount0_not?: InputMaybe; - amount0_not_in?: InputMaybe>; - amount1?: InputMaybe; - amount1_gt?: InputMaybe; - amount1_gte?: InputMaybe; - amount1_in?: InputMaybe>; - amount1_lt?: InputMaybe; - amount1_lte?: InputMaybe; - amount1_not?: InputMaybe; - amount1_not_in?: InputMaybe>; - amountUSD?: InputMaybe; - amountUSD_gt?: InputMaybe; - amountUSD_gte?: InputMaybe; - amountUSD_in?: InputMaybe>; - amountUSD_lt?: InputMaybe; - amountUSD_lte?: InputMaybe; - amountUSD_not?: InputMaybe; - amountUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - feeLiquidity?: InputMaybe; - feeLiquidity_gt?: InputMaybe; - feeLiquidity_gte?: InputMaybe; - feeLiquidity_in?: InputMaybe>; - feeLiquidity_lt?: InputMaybe; - feeLiquidity_lte?: InputMaybe; - feeLiquidity_not?: InputMaybe; - feeLiquidity_not_in?: InputMaybe>; - feeTo?: InputMaybe; - feeTo_contains?: InputMaybe; - feeTo_gt?: InputMaybe; - feeTo_gte?: InputMaybe; - feeTo_in?: InputMaybe>; - feeTo_lt?: InputMaybe; - feeTo_lte?: InputMaybe; - feeTo_not?: InputMaybe; - feeTo_not_contains?: InputMaybe; - feeTo_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_contains?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_contains?: InputMaybe; - to_gt?: InputMaybe; - to_gte?: InputMaybe; - to_in?: InputMaybe>; - to_lt?: InputMaybe; - to_lte?: InputMaybe; - to_not?: InputMaybe; - to_not_contains?: InputMaybe; - to_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; -export declare enum Mint_OrderBy { - Amount0 = "amount0", - Amount1 = "amount1", - AmountUsd = "amountUSD", - FeeLiquidity = "feeLiquidity", - FeeTo = "feeTo", - Id = "id", - Liquidity = "liquidity", - LogIndex = "logIndex", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Sender = "sender", - Timestamp = "timestamp", - To = "to", - Transaction = "transaction", - TransactionBlockNumber = "transaction__blockNumber", - TransactionId = "transaction__id", - TransactionTimestamp = "transaction__timestamp" -} -export type MonthlyUniqueAddressInteraction = { - __typename?: 'MonthlyUniqueAddressInteraction'; - addresses: Array; - id: Scalars['ID']; - timestamp: Scalars['Int']; -}; -export type MonthlyUniqueAddressInteraction_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - addresses?: InputMaybe>; - addresses_contains?: InputMaybe>; - addresses_contains_nocase?: InputMaybe>; - addresses_not?: InputMaybe>; - addresses_not_contains?: InputMaybe>; - addresses_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; -export declare enum MonthlyUniqueAddressInteraction_OrderBy { - Addresses = "addresses", - Id = "id", - Timestamp = "timestamp" -} -/** Defines the order direction, either ascending or descending */ -export declare enum OrderDirection { - Asc = "asc", - Desc = "desc" -} -export type Pair = { - __typename?: 'Pair'; - burns: Array; - createdAtBlockNumber: Scalars['BigInt']; - createdAtTimestamp: Scalars['BigInt']; - id: Scalars['ID']; - liquidityMiningCampaigns: Array; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; - liquidityProviderCount: Scalars['BigInt']; - mints: Array; - pairHourData: Array; - reserve0: Scalars['BigDecimal']; - reserve1: Scalars['BigDecimal']; - reserveNativeCurrency: Scalars['BigDecimal']; - reserveUSD: Scalars['BigDecimal']; - swapFee: Scalars['BigInt']; - swaps: Array; - token0: Token; - token0Price: Scalars['BigDecimal']; - token1: Token; - token1Price: Scalars['BigDecimal']; - totalSupply: Scalars['BigDecimal']; - trackedReserveNativeCurrency: Scalars['BigDecimal']; - txCount: Scalars['BigInt']; - untrackedVolumeUSD: Scalars['BigDecimal']; - volumeToken0: Scalars['BigDecimal']; - volumeToken1: Scalars['BigDecimal']; - volumeUSD: Scalars['BigDecimal']; -}; -export type PairBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairLiquidityMiningCampaignsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairLiquidityPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairPairHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type PairDayData = { - __typename?: 'PairDayData'; - dailyTxns: Scalars['BigInt']; - dailyVolumeToken0: Scalars['BigDecimal']; - dailyVolumeToken1: Scalars['BigDecimal']; - dailyVolumeUSD: Scalars['BigDecimal']; - date: Scalars['Int']; - id: Scalars['ID']; - pairAddress: Scalars['Bytes']; - reserve0: Scalars['BigDecimal']; - reserve1: Scalars['BigDecimal']; - reserveUSD: Scalars['BigDecimal']; - token0: Token; - token1: Token; - totalSupply: Scalars['BigDecimal']; -}; -export type PairDayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dailyTxns?: InputMaybe; - dailyTxns_gt?: InputMaybe; - dailyTxns_gte?: InputMaybe; - dailyTxns_in?: InputMaybe>; - dailyTxns_lt?: InputMaybe; - dailyTxns_lte?: InputMaybe; - dailyTxns_not?: InputMaybe; - dailyTxns_not_in?: InputMaybe>; - dailyVolumeToken0?: InputMaybe; - dailyVolumeToken0_gt?: InputMaybe; - dailyVolumeToken0_gte?: InputMaybe; - dailyVolumeToken0_in?: InputMaybe>; - dailyVolumeToken0_lt?: InputMaybe; - dailyVolumeToken0_lte?: InputMaybe; - dailyVolumeToken0_not?: InputMaybe; - dailyVolumeToken0_not_in?: InputMaybe>; - dailyVolumeToken1?: InputMaybe; - dailyVolumeToken1_gt?: InputMaybe; - dailyVolumeToken1_gte?: InputMaybe; - dailyVolumeToken1_in?: InputMaybe>; - dailyVolumeToken1_lt?: InputMaybe; - dailyVolumeToken1_lte?: InputMaybe; - dailyVolumeToken1_not?: InputMaybe; - dailyVolumeToken1_not_in?: InputMaybe>; - dailyVolumeUSD?: InputMaybe; - dailyVolumeUSD_gt?: InputMaybe; - dailyVolumeUSD_gte?: InputMaybe; - dailyVolumeUSD_in?: InputMaybe>; - dailyVolumeUSD_lt?: InputMaybe; - dailyVolumeUSD_lte?: InputMaybe; - dailyVolumeUSD_not?: InputMaybe; - dailyVolumeUSD_not_in?: InputMaybe>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairAddress?: InputMaybe; - pairAddress_contains?: InputMaybe; - pairAddress_gt?: InputMaybe; - pairAddress_gte?: InputMaybe; - pairAddress_in?: InputMaybe>; - pairAddress_lt?: InputMaybe; - pairAddress_lte?: InputMaybe; - pairAddress_not?: InputMaybe; - pairAddress_not_contains?: InputMaybe; - pairAddress_not_in?: InputMaybe>; - reserve0?: InputMaybe; - reserve0_gt?: InputMaybe; - reserve0_gte?: InputMaybe; - reserve0_in?: InputMaybe>; - reserve0_lt?: InputMaybe; - reserve0_lte?: InputMaybe; - reserve0_not?: InputMaybe; - reserve0_not_in?: InputMaybe>; - reserve1?: InputMaybe; - reserve1_gt?: InputMaybe; - reserve1_gte?: InputMaybe; - reserve1_in?: InputMaybe>; - reserve1_lt?: InputMaybe; - reserve1_lte?: InputMaybe; - reserve1_not?: InputMaybe; - reserve1_not_in?: InputMaybe>; - reserveUSD?: InputMaybe; - reserveUSD_gt?: InputMaybe; - reserveUSD_gte?: InputMaybe; - reserveUSD_in?: InputMaybe>; - reserveUSD_lt?: InputMaybe; - reserveUSD_lte?: InputMaybe; - reserveUSD_not?: InputMaybe; - reserveUSD_not_in?: InputMaybe>; - token0?: InputMaybe; - token0_?: InputMaybe; - token0_contains?: InputMaybe; - token0_contains_nocase?: InputMaybe; - token0_ends_with?: InputMaybe; - token0_ends_with_nocase?: InputMaybe; - token0_gt?: InputMaybe; - token0_gte?: InputMaybe; - token0_in?: InputMaybe>; - token0_lt?: InputMaybe; - token0_lte?: InputMaybe; - token0_not?: InputMaybe; - token0_not_contains?: InputMaybe; - token0_not_contains_nocase?: InputMaybe; - token0_not_ends_with?: InputMaybe; - token0_not_ends_with_nocase?: InputMaybe; - token0_not_in?: InputMaybe>; - token0_not_starts_with?: InputMaybe; - token0_not_starts_with_nocase?: InputMaybe; - token0_starts_with?: InputMaybe; - token0_starts_with_nocase?: InputMaybe; - token1?: InputMaybe; - token1_?: InputMaybe; - token1_contains?: InputMaybe; - token1_contains_nocase?: InputMaybe; - token1_ends_with?: InputMaybe; - token1_ends_with_nocase?: InputMaybe; - token1_gt?: InputMaybe; - token1_gte?: InputMaybe; - token1_in?: InputMaybe>; - token1_lt?: InputMaybe; - token1_lte?: InputMaybe; - token1_not?: InputMaybe; - token1_not_contains?: InputMaybe; - token1_not_contains_nocase?: InputMaybe; - token1_not_ends_with?: InputMaybe; - token1_not_ends_with_nocase?: InputMaybe; - token1_not_in?: InputMaybe>; - token1_not_starts_with?: InputMaybe; - token1_not_starts_with_nocase?: InputMaybe; - token1_starts_with?: InputMaybe; - token1_starts_with_nocase?: InputMaybe; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; -}; -export declare enum PairDayData_OrderBy { - DailyTxns = "dailyTxns", - DailyVolumeToken0 = "dailyVolumeToken0", - DailyVolumeToken1 = "dailyVolumeToken1", - DailyVolumeUsd = "dailyVolumeUSD", - Date = "date", - Id = "id", - PairAddress = "pairAddress", - Reserve0 = "reserve0", - Reserve1 = "reserve1", - ReserveUsd = "reserveUSD", - Token0 = "token0", - Token0Decimals = "token0__decimals", - Token0DerivedNativeCurrency = "token0__derivedNativeCurrency", - Token0Id = "token0__id", - Token0Name = "token0__name", - Token0Symbol = "token0__symbol", - Token0TotalLiquidity = "token0__totalLiquidity", - Token0TotalSupply = "token0__totalSupply", - Token0TradeVolume = "token0__tradeVolume", - Token0TradeVolumeUsd = "token0__tradeVolumeUSD", - Token0TxCount = "token0__txCount", - Token0UntrackedVolumeUsd = "token0__untrackedVolumeUSD", - Token1 = "token1", - Token1Decimals = "token1__decimals", - Token1DerivedNativeCurrency = "token1__derivedNativeCurrency", - Token1Id = "token1__id", - Token1Name = "token1__name", - Token1Symbol = "token1__symbol", - Token1TotalLiquidity = "token1__totalLiquidity", - Token1TotalSupply = "token1__totalSupply", - Token1TradeVolume = "token1__tradeVolume", - Token1TradeVolumeUsd = "token1__tradeVolumeUSD", - Token1TxCount = "token1__txCount", - Token1UntrackedVolumeUsd = "token1__untrackedVolumeUSD", - TotalSupply = "totalSupply" -} -export type PairHourData = { - __typename?: 'PairHourData'; - hourStartUnix: Scalars['Int']; - hourlyTxns: Scalars['BigInt']; - hourlyVolumeToken0: Scalars['BigDecimal']; - hourlyVolumeToken1: Scalars['BigDecimal']; - hourlyVolumeUSD: Scalars['BigDecimal']; - id: Scalars['ID']; - pair: Pair; - reserve0: Scalars['BigDecimal']; - reserve1: Scalars['BigDecimal']; - reserveUSD: Scalars['BigDecimal']; -}; -export type PairHourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - hourStartUnix?: InputMaybe; - hourStartUnix_gt?: InputMaybe; - hourStartUnix_gte?: InputMaybe; - hourStartUnix_in?: InputMaybe>; - hourStartUnix_lt?: InputMaybe; - hourStartUnix_lte?: InputMaybe; - hourStartUnix_not?: InputMaybe; - hourStartUnix_not_in?: InputMaybe>; - hourlyTxns?: InputMaybe; - hourlyTxns_gt?: InputMaybe; - hourlyTxns_gte?: InputMaybe; - hourlyTxns_in?: InputMaybe>; - hourlyTxns_lt?: InputMaybe; - hourlyTxns_lte?: InputMaybe; - hourlyTxns_not?: InputMaybe; - hourlyTxns_not_in?: InputMaybe>; - hourlyVolumeToken0?: InputMaybe; - hourlyVolumeToken0_gt?: InputMaybe; - hourlyVolumeToken0_gte?: InputMaybe; - hourlyVolumeToken0_in?: InputMaybe>; - hourlyVolumeToken0_lt?: InputMaybe; - hourlyVolumeToken0_lte?: InputMaybe; - hourlyVolumeToken0_not?: InputMaybe; - hourlyVolumeToken0_not_in?: InputMaybe>; - hourlyVolumeToken1?: InputMaybe; - hourlyVolumeToken1_gt?: InputMaybe; - hourlyVolumeToken1_gte?: InputMaybe; - hourlyVolumeToken1_in?: InputMaybe>; - hourlyVolumeToken1_lt?: InputMaybe; - hourlyVolumeToken1_lte?: InputMaybe; - hourlyVolumeToken1_not?: InputMaybe; - hourlyVolumeToken1_not_in?: InputMaybe>; - hourlyVolumeUSD?: InputMaybe; - hourlyVolumeUSD_gt?: InputMaybe; - hourlyVolumeUSD_gte?: InputMaybe; - hourlyVolumeUSD_in?: InputMaybe>; - hourlyVolumeUSD_lt?: InputMaybe; - hourlyVolumeUSD_lte?: InputMaybe; - hourlyVolumeUSD_not?: InputMaybe; - hourlyVolumeUSD_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - reserve0?: InputMaybe; - reserve0_gt?: InputMaybe; - reserve0_gte?: InputMaybe; - reserve0_in?: InputMaybe>; - reserve0_lt?: InputMaybe; - reserve0_lte?: InputMaybe; - reserve0_not?: InputMaybe; - reserve0_not_in?: InputMaybe>; - reserve1?: InputMaybe; - reserve1_gt?: InputMaybe; - reserve1_gte?: InputMaybe; - reserve1_in?: InputMaybe>; - reserve1_lt?: InputMaybe; - reserve1_lte?: InputMaybe; - reserve1_not?: InputMaybe; - reserve1_not_in?: InputMaybe>; - reserveUSD?: InputMaybe; - reserveUSD_gt?: InputMaybe; - reserveUSD_gte?: InputMaybe; - reserveUSD_in?: InputMaybe>; - reserveUSD_lt?: InputMaybe; - reserveUSD_lte?: InputMaybe; - reserveUSD_not?: InputMaybe; - reserveUSD_not_in?: InputMaybe>; -}; -export declare enum PairHourData_OrderBy { - HourStartUnix = "hourStartUnix", - HourlyTxns = "hourlyTxns", - HourlyVolumeToken0 = "hourlyVolumeToken0", - HourlyVolumeToken1 = "hourlyVolumeToken1", - HourlyVolumeUsd = "hourlyVolumeUSD", - Id = "id", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Reserve0 = "reserve0", - Reserve1 = "reserve1", - ReserveUsd = "reserveUSD" -} -export type Pair_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - burns_?: InputMaybe; - createdAtBlockNumber?: InputMaybe; - createdAtBlockNumber_gt?: InputMaybe; - createdAtBlockNumber_gte?: InputMaybe; - createdAtBlockNumber_in?: InputMaybe>; - createdAtBlockNumber_lt?: InputMaybe; - createdAtBlockNumber_lte?: InputMaybe; - createdAtBlockNumber_not?: InputMaybe; - createdAtBlockNumber_not_in?: InputMaybe>; - createdAtTimestamp?: InputMaybe; - createdAtTimestamp_gt?: InputMaybe; - createdAtTimestamp_gte?: InputMaybe; - createdAtTimestamp_in?: InputMaybe>; - createdAtTimestamp_lt?: InputMaybe; - createdAtTimestamp_lte?: InputMaybe; - createdAtTimestamp_not?: InputMaybe; - createdAtTimestamp_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaigns_?: InputMaybe; - liquidityPositionSnapshots_?: InputMaybe; - liquidityPositions_?: InputMaybe; - liquidityProviderCount?: InputMaybe; - liquidityProviderCount_gt?: InputMaybe; - liquidityProviderCount_gte?: InputMaybe; - liquidityProviderCount_in?: InputMaybe>; - liquidityProviderCount_lt?: InputMaybe; - liquidityProviderCount_lte?: InputMaybe; - liquidityProviderCount_not?: InputMaybe; - liquidityProviderCount_not_in?: InputMaybe>; - mints_?: InputMaybe; - or?: InputMaybe>>; - pairHourData_?: InputMaybe; - reserve0?: InputMaybe; - reserve0_gt?: InputMaybe; - reserve0_gte?: InputMaybe; - reserve0_in?: InputMaybe>; - reserve0_lt?: InputMaybe; - reserve0_lte?: InputMaybe; - reserve0_not?: InputMaybe; - reserve0_not_in?: InputMaybe>; - reserve1?: InputMaybe; - reserve1_gt?: InputMaybe; - reserve1_gte?: InputMaybe; - reserve1_in?: InputMaybe>; - reserve1_lt?: InputMaybe; - reserve1_lte?: InputMaybe; - reserve1_not?: InputMaybe; - reserve1_not_in?: InputMaybe>; - reserveNativeCurrency?: InputMaybe; - reserveNativeCurrency_gt?: InputMaybe; - reserveNativeCurrency_gte?: InputMaybe; - reserveNativeCurrency_in?: InputMaybe>; - reserveNativeCurrency_lt?: InputMaybe; - reserveNativeCurrency_lte?: InputMaybe; - reserveNativeCurrency_not?: InputMaybe; - reserveNativeCurrency_not_in?: InputMaybe>; - reserveUSD?: InputMaybe; - reserveUSD_gt?: InputMaybe; - reserveUSD_gte?: InputMaybe; - reserveUSD_in?: InputMaybe>; - reserveUSD_lt?: InputMaybe; - reserveUSD_lte?: InputMaybe; - reserveUSD_not?: InputMaybe; - reserveUSD_not_in?: InputMaybe>; - swapFee?: InputMaybe; - swapFee_gt?: InputMaybe; - swapFee_gte?: InputMaybe; - swapFee_in?: InputMaybe>; - swapFee_lt?: InputMaybe; - swapFee_lte?: InputMaybe; - swapFee_not?: InputMaybe; - swapFee_not_in?: InputMaybe>; - swaps_?: InputMaybe; - token0?: InputMaybe; - token0Price?: InputMaybe; - token0Price_gt?: InputMaybe; - token0Price_gte?: InputMaybe; - token0Price_in?: InputMaybe>; - token0Price_lt?: InputMaybe; - token0Price_lte?: InputMaybe; - token0Price_not?: InputMaybe; - token0Price_not_in?: InputMaybe>; - token0_?: InputMaybe; - token0_contains?: InputMaybe; - token0_contains_nocase?: InputMaybe; - token0_ends_with?: InputMaybe; - token0_ends_with_nocase?: InputMaybe; - token0_gt?: InputMaybe; - token0_gte?: InputMaybe; - token0_in?: InputMaybe>; - token0_lt?: InputMaybe; - token0_lte?: InputMaybe; - token0_not?: InputMaybe; - token0_not_contains?: InputMaybe; - token0_not_contains_nocase?: InputMaybe; - token0_not_ends_with?: InputMaybe; - token0_not_ends_with_nocase?: InputMaybe; - token0_not_in?: InputMaybe>; - token0_not_starts_with?: InputMaybe; - token0_not_starts_with_nocase?: InputMaybe; - token0_starts_with?: InputMaybe; - token0_starts_with_nocase?: InputMaybe; - token1?: InputMaybe; - token1Price?: InputMaybe; - token1Price_gt?: InputMaybe; - token1Price_gte?: InputMaybe; - token1Price_in?: InputMaybe>; - token1Price_lt?: InputMaybe; - token1Price_lte?: InputMaybe; - token1Price_not?: InputMaybe; - token1Price_not_in?: InputMaybe>; - token1_?: InputMaybe; - token1_contains?: InputMaybe; - token1_contains_nocase?: InputMaybe; - token1_ends_with?: InputMaybe; - token1_ends_with_nocase?: InputMaybe; - token1_gt?: InputMaybe; - token1_gte?: InputMaybe; - token1_in?: InputMaybe>; - token1_lt?: InputMaybe; - token1_lte?: InputMaybe; - token1_not?: InputMaybe; - token1_not_contains?: InputMaybe; - token1_not_contains_nocase?: InputMaybe; - token1_not_ends_with?: InputMaybe; - token1_not_ends_with_nocase?: InputMaybe; - token1_not_in?: InputMaybe>; - token1_not_starts_with?: InputMaybe; - token1_not_starts_with_nocase?: InputMaybe; - token1_starts_with?: InputMaybe; - token1_starts_with_nocase?: InputMaybe; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; - trackedReserveNativeCurrency?: InputMaybe; - trackedReserveNativeCurrency_gt?: InputMaybe; - trackedReserveNativeCurrency_gte?: InputMaybe; - trackedReserveNativeCurrency_in?: InputMaybe>; - trackedReserveNativeCurrency_lt?: InputMaybe; - trackedReserveNativeCurrency_lte?: InputMaybe; - trackedReserveNativeCurrency_not?: InputMaybe; - trackedReserveNativeCurrency_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; -export declare enum Pair_OrderBy { - Burns = "burns", - CreatedAtBlockNumber = "createdAtBlockNumber", - CreatedAtTimestamp = "createdAtTimestamp", - Id = "id", - LiquidityMiningCampaigns = "liquidityMiningCampaigns", - LiquidityPositionSnapshots = "liquidityPositionSnapshots", - LiquidityPositions = "liquidityPositions", - LiquidityProviderCount = "liquidityProviderCount", - Mints = "mints", - PairHourData = "pairHourData", - Reserve0 = "reserve0", - Reserve1 = "reserve1", - ReserveNativeCurrency = "reserveNativeCurrency", - ReserveUsd = "reserveUSD", - SwapFee = "swapFee", - Swaps = "swaps", - Token0 = "token0", - Token0Price = "token0Price", - Token0Decimals = "token0__decimals", - Token0DerivedNativeCurrency = "token0__derivedNativeCurrency", - Token0Id = "token0__id", - Token0Name = "token0__name", - Token0Symbol = "token0__symbol", - Token0TotalLiquidity = "token0__totalLiquidity", - Token0TotalSupply = "token0__totalSupply", - Token0TradeVolume = "token0__tradeVolume", - Token0TradeVolumeUsd = "token0__tradeVolumeUSD", - Token0TxCount = "token0__txCount", - Token0UntrackedVolumeUsd = "token0__untrackedVolumeUSD", - Token1 = "token1", - Token1Price = "token1Price", - Token1Decimals = "token1__decimals", - Token1DerivedNativeCurrency = "token1__derivedNativeCurrency", - Token1Id = "token1__id", - Token1Name = "token1__name", - Token1Symbol = "token1__symbol", - Token1TotalLiquidity = "token1__totalLiquidity", - Token1TotalSupply = "token1__totalSupply", - Token1TradeVolume = "token1__tradeVolume", - Token1TradeVolumeUsd = "token1__tradeVolumeUSD", - Token1TxCount = "token1__txCount", - Token1UntrackedVolumeUsd = "token1__untrackedVolumeUSD", - TotalSupply = "totalSupply", - TrackedReserveNativeCurrency = "trackedReserveNativeCurrency", - TxCount = "txCount", - UntrackedVolumeUsd = "untrackedVolumeUSD", - VolumeToken0 = "volumeToken0", - VolumeToken1 = "volumeToken1", - VolumeUsd = "volumeUSD" -} -export type Query = { - __typename?: 'Query'; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - bundle?: Maybe; - bundles: Array; - burn?: Maybe; - burns: Array; - claim?: Maybe; - claims: Array; - dailyUniqueAddressInteraction?: Maybe; - dailyUniqueAddressInteractions: Array; - deposit?: Maybe; - deposits: Array; - liquidityMiningCampaign?: Maybe; - liquidityMiningCampaignReward?: Maybe; - liquidityMiningCampaignRewards: Array; - liquidityMiningCampaigns: Array; - liquidityMiningPosition?: Maybe; - liquidityMiningPositionSnapshot?: Maybe; - liquidityMiningPositionSnapshots: Array; - liquidityMiningPositions: Array; - liquidityPosition?: Maybe; - liquidityPositionSnapshot?: Maybe; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; - mint?: Maybe; - mints: Array; - monthlyUniqueAddressInteraction?: Maybe; - monthlyUniqueAddressInteractions: Array; - pair?: Maybe; - pairDayData?: Maybe; - pairDayDatas: Array; - pairHourData?: Maybe; - pairHourDatas: Array; - pairs: Array; - recoveries: Array; - recovery?: Maybe; - singleSidedStakingCampaign?: Maybe; - singleSidedStakingCampaignClaim?: Maybe; - singleSidedStakingCampaignClaims: Array; - singleSidedStakingCampaignDeposit?: Maybe; - singleSidedStakingCampaignDeposits: Array; - singleSidedStakingCampaignPosition?: Maybe; - singleSidedStakingCampaignPositions: Array; - singleSidedStakingCampaignRecoveries: Array; - singleSidedStakingCampaignRecovery?: Maybe; - singleSidedStakingCampaignReward?: Maybe; - singleSidedStakingCampaignRewards: Array; - singleSidedStakingCampaignWithdrawal?: Maybe; - singleSidedStakingCampaignWithdrawals: Array; - singleSidedStakingCampaigns: Array; - swap?: Maybe; - swaprDayData?: Maybe; - swaprDayDatas: Array; - swaprFactories: Array; - swaprFactory?: Maybe; - swaprStakingRewardsFactories: Array; - swaprStakingRewardsFactory?: Maybe; - swaps: Array; - token?: Maybe; - tokenDayData?: Maybe; - tokenDayDatas: Array; - tokens: Array; - transaction?: Maybe; - transactions: Array; - user?: Maybe; - users: Array; - weeklyUniqueAddressInteraction?: Maybe; - weeklyUniqueAddressInteractions: Array; - withdrawal?: Maybe; - withdrawals: Array; -}; -export type Query_MetaArgs = { - block?: InputMaybe; -}; -export type QueryBundleArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryBundlesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryBurnArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryBurnsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryClaimArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryClaimsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryDailyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryDailyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryDepositArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryDepositsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityMiningCampaignArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityMiningCampaignRewardArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityMiningCampaignRewardsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityMiningCampaignsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityMiningPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityMiningPositionSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityMiningPositionSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityMiningPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityPositionSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryLiquidityPositionSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryLiquidityPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryMintArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryMonthlyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryMonthlyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryPairArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryPairHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryPairsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryRecoveriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryRecoveryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignClaimArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignClaimsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignDepositArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignDepositsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignRecoveriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignRecoveryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignRewardArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignRewardsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignWithdrawalArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySingleSidedStakingCampaignWithdrawalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySingleSidedStakingCampaignsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySwapArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySwaprDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySwaprDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySwaprFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySwaprFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySwaprStakingRewardsFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QuerySwaprStakingRewardsFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QuerySwapsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryTokenDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryTokenDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryTransactionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryTransactionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryUserArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryUsersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryWeeklyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryWeeklyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type QueryWithdrawalArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type QueryWithdrawalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type Recovery = { - __typename?: 'Recovery'; - amounts: Array; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - timestamp: Scalars['BigInt']; -}; -export type Recovery_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; -export declare enum Recovery_OrderBy { - Amounts = "amounts", - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - Timestamp = "timestamp" -} -export type SingleSidedStakingCampaign = { - __typename?: 'SingleSidedStakingCampaign'; - claims: Array; - deposits: Array; - duration: Scalars['BigInt']; - endsAt: Scalars['BigInt']; - id: Scalars['ID']; - initialized: Scalars['Boolean']; - locked: Scalars['Boolean']; - owner: Scalars['Bytes']; - recoveries: Array; - rewards: Array; - singleSidedStakingPositions: Array; - stakeToken: Token; - stakedAmount: Scalars['BigDecimal']; - stakingCap: Scalars['BigDecimal']; - startsAt: Scalars['BigInt']; - withdrawals: Array; -}; -export type SingleSidedStakingCampaignClaimsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignDepositsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignRecoveriesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignRewardsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignSingleSidedStakingPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignWithdrawalsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type SingleSidedStakingCampaignClaim = { - __typename?: 'SingleSidedStakingCampaignClaim'; - amounts: Array; - id: Scalars['ID']; - singleSidedStakingCampaign: SingleSidedStakingCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type SingleSidedStakingCampaignClaim_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - singleSidedStakingCampaign?: InputMaybe; - singleSidedStakingCampaign_?: InputMaybe; - singleSidedStakingCampaign_contains?: InputMaybe; - singleSidedStakingCampaign_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_ends_with?: InputMaybe; - singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_gt?: InputMaybe; - singleSidedStakingCampaign_gte?: InputMaybe; - singleSidedStakingCampaign_in?: InputMaybe>; - singleSidedStakingCampaign_lt?: InputMaybe; - singleSidedStakingCampaign_lte?: InputMaybe; - singleSidedStakingCampaign_not?: InputMaybe; - singleSidedStakingCampaign_not_contains?: InputMaybe; - singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_not_ends_with?: InputMaybe; - singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_not_in?: InputMaybe>; - singleSidedStakingCampaign_not_starts_with?: InputMaybe; - singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; - singleSidedStakingCampaign_starts_with?: InputMaybe; - singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum SingleSidedStakingCampaignClaim_OrderBy { - Amounts = "amounts", - Id = "id", - SingleSidedStakingCampaign = "singleSidedStakingCampaign", - SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", - SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", - SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", - SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", - SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", - SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", - SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", - SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", - SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type SingleSidedStakingCampaignDeposit = { - __typename?: 'SingleSidedStakingCampaignDeposit'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - singleSidedStakingCampaign: SingleSidedStakingCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type SingleSidedStakingCampaignDeposit_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - singleSidedStakingCampaign?: InputMaybe; - singleSidedStakingCampaign_?: InputMaybe; - singleSidedStakingCampaign_contains?: InputMaybe; - singleSidedStakingCampaign_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_ends_with?: InputMaybe; - singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_gt?: InputMaybe; - singleSidedStakingCampaign_gte?: InputMaybe; - singleSidedStakingCampaign_in?: InputMaybe>; - singleSidedStakingCampaign_lt?: InputMaybe; - singleSidedStakingCampaign_lte?: InputMaybe; - singleSidedStakingCampaign_not?: InputMaybe; - singleSidedStakingCampaign_not_contains?: InputMaybe; - singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_not_ends_with?: InputMaybe; - singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_not_in?: InputMaybe>; - singleSidedStakingCampaign_not_starts_with?: InputMaybe; - singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; - singleSidedStakingCampaign_starts_with?: InputMaybe; - singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum SingleSidedStakingCampaignDeposit_OrderBy { - Amount = "amount", - Id = "id", - SingleSidedStakingCampaign = "singleSidedStakingCampaign", - SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", - SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", - SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", - SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", - SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", - SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", - SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", - SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", - SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type SingleSidedStakingCampaignPosition = { - __typename?: 'SingleSidedStakingCampaignPosition'; - id: Scalars['ID']; - singleSidedStakingCampaign: SingleSidedStakingCampaign; - stakedAmount: Scalars['BigDecimal']; - user: User; -}; -export type SingleSidedStakingCampaignPosition_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - singleSidedStakingCampaign?: InputMaybe; - singleSidedStakingCampaign_?: InputMaybe; - singleSidedStakingCampaign_contains?: InputMaybe; - singleSidedStakingCampaign_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_ends_with?: InputMaybe; - singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_gt?: InputMaybe; - singleSidedStakingCampaign_gte?: InputMaybe; - singleSidedStakingCampaign_in?: InputMaybe>; - singleSidedStakingCampaign_lt?: InputMaybe; - singleSidedStakingCampaign_lte?: InputMaybe; - singleSidedStakingCampaign_not?: InputMaybe; - singleSidedStakingCampaign_not_contains?: InputMaybe; - singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_not_ends_with?: InputMaybe; - singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_not_in?: InputMaybe>; - singleSidedStakingCampaign_not_starts_with?: InputMaybe; - singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; - singleSidedStakingCampaign_starts_with?: InputMaybe; - singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; - stakedAmount?: InputMaybe; - stakedAmount_gt?: InputMaybe; - stakedAmount_gte?: InputMaybe; - stakedAmount_in?: InputMaybe>; - stakedAmount_lt?: InputMaybe; - stakedAmount_lte?: InputMaybe; - stakedAmount_not?: InputMaybe; - stakedAmount_not_in?: InputMaybe>; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; -}; -export declare enum SingleSidedStakingCampaignPosition_OrderBy { - Id = "id", - SingleSidedStakingCampaign = "singleSidedStakingCampaign", - SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", - SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", - SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", - SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", - SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", - SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", - SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", - SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", - SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", - StakedAmount = "stakedAmount", - User = "user", - UserId = "user__id", - UserUsdSwapped = "user__usdSwapped" -} -export type SingleSidedStakingCampaignRecovery = { - __typename?: 'SingleSidedStakingCampaignRecovery'; - amounts: Array; - id: Scalars['ID']; - singleSidedStakingCampaign: SingleSidedStakingCampaign; - timestamp: Scalars['BigInt']; -}; -export type SingleSidedStakingCampaignRecovery_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - singleSidedStakingCampaign?: InputMaybe; - singleSidedStakingCampaign_?: InputMaybe; - singleSidedStakingCampaign_contains?: InputMaybe; - singleSidedStakingCampaign_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_ends_with?: InputMaybe; - singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_gt?: InputMaybe; - singleSidedStakingCampaign_gte?: InputMaybe; - singleSidedStakingCampaign_in?: InputMaybe>; - singleSidedStakingCampaign_lt?: InputMaybe; - singleSidedStakingCampaign_lte?: InputMaybe; - singleSidedStakingCampaign_not?: InputMaybe; - singleSidedStakingCampaign_not_contains?: InputMaybe; - singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_not_ends_with?: InputMaybe; - singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_not_in?: InputMaybe>; - singleSidedStakingCampaign_not_starts_with?: InputMaybe; - singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; - singleSidedStakingCampaign_starts_with?: InputMaybe; - singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; -export declare enum SingleSidedStakingCampaignRecovery_OrderBy { - Amounts = "amounts", - Id = "id", - SingleSidedStakingCampaign = "singleSidedStakingCampaign", - SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", - SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", - SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", - SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", - SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", - SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", - SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", - SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", - SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", - Timestamp = "timestamp" -} -export type SingleSidedStakingCampaignReward = { - __typename?: 'SingleSidedStakingCampaignReward'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - token: Token; -}; -export type SingleSidedStakingCampaignReward_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; -}; -export declare enum SingleSidedStakingCampaignReward_OrderBy { - Amount = "amount", - Id = "id", - Token = "token", - TokenDecimals = "token__decimals", - TokenDerivedNativeCurrency = "token__derivedNativeCurrency", - TokenId = "token__id", - TokenName = "token__name", - TokenSymbol = "token__symbol", - TokenTotalLiquidity = "token__totalLiquidity", - TokenTotalSupply = "token__totalSupply", - TokenTradeVolume = "token__tradeVolume", - TokenTradeVolumeUsd = "token__tradeVolumeUSD", - TokenTxCount = "token__txCount", - TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD" -} -export type SingleSidedStakingCampaignWithdrawal = { - __typename?: 'SingleSidedStakingCampaignWithdrawal'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - singleSidedStakingCampaign: SingleSidedStakingCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type SingleSidedStakingCampaignWithdrawal_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - singleSidedStakingCampaign?: InputMaybe; - singleSidedStakingCampaign_?: InputMaybe; - singleSidedStakingCampaign_contains?: InputMaybe; - singleSidedStakingCampaign_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_ends_with?: InputMaybe; - singleSidedStakingCampaign_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_gt?: InputMaybe; - singleSidedStakingCampaign_gte?: InputMaybe; - singleSidedStakingCampaign_in?: InputMaybe>; - singleSidedStakingCampaign_lt?: InputMaybe; - singleSidedStakingCampaign_lte?: InputMaybe; - singleSidedStakingCampaign_not?: InputMaybe; - singleSidedStakingCampaign_not_contains?: InputMaybe; - singleSidedStakingCampaign_not_contains_nocase?: InputMaybe; - singleSidedStakingCampaign_not_ends_with?: InputMaybe; - singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe; - singleSidedStakingCampaign_not_in?: InputMaybe>; - singleSidedStakingCampaign_not_starts_with?: InputMaybe; - singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe; - singleSidedStakingCampaign_starts_with?: InputMaybe; - singleSidedStakingCampaign_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum SingleSidedStakingCampaignWithdrawal_OrderBy { - Amount = "amount", - Id = "id", - SingleSidedStakingCampaign = "singleSidedStakingCampaign", - SingleSidedStakingCampaignDuration = "singleSidedStakingCampaign__duration", - SingleSidedStakingCampaignEndsAt = "singleSidedStakingCampaign__endsAt", - SingleSidedStakingCampaignId = "singleSidedStakingCampaign__id", - SingleSidedStakingCampaignInitialized = "singleSidedStakingCampaign__initialized", - SingleSidedStakingCampaignLocked = "singleSidedStakingCampaign__locked", - SingleSidedStakingCampaignOwner = "singleSidedStakingCampaign__owner", - SingleSidedStakingCampaignStakedAmount = "singleSidedStakingCampaign__stakedAmount", - SingleSidedStakingCampaignStakingCap = "singleSidedStakingCampaign__stakingCap", - SingleSidedStakingCampaignStartsAt = "singleSidedStakingCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type SingleSidedStakingCampaign_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - claims_?: InputMaybe; - deposits_?: InputMaybe; - duration?: InputMaybe; - duration_gt?: InputMaybe; - duration_gte?: InputMaybe; - duration_in?: InputMaybe>; - duration_lt?: InputMaybe; - duration_lte?: InputMaybe; - duration_not?: InputMaybe; - duration_not_in?: InputMaybe>; - endsAt?: InputMaybe; - endsAt_gt?: InputMaybe; - endsAt_gte?: InputMaybe; - endsAt_in?: InputMaybe>; - endsAt_lt?: InputMaybe; - endsAt_lte?: InputMaybe; - endsAt_not?: InputMaybe; - endsAt_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - initialized?: InputMaybe; - initialized_in?: InputMaybe>; - initialized_not?: InputMaybe; - initialized_not_in?: InputMaybe>; - locked?: InputMaybe; - locked_in?: InputMaybe>; - locked_not?: InputMaybe; - locked_not_in?: InputMaybe>; - or?: InputMaybe>>; - owner?: InputMaybe; - owner_contains?: InputMaybe; - owner_gt?: InputMaybe; - owner_gte?: InputMaybe; - owner_in?: InputMaybe>; - owner_lt?: InputMaybe; - owner_lte?: InputMaybe; - owner_not?: InputMaybe; - owner_not_contains?: InputMaybe; - owner_not_in?: InputMaybe>; - recoveries_?: InputMaybe; - rewards?: InputMaybe>; - rewards_?: InputMaybe; - rewards_contains?: InputMaybe>; - rewards_contains_nocase?: InputMaybe>; - rewards_not?: InputMaybe>; - rewards_not_contains?: InputMaybe>; - rewards_not_contains_nocase?: InputMaybe>; - singleSidedStakingPositions_?: InputMaybe; - stakeToken?: InputMaybe; - stakeToken_?: InputMaybe; - stakeToken_contains?: InputMaybe; - stakeToken_contains_nocase?: InputMaybe; - stakeToken_ends_with?: InputMaybe; - stakeToken_ends_with_nocase?: InputMaybe; - stakeToken_gt?: InputMaybe; - stakeToken_gte?: InputMaybe; - stakeToken_in?: InputMaybe>; - stakeToken_lt?: InputMaybe; - stakeToken_lte?: InputMaybe; - stakeToken_not?: InputMaybe; - stakeToken_not_contains?: InputMaybe; - stakeToken_not_contains_nocase?: InputMaybe; - stakeToken_not_ends_with?: InputMaybe; - stakeToken_not_ends_with_nocase?: InputMaybe; - stakeToken_not_in?: InputMaybe>; - stakeToken_not_starts_with?: InputMaybe; - stakeToken_not_starts_with_nocase?: InputMaybe; - stakeToken_starts_with?: InputMaybe; - stakeToken_starts_with_nocase?: InputMaybe; - stakedAmount?: InputMaybe; - stakedAmount_gt?: InputMaybe; - stakedAmount_gte?: InputMaybe; - stakedAmount_in?: InputMaybe>; - stakedAmount_lt?: InputMaybe; - stakedAmount_lte?: InputMaybe; - stakedAmount_not?: InputMaybe; - stakedAmount_not_in?: InputMaybe>; - stakingCap?: InputMaybe; - stakingCap_gt?: InputMaybe; - stakingCap_gte?: InputMaybe; - stakingCap_in?: InputMaybe>; - stakingCap_lt?: InputMaybe; - stakingCap_lte?: InputMaybe; - stakingCap_not?: InputMaybe; - stakingCap_not_in?: InputMaybe>; - startsAt?: InputMaybe; - startsAt_gt?: InputMaybe; - startsAt_gte?: InputMaybe; - startsAt_in?: InputMaybe>; - startsAt_lt?: InputMaybe; - startsAt_lte?: InputMaybe; - startsAt_not?: InputMaybe; - startsAt_not_in?: InputMaybe>; - withdrawals_?: InputMaybe; -}; -export declare enum SingleSidedStakingCampaign_OrderBy { - Claims = "claims", - Deposits = "deposits", - Duration = "duration", - EndsAt = "endsAt", - Id = "id", - Initialized = "initialized", - Locked = "locked", - Owner = "owner", - Recoveries = "recoveries", - Rewards = "rewards", - SingleSidedStakingPositions = "singleSidedStakingPositions", - StakeToken = "stakeToken", - StakeTokenDecimals = "stakeToken__decimals", - StakeTokenDerivedNativeCurrency = "stakeToken__derivedNativeCurrency", - StakeTokenId = "stakeToken__id", - StakeTokenName = "stakeToken__name", - StakeTokenSymbol = "stakeToken__symbol", - StakeTokenTotalLiquidity = "stakeToken__totalLiquidity", - StakeTokenTotalSupply = "stakeToken__totalSupply", - StakeTokenTradeVolume = "stakeToken__tradeVolume", - StakeTokenTradeVolumeUsd = "stakeToken__tradeVolumeUSD", - StakeTokenTxCount = "stakeToken__txCount", - StakeTokenUntrackedVolumeUsd = "stakeToken__untrackedVolumeUSD", - StakedAmount = "stakedAmount", - StakingCap = "stakingCap", - StartsAt = "startsAt", - Withdrawals = "withdrawals" -} -export type Subscription = { - __typename?: 'Subscription'; - /** Access to subgraph metadata */ - _meta?: Maybe<_Meta_>; - bundle?: Maybe; - bundles: Array; - burn?: Maybe; - burns: Array; - claim?: Maybe; - claims: Array; - dailyUniqueAddressInteraction?: Maybe; - dailyUniqueAddressInteractions: Array; - deposit?: Maybe; - deposits: Array; - liquidityMiningCampaign?: Maybe; - liquidityMiningCampaignReward?: Maybe; - liquidityMiningCampaignRewards: Array; - liquidityMiningCampaigns: Array; - liquidityMiningPosition?: Maybe; - liquidityMiningPositionSnapshot?: Maybe; - liquidityMiningPositionSnapshots: Array; - liquidityMiningPositions: Array; - liquidityPosition?: Maybe; - liquidityPositionSnapshot?: Maybe; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; - mint?: Maybe; - mints: Array; - monthlyUniqueAddressInteraction?: Maybe; - monthlyUniqueAddressInteractions: Array; - pair?: Maybe; - pairDayData?: Maybe; - pairDayDatas: Array; - pairHourData?: Maybe; - pairHourDatas: Array; - pairs: Array; - recoveries: Array; - recovery?: Maybe; - singleSidedStakingCampaign?: Maybe; - singleSidedStakingCampaignClaim?: Maybe; - singleSidedStakingCampaignClaims: Array; - singleSidedStakingCampaignDeposit?: Maybe; - singleSidedStakingCampaignDeposits: Array; - singleSidedStakingCampaignPosition?: Maybe; - singleSidedStakingCampaignPositions: Array; - singleSidedStakingCampaignRecoveries: Array; - singleSidedStakingCampaignRecovery?: Maybe; - singleSidedStakingCampaignReward?: Maybe; - singleSidedStakingCampaignRewards: Array; - singleSidedStakingCampaignWithdrawal?: Maybe; - singleSidedStakingCampaignWithdrawals: Array; - singleSidedStakingCampaigns: Array; - swap?: Maybe; - swaprDayData?: Maybe; - swaprDayDatas: Array; - swaprFactories: Array; - swaprFactory?: Maybe; - swaprStakingRewardsFactories: Array; - swaprStakingRewardsFactory?: Maybe; - swaps: Array; - token?: Maybe; - tokenDayData?: Maybe; - tokenDayDatas: Array; - tokens: Array; - transaction?: Maybe; - transactions: Array; - user?: Maybe; - users: Array; - weeklyUniqueAddressInteraction?: Maybe; - weeklyUniqueAddressInteractions: Array; - withdrawal?: Maybe; - withdrawals: Array; -}; -export type Subscription_MetaArgs = { - block?: InputMaybe; -}; -export type SubscriptionBundleArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionBundlesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionBurnArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionBurnsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionClaimArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionClaimsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionDailyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionDailyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionDepositArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionDepositsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityMiningCampaignArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityMiningCampaignRewardArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityMiningCampaignRewardsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityMiningCampaignsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityMiningPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityMiningPositionSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityMiningPositionSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityMiningPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityPositionSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionLiquidityPositionSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionLiquidityPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionMintArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionMonthlyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionMonthlyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionPairArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionPairHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionPairsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionRecoveriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionRecoveryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignClaimArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignClaimsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignDepositArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignDepositsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignPositionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignPositionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignRecoveriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignRecoveryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignRewardArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignRewardsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignWithdrawalArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSingleSidedStakingCampaignWithdrawalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSingleSidedStakingCampaignsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSwapArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSwaprDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSwaprDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSwaprFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSwaprFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSwaprStakingRewardsFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionSwaprStakingRewardsFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionSwapsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionTokenDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionTokenDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionTransactionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionTransactionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionUserArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionUsersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionWeeklyUniqueAddressInteractionArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionWeeklyUniqueAddressInteractionsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type SubscriptionWithdrawalArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; -export type SubscriptionWithdrawalsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; -export type Swap = { - __typename?: 'Swap'; - amount0In: Scalars['BigDecimal']; - amount0Out: Scalars['BigDecimal']; - amount1In: Scalars['BigDecimal']; - amount1Out: Scalars['BigDecimal']; - amountUSD: Scalars['BigDecimal']; - from: Scalars['Bytes']; - id: Scalars['ID']; - logIndex?: Maybe; - pair: Pair; - sender: Scalars['Bytes']; - timestamp: Scalars['BigInt']; - to: Scalars['Bytes']; - transaction: Transaction; -}; -export type Swap_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount0In?: InputMaybe; - amount0In_gt?: InputMaybe; - amount0In_gte?: InputMaybe; - amount0In_in?: InputMaybe>; - amount0In_lt?: InputMaybe; - amount0In_lte?: InputMaybe; - amount0In_not?: InputMaybe; - amount0In_not_in?: InputMaybe>; - amount0Out?: InputMaybe; - amount0Out_gt?: InputMaybe; - amount0Out_gte?: InputMaybe; - amount0Out_in?: InputMaybe>; - amount0Out_lt?: InputMaybe; - amount0Out_lte?: InputMaybe; - amount0Out_not?: InputMaybe; - amount0Out_not_in?: InputMaybe>; - amount1In?: InputMaybe; - amount1In_gt?: InputMaybe; - amount1In_gte?: InputMaybe; - amount1In_in?: InputMaybe>; - amount1In_lt?: InputMaybe; - amount1In_lte?: InputMaybe; - amount1In_not?: InputMaybe; - amount1In_not_in?: InputMaybe>; - amount1Out?: InputMaybe; - amount1Out_gt?: InputMaybe; - amount1Out_gte?: InputMaybe; - amount1Out_in?: InputMaybe>; - amount1Out_lt?: InputMaybe; - amount1Out_lte?: InputMaybe; - amount1Out_not?: InputMaybe; - amount1Out_not_in?: InputMaybe>; - amountUSD?: InputMaybe; - amountUSD_gt?: InputMaybe; - amountUSD_gte?: InputMaybe; - amountUSD_in?: InputMaybe>; - amountUSD_lt?: InputMaybe; - amountUSD_lte?: InputMaybe; - amountUSD_not?: InputMaybe; - amountUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - from?: InputMaybe; - from_contains?: InputMaybe; - from_gt?: InputMaybe; - from_gte?: InputMaybe; - from_in?: InputMaybe>; - from_lt?: InputMaybe; - from_lte?: InputMaybe; - from_not?: InputMaybe; - from_not_contains?: InputMaybe; - from_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_contains?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - to?: InputMaybe; - to_contains?: InputMaybe; - to_gt?: InputMaybe; - to_gte?: InputMaybe; - to_in?: InputMaybe>; - to_lt?: InputMaybe; - to_lte?: InputMaybe; - to_not?: InputMaybe; - to_not_contains?: InputMaybe; - to_not_in?: InputMaybe>; - transaction?: InputMaybe; - transaction_?: InputMaybe; - transaction_contains?: InputMaybe; - transaction_contains_nocase?: InputMaybe; - transaction_ends_with?: InputMaybe; - transaction_ends_with_nocase?: InputMaybe; - transaction_gt?: InputMaybe; - transaction_gte?: InputMaybe; - transaction_in?: InputMaybe>; - transaction_lt?: InputMaybe; - transaction_lte?: InputMaybe; - transaction_not?: InputMaybe; - transaction_not_contains?: InputMaybe; - transaction_not_contains_nocase?: InputMaybe; - transaction_not_ends_with?: InputMaybe; - transaction_not_ends_with_nocase?: InputMaybe; - transaction_not_in?: InputMaybe>; - transaction_not_starts_with?: InputMaybe; - transaction_not_starts_with_nocase?: InputMaybe; - transaction_starts_with?: InputMaybe; - transaction_starts_with_nocase?: InputMaybe; -}; -export declare enum Swap_OrderBy { - Amount0In = "amount0In", - Amount0Out = "amount0Out", - Amount1In = "amount1In", - Amount1Out = "amount1Out", - AmountUsd = "amountUSD", - From = "from", - Id = "id", - LogIndex = "logIndex", - Pair = "pair", - PairCreatedAtBlockNumber = "pair__createdAtBlockNumber", - PairCreatedAtTimestamp = "pair__createdAtTimestamp", - PairId = "pair__id", - PairLiquidityProviderCount = "pair__liquidityProviderCount", - PairReserve0 = "pair__reserve0", - PairReserve1 = "pair__reserve1", - PairReserveNativeCurrency = "pair__reserveNativeCurrency", - PairReserveUsd = "pair__reserveUSD", - PairSwapFee = "pair__swapFee", - PairToken0Price = "pair__token0Price", - PairToken1Price = "pair__token1Price", - PairTotalSupply = "pair__totalSupply", - PairTrackedReserveNativeCurrency = "pair__trackedReserveNativeCurrency", - PairTxCount = "pair__txCount", - PairUntrackedVolumeUsd = "pair__untrackedVolumeUSD", - PairVolumeToken0 = "pair__volumeToken0", - PairVolumeToken1 = "pair__volumeToken1", - PairVolumeUsd = "pair__volumeUSD", - Sender = "sender", - Timestamp = "timestamp", - To = "to", - Transaction = "transaction", - TransactionBlockNumber = "transaction__blockNumber", - TransactionId = "transaction__id", - TransactionTimestamp = "transaction__timestamp" -} -export type SwaprDayData = { - __typename?: 'SwaprDayData'; - dailyBurns: Scalars['BigInt']; - dailyMints: Scalars['BigInt']; - dailySwaps: Scalars['BigInt']; - dailyVolumeNativeCurrency: Scalars['BigDecimal']; - dailyVolumeUSD: Scalars['BigDecimal']; - dailyVolumeUntracked: Scalars['BigDecimal']; - date: Scalars['Int']; - id: Scalars['ID']; - totalLiquidityNativeCurrency: Scalars['BigDecimal']; - totalLiquidityUSD: Scalars['BigDecimal']; - totalVolumeNativeCurrency: Scalars['BigDecimal']; - totalVolumeUSD: Scalars['BigDecimal']; - txCount: Scalars['BigInt']; -}; -export type SwaprDayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dailyBurns?: InputMaybe; - dailyBurns_gt?: InputMaybe; - dailyBurns_gte?: InputMaybe; - dailyBurns_in?: InputMaybe>; - dailyBurns_lt?: InputMaybe; - dailyBurns_lte?: InputMaybe; - dailyBurns_not?: InputMaybe; - dailyBurns_not_in?: InputMaybe>; - dailyMints?: InputMaybe; - dailyMints_gt?: InputMaybe; - dailyMints_gte?: InputMaybe; - dailyMints_in?: InputMaybe>; - dailyMints_lt?: InputMaybe; - dailyMints_lte?: InputMaybe; - dailyMints_not?: InputMaybe; - dailyMints_not_in?: InputMaybe>; - dailySwaps?: InputMaybe; - dailySwaps_gt?: InputMaybe; - dailySwaps_gte?: InputMaybe; - dailySwaps_in?: InputMaybe>; - dailySwaps_lt?: InputMaybe; - dailySwaps_lte?: InputMaybe; - dailySwaps_not?: InputMaybe; - dailySwaps_not_in?: InputMaybe>; - dailyVolumeNativeCurrency?: InputMaybe; - dailyVolumeNativeCurrency_gt?: InputMaybe; - dailyVolumeNativeCurrency_gte?: InputMaybe; - dailyVolumeNativeCurrency_in?: InputMaybe>; - dailyVolumeNativeCurrency_lt?: InputMaybe; - dailyVolumeNativeCurrency_lte?: InputMaybe; - dailyVolumeNativeCurrency_not?: InputMaybe; - dailyVolumeNativeCurrency_not_in?: InputMaybe>; - dailyVolumeUSD?: InputMaybe; - dailyVolumeUSD_gt?: InputMaybe; - dailyVolumeUSD_gte?: InputMaybe; - dailyVolumeUSD_in?: InputMaybe>; - dailyVolumeUSD_lt?: InputMaybe; - dailyVolumeUSD_lte?: InputMaybe; - dailyVolumeUSD_not?: InputMaybe; - dailyVolumeUSD_not_in?: InputMaybe>; - dailyVolumeUntracked?: InputMaybe; - dailyVolumeUntracked_gt?: InputMaybe; - dailyVolumeUntracked_gte?: InputMaybe; - dailyVolumeUntracked_in?: InputMaybe>; - dailyVolumeUntracked_lt?: InputMaybe; - dailyVolumeUntracked_lte?: InputMaybe; - dailyVolumeUntracked_not?: InputMaybe; - dailyVolumeUntracked_not_in?: InputMaybe>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - totalLiquidityNativeCurrency?: InputMaybe; - totalLiquidityNativeCurrency_gt?: InputMaybe; - totalLiquidityNativeCurrency_gte?: InputMaybe; - totalLiquidityNativeCurrency_in?: InputMaybe>; - totalLiquidityNativeCurrency_lt?: InputMaybe; - totalLiquidityNativeCurrency_lte?: InputMaybe; - totalLiquidityNativeCurrency_not?: InputMaybe; - totalLiquidityNativeCurrency_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; - totalVolumeNativeCurrency?: InputMaybe; - totalVolumeNativeCurrency_gt?: InputMaybe; - totalVolumeNativeCurrency_gte?: InputMaybe; - totalVolumeNativeCurrency_in?: InputMaybe>; - totalVolumeNativeCurrency_lt?: InputMaybe; - totalVolumeNativeCurrency_lte?: InputMaybe; - totalVolumeNativeCurrency_not?: InputMaybe; - totalVolumeNativeCurrency_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; -}; -export declare enum SwaprDayData_OrderBy { - DailyBurns = "dailyBurns", - DailyMints = "dailyMints", - DailySwaps = "dailySwaps", - DailyVolumeNativeCurrency = "dailyVolumeNativeCurrency", - DailyVolumeUsd = "dailyVolumeUSD", - DailyVolumeUntracked = "dailyVolumeUntracked", - Date = "date", - Id = "id", - TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", - TotalLiquidityUsd = "totalLiquidityUSD", - TotalVolumeNativeCurrency = "totalVolumeNativeCurrency", - TotalVolumeUsd = "totalVolumeUSD", - TxCount = "txCount" -} -export type SwaprFactory = { - __typename?: 'SwaprFactory'; - id: Scalars['ID']; - pairCount: Scalars['Int']; - totalLiquidityNativeCurrency: Scalars['BigDecimal']; - totalLiquidityUSD: Scalars['BigDecimal']; - totalVolumeNativeCurrency: Scalars['BigDecimal']; - totalVolumeUSD: Scalars['BigDecimal']; - txCount: Scalars['BigInt']; - untrackedVolumeUSD: Scalars['BigDecimal']; -}; -export type SwaprFactory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairCount?: InputMaybe; - pairCount_gt?: InputMaybe; - pairCount_gte?: InputMaybe; - pairCount_in?: InputMaybe>; - pairCount_lt?: InputMaybe; - pairCount_lte?: InputMaybe; - pairCount_not?: InputMaybe; - pairCount_not_in?: InputMaybe>; - totalLiquidityNativeCurrency?: InputMaybe; - totalLiquidityNativeCurrency_gt?: InputMaybe; - totalLiquidityNativeCurrency_gte?: InputMaybe; - totalLiquidityNativeCurrency_in?: InputMaybe>; - totalLiquidityNativeCurrency_lt?: InputMaybe; - totalLiquidityNativeCurrency_lte?: InputMaybe; - totalLiquidityNativeCurrency_not?: InputMaybe; - totalLiquidityNativeCurrency_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; - totalVolumeNativeCurrency?: InputMaybe; - totalVolumeNativeCurrency_gt?: InputMaybe; - totalVolumeNativeCurrency_gte?: InputMaybe; - totalVolumeNativeCurrency_in?: InputMaybe>; - totalVolumeNativeCurrency_lt?: InputMaybe; - totalVolumeNativeCurrency_lte?: InputMaybe; - totalVolumeNativeCurrency_not?: InputMaybe; - totalVolumeNativeCurrency_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; -}; -export declare enum SwaprFactory_OrderBy { - Id = "id", - PairCount = "pairCount", - TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", - TotalLiquidityUsd = "totalLiquidityUSD", - TotalVolumeNativeCurrency = "totalVolumeNativeCurrency", - TotalVolumeUsd = "totalVolumeUSD", - TxCount = "txCount", - UntrackedVolumeUsd = "untrackedVolumeUSD" -} -export type SwaprStakingRewardsFactory = { - __typename?: 'SwaprStakingRewardsFactory'; - id: Scalars['ID']; - initializedCampaignsCount: Scalars['Int']; -}; -export type SwaprStakingRewardsFactory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - initializedCampaignsCount?: InputMaybe; - initializedCampaignsCount_gt?: InputMaybe; - initializedCampaignsCount_gte?: InputMaybe; - initializedCampaignsCount_in?: InputMaybe>; - initializedCampaignsCount_lt?: InputMaybe; - initializedCampaignsCount_lte?: InputMaybe; - initializedCampaignsCount_not?: InputMaybe; - initializedCampaignsCount_not_in?: InputMaybe>; - or?: InputMaybe>>; -}; -export declare enum SwaprStakingRewardsFactory_OrderBy { - Id = "id", - InitializedCampaignsCount = "initializedCampaignsCount" -} -export type Token = { - __typename?: 'Token'; - decimals: Scalars['BigInt']; - derivedNativeCurrency: Scalars['BigDecimal']; - id: Scalars['ID']; - name: Scalars['String']; - pairBase: Array; - pairDayDataBase: Array; - pairDayDataQuote: Array; - pairQuote: Array; - symbol: Scalars['String']; - tokenDayData: Array; - totalLiquidity: Scalars['BigDecimal']; - totalSupply: Scalars['BigInt']; - tradeVolume: Scalars['BigDecimal']; - tradeVolumeUSD: Scalars['BigDecimal']; - txCount: Scalars['BigInt']; - untrackedVolumeUSD: Scalars['BigDecimal']; - whitelistPairs: Array; -}; -export type TokenPairBaseArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenPairDayDataBaseArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenPairDayDataQuoteArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenPairQuoteArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenTokenDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenWhitelistPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TokenDayData = { - __typename?: 'TokenDayData'; - dailyTxns: Scalars['BigInt']; - dailyVolumeNativeCurrency: Scalars['BigDecimal']; - dailyVolumeToken: Scalars['BigDecimal']; - dailyVolumeUSD: Scalars['BigDecimal']; - date: Scalars['Int']; - id: Scalars['ID']; - priceUSD: Scalars['BigDecimal']; - token: Token; - totalLiquidityNativeCurrency: Scalars['BigDecimal']; - totalLiquidityToken: Scalars['BigDecimal']; - totalLiquidityUSD: Scalars['BigDecimal']; -}; -export type TokenDayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dailyTxns?: InputMaybe; - dailyTxns_gt?: InputMaybe; - dailyTxns_gte?: InputMaybe; - dailyTxns_in?: InputMaybe>; - dailyTxns_lt?: InputMaybe; - dailyTxns_lte?: InputMaybe; - dailyTxns_not?: InputMaybe; - dailyTxns_not_in?: InputMaybe>; - dailyVolumeNativeCurrency?: InputMaybe; - dailyVolumeNativeCurrency_gt?: InputMaybe; - dailyVolumeNativeCurrency_gte?: InputMaybe; - dailyVolumeNativeCurrency_in?: InputMaybe>; - dailyVolumeNativeCurrency_lt?: InputMaybe; - dailyVolumeNativeCurrency_lte?: InputMaybe; - dailyVolumeNativeCurrency_not?: InputMaybe; - dailyVolumeNativeCurrency_not_in?: InputMaybe>; - dailyVolumeToken?: InputMaybe; - dailyVolumeToken_gt?: InputMaybe; - dailyVolumeToken_gte?: InputMaybe; - dailyVolumeToken_in?: InputMaybe>; - dailyVolumeToken_lt?: InputMaybe; - dailyVolumeToken_lte?: InputMaybe; - dailyVolumeToken_not?: InputMaybe; - dailyVolumeToken_not_in?: InputMaybe>; - dailyVolumeUSD?: InputMaybe; - dailyVolumeUSD_gt?: InputMaybe; - dailyVolumeUSD_gte?: InputMaybe; - dailyVolumeUSD_in?: InputMaybe>; - dailyVolumeUSD_lt?: InputMaybe; - dailyVolumeUSD_lte?: InputMaybe; - dailyVolumeUSD_not?: InputMaybe; - dailyVolumeUSD_not_in?: InputMaybe>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - priceUSD?: InputMaybe; - priceUSD_gt?: InputMaybe; - priceUSD_gte?: InputMaybe; - priceUSD_in?: InputMaybe>; - priceUSD_lt?: InputMaybe; - priceUSD_lte?: InputMaybe; - priceUSD_not?: InputMaybe; - priceUSD_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - totalLiquidityNativeCurrency?: InputMaybe; - totalLiquidityNativeCurrency_gt?: InputMaybe; - totalLiquidityNativeCurrency_gte?: InputMaybe; - totalLiquidityNativeCurrency_in?: InputMaybe>; - totalLiquidityNativeCurrency_lt?: InputMaybe; - totalLiquidityNativeCurrency_lte?: InputMaybe; - totalLiquidityNativeCurrency_not?: InputMaybe; - totalLiquidityNativeCurrency_not_in?: InputMaybe>; - totalLiquidityToken?: InputMaybe; - totalLiquidityToken_gt?: InputMaybe; - totalLiquidityToken_gte?: InputMaybe; - totalLiquidityToken_in?: InputMaybe>; - totalLiquidityToken_lt?: InputMaybe; - totalLiquidityToken_lte?: InputMaybe; - totalLiquidityToken_not?: InputMaybe; - totalLiquidityToken_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; -}; -export declare enum TokenDayData_OrderBy { - DailyTxns = "dailyTxns", - DailyVolumeNativeCurrency = "dailyVolumeNativeCurrency", - DailyVolumeToken = "dailyVolumeToken", - DailyVolumeUsd = "dailyVolumeUSD", - Date = "date", - Id = "id", - PriceUsd = "priceUSD", - Token = "token", - TokenDecimals = "token__decimals", - TokenDerivedNativeCurrency = "token__derivedNativeCurrency", - TokenId = "token__id", - TokenName = "token__name", - TokenSymbol = "token__symbol", - TokenTotalLiquidity = "token__totalLiquidity", - TokenTotalSupply = "token__totalSupply", - TokenTradeVolume = "token__tradeVolume", - TokenTradeVolumeUsd = "token__tradeVolumeUSD", - TokenTxCount = "token__txCount", - TokenUntrackedVolumeUsd = "token__untrackedVolumeUSD", - TotalLiquidityNativeCurrency = "totalLiquidityNativeCurrency", - TotalLiquidityToken = "totalLiquidityToken", - TotalLiquidityUsd = "totalLiquidityUSD" -} -export type Token_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - decimals?: InputMaybe; - decimals_gt?: InputMaybe; - decimals_gte?: InputMaybe; - decimals_in?: InputMaybe>; - decimals_lt?: InputMaybe; - decimals_lte?: InputMaybe; - decimals_not?: InputMaybe; - decimals_not_in?: InputMaybe>; - derivedNativeCurrency?: InputMaybe; - derivedNativeCurrency_gt?: InputMaybe; - derivedNativeCurrency_gte?: InputMaybe; - derivedNativeCurrency_in?: InputMaybe>; - derivedNativeCurrency_lt?: InputMaybe; - derivedNativeCurrency_lte?: InputMaybe; - derivedNativeCurrency_not?: InputMaybe; - derivedNativeCurrency_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - pairBase_?: InputMaybe; - pairDayDataBase_?: InputMaybe; - pairDayDataQuote_?: InputMaybe; - pairQuote_?: InputMaybe; - symbol?: InputMaybe; - symbol_contains?: InputMaybe; - symbol_contains_nocase?: InputMaybe; - symbol_ends_with?: InputMaybe; - symbol_ends_with_nocase?: InputMaybe; - symbol_gt?: InputMaybe; - symbol_gte?: InputMaybe; - symbol_in?: InputMaybe>; - symbol_lt?: InputMaybe; - symbol_lte?: InputMaybe; - symbol_not?: InputMaybe; - symbol_not_contains?: InputMaybe; - symbol_not_contains_nocase?: InputMaybe; - symbol_not_ends_with?: InputMaybe; - symbol_not_ends_with_nocase?: InputMaybe; - symbol_not_in?: InputMaybe>; - symbol_not_starts_with?: InputMaybe; - symbol_not_starts_with_nocase?: InputMaybe; - symbol_starts_with?: InputMaybe; - symbol_starts_with_nocase?: InputMaybe; - tokenDayData_?: InputMaybe; - totalLiquidity?: InputMaybe; - totalLiquidity_gt?: InputMaybe; - totalLiquidity_gte?: InputMaybe; - totalLiquidity_in?: InputMaybe>; - totalLiquidity_lt?: InputMaybe; - totalLiquidity_lte?: InputMaybe; - totalLiquidity_not?: InputMaybe; - totalLiquidity_not_in?: InputMaybe>; - totalSupply?: InputMaybe; - totalSupply_gt?: InputMaybe; - totalSupply_gte?: InputMaybe; - totalSupply_in?: InputMaybe>; - totalSupply_lt?: InputMaybe; - totalSupply_lte?: InputMaybe; - totalSupply_not?: InputMaybe; - totalSupply_not_in?: InputMaybe>; - tradeVolume?: InputMaybe; - tradeVolumeUSD?: InputMaybe; - tradeVolumeUSD_gt?: InputMaybe; - tradeVolumeUSD_gte?: InputMaybe; - tradeVolumeUSD_in?: InputMaybe>; - tradeVolumeUSD_lt?: InputMaybe; - tradeVolumeUSD_lte?: InputMaybe; - tradeVolumeUSD_not?: InputMaybe; - tradeVolumeUSD_not_in?: InputMaybe>; - tradeVolume_gt?: InputMaybe; - tradeVolume_gte?: InputMaybe; - tradeVolume_in?: InputMaybe>; - tradeVolume_lt?: InputMaybe; - tradeVolume_lte?: InputMaybe; - tradeVolume_not?: InputMaybe; - tradeVolume_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - whitelistPairs?: InputMaybe>; - whitelistPairs_?: InputMaybe; - whitelistPairs_contains?: InputMaybe>; - whitelistPairs_contains_nocase?: InputMaybe>; - whitelistPairs_not?: InputMaybe>; - whitelistPairs_not_contains?: InputMaybe>; - whitelistPairs_not_contains_nocase?: InputMaybe>; -}; -export declare enum Token_OrderBy { - Decimals = "decimals", - DerivedNativeCurrency = "derivedNativeCurrency", - Id = "id", - Name = "name", - PairBase = "pairBase", - PairDayDataBase = "pairDayDataBase", - PairDayDataQuote = "pairDayDataQuote", - PairQuote = "pairQuote", - Symbol = "symbol", - TokenDayData = "tokenDayData", - TotalLiquidity = "totalLiquidity", - TotalSupply = "totalSupply", - TradeVolume = "tradeVolume", - TradeVolumeUsd = "tradeVolumeUSD", - TxCount = "txCount", - UntrackedVolumeUsd = "untrackedVolumeUSD", - WhitelistPairs = "whitelistPairs" -} -export type Transaction = { - __typename?: 'Transaction'; - blockNumber: Scalars['BigInt']; - burns: Array; - id: Scalars['ID']; - mints: Array; - swaps: Array; - timestamp: Scalars['BigInt']; -}; -export type TransactionBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TransactionMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type TransactionSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type Transaction_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - burns?: InputMaybe>; - burns_?: InputMaybe; - burns_contains?: InputMaybe>; - burns_contains_nocase?: InputMaybe>; - burns_not?: InputMaybe>; - burns_not_contains?: InputMaybe>; - burns_not_contains_nocase?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - mints?: InputMaybe>; - mints_?: InputMaybe; - mints_contains?: InputMaybe>; - mints_contains_nocase?: InputMaybe>; - mints_not?: InputMaybe>; - mints_not_contains?: InputMaybe>; - mints_not_contains_nocase?: InputMaybe>; - or?: InputMaybe>>; - swaps?: InputMaybe>; - swaps_?: InputMaybe; - swaps_contains?: InputMaybe>; - swaps_contains_nocase?: InputMaybe>; - swaps_not?: InputMaybe>; - swaps_not_contains?: InputMaybe>; - swaps_not_contains_nocase?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; -export declare enum Transaction_OrderBy { - BlockNumber = "blockNumber", - Burns = "burns", - Id = "id", - Mints = "mints", - Swaps = "swaps", - Timestamp = "timestamp" -} -export type User = { - __typename?: 'User'; - id: Scalars['ID']; - liquidityPositions?: Maybe>; - usdSwapped: Scalars['BigDecimal']; -}; -export type UserLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; -export type User_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityPositions_?: InputMaybe; - or?: InputMaybe>>; - usdSwapped?: InputMaybe; - usdSwapped_gt?: InputMaybe; - usdSwapped_gte?: InputMaybe; - usdSwapped_in?: InputMaybe>; - usdSwapped_lt?: InputMaybe; - usdSwapped_lte?: InputMaybe; - usdSwapped_not?: InputMaybe; - usdSwapped_not_in?: InputMaybe>; -}; -export declare enum User_OrderBy { - Id = "id", - LiquidityPositions = "liquidityPositions", - UsdSwapped = "usdSwapped" -} -export type WeeklyUniqueAddressInteraction = { - __typename?: 'WeeklyUniqueAddressInteraction'; - addresses: Array; - id: Scalars['ID']; - timestampEnd: Scalars['Int']; - timestampStart: Scalars['Int']; -}; -export type WeeklyUniqueAddressInteraction_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - addresses?: InputMaybe>; - addresses_contains?: InputMaybe>; - addresses_contains_nocase?: InputMaybe>; - addresses_not?: InputMaybe>; - addresses_not_contains?: InputMaybe>; - addresses_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - timestampEnd?: InputMaybe; - timestampEnd_gt?: InputMaybe; - timestampEnd_gte?: InputMaybe; - timestampEnd_in?: InputMaybe>; - timestampEnd_lt?: InputMaybe; - timestampEnd_lte?: InputMaybe; - timestampEnd_not?: InputMaybe; - timestampEnd_not_in?: InputMaybe>; - timestampStart?: InputMaybe; - timestampStart_gt?: InputMaybe; - timestampStart_gte?: InputMaybe; - timestampStart_in?: InputMaybe>; - timestampStart_lt?: InputMaybe; - timestampStart_lte?: InputMaybe; - timestampStart_not?: InputMaybe; - timestampStart_not_in?: InputMaybe>; -}; -export declare enum WeeklyUniqueAddressInteraction_OrderBy { - Addresses = "addresses", - Id = "id", - TimestampEnd = "timestampEnd", - TimestampStart = "timestampStart" -} -export type Withdrawal = { - __typename?: 'Withdrawal'; - amount: Scalars['BigDecimal']; - id: Scalars['ID']; - liquidityMiningCampaign: LiquidityMiningCampaign; - timestamp: Scalars['BigInt']; - user: Scalars['Bytes']; -}; -export type Withdrawal_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityMiningCampaign?: InputMaybe; - liquidityMiningCampaign_?: InputMaybe; - liquidityMiningCampaign_contains?: InputMaybe; - liquidityMiningCampaign_contains_nocase?: InputMaybe; - liquidityMiningCampaign_ends_with?: InputMaybe; - liquidityMiningCampaign_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_gt?: InputMaybe; - liquidityMiningCampaign_gte?: InputMaybe; - liquidityMiningCampaign_in?: InputMaybe>; - liquidityMiningCampaign_lt?: InputMaybe; - liquidityMiningCampaign_lte?: InputMaybe; - liquidityMiningCampaign_not?: InputMaybe; - liquidityMiningCampaign_not_contains?: InputMaybe; - liquidityMiningCampaign_not_contains_nocase?: InputMaybe; - liquidityMiningCampaign_not_ends_with?: InputMaybe; - liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe; - liquidityMiningCampaign_not_in?: InputMaybe>; - liquidityMiningCampaign_not_starts_with?: InputMaybe; - liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe; - liquidityMiningCampaign_starts_with?: InputMaybe; - liquidityMiningCampaign_starts_with_nocase?: InputMaybe; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - user?: InputMaybe; - user_contains?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_in?: InputMaybe>; -}; -export declare enum Withdrawal_OrderBy { - Amount = "amount", - Id = "id", - LiquidityMiningCampaign = "liquidityMiningCampaign", - LiquidityMiningCampaignDuration = "liquidityMiningCampaign__duration", - LiquidityMiningCampaignEndsAt = "liquidityMiningCampaign__endsAt", - LiquidityMiningCampaignId = "liquidityMiningCampaign__id", - LiquidityMiningCampaignInitialized = "liquidityMiningCampaign__initialized", - LiquidityMiningCampaignLocked = "liquidityMiningCampaign__locked", - LiquidityMiningCampaignOwner = "liquidityMiningCampaign__owner", - LiquidityMiningCampaignStakedAmount = "liquidityMiningCampaign__stakedAmount", - LiquidityMiningCampaignStakingCap = "liquidityMiningCampaign__stakingCap", - LiquidityMiningCampaignStartsAt = "liquidityMiningCampaign__startsAt", - Timestamp = "timestamp", - User = "user" -} -export type _Block_ = { - __typename?: '_Block_'; - /** The hash of the block */ - hash?: Maybe; - /** The block number */ - number: Scalars['Int']; - /** Integer representation of the timestamp stored in blocks for the chain */ - timestamp?: Maybe; -}; -/** The type for the top-level _meta field */ -export type _Meta_ = { - __typename?: '_Meta_'; - /** - * Information about a specific subgraph block. The hash of the block - * will be null if the _meta field has a block constraint that asks for - * a block number. It will be filled if the _meta field has no block constraint - * and therefore asks for the latest block - * - */ - block: _Block_; - /** The deployment ID */ - deployment: Scalars['String']; - /** If `true`, the subgraph encountered indexing errors at some past block */ - hasIndexingErrors: Scalars['Boolean']; -}; -export declare enum _SubgraphErrorPolicy_ { - /** Data will be returned even if the subgraph has indexing errors */ - Allow = "allow", - /** If the subgraph has indexing errors, data will be omitted. The default. */ - Deny = "deny" -} -export type GetAllCommonPairsBetweenTokenAAndTokenBQueryVariables = Exact<{ - tokenA: Scalars['String']; - tokenB: Scalars['String']; -}>; -export type GetAllCommonPairsBetweenTokenAAndTokenBQuery = { - __typename?: 'Query'; - pairsWithTokenA: Array<{ - __typename?: 'Pair'; - id: string; - reserve0: any; - reserve1: any; - token0: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; - token1: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; - }>; - pairsWithTokenB: Array<{ - __typename?: 'Pair'; - id: string; - reserve0: any; - reserve1: any; - token0: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; - token1: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; - }>; -}; -export type PairDetailsFragment = { - __typename?: 'Pair'; - id: string; - reserve0: any; - reserve1: any; - token0: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; - token1: { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; - }; -}; -export type TokenDetailsFragment = { - __typename?: 'Token'; - id: string; - name: string; - symbol: string; - decimals: any; -}; -export declare const TokenDetailsFragmentDoc: import("graphql/language/ast").DocumentNode; -export declare const PairDetailsFragmentDoc: import("graphql/language/ast").DocumentNode; -export declare const GetAllCommonPairsBetweenTokenAAndTokenBDocument: import("graphql/language/ast").DocumentNode; -export type SdkFunctionWrapper = (action: (requestHeaders?: Record) => Promise, operationName: string, operationType?: string) => Promise; -export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { - GetAllCommonPairsBetweenTokenAAndTokenB(variables: GetAllCommonPairsBetweenTokenAAndTokenBQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise; -}; -export type Sdk = ReturnType; diff --git a/dist/generated/graphql/index.js b/dist/generated/graphql/index.js deleted file mode 100644 index c545c0d0..00000000 --- a/dist/generated/graphql/index.js +++ /dev/null @@ -1,812 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSdk = exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument = exports.PairDetailsFragmentDoc = exports.TokenDetailsFragmentDoc = exports._SubgraphErrorPolicy_ = exports.Withdrawal_OrderBy = exports.WeeklyUniqueAddressInteraction_OrderBy = exports.User_OrderBy = exports.Transaction_OrderBy = exports.Token_OrderBy = exports.TokenDayData_OrderBy = exports.SwaprStakingRewardsFactory_OrderBy = exports.SwaprFactory_OrderBy = exports.SwaprDayData_OrderBy = exports.Swap_OrderBy = exports.SingleSidedStakingCampaign_OrderBy = exports.SingleSidedStakingCampaignWithdrawal_OrderBy = exports.SingleSidedStakingCampaignReward_OrderBy = exports.SingleSidedStakingCampaignRecovery_OrderBy = exports.SingleSidedStakingCampaignPosition_OrderBy = exports.SingleSidedStakingCampaignDeposit_OrderBy = exports.SingleSidedStakingCampaignClaim_OrderBy = exports.Recovery_OrderBy = exports.Pair_OrderBy = exports.PairHourData_OrderBy = exports.PairDayData_OrderBy = exports.OrderDirection = exports.MonthlyUniqueAddressInteraction_OrderBy = exports.Mint_OrderBy = exports.LiquidityPosition_OrderBy = exports.LiquidityPositionSnapshot_OrderBy = exports.LiquidityMiningPosition_OrderBy = exports.LiquidityMiningPositionSnapshot_OrderBy = exports.LiquidityMiningCampaign_OrderBy = exports.LiquidityMiningCampaignReward_OrderBy = exports.Deposit_OrderBy = exports.DailyUniqueAddressInteraction_OrderBy = exports.Claim_OrderBy = exports.Burn_OrderBy = exports.Bundle_OrderBy = void 0; -const tslib_1 = require("tslib"); -const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag")); -var Bundle_OrderBy; -(function (Bundle_OrderBy) { - Bundle_OrderBy["Id"] = "id"; - Bundle_OrderBy["NativeCurrencyPrice"] = "nativeCurrencyPrice"; -})(Bundle_OrderBy = exports.Bundle_OrderBy || (exports.Bundle_OrderBy = {})); -var Burn_OrderBy; -(function (Burn_OrderBy) { - Burn_OrderBy["Amount0"] = "amount0"; - Burn_OrderBy["Amount1"] = "amount1"; - Burn_OrderBy["AmountUsd"] = "amountUSD"; - Burn_OrderBy["FeeLiquidity"] = "feeLiquidity"; - Burn_OrderBy["FeeTo"] = "feeTo"; - Burn_OrderBy["Id"] = "id"; - Burn_OrderBy["Liquidity"] = "liquidity"; - Burn_OrderBy["LogIndex"] = "logIndex"; - Burn_OrderBy["NeedsComplete"] = "needsComplete"; - Burn_OrderBy["Pair"] = "pair"; - Burn_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - Burn_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - Burn_OrderBy["PairId"] = "pair__id"; - Burn_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - Burn_OrderBy["PairReserve0"] = "pair__reserve0"; - Burn_OrderBy["PairReserve1"] = "pair__reserve1"; - Burn_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - Burn_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - Burn_OrderBy["PairSwapFee"] = "pair__swapFee"; - Burn_OrderBy["PairToken0Price"] = "pair__token0Price"; - Burn_OrderBy["PairToken1Price"] = "pair__token1Price"; - Burn_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - Burn_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - Burn_OrderBy["PairTxCount"] = "pair__txCount"; - Burn_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - Burn_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - Burn_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - Burn_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - Burn_OrderBy["Sender"] = "sender"; - Burn_OrderBy["Timestamp"] = "timestamp"; - Burn_OrderBy["To"] = "to"; - Burn_OrderBy["Transaction"] = "transaction"; - Burn_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; - Burn_OrderBy["TransactionId"] = "transaction__id"; - Burn_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; -})(Burn_OrderBy = exports.Burn_OrderBy || (exports.Burn_OrderBy = {})); -var Claim_OrderBy; -(function (Claim_OrderBy) { - Claim_OrderBy["Amounts"] = "amounts"; - Claim_OrderBy["Id"] = "id"; - Claim_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - Claim_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - Claim_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - Claim_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - Claim_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - Claim_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - Claim_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - Claim_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - Claim_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - Claim_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - Claim_OrderBy["Timestamp"] = "timestamp"; - Claim_OrderBy["User"] = "user"; -})(Claim_OrderBy = exports.Claim_OrderBy || (exports.Claim_OrderBy = {})); -var DailyUniqueAddressInteraction_OrderBy; -(function (DailyUniqueAddressInteraction_OrderBy) { - DailyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; - DailyUniqueAddressInteraction_OrderBy["Id"] = "id"; - DailyUniqueAddressInteraction_OrderBy["Timestamp"] = "timestamp"; -})(DailyUniqueAddressInteraction_OrderBy = exports.DailyUniqueAddressInteraction_OrderBy || (exports.DailyUniqueAddressInteraction_OrderBy = {})); -var Deposit_OrderBy; -(function (Deposit_OrderBy) { - Deposit_OrderBy["Amount"] = "amount"; - Deposit_OrderBy["Id"] = "id"; - Deposit_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - Deposit_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - Deposit_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - Deposit_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - Deposit_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - Deposit_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - Deposit_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - Deposit_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - Deposit_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - Deposit_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - Deposit_OrderBy["Timestamp"] = "timestamp"; - Deposit_OrderBy["User"] = "user"; -})(Deposit_OrderBy = exports.Deposit_OrderBy || (exports.Deposit_OrderBy = {})); -var LiquidityMiningCampaignReward_OrderBy; -(function (LiquidityMiningCampaignReward_OrderBy) { - LiquidityMiningCampaignReward_OrderBy["Amount"] = "amount"; - LiquidityMiningCampaignReward_OrderBy["Id"] = "id"; - LiquidityMiningCampaignReward_OrderBy["Token"] = "token"; - LiquidityMiningCampaignReward_OrderBy["TokenDecimals"] = "token__decimals"; - LiquidityMiningCampaignReward_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; - LiquidityMiningCampaignReward_OrderBy["TokenId"] = "token__id"; - LiquidityMiningCampaignReward_OrderBy["TokenName"] = "token__name"; - LiquidityMiningCampaignReward_OrderBy["TokenSymbol"] = "token__symbol"; - LiquidityMiningCampaignReward_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; - LiquidityMiningCampaignReward_OrderBy["TokenTotalSupply"] = "token__totalSupply"; - LiquidityMiningCampaignReward_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; - LiquidityMiningCampaignReward_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; - LiquidityMiningCampaignReward_OrderBy["TokenTxCount"] = "token__txCount"; - LiquidityMiningCampaignReward_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; -})(LiquidityMiningCampaignReward_OrderBy = exports.LiquidityMiningCampaignReward_OrderBy || (exports.LiquidityMiningCampaignReward_OrderBy = {})); -var LiquidityMiningCampaign_OrderBy; -(function (LiquidityMiningCampaign_OrderBy) { - LiquidityMiningCampaign_OrderBy["Claims"] = "claims"; - LiquidityMiningCampaign_OrderBy["Deposits"] = "deposits"; - LiquidityMiningCampaign_OrderBy["Duration"] = "duration"; - LiquidityMiningCampaign_OrderBy["EndsAt"] = "endsAt"; - LiquidityMiningCampaign_OrderBy["Id"] = "id"; - LiquidityMiningCampaign_OrderBy["Initialized"] = "initialized"; - LiquidityMiningCampaign_OrderBy["LiquidityMiningPositionSnapshots"] = "liquidityMiningPositionSnapshots"; - LiquidityMiningCampaign_OrderBy["LiquidityMiningPositions"] = "liquidityMiningPositions"; - LiquidityMiningCampaign_OrderBy["Locked"] = "locked"; - LiquidityMiningCampaign_OrderBy["Owner"] = "owner"; - LiquidityMiningCampaign_OrderBy["Recoveries"] = "recoveries"; - LiquidityMiningCampaign_OrderBy["Rewards"] = "rewards"; - LiquidityMiningCampaign_OrderBy["StakablePair"] = "stakablePair"; - LiquidityMiningCampaign_OrderBy["StakablePairCreatedAtBlockNumber"] = "stakablePair__createdAtBlockNumber"; - LiquidityMiningCampaign_OrderBy["StakablePairCreatedAtTimestamp"] = "stakablePair__createdAtTimestamp"; - LiquidityMiningCampaign_OrderBy["StakablePairId"] = "stakablePair__id"; - LiquidityMiningCampaign_OrderBy["StakablePairLiquidityProviderCount"] = "stakablePair__liquidityProviderCount"; - LiquidityMiningCampaign_OrderBy["StakablePairReserve0"] = "stakablePair__reserve0"; - LiquidityMiningCampaign_OrderBy["StakablePairReserve1"] = "stakablePair__reserve1"; - LiquidityMiningCampaign_OrderBy["StakablePairReserveNativeCurrency"] = "stakablePair__reserveNativeCurrency"; - LiquidityMiningCampaign_OrderBy["StakablePairReserveUsd"] = "stakablePair__reserveUSD"; - LiquidityMiningCampaign_OrderBy["StakablePairSwapFee"] = "stakablePair__swapFee"; - LiquidityMiningCampaign_OrderBy["StakablePairToken0Price"] = "stakablePair__token0Price"; - LiquidityMiningCampaign_OrderBy["StakablePairToken1Price"] = "stakablePair__token1Price"; - LiquidityMiningCampaign_OrderBy["StakablePairTotalSupply"] = "stakablePair__totalSupply"; - LiquidityMiningCampaign_OrderBy["StakablePairTrackedReserveNativeCurrency"] = "stakablePair__trackedReserveNativeCurrency"; - LiquidityMiningCampaign_OrderBy["StakablePairTxCount"] = "stakablePair__txCount"; - LiquidityMiningCampaign_OrderBy["StakablePairUntrackedVolumeUsd"] = "stakablePair__untrackedVolumeUSD"; - LiquidityMiningCampaign_OrderBy["StakablePairVolumeToken0"] = "stakablePair__volumeToken0"; - LiquidityMiningCampaign_OrderBy["StakablePairVolumeToken1"] = "stakablePair__volumeToken1"; - LiquidityMiningCampaign_OrderBy["StakablePairVolumeUsd"] = "stakablePair__volumeUSD"; - LiquidityMiningCampaign_OrderBy["StakedAmount"] = "stakedAmount"; - LiquidityMiningCampaign_OrderBy["StakingCap"] = "stakingCap"; - LiquidityMiningCampaign_OrderBy["StartsAt"] = "startsAt"; - LiquidityMiningCampaign_OrderBy["Withdrawals"] = "withdrawals"; -})(LiquidityMiningCampaign_OrderBy = exports.LiquidityMiningCampaign_OrderBy || (exports.LiquidityMiningCampaign_OrderBy = {})); -var LiquidityMiningPositionSnapshot_OrderBy; -(function (LiquidityMiningPositionSnapshot_OrderBy) { - LiquidityMiningPositionSnapshot_OrderBy["Block"] = "block"; - LiquidityMiningPositionSnapshot_OrderBy["Id"] = "id"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPosition"] = "liquidityMiningPosition"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPositionId"] = "liquidityMiningPosition__id"; - LiquidityMiningPositionSnapshot_OrderBy["LiquidityMiningPositionStakedAmount"] = "liquidityMiningPosition__stakedAmount"; - LiquidityMiningPositionSnapshot_OrderBy["Pair"] = "pair"; - LiquidityMiningPositionSnapshot_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - LiquidityMiningPositionSnapshot_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - LiquidityMiningPositionSnapshot_OrderBy["PairId"] = "pair__id"; - LiquidityMiningPositionSnapshot_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - LiquidityMiningPositionSnapshot_OrderBy["PairReserve0"] = "pair__reserve0"; - LiquidityMiningPositionSnapshot_OrderBy["PairReserve1"] = "pair__reserve1"; - LiquidityMiningPositionSnapshot_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - LiquidityMiningPositionSnapshot_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - LiquidityMiningPositionSnapshot_OrderBy["PairSwapFee"] = "pair__swapFee"; - LiquidityMiningPositionSnapshot_OrderBy["PairToken0Price"] = "pair__token0Price"; - LiquidityMiningPositionSnapshot_OrderBy["PairToken1Price"] = "pair__token1Price"; - LiquidityMiningPositionSnapshot_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - LiquidityMiningPositionSnapshot_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - LiquidityMiningPositionSnapshot_OrderBy["PairTxCount"] = "pair__txCount"; - LiquidityMiningPositionSnapshot_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - LiquidityMiningPositionSnapshot_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - LiquidityMiningPositionSnapshot_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - LiquidityMiningPositionSnapshot_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - LiquidityMiningPositionSnapshot_OrderBy["Reserve0"] = "reserve0"; - LiquidityMiningPositionSnapshot_OrderBy["Reserve1"] = "reserve1"; - LiquidityMiningPositionSnapshot_OrderBy["ReserveUsd"] = "reserveUSD"; - LiquidityMiningPositionSnapshot_OrderBy["StakedLiquidityTokenBalance"] = "stakedLiquidityTokenBalance"; - LiquidityMiningPositionSnapshot_OrderBy["Timestamp"] = "timestamp"; - LiquidityMiningPositionSnapshot_OrderBy["Token0PriceUsd"] = "token0PriceUSD"; - LiquidityMiningPositionSnapshot_OrderBy["Token1PriceUsd"] = "token1PriceUSD"; - LiquidityMiningPositionSnapshot_OrderBy["TotalStakedLiquidityToken"] = "totalStakedLiquidityToken"; - LiquidityMiningPositionSnapshot_OrderBy["User"] = "user"; - LiquidityMiningPositionSnapshot_OrderBy["UserId"] = "user__id"; - LiquidityMiningPositionSnapshot_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; -})(LiquidityMiningPositionSnapshot_OrderBy = exports.LiquidityMiningPositionSnapshot_OrderBy || (exports.LiquidityMiningPositionSnapshot_OrderBy = {})); -var LiquidityMiningPosition_OrderBy; -(function (LiquidityMiningPosition_OrderBy) { - LiquidityMiningPosition_OrderBy["Id"] = "id"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - LiquidityMiningPosition_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - LiquidityMiningPosition_OrderBy["StakedAmount"] = "stakedAmount"; - LiquidityMiningPosition_OrderBy["TargetedPair"] = "targetedPair"; - LiquidityMiningPosition_OrderBy["TargetedPairCreatedAtBlockNumber"] = "targetedPair__createdAtBlockNumber"; - LiquidityMiningPosition_OrderBy["TargetedPairCreatedAtTimestamp"] = "targetedPair__createdAtTimestamp"; - LiquidityMiningPosition_OrderBy["TargetedPairId"] = "targetedPair__id"; - LiquidityMiningPosition_OrderBy["TargetedPairLiquidityProviderCount"] = "targetedPair__liquidityProviderCount"; - LiquidityMiningPosition_OrderBy["TargetedPairReserve0"] = "targetedPair__reserve0"; - LiquidityMiningPosition_OrderBy["TargetedPairReserve1"] = "targetedPair__reserve1"; - LiquidityMiningPosition_OrderBy["TargetedPairReserveNativeCurrency"] = "targetedPair__reserveNativeCurrency"; - LiquidityMiningPosition_OrderBy["TargetedPairReserveUsd"] = "targetedPair__reserveUSD"; - LiquidityMiningPosition_OrderBy["TargetedPairSwapFee"] = "targetedPair__swapFee"; - LiquidityMiningPosition_OrderBy["TargetedPairToken0Price"] = "targetedPair__token0Price"; - LiquidityMiningPosition_OrderBy["TargetedPairToken1Price"] = "targetedPair__token1Price"; - LiquidityMiningPosition_OrderBy["TargetedPairTotalSupply"] = "targetedPair__totalSupply"; - LiquidityMiningPosition_OrderBy["TargetedPairTrackedReserveNativeCurrency"] = "targetedPair__trackedReserveNativeCurrency"; - LiquidityMiningPosition_OrderBy["TargetedPairTxCount"] = "targetedPair__txCount"; - LiquidityMiningPosition_OrderBy["TargetedPairUntrackedVolumeUsd"] = "targetedPair__untrackedVolumeUSD"; - LiquidityMiningPosition_OrderBy["TargetedPairVolumeToken0"] = "targetedPair__volumeToken0"; - LiquidityMiningPosition_OrderBy["TargetedPairVolumeToken1"] = "targetedPair__volumeToken1"; - LiquidityMiningPosition_OrderBy["TargetedPairVolumeUsd"] = "targetedPair__volumeUSD"; - LiquidityMiningPosition_OrderBy["User"] = "user"; - LiquidityMiningPosition_OrderBy["UserId"] = "user__id"; - LiquidityMiningPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; -})(LiquidityMiningPosition_OrderBy = exports.LiquidityMiningPosition_OrderBy || (exports.LiquidityMiningPosition_OrderBy = {})); -var LiquidityPositionSnapshot_OrderBy; -(function (LiquidityPositionSnapshot_OrderBy) { - LiquidityPositionSnapshot_OrderBy["Block"] = "block"; - LiquidityPositionSnapshot_OrderBy["Id"] = "id"; - LiquidityPositionSnapshot_OrderBy["LiquidityPosition"] = "liquidityPosition"; - LiquidityPositionSnapshot_OrderBy["LiquidityPositionId"] = "liquidityPosition__id"; - LiquidityPositionSnapshot_OrderBy["LiquidityPositionLiquidityTokenBalance"] = "liquidityPosition__liquidityTokenBalance"; - LiquidityPositionSnapshot_OrderBy["LiquidityTokenBalance"] = "liquidityTokenBalance"; - LiquidityPositionSnapshot_OrderBy["LiquidityTokenTotalSupply"] = "liquidityTokenTotalSupply"; - LiquidityPositionSnapshot_OrderBy["Pair"] = "pair"; - LiquidityPositionSnapshot_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - LiquidityPositionSnapshot_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - LiquidityPositionSnapshot_OrderBy["PairId"] = "pair__id"; - LiquidityPositionSnapshot_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - LiquidityPositionSnapshot_OrderBy["PairReserve0"] = "pair__reserve0"; - LiquidityPositionSnapshot_OrderBy["PairReserve1"] = "pair__reserve1"; - LiquidityPositionSnapshot_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - LiquidityPositionSnapshot_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - LiquidityPositionSnapshot_OrderBy["PairSwapFee"] = "pair__swapFee"; - LiquidityPositionSnapshot_OrderBy["PairToken0Price"] = "pair__token0Price"; - LiquidityPositionSnapshot_OrderBy["PairToken1Price"] = "pair__token1Price"; - LiquidityPositionSnapshot_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - LiquidityPositionSnapshot_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - LiquidityPositionSnapshot_OrderBy["PairTxCount"] = "pair__txCount"; - LiquidityPositionSnapshot_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - LiquidityPositionSnapshot_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - LiquidityPositionSnapshot_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - LiquidityPositionSnapshot_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - LiquidityPositionSnapshot_OrderBy["Reserve0"] = "reserve0"; - LiquidityPositionSnapshot_OrderBy["Reserve1"] = "reserve1"; - LiquidityPositionSnapshot_OrderBy["ReserveUsd"] = "reserveUSD"; - LiquidityPositionSnapshot_OrderBy["Timestamp"] = "timestamp"; - LiquidityPositionSnapshot_OrderBy["Token0PriceUsd"] = "token0PriceUSD"; - LiquidityPositionSnapshot_OrderBy["Token1PriceUsd"] = "token1PriceUSD"; - LiquidityPositionSnapshot_OrderBy["User"] = "user"; - LiquidityPositionSnapshot_OrderBy["UserId"] = "user__id"; - LiquidityPositionSnapshot_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; -})(LiquidityPositionSnapshot_OrderBy = exports.LiquidityPositionSnapshot_OrderBy || (exports.LiquidityPositionSnapshot_OrderBy = {})); -var LiquidityPosition_OrderBy; -(function (LiquidityPosition_OrderBy) { - LiquidityPosition_OrderBy["Id"] = "id"; - LiquidityPosition_OrderBy["LiquidityTokenBalance"] = "liquidityTokenBalance"; - LiquidityPosition_OrderBy["Pair"] = "pair"; - LiquidityPosition_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - LiquidityPosition_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - LiquidityPosition_OrderBy["PairId"] = "pair__id"; - LiquidityPosition_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - LiquidityPosition_OrderBy["PairReserve0"] = "pair__reserve0"; - LiquidityPosition_OrderBy["PairReserve1"] = "pair__reserve1"; - LiquidityPosition_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - LiquidityPosition_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - LiquidityPosition_OrderBy["PairSwapFee"] = "pair__swapFee"; - LiquidityPosition_OrderBy["PairToken0Price"] = "pair__token0Price"; - LiquidityPosition_OrderBy["PairToken1Price"] = "pair__token1Price"; - LiquidityPosition_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - LiquidityPosition_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - LiquidityPosition_OrderBy["PairTxCount"] = "pair__txCount"; - LiquidityPosition_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - LiquidityPosition_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - LiquidityPosition_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - LiquidityPosition_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - LiquidityPosition_OrderBy["User"] = "user"; - LiquidityPosition_OrderBy["UserId"] = "user__id"; - LiquidityPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; -})(LiquidityPosition_OrderBy = exports.LiquidityPosition_OrderBy || (exports.LiquidityPosition_OrderBy = {})); -var Mint_OrderBy; -(function (Mint_OrderBy) { - Mint_OrderBy["Amount0"] = "amount0"; - Mint_OrderBy["Amount1"] = "amount1"; - Mint_OrderBy["AmountUsd"] = "amountUSD"; - Mint_OrderBy["FeeLiquidity"] = "feeLiquidity"; - Mint_OrderBy["FeeTo"] = "feeTo"; - Mint_OrderBy["Id"] = "id"; - Mint_OrderBy["Liquidity"] = "liquidity"; - Mint_OrderBy["LogIndex"] = "logIndex"; - Mint_OrderBy["Pair"] = "pair"; - Mint_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - Mint_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - Mint_OrderBy["PairId"] = "pair__id"; - Mint_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - Mint_OrderBy["PairReserve0"] = "pair__reserve0"; - Mint_OrderBy["PairReserve1"] = "pair__reserve1"; - Mint_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - Mint_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - Mint_OrderBy["PairSwapFee"] = "pair__swapFee"; - Mint_OrderBy["PairToken0Price"] = "pair__token0Price"; - Mint_OrderBy["PairToken1Price"] = "pair__token1Price"; - Mint_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - Mint_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - Mint_OrderBy["PairTxCount"] = "pair__txCount"; - Mint_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - Mint_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - Mint_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - Mint_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - Mint_OrderBy["Sender"] = "sender"; - Mint_OrderBy["Timestamp"] = "timestamp"; - Mint_OrderBy["To"] = "to"; - Mint_OrderBy["Transaction"] = "transaction"; - Mint_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; - Mint_OrderBy["TransactionId"] = "transaction__id"; - Mint_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; -})(Mint_OrderBy = exports.Mint_OrderBy || (exports.Mint_OrderBy = {})); -var MonthlyUniqueAddressInteraction_OrderBy; -(function (MonthlyUniqueAddressInteraction_OrderBy) { - MonthlyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; - MonthlyUniqueAddressInteraction_OrderBy["Id"] = "id"; - MonthlyUniqueAddressInteraction_OrderBy["Timestamp"] = "timestamp"; -})(MonthlyUniqueAddressInteraction_OrderBy = exports.MonthlyUniqueAddressInteraction_OrderBy || (exports.MonthlyUniqueAddressInteraction_OrderBy = {})); -/** Defines the order direction, either ascending or descending */ -var OrderDirection; -(function (OrderDirection) { - OrderDirection["Asc"] = "asc"; - OrderDirection["Desc"] = "desc"; -})(OrderDirection = exports.OrderDirection || (exports.OrderDirection = {})); -var PairDayData_OrderBy; -(function (PairDayData_OrderBy) { - PairDayData_OrderBy["DailyTxns"] = "dailyTxns"; - PairDayData_OrderBy["DailyVolumeToken0"] = "dailyVolumeToken0"; - PairDayData_OrderBy["DailyVolumeToken1"] = "dailyVolumeToken1"; - PairDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; - PairDayData_OrderBy["Date"] = "date"; - PairDayData_OrderBy["Id"] = "id"; - PairDayData_OrderBy["PairAddress"] = "pairAddress"; - PairDayData_OrderBy["Reserve0"] = "reserve0"; - PairDayData_OrderBy["Reserve1"] = "reserve1"; - PairDayData_OrderBy["ReserveUsd"] = "reserveUSD"; - PairDayData_OrderBy["Token0"] = "token0"; - PairDayData_OrderBy["Token0Decimals"] = "token0__decimals"; - PairDayData_OrderBy["Token0DerivedNativeCurrency"] = "token0__derivedNativeCurrency"; - PairDayData_OrderBy["Token0Id"] = "token0__id"; - PairDayData_OrderBy["Token0Name"] = "token0__name"; - PairDayData_OrderBy["Token0Symbol"] = "token0__symbol"; - PairDayData_OrderBy["Token0TotalLiquidity"] = "token0__totalLiquidity"; - PairDayData_OrderBy["Token0TotalSupply"] = "token0__totalSupply"; - PairDayData_OrderBy["Token0TradeVolume"] = "token0__tradeVolume"; - PairDayData_OrderBy["Token0TradeVolumeUsd"] = "token0__tradeVolumeUSD"; - PairDayData_OrderBy["Token0TxCount"] = "token0__txCount"; - PairDayData_OrderBy["Token0UntrackedVolumeUsd"] = "token0__untrackedVolumeUSD"; - PairDayData_OrderBy["Token1"] = "token1"; - PairDayData_OrderBy["Token1Decimals"] = "token1__decimals"; - PairDayData_OrderBy["Token1DerivedNativeCurrency"] = "token1__derivedNativeCurrency"; - PairDayData_OrderBy["Token1Id"] = "token1__id"; - PairDayData_OrderBy["Token1Name"] = "token1__name"; - PairDayData_OrderBy["Token1Symbol"] = "token1__symbol"; - PairDayData_OrderBy["Token1TotalLiquidity"] = "token1__totalLiquidity"; - PairDayData_OrderBy["Token1TotalSupply"] = "token1__totalSupply"; - PairDayData_OrderBy["Token1TradeVolume"] = "token1__tradeVolume"; - PairDayData_OrderBy["Token1TradeVolumeUsd"] = "token1__tradeVolumeUSD"; - PairDayData_OrderBy["Token1TxCount"] = "token1__txCount"; - PairDayData_OrderBy["Token1UntrackedVolumeUsd"] = "token1__untrackedVolumeUSD"; - PairDayData_OrderBy["TotalSupply"] = "totalSupply"; -})(PairDayData_OrderBy = exports.PairDayData_OrderBy || (exports.PairDayData_OrderBy = {})); -var PairHourData_OrderBy; -(function (PairHourData_OrderBy) { - PairHourData_OrderBy["HourStartUnix"] = "hourStartUnix"; - PairHourData_OrderBy["HourlyTxns"] = "hourlyTxns"; - PairHourData_OrderBy["HourlyVolumeToken0"] = "hourlyVolumeToken0"; - PairHourData_OrderBy["HourlyVolumeToken1"] = "hourlyVolumeToken1"; - PairHourData_OrderBy["HourlyVolumeUsd"] = "hourlyVolumeUSD"; - PairHourData_OrderBy["Id"] = "id"; - PairHourData_OrderBy["Pair"] = "pair"; - PairHourData_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - PairHourData_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - PairHourData_OrderBy["PairId"] = "pair__id"; - PairHourData_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - PairHourData_OrderBy["PairReserve0"] = "pair__reserve0"; - PairHourData_OrderBy["PairReserve1"] = "pair__reserve1"; - PairHourData_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - PairHourData_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - PairHourData_OrderBy["PairSwapFee"] = "pair__swapFee"; - PairHourData_OrderBy["PairToken0Price"] = "pair__token0Price"; - PairHourData_OrderBy["PairToken1Price"] = "pair__token1Price"; - PairHourData_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - PairHourData_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - PairHourData_OrderBy["PairTxCount"] = "pair__txCount"; - PairHourData_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - PairHourData_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - PairHourData_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - PairHourData_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - PairHourData_OrderBy["Reserve0"] = "reserve0"; - PairHourData_OrderBy["Reserve1"] = "reserve1"; - PairHourData_OrderBy["ReserveUsd"] = "reserveUSD"; -})(PairHourData_OrderBy = exports.PairHourData_OrderBy || (exports.PairHourData_OrderBy = {})); -var Pair_OrderBy; -(function (Pair_OrderBy) { - Pair_OrderBy["Burns"] = "burns"; - Pair_OrderBy["CreatedAtBlockNumber"] = "createdAtBlockNumber"; - Pair_OrderBy["CreatedAtTimestamp"] = "createdAtTimestamp"; - Pair_OrderBy["Id"] = "id"; - Pair_OrderBy["LiquidityMiningCampaigns"] = "liquidityMiningCampaigns"; - Pair_OrderBy["LiquidityPositionSnapshots"] = "liquidityPositionSnapshots"; - Pair_OrderBy["LiquidityPositions"] = "liquidityPositions"; - Pair_OrderBy["LiquidityProviderCount"] = "liquidityProviderCount"; - Pair_OrderBy["Mints"] = "mints"; - Pair_OrderBy["PairHourData"] = "pairHourData"; - Pair_OrderBy["Reserve0"] = "reserve0"; - Pair_OrderBy["Reserve1"] = "reserve1"; - Pair_OrderBy["ReserveNativeCurrency"] = "reserveNativeCurrency"; - Pair_OrderBy["ReserveUsd"] = "reserveUSD"; - Pair_OrderBy["SwapFee"] = "swapFee"; - Pair_OrderBy["Swaps"] = "swaps"; - Pair_OrderBy["Token0"] = "token0"; - Pair_OrderBy["Token0Price"] = "token0Price"; - Pair_OrderBy["Token0Decimals"] = "token0__decimals"; - Pair_OrderBy["Token0DerivedNativeCurrency"] = "token0__derivedNativeCurrency"; - Pair_OrderBy["Token0Id"] = "token0__id"; - Pair_OrderBy["Token0Name"] = "token0__name"; - Pair_OrderBy["Token0Symbol"] = "token0__symbol"; - Pair_OrderBy["Token0TotalLiquidity"] = "token0__totalLiquidity"; - Pair_OrderBy["Token0TotalSupply"] = "token0__totalSupply"; - Pair_OrderBy["Token0TradeVolume"] = "token0__tradeVolume"; - Pair_OrderBy["Token0TradeVolumeUsd"] = "token0__tradeVolumeUSD"; - Pair_OrderBy["Token0TxCount"] = "token0__txCount"; - Pair_OrderBy["Token0UntrackedVolumeUsd"] = "token0__untrackedVolumeUSD"; - Pair_OrderBy["Token1"] = "token1"; - Pair_OrderBy["Token1Price"] = "token1Price"; - Pair_OrderBy["Token1Decimals"] = "token1__decimals"; - Pair_OrderBy["Token1DerivedNativeCurrency"] = "token1__derivedNativeCurrency"; - Pair_OrderBy["Token1Id"] = "token1__id"; - Pair_OrderBy["Token1Name"] = "token1__name"; - Pair_OrderBy["Token1Symbol"] = "token1__symbol"; - Pair_OrderBy["Token1TotalLiquidity"] = "token1__totalLiquidity"; - Pair_OrderBy["Token1TotalSupply"] = "token1__totalSupply"; - Pair_OrderBy["Token1TradeVolume"] = "token1__tradeVolume"; - Pair_OrderBy["Token1TradeVolumeUsd"] = "token1__tradeVolumeUSD"; - Pair_OrderBy["Token1TxCount"] = "token1__txCount"; - Pair_OrderBy["Token1UntrackedVolumeUsd"] = "token1__untrackedVolumeUSD"; - Pair_OrderBy["TotalSupply"] = "totalSupply"; - Pair_OrderBy["TrackedReserveNativeCurrency"] = "trackedReserveNativeCurrency"; - Pair_OrderBy["TxCount"] = "txCount"; - Pair_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; - Pair_OrderBy["VolumeToken0"] = "volumeToken0"; - Pair_OrderBy["VolumeToken1"] = "volumeToken1"; - Pair_OrderBy["VolumeUsd"] = "volumeUSD"; -})(Pair_OrderBy = exports.Pair_OrderBy || (exports.Pair_OrderBy = {})); -var Recovery_OrderBy; -(function (Recovery_OrderBy) { - Recovery_OrderBy["Amounts"] = "amounts"; - Recovery_OrderBy["Id"] = "id"; - Recovery_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - Recovery_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - Recovery_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - Recovery_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - Recovery_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - Recovery_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - Recovery_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - Recovery_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - Recovery_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - Recovery_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - Recovery_OrderBy["Timestamp"] = "timestamp"; -})(Recovery_OrderBy = exports.Recovery_OrderBy || (exports.Recovery_OrderBy = {})); -var SingleSidedStakingCampaignClaim_OrderBy; -(function (SingleSidedStakingCampaignClaim_OrderBy) { - SingleSidedStakingCampaignClaim_OrderBy["Amounts"] = "amounts"; - SingleSidedStakingCampaignClaim_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; - SingleSidedStakingCampaignClaim_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; - SingleSidedStakingCampaignClaim_OrderBy["Timestamp"] = "timestamp"; - SingleSidedStakingCampaignClaim_OrderBy["User"] = "user"; -})(SingleSidedStakingCampaignClaim_OrderBy = exports.SingleSidedStakingCampaignClaim_OrderBy || (exports.SingleSidedStakingCampaignClaim_OrderBy = {})); -var SingleSidedStakingCampaignDeposit_OrderBy; -(function (SingleSidedStakingCampaignDeposit_OrderBy) { - SingleSidedStakingCampaignDeposit_OrderBy["Amount"] = "amount"; - SingleSidedStakingCampaignDeposit_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; - SingleSidedStakingCampaignDeposit_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; - SingleSidedStakingCampaignDeposit_OrderBy["Timestamp"] = "timestamp"; - SingleSidedStakingCampaignDeposit_OrderBy["User"] = "user"; -})(SingleSidedStakingCampaignDeposit_OrderBy = exports.SingleSidedStakingCampaignDeposit_OrderBy || (exports.SingleSidedStakingCampaignDeposit_OrderBy = {})); -var SingleSidedStakingCampaignPosition_OrderBy; -(function (SingleSidedStakingCampaignPosition_OrderBy) { - SingleSidedStakingCampaignPosition_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; - SingleSidedStakingCampaignPosition_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; - SingleSidedStakingCampaignPosition_OrderBy["StakedAmount"] = "stakedAmount"; - SingleSidedStakingCampaignPosition_OrderBy["User"] = "user"; - SingleSidedStakingCampaignPosition_OrderBy["UserId"] = "user__id"; - SingleSidedStakingCampaignPosition_OrderBy["UserUsdSwapped"] = "user__usdSwapped"; -})(SingleSidedStakingCampaignPosition_OrderBy = exports.SingleSidedStakingCampaignPosition_OrderBy || (exports.SingleSidedStakingCampaignPosition_OrderBy = {})); -var SingleSidedStakingCampaignRecovery_OrderBy; -(function (SingleSidedStakingCampaignRecovery_OrderBy) { - SingleSidedStakingCampaignRecovery_OrderBy["Amounts"] = "amounts"; - SingleSidedStakingCampaignRecovery_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; - SingleSidedStakingCampaignRecovery_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; - SingleSidedStakingCampaignRecovery_OrderBy["Timestamp"] = "timestamp"; -})(SingleSidedStakingCampaignRecovery_OrderBy = exports.SingleSidedStakingCampaignRecovery_OrderBy || (exports.SingleSidedStakingCampaignRecovery_OrderBy = {})); -var SingleSidedStakingCampaignReward_OrderBy; -(function (SingleSidedStakingCampaignReward_OrderBy) { - SingleSidedStakingCampaignReward_OrderBy["Amount"] = "amount"; - SingleSidedStakingCampaignReward_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignReward_OrderBy["Token"] = "token"; - SingleSidedStakingCampaignReward_OrderBy["TokenDecimals"] = "token__decimals"; - SingleSidedStakingCampaignReward_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; - SingleSidedStakingCampaignReward_OrderBy["TokenId"] = "token__id"; - SingleSidedStakingCampaignReward_OrderBy["TokenName"] = "token__name"; - SingleSidedStakingCampaignReward_OrderBy["TokenSymbol"] = "token__symbol"; - SingleSidedStakingCampaignReward_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; - SingleSidedStakingCampaignReward_OrderBy["TokenTotalSupply"] = "token__totalSupply"; - SingleSidedStakingCampaignReward_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; - SingleSidedStakingCampaignReward_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; - SingleSidedStakingCampaignReward_OrderBy["TokenTxCount"] = "token__txCount"; - SingleSidedStakingCampaignReward_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; -})(SingleSidedStakingCampaignReward_OrderBy = exports.SingleSidedStakingCampaignReward_OrderBy || (exports.SingleSidedStakingCampaignReward_OrderBy = {})); -var SingleSidedStakingCampaignWithdrawal_OrderBy; -(function (SingleSidedStakingCampaignWithdrawal_OrderBy) { - SingleSidedStakingCampaignWithdrawal_OrderBy["Amount"] = "amount"; - SingleSidedStakingCampaignWithdrawal_OrderBy["Id"] = "id"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaign"] = "singleSidedStakingCampaign"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignDuration"] = "singleSidedStakingCampaign__duration"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignEndsAt"] = "singleSidedStakingCampaign__endsAt"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignId"] = "singleSidedStakingCampaign__id"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignInitialized"] = "singleSidedStakingCampaign__initialized"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignLocked"] = "singleSidedStakingCampaign__locked"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignOwner"] = "singleSidedStakingCampaign__owner"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStakedAmount"] = "singleSidedStakingCampaign__stakedAmount"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStakingCap"] = "singleSidedStakingCampaign__stakingCap"; - SingleSidedStakingCampaignWithdrawal_OrderBy["SingleSidedStakingCampaignStartsAt"] = "singleSidedStakingCampaign__startsAt"; - SingleSidedStakingCampaignWithdrawal_OrderBy["Timestamp"] = "timestamp"; - SingleSidedStakingCampaignWithdrawal_OrderBy["User"] = "user"; -})(SingleSidedStakingCampaignWithdrawal_OrderBy = exports.SingleSidedStakingCampaignWithdrawal_OrderBy || (exports.SingleSidedStakingCampaignWithdrawal_OrderBy = {})); -var SingleSidedStakingCampaign_OrderBy; -(function (SingleSidedStakingCampaign_OrderBy) { - SingleSidedStakingCampaign_OrderBy["Claims"] = "claims"; - SingleSidedStakingCampaign_OrderBy["Deposits"] = "deposits"; - SingleSidedStakingCampaign_OrderBy["Duration"] = "duration"; - SingleSidedStakingCampaign_OrderBy["EndsAt"] = "endsAt"; - SingleSidedStakingCampaign_OrderBy["Id"] = "id"; - SingleSidedStakingCampaign_OrderBy["Initialized"] = "initialized"; - SingleSidedStakingCampaign_OrderBy["Locked"] = "locked"; - SingleSidedStakingCampaign_OrderBy["Owner"] = "owner"; - SingleSidedStakingCampaign_OrderBy["Recoveries"] = "recoveries"; - SingleSidedStakingCampaign_OrderBy["Rewards"] = "rewards"; - SingleSidedStakingCampaign_OrderBy["SingleSidedStakingPositions"] = "singleSidedStakingPositions"; - SingleSidedStakingCampaign_OrderBy["StakeToken"] = "stakeToken"; - SingleSidedStakingCampaign_OrderBy["StakeTokenDecimals"] = "stakeToken__decimals"; - SingleSidedStakingCampaign_OrderBy["StakeTokenDerivedNativeCurrency"] = "stakeToken__derivedNativeCurrency"; - SingleSidedStakingCampaign_OrderBy["StakeTokenId"] = "stakeToken__id"; - SingleSidedStakingCampaign_OrderBy["StakeTokenName"] = "stakeToken__name"; - SingleSidedStakingCampaign_OrderBy["StakeTokenSymbol"] = "stakeToken__symbol"; - SingleSidedStakingCampaign_OrderBy["StakeTokenTotalLiquidity"] = "stakeToken__totalLiquidity"; - SingleSidedStakingCampaign_OrderBy["StakeTokenTotalSupply"] = "stakeToken__totalSupply"; - SingleSidedStakingCampaign_OrderBy["StakeTokenTradeVolume"] = "stakeToken__tradeVolume"; - SingleSidedStakingCampaign_OrderBy["StakeTokenTradeVolumeUsd"] = "stakeToken__tradeVolumeUSD"; - SingleSidedStakingCampaign_OrderBy["StakeTokenTxCount"] = "stakeToken__txCount"; - SingleSidedStakingCampaign_OrderBy["StakeTokenUntrackedVolumeUsd"] = "stakeToken__untrackedVolumeUSD"; - SingleSidedStakingCampaign_OrderBy["StakedAmount"] = "stakedAmount"; - SingleSidedStakingCampaign_OrderBy["StakingCap"] = "stakingCap"; - SingleSidedStakingCampaign_OrderBy["StartsAt"] = "startsAt"; - SingleSidedStakingCampaign_OrderBy["Withdrawals"] = "withdrawals"; -})(SingleSidedStakingCampaign_OrderBy = exports.SingleSidedStakingCampaign_OrderBy || (exports.SingleSidedStakingCampaign_OrderBy = {})); -var Swap_OrderBy; -(function (Swap_OrderBy) { - Swap_OrderBy["Amount0In"] = "amount0In"; - Swap_OrderBy["Amount0Out"] = "amount0Out"; - Swap_OrderBy["Amount1In"] = "amount1In"; - Swap_OrderBy["Amount1Out"] = "amount1Out"; - Swap_OrderBy["AmountUsd"] = "amountUSD"; - Swap_OrderBy["From"] = "from"; - Swap_OrderBy["Id"] = "id"; - Swap_OrderBy["LogIndex"] = "logIndex"; - Swap_OrderBy["Pair"] = "pair"; - Swap_OrderBy["PairCreatedAtBlockNumber"] = "pair__createdAtBlockNumber"; - Swap_OrderBy["PairCreatedAtTimestamp"] = "pair__createdAtTimestamp"; - Swap_OrderBy["PairId"] = "pair__id"; - Swap_OrderBy["PairLiquidityProviderCount"] = "pair__liquidityProviderCount"; - Swap_OrderBy["PairReserve0"] = "pair__reserve0"; - Swap_OrderBy["PairReserve1"] = "pair__reserve1"; - Swap_OrderBy["PairReserveNativeCurrency"] = "pair__reserveNativeCurrency"; - Swap_OrderBy["PairReserveUsd"] = "pair__reserveUSD"; - Swap_OrderBy["PairSwapFee"] = "pair__swapFee"; - Swap_OrderBy["PairToken0Price"] = "pair__token0Price"; - Swap_OrderBy["PairToken1Price"] = "pair__token1Price"; - Swap_OrderBy["PairTotalSupply"] = "pair__totalSupply"; - Swap_OrderBy["PairTrackedReserveNativeCurrency"] = "pair__trackedReserveNativeCurrency"; - Swap_OrderBy["PairTxCount"] = "pair__txCount"; - Swap_OrderBy["PairUntrackedVolumeUsd"] = "pair__untrackedVolumeUSD"; - Swap_OrderBy["PairVolumeToken0"] = "pair__volumeToken0"; - Swap_OrderBy["PairVolumeToken1"] = "pair__volumeToken1"; - Swap_OrderBy["PairVolumeUsd"] = "pair__volumeUSD"; - Swap_OrderBy["Sender"] = "sender"; - Swap_OrderBy["Timestamp"] = "timestamp"; - Swap_OrderBy["To"] = "to"; - Swap_OrderBy["Transaction"] = "transaction"; - Swap_OrderBy["TransactionBlockNumber"] = "transaction__blockNumber"; - Swap_OrderBy["TransactionId"] = "transaction__id"; - Swap_OrderBy["TransactionTimestamp"] = "transaction__timestamp"; -})(Swap_OrderBy = exports.Swap_OrderBy || (exports.Swap_OrderBy = {})); -var SwaprDayData_OrderBy; -(function (SwaprDayData_OrderBy) { - SwaprDayData_OrderBy["DailyBurns"] = "dailyBurns"; - SwaprDayData_OrderBy["DailyMints"] = "dailyMints"; - SwaprDayData_OrderBy["DailySwaps"] = "dailySwaps"; - SwaprDayData_OrderBy["DailyVolumeNativeCurrency"] = "dailyVolumeNativeCurrency"; - SwaprDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; - SwaprDayData_OrderBy["DailyVolumeUntracked"] = "dailyVolumeUntracked"; - SwaprDayData_OrderBy["Date"] = "date"; - SwaprDayData_OrderBy["Id"] = "id"; - SwaprDayData_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; - SwaprDayData_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; - SwaprDayData_OrderBy["TotalVolumeNativeCurrency"] = "totalVolumeNativeCurrency"; - SwaprDayData_OrderBy["TotalVolumeUsd"] = "totalVolumeUSD"; - SwaprDayData_OrderBy["TxCount"] = "txCount"; -})(SwaprDayData_OrderBy = exports.SwaprDayData_OrderBy || (exports.SwaprDayData_OrderBy = {})); -var SwaprFactory_OrderBy; -(function (SwaprFactory_OrderBy) { - SwaprFactory_OrderBy["Id"] = "id"; - SwaprFactory_OrderBy["PairCount"] = "pairCount"; - SwaprFactory_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; - SwaprFactory_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; - SwaprFactory_OrderBy["TotalVolumeNativeCurrency"] = "totalVolumeNativeCurrency"; - SwaprFactory_OrderBy["TotalVolumeUsd"] = "totalVolumeUSD"; - SwaprFactory_OrderBy["TxCount"] = "txCount"; - SwaprFactory_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; -})(SwaprFactory_OrderBy = exports.SwaprFactory_OrderBy || (exports.SwaprFactory_OrderBy = {})); -var SwaprStakingRewardsFactory_OrderBy; -(function (SwaprStakingRewardsFactory_OrderBy) { - SwaprStakingRewardsFactory_OrderBy["Id"] = "id"; - SwaprStakingRewardsFactory_OrderBy["InitializedCampaignsCount"] = "initializedCampaignsCount"; -})(SwaprStakingRewardsFactory_OrderBy = exports.SwaprStakingRewardsFactory_OrderBy || (exports.SwaprStakingRewardsFactory_OrderBy = {})); -var TokenDayData_OrderBy; -(function (TokenDayData_OrderBy) { - TokenDayData_OrderBy["DailyTxns"] = "dailyTxns"; - TokenDayData_OrderBy["DailyVolumeNativeCurrency"] = "dailyVolumeNativeCurrency"; - TokenDayData_OrderBy["DailyVolumeToken"] = "dailyVolumeToken"; - TokenDayData_OrderBy["DailyVolumeUsd"] = "dailyVolumeUSD"; - TokenDayData_OrderBy["Date"] = "date"; - TokenDayData_OrderBy["Id"] = "id"; - TokenDayData_OrderBy["PriceUsd"] = "priceUSD"; - TokenDayData_OrderBy["Token"] = "token"; - TokenDayData_OrderBy["TokenDecimals"] = "token__decimals"; - TokenDayData_OrderBy["TokenDerivedNativeCurrency"] = "token__derivedNativeCurrency"; - TokenDayData_OrderBy["TokenId"] = "token__id"; - TokenDayData_OrderBy["TokenName"] = "token__name"; - TokenDayData_OrderBy["TokenSymbol"] = "token__symbol"; - TokenDayData_OrderBy["TokenTotalLiquidity"] = "token__totalLiquidity"; - TokenDayData_OrderBy["TokenTotalSupply"] = "token__totalSupply"; - TokenDayData_OrderBy["TokenTradeVolume"] = "token__tradeVolume"; - TokenDayData_OrderBy["TokenTradeVolumeUsd"] = "token__tradeVolumeUSD"; - TokenDayData_OrderBy["TokenTxCount"] = "token__txCount"; - TokenDayData_OrderBy["TokenUntrackedVolumeUsd"] = "token__untrackedVolumeUSD"; - TokenDayData_OrderBy["TotalLiquidityNativeCurrency"] = "totalLiquidityNativeCurrency"; - TokenDayData_OrderBy["TotalLiquidityToken"] = "totalLiquidityToken"; - TokenDayData_OrderBy["TotalLiquidityUsd"] = "totalLiquidityUSD"; -})(TokenDayData_OrderBy = exports.TokenDayData_OrderBy || (exports.TokenDayData_OrderBy = {})); -var Token_OrderBy; -(function (Token_OrderBy) { - Token_OrderBy["Decimals"] = "decimals"; - Token_OrderBy["DerivedNativeCurrency"] = "derivedNativeCurrency"; - Token_OrderBy["Id"] = "id"; - Token_OrderBy["Name"] = "name"; - Token_OrderBy["PairBase"] = "pairBase"; - Token_OrderBy["PairDayDataBase"] = "pairDayDataBase"; - Token_OrderBy["PairDayDataQuote"] = "pairDayDataQuote"; - Token_OrderBy["PairQuote"] = "pairQuote"; - Token_OrderBy["Symbol"] = "symbol"; - Token_OrderBy["TokenDayData"] = "tokenDayData"; - Token_OrderBy["TotalLiquidity"] = "totalLiquidity"; - Token_OrderBy["TotalSupply"] = "totalSupply"; - Token_OrderBy["TradeVolume"] = "tradeVolume"; - Token_OrderBy["TradeVolumeUsd"] = "tradeVolumeUSD"; - Token_OrderBy["TxCount"] = "txCount"; - Token_OrderBy["UntrackedVolumeUsd"] = "untrackedVolumeUSD"; - Token_OrderBy["WhitelistPairs"] = "whitelistPairs"; -})(Token_OrderBy = exports.Token_OrderBy || (exports.Token_OrderBy = {})); -var Transaction_OrderBy; -(function (Transaction_OrderBy) { - Transaction_OrderBy["BlockNumber"] = "blockNumber"; - Transaction_OrderBy["Burns"] = "burns"; - Transaction_OrderBy["Id"] = "id"; - Transaction_OrderBy["Mints"] = "mints"; - Transaction_OrderBy["Swaps"] = "swaps"; - Transaction_OrderBy["Timestamp"] = "timestamp"; -})(Transaction_OrderBy = exports.Transaction_OrderBy || (exports.Transaction_OrderBy = {})); -var User_OrderBy; -(function (User_OrderBy) { - User_OrderBy["Id"] = "id"; - User_OrderBy["LiquidityPositions"] = "liquidityPositions"; - User_OrderBy["UsdSwapped"] = "usdSwapped"; -})(User_OrderBy = exports.User_OrderBy || (exports.User_OrderBy = {})); -var WeeklyUniqueAddressInteraction_OrderBy; -(function (WeeklyUniqueAddressInteraction_OrderBy) { - WeeklyUniqueAddressInteraction_OrderBy["Addresses"] = "addresses"; - WeeklyUniqueAddressInteraction_OrderBy["Id"] = "id"; - WeeklyUniqueAddressInteraction_OrderBy["TimestampEnd"] = "timestampEnd"; - WeeklyUniqueAddressInteraction_OrderBy["TimestampStart"] = "timestampStart"; -})(WeeklyUniqueAddressInteraction_OrderBy = exports.WeeklyUniqueAddressInteraction_OrderBy || (exports.WeeklyUniqueAddressInteraction_OrderBy = {})); -var Withdrawal_OrderBy; -(function (Withdrawal_OrderBy) { - Withdrawal_OrderBy["Amount"] = "amount"; - Withdrawal_OrderBy["Id"] = "id"; - Withdrawal_OrderBy["LiquidityMiningCampaign"] = "liquidityMiningCampaign"; - Withdrawal_OrderBy["LiquidityMiningCampaignDuration"] = "liquidityMiningCampaign__duration"; - Withdrawal_OrderBy["LiquidityMiningCampaignEndsAt"] = "liquidityMiningCampaign__endsAt"; - Withdrawal_OrderBy["LiquidityMiningCampaignId"] = "liquidityMiningCampaign__id"; - Withdrawal_OrderBy["LiquidityMiningCampaignInitialized"] = "liquidityMiningCampaign__initialized"; - Withdrawal_OrderBy["LiquidityMiningCampaignLocked"] = "liquidityMiningCampaign__locked"; - Withdrawal_OrderBy["LiquidityMiningCampaignOwner"] = "liquidityMiningCampaign__owner"; - Withdrawal_OrderBy["LiquidityMiningCampaignStakedAmount"] = "liquidityMiningCampaign__stakedAmount"; - Withdrawal_OrderBy["LiquidityMiningCampaignStakingCap"] = "liquidityMiningCampaign__stakingCap"; - Withdrawal_OrderBy["LiquidityMiningCampaignStartsAt"] = "liquidityMiningCampaign__startsAt"; - Withdrawal_OrderBy["Timestamp"] = "timestamp"; - Withdrawal_OrderBy["User"] = "user"; -})(Withdrawal_OrderBy = exports.Withdrawal_OrderBy || (exports.Withdrawal_OrderBy = {})); -var _SubgraphErrorPolicy_; -(function (_SubgraphErrorPolicy_) { - /** Data will be returned even if the subgraph has indexing errors */ - _SubgraphErrorPolicy_["Allow"] = "allow"; - /** If the subgraph has indexing errors, data will be omitted. The default. */ - _SubgraphErrorPolicy_["Deny"] = "deny"; -})(_SubgraphErrorPolicy_ = exports._SubgraphErrorPolicy_ || (exports._SubgraphErrorPolicy_ = {})); -exports.TokenDetailsFragmentDoc = (0, graphql_tag_1.default) ` - fragment TokenDetails on Token { - id - name - symbol - decimals -} - `; -exports.PairDetailsFragmentDoc = (0, graphql_tag_1.default) ` - fragment PairDetails on Pair { - id - reserve0 - reserve1 - token0 { - ...TokenDetails - } - token1 { - ...TokenDetails - } -} - ${exports.TokenDetailsFragmentDoc}`; -exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument = (0, graphql_tag_1.default) ` - query GetAllCommonPairsBetweenTokenAAndTokenB($tokenA: String!, $tokenB: String!) { - pairsWithTokenA: pairs(where: {token0_in: [$tokenA, $tokenB]}) { - ...PairDetails - } - pairsWithTokenB: pairs(where: {token1_in: [$tokenB, $tokenA]}) { - ...PairDetails - } -} - ${exports.PairDetailsFragmentDoc}`; -const defaultWrapper = (action, _operationName, _operationType) => action(); -function getSdk(client, withWrapper = defaultWrapper) { - return { - GetAllCommonPairsBetweenTokenAAndTokenB(variables, requestHeaders) { - return withWrapper((wrappedRequestHeaders) => client.request(exports.GetAllCommonPairsBetweenTokenAAndTokenBDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetAllCommonPairsBetweenTokenAAndTokenB', 'query'); - } - }; -} -exports.getSdk = getSdk; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/generated/graphql/index.js.map b/dist/generated/graphql/index.js.map deleted file mode 100644 index 2633799c..00000000 --- a/dist/generated/graphql/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/graphql/index.ts"],"names":[],"mappings":";;;;AAEA,sEAA8B;AA0D9B,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,2BAAS,CAAA;IACT,6DAA2C,CAAA;AAC7C,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAuKD,IAAY,YAoCX;AApCD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,yBAAS,CAAA;IACT,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,6BAAa,CAAA;IACb,uEAAuD,CAAA;IACvD,mEAAmD,CAAA;IACnD,mCAAmB,CAAA;IACnB,2EAA2D,CAAA;IAC3D,+CAA+B,CAAA;IAC/B,+CAA+B,CAAA;IAC/B,yEAAyD,CAAA;IACzD,mDAAmC,CAAA;IACnC,6CAA6B,CAAA;IAC7B,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,uFAAuE,CAAA;IACvE,6CAA6B,CAAA;IAC7B,mEAAmD,CAAA;IACnD,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,iDAAiC,CAAA;IACjC,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,yBAAS,CAAA;IACT,2CAA2B,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uFAAiE,CAAA;IACjE,qFAA+D,CAAA;IAC/D,mGAA6E,CAAA;IAC7E,+FAAyE,CAAA;IACzE,2FAAqE,CAAA;IACrE,6CAAuB,CAAA;IACvB,mCAAa,CAAA;AACf,CAAC,EAfW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAe7B;AA6BD,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,qEAAqE;IACrE,wCAAe,CAAA;IACf,8EAA8E;IAC9E,sCAAa,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAcY,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;KAOrC,CAAC;AACO,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;MAYnC,+BAAuB,EAAE,CAAC;AACnB,QAAA,+CAA+C,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;MAS5D,8BAAsB,EAAE,CAAC;AAK/B,MAAM,cAAc,GAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;AAEhG,SAAgB,MAAM,CAAC,MAAqB,EAAE,cAAkC,cAAc;IAC5F,OAAO;QACL,uCAAuC,CAAC,SAAgE,EAAE,cAA2C;YACnJ,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAA+C,uDAA+C,EAAE,SAAS,kCAAM,cAAc,GAAK,qBAAqB,EAAE,EAAE,yCAAyC,EAAE,OAAO,CAAC,CAAC;QAC7Q,CAAC;KACF,CAAC;AACJ,CAAC;AAND,wBAMC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 2d7143dc..00000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import JSBI from 'jsbi'; -export { JSBI }; -export * from './abis'; -export * from './constants'; -export * from './entities'; -export * from './errors'; -export * from './fetcher'; -export { parseBigintIsh } from './utils'; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index d531c362..00000000 --- a/dist/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseBigintIsh = exports.JSBI = void 0; -const tslib_1 = require("tslib"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -exports.JSBI = jsbi_1.default; -tslib_1.__exportStar(require("./abis"), exports); -tslib_1.__exportStar(require("./constants"), exports); -tslib_1.__exportStar(require("./entities"), exports); -tslib_1.__exportStar(require("./errors"), exports); -tslib_1.__exportStar(require("./fetcher"), exports); -var utils_1 = require("./utils"); -Object.defineProperty(exports, "parseBigintIsh", { enumerable: true, get: function () { return utils_1.parseBigintIsh; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index ae3f0713..00000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAuB;AACd,eADF,cAAI,CACE;AAEb,iDAAsB;AACtB,sDAA2B;AAC3B,qDAA0B;AAC1B,mDAAwB;AACxB,oDAAyB;AACzB,iCAAwC;AAA/B,uGAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/dist/utils.d.ts b/dist/utils.d.ts deleted file mode 100644 index 6a5f88bb..00000000 --- a/dist/utils.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import JSBI from 'jsbi'; -import { BigintIsh, SolidityType } from './constants'; -export declare function validateSolidityTypeInstance(value: JSBI, solidityType: SolidityType): void; -export declare function validateAndParseAddress(address: string): string; -export declare function parseBigintIsh(bigintIsh: BigintIsh): JSBI; -export declare function sqrt(y: JSBI): JSBI; -export declare function sortedInsert(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null; -/** - * Prints debug data to console. Requires setting `window.__SWAPR_SDK_DEBUG__` to `true` - * @param data - * @returns void - */ -export declare function debug(...data: any[]): void; diff --git a/dist/utils.js b/dist/utils.js deleted file mode 100644 index 40400d74..00000000 --- a/dist/utils.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.debug = exports.sortedInsert = exports.sqrt = exports.parseBigintIsh = exports.validateAndParseAddress = exports.validateSolidityTypeInstance = void 0; -const tslib_1 = require("tslib"); -const address_1 = require("@ethersproject/address"); -const jsbi_1 = tslib_1.__importDefault(require("jsbi")); -const tiny_invariant_1 = tslib_1.__importDefault(require("tiny-invariant")); -const constants_1 = require("./constants"); -function validateSolidityTypeInstance(value, solidityType) { - (0, tiny_invariant_1.default)(jsbi_1.default.greaterThanOrEqual(value, constants_1.ZERO), `${value} is not a ${solidityType}.`); - (0, tiny_invariant_1.default)(jsbi_1.default.lessThanOrEqual(value, constants_1.SOLIDITY_TYPE_MAXIMA[solidityType]), `${value} is not a ${solidityType}.`); -} -exports.validateSolidityTypeInstance = validateSolidityTypeInstance; -// warns if addresses are not checksummed -function validateAndParseAddress(address) { - try { - const checksummedAddress = (0, address_1.getAddress)(address); - return checksummedAddress; - } - catch (error) { - (0, tiny_invariant_1.default)(false, `${address} is not a valid address.`); - } -} -exports.validateAndParseAddress = validateAndParseAddress; -function parseBigintIsh(bigintIsh) { - return bigintIsh instanceof jsbi_1.default - ? bigintIsh - : typeof bigintIsh === 'bigint' - ? jsbi_1.default.BigInt(bigintIsh.toString()) - : jsbi_1.default.BigInt(bigintIsh); -} -exports.parseBigintIsh = parseBigintIsh; -// mock the on-chain sqrt function -function sqrt(y) { - validateSolidityTypeInstance(y, constants_1.SolidityType.uint256); - let z = constants_1.ZERO; - let x; - if (jsbi_1.default.greaterThan(y, constants_1.THREE)) { - z = y; - x = jsbi_1.default.add(jsbi_1.default.divide(y, constants_1.TWO), constants_1.ONE); - while (jsbi_1.default.lessThan(x, z)) { - z = x; - x = jsbi_1.default.divide(jsbi_1.default.add(jsbi_1.default.divide(y, x), x), constants_1.TWO); - } - } - else if (jsbi_1.default.notEqual(y, constants_1.ZERO)) { - z = constants_1.ONE; - } - return z; -} -exports.sqrt = sqrt; -// given an array of items sorted by `comparator`, insert an item into its sort index and constrain the size to -// `maxSize` by removing the last item -function sortedInsert(items, add, maxSize, comparator) { - (0, tiny_invariant_1.default)(maxSize > 0, 'MAX_SIZE_ZERO'); - // this is an invariant because the interface cannot return multiple removed items if items.length exceeds maxSize - (0, tiny_invariant_1.default)(items.length <= maxSize, 'ITEMS_SIZE'); - // short circuit first item add - if (items.length === 0) { - items.push(add); - return null; - } - else { - const isFull = items.length === maxSize; - // short circuit if full and the additional item does not come before the last item - if (isFull && comparator(items[items.length - 1], add) <= 0) { - return add; - } - let lo = 0, hi = items.length; - while (lo < hi) { - const mid = (lo + hi) >>> 1; - if (comparator(items[mid], add) <= 0) { - lo = mid + 1; - } - else { - hi = mid; - } - } - items.splice(lo, 0, add); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return isFull ? items.pop() : null; - } -} -exports.sortedInsert = sortedInsert; -/** - * Prints debug data to console. Requires setting `window.__SWAPR_SDK_DEBUG__` to `true` - * @param data - * @returns void - */ -function debug(...data) { - const isBrowser = typeof window !== 'undefined'; - const shouldDebug = isBrowser - ? window.__SWAPR_SDK_DEBUG__ === true - : process.env.__SWAPR_SDK_DEBUG__ != undefined; - shouldDebug && console.debug(...data); -} -exports.debug = debug; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/utils.js.map b/dist/utils.js.map deleted file mode 100644 index de81095a..00000000 --- a/dist/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;AAAA,oDAAmD;AACnD,wDAAuB;AACvB,4EAAsC;AAEtC,2CAAkG;AAElG,SAAgB,4BAA4B,CAAC,KAAW,EAAE,YAA0B;IAClF,IAAA,wBAAS,EAAC,cAAI,CAAC,kB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AAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;gBACpC,EAAE,GAAG,GAAG,GAAG,CAAC,CAAA;aACb;iBAAM;gBACL,EAAE,GAAG,GAAG,CAAA;aACT;SACF;QACD,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;QACxB,oEAAoE;QACpE,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,IAAI,CAAA;KACpC;AACH,CAAC;AA/BD,oCA+BC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CAAC,GAAG,IAAW;IAClC,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;IAE/C,MAAM,WAAW,GAAG,SAAS;QAC3B,CAAC,CAAE,MAAc,CAAC,mBAAmB,KAAK,IAAI;QAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,SAAS,CAAA;IAEhD,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;AACvC,CAAC;AARD,sBAQC"} \ No newline at end of file From eecc74062c3764ca0d34d4524dde98e394d4d202 Mon Sep 17 00:00:00 2001 From: Rorry Date: Tue, 16 Jan 2024 16:25:04 -0300 Subject: [PATCH 7/7] chore(SWA-134): PR comment to abstract numbers into ChainId --- src/constants/chains.ts | 29 +++++++------------ .../trades/gnosis-protocol/CoWTrade.ts | 10 +++---- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/src/constants/chains.ts b/src/constants/chains.ts index 46d6bfab..3391a6db 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -2,33 +2,26 @@ * Chain Id */ export enum ChainId { + ARBITRUM_GOERLI = 421613, + ARBITRUM_ONE = 42161, + ARBITRUM_RINKEBY = 421611, + BSC_MAINNET = 56, + BSC_TESTNET = 97, + GNOSIS = 100, + GOERLI = 5, MAINNET = 1, + OPTIMISM_GOERLI = 420, + OPTIMISM_MAINNET = 10, + POLYGON = 137, /** * @deprecated Use GOERLI instead */ RINKEBY = 4, - GOERLI = 5, + SEPOLIA = 11155111, /** * @deprecated Use GNOSIS instead */ XDAI = 100, - GNOSIS = 100, - POLYGON = 137, - ARBITRUM_ONE = 42161, - ARBITRUM_RINKEBY = 421611, - ARBITRUM_GOERLI = 421613, - - /** - * Optimism Mainnet - */ - OPTIMISM_MAINNET = 10, - /** - * Optimism Göerli - */ - OPTIMISM_GOERLI = 420, - - BSC_MAINNET = 56, - BSC_TESTNET = 97, ZK_SYNC_ERA_MAINNET = 324, ZK_SYNC_ERA_TESTNET = 280, } diff --git a/src/entities/trades/gnosis-protocol/CoWTrade.ts b/src/entities/trades/gnosis-protocol/CoWTrade.ts index 75d4bfc6..286ec523 100644 --- a/src/entities/trades/gnosis-protocol/CoWTrade.ts +++ b/src/entities/trades/gnosis-protocol/CoWTrade.ts @@ -25,11 +25,11 @@ import { CoWTradeGetBestTradeExactInParams, CoWTradeGetBestTradeExactOutParams, const ZERO_PERCENT = new Percent(ZERO, ONE) enum CowChainId { - MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, - GNOSIS = 100, - SEPOLIA = 11155111, + MAINNET = ChainId.MAINNET, + RINKEBY = ChainId.RINKEBY, + GOERLI = ChainId.GOERLI, + GNOSIS = ChainId.GNOSIS, + SEPOLIA = ChainId.SEPOLIA, } /**