V1NextState
HardKAS SDK / tx-builder/src / V1NextState
Type Alias: V1NextState
V1NextState = {
covenantId:string;input:number;outputs: readonlynumber[];successor: {artifactSha256:string;constructorArgs: readonlyV1ArgValue[];state:Readonly<Record<string,V1ArgValue>>;stateToConstructorArg:Readonly<Record<string,number>>; }; } | {covenantId:string;input:number;outputs: readonlynumber[];states: readonlyReadonly<Record<string,V1ArgValue>>[]; }
Defined in: packages/tx-builder/src/v1-plan.ts:122
The state(s) a transition moves a covenant to, as declared in the plan (F1.4 checks each continuation is the P2SH of the contract's template with that state). Two forms:
successor(phase 1, 1:1): the successor silverc compiles from the declared state, each State field initialized directly by one constructor parameter;states(phase 2): one State per continuation, in output order (outputoutputs[k]↔ new statek), encoded into the current template by silverscript-abi's codec: any state the ABI encodes, any number of continuations (zero: termination, where the declaration allows it).inputis the covenant input the continuations belong to: the authorizing input (auth) or the group's leader (cov).