Skip to main content

ConstructorContext

@midnight-ntwrk/compact-runtime v0.9.0


@midnight-ntwrk/compact-runtime / ConstructorContext

Interface: ConstructorContext<T>

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

Type Parameters​

T​

T

Properties​

initialPrivateState​

initialPrivateState: T;

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.