@open-captable-protocol/canton 0.2.291 → 0.2.292
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/dist/functions/OpenCapTable/capTable/getCapTableState.d.ts +22 -7
- package/dist/functions/OpenCapTable/capTable/getCapTableState.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/capTable/getCapTableState.js +37 -11
- package/dist/functions/OpenCapTable/capTable/getCapTableState.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Query Canton for the
|
|
2
|
+
* Query Canton for the state of a CapTable on **this SDK’s pinned template** (`OCP_TEMPLATES.capTable`).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* This is **not** a global “does this issuer have any CapTable on any package line?” API. Ledger filters use
|
|
5
|
+
* that template id; contracts on other OpenCapTable package versions are outside this query and are neither
|
|
6
|
+
* loaded nor classified here.
|
|
7
|
+
*
|
|
8
|
+
* `classifyIssuerCapTables` / `getCapTableState` therefore answer only: “is there an active CapTable **on the
|
|
9
|
+
* current template** for this issuer?” A `none` / `null` result means the filtered query returned no matching row,
|
|
10
|
+
* not that the issuer has zero CapTable-shaped contracts in Canton overall. Whether it is safe to create a new
|
|
11
|
+
* CapTable is a separate DAML / operations concern.
|
|
12
|
+
*
|
|
13
|
+
* Any row returned for the filtered query must carry a non-empty `createdEvent.templateId` that **exactly**
|
|
14
|
+
* matches `OCP_TEMPLATES.capTable`; otherwise the SDK throws `SCHEMA_MISMATCH` (including when the participant
|
|
15
|
+
* returns an unexpected template id for the same filter).
|
|
6
16
|
*
|
|
7
17
|
* @module getCapTableState
|
|
8
18
|
*/
|
|
@@ -63,19 +73,24 @@ export interface CapTableWithArchiveContext extends CapTableState {
|
|
|
63
73
|
templateId: string;
|
|
64
74
|
systemOperatorPartyId: string;
|
|
65
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* CapTable presence **for the pinned template only** (`OCP_TEMPLATES.capTable`).
|
|
78
|
+
* `none` means the filtered ledger query found no row on that template, not “no CapTable exists on any package.”
|
|
79
|
+
*/
|
|
66
80
|
export type IssuerCapTableStatus = 'current' | 'none';
|
|
67
81
|
export interface IssuerCapTableClassification {
|
|
68
82
|
status: IssuerCapTableStatus;
|
|
69
|
-
/**
|
|
83
|
+
/** Populated when `status` is `current` (exactly one CapTable on the pinned template). */
|
|
70
84
|
current: CapTableWithArchiveContext | null;
|
|
71
85
|
}
|
|
72
86
|
/**
|
|
73
|
-
*
|
|
87
|
+
* Classifies whether the issuer has an active CapTable **on the pinned template** (see module doc).
|
|
88
|
+
* Other package lines are out of scope and do not affect `status`.
|
|
74
89
|
*/
|
|
75
90
|
export declare function classifyIssuerCapTables(client: LedgerJsonApiClient, issuerPartyId: string): Promise<IssuerCapTableClassification>;
|
|
76
91
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
92
|
+
* Reads CapTable state **on the pinned template only**, or `null` if the filtered query finds no such contract.
|
|
93
|
+
* This does not imply the issuer has no CapTable on other templates.
|
|
79
94
|
*/
|
|
80
95
|
export declare function getCapTableState(client: LedgerJsonApiClient, issuerPartyId: string): Promise<CapTableState | null>;
|
|
81
96
|
//# sourceMappingURL=getCapTableState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCapTableState.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/capTable/getCapTableState.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getCapTableState.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/capTable/getCapTableState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAuElD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBA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2
|
/**
|
|
3
|
-
* Query Canton for the
|
|
3
|
+
* Query Canton for the state of a CapTable on **this SDK’s pinned template** (`OCP_TEMPLATES.capTable`).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* This is **not** a global “does this issuer have any CapTable on any package line?” API. Ledger filters use
|
|
6
|
+
* that template id; contracts on other OpenCapTable package versions are outside this query and are neither
|
|
7
|
+
* loaded nor classified here.
|
|
8
|
+
*
|
|
9
|
+
* `classifyIssuerCapTables` / `getCapTableState` therefore answer only: “is there an active CapTable **on the
|
|
10
|
+
* current template** for this issuer?” A `none` / `null` result means the filtered query returned no matching row,
|
|
11
|
+
* not that the issuer has zero CapTable-shaped contracts in Canton overall. Whether it is safe to create a new
|
|
12
|
+
* CapTable is a separate DAML / operations concern.
|
|
13
|
+
*
|
|
14
|
+
* Any row returned for the filtered query must carry a non-empty `createdEvent.templateId` that **exactly**
|
|
15
|
+
* matches `OCP_TEMPLATES.capTable`; otherwise the SDK throws `SCHEMA_MISMATCH` (including when the participant
|
|
16
|
+
* returns an unexpected template id for the same filter).
|
|
7
17
|
*
|
|
8
18
|
* @module getCapTableState
|
|
9
19
|
*/
|
|
@@ -14,7 +24,7 @@ exports.getCapTableState = getCapTableState;
|
|
|
14
24
|
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
15
25
|
const errors_1 = require("../../../errors");
|
|
16
26
|
const typeConversions_1 = require("../../../utils/typeConversions");
|
|
17
|
-
/** CapTable template
|
|
27
|
+
/** CapTable template ID this SDK treats as current. */
|
|
18
28
|
const CURRENT_CAP_TABLE_TEMPLATE_ID = open_captable_protocol_daml_js_1.OCP_TEMPLATES.capTable;
|
|
19
29
|
/**
|
|
20
30
|
* Type guard to check if a contract entry is a JsActiveContract with complete structure.
|
|
@@ -196,8 +206,11 @@ async function buildCapTableStateFromCreatedEvent(client, createdEvent) {
|
|
|
196
206
|
// - Schema mismatch: indicates a bug, should be investigated
|
|
197
207
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
198
208
|
const isNotFoundError = errorMessage.toLowerCase().includes('not found') || errorMessage.toLowerCase().includes('archived');
|
|
209
|
+
const issuerWarnTitle = isNotFoundError
|
|
210
|
+
? 'Issuer contract not found (may be archived)'
|
|
211
|
+
: 'Failed to fetch issuer contract events';
|
|
199
212
|
// eslint-disable-next-line no-console -- Intentional warning for operational visibility
|
|
200
|
-
console.warn(`[getCapTableState] ${
|
|
213
|
+
console.warn(`[getCapTableState] ${issuerWarnTitle}`, {
|
|
201
214
|
issuerContractId,
|
|
202
215
|
errorMessage,
|
|
203
216
|
stack: error instanceof Error ? error.stack : undefined,
|
|
@@ -222,9 +235,19 @@ function requireCapTableTemplateIdString(templateId, contractId) {
|
|
|
222
235
|
}
|
|
223
236
|
return templateId;
|
|
224
237
|
}
|
|
225
|
-
|
|
238
|
+
function requireCurrentCapTableTemplateId(templateId, contractId) {
|
|
239
|
+
const currentTemplateId = requireCapTableTemplateIdString(templateId, contractId);
|
|
240
|
+
if (currentTemplateId !== CURRENT_CAP_TABLE_TEMPLATE_ID) {
|
|
241
|
+
throw new errors_1.OcpContractError('CapTable contract templateId did not match requested template scope', {
|
|
242
|
+
code: errors_1.OcpErrorCodes.SCHEMA_MISMATCH,
|
|
243
|
+
contractId,
|
|
244
|
+
templateId: currentTemplateId,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
return currentTemplateId;
|
|
248
|
+
}
|
|
249
|
+
async function capTableWithArchiveContext(client, createdEvent, templateId) {
|
|
226
250
|
const base = await buildCapTableStateFromCreatedEvent(client, createdEvent);
|
|
227
|
-
const templateId = requireCapTableTemplateIdString(createdEvent.templateId, base.capTableContractId);
|
|
228
251
|
const ctx = createdEvent.createArgument.context;
|
|
229
252
|
const systemOperatorPartyId = typeof ctx?.system_operator === 'string' ? ctx.system_operator : '';
|
|
230
253
|
if (!systemOperatorPartyId) {
|
|
@@ -236,6 +259,7 @@ async function capTableWithArchiveContext(client, createdEvent) {
|
|
|
236
259
|
}
|
|
237
260
|
return { ...base, templateId, systemOperatorPartyId };
|
|
238
261
|
}
|
|
262
|
+
/** Active CapTable contracts for the issuer on the current template only. */
|
|
239
263
|
async function loadCurrentCapTables(client, issuerPartyId) {
|
|
240
264
|
const contracts = await client.getActiveContracts({
|
|
241
265
|
parties: [issuerPartyId],
|
|
@@ -250,7 +274,8 @@ async function loadCurrentCapTables(client, issuerPartyId) {
|
|
|
250
274
|
});
|
|
251
275
|
}
|
|
252
276
|
const { createdEvent } = contract.contractEntry.JsActiveContract;
|
|
253
|
-
|
|
277
|
+
const templateId = requireCurrentCapTableTemplateId(createdEvent.templateId, createdEvent.contractId);
|
|
278
|
+
out.push(await capTableWithArchiveContext(client, createdEvent, templateId));
|
|
254
279
|
}
|
|
255
280
|
if (out.length > 1) {
|
|
256
281
|
throw new errors_1.OcpContractError('Multiple active CapTable contracts for issuer', {
|
|
@@ -261,7 +286,8 @@ async function loadCurrentCapTables(client, issuerPartyId) {
|
|
|
261
286
|
return out;
|
|
262
287
|
}
|
|
263
288
|
/**
|
|
264
|
-
*
|
|
289
|
+
* Classifies whether the issuer has an active CapTable **on the pinned template** (see module doc).
|
|
290
|
+
* Other package lines are out of scope and do not affect `status`.
|
|
265
291
|
*/
|
|
266
292
|
async function classifyIssuerCapTables(client, issuerPartyId) {
|
|
267
293
|
const currentRows = await loadCurrentCapTables(client, issuerPartyId);
|
|
@@ -271,8 +297,8 @@ async function classifyIssuerCapTables(client, issuerPartyId) {
|
|
|
271
297
|
return { status: 'current', current: currentRows[0] };
|
|
272
298
|
}
|
|
273
299
|
/**
|
|
274
|
-
*
|
|
275
|
-
*
|
|
300
|
+
* Reads CapTable state **on the pinned template only**, or `null` if the filtered query finds no such contract.
|
|
301
|
+
* This does not imply the issuer has no CapTable on other templates.
|
|
276
302
|
*/
|
|
277
303
|
async function getCapTableState(client, issuerPartyId) {
|
|
278
304
|
const c = await classifyIssuerCapTables(client, issuerPartyId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCapTableState.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/capTable/getCapTableState.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"getCapTableState.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/capTable/getCapTableState.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAgZH,0DASC;AAMD,4CAUC;AAraD,6FAAyE;AAEzE,4CAAkE;AAClE,oEAA8D;AAG9D,uDAAuD;AACvD,MAAM,6BAA6B,GAAG,8CAAa,CAAC,QAAQ,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,SAAS,sBAAsB,CAAC,IAAsC;IAYpE,oEAAoE;IACpE,MAAM,EAAE,aAAa,EAAE,GAAG,IAA8C,CAAC;IAEzE,8CAA8C;IAC9C,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,kDAAkD;IAClD,IAAI,CAAC,CAAC,kBAAkB,IAAI,aAAa,CAAC,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,0CAA0C;IAC1C,MAAM,gBAAgB,GAAI,aAAgD,CAAC,gBAAgB,CAAC;IAC5F,IAAI,CAAC,gBAAgB,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE,CAAC;QAC9D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,EAAE,YAAY,EAAE,GAAG,gBAA8C,CAAC;IACxE,IAAI,CAAC,YAAY,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,YAGtC,CAAC;IAEF,kCAAkC;IAClC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;I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AC;AAED;;;GAGG;AACI,KAAK,UAAU,uBAAuB,CAC3C,MAA2B,EAC3B,aAAqB;IAErB,MAAM,WAAW,GAAG,MAAM,oBAAoB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACtE,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3C,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;AACxD,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAA2B,EAC3B,aAAqB;IAErB,MAAM,CAAC,GAAG,MAAM,uBAAuB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC/D,IAAI,CAAC,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,qBAAqB,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC;IAC7E,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-captable-protocol/canton",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.292",
|
|
4
4
|
"description": "A TypeScript SDK for interacting with the Open CapTable Protocol (OCP) Factory contract on Canton blockchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@apidevtools/json-schema-ref-parser": "15.3.5",
|
|
56
56
|
"@eslint/eslintrc": "3.3.5",
|
|
57
|
-
"@fairmint/canton-node-sdk": "0.0.
|
|
58
|
-
"@fairmint/open-captable-protocol-daml-js": "0.2.
|
|
57
|
+
"@fairmint/canton-node-sdk": "0.0.197",
|
|
58
|
+
"@fairmint/open-captable-protocol-daml-js": "0.2.150",
|
|
59
59
|
"@types/jest": "30.0.0",
|
|
60
60
|
"@types/jsonwebtoken": "9.0.10",
|
|
61
61
|
"@types/node": "25.5.2",
|