@open-captable-protocol/canton 0.0.18 → 0.0.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/dist/functions/companyValuationReport/addObserversToCompanyValuationReport.d.ts +2 -0
- package/dist/functions/companyValuationReport/addObserversToCompanyValuationReport.d.ts.map +1 -1
- package/dist/functions/companyValuationReport/addObserversToCompanyValuationReport.js +2 -1
- package/dist/functions/companyValuationReport/addObserversToCompanyValuationReport.js.map +1 -1
- package/dist/functions/companyValuationReport/createCompanyValuationReport.d.ts +2 -0
- package/dist/functions/companyValuationReport/createCompanyValuationReport.d.ts.map +1 -1
- package/dist/functions/companyValuationReport/createCompanyValuationReport.js +2 -1
- package/dist/functions/companyValuationReport/createCompanyValuationReport.js.map +1 -1
- package/dist/functions/companyValuationReport/updateCompanyValuation.d.ts +2 -0
- package/dist/functions/companyValuationReport/updateCompanyValuation.d.ts.map +1 -1
- package/dist/functions/companyValuationReport/updateCompanyValuation.js +2 -1
- package/dist/functions/companyValuationReport/updateCompanyValuation.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { SubmitAndWaitForTransactionTreeResponse } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/operations';
|
|
2
3
|
export interface AddObserversToCompanyValuationReportParams {
|
|
3
4
|
companyValuationReportContractId: string;
|
|
4
5
|
added: string[];
|
|
@@ -6,6 +7,7 @@ export interface AddObserversToCompanyValuationReportParams {
|
|
|
6
7
|
export interface AddObserversToCompanyValuationReportResult {
|
|
7
8
|
contractId: string;
|
|
8
9
|
updateId: string;
|
|
10
|
+
transactionTree: SubmitAndWaitForTransactionTreeResponse;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Add observers to a CompanyValuationReport by exercising AddObservers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addObserversToCompanyValuationReport.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/addObserversToCompanyValuationReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"addObserversToCompanyValuationReport.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/addObserversToCompanyValuationReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;AAGjI,MAAM,WAAW,0CAA0C;IACzD,gCAAgC,EAAE,MAAM,CAAC;IACzC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,0CAA0C;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,uCAAuC,CAAC;CAC1D;AAUD;;GAEG;AACH,wBAAsB,oCAAoC,CACxD,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,0CAA0C,GACjD,OAAO,CAAC,0CAA0C,CAAC,CA+CrD"}
|
|
@@ -44,7 +44,8 @@ async function addObserversToCompanyValuationReport(client, params) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
contractId: created.CreatedTreeEvent.value.contractId,
|
|
47
|
-
updateId: response.transactionTree.updateId
|
|
47
|
+
updateId: response.transactionTree.updateId,
|
|
48
|
+
transactionTree: response
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
//# sourceMappingURL=addObserversToCompanyValuationReport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addObserversToCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/addObserversToCompanyValuationReport.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"addObserversToCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuation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;IAE9C,MAAM,OAAO,GAAG,IAAA,+CAA4B,EAC1C,QAAQ,EACR,yCAAQ,CAAC,YAAY,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAC/E,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,4 +1,5 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { SubmitAndWaitForTransactionTreeResponse } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/operations';
|
|
2
3
|
/**
|
|
3
4
|
* Details about the FeaturedAppRight contract that need to be disclosed
|
|
4
5
|
* when exercising the CreateCompanyValuationReport choice. This is required for cross-domain
|
|
@@ -24,6 +25,7 @@ export interface CreateCompanyValuationReportParams {
|
|
|
24
25
|
export interface CreateCompanyValuationReportResult {
|
|
25
26
|
contractId: string;
|
|
26
27
|
updateId: string;
|
|
28
|
+
transactionTree: SubmitAndWaitForTransactionTreeResponse;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Create a CompanyValuationReport by exercising the CreateCompanyValuationReport choice
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"createCompanyValuationReport.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;AAIjI;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,uDAAuD;IACvD,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;AAED,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,+BAA+B,CAAC;CAClE;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,CAkD7C"}
|
|
@@ -71,7 +71,8 @@ async function createCompanyValuationReport(client, params) {
|
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
contractId: created.CreatedTreeEvent.value.contractId,
|
|
74
|
-
updateId: response.transactionTree.updateId
|
|
74
|
+
updateId: response.transactionTree.updateId,
|
|
75
|
+
transactionTree: response
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
//# sourceMappingURL=createCompanyValuationReport.js.map
|
|
@@ -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":";;;;;AA6DA,oEAqDC;AAlHD,6FAAoE;AAEpE,yIAA0G;AAG1G,mEAA4E;AAgC5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,4BAA4B,CAChD,MAA2B,EAC3B,MAA0C;IAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACpC,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,MAAM,eAAe,GAAkE;QACrF,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;QACjC,kBAAkB,EAAE,MAAM,CAAC,+BAA+B,CAAC,UAAuC;KACnG,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,oBAAoB;oBAC5C,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,yCAAQ,CAAC,YAAY,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAC/E,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,4 +1,5 @@
|
|
|
1
1
|
import { LedgerJsonApiClient } from '@fairmint/canton-node-sdk';
|
|
2
|
+
import { SubmitAndWaitForTransactionTreeResponse } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/operations';
|
|
2
3
|
export interface UpdateCompanyValuationParams {
|
|
3
4
|
companyValuationReportContractId: string;
|
|
4
5
|
newCompanyValuation: string | number;
|
|
@@ -6,6 +7,7 @@ export interface UpdateCompanyValuationParams {
|
|
|
6
7
|
export interface UpdateCompanyValuationResult {
|
|
7
8
|
contractId: string;
|
|
8
9
|
updateId: string;
|
|
10
|
+
transactionTree: SubmitAndWaitForTransactionTreeResponse;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Update the company valuation on a CompanyValuationReport by exercising SetCompanyValuation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCompanyValuation.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/updateCompanyValuation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"updateCompanyValuation.d.ts","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/updateCompanyValuation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wEAAwE,CAAC;AAGjI,MAAM,WAAW,4BAA4B;IAC3C,gCAAgC,EAAE,MAAM,CAAC;IACzC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,uCAAuC,CAAC;CAC1D;AAUD;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,4BAA4B,GACnC,OAAO,CAAC,4BAA4B,CAAC,CAiDvC"}
|
|
@@ -46,7 +46,8 @@ async function updateCompanyValuation(client, params) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
contractId: created.CreatedTreeEvent.value.contractId,
|
|
49
|
-
updateId: response.transactionTree.updateId
|
|
49
|
+
updateId: response.transactionTree.updateId,
|
|
50
|
+
transactionTree: response
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
//# sourceMappingURL=updateCompanyValuation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCompanyValuation.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/updateCompanyValuation.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"updateCompanyValuation.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/updateCompanyValuation.ts"],"names":[],"mappings":";;AA2BA,wDAoDC;AA/ED,6FAAoE;AAGpE,mEAA4E;AAiB5E,SAAS,iBAAiB,CAAC,GAAY;IACrC,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAQ,GAAiD,CAAC,eAAe,KAAK,Q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