Skip to main content

ConstructorContext

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / ConstructorContext

Interface: ConstructorContext<PS>

Passed to the constructor of a contract. Used to compute the contract's initial ledger state.

Type Parameters

PS

PS = any

Properties

initialPrivateState

initialPrivateState: PS;

The private state we would like to use to execute the contract's constructor.


initialZswapLocalState

initialZswapLocalState: EncodedZswapLocalState;

An initial (usually empty) Zswap local state to use to execute the contract's constructor.