From 579f8ba16e954130a671a83c06dc8d545d58c96b Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 17 Jun 2024 12:52:07 +0530 Subject: [PATCH 1/4] Upgrade SDK version --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2667cbc..f665bc3 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "typescript": "^4.6.3" }, "dependencies": { - "@cerc-io/laconic-sdk": "^0.1.15", + "@cerc-io/laconic-sdk": "^0.1.16", "fs-extra": "^10.1.0", "js-yaml": "^3.14.1", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index 64014e6..73e1672 100644 --- a/yarn.lock +++ b/yarn.lock @@ -302,10 +302,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@cerc-io/laconic-sdk@^0.1.15": - version "0.1.15" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Flaconic-sdk/-/0.1.15/laconic-sdk-0.1.15.tgz#1011a07933c6f1525e05e1ba7dd6a4e4df9b6edb" - integrity sha512-Ifl4JUGpckZsu2RkaGyGlObpu9B9GhwFVoDCt8WM9ApdtFnGEVSbDzRuh4f2vLj9WaZkbfdSI/Xci1Fugj3lZg== +"@cerc-io/laconic-sdk@^0.1.16": + version "0.1.16" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Flaconic-sdk/-/0.1.16/laconic-sdk-0.1.16.tgz#53f12a32f156a177987f89e727eb5f16743df7db" + integrity sha512-wu6k711qHPxowgyzAmjxz8i/ZTGxW+4sHf9WQ+0hW/E9PlR3Gn8OIsN3J8tvY45wvNdKKR3bm+7w/byyYLRF9A== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1" -- 2.45.2 From 9b0d7b6fe62a49f5a74b73ee796970ea212c4428 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 17 Jun 2024 12:54:15 +0530 Subject: [PATCH 2/4] Exit test script on errors --- test/run-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 9928477..46d7492 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + # Get the key from laconicd laconicd_key=$(yes | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe) -- 2.45.2 From eb76c47001de420d1c73cb45361e9d55cbac2f55 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 17 Jun 2024 12:54:35 +0530 Subject: [PATCH 3/4] Update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f665bc3..215852a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cerc-io/laconic-registry-cli", - "version": "0.1.11", + "version": "0.1.12", "main": "index.js", "repository": "git@github.com:cerc-io/laconic-registry-cli.git", "author": "", -- 2.45.2 From ed8cb7295f7785d9e646370765e7e66a44eea1c6 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 17 Jun 2024 13:06:56 +0530 Subject: [PATCH 4/4] Check if laconicd is up before running test script --- test/run-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 46d7492..a69d25b 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -2,6 +2,9 @@ set -e +# Wait for the laconid endpoint to come up +docker compose exec laconicd sh -c "curl --retry 20 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api" + # Get the key from laconicd laconicd_key=$(yes | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe) @@ -29,8 +32,5 @@ EOL ) echo "$config" > "$config_file" -# Wait for the laconid endpoint to come up -docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api" - # Run tests TEST_ACCOUNT=$laconicd_account_address yarn test -- 2.45.2