Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.49 KB

File metadata and controls

49 lines (30 loc) · 1.49 KB

Silverscript

Silverscript is a CashScript-inspired language and compiler that targets Kaspa script.

Status: Experimental — the project is unstable and may introduce breaking changes without notice. Use with caution and expect language syntax, APIs and output formats to change.

Note: The compiled scripts produced by this repository are valid only on Kaspa Testnet 12. Do not assume compatibility with other Kaspa networks or mainnet.

Workspace

This repository is a Rust workspace. The main crate is silverscript-lang.

Build & Test

cargo test -p silverscript-lang

Debugger

The workspace includes a source-level debugger for stepping through scripts:

cargo run -p cli-debugger -- \
  silverscript-lang/tests/examples/if_statement.sil \
  --function hello \
  --ctor-arg 3 --ctor-arg 10 \
  --arg 1 --arg 2

Layout

  • silverscript-lang/ – compiler, parser, and tests
  • debugger/session/DebugSession runtime (stepping, variable inspection)
  • debugger/cli/sil-debug CLI REPL
  • silverscript-lang/tests/examples/ – example contracts (.sil files)

Documentation

See TUTORIAL.md for a full language and usage tutorial, DECL.md for the covenant declaration spec, and the KCC20 book.

Credits

See CREDITS.md for acknowledgements and credits.

Notes