Files
zeekay 7cf87b230b node-unified is the node
The module already called itself github.com/luxfi/node while containing no node
in Go: cmd/luxd was twenty-one lines that printed the size of a few types, and
the Go column of the matrix measured a VM plugin. A repo that fetches the thing
it claims to be has not replaced it, so the Go sources move in — 1515 files,
the daemon and everything under it — and the build reaches outside this module
for nothing.

Rust and C++ sit beside it unchanged and are still measured against it by the
differential. That is the point of one repo: the reference implementation and
the two ports are the same checkout, so parity is a thing you can run rather
than a thing you assert.

Verified: builds, and the closure carries no lux-private — checked at build time
rather than believed. The daemon starts twelve chains on a local network
(P X C Q Z A B G K M F, plus D through its plugin) and reports healthy.
2026-09-07 16:15:25 -07:00

55 lines
2.7 KiB
Go

// Code generated by zipdoc; DO NOT EDIT.
package api
import (
"encoding/json"
"github.com/zap-proto/zip"
)
func init() {
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /balance", zip.Doc{
Description: "Balance is how much of one asset an address holds.",
Example: json.RawMessage(`{"address":"6HgC8KRBEhXYbF4riJyJFLSHt37UNuRt","assetID":"11111111111111111111111111111111LpoYY"}`),
Response: json.RawMessage(`{"balance":0}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /block", zip.Doc{
Description: "Block is one block, the one whose id is asked for.",
Example: json.RawMessage(`{"blockID":"11111111111111111111111111111111LpoYY"}`),
Response: json.RawMessage(`{"block":null}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /block/last", zip.Doc{
Description: "LastAccepted is the most recent block this chain accepted.",
Response: json.RawMessage(`{"blockID":"11111111111111111111111111111111LpoYY","block":null}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /genesis", zip.Doc{
Description: "Genesis is the state this chain started from.",
Response: json.RawMessage(`{"genesis":null}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /loan", zip.Doc{
Description: "Loan is how much this chain has exported to another and not had returned.",
Example: json.RawMessage(`{"chainID":"11111111111111111111111111111111LpoYY"}`),
Response: json.RawMessage(`{"amount":0}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /message", zip.Doc{
Description: "Message is the warp message an export transaction produced.",
Example: json.RawMessage(`{"txID":"11111111111111111111111111111111LpoYY"}`),
Response: json.RawMessage(`{"message":null,"signature":null}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /network", zip.Doc{
Description: "Network is the network this node runs on and the chain it answers for.",
Response: json.RawMessage(`{"networkID":1,"chainID":"11111111111111111111111111111111LpoYY"}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api GET /nonce", zip.Doc{
Description: "Nonce is how many transactions this chain has accepted from an address.",
Example: json.RawMessage(`{"address":"6HgC8KRBEhXYbF4riJyJFLSHt37UNuRt"}`),
Response: json.RawMessage(`{"nonce":0}`),
})
zip.Describe("github.com/luxfi/node/vms/example/xsvm/api POST /tx", zip.Doc{
Description: "Hands this chain a signed transaction and answers with its id.",
Example: json.RawMessage(`{"tx":null}`),
Response: json.RawMessage(`{"txID":"11111111111111111111111111111111LpoYY"}`),
})
}