Skip to main content

CrossContractCallOptions

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.20.0


@midnight-ntwrk/compact-runtime / CrossContractCallOptions

Type Alias: CrossContractCallOptions

type CrossContractCallOptions = {
args: readonly any[];
calleeAddress: ContractAddress;
calleeCircuitId: CircuitId;
context: CircuitContext;
declaration: InterfaceDescriptor;
interfaceName: string;
partialProofData: PartialProofData;
};

The call site's side of a cross-contract call, as emitted by compactc.

Properties​

args​

readonly args: readonly any[];

Arguments to the circuit being called.


calleeAddress​

readonly calleeAddress: ContractAddress;

On-chain address of contract being called.


calleeCircuitId​

readonly calleeCircuitId: CircuitId;

String identifier of the circuit being called.


context​

readonly context: CircuitContext;

The caller's circuit context. Mutated in place for the duration of the sub-call.


declaration​

readonly declaration: InterfaceDescriptor;

The caller's declaredInterfaces[interfaceName].


interfaceName​

readonly interfaceName: string;

The caller's local name for the contract type, used in diagnostics.


partialProofData​

readonly partialProofData: PartialProofData;

The proof data created when the caller's circuit was initialized.