Skip to main content

SilverSuccessorRequest

@hardkas/core


@hardkas/core / SilverSuccessorRequest

Interface: SilverSuccessorRequest

Defined in: packages/core/src/silverscript-covenant.ts:114

Properties​

constructorArgs​

readonly constructorArgs: readonly SilArtifactValue[]

Defined in: packages/core/src/silverscript-covenant.ts:117

The constructor arguments the current (on-chain) state was compiled with.


contractName?​

readonly optional contractName?: string

Defined in: packages/core/src/silverscript-covenant.ts:118


home?​

readonly optional home?: string

Defined in: packages/core/src/silverscript-covenant.ts:126


nextState​

readonly nextState: Readonly<Record<string, SilArtifactValue>>

Defined in: packages/core/src/silverscript-covenant.ts:125

The successor state, one value per State field.


source​

readonly source: string | Uint8Array<ArrayBufferLike>

Defined in: packages/core/src/silverscript-covenant.ts:115


stateToConstructorArg​

readonly stateToConstructorArg: Readonly<Record<string, number>>

Defined in: packages/core/src/silverscript-covenant.ts:123

For every State field, the index of the constructor parameter that initializes it directly (int value = init_value; ⇒ { value: 0 }).