@open-captable-protocol/canton 0.0.25 → 0.0.26
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.
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createCompanyValuationReport = createCompanyValuationReport;
|
|
7
7
|
const lib_1 = require("@fairmint/open-captable-protocol-daml-js/lib");
|
|
8
|
-
const
|
|
8
|
+
const reports_factory_contract_id_json_1 = __importDefault(require("@fairmint/open-captable-protocol-daml-js/reports-factory-contract-id.json"));
|
|
9
9
|
const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
10
10
|
/**
|
|
11
11
|
* Create a CompanyValuationReport by exercising the CreateCompanyValuationReport choice
|
|
@@ -33,7 +33,7 @@ const findCreatedEvent_1 = require("../../utils/findCreatedEvent");
|
|
|
33
33
|
*/
|
|
34
34
|
async function createCompanyValuationReport(client, params) {
|
|
35
35
|
const network = client.getNetwork();
|
|
36
|
-
const networkData =
|
|
36
|
+
const networkData = reports_factory_contract_id_json_1.default[network];
|
|
37
37
|
if (!networkData) {
|
|
38
38
|
throw new Error(`Unsupported network: ${network}`);
|
|
39
39
|
}
|
|
@@ -49,7 +49,7 @@ async function createCompanyValuationReport(client, params) {
|
|
|
49
49
|
{
|
|
50
50
|
ExerciseCommand: {
|
|
51
51
|
templateId: networkData.templateId,
|
|
52
|
-
contractId: networkData.
|
|
52
|
+
contractId: networkData.reportsFactoryContractId,
|
|
53
53
|
choice: 'CreateCompanyValuationReport',
|
|
54
54
|
choiceArgument: choiceArguments
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":";;;;;AA2CA,oEA4CC;AAvFD,sEAAwE;AAIxE,
|
|
1
|
+
{"version":3,"file":"createCompanyValuationReport.js","sourceRoot":"","sources":["../../../src/functions/companyValuationReport/createCompanyValuationReport.ts"],"names":[],"mappings":";;;;;AA2CA,oEA4CC;AAvFD,sEAAwE;AAIxE,iJAA8G;AAC9G,mEAA4E;AAc5E;;;;;;;;;;;;;;;;;;;;;;;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;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"}
|
package/package.json
CHANGED