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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.13 (2026-04-01)
4
+
5
+ ## 0.38.12 (2026-04-01)
6
+
3
7
  ## 0.38.11 (2026-04-01)
4
8
 
5
9
  ### Bug Fixes
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.11";
20081
+ var version = "0.38.13";
20082
20082
  var package_default = {
20083
20083
  name: "genlayer",
20084
20084
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genlayer",
3
- "version": "0.38.11",
3
+ "version": "0.38.13",
4
4
  "description": "GenLayer Command Line Tool",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -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");