Skip to main content

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


Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-contracts / DeployedContract

Interface: DeployedContract<PSS, PSK, C>

Interface for a contract that has been deployed to the blockchain.

Type parameters

PSS extends PrivateStateSchema

PSK extends keyof PSS

C extends Contract<StateWithZswap<PSS[PSK]>>

Properties

contractCircuitsInterface

readonly contractCircuitsInterface: ContractCircuitsInterface<PSS, PSK, C>

Interface to the contract's circuits. Each circuit defined in the contract is lifted to a function that constructs an unsubmitted call transaction.


finalizedDeployTxData

readonly finalizedDeployTxData: FinalizedDeployTxData<PSS, PSK>

Data resulting from the deployment transaction that created this contract.