@fairmint/open-captable-protocol-daml-js 0.2.12 → 0.2.14

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 (223) hide show
  1. package/README.md +152 -1
  2. package/generated/subscriptions-factory-contract-id.json +10 -0
  3. package/generated/subscriptions-factory-contract-id.json.d.ts +11 -0
  4. package/lib/DA/Date/Types/index.d.ts +1 -0
  5. package/lib/DA/Date/Types/index.js +8 -0
  6. package/lib/DA/Date/Types/module.d.ts +47 -0
  7. package/lib/DA/Date/Types/module.js +48 -0
  8. package/lib/DA/Date/index.d.ts +2 -0
  9. package/lib/DA/Date/index.js +9 -0
  10. package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
  11. package/lib/DA/Exception/ArithmeticError/index.js +8 -0
  12. package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
  13. package/lib/DA/Exception/ArithmeticError/module.js +25 -0
  14. package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
  15. package/lib/DA/Exception/AssertionFailed/index.js +8 -0
  16. package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
  17. package/lib/DA/Exception/AssertionFailed/module.js +25 -0
  18. package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
  19. package/lib/DA/Exception/GeneralError/index.js +8 -0
  20. package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
  21. package/lib/DA/Exception/GeneralError/module.js +25 -0
  22. package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
  23. package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
  24. package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
  25. package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
  26. package/lib/DA/Exception/index.d.ts +2 -0
  27. package/lib/DA/Exception/index.js +9 -0
  28. package/lib/DA/Internal/Down/index.d.ts +1 -0
  29. package/lib/DA/Internal/Down/index.js +8 -0
  30. package/lib/DA/Internal/Down/module.d.ts +17 -0
  31. package/lib/DA/Internal/Down/module.js +25 -0
  32. package/lib/DA/Logic/Types/index.d.ts +1 -0
  33. package/lib/DA/Logic/Types/index.js +8 -0
  34. package/lib/DA/Logic/Types/module.d.ts +20 -0
  35. package/lib/DA/Logic/Types/module.js +29 -0
  36. package/lib/DA/Logic/index.d.ts +2 -0
  37. package/lib/DA/Logic/index.js +9 -0
  38. package/lib/DA/Monoid/Types/index.d.ts +1 -0
  39. package/lib/DA/Monoid/Types/index.js +8 -0
  40. package/lib/DA/Monoid/Types/module.d.ts +46 -0
  41. package/lib/DA/Monoid/Types/module.js +61 -0
  42. package/lib/DA/Monoid/index.d.ts +2 -0
  43. package/lib/DA/Monoid/index.js +9 -0
  44. package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
  45. package/lib/DA/NonEmpty/Types/index.js +8 -0
  46. package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
  47. package/lib/DA/NonEmpty/Types/module.js +26 -0
  48. package/lib/DA/NonEmpty/index.d.ts +2 -0
  49. package/lib/DA/NonEmpty/index.js +9 -0
  50. package/lib/DA/Random/Types/index.d.ts +1 -0
  51. package/lib/DA/Random/Types/index.js +8 -0
  52. package/lib/DA/Random/Types/module.d.ts +18 -0
  53. package/lib/DA/Random/Types/module.js +26 -0
  54. package/lib/DA/Random/index.d.ts +2 -0
  55. package/lib/DA/Random/index.js +9 -0
  56. package/lib/DA/Semigroup/Types/index.d.ts +1 -0
  57. package/lib/DA/Semigroup/Types/index.js +8 -0
  58. package/lib/DA/Semigroup/Types/module.d.ts +26 -0
  59. package/lib/DA/Semigroup/Types/module.js +37 -0
  60. package/lib/DA/Semigroup/index.d.ts +2 -0
  61. package/lib/DA/Semigroup/index.js +9 -0
  62. package/lib/DA/Set/Types/index.d.ts +1 -0
  63. package/lib/DA/Set/Types/index.js +8 -0
  64. package/lib/DA/Set/Types/module.d.ts +17 -0
  65. package/lib/DA/Set/Types/module.js +25 -0
  66. package/lib/DA/Set/index.d.ts +2 -0
  67. package/lib/DA/Set/index.js +9 -0
  68. package/lib/DA/Stack/Types/index.d.ts +1 -0
  69. package/lib/DA/Stack/Types/index.js +8 -0
  70. package/lib/DA/Stack/Types/module.d.ts +24 -0
  71. package/lib/DA/Stack/Types/module.js +31 -0
  72. package/lib/DA/Stack/index.d.ts +2 -0
  73. package/lib/DA/Stack/index.js +9 -0
  74. package/lib/DA/Time/Types/index.d.ts +1 -0
  75. package/lib/DA/Time/Types/index.js +8 -0
  76. package/lib/DA/Time/Types/module.d.ts +18 -0
  77. package/lib/DA/Time/Types/module.js +25 -0
  78. package/lib/DA/Time/index.d.ts +2 -0
  79. package/lib/DA/Time/index.js +9 -0
  80. package/lib/DA/Types/index.d.ts +1 -0
  81. package/lib/DA/Types/index.js +8 -0
  82. package/lib/DA/Types/module.d.ts +379 -0
  83. package/lib/DA/Types/module.js +445 -0
  84. package/lib/DA/Validation/Types/index.d.ts +1 -0
  85. package/lib/DA/Validation/Types/index.js +8 -0
  86. package/lib/DA/Validation/Types/module.d.ts +20 -0
  87. package/lib/DA/Validation/Types/module.js +29 -0
  88. package/lib/DA/Validation/index.d.ts +2 -0
  89. package/lib/DA/Validation/index.js +9 -0
  90. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
  91. package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
  92. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
  93. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
  94. package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
  95. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
  96. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
  97. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
  98. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
  99. package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
  100. package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
  101. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
  102. package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
  103. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
  104. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
  105. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
  106. package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
  107. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
  108. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
  109. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.d.ts +1 -0
  110. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.js +8 -0
  111. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +75 -0
  112. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +124 -0
  113. package/lib/Fairmint/Subscriptions/Subscription/index.d.ts +1 -0
  114. package/lib/Fairmint/Subscriptions/Subscription/index.js +8 -0
  115. package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +246 -0
  116. package/lib/Fairmint/Subscriptions/Subscription/module.js +400 -0
  117. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.d.ts +1 -0
  118. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.js +8 -0
  119. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +59 -0
  120. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +73 -0
  121. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.d.ts +1 -0
  122. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.js +8 -0
  123. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +45 -0
  124. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +67 -0
  125. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.d.ts +1 -0
  126. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.js +8 -0
  127. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +75 -0
  128. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +124 -0
  129. package/lib/Fairmint/Subscriptions/index.d.ts +10 -0
  130. package/lib/Fairmint/Subscriptions/index.js +17 -0
  131. package/lib/Fairmint/index.d.ts +1 -0
  132. package/lib/Fairmint/index.js +2 -0
  133. package/lib/Splice/Amulet/TokenApiUtils/index.d.ts +1 -0
  134. package/lib/Splice/Amulet/TokenApiUtils/index.js +8 -0
  135. package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +24 -0
  136. package/lib/Splice/Amulet/TokenApiUtils/module.js +27 -0
  137. package/lib/Splice/Amulet/TwoStepTransfer/index.d.ts +1 -0
  138. package/lib/Splice/Amulet/TwoStepTransfer/index.js +8 -0
  139. package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +26 -0
  140. package/lib/Splice/Amulet/TwoStepTransfer/module.js +33 -0
  141. package/lib/Splice/Amulet/index.d.ts +5 -0
  142. package/lib/Splice/Amulet/index.js +12 -0
  143. package/lib/Splice/Amulet/module.d.ts +588 -0
  144. package/lib/Splice/Amulet/module.js +814 -0
  145. package/lib/Splice/AmuletAllocation/index.d.ts +1 -0
  146. package/lib/Splice/AmuletAllocation/index.js +8 -0
  147. package/lib/Splice/AmuletAllocation/module.d.ts +35 -0
  148. package/lib/Splice/AmuletAllocation/module.js +49 -0
  149. package/lib/Splice/AmuletConfig/index.d.ts +1 -0
  150. package/lib/Splice/AmuletConfig/index.js +8 -0
  151. package/lib/Splice/AmuletConfig/module.d.ts +83 -0
  152. package/lib/Splice/AmuletConfig/module.js +92 -0
  153. package/lib/Splice/AmuletRules/index.d.ts +1 -0
  154. package/lib/Splice/AmuletRules/index.js +8 -0
  155. package/lib/Splice/AmuletRules/module.d.ts +1040 -0
  156. package/lib/Splice/AmuletRules/module.js +1441 -0
  157. package/lib/Splice/AmuletTransferInstruction/index.d.ts +1 -0
  158. package/lib/Splice/AmuletTransferInstruction/index.js +8 -0
  159. package/lib/Splice/AmuletTransferInstruction/module.d.ts +35 -0
  160. package/lib/Splice/AmuletTransferInstruction/module.js +49 -0
  161. package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
  162. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
  163. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +149 -0
  164. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
  165. package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
  166. package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
  167. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +153 -0
  168. package/lib/Splice/Api/Token/AllocationV1/module.js +206 -0
  169. package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
  170. package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
  171. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +60 -0
  172. package/lib/Splice/Api/Token/HoldingV1/module.js +76 -0
  173. package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
  174. package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
  175. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +91 -0
  176. package/lib/Splice/Api/Token/MetadataV1/module.js +114 -0
  177. package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
  178. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
  179. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +202 -0
  180. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
  181. package/lib/Splice/Api/Token/index.d.ts +2 -0
  182. package/lib/Splice/Api/Token/index.js +9 -0
  183. package/lib/Splice/DecentralizedSynchronizer/index.d.ts +1 -0
  184. package/lib/Splice/DecentralizedSynchronizer/index.js +8 -0
  185. package/lib/Splice/DecentralizedSynchronizer/module.d.ts +89 -0
  186. package/lib/Splice/DecentralizedSynchronizer/module.js +110 -0
  187. package/lib/Splice/Expiry/index.d.ts +1 -0
  188. package/lib/Splice/Expiry/index.js +8 -0
  189. package/lib/Splice/Expiry/module.d.ts +30 -0
  190. package/lib/Splice/Expiry/module.js +41 -0
  191. package/lib/Splice/ExternalPartyAmuletRules/index.d.ts +1 -0
  192. package/lib/Splice/ExternalPartyAmuletRules/index.js +8 -0
  193. package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +210 -0
  194. package/lib/Splice/ExternalPartyAmuletRules/module.js +294 -0
  195. package/lib/Splice/Fees/index.d.ts +1 -0
  196. package/lib/Splice/Fees/index.js +8 -0
  197. package/lib/Splice/Fees/module.d.ts +65 -0
  198. package/lib/Splice/Fees/module.js +80 -0
  199. package/lib/Splice/Issuance/index.d.ts +1 -0
  200. package/lib/Splice/Issuance/index.js +8 -0
  201. package/lib/Splice/Issuance/module.d.ts +67 -0
  202. package/lib/Splice/Issuance/module.js +80 -0
  203. package/lib/Splice/RelRound/index.d.ts +1 -0
  204. package/lib/Splice/RelRound/index.js +8 -0
  205. package/lib/Splice/RelRound/module.d.ts +18 -0
  206. package/lib/Splice/RelRound/module.js +25 -0
  207. package/lib/Splice/Round/index.d.ts +1 -0
  208. package/lib/Splice/Round/index.js +8 -0
  209. package/lib/Splice/Round/module.d.ts +136 -0
  210. package/lib/Splice/Round/module.js +182 -0
  211. package/lib/Splice/Schedule/index.d.ts +1 -0
  212. package/lib/Splice/Schedule/index.js +8 -0
  213. package/lib/Splice/Schedule/module.d.ts +20 -0
  214. package/lib/Splice/Schedule/module.js +28 -0
  215. package/lib/Splice/Types/index.d.ts +1 -0
  216. package/lib/Splice/Types/index.js +8 -0
  217. package/lib/Splice/Types/module.d.ts +50 -0
  218. package/lib/Splice/Types/module.js +63 -0
  219. package/lib/Splice/ValidatorLicense/index.d.ts +1 -0
  220. package/lib/Splice/ValidatorLicense/index.js +8 -0
  221. package/lib/Splice/ValidatorLicense/module.d.ts +283 -0
  222. package/lib/Splice/ValidatorLicense/module.js +388 -0
  223. package/package.json +15 -3
@@ -0,0 +1,29 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.Formula = function (a) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Proposition'), value: a.decoder, }), jtv.object({tag: jtv.constant('Negation'), value: exports.Formula(a).decoder, }), jtv.object({tag: jtv.constant('Conjunction'), value: damlTypes.List(exports.Formula(a)).decoder, }), jtv.object({tag: jtv.constant('Disjunction'), value: damlTypes.List(exports.Formula(a)).decoder, })); }),
18
+ encode: function (__typed__) {
19
+ switch(__typed__.tag) {
20
+ case 'Proposition': return {tag: __typed__.tag, value: a.encode(__typed__.value)};
21
+ case 'Negation': return {tag: __typed__.tag, value: exports.Formula(a).encode(__typed__.value)};
22
+ case 'Conjunction': return {tag: __typed__.tag, value: damlTypes.List(exports.Formula(a)).encode(__typed__.value)};
23
+ case 'Disjunction': return {tag: __typed__.tag, value: damlTypes.List(exports.Formula(a)).encode(__typed__.value)};
24
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Formula';
25
+ }
26
+ }
27
+ ,
28
+ }); };
29
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,46 @@
1
+ // Generated from DA/Monoid/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type All = {
11
+ getAll: boolean;
12
+ };
13
+
14
+ export declare const All:
15
+ damlTypes.Serializable<All> & {
16
+ }
17
+ ;
18
+
19
+
20
+ export declare type Any = {
21
+ getAny: boolean;
22
+ };
23
+
24
+ export declare const Any:
25
+ damlTypes.Serializable<Any> & {
26
+ }
27
+ ;
28
+
29
+
30
+ export declare type Sum<a> = {
31
+ unpack: a;
32
+ };
33
+
34
+ export declare const Sum :
35
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Sum<a>>) & {
36
+ };
37
+
38
+
39
+ export declare type Product<a> = {
40
+ unpack: a;
41
+ };
42
+
43
+ export declare const Product :
44
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Product<a>>) & {
45
+ };
46
+
@@ -0,0 +1,61 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.All = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({getAll: damlTypes.Bool.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ getAll: damlTypes.Bool.encode(__typed__.getAll),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
26
+
27
+
28
+ exports.Any = {
29
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({getAny: damlTypes.Bool.decoder, }); }),
30
+ encode: function (__typed__) {
31
+ return {
32
+ getAny: damlTypes.Bool.encode(__typed__.getAny),
33
+ };
34
+ }
35
+ ,
36
+ };
37
+
38
+
39
+
40
+ exports.Sum = function (a) { return ({
41
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
42
+ encode: function (__typed__) {
43
+ return {
44
+ unpack: a.encode(__typed__.unpack),
45
+ };
46
+ }
47
+ ,
48
+ }); };
49
+
50
+
51
+
52
+ exports.Product = function (a) { return ({
53
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
54
+ encode: function (__typed__) {
55
+ return {
56
+ unpack: a.encode(__typed__.unpack),
57
+ };
58
+ }
59
+ ,
60
+ }); };
61
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,18 @@
1
+ // Generated from DA/NonEmpty/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type NonEmpty<a> = {
11
+ hd: a;
12
+ tl: a[];
13
+ };
14
+
15
+ export declare const NonEmpty :
16
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<NonEmpty<a>>) & {
17
+ };
18
+
@@ -0,0 +1,26 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.NonEmpty = function (a) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({hd: a.decoder, tl: damlTypes.List(a).decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ hd: a.encode(__typed__.hd),
21
+ tl: damlTypes.List(a).encode(__typed__.tl),
22
+ };
23
+ }
24
+ ,
25
+ }); };
26
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,18 @@
1
+ // Generated from DA/Random/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type Minstd =
11
+ | { tag: 'Minstd'; value: damlTypes.Int }
12
+ ;
13
+
14
+ export declare const Minstd:
15
+ damlTypes.Serializable<Minstd> & {
16
+ }
17
+ ;
18
+
@@ -0,0 +1,26 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.Minstd = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Minstd'), value: damlTypes.Int.decoder, })); }),
18
+ encode: function (__typed__) {
19
+ switch(__typed__.tag) {
20
+ case 'Minstd': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
21
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Minstd';
22
+ }
23
+ }
24
+ ,
25
+ };
26
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,26 @@
1
+ // Generated from DA/Semigroup/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type Min<a> = {
11
+ unpack: a;
12
+ };
13
+
14
+ export declare const Min :
15
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Min<a>>) & {
16
+ };
17
+
18
+
19
+ export declare type Max<a> = {
20
+ unpack: a;
21
+ };
22
+
23
+ export declare const Max :
24
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Max<a>>) & {
25
+ };
26
+
@@ -0,0 +1,37 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.Min = function (a) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ unpack: a.encode(__typed__.unpack),
21
+ };
22
+ }
23
+ ,
24
+ }); };
25
+
26
+
27
+
28
+ exports.Max = function (a) { return ({
29
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
30
+ encode: function (__typed__) {
31
+ return {
32
+ unpack: a.encode(__typed__.unpack),
33
+ };
34
+ }
35
+ ,
36
+ }); };
37
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,17 @@
1
+ // Generated from DA/Set/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type Set<k> = {
11
+ map: damlTypes.Map<k, {}>;
12
+ };
13
+
14
+ export declare const Set :
15
+ (<k>(k: damlTypes.Serializable<k>) => damlTypes.Serializable<Set<k>>) & {
16
+ };
17
+
@@ -0,0 +1,25 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.Set = function (k) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({map: damlTypes.Map(k, damlTypes.Unit).decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ map: damlTypes.Map(k, damlTypes.Unit).encode(__typed__.map),
21
+ };
22
+ }
23
+ ,
24
+ }); };
25
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,24 @@
1
+ // Generated from DA/Stack/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type SrcLoc = {
11
+ srcLocPackage: string;
12
+ srcLocModule: string;
13
+ srcLocFile: string;
14
+ srcLocStartLine: damlTypes.Int;
15
+ srcLocStartCol: damlTypes.Int;
16
+ srcLocEndLine: damlTypes.Int;
17
+ srcLocEndCol: damlTypes.Int;
18
+ };
19
+
20
+ export declare const SrcLoc:
21
+ damlTypes.Serializable<SrcLoc> & {
22
+ }
23
+ ;
24
+
@@ -0,0 +1,31 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.SrcLoc = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({srcLocPackage: damlTypes.Text.decoder, srcLocModule: damlTypes.Text.decoder, srcLocFile: damlTypes.Text.decoder, srcLocStartLine: damlTypes.Int.decoder, srcLocStartCol: damlTypes.Int.decoder, srcLocEndLine: damlTypes.Int.decoder, srcLocEndCol: damlTypes.Int.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ srcLocPackage: damlTypes.Text.encode(__typed__.srcLocPackage),
21
+ srcLocModule: damlTypes.Text.encode(__typed__.srcLocModule),
22
+ srcLocFile: damlTypes.Text.encode(__typed__.srcLocFile),
23
+ srcLocStartLine: damlTypes.Int.encode(__typed__.srcLocStartLine),
24
+ srcLocStartCol: damlTypes.Int.encode(__typed__.srcLocStartCol),
25
+ srcLocEndLine: damlTypes.Int.encode(__typed__.srcLocEndLine),
26
+ srcLocEndCol: damlTypes.Int.encode(__typed__.srcLocEndCol),
27
+ };
28
+ }
29
+ ,
30
+ };
31
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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 Types = require('./Types');
9
+ exports.Types = Types;
@@ -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,18 @@
1
+ // Generated from DA/Time/Types.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
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ export declare type RelTime = {
11
+ microseconds: damlTypes.Int;
12
+ };
13
+
14
+ export declare const RelTime:
15
+ damlTypes.Serializable<RelTime> & {
16
+ }
17
+ ;
18
+
@@ -0,0 +1,25 @@
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
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+
16
+ exports.RelTime = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({microseconds: damlTypes.Int.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ microseconds: damlTypes.Int.encode(__typed__.microseconds),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;