Skip to main content

Starstream Sandbox

Tabs:

  • Wasm/WAT: The output of the Starstream compiler targeting WebAssembly, for the contract picked in the tab bar. Updates live.
  • WIT: The WebAssembly interface that is generated by the compiler, for the contract picked in the tab bar. Updates live.
  • Downloads: Buttons for downloading each contract's compiler outputs.
  • Run: Deploy the compiled contracts, mint UTXOs by calling a constructor, and invoke methods on them.

The editor is a VS Code workbench over an in-memory workspace: create files in the Explorer and import them with import { … } from "./file.star";. Like starstream build, every file that starts with contract; is compiled as a contract, along with the files it imports. If no file is a contract, the file in the active editor is compiled on its own (or main.star if the active editor isn't a .star file).

Keyboard shortcuts:

  • Ctrl+S to save and format
  • Ctrl+P to open a file