Skip to main content

Effects

For the complete documentation index, see llms.txt

@midnight-ntwrk/ledger v3.0.2 • Readme | API


@midnight-ntwrk/ledger v3.0.2 / Effects

Type alias: Effects

type Effects: {
claimedContractCalls: [bigint, ContractAddress, string, Fr][];
claimedNullifiers: Nullifier[];
claimedReceives: CoinCommitment[];
claimedSpends: CoinCommitment[];
mints: Map<string, bigint>;
};

The contract-external effects of a transcript.

Type declaration​

claimedContractCalls​

claimedContractCalls: [bigint, ContractAddress, string, Fr][];

The contracts called from this contract. The values are, in order:

  • The sequence number of this call
  • The contract being called
  • The entry point being called
  • The communications commitment

claimedNullifiers​

claimedNullifiers: Nullifier[];

The nullifiers (spends) this contract call requires

claimedReceives​

claimedReceives: CoinCommitment[];

The coin commitments (outputs) this contract call requires, as coins received

claimedSpends​

claimedSpends: CoinCommitment[];

The coin commitments (outputs) this contract call requires, as coins sent

mints​

mints: Map<string, bigint>;

The tokens minted in this call, as a map from hex-encoded 256-bit domain separators to non-negative 64-bit integers.