@cancore/contracts 0.2.0-rc.19 → 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,10 @@ 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.
468
472
  - `0.2.0-rc.19` — `preapproval.create` (CAN-2931): optional `summary.provider` for a Splice (CC)
469
473
  registry, whose party signs a `TransferPreapprovalProposal` its provider accepts and pays for;
470
474
  such a summary states `requestedAt` and `executeBefore` null and no allowances. Additive.
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. */
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
  },