@open-captable-protocol/canton 0.0.32 → 0.0.34
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/OcpClient.d.ts +6 -1
- package/dist/OcpClient.d.ts.map +1 -1
- package/dist/OcpClient.js +5 -0
- package/dist/OcpClient.js.map +1 -1
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +1 -0
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/issuer/createIssuer.d.ts +6 -2
- package/dist/functions/issuer/createIssuer.d.ts.map +1 -1
- package/dist/functions/issuer/createIssuer.js +6 -1
- package/dist/functions/issuer/createIssuer.js.map +1 -1
- package/dist/functions/issuer/getIssuerAsOcf.d.ts +24 -0
- package/dist/functions/issuer/getIssuerAsOcf.d.ts.map +1 -1
- package/dist/functions/issuer/getIssuerAsOcf.js.map +1 -1
- package/dist/functions/issuer/updateIssuerData.d.ts +2 -2
- package/dist/functions/issuer/updateIssuerData.d.ts.map +1 -1
- package/dist/functions/issuer/updateIssuerData.js +2 -1
- package/dist/functions/issuer/updateIssuerData.js.map +1 -1
- package/dist/functions/stockClass/createStockClass.d.ts +40 -0
- package/dist/functions/stockClass/createStockClass.d.ts.map +1 -0
- package/dist/functions/stockClass/createStockClass.js +60 -0
- package/dist/functions/stockClass/createStockClass.js.map +1 -0
- package/dist/functions/stockClass/getStockClassAsOcf.d.ts +103 -0
- package/dist/functions/stockClass/getStockClassAsOcf.d.ts.map +1 -0
- package/dist/functions/stockClass/getStockClassAsOcf.js +102 -0
- package/dist/functions/stockClass/getStockClassAsOcf.js.map +1 -0
- package/dist/functions/stockClass/index.d.ts +4 -0
- package/dist/functions/stockClass/index.d.ts.map +1 -0
- package/dist/functions/stockClass/index.js +20 -0
- package/dist/functions/stockClass/index.js.map +1 -0
- package/dist/functions/stockClass/updateStockClass.d.ts +38 -0
- package/dist/functions/stockClass/updateStockClass.d.ts.map +1 -0
- package/dist/functions/stockClass/updateStockClass.js +77 -0
- package/dist/functions/stockClass/updateStockClass.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/native.d.ts +105 -0
- package/dist/types/native.d.ts.map +1 -0
- package/dist/types/native.js +8 -0
- package/dist/types/native.js.map +1 -0
- package/dist/utils/typeConversions.d.ts +22 -0
- package/dist/utils/typeConversions.d.ts.map +1 -0
- package/dist/utils/typeConversions.js +242 -0
- package/dist/utils/typeConversions.js.map +1 -0
- package/package.json +2 -2
package/dist/OcpClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientConfig } from '@fairmint/canton-node-sdk';
|
|
2
|
-
import { AuthorizeIssuerParams, AuthorizeIssuerResult, CreateIssuerParams, CreateIssuerResult, UpdateIssuerDataParams, UpdateIssuerDataResult, GetIssuerAsOcfParams, GetIssuerAsOcfResult, CreateCompanyValuationReportParams, CreateCompanyValuationReportResult, UpdateCompanyValuationParams, UpdateCompanyValuationResult, AddObserversToCompanyValuationReportParams, AddObserversToCompanyValuationReportResult } from './functions';
|
|
2
|
+
import { AuthorizeIssuerParams, AuthorizeIssuerResult, CreateIssuerParams, CreateIssuerResult, UpdateIssuerDataParams, UpdateIssuerDataResult, GetIssuerAsOcfParams, GetIssuerAsOcfResult, CreateStockClassParams, CreateStockClassResult, UpdateStockClassParams, UpdateStockClassResult, GetStockClassAsOcfParams, GetStockClassAsOcfResult, CreateCompanyValuationReportParams, CreateCompanyValuationReportResult, UpdateCompanyValuationParams, UpdateCompanyValuationResult, AddObserversToCompanyValuationReportParams, AddObserversToCompanyValuationReportResult } from './functions';
|
|
3
3
|
export declare class OcpClient {
|
|
4
4
|
private client;
|
|
5
5
|
issuer: {
|
|
@@ -8,6 +8,11 @@ export declare class OcpClient {
|
|
|
8
8
|
updateIssuerData: (params: UpdateIssuerDataParams) => Promise<UpdateIssuerDataResult>;
|
|
9
9
|
getIssuerAsOcf: (params: GetIssuerAsOcfParams) => Promise<GetIssuerAsOcfResult>;
|
|
10
10
|
};
|
|
11
|
+
stockClass: {
|
|
12
|
+
createStockClass: (params: CreateStockClassParams) => Promise<CreateStockClassResult>;
|
|
13
|
+
updateStockClass: (params: UpdateStockClassParams) => Promise<UpdateStockClassResult>;
|
|
14
|
+
getStockClassAsOcf: (params: GetStockClassAsOcfParams) => Promise<GetStockClassAsOcfResult>;
|
|
15
|
+
};
|
|
11
16
|
companyValuationReport: {
|
|
12
17
|
createCompanyValuationReport: (params: CreateCompanyValuationReportParams) => Promise<CreateCompanyValuationReportResult>;
|
|
13
18
|
updateCompanyValuation: (params: UpdateCompanyValuationParams) => Promise<UpdateCompanyValuationResult>;
|
package/dist/OcpClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OcpClient.d.ts","sourceRoot":"","sources":["../src/OcpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,2BAA2B,CAAC;AAC9E,OAAO,
|
|
1
|
+
{"version":3,"file":"OcpClient.d.ts","sourceRoot":"","sources":["../src/OcpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EACY,qBAAqB,EAAE,qBAAqB,EAC/C,kBAAkB,EAAE,kBAAkB,EAClC,sBAAsB,EAAE,sBAAsB,EAChD,oBAAoB,EAAE,oBAAoB,EACxC,sBAAsB,EAAE,sBAAsB,EAC9C,sBAAsB,EAAE,sBAAsB,EAC5C,wBAAwB,EAAE,wBAAwB,EACxC,kCAAkC,EAAE,kCAAkC,EAC5E,4BAA4B,EAAE,4BAA4B,EAC5C,0CAA0C,EAAE,0CAA0C,EAC7H,MAAM,aAAa,CAAC;AAErB,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAsB;IAE7B,MAAM,EAAE;QACb,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACnF,YAAY,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAC1E,gBAAgB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;QACtF,cAAc,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;KACjF,CAAC;IAEK,UAAU,EAAE;QACjB,gBAAgB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;QACtF,gBAAgB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;QACtF,kBAAkB,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAC;KAC7F,CAAC;IAEK,sBAAsB,EAAE;QAC7B,4BAA4B,EAAE,CAC5B,MAAM,EAAE,kCAAkC,KACvC,OAAO,CAAC,kCAAkC,CAAC,CAAC;QACjD,sBAAsB,EAAE,CACtB,MAAM,EAAE,4BAA4B,KACjC,OAAO,CAAC,4BAA4B,CAAC,CAAC;QAC3C,oCAAoC,EAAE,CACpC,MAAM,EAAE,0CAA0C,KAC/C,OAAO,CAAC,0CAA0C,CAAC,CAAC;KAC1D,CAAC;gBAEU,MAAM,CAAC,EAAE,YAAY;CA0BlC"}
|
package/dist/OcpClient.js
CHANGED
|
@@ -12,6 +12,11 @@ class OcpClient {
|
|
|
12
12
|
updateIssuerData: (params) => (0, functions_1.updateIssuerData)(this.client, params),
|
|
13
13
|
getIssuerAsOcf: (params) => (0, functions_1.getIssuerAsOcf)(this.client, params)
|
|
14
14
|
};
|
|
15
|
+
this.stockClass = {
|
|
16
|
+
createStockClass: (params) => (0, functions_1.createStockClass)(this.client, params),
|
|
17
|
+
updateStockClass: (params) => (0, functions_1.updateStockClass)(this.client, params),
|
|
18
|
+
getStockClassAsOcf: (params) => (0, functions_1.getStockClassAsOcf)(this.client, params)
|
|
19
|
+
};
|
|
15
20
|
this.companyValuationReport = {
|
|
16
21
|
createCompanyValuationReport: (params) => (0, functions_1.createCompanyValuationReport)(this.client, params),
|
|
17
22
|
updateCompanyValuation: (params) => (0, functions_1.updateCompanyValuation)(this.client, params),
|
package/dist/OcpClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OcpClient.js","sourceRoot":"","sources":["../src/OcpClient.ts"],"names":[],"mappings":";;;AAAA,+DAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"OcpClient.js","sourceRoot":"","sources":["../src/OcpClient.ts"],"names":[],"mappings":";;;AAAA,+DAA8E;AAC9E,2CAWqB;AAErB,MAAa,SAAS;IA4BpB,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,GAAG;YACZ,eAAe,EAAE,CAAC,MAA6B,EAAE,EAAE,CAAC,IAAA,2BAAe,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YACxF,YAAY,EAAE,CAAC,MAA0B,EAAE,EAAE,CAAC,IAAA,wBAAY,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC/E,gBAAgB,EAAE,CAAC,MAA8B,EAAE,EAAE,CAAC,IAAA,4BAAgB,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC3F,cAAc,EAAE,CAAC,MAA4B,EAAE,EAAE,CAAC,IAAA,0BAAc,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;SACtF,CAAC;QAEF,IAAI,CAAC,UAAU,GAAG;YAChB,gBAAgB,EAAE,CAAC,MAA8B,EAAE,EAAE,CAAC,IAAA,4BAAgB,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC3F,gBAAgB,EAAE,CAAC,MAA8B,EAAE,EAAE,CAAC,IAAA,4BAAgB,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC3F,kBAAkB,EAAE,CAAC,MAAgC,EAAE,EAAE,CAAC,IAAA,8BAAkB,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;SAClG,CAAC;QAEF,IAAI,CAAC,sBAAsB,GAAG;YAC5B,4BAA4B,EAAE,CAAC,MAA0C,EAAE,EAAE,CAC3E,IAAA,wCAA4B,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YACnD,sBAAsB,EAAE,CAAC,MAAoC,EAAE,EAAE,CAC/D,IAAA,kCAAsB,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC7C,oCAAoC,EAAE,CACpC,MAAkD,EAClD,EAAE,CAAC,IAAA,gDAAoC,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;SAC/D,CAAC;IACJ,CAAC;CACF;AAtDD,8BAsDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
|
package/dist/functions/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./issuer"), exports);
|
|
18
|
+
__exportStar(require("./stockClass"), exports);
|
|
18
19
|
__exportStar(require("./companyValuationReport"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fairmint } from '@fairmint/open-captable-protocol-daml-js';
|
|
2
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
3
2
|
import { ContractDetails } from '../../types/contractDetails';
|
|
3
|
+
import { OcfIssuerData } from '../../types/native';
|
|
4
4
|
export interface CreateIssuerParams {
|
|
5
5
|
/** Details of the IssuerAuthorization contract for disclosed contracts */
|
|
6
6
|
issuerAuthorizationContractDetails: ContractDetails;
|
|
@@ -8,7 +8,7 @@ export interface CreateIssuerParams {
|
|
|
8
8
|
featuredAppRightContractDetails: ContractDetails;
|
|
9
9
|
issuerParty: string;
|
|
10
10
|
/** Issuer data to create */
|
|
11
|
-
issuerData:
|
|
11
|
+
issuerData: OcfIssuerData;
|
|
12
12
|
}
|
|
13
13
|
export interface CreateIssuerResult {
|
|
14
14
|
contractId: string;
|
|
@@ -43,6 +43,10 @@ export interface CreateIssuerResult {
|
|
|
43
43
|
* issuerData: {
|
|
44
44
|
* legal_name: "My Company Inc.",
|
|
45
45
|
* country_of_formation: "US",
|
|
46
|
+
* email: {
|
|
47
|
+
* email_type: "BUSINESS",
|
|
48
|
+
* email_address: "contact@company.com"
|
|
49
|
+
* },
|
|
46
50
|
* // ... other issuer data
|
|
47
51
|
* }
|
|
48
52
|
* });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,kCAAkC,EAAE,eAAe,CAAC;IACpD,uEAAuE;IACvE,+BAA+B,EAAE,eAAe,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAiD7B"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createIssuer = createIssuer;
|
|
4
4
|
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
5
|
const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
6
|
+
const typeConversions_1 = require("../../utils/typeConversions");
|
|
6
7
|
/**
|
|
7
8
|
* Create an issuer by exercising the CreateIssuer choice on an IssuerAuthorization contract
|
|
8
9
|
*
|
|
@@ -32,6 +33,10 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
32
33
|
* issuerData: {
|
|
33
34
|
* legal_name: "My Company Inc.",
|
|
34
35
|
* country_of_formation: "US",
|
|
36
|
+
* email: {
|
|
37
|
+
* email_type: "BUSINESS",
|
|
38
|
+
* email_address: "contact@company.com"
|
|
39
|
+
* },
|
|
35
40
|
* // ... other issuer data
|
|
36
41
|
* }
|
|
37
42
|
* });
|
|
@@ -44,7 +49,7 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
44
49
|
async function createIssuer(client, params) {
|
|
45
50
|
// Create the choice arguments for CreateIssuer
|
|
46
51
|
const choiceArguments = {
|
|
47
|
-
issuer_data: params.issuerData
|
|
52
|
+
issuer_data: (0, typeConversions_1.issuerDataToDaml)(params.issuerData)
|
|
48
53
|
};
|
|
49
54
|
// Submit the choice to the IssuerAuthorization contract
|
|
50
55
|
const response = await client.submitAndWaitForTransactionTree({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIssuer.js","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"createIssuer.js","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":";;AAiEA,oCAoDC;AArHD,6FAAoE;AAGpE,mEAA4E;AAG5E,iEAA+D;AAiB/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACI,KAAK,UAAU,YAAY,CAChC,MAA2B,EAC3B,MAA0B;IAE1B,+CAA+C;IAC/C,MAAM,eAAe,GAA2D;QAC9E,WAAW,EAAE,IAAA,kCAAgB,EAAC,MAAM,CAAC,UAAU,CAAC;KACjD,CAAC;IAEF,wDAAwD;IACxD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;QAC5D,KAAK,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;QAC3B,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE;oBACf,UAAU,EAAE,yCAAQ,CAAC,YAAY,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;oBACpF,UAAU,EAAE,MAAM,CAAC,kCAAkC,CAAC,UAAU;oBAChE,MAAM,EAAE,cAAc;oBACtB,cAAc,EAAE,eAAe;iBAChC;aACF;SACF;QACD,kBAAkB,EAAE;YAClB;gBACE,UAAU,EAAE,MAAM,CAAC,kCAAkC,CAAC,UAAU;gBAChE,UAAU,EAAE,MAAM,CAAC,kCAAkC,CAAC,UAAU;gBAChE,gBAAgB,EAAE,MAAM,CAAC,kCAAkC,CAAC,gBAAgB;gBAC5E,cAAc,EAAE,MAAM,CAAC,kCAAkC,CAAC,cAAc;aACzE;YACD;gBACE,UAAU,EAAE,MAAM,CAAC,+BAA+B,CAAC,UAAU;gBAC7D,UAAU,EAAE,MAAM,CAAC,+BAA+B,CAAC,UAAU;gBAC7D,gBAAgB,EAAE,MAAM,CAAC,+BAA+B,CAAC,gBAAgB;gBACzE,cAAc,EAAE,MAAM,CAAC,+BAA+B,CAAC,cAAc;aACtE;SACF;KACF,CAA4C,CAAC;IAE9C,MAAM,OAAO,GAAG,IAAA,+CAA4B,EAC1C,QAAQ,EACR,yCAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAC/C,CAAC;IACF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC;IAEnE,OAAO;QACL,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;KAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,34 +1,58 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
2
|
/**
|
|
3
3
|
* OCF Issuer object according to the Open Cap Table Coalition schema
|
|
4
|
+
* Object describing the issuer of the cap table (the company whose cap table this is)
|
|
4
5
|
* @see https://schema.opencaptablecoalition.com/v/1.2.0/objects/Issuer.schema.json
|
|
5
6
|
*/
|
|
6
7
|
export interface OcfIssuer {
|
|
8
|
+
/** Object type identifier - must be "ISSUER" */
|
|
7
9
|
object_type: 'ISSUER';
|
|
10
|
+
/** Legal name of the issuer */
|
|
8
11
|
legal_name: string;
|
|
12
|
+
/** Doing Business As name */
|
|
9
13
|
dba?: string;
|
|
14
|
+
/** Date of formation (ISO 8601 date string YYYY-MM-DD) */
|
|
10
15
|
formation_date?: string;
|
|
16
|
+
/** The country where the issuer company was legally formed (ISO 3166-1 alpha-2) */
|
|
11
17
|
country_of_formation: string;
|
|
18
|
+
/** The state, province, or subdivision where the issuer company was legally formed */
|
|
12
19
|
country_subdivision_of_formation?: string;
|
|
20
|
+
/** The tax ids for this issuer company */
|
|
13
21
|
tax_ids?: Array<{
|
|
22
|
+
/** Type of tax identifier */
|
|
14
23
|
tax_id_type: string;
|
|
24
|
+
/** The tax identification number */
|
|
15
25
|
tax_id: string;
|
|
16
26
|
}>;
|
|
27
|
+
/** A work email that the issuer company can be reached at */
|
|
17
28
|
email?: {
|
|
29
|
+
/** Type of email address (personal or business) */
|
|
18
30
|
email_type: 'PERSONAL' | 'BUSINESS';
|
|
31
|
+
/** The email address */
|
|
19
32
|
email_address: string;
|
|
20
33
|
};
|
|
34
|
+
/** A phone number that the issuer company can be reached at */
|
|
21
35
|
phone?: string;
|
|
36
|
+
/** The headquarters address of the issuing company */
|
|
22
37
|
address?: {
|
|
38
|
+
/** What type of address is this (e.g. legal address, contact address, etc.) */
|
|
23
39
|
address_type: 'LEGAL' | 'CONTACT' | 'OTHER';
|
|
40
|
+
/** Street address (multi-line string) */
|
|
24
41
|
street_suite?: string;
|
|
42
|
+
/** City */
|
|
25
43
|
city?: string;
|
|
44
|
+
/** State, province, or equivalent identifier required for an address in this country */
|
|
26
45
|
country_subdivision?: string;
|
|
46
|
+
/** Country code for this address (ISO 3166-1 alpha-2) */
|
|
27
47
|
country: string;
|
|
48
|
+
/** Address postal code */
|
|
28
49
|
postal_code?: string;
|
|
29
50
|
};
|
|
51
|
+
/** The initial number of shares authorized for this issuer */
|
|
30
52
|
initial_shares_authorized?: string | number;
|
|
53
|
+
/** Unique identifier for the issuer object */
|
|
31
54
|
id?: string;
|
|
55
|
+
/** Additional comments or notes about the issuer */
|
|
32
56
|
comments?: string[];
|
|
33
57
|
}
|
|
34
58
|
export interface GetIssuerAsOcfParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIssuerAsOcf.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/getIssuerAsOcf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"getIssuerAsOcf.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/getIssuerAsOcf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,WAAW,EAAE,QAAQ,CAAC;IAEtB,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IAEnB,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,mFAAmF;IACnF,oBAAoB,EAAE,MAAM,CAAC;IAE7B,sFAAsF;IACtF,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C,0CAA0C;IAC1C,OAAO,CAAC,EAAE,KAAK,CAAC;QACd,6BAA6B;QAC7B,WAAW,EAAE,MAAM,CAAC;QACpB,oCAAoC;QACpC,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IAEH,6DAA6D;IAC7D,KAAK,CAAC,EAAE;QACN,mDAAmD;QACnD,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;QACpC,wBAAwB;QACxB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IAEF,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,OAAO,CAAC,EAAE;QACR,+EAA+E;QAC/E,YAAY,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;QAC5C,yCAAyC;QACzC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,wFAAwF;QACxF,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,yDAAyD;QACzD,OAAO,EAAE,MAAM,CAAC;QAChB,0BAA0B;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,8DAA8D;IAC9D,yBAAyB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5C,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CA+F/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIssuerAsOcf.js","sourceRoot":"","sources":["../../../src/functions/issuer/getIssuerAsOcf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getIssuerAsOcf.js","sourceRoot":"","sources":["../../../src/functions/issuer/getIssuerAsOcf.ts"],"names":[],"mappings":";;AAgHA,wCAkGC;AA9HD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,KAAK,UAAU,cAAc,CAClC,MA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AC,UAAU,CAAC,OAAO,CAAC,YAAY,IAAI,EAAE,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBACtG,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9E,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,mBAAmB,IAAI,EAAE,mBAAmB,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC;gBAC3H,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,oBAAoB,EAAE,uCAAuC;gBAC5H,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;aACpG;SACF,CAAC;QACF,GAAG,CAAC,UAAU,CAAC,yBAAyB,IAAI;YAC1C,yBAAyB,EAAE,UAAU,CAAC,yBAAyB;SAChE,CAAC;QACF,uCAAuC;QACvC,EAAE,EAAE,MAAM,CAAC,UAAU;KACtB,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Fairmint } from '@fairmint/open-captable-protocol-daml-js';
|
|
2
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { OcfIssuerData } from '../../types/native';
|
|
3
3
|
export interface UpdateIssuerDataParams {
|
|
4
4
|
issuerContractId: string;
|
|
5
|
-
newIssuerData:
|
|
5
|
+
newIssuerData: OcfIssuerData;
|
|
6
6
|
}
|
|
7
7
|
export interface UpdateIssuerDataResult {
|
|
8
8
|
contractId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateIssuerData.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/updateIssuerData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateIssuerData.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/updateIssuerData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAUD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CA6CjC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateIssuerData = updateIssuerData;
|
|
4
4
|
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const typeConversions_1 = require("../../utils/typeConversions");
|
|
5
6
|
function hasIssuer(arg) {
|
|
6
7
|
return !!arg && typeof arg === 'object' && typeof arg.issuer === 'string';
|
|
7
8
|
}
|
|
@@ -26,7 +27,7 @@ async function updateIssuerData(client, params) {
|
|
|
26
27
|
const issuerParty = createArgument.issuer;
|
|
27
28
|
// Create the choice arguments for UpdateIssuerData
|
|
28
29
|
const choiceArguments = {
|
|
29
|
-
new_issuer_data: params.newIssuerData
|
|
30
|
+
new_issuer_data: (0, typeConversions_1.issuerDataToDaml)(params.newIssuerData)
|
|
30
31
|
};
|
|
31
32
|
// Submit the choice to the Issuer contract
|
|
32
33
|
const response = await client.submitAndWaitForTransactionTree({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateIssuerData.js","sourceRoot":"","sources":["../../../src/functions/issuer/updateIssuerData.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"updateIssuerData.js","sourceRoot":"","sources":["../../../src/functions/issuer/updateIssuerData.ts"],"names":[],"mappings":";;AA8BA,4CAgDC;AA9ED,6FAAoE;AAIpE,iEAA+D;AAgB/D,SAAS,SAAS,CAAC,GAAY;IAC7B,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAQ,GAAiC,CAAC,MAAM,KAAK,QAAQ,CAAC;AAC3G,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAA2B,EAC3B,MAA8B;IAE9B,qEAAqE;IACrE,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC;QACxD,UAAU,EAAE,MAAM,CAAC,gBAAgB;KACpC,CAAC,CAAC;IAEH,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC;IAC1E,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IACD,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC;IAE1C,mDAAmD;IACnD,MAAM,eAAe,GAAkD;QACrE,eAAe,EAAE,IAAA,kCAAgB,EAAC,MAAM,CAAC,aAAa,CAAC;KACxD,CAAC;IAEF,2CAA2C;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;QAC5D,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE;oBACf,UAAU,EAAE,yCAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU;oBAC1D,UAAU,EAAE,MAAM,CAAC,gBAAgB;oBACnC,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,eAAe;iBAChC;aACF;SACF;KACF,CAA4C,CAAC;IAE9C,MAAM,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACrD,IAAI,kBAAkB,IAAI,KAAK,EAAE,CAAC;QAChC,OAAO;YACL,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU;YACnD,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;SAC5C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { OcfStockClassData } from '../../types/native';
|
|
3
|
+
export interface CreateStockClassParams {
|
|
4
|
+
/** Contract ID of the Issuer contract */
|
|
5
|
+
issuerContractId: string;
|
|
6
|
+
/** The party that will act as the issuer */
|
|
7
|
+
issuerParty: string;
|
|
8
|
+
/** Stock class data to create */
|
|
9
|
+
stockClassData: OcfStockClassData;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateStockClassResult {
|
|
12
|
+
contractId: string;
|
|
13
|
+
updateId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a stock class by exercising the CreateStockClass choice on an Issuer contract
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const result = await createStockClass(client, {
|
|
21
|
+
* issuerContractId: "1234567890abcdef",
|
|
22
|
+
* issuerParty: "issuer_party_id",
|
|
23
|
+
* stockClassData: {
|
|
24
|
+
* name: "Series A Preferred",
|
|
25
|
+
* class_type: "PREFERRED",
|
|
26
|
+
* default_id_prefix: "SA-",
|
|
27
|
+
* initial_shares_authorized: "1000000",
|
|
28
|
+
* votes_per_share: "1",
|
|
29
|
+
* seniority: "1",
|
|
30
|
+
* // ... other stock class data
|
|
31
|
+
* }
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param client - The ledger JSON API client
|
|
36
|
+
* @param params - Parameters for creating a stock class
|
|
37
|
+
* @returns Promise resolving to the result of the stock class creation
|
|
38
|
+
*/
|
|
39
|
+
export declare function createStockClass(client: LedgerJsonApiClient, params: CreateStockClassParams): Promise<CreateStockClassResult>;
|
|
40
|
+
//# sourceMappingURL=createStockClass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStockClass.d.ts","sourceRoot":"","sources":["../../../src/functions/stockClass/createStockClass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGvD,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CAmCjC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createStockClass = createStockClass;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
6
|
+
const typeConversions_1 = require("../../utils/typeConversions");
|
|
7
|
+
/**
|
|
8
|
+
* Create a stock class by exercising the CreateStockClass choice on an Issuer contract
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const result = await createStockClass(client, {
|
|
13
|
+
* issuerContractId: "1234567890abcdef",
|
|
14
|
+
* issuerParty: "issuer_party_id",
|
|
15
|
+
* stockClassData: {
|
|
16
|
+
* name: "Series A Preferred",
|
|
17
|
+
* class_type: "PREFERRED",
|
|
18
|
+
* default_id_prefix: "SA-",
|
|
19
|
+
* initial_shares_authorized: "1000000",
|
|
20
|
+
* votes_per_share: "1",
|
|
21
|
+
* seniority: "1",
|
|
22
|
+
* // ... other stock class data
|
|
23
|
+
* }
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @param client - The ledger JSON API client
|
|
28
|
+
* @param params - Parameters for creating a stock class
|
|
29
|
+
* @returns Promise resolving to the result of the stock class creation
|
|
30
|
+
*/
|
|
31
|
+
async function createStockClass(client, params) {
|
|
32
|
+
// Create the choice arguments for CreateStockClass
|
|
33
|
+
const choiceArguments = {
|
|
34
|
+
stock_class_data: (0, typeConversions_1.stockClassDataToDaml)(params.stockClassData)
|
|
35
|
+
};
|
|
36
|
+
// Submit the choice to the Issuer contract
|
|
37
|
+
const response = await client.submitAndWaitForTransactionTree({
|
|
38
|
+
actAs: [params.issuerParty],
|
|
39
|
+
commands: [
|
|
40
|
+
{
|
|
41
|
+
ExerciseCommand: {
|
|
42
|
+
templateId: open_captable_protocol_daml_js_1.Fairmint.OpenCapTable.Issuer.Issuer.templateId,
|
|
43
|
+
contractId: params.issuerContractId,
|
|
44
|
+
choice: 'CreateStockClass',
|
|
45
|
+
choiceArgument: choiceArguments
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
const created = (0, findCreatedEvent_1.findCreatedEventByTemplateId)(response, open_captable_protocol_daml_js_1.Fairmint.OpenCapTable.StockClass.StockClass.templateId);
|
|
51
|
+
if (!created) {
|
|
52
|
+
throw new Error('Expected CreatedTreeEvent not found');
|
|
53
|
+
}
|
|
54
|
+
const stockClassContractId = created.CreatedTreeEvent.value.contractId;
|
|
55
|
+
return {
|
|
56
|
+
contractId: stockClassContractId,
|
|
57
|
+
updateId: response.transactionTree.updateId
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=createStockClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStockClass.js","sourceRoot":"","sources":["../../../src/functions/stockClass/createStockClass.ts"],"names":[],"mappings":";;AA6CA,4CAsCC;AAnFD,6FAAoE;AAGpE,mEAA4E;AAE5E,iEAAmE;AAgBnE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAA2B,EAC3B,MAA8B;IAE9B,mDAAmD;IACnD,MAAM,eAAe,GAAkD;QACrE,gBAAgB,EAAE,IAAA,sCAAoB,EAAC,MAAM,CAAC,cAAc,CAAC;KAC9D,CAAC;IAEF,2CAA2C;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;QAC5D,KAAK,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;QAC3B,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE;oBACf,UAAU,EAAE,yCAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU;oBAC1D,UAAU,EAAE,MAAM,CAAC,gBAAgB;oBACnC,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,eAAe;iBAChC;aACF;SACF;KACF,CAA4C,CAAC;IAE9C,MAAM,OAAO,GAAG,IAAA,+CAA4B,EAC1C,QAAQ,EACR,yCAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CACvD,CAAC;IACF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC;IAEvE,OAAO;QACL,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;KAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
/**
|
|
3
|
+
* OCF Stock Class object according to the Open Cap Table Coalition schema
|
|
4
|
+
* Object describing a class of stock issued by the issuer
|
|
5
|
+
* @see https://schema.opencaptablecoalition.com/v/1.2.0/objects/StockClass.schema.json
|
|
6
|
+
*/
|
|
7
|
+
export interface OcfStockClass {
|
|
8
|
+
/** Object type identifier - must be "STOCK_CLASS" */
|
|
9
|
+
object_type: 'STOCK_CLASS';
|
|
10
|
+
/** Name for the stock type (e.g. Series A Preferred or Class A Common) */
|
|
11
|
+
name: string;
|
|
12
|
+
/** The type of this stock class (e.g. Preferred or Common) */
|
|
13
|
+
class_type: 'PREFERRED' | 'COMMON';
|
|
14
|
+
/** Default prefix for certificate numbers in certificated shares (e.g. CS- in CS-1). If certificate IDs have a dash, the prefix should end in the dash like CS- */
|
|
15
|
+
default_id_prefix: string;
|
|
16
|
+
/** The initial number of shares authorized for this stock class */
|
|
17
|
+
initial_shares_authorized: string | number;
|
|
18
|
+
/** Date on which the board approved the stock class (ISO 8601 date string YYYY-MM-DD) */
|
|
19
|
+
board_approval_date?: string;
|
|
20
|
+
/** Date on which the stockholders approved the stock class (ISO 8601 date string YYYY-MM-DD) */
|
|
21
|
+
stockholder_approval_date?: string;
|
|
22
|
+
/** The number of votes each share of this stock class gets */
|
|
23
|
+
votes_per_share: string | number;
|
|
24
|
+
/** Per-share par value of this stock class */
|
|
25
|
+
par_value?: {
|
|
26
|
+
/** The amount of the monetary value */
|
|
27
|
+
amount: string;
|
|
28
|
+
/** The currency code for the monetary value (ISO 4217) */
|
|
29
|
+
currency: string;
|
|
30
|
+
};
|
|
31
|
+
/** Per-share price this stock class was issued for */
|
|
32
|
+
price_per_share?: {
|
|
33
|
+
/** The amount of the monetary value */
|
|
34
|
+
amount: string;
|
|
35
|
+
/** The currency code for the monetary value (ISO 4217) */
|
|
36
|
+
currency: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Seniority of the stock - determines repayment priority. Seniority is ordered by increasing number so that stock classes with a higher seniority have higher repayment priority. The following properties hold for all stock classes for a given company:
|
|
40
|
+
* a) transitivity: stock classes are absolutely stackable by seniority and in increasing numerical order,
|
|
41
|
+
* b) non-uniqueness: multiple stock classes can have the same Seniority number and therefore have the same liquidation/repayment order.
|
|
42
|
+
* In practice, stock classes with same seniority may be created at different points in time and (for example, an extension of an existing preferred financing round), and also a new stock class can be created with seniority between two existing stock classes, in which case it is assigned some decimal number between the numbers representing seniority of the respective classes.
|
|
43
|
+
*/
|
|
44
|
+
seniority: string | number;
|
|
45
|
+
/** List of stock class conversion rights possible for this stock class */
|
|
46
|
+
conversion_rights?: Array<{
|
|
47
|
+
/** The type of conversion right */
|
|
48
|
+
conversion_mechanism: string;
|
|
49
|
+
/** Additional conversion right details */
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>;
|
|
52
|
+
/** The liquidation preference per share for this stock class */
|
|
53
|
+
liquidation_preference_multiple?: string | number;
|
|
54
|
+
/** The participation cap multiple per share for this stock class */
|
|
55
|
+
participation_cap_multiple?: string | number;
|
|
56
|
+
/** Unique identifier for the stock class object */
|
|
57
|
+
id?: string;
|
|
58
|
+
/** Additional comments or notes about the stock class */
|
|
59
|
+
comments?: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface GetStockClassAsOcfParams {
|
|
62
|
+
/** Contract ID of the StockClass contract to retrieve */
|
|
63
|
+
contractId: string;
|
|
64
|
+
}
|
|
65
|
+
export interface GetStockClassAsOcfResult {
|
|
66
|
+
/** The OCF StockClass object */
|
|
67
|
+
stockClass: OcfStockClass;
|
|
68
|
+
/** The original contract ID */
|
|
69
|
+
contractId: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieve a stock class contract by ID and return it as an OCF JSON object
|
|
73
|
+
*
|
|
74
|
+
* This function fetches the stock class contract data from the ledger and transforms it
|
|
75
|
+
* into the Open Cap Table Coalition (OCF) format according to the official schema.
|
|
76
|
+
*
|
|
77
|
+
* @see https://schema.opencaptablecoalition.com/v/1.2.0/objects/StockClass.schema.json
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* const result = await getStockClassAsOcf(client, {
|
|
82
|
+
* contractId: "1234567890abcdef"
|
|
83
|
+
* });
|
|
84
|
+
*
|
|
85
|
+
* console.log(result.stockClass);
|
|
86
|
+
* // {
|
|
87
|
+
* // object_type: "STOCK_CLASS",
|
|
88
|
+
* // name: "Series A Preferred",
|
|
89
|
+
* // class_type: "PREFERRED",
|
|
90
|
+
* // default_id_prefix: "SA-",
|
|
91
|
+
* // initial_shares_authorized: "1000000",
|
|
92
|
+
* // votes_per_share: "1",
|
|
93
|
+
* // seniority: "1",
|
|
94
|
+
* // // ... other fields
|
|
95
|
+
* // }
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @param client - The ledger JSON API client
|
|
99
|
+
* @param params - Parameters for retrieving the stock class
|
|
100
|
+
* @returns Promise resolving to the OCF StockClass object
|
|
101
|
+
*/
|
|
102
|
+
export declare function getStockClassAsOcf(client: LedgerJsonApiClient, params: GetStockClassAsOcfParams): Promise<GetStockClassAsOcfResult>;
|
|
103
|
+
//# sourceMappingURL=getStockClassAsOcf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStockClassAsOcf.d.ts","sourceRoot":"","sources":["../../../src/functions/stockClass/getStockClassAsOcf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,WAAW,EAAE,aAAa,CAAC;IAE3B,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IAEb,8DAA8D;IAC9D,UAAU,EAAE,WAAW,GAAG,QAAQ,CAAC;IAEnC,mKAAmK;IACnK,iBAAiB,EAAE,MAAM,CAAC;IAE1B,mEAAmE;IACnE,yBAAyB,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,gGAAgG;IAChG,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC,8DAA8D;IAC9D,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IAEjC,8CAA8C;IAC9C,SAAS,CAAC,EAAE;QACV,uCAAuC;QACvC,MAAM,EAAE,MAAM,CAAC;QACf,0DAA0D;QAC1D,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,sDAAsD;IACtD,eAAe,CAAC,EAAE;QAChB,uCAAuC;QACvC,MAAM,EAAE,MAAM,CAAC;QACf,0DAA0D;QAC1D,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;;;;OAKG;IACH,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,KAAK,CAAC;QACxB,mCAAmC;QACnC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,0CAA0C;QAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC,CAAC;IAEH,gEAAgE;IAChE,+BAA+B,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElD,oEAAoE;IACpE,0BAA0B,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7C,mDAAmD;IACnD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,gCAAgC;IAChC,UAAU,EAAE,aAAa,CAAC;IAC1B,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,wBAAwB,CAAC,CA4EnC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStockClassAsOcf = getStockClassAsOcf;
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve a stock class contract by ID and return it as an OCF JSON object
|
|
6
|
+
*
|
|
7
|
+
* This function fetches the stock class contract data from the ledger and transforms it
|
|
8
|
+
* into the Open Cap Table Coalition (OCF) format according to the official schema.
|
|
9
|
+
*
|
|
10
|
+
* @see https://schema.opencaptablecoalition.com/v/1.2.0/objects/StockClass.schema.json
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const result = await getStockClassAsOcf(client, {
|
|
15
|
+
* contractId: "1234567890abcdef"
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* console.log(result.stockClass);
|
|
19
|
+
* // {
|
|
20
|
+
* // object_type: "STOCK_CLASS",
|
|
21
|
+
* // name: "Series A Preferred",
|
|
22
|
+
* // class_type: "PREFERRED",
|
|
23
|
+
* // default_id_prefix: "SA-",
|
|
24
|
+
* // initial_shares_authorized: "1000000",
|
|
25
|
+
* // votes_per_share: "1",
|
|
26
|
+
* // seniority: "1",
|
|
27
|
+
* // // ... other fields
|
|
28
|
+
* // }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param client - The ledger JSON API client
|
|
32
|
+
* @param params - Parameters for retrieving the stock class
|
|
33
|
+
* @returns Promise resolving to the OCF StockClass object
|
|
34
|
+
*/
|
|
35
|
+
async function getStockClassAsOcf(client, params) {
|
|
36
|
+
// Get the events for the StockClass contract
|
|
37
|
+
const eventsResponse = await client.getEventsByContractId({
|
|
38
|
+
contractId: params.contractId
|
|
39
|
+
});
|
|
40
|
+
if (!eventsResponse.created?.createdEvent?.createArgument) {
|
|
41
|
+
throw new Error('Invalid contract events response: missing created event or create argument');
|
|
42
|
+
}
|
|
43
|
+
const createArgument = eventsResponse.created.createdEvent.createArgument;
|
|
44
|
+
// Type guard to ensure we have the expected stock class data structure
|
|
45
|
+
function hasStockClassData(arg) {
|
|
46
|
+
return typeof arg === 'object' &&
|
|
47
|
+
arg !== null &&
|
|
48
|
+
'stock_class_data' in arg &&
|
|
49
|
+
typeof arg.stock_class_data === 'object';
|
|
50
|
+
}
|
|
51
|
+
if (!hasStockClassData(createArgument)) {
|
|
52
|
+
throw new Error('Stock class data not found in contract create argument');
|
|
53
|
+
}
|
|
54
|
+
const stockClassData = createArgument.stock_class_data;
|
|
55
|
+
// Helper function to convert DAML Optional to JavaScript undefined
|
|
56
|
+
const toUndefined = (value) => value === null ? undefined : value;
|
|
57
|
+
// Helper function to convert DAML stock class type to OCF schema stock class type
|
|
58
|
+
const convertStockClassType = (damlClassType) => {
|
|
59
|
+
switch (damlClassType) {
|
|
60
|
+
case 'OcfStockClassTypePreferred':
|
|
61
|
+
return 'PREFERRED';
|
|
62
|
+
case 'OcfStockClassTypeCommon':
|
|
63
|
+
return 'COMMON';
|
|
64
|
+
default:
|
|
65
|
+
throw new Error(`Unknown stock class type: ${damlClassType}`);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
// Helper function to convert DAML monetary value to OCF format
|
|
69
|
+
const convertMonetary = (damlMonetary) => ({
|
|
70
|
+
amount: damlMonetary.amount.toString(),
|
|
71
|
+
currency: damlMonetary.currency
|
|
72
|
+
});
|
|
73
|
+
// Transform DAML stock class data to OCF format
|
|
74
|
+
const ocfStockClass = {
|
|
75
|
+
object_type: 'STOCK_CLASS',
|
|
76
|
+
name: stockClassData.name || '',
|
|
77
|
+
class_type: convertStockClassType(stockClassData.class_type),
|
|
78
|
+
default_id_prefix: stockClassData.default_id_prefix || '',
|
|
79
|
+
initial_shares_authorized: stockClassData.initial_shares_authorized?.toString() || '0',
|
|
80
|
+
votes_per_share: stockClassData.votes_per_share?.toString() || '0',
|
|
81
|
+
seniority: stockClassData.seniority?.toString() || '0',
|
|
82
|
+
// Optional fields
|
|
83
|
+
...(stockClassData.board_approval_date && { board_approval_date: stockClassData.board_approval_date }),
|
|
84
|
+
...(stockClassData.stockholder_approval_date && { stockholder_approval_date: stockClassData.stockholder_approval_date }),
|
|
85
|
+
...(stockClassData.par_value && { par_value: convertMonetary(stockClassData.par_value) }),
|
|
86
|
+
...(stockClassData.price_per_share && { price_per_share: convertMonetary(stockClassData.price_per_share) }),
|
|
87
|
+
...(stockClassData.conversion_rights && { conversion_rights: stockClassData.conversion_rights }),
|
|
88
|
+
...(stockClassData.liquidation_preference_multiple && {
|
|
89
|
+
liquidation_preference_multiple: stockClassData.liquidation_preference_multiple.toString()
|
|
90
|
+
}),
|
|
91
|
+
...(stockClassData.participation_cap_multiple && {
|
|
92
|
+
participation_cap_multiple: stockClassData.participation_cap_multiple.toString()
|
|
93
|
+
}),
|
|
94
|
+
// Use contract ID as the OCF object ID
|
|
95
|
+
id: params.contractId
|
|
96
|
+
};
|
|
97
|
+
return {
|
|
98
|
+
stockClass: ocfStockClass,
|
|
99
|
+
contractId: params.contractId
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=getStockClassAsOcf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStockClassAsOcf.js","sourceRoot":"","sources":["../../../src/functions/stockClass/getStockClassAsOcf.ts"],"names":[],"mappings":";;AAyHA,gDA+EC;AA9GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACI,KAAK,UAAU,kBAAkB,CACtC,MAA2B,EAC3B,MAAgC;IAEhC,6CAA6C;IAC7C,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC;QACxD,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC,CAAC;IAEH,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC;IAE1E,uEAAuE;IACvE,SAAS,iBAAiB,CAAC,GAAY;QACrC,OAAO,OAAO,GAAG,KAAK,QAAQ;YACvB,GAAG,KAAK,IAAI;YACZ,kBAAkB,IAAI,GAAG;YACzB,OAAQ,GAAW,CAAC,gBAAgB,KAAK,QAAQ,CAAC;IAC3D,CAAC;IAED,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,cAAc,GAAG,cAAc,CAAC,gBAAgB,CAAC;IAEvD,mEAAmE;IACnE,MAAM,WAAW,GAAG,CAAI,KAAe,EAAiB,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAE9F,kFAAkF;IAClF,MAAM,qBAAqB,GAAG,CA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