Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20, 22]
node-version: [20, 22, 24, 26]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This file provides guidance for AI agents and automated tools working on this co

- **Package name:** `znn-typescript-sdk`
- **License:** MIT
- **Node.js requirement:** 18+
- **Node.js requirement:** 20+
- **Module system:** ESM-first (`"type": "module"`)

---
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"build:cli": "webpack --config webpack.cli.config.cjs",
"build:wasm": "./scripts/build-wasm.sh",
"build": "npm run clean && npm run lint && npm run build:esm && npm run build:cli",
"clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./.nyc_output', './coverage', './dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",
"clean": "node -e \"const { rmSync } = require('fs'); ['.nyc_output', 'coverage', 'dist'].forEach(p => rmSync(p, { recursive: true, force: true }))\"",
"clean:all": "npm run clean && (rm -r ./node_modules || true)",
"cli:dev": "npm run build:cli && node dist/cli/cli.cjs",
"cover": "c8 npm run test",
Expand Down
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
// Main SDK exports
export {
Zenon,
DEFAULT_CHAIN_ID, DEFAULT_NET_ID, DEFAULT_POW_BASE_PATH
DEFAULT_CHAIN_ID, DEFAULT_NET_ID, DEFAULT_POW_BASE_PATH,
RPC_MAX_PAGE_SIZE, MEMORY_POOL_PAGE_SIZE
} from "./zenon.js";
export type { PowProvider } from "./zenon.js";

//
// PoW exports
export { PowWorker, isPowWorkerSupported } from "./pow/index.js";
export { PowWorker, isPowWorkerSupported, generate } from "./pow/index.js";
export type { PowWorkerOptions } from "./pow/index.js";

//
// Client exports
export type { WsClientOptions } from "./client/index.js";
export { WsClient, ZnnClientException } from "./client/index.js";
export { Client } from "./client/interfaces.js";

//
// Crypto exports
Expand All @@ -22,6 +25,8 @@ export { Crypto } from "./crypto/index.js";
//
// ABI exports
//export * from "./abi/index.js";
export { FunctionFragment } from "./abi/fragments.js";
export type { ParamType } from "./abi/fragments.js";

//
// API exports
Expand Down Expand Up @@ -114,9 +119,11 @@ export {
KeyStore,
KeyFile
} from "./wallet/index.js";
export type { KeyFileEncryptedData } from "./wallet/index.js";

// Utilities
export {
extractNumberDecimals,
addNumberDecimals,
} from "./utilities/amounts.js"
export { Logger, LogLevel } from "./utilities/logger.js";
Loading