Metakit / @doeixd/metakit/artifact
PortableTransitionBundleV1
const · packages/metakit/src/bundle.ts:109
const PortableTransitionBundleV1: Schema.TaggedStruct<"Transition", { readonly when: Schema.Int; readonly writes: Schema.$Array<Schema.Struct<{ readonly target: Schema.$Array<Schema.String>; readonly kind: Schema.Literals<readonly ["int", "bool", "text"]>; readonly nullable: Schema.Boolean; readonly way: Schema.Literals<readonly ["set", "add"]>; readonly value: Schema.Int; readonly requires: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Present", { readonly slot: Schema.$Array<Schema.String>; }>, Schema.TaggedStruct<"Variant", { readonly slot: Schema.$Array<Schema.String>; readonly allowed: Schema.$Array<Schema.String>; }>, Schema.TaggedStruct<"KeepsTag", { readonly slot: Schema.$Array<Schema.String>; }>]>>>; }>>; readonly emits: Schema.$Array<Schema.Struct<{ readonly tag: Schema.String; readonly when: Schema.optionalKey<Schema.Int>; readonly fields: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Int]>>; }>>; readonly codecVersion: Schema.Literal<1>; readonly profile: Schema.String; readonly fingerprint: Schema.String; readonly slots: Schema.$Array<Schema.Struct<{ readonly path: Schema.$Array<Schema.String>; readonly kind: Schema.Literals<readonly ["int", "bool", "text"]>; readonly nullable: Schema.Boolean; readonly literals: Schema.optionalKey<Schema.$Array<Schema.String>>; }>>; readonly nodes: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Lit", { readonly value: Schema.Codec<PortableLiteral, PortableLiteral, never, never>; }>, Schema.TaggedStruct<"Path" …;Its type
type PortableTransitionBundleV1 = typeof PortableTransitionBundleV1.TypeA transition's bundle: each expression a step evaluates is a root in
nodes. ensures is left out, as the executable hash leaves it out: no step
evaluates it, and a prover keys its work by the contract hash.