ContractStateProvider
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.19.0
@midnight-ntwrk/compact-runtime / ContractStateProvider
Interface: ContractStateProvider
A user-provided interface for fetching the public state of a contract at a given block hash. Used exclusively to retrieve the state of cross-contract call targets at runtime. Assumes state returned is the post-block evaluation contract state.
The parentBlockHash value in CircuitContext is used for as the blockHash argument.
Methods
getContractState()
getContractState(blockHash, address): Promise<ContractState | undefined>;
Parameters
blockHash
string
address
string
Returns
Promise<ContractState | undefined>