@fairmint/open-captable-protocol-daml-js 0.2.11 → 0.2.13

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 (243) hide show
  1. package/README.md +154 -3
  2. package/generated/ocp-factory-contract-id.json +4 -4
  3. package/generated/subscriptions-factory-contract-id.json +10 -0
  4. package/generated/subscriptions-factory-contract-id.json.d.ts +11 -0
  5. package/lib/DA/Date/Types/index.d.ts +1 -0
  6. package/lib/DA/Date/Types/index.js +8 -0
  7. package/lib/DA/Date/Types/module.d.ts +47 -0
  8. package/lib/DA/Date/Types/module.js +48 -0
  9. package/lib/DA/Date/index.d.ts +2 -0
  10. package/lib/DA/Date/index.js +9 -0
  11. package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
  12. package/lib/DA/Exception/ArithmeticError/index.js +8 -0
  13. package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
  14. package/lib/DA/Exception/ArithmeticError/module.js +25 -0
  15. package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
  16. package/lib/DA/Exception/AssertionFailed/index.js +8 -0
  17. package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
  18. package/lib/DA/Exception/AssertionFailed/module.js +25 -0
  19. package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
  20. package/lib/DA/Exception/GeneralError/index.js +8 -0
  21. package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
  22. package/lib/DA/Exception/GeneralError/module.js +25 -0
  23. package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
  24. package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
  25. package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
  26. package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
  27. package/lib/DA/Exception/index.d.ts +2 -0
  28. package/lib/DA/Exception/index.js +9 -0
  29. package/lib/DA/Internal/Down/index.d.ts +1 -0
  30. package/lib/DA/Internal/Down/index.js +8 -0
  31. package/lib/DA/Internal/Down/module.d.ts +17 -0
  32. package/lib/DA/Internal/Down/module.js +25 -0
  33. package/lib/DA/Logic/Types/index.d.ts +1 -0
  34. package/lib/DA/Logic/Types/index.js +8 -0
  35. package/lib/DA/Logic/Types/module.d.ts +20 -0
  36. package/lib/DA/Logic/Types/module.js +29 -0
  37. package/lib/DA/Logic/index.d.ts +2 -0
  38. package/lib/DA/Logic/index.js +9 -0
  39. package/lib/DA/Monoid/Types/index.d.ts +1 -0
  40. package/lib/DA/Monoid/Types/index.js +8 -0
  41. package/lib/DA/Monoid/Types/module.d.ts +46 -0
  42. package/lib/DA/Monoid/Types/module.js +61 -0
  43. package/lib/DA/Monoid/index.d.ts +2 -0
  44. package/lib/DA/Monoid/index.js +9 -0
  45. package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
  46. package/lib/DA/NonEmpty/Types/index.js +8 -0
  47. package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
  48. package/lib/DA/NonEmpty/Types/module.js +26 -0
  49. package/lib/DA/NonEmpty/index.d.ts +2 -0
  50. package/lib/DA/NonEmpty/index.js +9 -0
  51. package/lib/DA/Random/Types/index.d.ts +1 -0
  52. package/lib/DA/Random/Types/index.js +8 -0
  53. package/lib/DA/Random/Types/module.d.ts +18 -0
  54. package/lib/DA/Random/Types/module.js +26 -0
  55. package/lib/DA/Random/index.d.ts +2 -0
  56. package/lib/DA/Random/index.js +9 -0
  57. package/lib/DA/Semigroup/Types/index.d.ts +1 -0
  58. package/lib/DA/Semigroup/Types/index.js +8 -0
  59. package/lib/DA/Semigroup/Types/module.d.ts +26 -0
  60. package/lib/DA/Semigroup/Types/module.js +37 -0
  61. package/lib/DA/Semigroup/index.d.ts +2 -0
  62. package/lib/DA/Semigroup/index.js +9 -0
  63. package/lib/DA/Set/Types/index.d.ts +1 -0
  64. package/lib/DA/Set/Types/index.js +8 -0
  65. package/lib/DA/Set/Types/module.d.ts +17 -0
  66. package/lib/DA/Set/Types/module.js +25 -0
  67. package/lib/DA/Set/index.d.ts +2 -0
  68. package/lib/DA/Set/index.js +9 -0
  69. package/lib/DA/Stack/Types/index.d.ts +1 -0
  70. package/lib/DA/Stack/Types/index.js +8 -0
  71. package/lib/DA/Stack/Types/module.d.ts +24 -0
  72. package/lib/DA/Stack/Types/module.js +31 -0
  73. package/lib/DA/Stack/index.d.ts +2 -0
  74. package/lib/DA/Stack/index.js +9 -0
  75. package/lib/DA/Time/Types/index.d.ts +1 -0
  76. package/lib/DA/Time/Types/index.js +8 -0
  77. package/lib/DA/Time/Types/module.d.ts +18 -0
  78. package/lib/DA/Time/Types/module.js +25 -0
  79. package/lib/DA/Time/index.d.ts +2 -0
  80. package/lib/DA/Time/index.js +9 -0
  81. package/lib/DA/Types/index.d.ts +1 -0
  82. package/lib/DA/Types/index.js +8 -0
  83. package/lib/DA/Types/module.d.ts +379 -0
  84. package/lib/DA/Types/module.js +445 -0
  85. package/lib/DA/Validation/Types/index.d.ts +1 -0
  86. package/lib/DA/Validation/Types/index.js +8 -0
  87. package/lib/DA/Validation/Types/module.d.ts +20 -0
  88. package/lib/DA/Validation/Types/module.js +29 -0
  89. package/lib/DA/Validation/index.d.ts +2 -0
  90. package/lib/DA/Validation/index.js +9 -0
  91. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.d.ts +1 -1
  92. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +2 -2
  93. package/lib/Fairmint/OpenCapTable/Document/module.d.ts +1 -1
  94. package/lib/Fairmint/OpenCapTable/Document/module.js +2 -2
  95. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.d.ts +1 -1
  96. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +2 -2
  97. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.d.ts +1 -1
  98. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +2 -2
  99. package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +2 -2
  100. package/lib/Fairmint/OpenCapTable/Issuer/module.js +4 -4
  101. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
  102. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
  103. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
  104. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +2 -2
  105. package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
  106. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
  107. package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +1 -1
  108. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +2 -2
  109. package/lib/Fairmint/OpenCapTable/StockCancellation/module.d.ts +1 -1
  110. package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +2 -2
  111. package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +1 -1
  112. package/lib/Fairmint/OpenCapTable/StockClass/module.js +2 -2
  113. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
  114. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +2 -2
  115. package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +1 -1
  116. package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +2 -2
  117. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +1 -1
  118. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +2 -2
  119. package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +1 -1
  120. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +2 -2
  121. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.d.ts +1 -1
  122. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +2 -2
  123. package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +1 -1
  124. package/lib/Fairmint/OpenCapTable/Valuation/module.js +2 -2
  125. package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +1 -1
  126. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +2 -2
  127. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.d.ts +1 -1
  128. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +2 -2
  129. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.d.ts +1 -0
  130. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.js +8 -0
  131. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +75 -0
  132. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +124 -0
  133. package/lib/Fairmint/Subscriptions/Subscription/index.d.ts +1 -0
  134. package/lib/Fairmint/Subscriptions/Subscription/index.js +8 -0
  135. package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +246 -0
  136. package/lib/Fairmint/Subscriptions/Subscription/module.js +400 -0
  137. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.d.ts +1 -0
  138. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.js +8 -0
  139. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +59 -0
  140. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +73 -0
  141. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.d.ts +1 -0
  142. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.js +8 -0
  143. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +45 -0
  144. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +67 -0
  145. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.d.ts +1 -0
  146. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.js +8 -0
  147. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +75 -0
  148. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +124 -0
  149. package/lib/Fairmint/Subscriptions/index.d.ts +10 -0
  150. package/lib/Fairmint/Subscriptions/index.js +17 -0
  151. package/lib/Fairmint/index.d.ts +1 -0
  152. package/lib/Fairmint/index.js +2 -0
  153. package/lib/Splice/Amulet/TokenApiUtils/index.d.ts +1 -0
  154. package/lib/Splice/Amulet/TokenApiUtils/index.js +8 -0
  155. package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +24 -0
  156. package/lib/Splice/Amulet/TokenApiUtils/module.js +27 -0
  157. package/lib/Splice/Amulet/TwoStepTransfer/index.d.ts +1 -0
  158. package/lib/Splice/Amulet/TwoStepTransfer/index.js +8 -0
  159. package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +26 -0
  160. package/lib/Splice/Amulet/TwoStepTransfer/module.js +33 -0
  161. package/lib/Splice/Amulet/index.d.ts +5 -0
  162. package/lib/Splice/Amulet/index.js +12 -0
  163. package/lib/Splice/Amulet/module.d.ts +588 -0
  164. package/lib/Splice/Amulet/module.js +814 -0
  165. package/lib/Splice/AmuletAllocation/index.d.ts +1 -0
  166. package/lib/Splice/AmuletAllocation/index.js +8 -0
  167. package/lib/Splice/AmuletAllocation/module.d.ts +35 -0
  168. package/lib/Splice/AmuletAllocation/module.js +49 -0
  169. package/lib/Splice/AmuletConfig/index.d.ts +1 -0
  170. package/lib/Splice/AmuletConfig/index.js +8 -0
  171. package/lib/Splice/AmuletConfig/module.d.ts +83 -0
  172. package/lib/Splice/AmuletConfig/module.js +92 -0
  173. package/lib/Splice/AmuletRules/index.d.ts +1 -0
  174. package/lib/Splice/AmuletRules/index.js +8 -0
  175. package/lib/Splice/AmuletRules/module.d.ts +1040 -0
  176. package/lib/Splice/AmuletRules/module.js +1441 -0
  177. package/lib/Splice/AmuletTransferInstruction/index.d.ts +1 -0
  178. package/lib/Splice/AmuletTransferInstruction/index.js +8 -0
  179. package/lib/Splice/AmuletTransferInstruction/module.d.ts +35 -0
  180. package/lib/Splice/AmuletTransferInstruction/module.js +49 -0
  181. package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
  182. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
  183. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +149 -0
  184. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
  185. package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
  186. package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
  187. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +153 -0
  188. package/lib/Splice/Api/Token/AllocationV1/module.js +206 -0
  189. package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
  190. package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
  191. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +60 -0
  192. package/lib/Splice/Api/Token/HoldingV1/module.js +76 -0
  193. package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
  194. package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
  195. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +91 -0
  196. package/lib/Splice/Api/Token/MetadataV1/module.js +114 -0
  197. package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
  198. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
  199. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +202 -0
  200. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
  201. package/lib/Splice/Api/Token/index.d.ts +2 -0
  202. package/lib/Splice/Api/Token/index.js +9 -0
  203. package/lib/Splice/DecentralizedSynchronizer/index.d.ts +1 -0
  204. package/lib/Splice/DecentralizedSynchronizer/index.js +8 -0
  205. package/lib/Splice/DecentralizedSynchronizer/module.d.ts +89 -0
  206. package/lib/Splice/DecentralizedSynchronizer/module.js +110 -0
  207. package/lib/Splice/Expiry/index.d.ts +1 -0
  208. package/lib/Splice/Expiry/index.js +8 -0
  209. package/lib/Splice/Expiry/module.d.ts +30 -0
  210. package/lib/Splice/Expiry/module.js +41 -0
  211. package/lib/Splice/ExternalPartyAmuletRules/index.d.ts +1 -0
  212. package/lib/Splice/ExternalPartyAmuletRules/index.js +8 -0
  213. package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +210 -0
  214. package/lib/Splice/ExternalPartyAmuletRules/module.js +294 -0
  215. package/lib/Splice/Fees/index.d.ts +1 -0
  216. package/lib/Splice/Fees/index.js +8 -0
  217. package/lib/Splice/Fees/module.d.ts +65 -0
  218. package/lib/Splice/Fees/module.js +80 -0
  219. package/lib/Splice/Issuance/index.d.ts +1 -0
  220. package/lib/Splice/Issuance/index.js +8 -0
  221. package/lib/Splice/Issuance/module.d.ts +67 -0
  222. package/lib/Splice/Issuance/module.js +80 -0
  223. package/lib/Splice/RelRound/index.d.ts +1 -0
  224. package/lib/Splice/RelRound/index.js +8 -0
  225. package/lib/Splice/RelRound/module.d.ts +18 -0
  226. package/lib/Splice/RelRound/module.js +25 -0
  227. package/lib/Splice/Round/index.d.ts +1 -0
  228. package/lib/Splice/Round/index.js +8 -0
  229. package/lib/Splice/Round/module.d.ts +136 -0
  230. package/lib/Splice/Round/module.js +182 -0
  231. package/lib/Splice/Schedule/index.d.ts +1 -0
  232. package/lib/Splice/Schedule/index.js +8 -0
  233. package/lib/Splice/Schedule/module.d.ts +20 -0
  234. package/lib/Splice/Schedule/module.js +28 -0
  235. package/lib/Splice/Types/index.d.ts +1 -0
  236. package/lib/Splice/Types/index.js +8 -0
  237. package/lib/Splice/Types/module.d.ts +50 -0
  238. package/lib/Splice/Types/module.js +63 -0
  239. package/lib/Splice/ValidatorLicense/index.d.ts +1 -0
  240. package/lib/Splice/ValidatorLicense/index.js +8 -0
  241. package/lib/Splice/ValidatorLicense/module.d.ts +283 -0
  242. package/lib/Splice/ValidatorLicense/module.js +388 -0
  243. package/package.json +15 -3
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ## Shared Coding Guidelines for OCP DAML Packages
2
2
 
3
- This repository contains multiple DAML packages (e.g., `OpenCapTable-v24`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `OpenCapTableShared-v01`). This document defines coding guidelines that apply to all packages.
3
+ This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `Shared-v01`, `Subscriptions-v01`). This document defines coding guidelines that apply to all packages.
4
4
 
5
- For package-specific details about each implementation, see the README.md file in the respective package directory (e.g., `open-captable-protocol-daml/OpenCapTable-v24/README.md`).
5
+ For package-specific details about each implementation, see the README.md file in the respective package directory (e.g., `open-captable-protocol-daml/OpenCapTable-v25/README.md`).
6
6
 
7
7
  ### Global exceptions
8
8
 
@@ -59,7 +59,158 @@ validateOcfThing t = t.field /= ""
59
59
 
60
60
  Each package may include additional constraints and domain guidance. Refer to:
61
61
 
62
- - `open-captable-protocol-daml/OpenCapTable-v24/README.md` for Open Cap Table specifics (e.g., Issuer management patterns).
62
+ - `open-captable-protocol-daml/OpenCapTable-v25/README.md` for Open Cap Table specifics (e.g., Issuer management patterns).
63
63
  - Other package READMEs as applicable.
64
64
 
65
+ ## Adding Support for New Packages
66
+
67
+ When adding a new DAML package to this repository (e.g., `NewPackage-v01`), follow these steps to ensure full integration with the build, deployment, and publishing pipeline:
68
+
69
+ ### 1. Create the Package Directory
70
+
71
+ Create a new directory at the root level with your package name and version (e.g., `NewPackage-v01/`).
72
+
73
+ ### 2. Set Up Package Structure
74
+
75
+ - Create `daml.yaml` with proper configuration
76
+ - Add your DAML modules under `daml/` directory
77
+ - Create a package-specific `README.md` documenting the package purpose and usage
78
+
79
+ ### 3. Update Build Scripts
80
+
81
+ Update the following files to include your new package:
82
+
83
+ #### `package.json`
84
+ - **codegen script**: Add codegen step for your package in the `codegen` script
85
+ ```
86
+ cd NewPackage-v01 && daml codegen js && cd ..
87
+ ```
88
+ - **upload-dar script**: Add new script for uploading DAR files
89
+ ```json
90
+ "upload-dar:newpackage": "npm run build && ts-node scripts/upload-dar-newpackage.ts --network devnet && ts-node scripts/upload-dar-newpackage.ts --network mainnet"
91
+ ```
92
+ - **create-factory script**: Add new script for creating factory contracts
93
+ ```json
94
+ "create-factory:newpackage": "npm run codegen && ts-node scripts/create-newpackage-factory.ts --network devnet && ts-node scripts/create-newpackage-factory.ts --network mainnet"
95
+ ```
96
+ - **upload-and-create script**: Add combined script
97
+ ```json
98
+ "upload-and-create:newpackage": "npm run upload-dar:newpackage && npm run create-factory:newpackage"
99
+ ```
100
+ - **exports**: Add export for factory contract ID JSON
101
+ ```json
102
+ "./newpackage-factory-contract-id.json": {
103
+ "types": "./generated/newpackage-factory-contract-id.json.d.ts",
104
+ "default": "./generated/newpackage-factory-contract-id.json"
105
+ }
106
+ ```
107
+ - **files**: Add generated files to the npm package
108
+ ```json
109
+ "generated/newpackage-factory-contract-id.json",
110
+ "generated/newpackage-factory-contract-id.json.d.ts"
111
+ ```
112
+ - **typesVersions**: Add type definitions for JSON imports
113
+ ```json
114
+ "newpackage-factory-contract-id.json": [
115
+ "generated/newpackage-factory-contract-id.json.d.ts"
116
+ ]
117
+ ```
118
+
119
+ #### `scripts/bundle-dependencies.ts`
120
+ Add your package directory to the `PACKAGE_DIRS` array:
121
+ ```typescript
122
+ const PACKAGE_DIRS = [
123
+ path.join(__dirname, '../generated/js/OpenCapTable-v25-0.0.1'),
124
+ path.join(__dirname, '../generated/js/OpenCapTableReports-v01-0.0.2'),
125
+ path.join(__dirname, '../generated/js/NewPackage-v01-0.0.1'),
126
+ ];
127
+ ```
128
+
129
+ #### `scripts/create-package-index.ts`
130
+ Add your package directory to the `packageDirs` array:
131
+ ```typescript
132
+ const packageDirs = [
133
+ path.join(__dirname, '..', 'generated', 'js', 'OpenCapTable-v25-0.0.1'),
134
+ path.join(__dirname, '..', 'generated', 'js', 'OpenCapTableReports-v01-0.0.2'),
135
+ path.join(__dirname, '..', 'generated', 'js', 'NewPackage-v01-0.0.1'),
136
+ ];
137
+ ```
138
+
139
+ #### `scripts/create-root-index.ts`
140
+ 1. Add constants for your package directories:
141
+ ```typescript
142
+ const NEWPACKAGE_DIR = path.join(ROOT_DIR, 'generated', 'js', 'NewPackage-v01-0.0.1');
143
+ const NEWPACKAGE_LIB = path.join(NEWPACKAGE_DIR, 'lib');
144
+ ```
145
+
146
+ 2. Copy your package namespace in `buildCombinedLib()`:
147
+ ```typescript
148
+ copyDir(path.join(NEWPACKAGE_LIB, 'Fairmint', 'NewPackage'), path.join(destFairmint, 'NewPackage'));
149
+ ```
150
+
151
+ 3. Update Fairmint index files to export your namespace:
152
+ ```typescript
153
+ // In index.js:
154
+ var NewPackage = require('./NewPackage');
155
+ exports.NewPackage = NewPackage;
156
+
157
+ // In index.d.ts:
158
+ export * as NewPackage from './NewPackage';
159
+ ```
160
+
161
+ 4. Add JSON type definition in `ensureJsonDts()`:
162
+ ```typescript
163
+ ensureJson(
164
+ path.join(ROOT_DIR, 'generated', 'newpackage-factory-contract-id.json'),
165
+ path.join(ROOT_DIR, 'generated', 'newpackage-factory-contract-id.json.d.ts'),
166
+ `declare const data: {\n devnet: {\n newpackageFactoryContractId: string;\n templateId: string;\n };\n mainnet: {\n newpackageFactoryContractId: string;\n templateId: string;\n };\n};\nexport default data;\n`
167
+ );
168
+ ```
169
+
170
+ ### 4. Create Deployment Scripts
171
+
172
+ Create two new scripts in the `scripts/` directory:
173
+
174
+ #### `scripts/upload-dar-newpackage.ts`
175
+ Upload the DAR file to both devnet and mainnet. Use existing scripts as templates (e.g., `upload-dar-reports.ts`).
176
+
177
+ Key elements:
178
+ - Parse `--network` argument
179
+ - Upload to both `intellect` and `5n` providers
180
+ - Point to correct DAR file path: `NewPackage-v01/.daml/dist/NewPackage-v01-{version}.dar`
181
+
182
+ #### `scripts/create-newpackage-factory.ts`
183
+ Create factory contract on both networks. Use existing factory scripts as templates.
184
+
185
+ Key elements:
186
+ - Import generated DAML types from `../lib`
187
+ - Create factory contract with appropriate arguments
188
+ - Save contract ID to `generated/newpackage-factory-contract-id.json`
189
+ - Include proper error handling and network argument parsing
190
+
191
+ ### 5. Test the Integration
192
+
193
+ 1. Build DAML packages:
194
+ ```bash
195
+ npm run build
196
+ ```
197
+
198
+ 2. Generate JavaScript bindings:
199
+ ```bash
200
+ npm run codegen
201
+ ```
202
+
203
+ 3. Verify generated files exist in `lib/Fairmint/NewPackage/`
204
+
205
+ 4. Test deployment scripts:
206
+ ```bash
207
+ npm run upload-and-create:newpackage
208
+ ```
209
+
210
+ ### 6. Update Documentation
211
+
212
+ - Add package to the list in this README's introduction
213
+ - Create package-specific README with domain guidance
214
+ - Document any new contract templates and their usage
215
+
65
216
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "mainnet": {
3
- "ocpFactoryContractId": "00066a89eb52640119ecf1bb38fc8805dae7bf91c51a3a04cf255473da83ef9411ca111220f742c1b52e188f6527968ed4b1d619723b2a5c77cbbf951d69451865a286dd2a",
4
- "templateId": "2a4643064cabdaa1562186b34da3c4de4e3a0b03c82a66d634e8fc4bd974aaa5:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
3
+ "ocpFactoryContractId": "00183cc3d100b6011a5cec22d09e83a868a22bf94c278714586c7a68e07de18147ca1112203b9ce41645cd73a0c4c4baa988e03e3b564c4ca4d2297689deb6790336feb531",
4
+ "templateId": "e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
5
5
  },
6
6
  "devnet": {
7
- "ocpFactoryContractId": "0008445a5f27c41693da6015a9653091fcc04f1128838c579f8baf2b7347e8b247ca111220db07a840f5ad0d253ea16d9143d44680be2eb4276073c08a04b22bac037c3905",
8
- "templateId": "2a4643064cabdaa1562186b34da3c4de4e3a0b03c82a66d634e8fc4bd974aaa5:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
7
+ "ocpFactoryContractId": "0053aaae8102e24b36cbaf751ac89ed6d30864ac475dfc094705adc3f95690a8d6ca111220e8ba67b332c676fa79d649b59fa7346e500d892042e9ebef32dfcaa82bbba941",
8
+ "templateId": "e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
9
9
  }
10
10
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "devnet": {
3
+ "subscriptionsFactoryContractId": "00a88d2532d3a1eeca551f895f7e42b963fce25387e88bdf618f6c3abdc6519277ca11122031a4f76884bb1c68586255ecee3628d4547d0e1b2dc790b190553fbc495d0ad4",
4
+ "templateId": "7c5c5dcf112c1fb3bd1fc92d94f106f45d291dcbf4c27ec9263adea0bfd5b2d8:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
5
+ },
6
+ "mainnet": {
7
+ "subscriptionsFactoryContractId": "005f428e6ff720cc3ffdfd8ebe7d67e4fc5a8c17176a17847750ef429f9adf39b7ca111220a6e9141981d17bb8266d4b090418b28362fc668789be61276add750008485c51",
8
+ "templateId": "7c5c5dcf112c1fb3bd1fc92d94f106f45d291dcbf4c27ec9263adea0bfd5b2d8:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
9
+ }
10
+ }
@@ -0,0 +1,11 @@
1
+ declare const data: {
2
+ devnet: {
3
+ subscriptionsFactoryContractId: string;
4
+ templateId: string;
5
+ };
6
+ mainnet: {
7
+ subscriptionsFactoryContractId: string;
8
+ templateId: string;
9
+ };
10
+ };
11
+ export default data;
@@ -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,47 @@
1
+ // Generated from DA/Date/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 DayOfWeek =
11
+ | 'Monday'
12
+ | 'Tuesday'
13
+ | 'Wednesday'
14
+ | 'Thursday'
15
+ | 'Friday'
16
+ | 'Saturday'
17
+ | 'Sunday'
18
+ ;
19
+
20
+ export declare const DayOfWeek:
21
+ damlTypes.Serializable<DayOfWeek> & {
22
+ }
23
+ & { readonly keys: DayOfWeek[] } & { readonly [e in DayOfWeek]: e }
24
+ ;
25
+
26
+
27
+ export declare type Month =
28
+ | 'Jan'
29
+ | 'Feb'
30
+ | 'Mar'
31
+ | 'Apr'
32
+ | 'May'
33
+ | 'Jun'
34
+ | 'Jul'
35
+ | 'Aug'
36
+ | 'Sep'
37
+ | 'Oct'
38
+ | 'Nov'
39
+ | 'Dec'
40
+ ;
41
+
42
+ export declare const Month:
43
+ damlTypes.Serializable<Month> & {
44
+ }
45
+ & { readonly keys: Month[] } & { readonly [e in Month]: e }
46
+ ;
47
+
@@ -0,0 +1,48 @@
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.DayOfWeek = {
17
+ Monday: 'Monday',
18
+ Tuesday: 'Tuesday',
19
+ Wednesday: 'Wednesday',
20
+ Thursday: 'Thursday',
21
+ Friday: 'Friday',
22
+ Saturday: 'Saturday',
23
+ Sunday: 'Sunday',
24
+ keys: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday',],
25
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.DayOfWeek.Monday), jtv.constant(exports.DayOfWeek.Tuesday), jtv.constant(exports.DayOfWeek.Wednesday), jtv.constant(exports.DayOfWeek.Thursday), jtv.constant(exports.DayOfWeek.Friday), jtv.constant(exports.DayOfWeek.Saturday), jtv.constant(exports.DayOfWeek.Sunday)); }),
26
+ encode: function (__typed__) { return __typed__; },
27
+ };
28
+
29
+
30
+
31
+ exports.Month = {
32
+ Jan: 'Jan',
33
+ Feb: 'Feb',
34
+ Mar: 'Mar',
35
+ Apr: 'Apr',
36
+ May: 'May',
37
+ Jun: 'Jun',
38
+ Jul: 'Jul',
39
+ Aug: 'Aug',
40
+ Sep: 'Sep',
41
+ Oct: 'Oct',
42
+ Nov: 'Nov',
43
+ Dec: 'Dec',
44
+ keys: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',],
45
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.Month.Jan), jtv.constant(exports.Month.Feb), jtv.constant(exports.Month.Mar), jtv.constant(exports.Month.Apr), jtv.constant(exports.Month.May), jtv.constant(exports.Month.Jun), jtv.constant(exports.Month.Jul), jtv.constant(exports.Month.Aug), jtv.constant(exports.Month.Sep), jtv.constant(exports.Month.Oct), jtv.constant(exports.Month.Nov), jtv.constant(exports.Month.Dec)); }),
46
+ encode: function (__typed__) { return __typed__; },
47
+ };
48
+
@@ -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/Exception/ArithmeticError.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 ArithmeticError = {
11
+ message: string;
12
+ };
13
+
14
+ export declare const ArithmeticError:
15
+ damlTypes.Serializable<ArithmeticError> & {
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.ArithmeticError = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ message: damlTypes.Text.encode(__typed__.message),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
@@ -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/Exception/AssertionFailed.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 AssertionFailed = {
11
+ message: string;
12
+ };
13
+
14
+ export declare const AssertionFailed:
15
+ damlTypes.Serializable<AssertionFailed> & {
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.AssertionFailed = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ message: damlTypes.Text.encode(__typed__.message),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
@@ -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/Exception/GeneralError.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 GeneralError = {
11
+ message: string;
12
+ };
13
+
14
+ export declare const GeneralError:
15
+ damlTypes.Serializable<GeneralError> & {
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.GeneralError = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ message: damlTypes.Text.encode(__typed__.message),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
@@ -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/Exception/PreconditionFailed.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 PreconditionFailed = {
11
+ message: string;
12
+ };
13
+
14
+ export declare const PreconditionFailed:
15
+ damlTypes.Serializable<PreconditionFailed> & {
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.PreconditionFailed = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ message: damlTypes.Text.encode(__typed__.message),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
@@ -0,0 +1,2 @@
1
+ import * as PreconditionFailed from './PreconditionFailed';
2
+ export { PreconditionFailed } ;
@@ -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 PreconditionFailed = require('./PreconditionFailed');
9
+ exports.PreconditionFailed = PreconditionFailed;
@@ -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/Internal/Down.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 Down<a> = {
11
+ unpack: a;
12
+ };
13
+
14
+ export declare const Down :
15
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Down<a>>) & {
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.Down = 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
+
@@ -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'));