@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
| Parameter | Type |
|---|---|
pledge | PledgeEnvelope |
Returns
{
attestation_id: string;
min_days: number;
min_sats: number;
}
| Name | Type | Defined in |
|---|---|---|
attestation_id | string | pledge-core/src/bond.ts:88 |
min_days | number | pledge-core/src/bond.ts:90 |
min_sats | number | pledge-core/src/bond.ts:89 |