A CLI tool and SDK that converts TypeScript smart contracts to Sui Move language with full logic preservation (not just structural mapping). v1.0.0 targets Node >=16 and ships TypeScript declarations. It provides a `sui-ts` CLI for project scaffolding (`init`), transpilation (`transpile`), building (`build`), and sample generation. Key differentiators: complete logic conversion vs. syntax-only mappers, automatic Sui-specific type mapping (e.g., `constructor()` → `create_*()`), and programmatic SDK support via `SuiMoveTranspiler` class. Active development under @gsui-team.
npm install sui-ts-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the transpiler globally, creates a new project, writes a simple TypeScript contract, transpiles it, and lists the generated Move files.
Use `sui-ts init <project>` or alias `npx sui-ts-transpiler` if needed.
Use npx: `npx sui-ts-transpiler init <project>` or install locally as devDependency.
Use `bigint` for values exceeding 2^53-1. The transpiler maps `bigint` to `u256`.
Prefer `--verbose` in scripts for forward compatibility.
Use PascalCase class names that are also valid Move identifiers (no leading underscores).
Install globally: `npm install -g sui-ts-transpiler` or locally: `npm install --save-dev sui-ts-transpiler`.
Install globally: `npm install -g sui-ts-transpiler`. If still not found, check npm global bin directory or use npx: `npx sui-ts-transpiler`.
Ensure string values are UTF-8 encoded. For complex strings, use `vector<u8>` directly in TS with `new Uint8Array([...])`.
Run `sui-ts build` which generates a proper Move.toml and directory structure, then publish from `out/`.