@cancore/contracts 0.2.0-rc.18 → 0.2.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -465,6 +465,13 @@ Full documentation: <https://docs.cancore.io/sdk/contracts>
|
|
|
465
465
|
|
|
466
466
|
## Changes
|
|
467
467
|
|
|
468
|
+
- `0.2.0-rc.20` — Canton-form `ticket.issued` gains optional `validFrom` (CAN-3026): the order's
|
|
469
|
+
`DeliveryOrder.validFrom`, before which `DeliveryOrder_Fill` is refused — the EVM source repays
|
|
470
|
+
only `filledAt >= openedAt`. A gateway that predates it omits the field; the offered `validFrom`
|
|
471
|
+
is the same value. Additive.
|
|
472
|
+
- `0.2.0-rc.19` — `preapproval.create` (CAN-2931): optional `summary.provider` for a Splice (CC)
|
|
473
|
+
registry, whose party signs a `TransferPreapprovalProposal` its provider accepts and pays for;
|
|
474
|
+
such a summary states `requestedAt` and `executeBefore` null and no allowances. Additive.
|
|
468
475
|
- `0.2.0-rc.17` — Canton op `preapproval.create` (CAN-2904): `params {admin}`, `summary {party,
|
|
469
476
|
admin, instrumentAllowances, requestedAt, executeBefore}`, `result {preapprovalCid}` — the filler's
|
|
470
477
|
external party signs its own transfer preapproval with a registry, the one way it can be credited
|
package/dist/index.d.ts
CHANGED
|
@@ -1185,6 +1185,8 @@ interface TicketIssuedCanton extends S2FBase {
|
|
|
1185
1185
|
deliveryOrderCid: string;
|
|
1186
1186
|
validUntil: DecString;
|
|
1187
1187
|
repayTo: Hex;
|
|
1188
|
+
/** `DeliveryOrder.validFrom`, unix s: `DeliveryOrder_Fill` refuses before it (CAN-3026). Absent from a gateway that predates it. */
|
|
1189
|
+
validFrom?: DecString;
|
|
1188
1190
|
}
|
|
1189
1191
|
type TicketIssued = TicketIssuedEvm | TicketIssuedCanton;
|
|
1190
1192
|
/** EVM-form receipt (`form` absent or `"evm"`): `sig` = `TicketReceipt{ticketHash, ticketSigHash}` by the message key. */
|
|
@@ -1336,6 +1338,8 @@ interface CantonOpSummary {
|
|
|
1336
1338
|
executeBefore: DecString | null;
|
|
1337
1339
|
/** DA Utilities only: the registry operator the preapproval names. */
|
|
1338
1340
|
operator?: string;
|
|
1341
|
+
/** Splice (CC) only: the provider the proposal names; it accepts the proposal into the preapproval and pays for it. */
|
|
1342
|
+
provider?: string;
|
|
1339
1343
|
};
|
|
1340
1344
|
}
|
|
1341
1345
|
/** What the committed operation created, by op. */
|
package/dist/index.js
CHANGED
|
@@ -1860,6 +1860,7 @@ var asyncapi_default = {
|
|
|
1860
1860
|
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
1861
1861
|
attempt: 2,
|
|
1862
1862
|
deliveryOrderCid: "00a1b2c3d4e5f6#fixture-delivery-order",
|
|
1863
|
+
validFrom: "1790000040",
|
|
1863
1864
|
validUntil: "1790000400",
|
|
1864
1865
|
repayTo: "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc"
|
|
1865
1866
|
}
|
|
@@ -2859,7 +2860,7 @@ var messages_schema_default = {
|
|
|
2859
2860
|
},
|
|
2860
2861
|
{
|
|
2861
2862
|
if: { type: "object", properties: { form: { const: "canton" } }, required: ["form"] },
|
|
2862
|
-
then: { type: "object", required: ["deliveryOrderCid", "validUntil", "repayTo"], properties: { deliveryOrderCid: { type: "string", minLength: 1 }, validUntil: { $ref: "#/$defs/timeS" }, repayTo: { $ref: "#/$defs/repayTo", description: "the repayTo of the DeliveryOrder, = the filler's signed ticket.intent (S-22); fillerId is the envelope's" } } }
|
|
2863
|
+
then: { type: "object", required: ["deliveryOrderCid", "validUntil", "repayTo"], properties: { deliveryOrderCid: { type: "string", minLength: 1 }, validFrom: { $ref: "#/$defs/timeS", description: "DeliveryOrder.validFrom, the order's floor: DeliveryOrder_Fill refuses before it, because the EVM source repays only filledAt >= openedAt (CAN-3026); the offered validFrom" }, validUntil: { $ref: "#/$defs/timeS" }, repayTo: { $ref: "#/$defs/repayTo", description: "the repayTo of the DeliveryOrder, = the filler's signed ticket.intent (S-22); fillerId is the envelope's" } } }
|
|
2863
2864
|
}
|
|
2864
2865
|
]
|
|
2865
2866
|
},
|
|
@@ -3304,7 +3305,8 @@ var messages_schema_default = {
|
|
|
3304
3305
|
instrumentAllowances: { type: "array", maxItems: 10, items: { type: "string", minLength: 1 }, description: "instrument ids it is limited to; empty: every instrument of the admin" },
|
|
3305
3306
|
requestedAt: { oneOf: [{ $ref: "#/$defs/timeS" }, { type: "null" }], description: "unix s: the Daml Time (microseconds) cut to whole seconds; null for a registry whose preapproval has no validity window (DA Utilities)" },
|
|
3306
3307
|
executeBefore: { oneOf: [{ $ref: "#/$defs/timeS" }, { type: "null" }], description: "unix s, cut likewise: the preapproval expires then; null \u2014 it never lapses" },
|
|
3307
|
-
operator: { type: "string", minLength: 1, description: "DA Utilities only: the registry operator the preapproval names (its observer)" }
|
|
3308
|
+
operator: { type: "string", minLength: 1, description: "DA Utilities only: the registry operator the preapproval names (its observer)" },
|
|
3309
|
+
provider: { type: "string", minLength: 1, description: "Splice (CC) only: the provider the TransferPreapprovalProposal names; it accepts the proposal and pays for the preapproval" }
|
|
3308
3310
|
}
|
|
3309
3311
|
}
|
|
3310
3312
|
}
|