Qubic QPI Language SupportVS Code extension providing language support for Qubic Smart Contracts written with the Qubic Public Interface (QPI). FeaturesSyntax Highlighting
Snippets
Snippets are available in both Linter (Diagnostics)The extension analyses
The linter runs on file open, save, and every keystroke. Command: New Smart ContractCommand palette: Prompts for a contract name, generates a QPI-Specific RulesNo
|
| Method | Description |
|---|---|
qpi.invocator() |
Identity of the direct caller |
qpi.originator() |
Identity of the transaction originator |
qpi.transfer(dest, amount) |
Transfer QU from contract to address |
qpi.burn(amount) |
Burn QU permanently |
qpi.K12(data) |
Qubic K12 hash function |
qpi.issueAsset(...) |
Issue a new asset |
qpi.transferShareOwnershipAndPossession(...) |
Transfer asset shares |
qpi.tick() |
Current tick number |
qpi.epoch() |
Current epoch number |
qpi.year() / month() / day() |
Current UTC date parts |
qpi.hour() / minute() / second() |
Current UTC time parts |
Screenshot
Screenshot placeholder — add an image of syntax highlighting here.
Requirements
- VS Code
^1.85.0 - No runtime dependencies
Building from Source
npm install
npm run compile
npm run package # produces .vsix
Install the .vsix via Extensions: Install from VSIX in VS Code.
Feature-Roadmap
Phase 1 - MVP (this release)
- [x] Syntax Highlighting (QPI keywords, macros, types)
- [x] Code Snippets (PUBLIC_PROCEDURE, PUBLIC_FUNCTION, contract skeleton)
- [x] Linter: Warning on
#includeand raw/division - [x] "New Qubic SC" template command
Phase 2 - Comfort
- [ ] IntelliSense for all
qpi.*functions - [ ] Hover documentation
- [ ] Error squiggles (red underline for harder violations)
Phase 3 - Power
- [ ] Dev Kit integration (deploy to testnet)
- [ ] Contract validator