@fairmint/open-captable-protocol-daml-js 0.3.37 → 0.3.39

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.
Files changed (35) hide show
  1. package/lib/Fairmint/Shared/Splice/SpliceAmuletHelpers/index.d.ts +1 -0
  2. package/lib/Fairmint/Shared/Splice/SpliceAmuletHelpers/index.js +8 -0
  3. package/lib/Fairmint/Shared/Splice/SpliceAmuletHelpers/module.d.ts +28 -0
  4. package/lib/Fairmint/Shared/Splice/SpliceAmuletHelpers/module.js +35 -0
  5. package/lib/Fairmint/Shared/Splice/index.d.ts +2 -0
  6. package/lib/Fairmint/Shared/Splice/index.js +9 -0
  7. package/lib/Fairmint/Shared/index.d.ts +2 -0
  8. package/lib/Fairmint/Shared/index.js +9 -0
  9. package/lib/Fairmint/index.d.ts +4 -1
  10. package/lib/Fairmint/index.js +2 -0
  11. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +4 -4
  12. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +4 -4
  13. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +3 -3
  14. package/lib/Splice/Api/Token/AllocationV1/module.js +3 -3
  15. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +3 -3
  16. package/lib/Splice/Api/Token/HoldingV1/module.js +3 -3
  17. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +2 -2
  18. package/lib/Splice/Api/Token/MetadataV1/module.js +2 -2
  19. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +3 -3
  20. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +3 -3
  21. package/lib/__bundled__/splice-api-token-allocation-instruction-v1/index.d.ts +1 -0
  22. package/lib/__bundled__/splice-api-token-allocation-instruction-v1/index.js +1 -0
  23. package/lib/__bundled__/splice-api-token-allocation-v1/index.d.ts +1 -0
  24. package/lib/__bundled__/splice-api-token-allocation-v1/index.js +1 -0
  25. package/lib/__bundled__/splice-api-token-holding-v1/index.d.ts +1 -0
  26. package/lib/__bundled__/splice-api-token-holding-v1/index.js +1 -0
  27. package/lib/__bundled__/splice-api-token-metadata-v1/index.d.ts +1 -0
  28. package/lib/__bundled__/splice-api-token-metadata-v1/index.js +1 -0
  29. package/lib/__bundled__/splice-api-token-transfer-instruction-v1/index.d.ts +1 -0
  30. package/lib/__bundled__/splice-api-token-transfer-instruction-v1/index.js +1 -0
  31. package/lib/index.d.ts +8 -8
  32. package/lib/index.js +6 -6
  33. package/package.json +12 -8
  34. package/lib/__bundled__/splice-api-token-burn-mint-v1/index.d.ts +0 -2
  35. package/lib/__bundled__/splice-api-token-burn-mint-v1/index.js +0 -4
@@ -0,0 +1 @@
1
+ export * from './module';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /* eslint-disable-next-line no-unused-vars */
3
+ function __export(m) {
4
+ /* eslint-disable-next-line no-prototype-builtins */
5
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
+ }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ __export(require('./module'));
@@ -0,0 +1,28 @@
1
+ // Generated from Fairmint/Shared/Splice/SpliceAmuletHelpers.daml
2
+ /* eslint-disable @typescript-eslint/camelcase */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/no-use-before-define */
5
+ import * as jtv from '@mojotech/json-type-validation';
6
+ import * as damlTypes from '@daml/types';
7
+
8
+ import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../__bundled__/splice-api-featured-app-v1';
9
+ import * as pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23 from '../../../..';
10
+
11
+ export declare type PaymentRequest = {
12
+ sender: damlTypes.Party;
13
+ receiver: damlTypes.Party;
14
+ provider: damlTypes.Party;
15
+ amount: damlTypes.Numeric;
16
+ featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Splice.Amulet.FeaturedAppRight>>;
17
+ beneficiaries: damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>;
18
+ expectedDso: damlTypes.Party;
19
+ amuletInputs: damlTypes.ContractId<pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Splice.Amulet.Amulet>[];
20
+ amuletRulesCid: damlTypes.ContractId<pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Splice.AmuletRules.AmuletRules>;
21
+ openMiningRoundCid: damlTypes.ContractId<pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Splice.Round.OpenMiningRound>;
22
+ };
23
+
24
+ export declare const PaymentRequest:
25
+ damlTypes.Serializable<PaymentRequest> & {
26
+ }
27
+ ;
28
+
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /* eslint-disable-next-line no-unused-vars */
3
+ function __export(m) {
4
+ /* eslint-disable-next-line no-prototype-builtins */
5
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
+ }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ /* eslint-disable-next-line no-unused-vars */
9
+ var jtv = require('@mojotech/json-type-validation');
10
+ /* eslint-disable-next-line no-unused-vars */
11
+ var damlTypes = require('@daml/types');
12
+
13
+ var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../__bundled__/splice-api-featured-app-v1');
14
+ var pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23 = require('../../../..');
15
+
16
+
17
+ exports.PaymentRequest = {
18
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.FeaturedAppRight)).decoder), beneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).decoder), expectedDso: damlTypes.Party.decoder, amuletInputs: damlTypes.List(damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Amulet)).decoder, amuletRulesCid: damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.OpenMiningRound).decoder, }); }),
19
+ encode: function (__typed__) {
20
+ return {
21
+ sender: damlTypes.Party.encode(__typed__.sender),
22
+ receiver: damlTypes.Party.encode(__typed__.receiver),
23
+ provider: damlTypes.Party.encode(__typed__.provider),
24
+ amount: damlTypes.Numeric(10).encode(__typed__.amount),
25
+ featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.FeaturedAppRight)).encode(__typed__.featuredAppRight),
26
+ beneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).encode(__typed__.beneficiaries),
27
+ expectedDso: damlTypes.Party.encode(__typed__.expectedDso),
28
+ amuletInputs: damlTypes.List(damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.Amulet)).encode(__typed__.amuletInputs),
29
+ amuletRulesCid: damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.AmuletRules).encode(__typed__.amuletRulesCid),
30
+ openMiningRoundCid: damlTypes.ContractId(pkgc208d7ead1e4e9b610fc2054d0bf00716144ad444011bce0b02dcd6cd0cb8a23.OpenMiningRound).encode(__typed__.openMiningRoundCid),
31
+ };
32
+ }
33
+ ,
34
+ };
35
+
@@ -0,0 +1,2 @@
1
+ import * as SpliceAmuletHelpers from './SpliceAmuletHelpers';
2
+ export { SpliceAmuletHelpers } ;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /* eslint-disable-next-line no-unused-vars */
3
+ function __export(m) {
4
+ /* eslint-disable-next-line no-prototype-builtins */
5
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
+ }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ var SpliceAmuletHelpers = require('./SpliceAmuletHelpers');
9
+ exports.SpliceAmuletHelpers = SpliceAmuletHelpers;
@@ -0,0 +1,2 @@
1
+ import * as Splice from './Splice';
2
+ export { Splice } ;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /* eslint-disable-next-line no-unused-vars */
3
+ function __export(m) {
4
+ /* eslint-disable-next-line no-prototype-builtins */
5
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
+ }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ var Splice = require('./Splice');
9
+ exports.Splice = Splice;
@@ -1 +1,4 @@
1
- export * as OpenCapTable from './OpenCapTable';
1
+ import * as OpenCapTable from './OpenCapTable';
2
+ export { OpenCapTable } ;
3
+ import * as Shared from './Shared';
4
+ export { Shared } ;
@@ -7,3 +7,5 @@ function __export(m) {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  var OpenCapTable = require('./OpenCapTable');
9
9
  exports.OpenCapTable = OpenCapTable;
10
+ var Shared = require('./Shared');
11
+ exports.Shared = Shared;
@@ -5,10 +5,10 @@
5
5
  import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
- import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
- import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
10
- import * as pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d from '../AllocationV1';
11
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
8
+ import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../../../../__bundled__/splice-api-token-metadata-v1';
9
+ import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../../../../__bundled__/splice-api-token-holding-v1';
10
+ import * as pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d from '../../../../__bundled__/splice-api-token-allocation-v1';
11
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../__bundled__/ghc-stdlib-DA-Internal-Template';
12
12
 
13
13
  export declare type AllocationFactory = damlTypes.Interface<'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> & AllocationFactoryView;
14
14
  export declare interface AllocationFactoryInterface {
@@ -10,10 +10,10 @@ var jtv = require('@mojotech/json-type-validation');
10
10
  /* eslint-disable-next-line no-unused-vars */
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
- var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
- var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
15
- var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = require('../AllocationV1');
16
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
13
+ var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../../../../__bundled__/splice-api-token-metadata-v1');
14
+ var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../../../../__bundled__/splice-api-token-holding-v1');
15
+ var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = require('../../../../__bundled__/splice-api-token-allocation-v1');
16
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../__bundled__/ghc-stdlib-DA-Internal-Template');
17
17
 
18
18
  exports.AllocationFactory = damlTypes.assembleInterface(
19
19
  '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
@@ -5,9 +5,9 @@
5
5
  import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
- import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
- import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
10
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
8
+ import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../../../../__bundled__/splice-api-token-metadata-v1';
9
+ import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../../../../__bundled__/splice-api-token-holding-v1';
10
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../__bundled__/ghc-stdlib-DA-Internal-Template';
11
11
 
12
12
  export declare type Allocation = damlTypes.Interface<'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> & AllocationView;
13
13
  export declare interface AllocationInterface {
@@ -10,9 +10,9 @@ var jtv = require('@mojotech/json-type-validation');
10
10
  /* eslint-disable-next-line no-unused-vars */
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
- var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
- var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
15
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
13
+ var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../../../../__bundled__/splice-api-token-metadata-v1');
14
+ var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../../../../__bundled__/splice-api-token-holding-v1');
15
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../__bundled__/ghc-stdlib-DA-Internal-Template');
16
16
 
17
17
  exports.Allocation = damlTypes.assembleInterface(
18
18
  '#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation',
@@ -5,9 +5,9 @@
5
5
  import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
- import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
10
- import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
8
+ import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../../../../__bundled__/splice-api-token-metadata-v1';
9
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../__bundled__/ghc-stdlib-DA-Internal-Template';
10
+ import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../__bundled__/daml-stdlib-DA-Time-Types';
11
11
 
12
12
  export declare type Holding = damlTypes.Interface<'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> & HoldingView;
13
13
  export declare interface HoldingInterface {
@@ -10,9 +10,9 @@ var jtv = require('@mojotech/json-type-validation');
10
10
  /* eslint-disable-next-line no-unused-vars */
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
- var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
15
- var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
13
+ var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../../../../__bundled__/splice-api-token-metadata-v1');
14
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../__bundled__/ghc-stdlib-DA-Internal-Template');
15
+ var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../__bundled__/daml-stdlib-DA-Time-Types');
16
16
 
17
17
  exports.Holding = damlTypes.assembleInterface(
18
18
  '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding',
@@ -5,8 +5,8 @@
5
5
  import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
9
- import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
8
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../__bundled__/ghc-stdlib-DA-Internal-Template';
9
+ import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../__bundled__/daml-stdlib-DA-Time-Types';
10
10
 
11
11
  export declare type AnyContract = damlTypes.Interface<'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> & AnyContractView;
12
12
  export declare interface AnyContractInterface {
@@ -10,8 +10,8 @@ var jtv = require('@mojotech/json-type-validation');
10
10
  /* eslint-disable-next-line no-unused-vars */
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
14
- var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
13
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../__bundled__/ghc-stdlib-DA-Internal-Template');
14
+ var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../__bundled__/daml-stdlib-DA-Time-Types');
15
15
 
16
16
  exports.AnyContract = damlTypes.assembleInterface(
17
17
  '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract',
@@ -5,9 +5,9 @@
5
5
  import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
- import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
- import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
10
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
8
+ import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../../../../__bundled__/splice-api-token-metadata-v1';
9
+ import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../../../../__bundled__/splice-api-token-holding-v1';
10
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../__bundled__/ghc-stdlib-DA-Internal-Template';
11
11
 
12
12
  export declare type TransferFactory = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & TransferFactoryView;
13
13
  export declare interface TransferFactoryInterface {
@@ -10,9 +10,9 @@ var jtv = require('@mojotech/json-type-validation');
10
10
  /* eslint-disable-next-line no-unused-vars */
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
- var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
- var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
15
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
13
+ var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../../../../__bundled__/splice-api-token-metadata-v1');
14
+ var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../../../../__bundled__/splice-api-token-holding-v1');
15
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../__bundled__/ghc-stdlib-DA-Internal-Template');
16
16
 
17
17
  exports.TransferFactory = damlTypes.assembleInterface(
18
18
  '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory',
@@ -1,2 +1,3 @@
1
+ export * from '../../Splice/Api/Token/AllocationInstructionV1';
1
2
  import * as mod from '../../Splice/Api/Token/AllocationInstructionV1';
2
3
  export declare const Splice: { Api: { Token: { AllocationInstructionV1: typeof mod } } };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var mod = require('../../Splice/Api/Token/AllocationInstructionV1');
4
+ Object.assign(exports, mod);
4
5
  exports.Splice = { Api: { Token: { AllocationInstructionV1: mod } } };
@@ -1,2 +1,3 @@
1
+ export * from '../../Splice/Api/Token/AllocationV1';
1
2
  import * as mod from '../../Splice/Api/Token/AllocationV1';
2
3
  export declare const Splice: { Api: { Token: { AllocationV1: typeof mod } } };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var mod = require('../../Splice/Api/Token/AllocationV1');
4
+ Object.assign(exports, mod);
4
5
  exports.Splice = { Api: { Token: { AllocationV1: mod } } };
@@ -1,2 +1,3 @@
1
+ export * from '../../Splice/Api/Token/HoldingV1';
1
2
  import * as mod from '../../Splice/Api/Token/HoldingV1';
2
3
  export declare const Splice: { Api: { Token: { HoldingV1: typeof mod } } };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var mod = require('../../Splice/Api/Token/HoldingV1');
4
+ Object.assign(exports, mod);
4
5
  exports.Splice = { Api: { Token: { HoldingV1: mod } } };
@@ -1,2 +1,3 @@
1
+ export * from '../../Splice/Api/Token/MetadataV1';
1
2
  import * as mod from '../../Splice/Api/Token/MetadataV1';
2
3
  export declare const Splice: { Api: { Token: { MetadataV1: typeof mod } } };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var mod = require('../../Splice/Api/Token/MetadataV1');
4
+ Object.assign(exports, mod);
4
5
  exports.Splice = { Api: { Token: { MetadataV1: mod } } };
@@ -1,2 +1,3 @@
1
+ export * from '../../Splice/Api/Token/TransferInstructionV1';
1
2
  import * as mod from '../../Splice/Api/Token/TransferInstructionV1';
2
3
  export declare const Splice: { Api: { Token: { TransferInstructionV1: typeof mod } } };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var mod = require('../../Splice/Api/Token/TransferInstructionV1');
4
+ Object.assign(exports, mod);
4
5
  exports.Splice = { Api: { Token: { TransferInstructionV1: mod } } };
package/lib/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as Fairmint from './Fairmint';
2
- import * as Splice from './Splice';
3
2
  import * as DA from './DA';
4
- import * as Fairmint_OpenCapTable_CapTable from './Fairmint/OpenCapTable/CapTable/module';
5
- import * as Fairmint_OpenCapTable_IssuerAuthorization from './Fairmint/OpenCapTable/IssuerAuthorization/module';
6
- import * as Fairmint_OpenCapTable_OcpFactory from './Fairmint/OpenCapTable/OcpFactory/module';
7
- export { Fairmint, DA, Splice } ;
3
+ import * as Splice from './Splice';
4
+ import * as Fairmint_OpenCapTable_CapTable_CapTable from './Fairmint/OpenCapTable/CapTable/module';
5
+ import * as Fairmint_OpenCapTable_IssuerAuthorization_IssuerAuthorization from './Fairmint/OpenCapTable/IssuerAuthorization/module';
6
+ import * as Fairmint_OpenCapTable_OcpFactory_OcpFactory from './Fairmint/OpenCapTable/OcpFactory/module';
7
+ export { Fairmint, DA, Splice };
8
8
  export declare const OCP_TEMPLATES: {
9
- readonly capTable: typeof Fairmint_OpenCapTable_CapTable.CapTable.templateId;
10
- readonly issuerAuthorization: typeof Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization.templateId;
11
- readonly ocpFactory: typeof Fairmint_OpenCapTable_OcpFactory.OcpFactory.templateId;
9
+ readonly capTable: typeof Fairmint_OpenCapTable_CapTable_CapTable.CapTable.templateId;
10
+ readonly issuerAuthorization: typeof Fairmint_OpenCapTable_IssuerAuthorization_IssuerAuthorization.IssuerAuthorization.templateId;
11
+ readonly ocpFactory: typeof Fairmint_OpenCapTable_OcpFactory_OcpFactory.OcpFactory.templateId;
12
12
  };
package/lib/index.js CHANGED
@@ -11,11 +11,11 @@ var DA = require('./DA');
11
11
  exports.DA = DA;
12
12
  var Splice = require('./Splice');
13
13
  exports.Splice = Splice;
14
- var Fairmint_OpenCapTable_CapTable = require('./Fairmint/OpenCapTable/CapTable/module');
15
- var Fairmint_OpenCapTable_IssuerAuthorization = require('./Fairmint/OpenCapTable/IssuerAuthorization/module');
16
- var Fairmint_OpenCapTable_OcpFactory = require('./Fairmint/OpenCapTable/OcpFactory/module');
14
+ var Fairmint_OpenCapTable_CapTable_CapTable = require('./Fairmint/OpenCapTable/CapTable/module');
15
+ var Fairmint_OpenCapTable_IssuerAuthorization_IssuerAuthorization = require('./Fairmint/OpenCapTable/IssuerAuthorization/module');
16
+ var Fairmint_OpenCapTable_OcpFactory_OcpFactory = require('./Fairmint/OpenCapTable/OcpFactory/module');
17
17
  exports.OCP_TEMPLATES = Object.freeze({
18
- capTable: Fairmint_OpenCapTable_CapTable.CapTable.templateId,
19
- issuerAuthorization: Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization.templateId,
20
- ocpFactory: Fairmint_OpenCapTable_OcpFactory.OcpFactory.templateId,
18
+ capTable: Fairmint_OpenCapTable_CapTable_CapTable.CapTable.templateId,
19
+ issuerAuthorization: Fairmint_OpenCapTable_IssuerAuthorization_IssuerAuthorization.IssuerAuthorization.templateId,
20
+ ocpFactory: Fairmint_OpenCapTable_OcpFactory_OcpFactory.OcpFactory.templateId,
21
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/open-captable-protocol-daml-js",
3
- "version": "0.3.37",
3
+ "version": "0.3.39",
4
4
  "description": "Open CapTable Protocol (OpenCapTable-v34) DAML contracts with generated JavaScript bindings. Other Fairmint DAML packages live in @fairmint/daml-js.",
5
5
  "keywords": [
6
6
  "daml",
@@ -64,7 +64,7 @@
64
64
  "precheck-upgrade-compat": "npm run sync-splice-dars",
65
65
  "check-upgrade-compat": "canton-dev-tools check-upgrade-compat",
66
66
  "clean": "npm run prepare-build && for pkg in OpenCapTable-v34 Test; do (cd generated/build/$pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm clean); done",
67
- "codegen": "tsx scripts/codegen-js.ts",
67
+ "codegen": "npm run build && canton-dev-tools codegen-js && canton-dev-tools bundle-dependencies && canton-dev-tools create-root-index && canton-dev-tools fix-splice-refs --target lib && npm run build:ts && tsx scripts/stage-npm-opencaptable-dar.ts && npm run build:npm-runtime-lib",
68
68
  "create-factory:ocp": "npm run codegen && tsx scripts/create-ocp-factory.ts --network devnet && tsx scripts/create-ocp-factory.ts --network mainnet",
69
69
  "fix": "npm run lint:fix && npm run format:fix",
70
70
  "format": "prettier --check .",
@@ -74,11 +74,11 @@
74
74
  "prelint:daml": "npm run sync-splice-dars",
75
75
  "lint:daml": "if [ ! -f generated/build/multi-package.yaml ]; then npm run prepare-build || exit 1; fi; EXIT_CODE=0; for pkg in OpenCapTable-v34 Test; do echo \"Linting $pkg...\"; (cd generated/build/$pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm damlc lint) || EXIT_CODE=1; done; exit $EXIT_CODE",
76
76
  "lint:fix": "eslint . --fix",
77
- "package:manifest": "npm run package:prep && npm pack --dry-run --json --ignore-scripts > /tmp/npm-pack.json 2>/dev/null && jq -r '.[0].files[].path' /tmp/npm-pack.json | sort | tsx scripts/collapse-manifest.ts > generated/npm-manifest.txt",
78
- "package:prep": "npm run codegen && npm run update-version && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:npm-runtime-lib",
77
+ "package:manifest": "npm run package:prep && npm pack --dry-run --json --ignore-scripts > /tmp/npm-pack.json 2>/dev/null && jq -r '.[0].files[].path' /tmp/npm-pack.json | sort | canton-dev-tools collapse-manifest > generated/npm-manifest.txt",
78
+ "package:prep": "npm run codegen",
79
79
  "package:publish": "npm run package:manifest && npm publish",
80
80
  "prepare-build": "canton-dev-tools prepare-build",
81
- "prepare-release": "tsx scripts/prepare-release.ts",
81
+ "prepare-release": "canton-dev-tools prepare-release --changelog-repo Fairmint/open-captable-protocol-daml",
82
82
  "release:detect-factory-need": "tsx scripts/detect-factory-need.ts",
83
83
  "release:parse-tag": "tsx scripts/parse-release-tag.ts",
84
84
  "remove-participant-dar": "tsx scripts/remove-participant-dar.ts",
@@ -93,7 +93,7 @@
93
93
  "pretest:localnet-traffic": "tsx scripts/link-local-ocp-bindings.ts",
94
94
  "test:localnet-traffic": "tsx scripts/test-localnet-cross-participant-traffic.ts",
95
95
  "test:replay-ocf": "tsx scripts/replay-ocf-database-on-localnet.test.ts",
96
- "update-version": "tsx scripts/update-generated-package.ts",
96
+ "update-version": "canton-dev-tools codegen-js --skip-dpm",
97
97
  "upgrade-package": "tsx scripts/upgrade-package.ts",
98
98
  "upload-dar": "tsx scripts/upload-dar.ts",
99
99
  "verify-dars": "canton-dev-tools verify-dars",
@@ -112,7 +112,7 @@
112
112
  "@fairmint/canton-node-sdk": "0.0.250"
113
113
  },
114
114
  "devDependencies": {
115
- "@fairmint/canton-dev-tools": "0.1.5",
115
+ "@fairmint/canton-dev-tools": "0.1.7",
116
116
  "@open-captable-protocol/canton": "0.8.4",
117
117
  "@types/node": "26.1.2",
118
118
  "@types/pg": "8.20.4",
@@ -150,6 +150,10 @@
150
150
  "darVersionPolicyWatchPaths": [
151
151
  "scripts/codegen/",
152
152
  "package.json"
153
- ]
153
+ ],
154
+ "damlJsBundle": "./daml-js-bundle.json",
155
+ "codegenPublishSuffixes": {
156
+ "OpenCapTable-v34": null
157
+ }
154
158
  }
155
159
  }
@@ -1,2 +0,0 @@
1
- import * as mod from '../../Splice/Api/Token/BurnMintV1';
2
- export declare const Splice: { Api: { Token: { BurnMintV1: typeof mod } } };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var mod = require('../../Splice/Api/Token/BurnMintV1');
4
- exports.Splice = { Api: { Token: { BurnMintV1: mod } } };