@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / ConstructorResult
Interface: ConstructorResult<T>
The result of executing a contract constructor.
Type parameters
• T
Properties
currentContractState
currentContractState: ContractState;
The contract's initial ledger (public state).
currentPrivateState
currentPrivateState: T;
The contract's initial private state. Potentially different from the private state passed in ConstructorContext.
currentZswapLocalState
currentZswapLocalState: EncodedZswapLocalState;
The contract's initial Zswap local state. Potentially includes outputs created in the contract's constructor.