@midnight-ntwrk/midnight-js-contracts v0.1.15 • API
Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-contracts / InitialPrivateStateConfig
Type alias: InitialPrivateStateConfig<PSS, PSK>
InitialPrivateStateConfig<
PSS
,PSK
>:Object
Configuration describing how to initialize private state when using findDeployedContract.
Type parameters
• PSS extends PrivateStateSchema
• PSK extends keyof PSS
Type declaration
initialPrivateState?
optional
readonly
initialPrivateState:PSS
[PSK
]
The initial private state to use. If undefined findDeployedContract requires there to be
a pre-existing private state at the privateStateKey
. If defined findDeployedContract requires
there not to be a pre-existing private state.
privateStateKey
readonly
privateStateKey:PSK
The private state key corresponding to the state of interest.