@open-captable-protocol/canton 0.0.26 → 0.0.28
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/companyValuationReport/createCompanyValuationReport.d.ts +3 -0
- package/dist/functions/companyValuationReport/createCompanyValuationReport.d.ts.map +1 -1
- package/dist/functions/companyValuationReport/createCompanyValuationReport.js +8 -0
- package/dist/functions/companyValuationReport/createCompanyValuationReport.js.map +1 -1
- package/dist/functions/issuer/authorizeIssuer.d.ts +2 -5
- package/dist/functions/issuer/authorizeIssuer.d.ts.map +1 -1
- package/dist/functions/issuer/authorizeIssuer.js.map +1 -1
- package/dist/functions/issuer/createIssuer.d.ts +17 -19
- package/dist/functions/issuer/createIssuer.d.ts.map +1 -1
- package/dist/functions/issuer/createIssuer.js +19 -3
- package/dist/functions/issuer/createIssuer.js.map +1 -1
- 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/contractDetails.d.ts +18 -0
- package/dist/types/contractDetails.d.ts.map +1 -0
- package/dist/types/contractDetails.js +3 -0
- package/dist/types/contractDetails.js.map +1 -0
- package/package.json +3 -3
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
2
|
import { SubmitAndWaitForTransactionTreeResponse } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/operations';
|
|
3
|
+
import { ContractDetails } from '../../types/contractDetails';
|
|
3
4
|
export interface CreateCompanyValuationReportParams {
|
|
4
5
|
companyId: string;
|
|
5
6
|
companyValuation: string | number;
|
|
6
7
|
observers?: string[];
|
|
8
|
+
/** Details of the FeaturedAppRight contract for disclosed contracts */
|
|
9
|
+
featuredAppRightContractDetails: ContractDetails;
|
|
7
10
|
}
|
|
8
11
|
export interface CreateCompanyValuationReportResult {
|
|
9
12
|
contractId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCompanyValuationReport.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;
|
|
1
|
+
{"version":3,"file":"createCompanyValuationReport.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;AAIjI,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,uEAAuE;IACvE,+BAA+B,EAAE,eAAe,CAAC;CAClD;AAED,MAAM,WAAW,kCAAkC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,uCAAuC,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,kCAAkC,GACzC,OAAO,CAAC,kCAAkC,CAAC,CAiD7C"}
|
|
@@ -55,6 +55,14 @@ async function createCompanyValuationReport(client, params) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
],
|
|
58
|
+
disclosedContracts: [
|
|
59
|
+
{
|
|
60
|
+
templateId: params.featuredAppRightContractDetails.templateId,
|
|
61
|
+
contractId: params.featuredAppRightContractDetails.contractId,
|
|
62
|
+
createdEventBlob: params.featuredAppRightContractDetails.createdEventBlob,
|
|
63
|
+
synchronizerId: params.featuredAppRightContractDetails.synchronizerId
|
|
64
|
+
}
|
|
65
|
+
]
|
|
58
66
|
});
|
|
59
67
|
const created = (0, findCreatedEvent_1.findCreatedEventByTemplateId)(response, lib_1.Fairmint.OpenCapTableReports.CompanyValuationReport.CompanyValuationReport.templateId);
|
|
60
68
|
if (!created) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"createCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":";;;;;AA8CA,oEAoDC;AAlGD,sEAAwE;AAIxE,iJAA8G;AAC9G,mEAA4E;AAiB5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,4BAA4B,CAChD,MAA2B,EAC3B,MAA0C;IAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACpC,MAAM,WAAW,GAAG,0CAAqB,CAAC,OAA6C,CAAC,CAAC;IACzF,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,eAAe,GAA6E;QAChG,UAAU,EAAE,MAAM,CAAC,SAAS;QAC5B,iBAAiB,EAAE,OAAO,MAAM,CAAC,gBAAgB,KAAK,QAAQ;YAC5D,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YACpC,CAAC,CAAC,MAAM,CAAC,gBAAgB;QAC3B,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,EAAE;KAClC,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;QAC5D,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE;oBACf,UAAU,EAAE,WAAW,CAAC,UAAU;oBAClC,UAAU,EAAE,WAAW,CAAC,wBAAwB;oBAChD,MAAM,EAAE,8BAA8B;oBACtC,cAAc,EAAE,eAAe;iBAChC;aACF;SACF;QACD,kBAAkB,EAAE;YAClB;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,cAAQ,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CACtF,CAAC;IACF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU;QACrD,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;QAC3C,eAAe,EAAE,QAAQ;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { ContractDetails } from '../../types/contractDetails';
|
|
2
3
|
export interface AuthorizeIssuerParams {
|
|
3
4
|
issuer: string;
|
|
4
5
|
}
|
|
5
|
-
export interface AuthorizeIssuerResult {
|
|
6
|
-
contractId: string;
|
|
6
|
+
export interface AuthorizeIssuerResult extends ContractDetails {
|
|
7
7
|
updateId: string;
|
|
8
|
-
createdEventBlob: string;
|
|
9
|
-
synchronizerId: string;
|
|
10
|
-
templateId: string;
|
|
11
8
|
}
|
|
12
9
|
/**
|
|
13
10
|
* Authorize an issuer using the OCP Factory contract
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizeIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/authorizeIssuer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"authorizeIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/authorizeIssuer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAqDhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizeIssuer.js","sourceRoot":"","sources":["../../../src/functions/issuer/authorizeIssuer.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"authorizeIssuer.js","sourceRoot":"","sources":["../../../src/functions/issuer/authorizeIssuer.ts"],"names":[],"mappings":";;;;;AAqBA,0CAwDC;AA7ED,6FAAoE;AAEpE,yIAA0G;AAE1G,mEAA4E;AAW5E;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAA2B,EAC3B,MAA6B;IAE7B,0CAA0C;IAC1C,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IAEpC,0DAA0D;IAC1D,MAAM,WAAW,GAAG,sCAAqB,CAAC,OAA6C,CAAC,CAAC;IACzF,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,kDAAkD;IAClD,MAAM,eAAe,GAAqD;QACxE,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC;IAEF,4CAA4C;IAC5C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;QAC5D,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE;oBACf,UAAU,EAAE,WAAW,CAAC,UAAU;oBAClC,UAAU,EAAE,WAAW,CAAC,oBAAoB;oBAC5C,MAAM,EAAE,iBAAiB;oBACzB,cAAc,EAAE,eAAe;iBAChC;aACF;SACF;KACF,CAA4C,CAAC;IAE9C,MAAM,OAAO,GAAG,IAAA,+CAA4B,EAC1C,QAAQ,EACR,yCAAQ,CAAC,YAAY,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU,CACzE,CAAC;IACF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,6BAA6B,GAAG,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC;IAChF,MAAM,iCAAiC,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC;QAC3E,UAAU,EAAE,6BAA6B;KAC1C,CAAC,CAAC;IAEH,IAAI,CAAC,iCAAiC,CAAC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;QAC/E,MAAM,IAAI,KAAK,CAAC,oGAAoG,CAAC,CAAC;IACxH,CAAC;IAED,OAAO;QACL,UAAU,EAAE,6BAA6B;QACzC,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;QAC3C,gBAAgB,EAAE,iCAAiC,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB;QACzF,cAAc,EAAE,QAAQ,CAAC,eAAe,CAAC,cAAc;QACvD,UAAU,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU;KACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import { Fairmint } from '@fairmint/open-captable-protocol-daml-js';
|
|
2
2
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
3
|
-
|
|
4
|
-
* Details about the IssuerAuthorization contract that need to be disclosed
|
|
5
|
-
* when exercising the CreateIssuer choice. This is required for cross-domain
|
|
6
|
-
* contract interactions in Canton.
|
|
7
|
-
*/
|
|
8
|
-
export interface IssuerAuthorizationContractDetails {
|
|
9
|
-
/** The contract ID of the IssuerAuthorization contract */
|
|
10
|
-
contractId: string;
|
|
11
|
-
/** The serialized created event blob of the contract */
|
|
12
|
-
createdEventBlob: string;
|
|
13
|
-
/** The synchronizer ID associated with the contract */
|
|
14
|
-
synchronizerId: string;
|
|
15
|
-
/** The template ID of the contract */
|
|
16
|
-
templateId: string;
|
|
17
|
-
}
|
|
3
|
+
import { ContractDetails } from '../../types/contractDetails';
|
|
18
4
|
export interface CreateIssuerParams {
|
|
19
5
|
/** Details of the IssuerAuthorization contract for disclosed contracts */
|
|
20
|
-
issuerAuthorizationContractDetails:
|
|
6
|
+
issuerAuthorizationContractDetails: ContractDetails;
|
|
7
|
+
/** Details of the FeaturedAppRight contract for disclosed contracts */
|
|
8
|
+
featuredAppRightContractDetails: ContractDetails;
|
|
21
9
|
issuerParty: string;
|
|
22
10
|
/** Issuer data to create */
|
|
23
11
|
issuerData: Fairmint.OpenCapTable.Types.OcfIssuerData;
|
|
@@ -29,7 +17,7 @@ export interface CreateIssuerResult {
|
|
|
29
17
|
/**
|
|
30
18
|
* Create an issuer by exercising the CreateIssuer choice on an IssuerAuthorization contract
|
|
31
19
|
*
|
|
32
|
-
* This function requires the IssuerAuthorization contract details to be provided for disclosed contracts,
|
|
20
|
+
* This function requires the IssuerAuthorization and FeaturedAppRight contract details to be provided for disclosed contracts,
|
|
33
21
|
* which is necessary for cross-domain contract interactions in Canton.
|
|
34
22
|
*
|
|
35
23
|
* @example
|
|
@@ -37,11 +25,21 @@ export interface CreateIssuerResult {
|
|
|
37
25
|
* const issuerAuthorizationContractDetails = {
|
|
38
26
|
* contractId: "1234567890abcdef",
|
|
39
27
|
* createdEventBlob: "serialized_contract_blob_here",
|
|
40
|
-
* synchronizerId: "sync_id_here"
|
|
28
|
+
* synchronizerId: "sync_id_here",
|
|
29
|
+
* templateId: "IssuerAuthorization:template:id:here"
|
|
30
|
+
* };
|
|
31
|
+
*
|
|
32
|
+
* const featuredAppRightContractDetails = {
|
|
33
|
+
* contractId: "abcdef1234567890",
|
|
34
|
+
* createdEventBlob: "serialized_featured_app_right_blob_here",
|
|
35
|
+
* synchronizerId: "featured_sync_id_here",
|
|
36
|
+
* templateId: "FeaturedAppRight:template:id:here"
|
|
41
37
|
* };
|
|
42
38
|
*
|
|
43
39
|
* const result = await createIssuer(client, {
|
|
44
40
|
* issuerAuthorizationContractDetails,
|
|
41
|
+
* featuredAppRightContractDetails,
|
|
42
|
+
* issuerParty: "issuer_party_id",
|
|
45
43
|
* issuerData: {
|
|
46
44
|
* legal_name: "My Company Inc.",
|
|
47
45
|
* country_of_formation: "US",
|
|
@@ -51,7 +49,7 @@ export interface CreateIssuerResult {
|
|
|
51
49
|
* ```
|
|
52
50
|
*
|
|
53
51
|
* @param client - The ledger JSON API client
|
|
54
|
-
* @param params - Parameters for creating an issuer, including the
|
|
52
|
+
* @param params - Parameters for creating an issuer, including the contract details for disclosed contracts
|
|
55
53
|
* @returns Promise resolving to the result of the issuer creation
|
|
56
54
|
*/
|
|
57
55
|
export declare function createIssuer(client: LedgerJsonApiClient, params: CreateIssuerParams): Promise<CreateIssuerResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"createIssuer.d.ts","sourceRoot":"","sources":["../../../src/functions/issuer/createIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,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,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC;CACvD;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAoD7B"}
|
|
@@ -6,7 +6,7 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
6
6
|
/**
|
|
7
7
|
* Create an issuer by exercising the CreateIssuer choice on an IssuerAuthorization contract
|
|
8
8
|
*
|
|
9
|
-
* This function requires the IssuerAuthorization contract details to be provided for disclosed contracts,
|
|
9
|
+
* This function requires the IssuerAuthorization and FeaturedAppRight contract details to be provided for disclosed contracts,
|
|
10
10
|
* which is necessary for cross-domain contract interactions in Canton.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
@@ -14,11 +14,21 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
14
14
|
* const issuerAuthorizationContractDetails = {
|
|
15
15
|
* contractId: "1234567890abcdef",
|
|
16
16
|
* createdEventBlob: "serialized_contract_blob_here",
|
|
17
|
-
* synchronizerId: "sync_id_here"
|
|
17
|
+
* synchronizerId: "sync_id_here",
|
|
18
|
+
* templateId: "IssuerAuthorization:template:id:here"
|
|
19
|
+
* };
|
|
20
|
+
*
|
|
21
|
+
* const featuredAppRightContractDetails = {
|
|
22
|
+
* contractId: "abcdef1234567890",
|
|
23
|
+
* createdEventBlob: "serialized_featured_app_right_blob_here",
|
|
24
|
+
* synchronizerId: "featured_sync_id_here",
|
|
25
|
+
* templateId: "FeaturedAppRight:template:id:here"
|
|
18
26
|
* };
|
|
19
27
|
*
|
|
20
28
|
* const result = await createIssuer(client, {
|
|
21
29
|
* issuerAuthorizationContractDetails,
|
|
30
|
+
* featuredAppRightContractDetails,
|
|
31
|
+
* issuerParty: "issuer_party_id",
|
|
22
32
|
* issuerData: {
|
|
23
33
|
* legal_name: "My Company Inc.",
|
|
24
34
|
* country_of_formation: "US",
|
|
@@ -28,7 +38,7 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
28
38
|
* ```
|
|
29
39
|
*
|
|
30
40
|
* @param client - The ledger JSON API client
|
|
31
|
-
* @param params - Parameters for creating an issuer, including the
|
|
41
|
+
* @param params - Parameters for creating an issuer, including the contract details for disclosed contracts
|
|
32
42
|
* @returns Promise resolving to the result of the issuer creation
|
|
33
43
|
*/
|
|
34
44
|
async function createIssuer(client, params) {
|
|
@@ -55,6 +65,12 @@ async function createIssuer(client, params) {
|
|
|
55
65
|
contractId: params.issuerAuthorizationContractDetails.contractId,
|
|
56
66
|
createdEventBlob: params.issuerAuthorizationContractDetails.createdEventBlob,
|
|
57
67
|
synchronizerId: params.issuerAuthorizationContractDetails.synchronizerId
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
templateId: params.featuredAppRightContractDetails.templateId,
|
|
71
|
+
contractId: params.featuredAppRightContractDetails.contractId,
|
|
72
|
+
createdEventBlob: params.featuredAppRightContractDetails.createdEventBlob,
|
|
73
|
+
synchronizerId: params.featuredAppRightContractDetails.synchronizerId
|
|
58
74
|
}
|
|
59
75
|
]
|
|
60
76
|
});
|
|
@@ -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":";;AA2DA,oCAuDC;AAlHD,6FAAoE;AAGpE,mEAA4E;AAkB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACI,KAAK,UAAU,YAAY,CAChC,MAA2B,EAC3B,MAA0B;IAE1B,+CAA+C;IAC/C,MAAM,eAAe,GAA2D;QAC9E,WAAW,EAAE,MAAM,CAAC,UAAU;KAC/B,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;IACnE,MAAM,oBAAoB,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC;QAC9D,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAA;IAEF,OAAO;QACL,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,QAAQ;KAC5C,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./OcpClient"), exports);
|
|
18
18
|
__exportStar(require("./functions"), exports);
|
|
19
|
+
__exportStar(require("./types/contractDetails"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B;AAC5B,0DAAwC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Details about a contract that needs to be disclosed for cross-domain
|
|
3
|
+
* contract interactions in Canton.
|
|
4
|
+
*
|
|
5
|
+
* This interface is used when a contract from one domain needs to be
|
|
6
|
+
* referenced in a transaction on another domain.
|
|
7
|
+
*/
|
|
8
|
+
export interface ContractDetails {
|
|
9
|
+
/** The contract ID of the contract */
|
|
10
|
+
contractId: string;
|
|
11
|
+
/** The serialized created event blob of the contract */
|
|
12
|
+
createdEventBlob: string;
|
|
13
|
+
/** The synchronizer ID associated with the contract */
|
|
14
|
+
synchronizerId: string;
|
|
15
|
+
/** The template ID of the contract */
|
|
16
|
+
templateId: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=contractDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractDetails.d.ts","sourceRoot":"","sources":["../../src/types/contractDetails.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,gBAAgB,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractDetails.js","sourceRoot":"","sources":["../../src/types/contractDetails.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-captable-protocol/canton",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "A TypeScript SDK for interacting with the Open CapTable Protocol (OCP) Factory contract on Canton blockchain",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@daml/ledger": "^2.10.2",
|
|
20
20
|
"@daml/types": "^2.10.2",
|
|
21
|
-
"@fairmint/canton-node-sdk": "^0.0.
|
|
22
|
-
"@fairmint/open-captable-protocol-daml-js": "^0.0.
|
|
21
|
+
"@fairmint/canton-node-sdk": "^0.0.85",
|
|
22
|
+
"@fairmint/open-captable-protocol-daml-js": "^0.0.35"
|
|
23
23
|
},
|
|
24
24
|
|
|
25
25
|
"devDependencies": {
|