@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / ConstructorContext
Interface: ConstructorContext<T>
Passed to the constructor of a contract. Used to compute the contract's initial ledger state.
Type parameters
• 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.