A CLI tool and SDK (v1.0.0) that converts TypeScript smart contracts to Sui Move language with full logic preservation, not just structural mapping. Released as an initial stable version, it offers commands for project init, transpilation, and build. Key differentiators include support for classes, type mappings (string→vector<u8>, number→u64, bigint→u256), and programmatic usage via import. Suitable for developers working with Sui blockchain who prefer TypeScript over Move.
npm install sui-ts-transpiler-advancedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Programmatic usage of sui-ts-transpiler-advanced to transpile a TypeScript class to Sui Move
Upgrade Node.js to version 16+.
Use import syntax or dynamic import() instead of require().
Use DEBUG=sui-ts-transpiler sui-ts transpile instead of -v/--verbose.
All class fields become public struct fields in Move; adjust security assumptions.
Convert your file to ES module (use 'type': 'module' in package.json) or use dynamic import() instead.
Add 'type': 'module' to your package.json or rename file to .mjs.
Use 'new SuiMoveTranspiler(options)' instead of calling it as a function.