Skip to content

kaspanet/silverscript

Repository files navigation

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, and DECL.md for the covenant declaration spec.

Credits

See CREDITS.md for acknowledgements and credits.

Notes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages