live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / bondConstraints

Function: bondConstraints()

function bondConstraints(pledge: PledgeEnvelope): {
  attestation_id: string;
  min_days: number;
  min_sats: number;
};

Defined in: pledge-core/src/bond.ts:87

Convenience: pull the bond constraints out of a pledge envelope as a flat { min_sats, min_days, attestation_id } record. Equivalent to reading pledge.bond directly; exported for callers that want the explicit shape.

Parameters

ParameterType
pledgePledgeEnvelope

Returns

{
  attestation_id: string;
  min_days: number;
  min_sats: number;
}
NameTypeDefined in
attestation_idstringpledge-core/src/bond.ts:88
min_daysnumberpledge-core/src/bond.ts:90
min_satsnumberpledge-core/src/bond.ts:89