From 2eb2f170457eb107effeaa0843584a14a206333e Mon Sep 17 00:00:00 2001 From: gabin54 <59560717+gabin54@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:38:17 +0200 Subject: [PATCH] feat: add airdrop programs (#24) --- jest.config.ts | 16 ++-- package.json | 5 +- src/airdrop-programs.ts | 26 ++++++ src/index.ts | 30 +++++++ yarn.lock | 182 ++++++++++++++++++++-------------------- 5 files changed, 156 insertions(+), 103 deletions(-) create mode 100644 src/airdrop-programs.ts diff --git a/jest.config.ts b/jest.config.ts index b12822b..995b75b 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,9 +1,9 @@ export default { - moduleFileExtensions: ["ts", "js"], - transform: { - "^.+\\.tsx?$": "ts-jest", - }, - testTimeout: 50_000, - testMatch: ["**/tests/**/*.test.(ts|js)"], - testEnvironment: "node", -}; \ No newline at end of file + moduleFileExtensions: ["ts", "js"], + transform: { + "^.+\\.tsx?$": "ts-jest", + }, + testTimeout: 50_000, + testMatch: ["**/tests/**/*.test.(ts|js)"], + testEnvironment: "node", +}; diff --git a/package.json b/package.json index 24a4894..718f472 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@morpho-org/blue-reward-programs", - "version": "0.0.1", + "version": "1.4.12", "author": "Morpho Association ", "license": "MIT", "main": "lib/index.js", @@ -33,7 +33,8 @@ "typescript": "^5.4.5" }, "dependencies": { - "@morpho-org/blue-rewards-core-sdk": "0.0.5", + "@morpho-org/blue-rewards-core-sdk": "0.0.8", + "@morpho-org/morpho-ts": "^1.4.5", "viem": "^2.9.31" }, "lint-staged": { diff --git a/src/airdrop-programs.ts b/src/airdrop-programs.ts new file mode 100644 index 0000000..0f43178 --- /dev/null +++ b/src/airdrop-programs.ts @@ -0,0 +1,26 @@ +import { Address, ChainId } from "@morpho-org/blue-rewards-core-sdk"; + +export type AirdropRewardProgramArgs = { + claimDate: bigint; + fundsSender: Address; + urdAddress: Address; + tokenAddress: Address; + chainId: ChainId; + ipfsHash: string; +}; + +/** + * List of Airdrop programs + * @example + * [ + * { + * claimDate: 1717149233n, + * fundsSender: "0xF057afeEc22E220f47AD4220871364e9E828b2e9", + * urdAddress: "0x330eefa8a787552dc5cad3c3ca644844b1e61ddb", + * tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + * ipfsHash: "QmUSNh34dpKFbX7YMU4fd5JbfkVYzb4e45o3pSqqXvzkKw", + * chainId: ChainId.MAINNET + * } + * ] + */ +export const airdropPrograms: AirdropRewardProgramArgs[] = []; diff --git a/src/index.ts b/src/index.ts index d3ecac1..e578548 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,8 +4,11 @@ import { RewardMathLib, UniversalRewardDistributor, VaultRewardProgram, + AirdropRewardProgram, + RewardProgram, } from "@morpho-org/blue-rewards-core-sdk"; +import { AirdropRewardProgramArgs, airdropPrograms } from "./airdrop-programs"; import { MarketRewardProgramArgs, marketPrograms } from "./market-programs"; import { VaultRewardProgramArgs, vaultPrograms } from "./vault-programs"; @@ -16,6 +19,12 @@ export const OffchainPrograms = { getVaultPrograms(): VaultRewardProgram[] { return vaultPrograms.map((programArgs) => toVaultRewardProgram(programArgs)); }, + getAirdropPrograms(): AirdropRewardProgram[] { + return airdropPrograms.map((programArgs) => toAirdropRewardProgram(programArgs)); + }, + getPrograms(): RewardProgram[] { + return [...this.getMarketPrograms(), ...this.getVaultPrograms(), ...this.getAirdropPrograms()]; + }, }; function toMarketRewardProgram(args: MarketRewardProgramArgs): MarketRewardProgram { @@ -85,3 +94,24 @@ function toVaultRewardProgram(args: VaultRewardProgramArgs): VaultRewardProgram amount: args.amount, }); } + +function toAirdropRewardProgram(args: AirdropRewardProgramArgs): AirdropRewardProgram { + const asset = new OnchainAsset({ + address: args.tokenAddress, + chainId: args.chainId, + }); + const distributor = new UniversalRewardDistributor({ + address: args.urdAddress, + chainId: args.chainId, + }); + + return new AirdropRewardProgram({ + createdAt: args.claimDate, + start: args.claimDate, + creator: args.fundsSender, + asset, + distributor, + chainId: args.chainId, + ipfsHash: args.ipfsHash, + }); +} diff --git a/yarn.lock b/yarn.lock index b49fba4..efc8284 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,11 +7,6 @@ resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7" integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q== -"@adraffy/ens-normalize@1.10.1": - version "1.10.1" - resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" - integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== - "@ampproject/remapping@^2.2.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" @@ -599,37 +594,26 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@morpho-org/blue-rewards-core-sdk@0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@morpho-org/blue-rewards-core-sdk/-/blue-rewards-core-sdk-0.0.5.tgz#77c180eca3af655aaabf73e80e6dcb6e8ea5234e" - integrity sha512-+KtHHzbZ9x3vzqf/AO4vjP4AlZuHS07hsVrmvaEL6OASxuUuCQmgGDrRwPjZXfnq4sEcTg76dPcTi2WQRqhgvg== +"@morpho-org/blue-rewards-core-sdk@0.0.8": + version "0.0.8" + resolved "https://registry.yarnpkg.com/@morpho-org/blue-rewards-core-sdk/-/blue-rewards-core-sdk-0.0.8.tgz#5401475dc1e0ef7d481fc1060150150e063b0bff" + integrity sha512-W62jOiMlXqcrDSJeUb3F66NoYC+DAEThQ8FwbEfdmwRJCB9ljUiXgPUGi1CdpowX0XdjQHBeglsILncqDItnKA== dependencies: "@morpho-org/blue-sdk" "^1.0.6" bs58 "^5.0.0" viem "^2.9.31" "@morpho-org/blue-sdk@^1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@morpho-org/blue-sdk/-/blue-sdk-1.0.6.tgz#cd26c2cdfc785954528c1152ac6e0844dd2e76f3" - integrity sha512-oX+fW395hrhizGhWUtJzZwuT0JPB3LT3WPLx3nakrjEjg6jlG3K+3JDQTdKW7d39YZ3faLEhvrZbk02Grb6PZw== + version "1.4.5" + resolved "https://registry.yarnpkg.com/@morpho-org/blue-sdk/-/blue-sdk-1.4.5.tgz#e93b05b725cd790d36aa0e62e5153d9e0b53e8e7" + integrity sha512-d6rNEAqPjeoQ1KqjGa2WdrhyghFdR3jL5mx4noEPI8AdcTBZl8Xs04vs8xIH0ZYBU7jp4Uh+YTPXz/yQlZ5zNw== dependencies: - "@morpho-org/morpho-ts" "1.0.4" - ethers "^6.12.1" - ethers-multicall-provider "^6.3.0" - ethers-types "^3.15.1" - rxjs "^7.8.1" - -"@morpho-org/morpho-ts@1.0.4": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@morpho-org/morpho-ts/-/morpho-ts-1.0.4.tgz#ada9691cc4abf32e518d9add1f5dfff1ed61a791" - integrity sha512-dHKevgOiGAmwfgwCi3hUKbCMz2q7hUdBDxqe7nTHKaRzfolDrFzMkHuSjtFzhU9EeFWtoLpmVPr+FcwCnZ2qXQ== + keccak256 "^1.0.6" -"@noble/curves@1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" - integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw== - dependencies: - "@noble/hashes" "1.3.2" +"@morpho-org/morpho-ts@^1.4.5": + version "1.4.5" + resolved "https://registry.yarnpkg.com/@morpho-org/morpho-ts/-/morpho-ts-1.4.5.tgz#1bb3e266a033a38958746be9b3d380deca0470ec" + integrity sha512-w3YvHlpqETaAFRooyW4YIfq6t+WOy1+S7MBReashD64Bzr6iO1hSLmIJIVlRwNtiSCh7o9fpcSOHoknLi9laqg== "@noble/curves@1.4.0": version "1.4.0" @@ -645,11 +629,6 @@ dependencies: "@noble/hashes" "1.4.0" -"@noble/hashes@1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" - integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== - "@noble/hashes@1.4.0", "@noble/hashes@~1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" @@ -802,11 +781,6 @@ dependencies: undici-types "~5.26.4" -"@types/node@18.15.13": - version "18.15.13" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.13.tgz#f64277c341150c979e42b00e4ac289290c9df469" - integrity sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q== - "@types/stack-utils@^2.0.0": version "2.0.3" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" @@ -841,11 +815,6 @@ acorn@^8.11.0, acorn@^8.4.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c" integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw== -aes-js@4.0.0-beta.5: - version "4.0.0-beta.5" - resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" - integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== - ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -972,6 +941,16 @@ base-x@^4.0.0: resolved "https://registry.yarnpkg.com/base-x/-/base-x-4.0.0.tgz#d0e3b7753450c73f8ad2389b5c018a4af7b2224a" integrity sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw== +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +bn.js@^5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" + integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -1023,6 +1002,14 @@ buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== +buffer@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.2.1" + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -1170,11 +1157,6 @@ cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -dataloader@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.2.2.tgz#216dc509b5abe39d43a9b9d97e6e5e473dfbe3e0" - integrity sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g== - debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: version "4.3.5" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" @@ -1256,34 +1238,6 @@ esprima@^4.0.0: resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -ethers-multicall-provider@^6.3.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/ethers-multicall-provider/-/ethers-multicall-provider-6.4.0.tgz#1a3ae177970210cf0ecb62f7b93bd90966f4f83a" - integrity sha512-Qn6QjCH0I+xfm4CuV3gJqFMHyUN9J6ROL0eL41E8RrC9bNEJMGB1U/3R088qbJTzIS5VwIkfgsuR7Qsw9YJC7Q== - dependencies: - dataloader "^2.2.2" - ethers "^6.13.1" - -ethers-types@^3.15.1: - version "3.17.1" - resolved "https://registry.yarnpkg.com/ethers-types/-/ethers-types-3.17.1.tgz#1e8b2b5a1691334ed8519150782e1554785e8adb" - integrity sha512-eU7rJqoVbol4IByuLvthxctr2z7i+Xdyk3q/akneQNZRjIvFBYt1ETkzZUxyH06GBQKjJ3pc2VXVytJWyOl5hA== - dependencies: - ethers "^6.12.0" - -ethers@^6.12.0, ethers@^6.12.1, ethers@^6.13.1: - version "6.13.1" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.13.1.tgz#2b9f9c7455cde9d38b30fe6589972eb083652961" - integrity sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A== - dependencies: - "@adraffy/ens-normalize" "1.10.1" - "@noble/curves" "1.2.0" - "@noble/hashes" "1.3.2" - "@types/node" "18.15.13" - aes-js "4.0.0-beta.5" - tslib "2.4.0" - ws "8.17.1" - execa@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" @@ -1426,6 +1380,11 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + import-local@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" @@ -1447,7 +1406,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2: +inherits@2, inherits@^2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -1943,6 +1902,24 @@ json5@^2.2.3: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +keccak256@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/keccak256/-/keccak256-1.0.6.tgz#dd32fb771558fed51ce4e45a035ae7515573da58" + integrity sha512-8GLiM01PkdJVGUhR1e6M/AvWnSqYS0HaERI+K/QtStGDGlSTx2B1zTqZk4Zlqu5TxHJNTxWAdP9Y+WI50OApUw== + dependencies: + bn.js "^5.2.0" + buffer "^6.0.3" + keccak "^3.0.2" + +keccak@^3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" + integrity sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q== + dependencies: + node-addon-api "^2.0.0" + node-gyp-build "^4.2.0" + readable-stream "^3.6.0" + kleur@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" @@ -2036,6 +2013,16 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +node-addon-api@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" + integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== + +node-gyp-build@^4.2.0: + version "4.8.1" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5" + integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw== + node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -2182,6 +2169,15 @@ react-is@^18.0.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== +readable-stream@^3.6.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" @@ -2213,12 +2209,10 @@ resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -rxjs@^7.8.1: - version "7.8.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" - integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== - dependencies: - tslib "^2.1.0" +safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== semver@^6.3.0, semver@^6.3.1: version "6.3.1" @@ -2304,6 +2298,13 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" @@ -2411,16 +2412,6 @@ ts-node@^10.9.2: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tslib@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" - integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== - -tslib@^2.1.0: - version "2.6.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" - integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== - type-detect@4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" @@ -2449,6 +2440,11 @@ update-browserslist-db@^1.0.16: escalade "^3.1.2" picocolors "^1.0.1" +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"