Skip to content

JobExpect

What a job's offers may take from us and must give us, per token, read from the offers' segment-0 imbalances before our fee outputs. A token is keyed by its kind and raw type (jobTokenKey): the ledger derives both kinds' raw type the same way, so a shielded and an unshielded token can share one (lean/Model/LegKinds.lean). Every token the offers take must be listed in pays: a token that is not may not be taken at all, so a job can never spend a third token the solver happens to hold, nor the other kind of an agreed one.

pays: Record<string, bigint>


optional receives?: Record<string, bigint>