Shared Go types and utilities for the Horizen Vela platform. Contains only code that is genuinely shared across multiple consumers (the vela framework, specifi application wasms and wallet CLI, etc.) — app-specific types stay in each app.
| Package | Purpose |
|---|---|
common/ |
Framework-level types shared between vela and vela-nova — ApplicationIdType, RequestIdType, RequestResultStatus, DeployDescriptor. |
subgraph/ |
GraphQL client for The Graph subgraph, with projection types (RequestCompleted, UserEvent, AppEvent, OnChainRefund, OnChainWithdrawal, ClaimExecuted) and a MockClient test double. |
subtypes/ |
Deterministic HMAC-SHA256 derivation of privacy-preserving [32]byte event subtypes from a seed. The raw bytes match the on-chain bytes32 topic. |
wasm/ |
WASM guest-side primitives (Uint256, Address, result types), memory management, and logging. See wasm/README.md for details. |
# All tests
go test ./... -v
# Single package
go test github.com/HorizenOfficial/vela-common-go/wasm/types -v
# Manage dependencies
go mod tidy