Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/ledger v3.0.2 / ProofErasedOffer

Class: ProofErasedOffer

An Offer, with all proof information erased

Primarily for use in testing, or handling data known to be correct from external information

Constructors

new ProofErasedOffer()

private new ProofErasedOffer(): ProofErasedOffer

Returns

ProofErasedOffer

Properties

deltas

readonly deltas: Map<string, bigint>;

The value of this offer for each token type; note that this may be negative

This is input coin values - output coin values, for value vectors


inputs

readonly inputs: ProofErasedInput[];

The inputs this offer is composed of


outputs

readonly outputs: ProofErasedOutput[];

The outputs this offer is composed of


transient

readonly transient: ProofErasedTransient[];

The transients this offer is composed of

Methods

merge()

merge(other): ProofErasedOffer

Parameters

other: ProofErasedOffer

Returns

ProofErasedOffer


serialize()

serialize(netid): Uint8Array

Parameters

netid: NetworkId

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw, netid): ProofErasedOffer

Parameters

raw: Uint8Array

netid: NetworkId

Returns

ProofErasedOffer