@cancore/contracts 0.2.0-rc.17 → 0.2.0-rc.19
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 +3 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/spec/protocol/messages.schema.json +4 -2
- package/spec/protocol/rest.schema.json +4 -1
package/README.md
CHANGED
|
@@ -465,6 +465,9 @@ Full documentation: <https://docs.cancore.io/sdk/contracts>
|
|
|
465
465
|
|
|
466
466
|
## Changes
|
|
467
467
|
|
|
468
|
+
- `0.2.0-rc.19` — `preapproval.create` (CAN-2931): optional `summary.provider` for a Splice (CC)
|
|
469
|
+
registry, whose party signs a `TransferPreapprovalProposal` its provider accepts and pays for;
|
|
470
|
+
such a summary states `requestedAt` and `executeBefore` null and no allowances. Additive.
|
|
468
471
|
- `0.2.0-rc.17` — Canton op `preapproval.create` (CAN-2904): `params {admin}`, `summary {party,
|
|
469
472
|
admin, instrumentAllowances, requestedAt, executeBefore}`, `result {preapprovalCid}` — the filler's
|
|
470
473
|
external party signs its own transfer preapproval with a registry, the one way it can be credited
|
package/dist/index.d.ts
CHANGED
|
@@ -1330,10 +1330,14 @@ interface CantonOpSummary {
|
|
|
1330
1330
|
admin: string;
|
|
1331
1331
|
/** Instrument ids the preapproval is limited to; empty: every instrument of the admin. */
|
|
1332
1332
|
instrumentAllowances: string[];
|
|
1333
|
-
/** Unix s. */
|
|
1334
|
-
requestedAt: DecString;
|
|
1335
|
-
/** Unix s: the preapproval expires then; renew it before. */
|
|
1336
|
-
executeBefore: DecString;
|
|
1333
|
+
/** Unix s; null for a registry whose preapproval has no validity window (DA Utilities). */
|
|
1334
|
+
requestedAt: DecString | null;
|
|
1335
|
+
/** Unix s: the preapproval expires then; renew it before. null: it never lapses. */
|
|
1336
|
+
executeBefore: DecString | null;
|
|
1337
|
+
/** DA Utilities only: the registry operator the preapproval names. */
|
|
1338
|
+
operator?: string;
|
|
1339
|
+
/** Splice (CC) only: the provider the proposal names; it accepts the proposal into the preapproval and pays for it. */
|
|
1340
|
+
provider?: string;
|
|
1337
1341
|
};
|
|
1338
1342
|
}
|
|
1339
1343
|
/** What the committed operation created, by op. */
|
|
@@ -1495,11 +1499,12 @@ interface PenaltyRecord {
|
|
|
1495
1499
|
}
|
|
1496
1500
|
type PenaltyList = Page<PenaltyRecord>;
|
|
1497
1501
|
/** A live transfer preapproval of the party with one registry (`preapproval.create`); `executeBefore` in unix s (the Daml Time cut to seconds). */
|
|
1502
|
+
/** `executeBefore` null: the registry's preapproval has no validity window (DA Utilities) and never lapses. */
|
|
1498
1503
|
interface CantonPreapproval {
|
|
1499
1504
|
admin: string;
|
|
1500
1505
|
contractId: string;
|
|
1501
1506
|
instrumentAllowances: string[];
|
|
1502
|
-
executeBefore: DecString;
|
|
1507
|
+
executeBefore: DecString | null;
|
|
1503
1508
|
}
|
|
1504
1509
|
/** `GET /v1/filler/canton/party`: the party registered for the fillerId and its `FillerRegistryEntry`. */
|
|
1505
1510
|
interface CantonParty {
|
package/dist/index.js
CHANGED
|
@@ -3302,8 +3302,10 @@ var messages_schema_default = {
|
|
|
3302
3302
|
party: { type: "string", minLength: 1, description: "the receiver: the filler's own party" },
|
|
3303
3303
|
admin: { type: "string", minLength: 1, description: "the registry's instrument admin, as asked" },
|
|
3304
3304
|
instrumentAllowances: { type: "array", maxItems: 10, items: { type: "string", minLength: 1 }, description: "instrument ids it is limited to; empty: every instrument of the admin" },
|
|
3305
|
-
requestedAt: { $ref: "#/$defs/timeS", description: "unix s: the Daml Time (microseconds) cut to whole seconds" },
|
|
3306
|
-
executeBefore: { $ref: "#/$defs/timeS", description: "unix s, cut likewise: the preapproval expires then" }
|
|
3305
|
+
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
|
+
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
|
+
provider: { type: "string", minLength: 1, description: "Splice (CC) only: the provider the TransferPreapprovalProposal names; it accepts the proposal and pays for the preapproval" }
|
|
3307
3309
|
}
|
|
3308
3310
|
}
|
|
3309
3311
|
}
|
|
@@ -3727,7 +3729,10 @@ var rest_schema_default = {
|
|
|
3727
3729
|
admin: { type: "string", minLength: 1 },
|
|
3728
3730
|
contractId: { type: "string", minLength: 1 },
|
|
3729
3731
|
instrumentAllowances: { type: "array", maxItems: 10, items: { type: "string", minLength: 1 } },
|
|
3730
|
-
executeBefore: {
|
|
3732
|
+
executeBefore: {
|
|
3733
|
+
oneOf: [{ $ref: "messages.schema.json#/$defs/timeS" }, { type: "null" }],
|
|
3734
|
+
description: "unix s: the Daml Time (microseconds) cut to whole seconds; the preapproval expires then. null: the registry's preapproval has no validity window (DA Utilities) and never lapses"
|
|
3735
|
+
}
|
|
3731
3736
|
}
|
|
3732
3737
|
}
|
|
3733
3738
|
}
|