Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / ContractStates

Type alias: ContractStates<PS>

ContractStates<PS>: Object

General object holding states for particular contract.

Type parameters

PS

Type declaration

contractState

readonly contractState: ContractState

The (public) ledger state of a contract.

privateState

readonly privateState: PS

The private state of a contract.

zswapChainState

readonly zswapChainState: ZswapChainState

The (public) Zswap chain state of a contract.