genlayer 0.38.11 → 0.38.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/tests/smoke.test.ts +13 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -20078,7 +20078,7 @@ var require_cli_table3 = __commonJS({
|
|
|
20078
20078
|
import { program } from "commander";
|
|
20079
20079
|
|
|
20080
20080
|
// package.json
|
|
20081
|
-
var version = "0.38.
|
|
20081
|
+
var version = "0.38.13";
|
|
20082
20082
|
var package_default = {
|
|
20083
20083
|
name: "genlayer",
|
|
20084
20084
|
version,
|
package/package.json
CHANGED
package/tests/smoke.test.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {describe, it, expect, beforeAll} from "vitest";
|
|
2
|
+
import {execSync} from "child_process";
|
|
3
|
+
import path from "path";
|
|
2
4
|
import {createClient, parseStakingAmount, formatStakingAmount} from "genlayer-js";
|
|
3
5
|
import {testnetAsimov, testnetBradbury} from "genlayer-js/chains";
|
|
4
6
|
import type {Address, GenLayerChain} from "genlayer-js/types";
|
|
5
7
|
|
|
8
|
+
const CLI = path.resolve(__dirname, "../dist/index.js");
|
|
9
|
+
|
|
6
10
|
const TIMEOUT = 30_000;
|
|
7
11
|
|
|
8
12
|
const testnets: {name: string; chain: GenLayerChain}[] = [
|
|
@@ -120,6 +124,15 @@ describe(`Testnet ${name} - CLI Staking Smoke Tests`, () => {
|
|
|
120
124
|
}
|
|
121
125
|
}, TIMEOUT);
|
|
122
126
|
|
|
127
|
+
it("CLI: genlayer staking validators lists validators", () => {
|
|
128
|
+
const output = execSync(
|
|
129
|
+
`node ${CLI} staking validators --network ${name === "Asimov" ? "testnet-asimov" : "testnet-bradbury"}`,
|
|
130
|
+
{encoding: "utf-8", timeout: TIMEOUT},
|
|
131
|
+
);
|
|
132
|
+
expect(output).toContain("active");
|
|
133
|
+
expect(output).toMatch(/Total: \d+ validators/);
|
|
134
|
+
}, TIMEOUT);
|
|
135
|
+
|
|
123
136
|
it("parseStakingAmount and formatStakingAmount round-trip", () => {
|
|
124
137
|
const parsed = parseStakingAmount("1.5gen");
|
|
125
138
|
expect(typeof parsed).toBe("bigint");
|