diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a6456f5..e0043cd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - ethers-v6 jobs: test: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d53a0b..dd9cc9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,6 @@ on: jobs: jest: runs-on: ubuntu-latest - if: github.head_ref != 'ethers-v6' # already triggered by push strategy: matrix: diff --git a/README.md b/README.md index da50416..a3233de 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,15 @@ yarn add ethers-maths ## Usage -Just import the module and you'll benefit from an augmented, and typed, `BigNumber` class! +Just import the module and you'll benefit from an augmented, and typed, `BigInt` class! ```typescript import "ethers-maths"; -const WAD = BigNumber.pow10(18); +const WAD = BigInt.pow10(18); -BigNumber.from(1).wadMul(WAD); // 1 -BigNumber.from(WAD.mul(2)).rayMul(0.5e27); // WAD +BigInt.from(1).wadMul(WAD); // 1 +BigInt.from(WAD.mul(2)).rayMul(0.5e27); // WAD ``` --- @@ -123,67 +123,67 @@ BigNumber.from(0).approxEqAbs(1, "1"); #### `min` -Returns the minimum between input BigNumberish, as a BigNumber +Returns the minimum between input BigNumberish, as a BigInt ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { min } from "ethers-maths/utils"; -// Returns the minimum between input BigNumberish, as a BigNumber: 0 +// Returns the minimum between input BigNumberish, as a BigInt: 0 min(0, 1, "2", ...); -BigNumber.min(0, 1, "2", ...); -BigNumber.from(0).min(1, "2", ...); +BigInt.min(0, 1, "2", ...); +BigInt.from(0).min(1, "2", ...); ``` #### `max` -Returns the maximum between input BigNumberish, as a BigNumber +Returns the maximum between input BigNumberish, as a BigInt ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { max } from "ethers-maths/utils"; -// Returns the maximum between input BigNumberish, as a BigNumber: 2 +// Returns the maximum between input BigNumberish, as a BigInt: 2 max(0, 1, "2", ...); -BigNumber.max(0, 1, "2", ...); -BigNumber.from(0).max(1, "2", ...); +BigInt.max(0, 1, "2", ...); +BigInt.from(0).max(1, "2", ...); ``` #### `sum` -Returns the sum of input BigNumberish array, as a BigNumber +Returns the sum of input BigNumberish array, as a BigInt ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { sum } from "ethers-maths/utils"; -// Returns the sum of input BigNumberish array, as a BigNumber: 3 +// Returns the sum of input BigNumberish array, as a BigInt: 3 sum([0, 1, "2"]); -BigNumber.sum([0, 1, "2"]); -BigNumber.from(0).sum([1, "2"]); +BigInt.sum([0, 1, "2"]); +BigInt.from(0).sum([1, "2"]); ``` #### `format` -Returns a string representation of the BigNumber's value, formatted according to: +Returns a string representation of the BigInt's value, formatted according to: -- the input number of decimals the BigNumber value holds (default: 0) +- the input number of decimals the BigInt value holds (default: 0) - the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) ```typescript -// Returns a string representation of the BigNumber's value: 0.01 -BigNumber.from(19).format(3, 2); +// Returns a string representation of the BigInt's value: 0.01 +BigInt.from(19).format(3, 2); ``` #### `toFloat` -Returns a float representation of the BigNumber's value, parsed according to the input number of decimals the BigNumber value holds (default: 0) +Returns a float representation of the BigInt's value, parsed according to the input number of decimals the BigInt value holds (default: 0) -Note: parsing a too large value may result in parsing `NaN` (because the BigNumber's value may still be too large to fit in a JS floating-point number) +Note: parsing a too large value may result in parsing `NaN` (because the BigInt's value may still be too large to fit in a JS floating-point number) ```typescript -// Returns a string representation of the BigNumber's value: 0.01 -BigNumber.from(19).toFloat(3, 2); +// Returns a string representation of the BigInt's value: 0.01 +BigInt.from(19).toFloat(3, 2); ``` #### `pow10` @@ -191,12 +191,12 @@ BigNumber.from(19).toFloat(3, 2); Returns a 1 followed by the input number of zeros (10 raised to the power of the input) ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { pow10 } from "ethers-maths/utils"; // Returns a 1 followed by the input number of zeros: 100 pow10(2); -BigNumber.pow10(2); +BigInt.pow10(2); ``` --- @@ -210,12 +210,12 @@ Returns the common WAD unit, which is also known as `ether` in Solidity _Most commonly used as the ERC20 token unit_ ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { WAD } from "ethers-maths/constants"; // Returns a 1 followed by 18 zeros: 1000000000000000000 WAD; -BigNumber.WAD; +BigInt.WAD; ``` #### `RAY` @@ -225,12 +225,12 @@ Returns the common RAY unit, which is also known as `1e9 ether` in Solidity _Most commonly used as Aave's index unit_ ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { RAY } from "ethers-maths/constants"; // Returns a 1 followed by 27 zeros: 1000000000000000000000000000 RAY; -BigNumber.RAY; +BigInt.RAY; ``` #### `PERCENT` @@ -240,12 +240,12 @@ Returns the common PERCENT unit, which is also known as `100%` in basis points _Most commonly used as Aave's `PERCENTAGE_FACTOR`_ ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { PERCENT } from "ethers-maths/constants"; // Returns a 1 followed by 4 zeros: 10000 PERCENT; -BigNumber.PERCENT; +BigInt.PERCENT; ``` #### `HALF_WAD` @@ -253,12 +253,12 @@ BigNumber.PERCENT; Returns half of the common WAD unit, which is also known as `0.5 ether` in Solidity ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { HALF_WAD } from "ethers-maths/constants"; // Returns a 1 followed by 18 zeros: 1000000000000000000 HALF_WAD; -BigNumber.HALF_WAD; +BigInt.HALF_WAD; ``` #### `HALF_RAY` @@ -266,12 +266,12 @@ BigNumber.HALF_WAD; Returns half of the common RAY unit, which is also known as `0.5e9 ether` in Solidity ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { HALF_RAY } from "ethers-maths/constants"; // Returns a 1 followed by 27 zeros: 1000000000000000000000000000 HALF_RAY; -BigNumber.HALF_RAY; +BigInt.HALF_RAY; ``` #### `HALF_PERCENT` @@ -281,12 +281,12 @@ Returns the common PERCENT unit, which is also known as `50%` in basis points _Most commonly used as Aave's `HALF_PERCENTAGE_FACTOR`_ ```typescript -// only if you want to avoid BigNumber prototype pollution +// only if you want to avoid BigInt prototype pollution import { HALF_PERCENT } from "ethers-maths/constants"; // Returns a 1 followed by 4 zeros: 10000 HALF_PERCENT; -BigNumber.HALF_PERCENT; +BigInt.HALF_PERCENT; ``` --- @@ -298,7 +298,7 @@ BigNumber.HALF_PERCENT; Returns the result of the wad-based multiplication (18 decimals precision), rounded half up ```typescript -BigNumber.WAD.wadMul(BigNumber.WAD); // 1.0 * 1.0 = 1.0 (in wad) +BigInt.WAD.wadMul(BigInt.WAD); // 1.0 * 1.0 = 1.0 (in wad) ``` #### `wadDiv` @@ -306,7 +306,7 @@ BigNumber.WAD.wadMul(BigNumber.WAD); // 1.0 * 1.0 = 1.0 (in wad) Returns the result of the wad-based division (18 decimals precision), rounded half up ```typescript -BigNumber.WAD.wadDiv(BigNumber.WAD); // 1.0 / 1.0 = 1.0 (in wad) +BigInt.WAD.wadDiv(BigInt.WAD); // 1.0 / 1.0 = 1.0 (in wad) ``` #### `wadAdd` @@ -314,8 +314,8 @@ BigNumber.WAD.wadDiv(BigNumber.WAD); // 1.0 / 1.0 = 1.0 (in wad) Returns the result of the addition of a BigNumberish and a wad-based percentage of it (18 decimals), rounded half up ```typescript -BigNumber.WAD.wadAdd( - BigNumber.HALF_WAD // 50% in wad +BigInt.WAD.wadAdd( + BigInt.HALF_WAD // 50% in wad ); // 1.0 * (1.0 + 0.5) = 1.5 (in wad) ``` @@ -324,8 +324,8 @@ BigNumber.WAD.wadAdd( Returns the result of the subtraction of a BigNumberish and a wad-based percentage of it (18 decimals), rounded half up ```typescript -BigNumber.WAD.wadSub( - BigNumber.HALF_WAD // 50% in wad +BigInt.WAD.wadSub( + BigInt.HALF_WAD // 50% in wad ); // 1.0 * (1.0 - 0.5) = 0.5 (in wad) ``` @@ -334,18 +334,18 @@ BigNumber.WAD.wadSub( Returns the weighted average of 2 BigNumberishs, using a wad-based weight (18 decimals), rounded half up ```typescript -BigNumber.WAD.wadAvg( - BigNumber.WAD.mul(2), // 2 WAD - BigNumber.HALF_WAD // 50% in WAD +BigInt.WAD.wadAvg( + BigInt.WAD.mul(2), // 2 WAD + BigInt.HALF_WAD // 50% in WAD ); // 1.0 * (1.0 - 0.5) + 2.0 * 0.5 = 1.5 (in wad) ``` #### `wadPow` -Returns the integer power of a BigNumber, calculated using wad-based multiplications (18 decimals precision), rounded half up +Returns the integer power of a BigInt, calculated using wad-based multiplications (18 decimals precision), rounded half up ```typescript -BigNumber.WAD.mul(2) // 2 WAD +BigInt.WAD.mul(2) // 2 WAD .wadPow(2); // 2.0 ** 2 = 4.0 (in wad) ``` @@ -354,7 +354,7 @@ BigNumber.WAD.mul(2) // 2 WAD Returns the result of the wad-based multiplication (18 decimals precision), rounded up ```typescript -BigNumber.WAD.sub(1).wadMulUp(BigNumber.WAD.sub(1)); // 0.999999999999999999 * 0.999999999999999999 = 0.999999999999999999 (in wad, rounded up) +BigInt.WAD.sub(1).wadMulUp(BigInt.WAD.sub(1)); // 0.999999999999999999 * 0.999999999999999999 = 0.999999999999999999 (in wad, rounded up) ``` #### `wadMulDown` @@ -362,7 +362,7 @@ BigNumber.WAD.sub(1).wadMulUp(BigNumber.WAD.sub(1)); // 0.999999999999999999 * 0 Returns the result of the wad-based multiplication (18 decimals precision), rounded down ```typescript -BigNumber.WAD.sub(1).wadMulDown(BigNumber.WAD.sub(1)); // 0.999999999999999999 * 0.999999999999999999 = 0.999999999999999998 (in wad, rounded down) +BigInt.WAD.sub(1).wadMulDown(BigInt.WAD.sub(1)); // 0.999999999999999999 * 0.999999999999999999 = 0.999999999999999998 (in wad, rounded down) ``` #### `wadDivUp` @@ -370,7 +370,7 @@ BigNumber.WAD.sub(1).wadMulDown(BigNumber.WAD.sub(1)); // 0.999999999999999999 * Returns the result of the wad-based division (18 decimals precision), rounded up ```typescript -BigNumber.WAD.wadDivUp(BigNumber.WAD.sub(1)); // 1.0 * 0.999999999999999999 = 1.000000000000000002 (in wad, rounded up) +BigInt.WAD.wadDivUp(BigInt.WAD.sub(1)); // 1.0 * 0.999999999999999999 = 1.000000000000000002 (in wad, rounded up) ``` #### `wadDivDown` @@ -378,49 +378,49 @@ BigNumber.WAD.wadDivUp(BigNumber.WAD.sub(1)); // 1.0 * 0.999999999999999999 = 1. Returns the result of the wad-based division (18 decimals precision), rounded down ```typescript -BigNumber.WAD.wadDivDown(BigNumber.WAD.sub(1)); // 1.0 * 0.999999999999999999 = 1.000000000000000001 (in wad, rounded down) +BigInt.WAD.wadDivDown(BigInt.WAD.sub(1)); // 1.0 * 0.999999999999999999 = 1.000000000000000001 (in wad, rounded down) ``` #### `formatWad` -Returns a string representation of the BigNumber's value, formatted to 18 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) +Returns a string representation of the BigInt's value, formatted to 18 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) ```typescript -BigNumber.WAD.formatWad(3); // 1.000 +BigInt.WAD.formatWad(3); // 1.000 ``` #### `toWadFloat` -Returns a float representation of the BigNumber's value, parsed as a wad-based number. +Returns a float representation of the BigInt's value, parsed as a wad-based number. -Note: parsing a too large value may result in parsing `NaN` (because the BigNumber's value may still be too large to fit in a JS floating-point number) +Note: parsing a too large value may result in parsing `NaN` (because the BigInt's value may still be too large to fit in a JS floating-point number) ```typescript -BigNumber.WAD.toWadFloat(); // 1.0 +BigInt.WAD.toWadFloat(); // 1.0 ``` #### `wadToPercent` -Scales the wad-based BigNumber down to the percent scale (losing 14 decimals) +Scales the wad-based BigInt down to the percent scale (losing 14 decimals) ```typescript -BigNumber.WAD.wadToPercent(); // 1 PERCENT +BigInt.WAD.wadToPercent(); // 1 PERCENT ``` #### `wadToRay` -Scales the wad-based BigNumber up to the ray scale (adding 9 decimals) +Scales the wad-based BigInt up to the ray scale (adding 9 decimals) ```typescript -BigNumber.WAD.wadToRay(); // 1 RAY +BigInt.WAD.wadToRay(); // 1 RAY ``` #### `wadToDecimals` -Scales the wad-based BigNumber up or down to the given scale defined by its number of decimals +Scales the wad-based BigInt up or down to the given scale defined by its number of decimals ```typescript -BigNumber.WAD.wadToDecimals(27); // 1 RAY +BigInt.WAD.wadToDecimals(27); // 1 RAY ``` --- @@ -432,7 +432,7 @@ BigNumber.WAD.wadToDecimals(27); // 1 RAY Returns the result of the ray-based multiplication (27 decimals precision), rounded half up ```typescript -BigNumber.RAY.rayMul(BigNumber.RAY); // 1.0 * 1.0 = 1.0 (in ray) +BigInt.RAY.rayMul(BigInt.RAY); // 1.0 * 1.0 = 1.0 (in ray) ``` #### `rayDiv` @@ -440,7 +440,7 @@ BigNumber.RAY.rayMul(BigNumber.RAY); // 1.0 * 1.0 = 1.0 (in ray) Returns the result of the ray-based division (27 decimals precision), rounded half up ```typescript -BigNumber.RAY.rayDiv(BigNumber.RAY); // 1.0 / 1.0 = 1.0 (in ray) +BigInt.RAY.rayDiv(BigInt.RAY); // 1.0 / 1.0 = 1.0 (in ray) ``` #### `rayAdd` @@ -448,8 +448,8 @@ BigNumber.RAY.rayDiv(BigNumber.RAY); // 1.0 / 1.0 = 1.0 (in ray) Returns the result of the addition of a BigNumberish and a ray-based percentage of it (27 decimals), rounded half up ```typescript -BigNumber.RAY.rayAdd( - BigNumber.HALF_RAY // 50% in ray +BigInt.RAY.rayAdd( + BigInt.HALF_RAY // 50% in ray ); // 1.0 * (1.0 + 0.5) = 1.5 (in ray) ``` @@ -458,8 +458,8 @@ BigNumber.RAY.rayAdd( Returns the result of the subtraction of a BigNumberish and a ray-based percentage of it (27 decimals), rounded half up ```typescript -BigNumber.RAY.raySub( - BigNumber.HALF_RAY // 50% in ray +BigInt.RAY.raySub( + BigInt.HALF_RAY // 50% in ray ); // 1.0 * (1.0 - 0.5) = 0.5 (in ray) ``` @@ -468,18 +468,18 @@ BigNumber.RAY.raySub( Returns the weighted average of 2 BigNumberishs, using a ray-based weight (27 decimals), rounded half up ```typescript -BigNumber.RAY.rayAvg( - BigNumber.RAY.mul(2), // 2 RAY - BigNumber.HALF_RAY // 50% in RAY +BigInt.RAY.rayAvg( + BigInt.RAY.mul(2), // 2 RAY + BigInt.HALF_RAY // 50% in RAY ); // 1.0 * (1.0 - 0.5) + 2.0 * 0.5 = 1.5 (in ray) ``` #### `rayPow` -Returns the integer power of a BigNumber, calculated using ray-based multiplications (27 decimals precision), rounded half up +Returns the integer power of a BigInt, calculated using ray-based multiplications (27 decimals precision), rounded half up ```typescript -BigNumber.RAY.mul(2) // 2 RAY +BigInt.RAY.mul(2) // 2 RAY .rayPow(2); // 2.0 ** 2 = 4.0 (in ray) ``` @@ -488,7 +488,7 @@ BigNumber.RAY.mul(2) // 2 RAY Returns the result of the ray-based multiplication (27 decimals precision), rounded up ```typescript -BigNumber.RAY.sub(1).rayMulUp(BigNumber.RAY.sub(1)); // 0.999999999999999999999999999 * 0.999999999999999999999999999 = 0.999999999999999999999999999 (in ray, rounded up) +BigInt.RAY.sub(1).rayMulUp(BigInt.RAY.sub(1)); // 0.999999999999999999999999999 * 0.999999999999999999999999999 = 0.999999999999999999999999999 (in ray, rounded up) ``` #### `rayMulDown` @@ -496,7 +496,7 @@ BigNumber.RAY.sub(1).rayMulUp(BigNumber.RAY.sub(1)); // 0.9999999999999999999999 Returns the result of the ray-based multiplication (27 decimals precision), rounded down ```typescript -BigNumber.RAY.sub(1).rayMulDown(BigNumber.RAY.sub(1)); // 0.999999999999999999999999999 * 0.999999999999999999999999999 = 0.999999999999999999999999998 (in ray, rounded down) +BigInt.RAY.sub(1).rayMulDown(BigInt.RAY.sub(1)); // 0.999999999999999999999999999 * 0.999999999999999999999999999 = 0.999999999999999999999999998 (in ray, rounded down) ``` #### `rayDivUp` @@ -504,7 +504,7 @@ BigNumber.RAY.sub(1).rayMulDown(BigNumber.RAY.sub(1)); // 0.99999999999999999999 Returns the result of the ray-based division (27 decimals precision), rounded up ```typescript -BigNumber.RAY.rayDivUp(BigNumber.RAY.sub(1)); // 1.0 * 0.999999999999999999999999999 = 1.000000000000000000000000002 (in ray, rounded up) +BigInt.RAY.rayDivUp(BigInt.RAY.sub(1)); // 1.0 * 0.999999999999999999999999999 = 1.000000000000000000000000002 (in ray, rounded up) ``` #### `rayDivDown` @@ -512,49 +512,49 @@ BigNumber.RAY.rayDivUp(BigNumber.RAY.sub(1)); // 1.0 * 0.99999999999999999999999 Returns the result of the ray-based division (27 decimals precision), rounded down ```typescript -BigNumber.RAY.rayDivDown(BigNumber.RAY.sub(1)); // 1.0 * 0.999999999999999999999999999 = 1.000000000000000000000000001 (in ray, rounded down) +BigInt.RAY.rayDivDown(BigInt.RAY.sub(1)); // 1.0 * 0.999999999999999999999999999 = 1.000000000000000000000000001 (in ray, rounded down) ``` #### `formatRay` -Returns a string representation of the BigNumber's value, formatted to 27 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) +Returns a string representation of the BigInt's value, formatted to 27 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) ```typescript -BigNumber.RAY.formatRay(3); // 1.000 +BigInt.RAY.formatRay(3); // 1.000 ``` #### `toRayFloat` -Returns a float representation of the BigNumber's value, parsed as a ray-based number. +Returns a float representation of the BigInt's value, parsed as a ray-based number. -Note: parsing a too large value may result in parsing `NaN` (because the BigNumber's value may still be too large to fit in a JS floating-point number) +Note: parsing a too large value may result in parsing `NaN` (because the BigInt's value may still be too large to fit in a JS floating-point number) ```typescript -BigNumber.RAY.toRayFloat(); // 1.0 +BigInt.RAY.toRayFloat(); // 1.0 ``` #### `rayToPercent` -Scales the ray-based BigNumber down to the percent scale (losing 23 decimals) +Scales the ray-based BigInt down to the percent scale (losing 23 decimals) ```typescript -BigNumber.RAY.rayToPercent(); // 1 PERCENT +BigInt.RAY.rayToPercent(); // 1 PERCENT ``` #### `rayToWad` -Scales the ray-based BigNumber down to the wad scale (losing 9 decimals) +Scales the ray-based BigInt down to the wad scale (losing 9 decimals) ```typescript -BigNumber.RAY.rayToWad(); // 1 WAD +BigInt.RAY.rayToWad(); // 1 WAD ``` #### `rayToDecimals` -Scales the ray-based BigNumber up or down to the given scale defined by its number of decimals +Scales the ray-based BigInt up or down to the given scale defined by its number of decimals ```typescript -BigNumber.RAY.rayToDecimals(18); // 1 WAD +BigInt.RAY.rayToDecimals(18); // 1 WAD ``` --- @@ -566,7 +566,7 @@ BigNumber.RAY.rayToDecimals(18); // 1 WAD Returns the result of the percent-based multiplication (4 decimals precision), rounded half up ```typescript -BigNumber.PERCENT.percentMul(BigNumber.PERCENT); // 1.0 * 1.0 = 1.0 (in percent) +BigInt.PERCENT.percentMul(BigInt.PERCENT); // 1.0 * 1.0 = 1.0 (in percent) ``` #### `percentDiv` @@ -574,7 +574,7 @@ BigNumber.PERCENT.percentMul(BigNumber.PERCENT); // 1.0 * 1.0 = 1.0 (in percent) Returns the result of the percent-based division (4 decimals precision), rounded half up ```typescript -BigNumber.PERCENT.percentDiv(BigNumber.PERCENT); // 1.0 / 1.0 = 1.0 (in percent) +BigInt.PERCENT.percentDiv(BigInt.PERCENT); // 1.0 / 1.0 = 1.0 (in percent) ``` #### `percentAdd` @@ -582,8 +582,8 @@ BigNumber.PERCENT.percentDiv(BigNumber.PERCENT); // 1.0 / 1.0 = 1.0 (in percent) Returns the result of the addition of a BigNumberish and a percent-based percentage of it (4 decimals), rounded half up ```typescript -BigNumber.PERCENT.percentAdd( - BigNumber.HALF_PERCENT // 50% in percent +BigInt.PERCENT.percentAdd( + BigInt.HALF_PERCENT // 50% in percent ); // 1.0 * (1.0 + 0.5) = 1.5 (in percent) ``` @@ -592,8 +592,8 @@ BigNumber.PERCENT.percentAdd( Returns the result of the subtraction of a BigNumberish and a percent-based percentage of it (4 decimals), rounded half up ```typescript -BigNumber.PERCENT.percentSub( - BigNumber.HALF_PERCENT // 50% in percent +BigInt.PERCENT.percentSub( + BigInt.HALF_PERCENT // 50% in percent ); // 1.0 * (1.0 - 0.5) = 0.5 (in percent) ``` @@ -602,18 +602,18 @@ BigNumber.PERCENT.percentSub( Returns the weighted average of 2 BigNumberishs, using a percent-based weight (4 decimals), rounded half up ```typescript -BigNumber.PERCENT.percentAvg( - BigNumber.PERCENT.mul(2), // 2 PERCENT - BigNumber.HALF_PERCENT // 50% in PERCENT +BigInt.PERCENT.percentAvg( + BigInt.PERCENT.mul(2), // 2 PERCENT + BigInt.HALF_PERCENT // 50% in PERCENT ); // 1.0 * (1.0 - 0.5) + 2.0 * 0.5 = 1.5 (in percent) ``` #### `percentPow` -Returns the integer power of a BigNumber, calculated using percent-based multiplications (4 decimals precision), rounded half up +Returns the integer power of a BigInt, calculated using percent-based multiplications (4 decimals precision), rounded half up ```typescript -BigNumber.PERCENT.mul(2) // 2 PERCENT +BigInt.PERCENT.mul(2) // 2 PERCENT .percentPow(2); // 2.0 ** 2 = 4.0 (in percent) ``` @@ -622,7 +622,7 @@ BigNumber.PERCENT.mul(2) // 2 PERCENT Returns the result of the percent-based multiplication (4 decimals precision), rounded up ```typescript -BigNumber.PERCENT.sub(1).percentMulUp(BigNumber.PERCENT.sub(1)); // 0.9999 * 0.9999 = 0.9999 (in percent, rounded up) +BigInt.PERCENT.sub(1).percentMulUp(BigInt.PERCENT.sub(1)); // 0.9999 * 0.9999 = 0.9999 (in percent, rounded up) ``` #### `percentMulDown` @@ -630,7 +630,7 @@ BigNumber.PERCENT.sub(1).percentMulUp(BigNumber.PERCENT.sub(1)); // 0.9999 * 0.9 Returns the result of the percent-based multiplication (4 decimals precision), rounded down ```typescript -BigNumber.PERCENT.sub(1).percentMulDown(BigNumber.PERCENT.sub(1)); // 0.9999 * 0.9999 = 0.9998 (in percent, rounded down) +BigInt.PERCENT.sub(1).percentMulDown(BigInt.PERCENT.sub(1)); // 0.9999 * 0.9999 = 0.9998 (in percent, rounded down) ``` #### `percentDivUp` @@ -638,7 +638,7 @@ BigNumber.PERCENT.sub(1).percentMulDown(BigNumber.PERCENT.sub(1)); // 0.9999 * 0 Returns the result of the percent-based division (4 decimals precision), rounded up ```typescript -BigNumber.PERCENT.percentDivUp(BigNumber.PERCENT.sub(1)); // 1.0 * 0.9999 = 1.0002 (in percent, rounded up) +BigInt.PERCENT.percentDivUp(BigInt.PERCENT.sub(1)); // 1.0 * 0.9999 = 1.0002 (in percent, rounded up) ``` #### `percentDivDown` @@ -646,49 +646,49 @@ BigNumber.PERCENT.percentDivUp(BigNumber.PERCENT.sub(1)); // 1.0 * 0.9999 = 1.00 Returns the result of the percent-based division (4 decimals precision), rounded down ```typescript -BigNumber.PERCENT.percentDivDown(BigNumber.PERCENT.sub(1)); // 1.0 * 0.9999 = 1.0001 (in percent, rounded down) +BigInt.PERCENT.percentDivDown(BigInt.PERCENT.sub(1)); // 1.0 * 0.9999 = 1.0001 (in percent, rounded down) ``` #### `formatPercent` -Returns a string representation of the BigNumber's value, formatted to 4 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) +Returns a string representation of the BigInt's value, formatted to 4 decimals and with the input number of digits expected after the unit, truncating the trailing digits if any (default: keep all digits after the decimal point) ```typescript -BigNumber.PERCENT.formatPercent(3); // 1.000 +BigInt.PERCENT.formatPercent(3); // 1.000 ``` #### `toPercentFloat` -Returns a float representation of the BigNumber's value, parsed as a percent-based number. +Returns a float representation of the BigInt's value, parsed as a percent-based number. -Note: parsing a too large value may result in parsing `NaN` (because the BigNumber's value may still be too large to fit in a JS floating-point number) +Note: parsing a too large value may result in parsing `NaN` (because the BigInt's value may still be too large to fit in a JS floating-point number) ```typescript -BigNumber.PERCENT.toPercentFloat(); // 1.0 +BigInt.PERCENT.toPercentFloat(); // 1.0 ``` #### `percentToWad` -Scales the percent-based BigNumber up to the wad scale (adding 14 decimals) +Scales the percent-based BigInt up to the wad scale (adding 14 decimals) ```typescript -BigNumber.PERCENT.percentToWad(); // 1 WAD +BigInt.PERCENT.percentToWad(); // 1 WAD ``` #### `percentToRay` -Scales the percent-based BigNumber up to the ray scale (adding 23 decimals) +Scales the percent-based BigInt up to the ray scale (adding 23 decimals) ```typescript -BigNumber.PERCENT.percentToRay(); // 1 RAY +BigInt.PERCENT.percentToRay(); // 1 RAY ``` #### `percentToDecimals` -Scales the percent-based BigNumber up or down to the given scale defined by its number of decimals +Scales the percent-based BigInt up or down to the given scale defined by its number of decimals ```typescript -BigNumber.RAY.percentToDecimals(27); // 1 RAY +BigInt.RAY.percentToDecimals(27); // 1 RAY ``` [build-img]: https://github.com/Rubilmax/ethers-maths/actions/workflows/release.yml/badge.svg diff --git a/package.json b/package.json index 625da86..2ed82e9 100644 --- a/package.json +++ b/package.json @@ -41,23 +41,24 @@ }, "homepage": "https://github.com/Rubilmax/ethers-maths#readme", "dependencies": { - "ethers": "^5.0.0" + "ethers": "^6.0.0" }, "devDependencies": { - "@trivago/prettier-plugin-sort-imports": "4.0.0", - "@types/jest": "^27.5.2", + "@jest/globals": "^29.6.1", + "@trivago/prettier-plugin-sort-imports": "4.1.1", + "@types/jest": "^29.5.3", "commitizen": "^4.3.0", "conventional-changelog-conventionalcommits": "^5.0.0", "cz-conventional-changelog": "^3.3.0", "husky": "^8.0.3", "jest": "^29.6.1", - "lint-staged": "^10.5.4", - "prettier": "^2.8.8", + "lint-staged": "^13.2.3", + "prettier": "^3.0.0", "ts-jest": "^29.1.1", - "typescript": "^4.9.5" + "typescript": "^5.1.6" }, "peerDependencies": { - "ethers": "^5.0.0" + "ethers": "^6.0.0" }, "config": { "commitizen": { @@ -72,8 +73,7 @@ }, "release": { "branches": [ - "main", - "ethers-v6" + "main" ], "plugins": [ [ @@ -125,6 +125,15 @@ "collectCoverageFrom": [ "/src/**/*.ts", "!/src/types/**/*.ts" - ] + ], + "transform": { + "\\.tsx?$": [ + "ts-jest", + { + "diagnostics": false, + "isolatedModules": true + } + ] + } } } diff --git a/src/constants.ts b/src/constants.ts index c7b8073..0c94393 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -3,8 +3,8 @@ import { pow10 } from "./utils"; export const PERCENT = pow10(4); export const WAD = pow10(18); export const RAY = pow10(27); -export const WAD_SQUARED = WAD.pow(2); +export const WAD_SQUARED = WAD ** 2n; -export const HALF_PERCENT = PERCENT.div(2); -export const HALF_WAD = WAD.div(2); -export const HALF_RAY = RAY.div(2); +export const HALF_PERCENT = PERCENT / 2n; +export const HALF_WAD = WAD / 2n; +export const HALF_RAY = RAY / 2n; diff --git a/src/index.ts b/src/index.ts index 68c48d2..842e03c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { BigNumberish, BigNumber, utils } from "ethers"; +import { BigNumberish, formatUnits, toBigInt } from "ethers"; import { PERCENT, RAY, HALF_PERCENT, HALF_RAY, HALF_WAD, WAD, WAD_SQUARED } from "./constants"; import { @@ -15,102 +15,107 @@ import { mulDivUp, mulDivDown, approxEqAbs, + abs, } from "./utils"; -declare module "ethers" { - interface BigNumber { +declare global { + interface BigInt { approxEqAbs: (other: BigNumberish, tolerance?: BigNumberish) => boolean; - min: (other: BigNumberish, ...others: BigNumberish[]) => BigNumber; - max: (other: BigNumberish, ...others: BigNumberish[]) => BigNumber; - sum: (others: BigNumberish[]) => BigNumber; + abs: () => bigint; + min: (other: BigNumberish, ...others: BigNumberish[]) => bigint; + max: (other: BigNumberish, ...others: BigNumberish[]) => bigint; + sum: (others: BigNumberish[]) => bigint; format: (decimals?: number, digits?: number) => string; toFloat: (decimals?: number) => number; - compMul: (other: BigNumberish) => BigNumber; - compDiv: (other: BigNumberish) => BigNumber; + compMul: (other: BigNumberish) => bigint; + compDiv: (other: BigNumberish) => bigint; - percentAdd: (pct: BigNumberish) => BigNumber; - percentSub: (pct: BigNumberish) => BigNumber; - percentMul: (other: BigNumberish) => BigNumber; - percentMulUp: (other: BigNumberish) => BigNumber; - percentMulDown: (other: BigNumberish) => BigNumber; - percentDiv: (other: BigNumberish) => BigNumber; - percentDivUp: (other: BigNumberish) => BigNumber; - percentDivDown: (other: BigNumberish) => BigNumber; - percentAvg: (other: BigNumberish, pct: BigNumberish) => BigNumber; - percentPow: (exponent: BigNumberish) => BigNumber; - percentToDecimals: (decimals: number) => BigNumber; - percentToWad: () => BigNumber; - percentToRay: () => BigNumber; + percentAdd: (pct: BigNumberish) => bigint; + percentSub: (pct: BigNumberish) => bigint; + percentMul: (other: BigNumberish) => bigint; + percentMulUp: (other: BigNumberish) => bigint; + percentMulDown: (other: BigNumberish) => bigint; + percentDiv: (other: BigNumberish) => bigint; + percentDivUp: (other: BigNumberish) => bigint; + percentDivDown: (other: BigNumberish) => bigint; + percentAvg: (other: BigNumberish, pct: BigNumberish) => bigint; + percentPow: (exponent: BigNumberish) => bigint; + percentToDecimals: (decimals: number) => bigint; + percentToWad: () => bigint; + percentToRay: () => bigint; formatPercent: (digits?: number) => string; toPercentFloat: () => number; - wadAdd: (wad: BigNumberish) => BigNumber; - wadSub: (wad: BigNumberish) => BigNumber; - wadMul: (other: BigNumberish) => BigNumber; - wadMulUp: (other: BigNumberish) => BigNumber; - wadMulDown: (other: BigNumberish) => BigNumber; - wadDiv: (other: BigNumberish) => BigNumber; - wadDivUp: (other: BigNumberish) => BigNumber; - wadDivDown: (other: BigNumberish) => BigNumber; - wadAvg: (other: BigNumberish, wad: BigNumberish) => BigNumber; - wadPow: (exponent: BigNumberish) => BigNumber; - wadToDecimals: (decimals: number) => BigNumber; - wadToPercent: () => BigNumber; - wadToRay: () => BigNumber; + wadAdd: (wad: BigNumberish) => bigint; + wadSub: (wad: BigNumberish) => bigint; + wadMul: (other: BigNumberish) => bigint; + wadMulUp: (other: BigNumberish) => bigint; + wadMulDown: (other: BigNumberish) => bigint; + wadDiv: (other: BigNumberish) => bigint; + wadDivUp: (other: BigNumberish) => bigint; + wadDivDown: (other: BigNumberish) => bigint; + wadAvg: (other: BigNumberish, wad: BigNumberish) => bigint; + wadPow: (exponent: BigNumberish) => bigint; + wadToDecimals: (decimals: number) => bigint; + wadToPercent: () => bigint; + wadToRay: () => bigint; formatWad: (digits?: number) => string; toWadFloat: () => number; - rayAdd: (ray: BigNumberish) => BigNumber; - raySub: (ray: BigNumberish) => BigNumber; - rayMul: (other: BigNumberish) => BigNumber; - rayMulUp: (other: BigNumberish) => BigNumber; - rayMulDown: (other: BigNumberish) => BigNumber; - rayDiv: (other: BigNumberish) => BigNumber; - rayDivUp: (other: BigNumberish) => BigNumber; - rayDivDown: (other: BigNumberish) => BigNumber; - rayAvg: (other: BigNumberish, ray: BigNumberish) => BigNumber; - rayPow: (exponent: BigNumberish) => BigNumber; - rayToDecimals: (decimals: number) => BigNumber; - rayToPercent: () => BigNumber; - rayToWad: () => BigNumber; + rayAdd: (ray: BigNumberish) => bigint; + raySub: (ray: BigNumberish) => bigint; + rayMul: (other: BigNumberish) => bigint; + rayMulUp: (other: BigNumberish) => bigint; + rayMulDown: (other: BigNumberish) => bigint; + rayDiv: (other: BigNumberish) => bigint; + rayDivUp: (other: BigNumberish) => bigint; + rayDivDown: (other: BigNumberish) => bigint; + rayAvg: (other: BigNumberish, ray: BigNumberish) => bigint; + rayPow: (exponent: BigNumberish) => bigint; + rayToDecimals: (decimals: number) => bigint; + rayToPercent: () => bigint; + rayToWad: () => bigint; formatRay: (digits?: number) => string; toRayFloat: () => number; } - namespace BigNumber { - let PERCENT: BigNumber; - let HALF_PERCENT: BigNumber; - let WAD: BigNumber; - let HALF_WAD: BigNumber; - let RAY: BigNumber; - let HALF_RAY: BigNumber; + interface BigIntConstructor { + PERCENT: bigint; + HALF_PERCENT: bigint; + WAD: bigint; + HALF_WAD: bigint; + RAY: bigint; + HALF_RAY: bigint; - let min: (other: BigNumberish, ...others: BigNumberish[]) => BigNumber; - let max: (other: BigNumberish, ...others: BigNumberish[]) => BigNumber; - let sum: (others: BigNumberish[]) => BigNumber; + min: (other: BigNumberish, ...others: BigNumberish[]) => bigint; + max: (other: BigNumberish, ...others: BigNumberish[]) => bigint; + sum: (others: BigNumberish[]) => bigint; - let pow10: (power: BigNumberish) => BigNumber; - let parsePercent: (value: string) => BigNumber; - let parseWad: (value: string) => BigNumber; - let parseRay: (value: string) => BigNumber; + pow10: (power: BigNumberish) => bigint; + parsePercent: (value: string) => bigint; + parseWad: (value: string) => bigint; + parseRay: (value: string) => bigint; } } -BigNumber.prototype.approxEqAbs = function (y: BigNumberish, tolerance: BigNumberish = 0) { - return approxEqAbs(this, y, tolerance); +BigInt.prototype.approxEqAbs = function (y: BigNumberish, tolerance: BigNumberish = 0) { + return approxEqAbs(this as bigint, y, tolerance); }; -BigNumber.prototype.min = function (y: BigNumberish, ...others: BigNumberish[]) { - return min(this, y, ...others); +BigInt.prototype.abs = function () { + return abs(this as bigint); }; -BigNumber.prototype.max = function (y: BigNumberish, ...others: BigNumberish[]) { - return max(this, y, ...others); +BigInt.prototype.min = function (y: BigNumberish, ...others: BigNumberish[]) { + return min(this as bigint, y, ...others); }; -BigNumber.prototype.sum = function (others: BigNumberish[]) { - return sum(this, others); +BigInt.prototype.max = function (y: BigNumberish, ...others: BigNumberish[]) { + return max(this as bigint, y, ...others); }; -BigNumber.prototype.format = function (decimals?: number, digits?: number) { - const formatted = utils.formatUnits(this, decimals); +BigInt.prototype.sum = function (others: BigNumberish[]) { + return sum(this as bigint, others); +}; +BigInt.prototype.format = function (decimals?: number, digits?: number) { + const formatted = formatUnits(this as bigint, decimals); let dotIndex = formatted.indexOf("."); if (dotIndex < 0) dotIndex = formatted.length; @@ -122,185 +127,185 @@ BigNumber.prototype.format = function (decimals?: number, digits?: number) { ? formatted.slice(0, dotIndex + (digits > 0 ? digits + 1 : 0)) : formatted + "0".repeat(digits - decimals); }; -BigNumber.prototype.toFloat = function (decimals?: number) { +BigInt.prototype.toFloat = function (decimals?: number) { return parseFloat(this.format(decimals)); }; -BigNumber.prototype.compMul = function (other: BigNumberish) { - return this.mul(other).div(WAD); +BigInt.prototype.compMul = function (other: BigNumberish) { + return ((this as bigint) * toBigInt(other)) / WAD; }; -BigNumber.prototype.compDiv = function (other: BigNumberish) { - return this.mul(WAD_SQUARED).div(other).div(WAD); +BigInt.prototype.compDiv = function (other: BigNumberish) { + return ((this as bigint) * WAD_SQUARED) / toBigInt(other) / WAD; }; -BigNumber.prototype.percentAdd = function (pct: BigNumberish) { - return this.percentMul(PERCENT.add(pct)); +BigInt.prototype.percentAdd = function (pct: BigNumberish) { + return this.percentMul(PERCENT + toBigInt(pct)); }; -BigNumber.prototype.percentSub = function (pct: BigNumberish) { - return this.percentMul(PERCENT.sub(pct)); +BigInt.prototype.percentSub = function (pct: BigNumberish) { + return this.percentMul(PERCENT - toBigInt(pct)); }; -BigNumber.prototype.percentMul = function (other: BigNumberish) { - return mulDivHalfUp(this, other, PERCENT); +BigInt.prototype.percentMul = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, other, PERCENT); }; -BigNumber.prototype.percentMulUp = function (other: BigNumberish) { - return mulDivUp(this, other, PERCENT); +BigInt.prototype.percentMulUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, other, PERCENT); }; -BigNumber.prototype.percentMulDown = function (other: BigNumberish) { - return mulDivDown(this, other, PERCENT); +BigInt.prototype.percentMulDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, other, PERCENT); }; -BigNumber.prototype.percentDiv = function (other: BigNumberish) { - return mulDivHalfUp(this, PERCENT, other); +BigInt.prototype.percentDiv = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, PERCENT, other); }; -BigNumber.prototype.percentDivUp = function (other: BigNumberish) { - return mulDivUp(this, PERCENT, other); +BigInt.prototype.percentDivUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, PERCENT, other); }; -BigNumber.prototype.percentDivDown = function (other: BigNumberish) { - return mulDivDown(this, PERCENT, other); +BigInt.prototype.percentDivDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, PERCENT, other); }; -BigNumber.prototype.percentAvg = function (other: BigNumberish, pct: BigNumberish) { - return avgHalfUp(this, other, pct, PERCENT); +BigInt.prototype.percentAvg = function (other: BigNumberish, pct: BigNumberish) { + return avgHalfUp(this as bigint, other, pct, PERCENT); }; -BigNumber.prototype.percentPow = function (exponent: BigNumberish) { - return powHalfUp(this, exponent, PERCENT); +BigInt.prototype.percentPow = function (exponent: BigNumberish) { + return powHalfUp(this as bigint, exponent, PERCENT); }; -BigNumber.prototype.percentToDecimals = function (decimals: number) { +BigInt.prototype.percentToDecimals = function (decimals: number) { if (decimals <= 4) { const ratio = pow10(4 - decimals); - return this.add(ratio.div(2)).div(ratio); + return ((this as bigint) + ratio / 2n) / ratio; } - return this.mul(pow10(decimals - 4)); + return (this as bigint) * pow10(decimals - 4); }; -BigNumber.prototype.percentToWad = function () { +BigInt.prototype.percentToWad = function () { return this.percentToDecimals(18); }; -BigNumber.prototype.percentToRay = function () { +BigInt.prototype.percentToRay = function () { return this.percentToDecimals(27); }; -BigNumber.prototype.formatPercent = function (digits?: number) { +BigInt.prototype.formatPercent = function (digits?: number) { return this.format(4, digits); }; -BigNumber.prototype.toPercentFloat = function () { +BigInt.prototype.toPercentFloat = function () { return this.toFloat(4); }; -BigNumber.prototype.wadAdd = function (wad: BigNumberish) { - return this.wadMul(WAD.add(wad)); +BigInt.prototype.wadAdd = function (wad: BigNumberish) { + return this.wadMul(WAD + toBigInt(wad)); }; -BigNumber.prototype.wadSub = function (wad: BigNumberish) { - return this.wadMul(WAD.sub(wad)); +BigInt.prototype.wadSub = function (wad: BigNumberish) { + return this.wadMul(WAD - toBigInt(wad)); }; -BigNumber.prototype.wadMul = function (other: BigNumberish) { - return mulDivHalfUp(this, other, WAD); +BigInt.prototype.wadMul = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, other, WAD); }; -BigNumber.prototype.wadMulUp = function (other: BigNumberish) { - return mulDivUp(this, other, WAD); +BigInt.prototype.wadMulUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, other, WAD); }; -BigNumber.prototype.wadMulDown = function (other: BigNumberish) { - return mulDivDown(this, other, WAD); +BigInt.prototype.wadMulDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, other, WAD); }; -BigNumber.prototype.wadDiv = function (other: BigNumberish) { - return mulDivHalfUp(this, WAD, other); +BigInt.prototype.wadDiv = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, WAD, other); }; -BigNumber.prototype.wadDivUp = function (other: BigNumberish) { - return mulDivUp(this, WAD, other); +BigInt.prototype.wadDivUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, WAD, other); }; -BigNumber.prototype.wadDivDown = function (other: BigNumberish) { - return mulDivDown(this, WAD, other); +BigInt.prototype.wadDivDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, WAD, other); }; -BigNumber.prototype.wadAvg = function (other: BigNumberish, wad: BigNumberish) { - return avgHalfUp(this, other, wad, WAD); +BigInt.prototype.wadAvg = function (other: BigNumberish, wad: BigNumberish) { + return avgHalfUp(this as bigint, other, wad, WAD); }; -BigNumber.prototype.wadPow = function (exponent: BigNumberish) { - return powHalfUp(this, exponent, WAD); +BigInt.prototype.wadPow = function (exponent: BigNumberish) { + return powHalfUp(this as bigint, exponent, WAD); }; -BigNumber.prototype.wadToDecimals = function (decimals: number) { +BigInt.prototype.wadToDecimals = function (decimals: number) { if (decimals <= 18) { const ratio = pow10(18 - decimals); - return this.add(ratio.div(2)).div(ratio); + return ((this as bigint) + ratio / 2n) / ratio; } - return this.mul(pow10(decimals - 18)); + return (this as bigint) * pow10(decimals - 18); }; -BigNumber.prototype.wadToPercent = function () { +BigInt.prototype.wadToPercent = function () { return this.wadToDecimals(4); }; -BigNumber.prototype.wadToRay = function () { +BigInt.prototype.wadToRay = function () { return this.wadToDecimals(27); }; -BigNumber.prototype.formatWad = function (digits?: number) { +BigInt.prototype.formatWad = function (digits?: number) { return this.format(18, digits); }; -BigNumber.prototype.toWadFloat = function () { +BigInt.prototype.toWadFloat = function () { return this.toFloat(18); }; -BigNumber.prototype.rayAdd = function (ray: BigNumberish) { - return this.rayMul(RAY.add(ray)); +BigInt.prototype.rayAdd = function (ray: BigNumberish) { + return this.rayMul(RAY + toBigInt(ray)); }; -BigNumber.prototype.raySub = function (ray: BigNumberish) { - return this.rayMul(RAY.sub(ray)); +BigInt.prototype.raySub = function (ray: BigNumberish) { + return this.rayMul(RAY - toBigInt(ray)); }; -BigNumber.prototype.rayMul = function (other: BigNumberish) { - return mulDivHalfUp(this, other, RAY); +BigInt.prototype.rayMul = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, other, RAY); }; -BigNumber.prototype.rayMulUp = function (other: BigNumberish) { - return mulDivUp(this, other, RAY); +BigInt.prototype.rayMulUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, other, RAY); }; -BigNumber.prototype.rayMulDown = function (other: BigNumberish) { - return mulDivDown(this, other, RAY); +BigInt.prototype.rayMulDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, other, RAY); }; -BigNumber.prototype.rayDiv = function (other: BigNumberish) { - return mulDivHalfUp(this, RAY, other); +BigInt.prototype.rayDiv = function (other: BigNumberish) { + return mulDivHalfUp(this as bigint, RAY, other); }; -BigNumber.prototype.rayDivUp = function (other: BigNumberish) { - return mulDivUp(this, RAY, other); +BigInt.prototype.rayDivUp = function (other: BigNumberish) { + return mulDivUp(this as bigint, RAY, other); }; -BigNumber.prototype.rayDivDown = function (other: BigNumberish) { - return mulDivDown(this, RAY, other); +BigInt.prototype.rayDivDown = function (other: BigNumberish) { + return mulDivDown(this as bigint, RAY, other); }; -BigNumber.prototype.rayAvg = function (other: BigNumberish, ray: BigNumberish) { - return avgHalfUp(this, other, ray, RAY); +BigInt.prototype.rayAvg = function (other: BigNumberish, ray: BigNumberish) { + return avgHalfUp(this as bigint, other, ray, RAY); }; -BigNumber.prototype.rayPow = function (exponent: BigNumberish) { - return powHalfUp(this, exponent, RAY); +BigInt.prototype.rayPow = function (exponent: BigNumberish) { + return powHalfUp(this as bigint, exponent, RAY); }; -BigNumber.prototype.rayToDecimals = function (decimals: number) { +BigInt.prototype.rayToDecimals = function (decimals: number) { if (decimals <= 27) { const ratio = pow10(27 - decimals); - return this.add(ratio.div(2)).div(ratio); + return ((this as bigint) + ratio / 2n) / ratio; } - return this.mul(pow10(decimals - 27)); + return (this as bigint) * pow10(decimals - 27); }; -BigNumber.prototype.rayToPercent = function () { +BigInt.prototype.rayToPercent = function () { return this.rayToDecimals(4); }; -BigNumber.prototype.rayToWad = function () { +BigInt.prototype.rayToWad = function () { return this.rayToDecimals(18); }; -BigNumber.prototype.formatRay = function (digits?: number) { +BigInt.prototype.formatRay = function (digits?: number) { return this.format(27, digits); }; -BigNumber.prototype.toRayFloat = function () { +BigInt.prototype.toRayFloat = function () { return this.toFloat(27); }; -BigNumber.PERCENT = PERCENT; -BigNumber.HALF_PERCENT = HALF_PERCENT; -BigNumber.WAD = WAD; -BigNumber.HALF_WAD = HALF_WAD; -BigNumber.RAY = RAY; -BigNumber.HALF_RAY = HALF_RAY; +BigInt.PERCENT = PERCENT; +BigInt.HALF_PERCENT = HALF_PERCENT; +BigInt.WAD = WAD; +BigInt.HALF_WAD = HALF_WAD; +BigInt.RAY = RAY; +BigInt.HALF_RAY = HALF_RAY; -BigNumber.min = min; -BigNumber.max = max; -BigNumber.sum = (others: BigNumberish[]) => sum(0, others); +BigInt.min = min; +BigInt.max = max; +BigInt.sum = (others: BigNumberish[]) => sum(0, others); -BigNumber.pow10 = pow10; -BigNumber.parsePercent = parsePercent; -BigNumber.parseWad = parseWad; -BigNumber.parseRay = parseRay; +BigInt.pow10 = pow10; +BigInt.parsePercent = parsePercent; +BigInt.parseWad = parseWad; +BigInt.parseRay = parseRay; diff --git a/src/utils.ts b/src/utils.ts index 2afafdb..0560e3e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,59 +1,70 @@ -import { BigNumber, BigNumberish, utils } from "ethers"; +import { BigNumberish, parseUnits, toBigInt } from "ethers"; -export const pow10 = (power: BigNumberish) => BigNumber.from(10).pow(power); +export const pow10 = (power: BigNumberish) => toBigInt(10) ** toBigInt(power); -export const approxEqAbs = (x: BigNumberish, y: BigNumberish, tolerance: BigNumberish = 0) => - BigNumber.from(y).sub(x).abs().lte(tolerance); +export const approxEqAbs = (x: BigNumberish, y: BigNumberish, tolerance: BigNumberish = 0) => { + x = toBigInt(x); + y = toBigInt(y); + tolerance = toBigInt(tolerance); -export const min = (x: BigNumberish, ...others: BigNumberish[]): BigNumber => { - x = BigNumber.from(x); + return abs(y - x) <= tolerance; +}; + +export const abs = (x: BigNumberish) => { + x = toBigInt(x); + + return x < 0n ? -x : x; +}; + +export const min = (x: BigNumberish, ...others: BigNumberish[]): bigint => { + x = toBigInt(x); if (others.length === 0) return x; - const y = BigNumber.from(others[0]); + const y = toBigInt(others[0]); - return min(x.gt(y) ? y : x, ...others.slice(1)); + return min(x > y ? y : x, ...others.slice(1)); }; -export const max = (x: BigNumberish, ...others: BigNumberish[]): BigNumber => { - x = BigNumber.from(x); +export const max = (x: BigNumberish, ...others: BigNumberish[]): bigint => { + x = toBigInt(x); if (others.length === 0) return x; - const y = BigNumber.from(others[0]); + const y = toBigInt(others[0]); - return max(x.gt(y) ? x : y, ...others.slice(1)); + return max(x > y ? x : y, ...others.slice(1)); }; export const sum = (initialValue: BigNumberish, others: BigNumberish[]) => { - return others.reduce((acc, val) => acc.add(val), BigNumber.from(initialValue)); + return others.reduce((acc, val) => acc + toBigInt(val), toBigInt(initialValue)); }; export const mulDivHalfUp = (x: BigNumberish, y: BigNumberish, scale: BigNumberish) => { - x = BigNumber.from(x); - y = BigNumber.from(y); - scale = BigNumber.from(scale); - if (x.eq(0) || y.eq(0)) return BigNumber.from(0); + x = toBigInt(x); + y = toBigInt(y); + scale = toBigInt(scale); + if (x === 0n || y === 0n) return toBigInt(0); - return x.mul(y).add(scale.div(2)).div(scale); + return (x * y + scale / 2n) / scale; }; export const mulDivDown = (x: BigNumberish, y: BigNumberish, scale: BigNumberish) => { - x = BigNumber.from(x); - y = BigNumber.from(y); - scale = BigNumber.from(scale); - if (x.eq(0) || y.eq(0)) return BigNumber.from(0); + x = toBigInt(x); + y = toBigInt(y); + scale = toBigInt(scale); + if (x === 0n || y === 0n) return toBigInt(0); - return x.mul(y).div(scale); + return (x * y) / scale; }; export const mulDivUp = (x: BigNumberish, y: BigNumberish, scale: BigNumberish) => { - x = BigNumber.from(x); - y = BigNumber.from(y); - scale = BigNumber.from(scale); - if (x.eq(0) || y.eq(0)) return BigNumber.from(0); + x = toBigInt(x); + y = toBigInt(y); + scale = toBigInt(scale); + if (x === 0n || y === 0n) return toBigInt(0); - return x.mul(y).add(scale.sub(1)).div(scale); + return (x * y + scale - 1n) / scale; }; export const avgHalfUp = ( @@ -62,23 +73,26 @@ export const avgHalfUp = ( pct: BigNumberish, scale: BigNumberish ) => { - scale = BigNumber.from(scale); + x = toBigInt(x); + y = toBigInt(y); + pct = toBigInt(pct); + scale = toBigInt(scale); - return max(0, scale.sub(pct)).mul(x).add(min(scale, pct).mul(y)).add(scale.div(2)).div(scale); + return (max(0, scale - pct) * x + min(scale, pct) * y + scale / 2n) / scale; }; -export const parsePercent = (value: string) => utils.parseUnits(value, 2); -export const parseWad = (value: string) => utils.parseUnits(value, 18); -export const parseRay = (value: string) => utils.parseUnits(value, 27); +export const parsePercent = (value: string) => parseUnits(value, 2); +export const parseWad = (value: string) => parseUnits(value, 18); +export const parseRay = (value: string) => parseUnits(value, 27); -export const powHalfUp = (x: BigNumberish, exponent: BigNumberish, scale: BigNumber): BigNumber => { - exponent = BigNumber.from(exponent); +export const powHalfUp = (x: BigNumberish, exponent: BigNumberish, scale: bigint): bigint => { + exponent = toBigInt(exponent); - if (exponent.eq(0)) return BigNumber.from(scale); - if (exponent.eq(1)) return BigNumber.from(x); + if (exponent === 0n) return toBigInt(scale); + if (exponent === 1n) return toBigInt(x); const xSquared = mulDivHalfUp(x, x, scale); - if (exponent.mod(2).eq(0)) return powHalfUp(xSquared, exponent.div(2), scale); + if (exponent % 2n === 0n) return powHalfUp(xSquared, exponent / 2n, scale); - return mulDivHalfUp(x, powHalfUp(xSquared, exponent.sub(1).div(2), scale), scale); + return mulDivHalfUp(x, powHalfUp(xSquared, (exponent - 1n) / 2n, scale), scale); }; diff --git a/test/index.spec.ts b/test/index.spec.ts index b980ef6..4c0f652 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -1,167 +1,153 @@ -import { BigNumber } from "ethers"; +import { toBigInt } from "ethers"; import "../src"; const ZERO = "0"; -const WAD = BigNumber.WAD.toString(); -const RAY = BigNumber.RAY.toString(); +const WAD = BigInt.WAD.toString(); +const RAY = BigInt.RAY.toString(); -const TWO_WAD = BigNumber.WAD.mul(2).toString(); +const TWO_WAD = (BigInt.WAD * 2n).toString(); describe("ethers-maths", () => { it("should be approximately equal", async () => { - expect(BigNumber.from(0).approxEqAbs(1, 0)).toBeFalsy(); - expect(BigNumber.from(0).approxEqAbs(1, 1)).toBeTruthy(); + expect(toBigInt(0).approxEqAbs(1, 0)).toBeFalsy(); + expect(toBigInt(0).approxEqAbs(1, 1)).toBeTruthy(); + }); + it("should return the absolute value", async () => { + expect(toBigInt(1).abs()).toEqual(1n); + expect(toBigInt(-1).abs()).toEqual(1n); }); it("should return minimum", async () => { - expect(BigNumber.WAD.min(0).toString()).toEqual(ZERO); - expect(BigNumber.WAD.min(BigNumber.RAY).toString()).toEqual(WAD); - expect(BigNumber.WAD.min(BigNumber.WAD.add(1), 0, BigNumber.RAY).toString()).toEqual("0"); - expect(BigNumber.min(BigNumber.WAD.add(1), 0, BigNumber.RAY).toString()).toEqual("0"); + expect(BigInt.WAD.min(0).toString()).toEqual(ZERO); + expect(BigInt.WAD.min(BigInt.RAY).toString()).toEqual(WAD); + expect(BigInt.WAD.min(BigInt.WAD + 1n, 0, BigInt.RAY).toString()).toEqual("0"); + expect(BigInt.min(BigInt.WAD + 1n, 0, BigInt.RAY).toString()).toEqual("0"); }); it("should return maximum", async () => { - expect(BigNumber.WAD.max(0).toString()).toEqual(WAD); - expect(BigNumber.WAD.max(BigNumber.RAY).toString()).toEqual(RAY); - expect(BigNumber.WAD.max(BigNumber.WAD.add(1), 0, BigNumber.RAY).toString()).toEqual(RAY); - expect(BigNumber.max(BigNumber.WAD.add(1), 0, BigNumber.RAY).toString()).toEqual(RAY); + expect(BigInt.WAD.max(0).toString()).toEqual(WAD); + expect(BigInt.WAD.max(BigInt.RAY).toString()).toEqual(RAY); + expect(BigInt.WAD.max(BigInt.WAD + 1n, 0, BigInt.RAY).toString()).toEqual(RAY); + expect(BigInt.max(BigInt.WAD + 1n, 0, BigInt.RAY).toString()).toEqual(RAY); }); it("should average", async () => { - expect( - BigNumber.WAD.percentAvg(BigNumber.WAD.mul(3), BigNumber.PERCENT.div(2)).toString() - ).toEqual(TWO_WAD); - expect(BigNumber.WAD.wadAvg(BigNumber.WAD.mul(3), BigNumber.WAD.div(2)).toString()).toEqual( - TWO_WAD - ); - expect(BigNumber.WAD.rayAvg(BigNumber.WAD.mul(3), BigNumber.RAY.div(2)).toString()).toEqual( - TWO_WAD - ); + expect(BigInt.WAD.percentAvg(BigInt.WAD * 3n, BigInt.PERCENT / 2n).toString()).toEqual(TWO_WAD); + expect(BigInt.WAD.wadAvg(BigInt.WAD * 3n, BigInt.WAD / 2n).toString()).toEqual(TWO_WAD); + expect(BigInt.WAD.rayAvg(BigInt.WAD * 3n, BigInt.RAY / 2n).toString()).toEqual(TWO_WAD); }); it("should double on addition", async () => { - expect(BigNumber.WAD.percentAdd(BigNumber.PERCENT).toString()).toEqual(TWO_WAD); - expect(BigNumber.WAD.wadAdd(BigNumber.WAD).toString()).toEqual(TWO_WAD); - expect(BigNumber.WAD.rayAdd(BigNumber.RAY).toString()).toEqual(TWO_WAD); + expect(BigInt.WAD.percentAdd(BigInt.PERCENT).toString()).toEqual(TWO_WAD); + expect(BigInt.WAD.wadAdd(BigInt.WAD).toString()).toEqual(TWO_WAD); + expect(BigInt.WAD.rayAdd(BigInt.RAY).toString()).toEqual(TWO_WAD); }); it("should zero on subtraction", async () => { - expect(BigNumber.WAD.percentSub(BigNumber.PERCENT).toString()).toEqual(ZERO); - expect(BigNumber.WAD.wadSub(BigNumber.WAD).toString()).toEqual(ZERO); - expect(BigNumber.WAD.raySub(BigNumber.RAY).toString()).toEqual(ZERO); + expect(BigInt.WAD.percentSub(BigInt.PERCENT).toString()).toEqual(ZERO); + expect(BigInt.WAD.wadSub(BigInt.WAD).toString()).toEqual(ZERO); + expect(BigInt.WAD.raySub(BigInt.RAY).toString()).toEqual(ZERO); }); it("should preserve units on multiplication", async () => { - expect(BigNumber.WAD.percentMul(BigNumber.PERCENT).toString()).toEqual(WAD); - expect(BigNumber.WAD.compMul(BigNumber.WAD).toString()).toEqual(WAD); - expect(BigNumber.WAD.wadMul(BigNumber.WAD).toString()).toEqual(WAD); - expect(BigNumber.WAD.rayMul(BigNumber.RAY).toString()).toEqual(WAD); + expect(BigInt.WAD.percentMul(BigInt.PERCENT).toString()).toEqual(WAD); + expect(BigInt.WAD.compMul(BigInt.WAD).toString()).toEqual(WAD); + expect(BigInt.WAD.wadMul(BigInt.WAD).toString()).toEqual(WAD); + expect(BigInt.WAD.rayMul(BigInt.RAY).toString()).toEqual(WAD); }); it("should round half up on multiplication", async () => { - expect(BigNumber.PERCENT.sub(1).percentMul(BigNumber.PERCENT.sub(1)).toString()).toEqual( - BigNumber.PERCENT.sub(2).toString() + expect((BigInt.PERCENT - 1n).percentMul(BigInt.PERCENT - 1n).toString()).toEqual( + (BigInt.PERCENT - 2n).toString() ); - expect(BigNumber.WAD.sub(1).wadMul(BigNumber.WAD.sub(1)).toString()).toEqual( - BigNumber.WAD.sub(2).toString() + expect((BigInt.WAD - 1n).wadMul(BigInt.WAD - 1n).toString()).toEqual( + (BigInt.WAD - 2n).toString() ); - expect(BigNumber.RAY.sub(1).rayMul(BigNumber.RAY.sub(1)).toString()).toEqual( - BigNumber.RAY.sub(2).toString() + expect((BigInt.RAY - 1n).rayMul(BigInt.RAY - 1n).toString()).toEqual( + (BigInt.RAY - 2n).toString() ); }); it("should round up on multiplication", async () => { - expect(BigNumber.PERCENT.sub(1).percentMulUp(BigNumber.PERCENT.sub(1)).toString()).toEqual( - BigNumber.PERCENT.sub(1).toString() + expect((BigInt.PERCENT - 1n).percentMulUp(BigInt.PERCENT - 1n).toString()).toEqual( + (BigInt.PERCENT - 1n).toString() ); - expect(BigNumber.WAD.sub(1).wadMulUp(BigNumber.WAD.sub(1)).toString()).toEqual( - BigNumber.WAD.sub(1).toString() + expect((BigInt.WAD - 1n).wadMulUp(BigInt.WAD - 1n).toString()).toEqual( + (BigInt.WAD - 1n).toString() ); - expect(BigNumber.RAY.sub(1).rayMulUp(BigNumber.RAY.sub(1)).toString()).toEqual( - BigNumber.RAY.sub(1).toString() + expect((BigInt.RAY - 1n).rayMulUp(BigInt.RAY - 1n).toString()).toEqual( + (BigInt.RAY - 1n).toString() ); }); it("should round down on multiplication", async () => { - expect(BigNumber.PERCENT.sub(1).percentMulDown(1).toString()).toEqual("0"); - expect(BigNumber.WAD.sub(1).wadMulDown(1).toString()).toEqual("0"); - expect(BigNumber.RAY.sub(1).rayMulDown(1).toString()).toEqual("0"); + expect((BigInt.PERCENT - 1n).percentMulDown(1).toString()).toEqual("0"); + expect((BigInt.WAD - 1n).wadMulDown(1).toString()).toEqual("0"); + expect((BigInt.RAY - 1n).rayMulDown(1).toString()).toEqual("0"); }); it("should round half up on division", async () => { - expect(BigNumber.PERCENT.percentDiv(BigNumber.PERCENT.sub(1)).toString()).toEqual( - BigNumber.PERCENT.add(1).toString() - ); - expect(BigNumber.WAD.wadDiv(BigNumber.WAD.sub(1)).toString()).toEqual( - BigNumber.WAD.add(1).toString() - ); - expect(BigNumber.RAY.rayDiv(BigNumber.RAY.sub(1)).toString()).toEqual( - BigNumber.RAY.add(1).toString() + expect(BigInt.PERCENT.percentDiv(BigInt.PERCENT - 1n).toString()).toEqual( + (BigInt.PERCENT + 1n).toString() ); + expect(BigInt.WAD.wadDiv(BigInt.WAD - 1n).toString()).toEqual((BigInt.WAD + 1n).toString()); + expect(BigInt.RAY.rayDiv(BigInt.RAY - 1n).toString()).toEqual((BigInt.RAY + 1n).toString()); }); it("should round up on division", async () => { - expect(BigNumber.PERCENT.percentDivUp(BigNumber.PERCENT.sub(1)).toString()).toEqual( - BigNumber.PERCENT.add(2).toString() - ); - expect(BigNumber.WAD.wadDivUp(BigNumber.WAD.sub(1)).toString()).toEqual( - BigNumber.WAD.add(2).toString() - ); - expect(BigNumber.RAY.rayDivUp(BigNumber.RAY.sub(1)).toString()).toEqual( - BigNumber.RAY.add(2).toString() + expect(BigInt.PERCENT.percentDivUp(BigInt.PERCENT - 1n).toString()).toEqual( + (BigInt.PERCENT + 2n).toString() ); + expect(BigInt.WAD.wadDivUp(BigInt.WAD - 1n).toString()).toEqual((BigInt.WAD + 2n).toString()); + expect(BigInt.RAY.rayDivUp(BigInt.RAY - 1n).toString()).toEqual((BigInt.RAY + 2n).toString()); }); it("should round down on division", async () => { - expect(BigNumber.PERCENT.percentDivDown(BigNumber.PERCENT.sub(1)).toString()).toEqual( - BigNumber.PERCENT.add(1).toString() - ); - expect(BigNumber.WAD.wadDivDown(BigNumber.WAD.sub(1)).toString()).toEqual( - BigNumber.WAD.add(1).toString() - ); - expect(BigNumber.RAY.rayDivDown(BigNumber.RAY.sub(1)).toString()).toEqual( - BigNumber.RAY.add(1).toString() + expect(BigInt.PERCENT.percentDivDown(BigInt.PERCENT - 1n).toString()).toEqual( + (BigInt.PERCENT + 1n).toString() ); + expect(BigInt.WAD.wadDivDown(BigInt.WAD - 1n).toString()).toEqual((BigInt.WAD + 1n).toString()); + expect(BigInt.RAY.rayDivDown(BigInt.RAY - 1n).toString()).toEqual((BigInt.RAY + 1n).toString()); }); it("should preserve units on division", async () => { - expect(BigNumber.WAD.percentDiv(BigNumber.PERCENT).toString()).toEqual(WAD); - expect(BigNumber.WAD.compDiv(BigNumber.WAD).toString()).toEqual(WAD); - expect(BigNumber.WAD.wadDiv(BigNumber.WAD).toString()).toEqual(WAD); - expect(BigNumber.WAD.rayDiv(BigNumber.RAY).toString()).toEqual(WAD); + expect(BigInt.WAD.percentDiv(BigInt.PERCENT).toString()).toEqual(WAD); + expect(BigInt.WAD.compDiv(BigInt.WAD).toString()).toEqual(WAD); + expect(BigInt.WAD.wadDiv(BigInt.WAD).toString()).toEqual(WAD); + expect(BigInt.WAD.rayDiv(BigInt.RAY).toString()).toEqual(WAD); }); it("should format with digits", async () => { - expect(BigNumber.RAY.format(27, 3)).toEqual("1.000"); - expect(BigNumber.RAY.formatRay(3)).toEqual("1.000"); + expect(BigInt.RAY.format(27, 3)).toEqual("1.000"); + expect(BigInt.RAY.formatRay(3)).toEqual("1.000"); - expect(BigNumber.WAD.format(18, 5)).toEqual("1.00000"); - expect(BigNumber.WAD.formatWad(5)).toEqual("1.00000"); + expect(BigInt.WAD.format(18, 5)).toEqual("1.00000"); + expect(BigInt.WAD.formatWad(5)).toEqual("1.00000"); - expect(BigNumber.PERCENT.format(4, 6)).toEqual("1.000000"); - expect(BigNumber.PERCENT.formatPercent(6)).toEqual("1.000000"); + expect(BigInt.PERCENT.format(4, 6)).toEqual("1.000000"); + expect(BigInt.PERCENT.formatPercent(6)).toEqual("1.000000"); }); it("should raise to the power of n", async () => { - expect(BigNumber.PERCENT.add(BigNumber.PERCENT).percentPow(2).formatPercent(1)).toEqual("4.0"); - expect(BigNumber.PERCENT.add(BigNumber.PERCENT).percentPow(3).formatPercent(1)).toEqual("8.0"); - expect(BigNumber.WAD.add(BigNumber.WAD).wadPow(2).formatWad(1)).toEqual("4.0"); - expect(BigNumber.WAD.add(BigNumber.WAD).wadPow(3).formatWad(1)).toEqual("8.0"); - expect(BigNumber.RAY.add(BigNumber.RAY).rayPow(2).formatRay(1)).toEqual("4.0"); - expect(BigNumber.RAY.add(BigNumber.RAY).rayPow(3).formatRay(1)).toEqual("8.0"); + expect((BigInt.PERCENT + BigInt.PERCENT).percentPow(2).formatPercent(1)).toEqual("4.0"); + expect((BigInt.PERCENT + BigInt.PERCENT).percentPow(3).formatPercent(1)).toEqual("8.0"); + expect((BigInt.WAD + BigInt.WAD).wadPow(2).formatWad(1)).toEqual("4.0"); + expect((BigInt.WAD + BigInt.WAD).wadPow(3).formatWad(1)).toEqual("8.0"); + expect((BigInt.RAY + BigInt.RAY).rayPow(2).formatRay(1)).toEqual("4.0"); + expect((BigInt.RAY + BigInt.RAY).rayPow(3).formatRay(1)).toEqual("8.0"); }); it("should scale decimals", async () => { - expect(BigNumber.PERCENT.percentToWad().toString()).toEqual(BigNumber.WAD.toString()); - expect(BigNumber.PERCENT.percentToRay().toString()).toEqual(BigNumber.RAY.toString()); - expect(BigNumber.WAD.wadToPercent().toString()).toEqual(BigNumber.PERCENT.toString()); - expect(BigNumber.WAD.wadToRay().toString()).toEqual(BigNumber.RAY.toString()); - expect(BigNumber.RAY.rayToPercent().toString()).toEqual(BigNumber.PERCENT.toString()); - expect(BigNumber.RAY.rayToWad().toString()).toEqual(BigNumber.WAD.toString()); + expect(BigInt.PERCENT.percentToWad().toString()).toEqual(BigInt.WAD.toString()); + expect(BigInt.PERCENT.percentToRay().toString()).toEqual(BigInt.RAY.toString()); + expect(BigInt.WAD.wadToPercent().toString()).toEqual(BigInt.PERCENT.toString()); + expect(BigInt.WAD.wadToRay().toString()).toEqual(BigInt.RAY.toString()); + expect(BigInt.RAY.rayToPercent().toString()).toEqual(BigInt.PERCENT.toString()); + expect(BigInt.RAY.rayToWad().toString()).toEqual(BigInt.WAD.toString()); }); it("should format with 0 digit", async () => { - expect(BigNumber.WAD.formatWad(0)).toEqual("1"); + expect(BigInt.WAD.formatWad(0)).toEqual("1"); }); }); diff --git a/tsconfig.json b/tsconfig.json index 65eb790..304e997 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "incremental": true, - "target": "es6", + "target": "esnext", "module": "commonjs", "declaration": true, "outDir": "lib", diff --git a/yarn.lock b/yarn.lock index 7a604dd..0007f68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,67 +2,51 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.1.0", "@ampproject/remapping@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" - integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== +"@adraffy/ens-normalize@1.9.2": + version "1.9.2" + resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.9.2.tgz#60111a5d9db45b2e5cbb6231b0bb8d97e8659316" + integrity sha512-0h+FrQDqe2Wn+IIGFkTCd4aAwTJ+7834Ek1COohCyV26AXhwQ7WQaz+4F/nLOeVl/3BtWHOHLPsq46V8YB46Eg== + +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== dependencies: - "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7", "@babel/code-frame@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" - integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7", "@babel/code-frame@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.5.tgz#234d98e1551960604f1246e6475891a570ad5658" + integrity sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ== dependencies: - "@babel/highlight" "^7.18.6" + "@babel/highlight" "^7.22.5" -"@babel/compat-data@^7.20.5": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.0.tgz#c241dc454e5b5917e40d37e525e2f4530c399298" - integrity sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g== - -"@babel/core@7.17.8": - version "7.17.8" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.8.tgz#3dac27c190ebc3a4381110d46c80e77efe172e1a" - integrity sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ== - dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.7" - "@babel/helper-compilation-targets" "^7.17.7" - "@babel/helper-module-transforms" "^7.17.7" - "@babel/helpers" "^7.17.8" - "@babel/parser" "^7.17.8" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.1.2" - semver "^6.3.0" +"@babel/compat-data@^7.22.9": + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" + integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.0.tgz#1341aefdcc14ccc7553fcc688dd8986a2daffc13" - integrity sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA== + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.9.tgz#bd96492c68822198f33e8a256061da3cf391f58f" + integrity sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.21.0" - "@babel/helper-compilation-targets" "^7.20.7" - "@babel/helper-module-transforms" "^7.21.0" - "@babel/helpers" "^7.21.0" - "@babel/parser" "^7.21.0" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" + "@babel/code-frame" "^7.22.5" + "@babel/generator" "^7.22.9" + "@babel/helper-compilation-targets" "^7.22.9" + "@babel/helper-module-transforms" "^7.22.9" + "@babel/helpers" "^7.22.6" + "@babel/parser" "^7.22.7" + "@babel/template" "^7.22.5" + "@babel/traverse" "^7.22.8" + "@babel/types" "^7.22.5" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.2" - semver "^6.3.0" + semver "^6.3.1" "@babel/generator@7.17.7": version "7.17.7" @@ -73,129 +57,121 @@ jsesc "^2.5.1" source-map "^0.5.0" -"@babel/generator@^7.17.3", "@babel/generator@^7.17.7", "@babel/generator@^7.21.0", "@babel/generator@^7.7.2": - version "7.21.1" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.1.tgz#951cc626057bc0af2c35cd23e9c64d384dea83dd" - integrity sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA== +"@babel/generator@^7.17.3", "@babel/generator@^7.22.7", "@babel/generator@^7.22.9", "@babel/generator@^7.7.2": + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.9.tgz#572ecfa7a31002fa1de2a9d91621fd895da8493d" + integrity sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw== dependencies: - "@babel/types" "^7.21.0" + "@babel/types" "^7.22.5" "@jridgewell/gen-mapping" "^0.3.2" "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.20.7": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz#a6cd33e93629f5eb473b021aac05df62c4cd09bb" - integrity sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ== +"@babel/helper-compilation-targets@^7.22.9": + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz#f9d0a7aaaa7cd32a3f31c9316a69f5a9bcacb892" + integrity sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw== dependencies: - "@babel/compat-data" "^7.20.5" - "@babel/helper-validator-option" "^7.18.6" - browserslist "^4.21.3" + "@babel/compat-data" "^7.22.9" + "@babel/helper-validator-option" "^7.22.5" + browserslist "^4.21.9" lru-cache "^5.1.1" - semver "^6.3.0" - -"@babel/helper-environment-visitor@^7.16.7", "@babel/helper-environment-visitor@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" - integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== - -"@babel/helper-function-name@^7.16.7", "@babel/helper-function-name@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz#d552829b10ea9f120969304023cd0645fa00b1b4" - integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== - dependencies: - "@babel/template" "^7.20.7" - "@babel/types" "^7.21.0" - -"@babel/helper-hoist-variables@^7.16.7", "@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-module-imports@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" - integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-module-transforms@^7.17.7", "@babel/helper-module-transforms@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.0.tgz#89a8f86ad748870e3d024e470b2e8405e869db67" - integrity sha512-eD/JQ21IG2i1FraJnTMbUarAUkA7G988ofehG5MDCRXaUU91rEBJuCeSoou2Sk1y4RbLYXzqEg1QLwEmRU4qcQ== - 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.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629" - integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ== - -"@babel/helper-simple-access@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" - integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== - dependencies: - "@babel/types" "^7.20.2" - -"@babel/helper-split-export-declaration@^7.16.7", "@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-string-parser@^7.19.4": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" - integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== - -"@babel/helper-validator-identifier@^7.16.7", "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/helper-validator-option@^7.18.6": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" - integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== - -"@babel/helpers@^7.17.8", "@babel/helpers@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.0.tgz#9dd184fb5599862037917cdc9eecb84577dc4e7e" - integrity sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA== - dependencies: - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" + semver "^6.3.1" + +"@babel/helper-environment-visitor@^7.16.7", "@babel/helper-environment-visitor@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz#f06dd41b7c1f44e1f8da6c4055b41ab3a09a7e98" + integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q== + +"@babel/helper-function-name@^7.16.7", "@babel/helper-function-name@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz#ede300828905bb15e582c037162f99d5183af1be" + integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ== + dependencies: + "@babel/template" "^7.22.5" + "@babel/types" "^7.22.5" + +"@babel/helper-hoist-variables@^7.16.7", "@babel/helper-hoist-variables@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" + integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-module-imports@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz#1a8f4c9f4027d23f520bd76b364d44434a72660c" + integrity sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-module-transforms@^7.22.9": + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz#92dfcb1fbbb2bc62529024f72d942a8c97142129" + integrity sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-module-imports" "^7.22.5" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.5" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" + integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== + +"@babel/helper-simple-access@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de" + integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-split-export-declaration@^7.16.7", "@babel/helper-split-export-declaration@^7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-string-parser@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" + integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== + +"@babel/helper-validator-identifier@^7.16.7", "@babel/helper-validator-identifier@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193" + integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ== + +"@babel/helper-validator-option@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac" + integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== + +"@babel/helpers@^7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.6.tgz#8e61d3395a4f0c5a8060f309fb008200969b5ecd" + integrity sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA== + dependencies: + "@babel/template" "^7.22.5" + "@babel/traverse" "^7.22.6" + "@babel/types" "^7.22.5" + +"@babel/highlight@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.5.tgz#aa6c05c5407a67ebce408162b7ede789b4d22031" + integrity sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw== + dependencies: + "@babel/helper-validator-identifier" "^7.22.5" chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.9.tgz#f2dde0c682ccc264a9a8595efd030a5cc8fd2539" - integrity sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg== - -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.17.3", "@babel/parser@^7.17.8", "@babel/parser@^7.20.7", "@babel/parser@^7.21.0": - version "7.21.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.1.tgz#a8f81ee2fe872af23faea4b17a08fcc869de7bcc" - integrity sha512-JzhBFpkuhBNYUY7qs+wTzNmyCWUHEaAFpQQD2YfU1rPL38/L43Wvid0fFkiOCnHvsGncRZgEPyGnltABLcVDTg== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.17.3", "@babel/parser@^7.20.5", "@babel/parser@^7.20.7", "@babel/parser@^7.22.5", "@babel/parser@^7.22.7": + version "7.22.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.7.tgz#df8cf085ce92ddbdbf668a7f186ce848c9036cae" + integrity sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -233,11 +209,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" - integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz#a6b68e84fb76e759fc3b93e901876ffabbe1d918" + integrity sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" @@ -289,20 +265,20 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" - integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz#aac8d383b062c5072c647a31ef990c1d0af90272" + integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ== dependencies: - "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-plugin-utils" "^7.22.5" -"@babel/template@^7.16.7", "@babel/template@^7.20.7", "@babel/template@^7.3.3": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" - integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== +"@babel/template@^7.22.5", "@babel/template@^7.3.3": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.5.tgz#0c8c4d944509875849bd0344ff0050756eefc6ec" + integrity sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw== dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" + "@babel/code-frame" "^7.22.5" + "@babel/parser" "^7.22.5" + "@babel/types" "^7.22.5" "@babel/traverse@7.17.3": version "7.17.3" @@ -320,19 +296,19 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.17.3", "@babel/traverse@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.0.tgz#0e1807abd5db98e6a19c204b80ed1e3f5bca0edc" - integrity sha512-Xdt2P1H4LKTO8ApPfnO1KmzYMFpp7D/EinoXzLYN/cHcBNrVCAkAtGUcXnHXrl/VGktureU6fkQrHSBE2URfoA== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.21.0" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.21.0" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.21.0" - "@babel/types" "^7.21.0" +"@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8": + version "7.22.8" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.8.tgz#4d4451d31bc34efeae01eac222b514a77aa4000e" + integrity sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw== + dependencies: + "@babel/code-frame" "^7.22.5" + "@babel/generator" "^7.22.7" + "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-function-name" "^7.22.5" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.22.7" + "@babel/types" "^7.22.5" debug "^4.1.0" globals "^11.1.0" @@ -344,13 +320,13 @@ "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" -"@babel/types@^7.0.0", "@babel/types@^7.17.0", "@babel/types@^7.18.6", "@babel/types@^7.20.2", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.0.tgz#1da00d89c2f18b226c9207d96edbeb79316a1819" - integrity sha512-uR7NWq2VNFnDi7EYqiRz2Jv/VQIu38tu64Zy8TX2nQFQ6etJ9V/Rr2msW8BS132mum2rL645qpDrLtAJtVpuow== +"@babel/types@^7.0.0", "@babel/types@^7.17.0", "@babel/types@^7.20.7", "@babel/types@^7.22.5", "@babel/types@^7.3.3": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.5.tgz#cd93eeaab025880a3a47ec881f4b096a5b786fbe" + integrity sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA== dependencies: - "@babel/helper-string-parser" "^7.19.4" - "@babel/helper-validator-identifier" "^7.19.1" + "@babel/helper-string-parser" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.5" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -372,9 +348,9 @@ integrity sha512-LIgYXuCSO5Gvtc0t9bebAMSwd68ewzmqLypqI2Kke1rqOqqDbMpYcYfoPfFlv9eyLIh4jocHWwCK5FS7z9icUA== "@commitlint/load@>6.1.1": - version "17.4.4" - resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.4.4.tgz#13fcb553572f265339801cde6dd10ee5eea07f5e" - integrity sha512-z6uFIQ7wfKX5FGBe1AkOF4l/ShOQsaa1ml/nLMkbW7R/xF8galGS7Zh0yHvzVp/srtfS0brC+0bUfQfmpMPFVQ== + version "17.5.0" + resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.5.0.tgz#be45dbbb50aaf5eb7e8e940e1e0d6171d1426bab" + integrity sha512-l+4W8Sx4CD5rYFsrhHH8HP01/8jEP7kKf33Xlx2Uk2out/UKoKPYMOIRcDH5ppT8UXLMV+x6Wm5osdRKKgaD1Q== dependencies: "@commitlint/config-validator" "^17.4.4" "@commitlint/execute-rule" "^17.4.0" @@ -389,7 +365,7 @@ lodash.uniq "^4.5.0" resolve-from "^5.0.0" ts-node "^10.8.1" - typescript "^4.6.4" + typescript "^4.6.4 || ^5.0.0" "@commitlint/resolve-extends@^17.4.4": version "17.4.4" @@ -417,348 +393,6 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" - integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== - dependencies: - "@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@5.7.0", "@ethersproject/abstract-provider@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" - integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== - dependencies: - "@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@5.7.0", "@ethersproject/abstract-signer@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" - integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== - dependencies: - "@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@5.7.0", "@ethersproject/address@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" - integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== - dependencies: - "@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@5.7.0", "@ethersproject/base64@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" - integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - -"@ethersproject/basex@5.7.0", "@ethersproject/basex@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.7.0.tgz#97034dc7e8938a8ca943ab20f8a5e492ece4020b" - integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - -"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" - integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - bn.js "^5.2.1" - -"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" - integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" - integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - -"@ethersproject/contracts@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e" - integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg== - dependencies: - "@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@5.7.0", "@ethersproject/hash@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" - integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== - dependencies: - "@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@5.7.0", "@ethersproject/hdnode@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.7.0.tgz#e627ddc6b466bc77aebf1a6b9e47405ca5aef9cf" - integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg== - dependencies: - "@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@5.7.0", "@ethersproject/json-wallets@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz#5e3355287b548c32b368d91014919ebebddd5360" - integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g== - dependencies: - "@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@5.7.0", "@ethersproject/keccak256@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" - integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - js-sha3 "0.8.0" - -"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" - integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== - -"@ethersproject/networks@5.7.1", "@ethersproject/networks@^5.7.0": - version "5.7.1" - resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" - integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/pbkdf2@5.7.0", "@ethersproject/pbkdf2@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz#d2267d0a1f6e123f3771007338c47cccd83d3102" - integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - -"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" - integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/providers@5.7.2": - version "5.7.2" - resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" - integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== - dependencies: - "@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@5.7.0", "@ethersproject/random@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.7.0.tgz#af19dcbc2484aae078bb03656ec05df66253280c" - integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/rlp@5.7.0", "@ethersproject/rlp@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" - integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/sha2@5.7.0", "@ethersproject/sha2@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.7.0.tgz#9a5f7a7824ef784f7f7680984e593a800480c9fb" - integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - hash.js "1.1.7" - -"@ethersproject/signing-key@5.7.0", "@ethersproject/signing-key@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" - integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== - dependencies: - "@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@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.7.0.tgz#5e9c911d8a2acce2a5ebb48a5e2e0af20b631cb8" - integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA== - dependencies: - "@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@5.7.0", "@ethersproject/strings@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" - integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/transactions@5.7.0", "@ethersproject/transactions@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" - integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== - dependencies: - "@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@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" - integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/wallet@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d" - integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA== - dependencies: - "@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@5.7.1", "@ethersproject/web@^5.7.0": - version "5.7.1" - resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" - integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== - dependencies: - "@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@5.7.0", "@ethersproject/wordlists@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.7.0.tgz#8fb2c07185d68c3e09eb3bfd6e779ba2774627f5" - integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA== - dependencies: - "@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" - "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -898,13 +532,6 @@ strip-ansi "^6.0.0" v8-to-istanbul "^9.0.1" -"@jest/schemas@^29.4.3": - version "29.4.3" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.4.3.tgz#39cf1b8469afc40b6f5a2baaa146e332c4151788" - integrity sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg== - dependencies: - "@sinclair/typebox" "^0.25.16" - "@jest/schemas@^29.6.0": version "29.6.0" resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.0.tgz#0f4cb2c8e3dca80c135507ba5635a4fd755b0040" @@ -962,18 +589,6 @@ slash "^3.0.0" write-file-atomic "^4.0.2" -"@jest/types@^29.4.3": - version "29.4.3" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.4.3.tgz#9069145f4ef09adf10cec1b2901b2d390031431f" - integrity sha512-bPYfw8V65v17m2Od1cv44FH+SiKW7w2Xu7trhcdTLUmSv85rfKsP+qXSjO4KGJr4dtPSzl/gvslZBXctf1qGEA== - dependencies: - "@jest/schemas" "^29.4.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" - "@jest/types@^29.6.1": version "29.6.1" resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.1.tgz#ae79080278acff0a6af5eb49d063385aaa897bf2" @@ -986,38 +601,40 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" -"@jridgewell/gen-mapping@^0.1.0": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" - integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== - dependencies: - "@jridgewell/set-array" "^1.0.0" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@jridgewell/gen-mapping@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" - integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== dependencies: "@jridgewell/set-array" "^1.0.1" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/resolve-uri@3.1.0", "@jridgewell/resolve-uri@^3.0.3": +"@jridgewell/resolve-uri@3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== -"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + +"@jridgewell/set-array@^1.0.1": version "1.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== -"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": +"@jridgewell/sourcemap-codec@1.4.14": version "1.4.14" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + "@jridgewell/trace-mapping@0.3.9": version "0.3.9" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" @@ -1026,15 +643,7 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" - integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@jridgewell/trace-mapping@^0.3.18": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": version "0.3.18" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== @@ -1042,42 +651,46 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" -"@sinclair/typebox@^0.25.16": - version "0.25.23" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.23.tgz#1c15b0d2b872d89cc0f47c7243eacb447df8b8bd" - integrity sha512-VEB8ygeP42CFLWyAJhN5OklpxUliqdNEUcXb4xZ/CINqtYGTjL5ukluKdKzQ0iWdUxyQ7B0539PAUhHKrCNWSQ== +"@noble/hashes@1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.2.tgz#e9e035b9b166ca0af657a7848eb2718f0f22f183" + integrity sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA== + +"@noble/secp256k1@1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== "@sinclair/typebox@^0.27.8": version "0.27.8" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== -"@sinonjs/commons@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-2.0.0.tgz#fd4ca5b063554307e8327b4564bd56d3b73924a3" - integrity sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg== +"@sinonjs/commons@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.0.tgz#beb434fe875d965265e04722ccfc21df7f755d72" + integrity sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA== dependencies: type-detect "4.0.8" "@sinonjs/fake-timers@^10.0.2": - version "10.0.2" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz#d10549ed1f423d80639c528b6c7f5a1017747d0c" - integrity sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw== + version "10.3.0" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66" + integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== dependencies: - "@sinonjs/commons" "^2.0.0" + "@sinonjs/commons" "^3.0.0" -"@trivago/prettier-plugin-sort-imports@4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.0.0.tgz#e0936d87fb8d65865c857e6a6dba644103db1b30" - integrity sha512-Tyuk5ZY4a0e2MNFLdluQO9F6d1awFQYXVVujEPFfvKPPXz8DADNHzz73NMhwCSXGSuGGZcA/rKOyZBrxVNMxaA== +"@trivago/prettier-plugin-sort-imports@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.1.1.tgz#71c3c1ae770c3738b6fc85710714844477574ffd" + integrity sha512-dQ2r2uzNr1x6pJsuh/8x0IRA3CBUB+pWEW3J/7N98axqt7SQSm+2fy0FLNXvXGg77xEDC7KHxJlHfLYyi7PDcw== dependencies: - "@babel/core" "7.17.8" "@babel/generator" "7.17.7" - "@babel/parser" "7.18.9" + "@babel/parser" "^7.20.5" "@babel/traverse" "7.17.3" "@babel/types" "7.17.0" javascript-natural-sort "0.7.1" - lodash "4.17.21" + lodash "^4.17.21" "@tsconfig/node10@^1.0.7": version "1.0.9" @@ -1095,14 +708,14 @@ integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== "@tsconfig/node16@^1.0.2": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.3.tgz#472eaab5f15c1ffdd7f8628bd4c4f753995ec79e" - integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ== + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== "@types/babel__core@^7.1.14": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.0.tgz#61bc5a4cae505ce98e1e36c5445e4bee060d8891" - integrity sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ== + version "7.20.1" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.1.tgz#916ecea274b0c776fec721e333e55762d3a9614b" + integrity sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw== dependencies: "@babel/parser" "^7.20.7" "@babel/types" "^7.20.7" @@ -1126,11 +739,11 @@ "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": - version "7.18.3" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.3.tgz#dfc508a85781e5698d5b33443416b6268c4b3e8d" - integrity sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w== + version "7.20.1" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.1.tgz#dd6f1d2411ae677dcb2db008c962598be31d6acf" + integrity sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg== dependencies: - "@babel/types" "^7.3.0" + "@babel/types" "^7.20.7" "@types/graceful-fs@^4.1.3": version "4.1.6" @@ -1158,28 +771,28 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^27.5.2": - version "27.5.2" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.5.2.tgz#ec49d29d926500ffb9fd22b84262e862049c026c" - integrity sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA== +"@types/jest@^29.5.3": + version "29.5.3" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.3.tgz#7a35dc0044ffb8b56325c6802a4781a626b05777" + integrity sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA== dependencies: - jest-matcher-utils "^27.0.0" - pretty-format "^27.0.0" + expect "^29.0.0" + pretty-format "^29.0.0" "@types/node@*": - version "18.14.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.0.tgz#94c47b9217bbac49d4a67a967fdcdeed89ebb7d0" - integrity sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A== + version "20.4.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.2.tgz#129cc9ae69f93824f92fac653eebfb4812ab4af9" + integrity sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw== -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== +"@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/prettier@^2.1.5": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0" - integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== + version "2.7.3" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f" + integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== "@types/stack-utils@^2.0.0": version "2.0.1" @@ -1192,9 +805,9 @@ integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== "@types/yargs@^17.0.8": - version "17.0.22" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.22.tgz#7dd37697691b5f17d020f3c63e7a45971ff71e9a" - integrity sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g== + version "17.0.24" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.24.tgz#b3ef8d50ad4aa6aecf6ddc97c580a00f5aa11902" + integrity sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw== dependencies: "@types/yargs-parser" "*" @@ -1204,14 +817,14 @@ acorn-walk@^8.1.1: integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== acorn@^8.4.1: - version "8.8.2" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== + version "8.10.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" + integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== -aes-js@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" - integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw== +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== aggregate-error@^3.0.0: version "3.1.0" @@ -1231,11 +844,6 @@ ajv@^8.11.0: require-from-string "^2.0.2" uri-js "^4.2.2" -ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - ansi-escapes@^4.2.1, ansi-escapes@^4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -1248,6 +856,11 @@ ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -1267,6 +880,11 @@ ansi-styles@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== +ansi-styles@^6.0.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + anymatch@^3.0.3: version "3.1.3" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" @@ -1377,11 +995,6 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -bech32@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" - integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== - bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -1391,16 +1004,6 @@ bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" -bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" - integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== - -bn.js@^5.2.1: - 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" @@ -1416,20 +1019,15 @@ braces@^3.0.2: dependencies: fill-range "^7.0.1" -brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== - -browserslist@^4.21.3: - version "4.21.5" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" - integrity sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w== +browserslist@^4.21.9: + version "4.21.9" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.9.tgz#e11bdd3c313d7e2a9e87e8b4b0c7872b13897635" + integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg== dependencies: - caniuse-lite "^1.0.30001449" - electron-to-chromium "^1.4.284" - node-releases "^2.0.8" - update-browserslist-db "^1.0.10" + caniuse-lite "^1.0.30001503" + electron-to-chromium "^1.4.431" + node-releases "^2.0.12" + update-browserslist-db "^1.0.11" bs-logger@0.x: version "0.2.6" @@ -1478,10 +1076,15 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001449: - version "1.0.30001457" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz#6af34bb5d720074e2099432aa522c21555a18301" - integrity sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA== +caniuse-lite@^1.0.30001503: + version "1.0.30001516" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001516.tgz#621b1be7d85a8843ee7d210fd9d87b52e3daab3a" + integrity sha512-Wmec9pCBY8CWbmI4HsjBeQLqDTqV91nFVR83DnZpYyRnPI1wePDsTg0bGLPC5VU/3OIZV1fmxEea1b+tFKe86g== + +chalk@5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.2.0.tgz#249623b7d66869c673699fb66d65723e54dfcfb3" + integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== chalk@^2.0.0, chalk@^2.4.1: version "2.4.2" @@ -1516,9 +1119,9 @@ ci-info@^3.2.0: integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== cjs-module-lexer@^1.0.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" - integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== + version "1.2.3" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107" + integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== clean-stack@^2.0.0: version "2.2.0" @@ -1533,9 +1136,9 @@ cli-cursor@^3.1.0: restore-cursor "^3.1.0" cli-spinners@^2.5.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" - integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + version "2.9.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.0.tgz#5881d0ad96381e117bbe07ad91f2008fe6ffd8db" + integrity sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g== cli-truncate@^2.1.0: version "2.1.0" @@ -1545,6 +1148,14 @@ cli-truncate@^2.1.0: slice-ansi "^3.0.0" string-width "^4.2.0" +cli-truncate@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-3.1.0.tgz#3f23ab12535e3d73e839bb43e73c9de487db1389" + integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== + dependencies: + slice-ansi "^5.0.0" + string-width "^5.0.0" + cli-width@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" @@ -1570,9 +1181,9 @@ co@^4.6.0: integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + version "1.0.2" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" + integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== color-convert@^1.9.0: version "1.9.3" @@ -1598,15 +1209,15 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -colorette@^2.0.16: - version "2.0.19" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" - integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== +colorette@^2.0.19: + version "2.0.20" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== -commander@^6.2.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" - integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== +commander@^10.0.0: + version "10.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== commitizen@^4.0.3, commitizen@^4.3.0: version "4.3.0" @@ -1670,21 +1281,10 @@ cosmiconfig-typescript-loader@^4.0.0: resolved "https://registry.yarnpkg.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.3.0.tgz#c4259ce474c9df0f32274ed162c0447c951ef073" integrity sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q== -cosmiconfig@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== - dependencies: - "@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@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.0.0.tgz#e9feae014eab580f858f8a0288f38997a7bebe97" - integrity sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ== + version "8.2.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd" + integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ== dependencies: import-fresh "^3.2.1" js-yaml "^4.1.0" @@ -1696,7 +1296,7 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@^7.0.0, cross-spawn@^7.0.3: +cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -1719,7 +1319,7 @@ cz-conventional-changelog@3.3.0, cz-conventional-changelog@^3.3.0: optionalDependencies: "@commitlint/load" ">6.1.1" -debug@^4.1.0, debug@^4.1.1, debug@^4.2.0: +debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1732,9 +1332,9 @@ dedent@0.7.0, dedent@^0.7.0: integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== deepmerge@^4.2.2: - version "4.3.0" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b" - integrity sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og== + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== defaults@^1.0.3: version "1.0.4" @@ -1758,11 +1358,6 @@ detect-newline@^3.0.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== - diff-sequences@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.4.3.tgz#9314bc1fabe09267ffeca9cbafc457d8499a13f2" @@ -1780,23 +1375,15 @@ dot-prop@^5.1.0: dependencies: is-obj "^2.0.0" -electron-to-chromium@^1.4.284: - version "1.4.305" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.305.tgz#e4dfe3e06ab783f33171f9bde9e8ed092510fcd0" - integrity sha512-WETy6tG0CT5gm1O+xCbyapWNsCcmIvrn4NHViIGYo2AT8FV2qUCXdaB+WqYxSv/vS5mFqhBYnfZAAkVArjBmUg== +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -elliptic@6.5.4: - version "6.5.4" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" - integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== - dependencies: - 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" +electron-to-chromium@^1.4.431: + version "1.4.463" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.463.tgz#8eb04355f24fef5c8097661d14e143f6d8554055" + integrity sha512-fT3hvdUWLjDbaTGzyOjng/CQhQJSQP8ThO3XZAoaxHvHo2kUXiRQVMj9M235l8uDFiNPsPa6KHT1p3RaR6ugRw== emittery@^0.13.1: version "0.13.1" @@ -1808,19 +1395,10 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -enquirer@^2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== error-ex@^1.3.1: version "1.3.2" @@ -1849,56 +1427,18 @@ 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@^5.0.0: - version "5.7.2" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" - integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== - 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" - "@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" - -execa@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" - integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== +ethers@^6.0.0: + version "6.6.4" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.6.4.tgz#f03a86effcd55e82aed96a2fb9a56a9febd3e3d5" + integrity sha512-r3myN2hEnydmu23iiIj5kjWnCh5JNzlqrE/z+Kw5UqH173F+JOWzU6qkFB4HVC50epgxzKSL2Hq1oNXA877vwQ== dependencies: - cross-spawn "^7.0.0" - get-stream "^5.0.0" - human-signals "^1.1.1" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.0" - onetime "^5.1.0" - signal-exit "^3.0.2" - strip-final-newline "^2.0.0" + "@adraffy/ens-normalize" "1.9.2" + "@noble/hashes" "1.1.2" + "@noble/secp256k1" "1.7.1" + "@types/node" "18.15.13" + aes-js "4.0.0-beta.5" + tslib "2.4.0" + ws "8.5.0" execa@^5.0.0: version "5.1.1" @@ -1915,6 +1455,21 @@ execa@^5.0.0: signal-exit "^3.0.3" strip-final-newline "^2.0.0" +execa@^7.0.0: + version "7.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-7.1.1.tgz#3eb3c83d239488e7b409d48e8813b76bb55c9c43" + integrity sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" @@ -1927,7 +1482,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^29.6.1: +expect@^29.0.0, expect@^29.6.1: version "29.6.1" resolved "https://registry.yarnpkg.com/expect/-/expect-29.6.1.tgz#64dd1c8f75e2c0b209418f2b8d36a07921adfdf1" integrity sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g== @@ -2045,24 +1600,12 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-own-enumerable-property-symbols@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" - integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== - get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-stream@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== - dependencies: - pump "^3.0.0" - -get-stream@^6.0.0: +get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== @@ -2112,9 +1655,9 @@ globals@^11.1.0: integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.9: - version "4.2.10" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== has-flag@^3.0.0: version "3.0.0" @@ -2133,23 +1676,6 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" - integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - homedir-polyfill@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" @@ -2162,16 +1688,16 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + husky@^8.0.3: version "8.0.3" resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" @@ -2259,10 +1785,10 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-core-module@^2.9.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" - integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== +is-core-module@^2.11.0: + version "2.12.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" + integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== dependencies: has "^1.0.3" @@ -2276,6 +1802,11 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== +is-fullwidth-code-point@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz#fae3167c729e7463f8461ce512b080a49268aa88" + integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + is-generator-fn@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" @@ -2298,26 +1829,21 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg== - is-obj@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" - integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== - is-stream@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -2465,16 +1991,6 @@ jest-config@^29.6.1: slash "^3.0.0" strip-json-comments "^3.1.1" -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== - dependencies: - chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - jest-diff@^29.6.1: version "29.6.1" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.6.1.tgz#13df6db0a89ee6ad93c747c75c85c70ba941e545" @@ -2515,11 +2031,6 @@ jest-environment-node@^29.6.1: jest-mock "^29.6.1" jest-util "^29.6.1" -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== - jest-get-type@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.4.3.tgz#1ab7a5207c995161100b5187159ca82dd48b3dd5" @@ -2552,16 +2063,6 @@ jest-leak-detector@^29.6.1: jest-get-type "^29.4.3" pretty-format "^29.6.1" -jest-matcher-utils@^27.0.0: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== - dependencies: - chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - jest-matcher-utils@^29.6.1: version "29.6.1" resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz#6c60075d84655d6300c5d5128f46531848160b53" @@ -2711,19 +2212,7 @@ jest-snapshot@^29.6.1: pretty-format "^29.6.1" semver "^7.5.3" -jest-util@^29.0.0: - version "29.4.3" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.4.3.tgz#851a148e23fc2b633c55f6dad2e45d7f4579f496" - integrity sha512-ToSGORAz4SSSoqxDSylWX8JzkOQR7zoBtNRsA7e+1WUX5F8jrOwaNpuh1YfJHJKDHXLHmObv5eOjejUd+/Ws+Q== - dependencies: - "@jest/types" "^29.4.3" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - -jest-util@^29.6.1: +jest-util@^29.0.0, jest-util@^29.6.1: version "29.6.1" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.6.1.tgz#c9e29a87a6edbf1e39e6dee2b4689b8a146679cb" integrity sha512-NRFCcjc+/uO3ijUVyNOQJluf8PtGCe/W6cix36+M3cTFgiYqFOOW5MgN4JOOcvbUhcKTYVd1CvHz/LWi8d16Mg== @@ -2781,11 +2270,6 @@ jest@^29.6.1: import-local "^3.0.2" jest-cli "^29.6.1" -js-sha3@0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== - js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -2821,7 +2305,7 @@ json-schema-traverse@^1.0.0: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== -json5@^2.1.2, json5@^2.2.2, json5@^2.2.3: +json5@^2.2.2, json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== @@ -2845,43 +2329,46 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +lilconfig@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" + integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== + lines-and-columns@^1.1.6: version "1.2.4" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== -lint-staged@^10.5.4: - version "10.5.4" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.5.4.tgz#cd153b5f0987d2371fc1d2847a409a2fe705b665" - integrity sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg== - dependencies: - chalk "^4.1.0" - cli-truncate "^2.1.0" - commander "^6.2.0" - cosmiconfig "^7.0.0" - debug "^4.2.0" - dedent "^0.7.0" - enquirer "^2.3.6" - execa "^4.1.0" - listr2 "^3.2.2" - log-symbols "^4.0.0" - micromatch "^4.0.2" +lint-staged@^13.2.3: + version "13.2.3" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-13.2.3.tgz#f899aad6c093473467e9c9e316e3c2d8a28f87a7" + integrity sha512-zVVEXLuQIhr1Y7R7YAWx4TZLdvuzk7DnmrsTNL0fax6Z3jrpFcas+vKbzxhhvp6TA55m1SQuWkpzI1qbfDZbAg== + dependencies: + chalk "5.2.0" + cli-truncate "^3.1.0" + commander "^10.0.0" + debug "^4.3.4" + execa "^7.0.0" + lilconfig "2.1.0" + listr2 "^5.0.7" + micromatch "^4.0.5" normalize-path "^3.0.0" - please-upgrade-node "^3.2.0" - string-argv "0.3.1" - stringify-object "^3.3.0" + object-inspect "^1.12.3" + pidtree "^0.6.0" + string-argv "^0.3.1" + yaml "^2.2.2" -listr2@^3.2.2: - version "3.14.0" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.14.0.tgz#23101cc62e1375fd5836b248276d1d2b51fdbe9e" - integrity sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g== +listr2@^5.0.7: + version "5.0.8" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-5.0.8.tgz#a9379ffeb4bd83a68931a65fb223a11510d6ba23" + integrity sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA== dependencies: cli-truncate "^2.1.0" - colorette "^2.0.16" + colorette "^2.0.19" log-update "^4.0.0" p-map "^4.0.0" rfdc "^1.3.0" - rxjs "^7.5.1" + rxjs "^7.8.0" through "^2.3.8" wrap-ansi "^7.0.0" @@ -2927,7 +2414,7 @@ lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.21: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^4.0.0, log-symbols@^4.1.0: +log-symbols@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -2993,7 +2480,7 @@ merge@^2.1.1: resolved "https://registry.yarnpkg.com/merge/-/merge-2.1.1.tgz#59ef4bf7e0b3e879186436e8481c06a6c162ca98" integrity sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w== -micromatch@^4.0.2, micromatch@^4.0.4: +micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== @@ -3006,15 +2493,10 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== - -minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== minimatch@^3.0.4, minimatch@^3.1.1: version "3.1.2" @@ -3048,24 +2530,36 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.8: - version "2.0.10" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" - integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== +node-releases@^2.0.12: + version "2.0.13" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" + integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== normalize-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -npm-run-path@^4.0.0, npm-run-path@^4.0.1: +npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== dependencies: path-key "^3.0.0" -once@^1.3.0, once@^1.3.1, once@^1.4.0: +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.1.0.tgz#bc62f7f3f6952d9894bd08944ba011a6ee7b7e00" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + +object-inspect@^1.12.3: + version "1.12.3" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" + integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== + +once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== @@ -3079,6 +2573,13 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + ora@^5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" @@ -3169,6 +2670,11 @@ path-key@^3.0.0, path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" @@ -3189,10 +2695,15 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pidtree@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" + integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== + pirates@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + version "4.0.6" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== pkg-dir@^4.2.0: version "4.2.0" @@ -3201,28 +2712,12 @@ pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" -please-upgrade-node@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" - integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== - dependencies: - semver-compare "^1.0.0" - -prettier@^2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== - -pretty-format@^27.0.0, pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== - dependencies: - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" +prettier@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== -pretty-format@^29.6.1: +pretty-format@^29.0.0, pretty-format@^29.6.1: version "29.6.1" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.1.tgz#ec838c288850b7c4f9090b867c2d4f4edbfb0f3e" integrity sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog== @@ -3239,43 +2734,30 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - punycode@^2.1.0: version "2.3.0" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== pure-rand@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.1.tgz#31207dddd15d43f299fdcdb2f572df65030c19af" - integrity sha512-t+x1zEHDjBwkDGY5v5ApnZ/utcd4XYDiJsaQQoptTXgUXX95sDg1elCdJghzicm7n2mbCBJ3uYWr6M22SO19rg== + version "6.0.2" + resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.2.tgz#a9c2ddcae9b68d736a8163036f088a2781c8b306" + integrity sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ== q@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - react-is@^18.0.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== readable-stream@^3.4.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + 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" @@ -3324,16 +2806,16 @@ resolve-global@^1.0.0: global-dirs "^0.1.1" resolve.exports@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.0.tgz#c1a0028c2d166ec2fbf7d0644584927e76e7400e" - integrity sha512-6K/gDlqgQscOlg9fSRpWstA8sYe8rbELsSTNpx+3kTrsVCzvSl0zIvRErM7fdl9ERWDsKnrLnwB+Ne89918XOg== + version "2.0.2" + resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" + integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== resolve@^1.20.0: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + version "1.22.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" + integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== dependencies: - is-core-module "^2.9.0" + is-core-module "^2.11.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -3355,10 +2837,10 @@ run-async@^2.4.0: resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== -rxjs@^7.5.1, rxjs@^7.5.5: - version "7.8.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.0.tgz#90a938862a82888ff4c7359811a595e14e1e09a4" - integrity sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg== +rxjs@^7.5.5, rxjs@^7.8.0: + 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" @@ -3372,17 +2854,7 @@ safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -scrypt-js@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" - integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== - -semver-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" - integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow== - -semver@^6.0.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -3439,6 +2911,14 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" +slice-ansi@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-5.0.0.tgz#b73063c57aa96f9cd881654b15294d95d285c42a" + integrity sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ== + dependencies: + ansi-styles "^6.0.0" + is-fullwidth-code-point "^4.0.0" + source-map-support@0.5.13: version "0.5.13" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" @@ -3469,10 +2949,10 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" -string-argv@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" - integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== +string-argv@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== string-length@^4.0.1: version "4.0.2" @@ -3491,6 +2971,15 @@ 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-width@^5.0.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.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" @@ -3498,15 +2987,6 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -stringify-object@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" - integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== - dependencies: - get-own-enumerable-property-symbols "^3.0.0" - is-obj "^1.0.1" - is-regexp "^1.0.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" @@ -3514,6 +2994,13 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1: dependencies: ansi-regex "^5.0.1" +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + strip-bom@4.0.0, strip-bom@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" @@ -3524,6 +3011,11 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + strip-json-comments@3.1.1, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" @@ -3626,10 +3118,15 @@ ts-node@^10.8.1: 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.5.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" - integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== + version "2.6.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.0.tgz#b295854684dbda164e181d259a22cd779dcd7bc3" + integrity sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA== type-detect@4.0.8: version "4.0.8" @@ -3641,20 +3138,20 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -typescript@^4.6.4, typescript@^4.9.5: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +"typescript@^4.6.4 || ^5.0.0", typescript@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" + integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== -update-browserslist-db@^1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" - integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== +update-browserslist-db@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" + integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== dependencies: escalade "^3.1.1" picocolors "^1.0.0" @@ -3749,10 +3246,10 @@ write-file-atomic@^4.0.2: imurmurhash "^0.1.4" signal-exit "^3.0.7" -ws@7.4.6: - version "7.4.6" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" - integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== +ws@8.5.0: + version "8.5.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f" + integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== y18n@^5.0.5: version "5.0.8" @@ -3769,10 +3266,10 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^1.10.0: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== +yaml@^2.2.2: + version "2.3.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" + integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== yargs-parser@^21.0.1, yargs-parser@^21.1.1: version "21.1.1" @@ -3780,9 +3277,9 @@ yargs-parser@^21.0.1, yargs-parser@^21.1.1: integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^17.3.1: - version "17.7.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.1.tgz#34a77645201d1a8fc5213ace787c220eabbd0967" - integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw== + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: cliui "^8.0.1" escalade "^3.1.1"