From 8a13250655781e7e546ee45e96ad3428ff538886 Mon Sep 17 00:00:00 2001 From: elshenak Date: Fri, 22 Sep 2023 12:49:54 -0400 Subject: [PATCH 1/3] ci: check nibid in nibijs tests workflow --- .github/workflows/test-nibijs.yaml | 2 ++ scripts/localnet.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-nibijs.yaml b/.github/workflows/test-nibijs.yaml index 486f13cb..b0fd280f 100644 --- a/.github/workflows/test-nibijs.yaml +++ b/.github/workflows/test-nibijs.yaml @@ -25,6 +25,8 @@ jobs: - name: Install nibid run: curl -s https://get.nibiru.fi/@v0.21.9! | bash # Use https://get.nibiru.fi/ to get the most recent release. + - name: Check nibid version + run: nibid version - name: Run localnet.sh in the background run: | sh scripts/localnet.sh & diff --git a/scripts/localnet.sh b/scripts/localnet.sh index db0b3a64..c0257d3b 100644 --- a/scripts/localnet.sh +++ b/scripts/localnet.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e # Console log text colour @@ -194,7 +194,7 @@ add_genesis_perp_markets_with_coingecko_prices() { else echo_error "Command \"$*\" failed." exit 1 - fi + fi } nibid genesis add-genesis-perp-market --pair=ubtc:unusd --sqrt-depth=$reserve_amt --price-multiplier=$price_btc From 78515f5862444f7af14004e9926c2801d6f27494 Mon Sep 17 00:00:00 2001 From: elshenak Date: Fri, 22 Sep 2023 12:55:05 -0400 Subject: [PATCH 2/3] test: forcing a change --- packages/indexer-nibi/src/heart-monitor.test.ts | 2 ++ packages/nibijs/docs/classes/StableSwap.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/indexer-nibi/src/heart-monitor.test.ts b/packages/indexer-nibi/src/heart-monitor.test.ts index bca0125e..f589a427 100644 --- a/packages/indexer-nibi/src/heart-monitor.test.ts +++ b/packages/indexer-nibi/src/heart-monitor.test.ts @@ -14,6 +14,8 @@ const heartMonitor = new HeartMonitor({ endptTm: "https://hm-graphql.itn-2.nibiru.fi", }) +// forcing a change + describe("Heart Monitor constructor", () => { interface TestCase { name: string diff --git a/packages/nibijs/docs/classes/StableSwap.md b/packages/nibijs/docs/classes/StableSwap.md index be6e02b1..25548134 100644 --- a/packages/nibijs/docs/classes/StableSwap.md +++ b/packages/nibijs/docs/classes/StableSwap.md @@ -178,7 +178,7 @@ y() Calculate x[j] if one makes x[i] = x Done by solving quadratic equation iteratively. -x*1**2 + x1 * (sum' - (A*n**n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A) +x*1\*\*2 + x1 * (sum' - (A*n\*\*n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A) x_1\*\*2 + b\*x_1 = c x_1 = (x_1\**2 + c) / (2*x_1 + b) From 8a8b88abb047f828f36baf578eda5941c5b3a69f Mon Sep 17 00:00:00 2001 From: elshenak Date: Fri, 22 Sep 2023 12:55:26 -0400 Subject: [PATCH 3/3] test: removing forced change --- packages/indexer-nibi/src/heart-monitor.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/indexer-nibi/src/heart-monitor.test.ts b/packages/indexer-nibi/src/heart-monitor.test.ts index f589a427..bca0125e 100644 --- a/packages/indexer-nibi/src/heart-monitor.test.ts +++ b/packages/indexer-nibi/src/heart-monitor.test.ts @@ -14,8 +14,6 @@ const heartMonitor = new HeartMonitor({ endptTm: "https://hm-graphql.itn-2.nibiru.fi", }) -// forcing a change - describe("Heart Monitor constructor", () => { interface TestCase { name: string