@orangecheck/pledge-core / CreatePledgeInput
Interface: CreatePledgeInput
Defined in: pledge-core/src/types.ts:230
Extends
Omit<PledgeCanonicalInput,"sworn_at"|"nonce"|"remediation">
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
<a id="property-bond"></a> bond | PledgeBond | - | PledgeCanonicalInput.bond | pledge-core/src/types.ts:191 |
<a id="property-counterparty"></a> counterparty | string | null | - | PledgeCanonicalInput.counterparty | pledge-core/src/types.ts:192 |
<a id="property-dispute"></a> dispute | PledgeDispute | - | PledgeCanonicalInput.dispute | pledge-core/src/types.ts:193 |
<a id="property-expires_at"></a> expires_at | string | - | PledgeCanonicalInput.expires_at | pledge-core/src/types.ts:190 |
<a id="property-nonce"></a> nonce? | string | 32 lowercase hex chars (16 random bytes). If omitted, a fresh random nonce is generated via crypto.getRandomValues. Pass an explicit value for test-vector reproduction. | - | pledge-core/src/types.ts:238 |
<a id="property-proposition"></a> proposition | string | - | PledgeCanonicalInput.proposition | pledge-core/src/types.ts:187 |
<a id="property-remediation"></a> remediation? | "breach_recorded" | Defaults to "breach_recorded" (the only legal value in v0.1). | - | pledge-core/src/types.ts:240 |
<a id="property-resolution"></a> resolution | PledgeResolution | - | PledgeCanonicalInput.resolution | pledge-core/src/types.ts:188 |
<a id="property-resolves_at"></a> resolves_at | PledgeResolvesAt | - | PledgeCanonicalInput.resolves_at | pledge-core/src/types.ts:189 |
<a id="property-swearer"></a> swearer | string | - | PledgeCanonicalInput.swearer | pledge-core/src/types.ts:186 |
<a id="property-swearersigner"></a> swearerSigner | Bip322Signer | - | - | pledge-core/src/types.ts:241 |
<a id="property-swornat"></a> swornAt? | string | Date | Defaults to "now" (truncated to seconds, ISO 8601 UTC, Z-terminated). | - | pledge-core/src/types.ts:232 |
<a id="property-viadelegation"></a> viaDelegation? | { agent_signer: Bip322Signer; delegation_id: string; } | If present, pledge is signed by this agent under an OC Agent delegation. via_delegation (the delegation id) and agent_address (the agent's address) appear in the envelope but are NOT in the canonical message. | - | pledge-core/src/types.ts:247 |
viaDelegation.agent_signer | Bip322Signer | - | - | pledge-core/src/types.ts:247 |
viaDelegation.delegation_id | string | - | - | pledge-core/src/types.ts:247 |