Skip to main content

ExecModClientArtifact

A CLIENT half’s module and what the browser broker needs to run it: the fuel-metered wasm32-unknown-unknown module, its digest to check the bytes against, and the per-dispatch fuel budget to load into its ck_fuel global.

type ExecModClientArtifact {
modId: String!
name: String!
gridId: BigInt!
clientVersion: Int!
digest: String!
wasmBase64: String!
sizeBytes: Int!
capabilitySummaryJson: String!
capabilityHash: String!
tickIntervalMs: Int!
fuelPerDispatch: BigInt!
abiVersion: Int!
}

Fields​

ExecModClientArtifact.modId ● String! non-null scalar​

The mod.

ExecModClientArtifact.name ● String! non-null scalar​

The mod’s name: its name on the page’s grid event bus.

ExecModClientArtifact.gridId ● BigInt! non-null scalar​

The mod’s grid.

ExecModClientArtifact.clientVersion ● Int! non-null scalar​

The CLIENT half’s version.

ExecModClientArtifact.digest ● String! non-null scalar​

SHA-256 of the module, hex. The broker recomputes it and refuses bytes that differ.

ExecModClientArtifact.wasmBase64 ● String! non-null scalar​

The module, base64.

ExecModClientArtifact.sizeBytes ● Int! non-null scalar​

Its size in bytes, at most 512 KiB.

ExecModClientArtifact.capabilitySummaryJson ● String! non-null scalar​

Its capability summary as JSON.

ExecModClientArtifact.capabilityHash ● String! non-null scalar​

SHA-256 of the canonical capability summary.

ExecModClientArtifact.tickIntervalMs ● Int! non-null scalar​

How often, in milliseconds, to tick it (16-1000).

ExecModClientArtifact.fuelPerDispatch ● BigInt! non-null scalar​

Fuel for each dispatch (init, tick, invoke, event): the broker sets ck_fuel to it before every call, and the module traps when it runs out.

ExecModClientArtifact.abiVersion ● Int! non-null scalar​

The client ABI version it was built for (0).

Returned By​

execModClientArtifact query