@fairmint/open-captable-protocol-daml-js 0.3.4 → 0.3.5

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 (269) hide show
  1. package/lib/DA/Internal/Template/module.d.ts +4 -6
  2. package/lib/DA/Internal/Template/module.js +7 -7
  3. package/lib/DA/Set/Types/index.js +1 -0
  4. package/lib/DA/Set/Types/module.d.ts +6 -7
  5. package/lib/DA/Set/Types/module.js +15 -11
  6. package/lib/DA/Set/index.d.ts +2 -1
  7. package/lib/DA/Set/index.js +2 -0
  8. package/lib/DA/Time/Types/index.js +1 -0
  9. package/lib/DA/Time/Types/module.d.ts +5 -7
  10. package/lib/DA/Time/Types/module.js +10 -8
  11. package/lib/DA/Time/index.d.ts +2 -1
  12. package/lib/DA/Time/index.js +2 -0
  13. package/lib/DA/Types/index.js +1 -0
  14. package/lib/DA/Types/module.d.ts +305 -344
  15. package/lib/DA/Types/module.js +689 -431
  16. package/lib/Fairmint/OpenCapTable/CapTable/index.js +1 -0
  17. package/lib/Fairmint/OpenCapTable/CapTable/module.d.ts +336 -358
  18. package/lib/Fairmint/OpenCapTable/CapTable/module.js +1286 -406
  19. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/index.js +1 -0
  20. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +21 -25
  21. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +71 -59
  22. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/index.js +1 -0
  23. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.d.ts +17 -22
  24. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +49 -40
  25. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/index.js +1 -0
  26. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.d.ts +20 -25
  27. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +55 -43
  28. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/index.js +1 -0
  29. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.d.ts +23 -28
  30. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +61 -46
  31. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/index.js +1 -0
  32. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.d.ts +42 -50
  33. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +97 -68
  34. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/index.js +1 -0
  35. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.d.ts +18 -23
  36. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +51 -41
  37. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/index.js +1 -0
  38. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.d.ts +21 -26
  39. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +57 -44
  40. package/lib/Fairmint/OpenCapTable/OCF/Document/index.js +1 -0
  41. package/lib/Fairmint/OpenCapTable/OCF/Document/module.d.ts +39 -51
  42. package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +134 -64
  43. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/index.js +1 -0
  44. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.d.ts +17 -22
  45. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +49 -40
  46. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/index.js +1 -0
  47. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.d.ts +20 -25
  48. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +55 -43
  49. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/index.js +1 -0
  50. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.d.ts +20 -25
  51. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +55 -43
  52. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/index.js +1 -0
  53. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.d.ts +34 -39
  54. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +83 -57
  55. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/index.js +1 -0
  56. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.d.ts +22 -27
  57. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +59 -45
  58. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/index.js +1 -0
  59. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.d.ts +18 -23
  60. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +51 -41
  61. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/index.js +1 -0
  62. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.d.ts +18 -23
  63. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +51 -41
  64. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/index.js +1 -0
  65. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.d.ts +21 -26
  66. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +57 -44
  67. package/lib/Fairmint/OpenCapTable/OCF/Issuer/index.js +1 -0
  68. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.d.ts +26 -31
  69. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +67 -49
  70. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/index.js +1 -0
  71. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.d.ts +20 -25
  72. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +55 -43
  73. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/index.js +1 -0
  74. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.d.ts +54 -76
  75. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +132 -95
  76. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/index.js +1 -0
  77. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.d.ts +19 -24
  78. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +53 -42
  79. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/index.js +1 -0
  80. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.d.ts +18 -23
  81. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +51 -41
  82. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/index.js +1 -0
  83. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.d.ts +17 -22
  84. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +49 -40
  85. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/index.js +1 -0
  86. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.d.ts +20 -25
  87. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +55 -43
  88. package/lib/Fairmint/OpenCapTable/OCF/StockClass/index.js +1 -0
  89. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.d.ts +28 -33
  90. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +71 -51
  91. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/index.js +1 -0
  92. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.d.ts +20 -25
  93. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +55 -43
  94. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/index.js +1 -0
  95. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.d.ts +18 -23
  96. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +51 -41
  97. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/index.js +1 -0
  98. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.d.ts +18 -23
  99. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +51 -41
  100. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/index.js +1 -0
  101. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.d.ts +19 -24
  102. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +53 -42
  103. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/index.js +1 -0
  104. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.d.ts +20 -25
  105. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +55 -43
  106. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/index.js +1 -0
  107. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.d.ts +35 -44
  108. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +88 -60
  109. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/index.js +1 -0
  110. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.d.ts +17 -22
  111. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +49 -40
  112. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/index.js +1 -0
  113. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.d.ts +23 -32
  114. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +66 -48
  115. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/index.js +1 -0
  116. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.d.ts +20 -25
  117. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +55 -43
  118. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/index.js +1 -0
  119. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.d.ts +20 -25
  120. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +55 -43
  121. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/index.js +1 -0
  122. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.d.ts +20 -25
  123. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +55 -43
  124. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/index.js +1 -0
  125. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.d.ts +21 -26
  126. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +57 -44
  127. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/index.js +1 -0
  128. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.d.ts +18 -23
  129. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +51 -41
  130. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/index.js +1 -0
  131. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.d.ts +21 -26
  132. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +57 -44
  133. package/lib/Fairmint/OpenCapTable/OCF/Valuation/index.js +1 -0
  134. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.d.ts +24 -33
  135. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +65 -49
  136. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/index.js +1 -0
  137. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.d.ts +19 -24
  138. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +53 -42
  139. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/index.js +1 -0
  140. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.d.ts +18 -23
  141. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +51 -41
  142. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/index.js +1 -0
  143. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.d.ts +18 -23
  144. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +51 -41
  145. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/index.js +1 -0
  146. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.d.ts +86 -119
  147. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +252 -157
  148. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/index.js +1 -0
  149. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.d.ts +17 -22
  150. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +49 -40
  151. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/index.js +1 -0
  152. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.d.ts +20 -25
  153. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +55 -43
  154. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/index.js +1 -0
  155. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.d.ts +21 -26
  156. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +57 -44
  157. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/index.js +1 -0
  158. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.d.ts +31 -36
  159. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +77 -54
  160. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/index.js +1 -0
  161. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.d.ts +18 -23
  162. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +51 -41
  163. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/index.js +1 -0
  164. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.d.ts +21 -26
  165. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +57 -44
  166. package/lib/Fairmint/OpenCapTable/OCF/index.d.ts +49 -48
  167. package/lib/Fairmint/OpenCapTable/OCF/index.js +49 -47
  168. package/lib/Fairmint/OpenCapTable/OcpFactory/index.js +1 -0
  169. package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +15 -18
  170. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +50 -41
  171. package/lib/Fairmint/OpenCapTable/Types/Contact/index.js +1 -0
  172. package/lib/Fairmint/OpenCapTable/Types/Contact/module.d.ts +14 -27
  173. package/lib/Fairmint/OpenCapTable/Types/Contact/module.js +40 -26
  174. package/lib/Fairmint/OpenCapTable/Types/Conversion/index.js +1 -0
  175. package/lib/Fairmint/OpenCapTable/Types/Conversion/module.d.ts +252 -361
  176. package/lib/Fairmint/OpenCapTable/Types/Conversion/module.js +602 -396
  177. package/lib/Fairmint/OpenCapTable/Types/Core/index.js +1 -0
  178. package/lib/Fairmint/OpenCapTable/Types/Core/module.d.ts +13 -18
  179. package/lib/Fairmint/OpenCapTable/Types/Core/module.js +25 -20
  180. package/lib/Fairmint/OpenCapTable/Types/Monetary/index.js +1 -0
  181. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.d.ts +23 -35
  182. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.js +52 -37
  183. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/index.js +1 -0
  184. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.d.ts +4 -7
  185. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.js +19 -4
  186. package/lib/Fairmint/OpenCapTable/Types/Stock/index.js +1 -0
  187. package/lib/Fairmint/OpenCapTable/Types/Stock/module.d.ts +56 -90
  188. package/lib/Fairmint/OpenCapTable/Types/Stock/module.js +132 -86
  189. package/lib/Fairmint/OpenCapTable/Types/Vesting/index.js +1 -0
  190. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.d.ts +37 -57
  191. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.js +90 -56
  192. package/lib/Fairmint/OpenCapTable/Types/index.d.ts +8 -7
  193. package/lib/Fairmint/OpenCapTable/Types/index.js +8 -6
  194. package/lib/Fairmint/OpenCapTable/index.d.ts +6 -5
  195. package/lib/Fairmint/OpenCapTable/index.js +6 -4
  196. package/lib/Splice/Amulet/TokenApiUtils/index.js +1 -0
  197. package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +4 -7
  198. package/lib/Splice/Amulet/TokenApiUtils/module.js +12 -4
  199. package/lib/Splice/Amulet/TwoStepTransfer/index.js +1 -0
  200. package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +13 -15
  201. package/lib/Splice/Amulet/TwoStepTransfer/module.js +26 -16
  202. package/lib/Splice/Amulet/index.d.ts +4 -2
  203. package/lib/Splice/Amulet/index.js +4 -1
  204. package/lib/Splice/Amulet/module.d.ts +370 -487
  205. package/lib/Splice/Amulet/module.js +996 -817
  206. package/lib/Splice/AmuletAllocation/index.js +1 -0
  207. package/lib/Splice/AmuletAllocation/module.d.ts +9 -11
  208. package/lib/Splice/AmuletAllocation/module.js +31 -26
  209. package/lib/Splice/AmuletConfig/index.js +1 -0
  210. package/lib/Splice/AmuletConfig/module.d.ts +42 -56
  211. package/lib/Splice/AmuletConfig/module.js +93 -62
  212. package/lib/Splice/AmuletRules/index.js +1 -0
  213. package/lib/Splice/AmuletRules/module.d.ts +681 -874
  214. package/lib/Splice/AmuletRules/module.js +1688 -1273
  215. package/lib/Splice/AmuletTransferInstruction/index.js +1 -0
  216. package/lib/Splice/AmuletTransferInstruction/module.d.ts +9 -11
  217. package/lib/Splice/AmuletTransferInstruction/module.js +31 -26
  218. package/lib/Splice/Api/FeaturedAppRightV1/module.d.ts +40 -50
  219. package/lib/Splice/Api/FeaturedAppRightV1/module.js +84 -61
  220. package/lib/Splice/Api/FeaturedAppRightV2/index.js +1 -0
  221. package/lib/Splice/Api/FeaturedAppRightV2/module.d.ts +41 -51
  222. package/lib/Splice/Api/FeaturedAppRightV2/module.js +86 -62
  223. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +1 -0
  224. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +82 -99
  225. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +202 -142
  226. package/lib/Splice/Api/Token/AllocationV1/index.js +1 -0
  227. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +84 -109
  228. package/lib/Splice/Api/Token/AllocationV1/module.js +185 -139
  229. package/lib/Splice/Api/Token/HoldingV1/index.js +1 -0
  230. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +27 -34
  231. package/lib/Splice/Api/Token/HoldingV1/module.js +55 -39
  232. package/lib/Splice/Api/Token/MetadataV1/index.js +1 -0
  233. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +44 -60
  234. package/lib/Splice/Api/Token/MetadataV1/module.js +123 -70
  235. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +1 -0
  236. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +112 -137
  237. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +278 -195
  238. package/lib/Splice/DecentralizedSynchronizer/index.js +1 -0
  239. package/lib/Splice/DecentralizedSynchronizer/module.d.ts +44 -58
  240. package/lib/Splice/DecentralizedSynchronizer/module.js +103 -79
  241. package/lib/Splice/Expiry/index.js +1 -0
  242. package/lib/Splice/Expiry/module.d.ts +14 -18
  243. package/lib/Splice/Expiry/module.js +37 -23
  244. package/lib/Splice/ExternalPartyAmuletRules/index.js +1 -0
  245. package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +116 -147
  246. package/lib/Splice/ExternalPartyAmuletRules/module.js +307 -242
  247. package/lib/Splice/Fees/index.js +1 -0
  248. package/lib/Splice/Fees/module.d.ts +26 -40
  249. package/lib/Splice/Fees/module.js +57 -48
  250. package/lib/Splice/Issuance/index.js +1 -0
  251. package/lib/Splice/Issuance/module.d.ts +39 -50
  252. package/lib/Splice/Issuance/module.js +82 -56
  253. package/lib/Splice/RelRound/index.js +1 -0
  254. package/lib/Splice/RelRound/module.d.ts +5 -7
  255. package/lib/Splice/RelRound/module.js +10 -8
  256. package/lib/Splice/Round/index.js +1 -0
  257. package/lib/Splice/Round/module.d.ts +66 -78
  258. package/lib/Splice/Round/module.js +186 -142
  259. package/lib/Splice/Schedule/index.js +1 -0
  260. package/lib/Splice/Schedule/module.d.ts +7 -8
  261. package/lib/Splice/Schedule/module.js +17 -12
  262. package/lib/Splice/Types/index.js +1 -0
  263. package/lib/Splice/Types/module.d.ts +20 -31
  264. package/lib/Splice/Types/module.js +44 -37
  265. package/lib/Splice/ValidatorLicense/index.js +1 -0
  266. package/lib/Splice/ValidatorLicense/module.d.ts +145 -195
  267. package/lib/Splice/ValidatorLicense/module.js +388 -310
  268. package/package.json +7 -7
  269. package/published-dars/OpenCapTable.dar +0 -0
@@ -5,6 +5,7 @@ function __export(m) {
5
5
  for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
6
  }
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
+
8
9
  /* eslint-disable-next-line no-unused-vars */
9
10
  var jtv = require('@mojotech/json-type-validation');
10
11
  /* eslint-disable-next-line no-unused-vars */
@@ -13,209 +14,177 @@ var damlTypes = require('@daml/types');
13
14
  var Fairmint_OpenCapTable_Types_Monetary = require('../../../../Fairmint/OpenCapTable/Types/Monetary/module');
14
15
  var Fairmint_OpenCapTable_Types_Stock = require('../../../../Fairmint/OpenCapTable/Types/Stock/module');
15
16
 
16
-
17
- exports.OcfConversionTrigger = {
18
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_right: exports.OcfAnyConversionRight.decoder, trigger_id: damlTypes.Text.decoder, type_: exports.OcfConversionTriggerType.decoder, end_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), nickname: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), start_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trigger_condition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), trigger_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trigger_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
19
- encode: function (__typed__) {
20
- return {
21
- conversion_right: exports.OcfAnyConversionRight.encode(__typed__.conversion_right),
22
- trigger_id: damlTypes.Text.encode(__typed__.trigger_id),
23
- type_: exports.OcfConversionTriggerType.encode(__typed__.type_),
24
- end_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.end_date),
25
- nickname: damlTypes.Optional(damlTypes.Text).encode(__typed__.nickname),
26
- start_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.start_date),
27
- trigger_condition: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_condition),
28
- trigger_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.trigger_date),
29
- trigger_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_description),
30
- };
31
- }
32
- ,
17
+ exports.OcfAccrualPeriodType = {
18
+ OcfAccrualDaily: 'OcfAccrualDaily',
19
+ OcfAccrualMonthly: 'OcfAccrualMonthly',
20
+ OcfAccrualQuarterly: 'OcfAccrualQuarterly',
21
+ OcfAccrualSemiAnnual: 'OcfAccrualSemiAnnual',
22
+ OcfAccrualAnnual: 'OcfAccrualAnnual',
23
+ keys: ['OcfAccrualDaily', 'OcfAccrualMonthly', 'OcfAccrualQuarterly', 'OcfAccrualSemiAnnual', 'OcfAccrualAnnual'],
24
+ decoder: damlTypes.lazyMemo(function () {
25
+ return jtv.oneOf(
26
+ jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualDaily),
27
+ jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualMonthly),
28
+ jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualQuarterly),
29
+ jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualSemiAnnual),
30
+ jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualAnnual),
31
+ );
32
+ }),
33
+ encode: function (__typed__) { return __typed__; },
33
34
  };
34
35
 
35
-
36
-
37
36
  exports.OcfAnyConversionRight = {
38
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfRightConvertible'), value: exports.OcfConvertibleConversionRight.decoder, }), jtv.object({tag: jtv.constant('OcfRightWarrant'), value: exports.OcfWarrantConversionRight.decoder, }), jtv.object({tag: jtv.constant('OcfRightStockClass'), value: exports.OcfStockClassConversionRight.decoder, })); }),
39
- encode: function (__typed__) {
40
- switch(__typed__.tag) {
41
- case 'OcfRightConvertible': return {tag: __typed__.tag, value: exports.OcfConvertibleConversionRight.encode(__typed__.value)};
42
- case 'OcfRightWarrant': return {tag: __typed__.tag, value: exports.OcfWarrantConversionRight.encode(__typed__.value)};
43
- case 'OcfRightStockClass': return {tag: __typed__.tag, value: exports.OcfStockClassConversionRight.encode(__typed__.value)};
44
- default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfAnyConversionRight';
45
- }
46
- }
47
- ,
48
- };
49
-
50
-
51
-
52
- exports.OcfStockClassConversionRight = {
53
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_mechanism: exports.OcfConversionMechanism.decoder, conversion_trigger: exports.OcfConversionTrigger.decoder, converts_to_stock_class_id: damlTypes.Text.decoder, type_: damlTypes.Text.decoder, ceiling_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), conversion_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), custom_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), discount_rate: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), expires_at: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), floor_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), percent_of_capitalization: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), ratio: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder), reference_share_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), reference_valuation_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), }); }),
37
+ decoder: damlTypes.lazyMemo(function () {
38
+ return jtv.oneOf(
39
+ jtv.object({
40
+ tag: jtv.constant("OcfRightConvertible"),
41
+ value: exports.OcfConvertibleConversionRight.decoder,
42
+ }),
43
+ jtv.object({
44
+ tag: jtv.constant("OcfRightWarrant"),
45
+ value: exports.OcfWarrantConversionRight.decoder,
46
+ }),
47
+ jtv.object({
48
+ tag: jtv.constant("OcfRightStockClass"),
49
+ value: exports.OcfStockClassConversionRight.decoder,
50
+ }),
51
+ );
52
+ }),
54
53
  encode: function (__typed__) {
55
- return {
56
- conversion_mechanism: exports.OcfConversionMechanism.encode(__typed__.conversion_mechanism),
57
- conversion_trigger: exports.OcfConversionTrigger.encode(__typed__.conversion_trigger),
58
- converts_to_stock_class_id: damlTypes.Text.encode(__typed__.converts_to_stock_class_id),
59
- type_: damlTypes.Text.encode(__typed__.type_),
60
- ceiling_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.ceiling_price_per_share),
61
- conversion_price: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_price),
62
- converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
63
- custom_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.custom_description),
64
- discount_rate: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_rate),
65
- expires_at: damlTypes.Optional(damlTypes.Time).encode(__typed__.expires_at),
66
- floor_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.floor_price_per_share),
67
- percent_of_capitalization: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.percent_of_capitalization),
68
- ratio: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.ratio),
69
- reference_share_price: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.reference_share_price),
70
- reference_valuation_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.reference_valuation_price_per_share),
71
- valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_cap),
72
- };
73
- }
74
- ,
54
+ switch(__typed__.tag) {
55
+ case 'OcfRightConvertible': return {tag: __typed__.tag, value: exports.OcfConvertibleConversionRight.encode(__typed__.value)};
56
+ case 'OcfRightWarrant': return {tag: __typed__.tag, value: exports.OcfWarrantConversionRight.encode(__typed__.value)};
57
+ case 'OcfRightStockClass': return {tag: __typed__.tag, value: exports.OcfStockClassConversionRight.encode(__typed__.value)};
58
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfAnyConversionRight';
59
+ }
60
+ },
75
61
  };
76
62
 
77
-
78
-
79
- exports.OcfConvertibleConversionRight = {
80
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_mechanism: exports.OcfConvertibleConversionMechanism.decoder, type_: damlTypes.Text.decoder, converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
63
+ exports.OcfCapitalizationDefinition = {
64
+ decoder: damlTypes.lazyMemo(function () {
65
+ return jtv.object({
66
+ exclude_security_ids: damlTypes.List(damlTypes.Text).decoder,
67
+ include_security_ids: damlTypes.List(damlTypes.Text).decoder,
68
+ include_stock_class_ids: damlTypes.List(damlTypes.Text).decoder,
69
+ include_stock_plans_ids: damlTypes.List(damlTypes.Text).decoder,
70
+ });
71
+ }),
81
72
  encode: function (__typed__) {
82
- return {
83
- conversion_mechanism: exports.OcfConvertibleConversionMechanism.encode(__typed__.conversion_mechanism),
84
- type_: damlTypes.Text.encode(__typed__.type_),
85
- converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
86
- converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
87
- };
88
- }
89
- ,
73
+ return {
74
+ exclude_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.exclude_security_ids),
75
+ include_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_security_ids),
76
+ include_stock_class_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_class_ids),
77
+ include_stock_plans_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_plans_ids),
78
+ };
79
+ },
90
80
  };
91
81
 
92
-
93
-
94
- exports.OcfConvertibleConversionMechanism = {
95
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfConvMechSAFE'), value: exports.OcfSAFEConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechNote'), value: exports.OcfNoteConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechCustom'), value: exports.OcfCustomConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechPercentCapitalization'), value: exports.OcfPercentCapitalizationConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechFixedAmount'), value: exports.OcfFixedAmountConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechPpsBased'), value: exports.OcfSharePriceBasedConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechValuationBased'), value: exports.OcfValuationBasedConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechRatio'), value: Fairmint_OpenCapTable_Types_Stock.OcfRatio.decoder, })); }),
82
+ exports.OcfCapitalizationDefinitionRules = {
83
+ decoder: damlTypes.lazyMemo(function () {
84
+ return jtv.object({
85
+ include_additional_option_pool_topup: damlTypes.Bool.decoder,
86
+ include_new_money: damlTypes.Bool.decoder,
87
+ include_option_pool_topup_for_promised_options: damlTypes.Bool.decoder,
88
+ include_other_converting_securities: damlTypes.Bool.decoder,
89
+ include_outstanding_options: damlTypes.Bool.decoder,
90
+ include_outstanding_shares: damlTypes.Bool.decoder,
91
+ include_outstanding_unissued_options: damlTypes.Bool.decoder,
92
+ include_this_security: damlTypes.Bool.decoder,
93
+ });
94
+ }),
96
95
  encode: function (__typed__) {
97
- switch(__typed__.tag) {
98
- case 'OcfConvMechSAFE': return {tag: __typed__.tag, value: exports.OcfSAFEConversionMechanism.encode(__typed__.value)};
99
- case 'OcfConvMechNote': return {tag: __typed__.tag, value: exports.OcfNoteConversionMechanism.encode(__typed__.value)};
100
- case 'OcfConvMechCustom': return {tag: __typed__.tag, value: exports.OcfCustomConversionMechanism.encode(__typed__.value)};
101
- case 'OcfConvMechPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfPercentCapitalizationConversionMechanism.encode(__typed__.value)};
102
- case 'OcfConvMechFixedAmount': return {tag: __typed__.tag, value: exports.OcfFixedAmountConversionMechanism.encode(__typed__.value)};
103
- case 'OcfConvMechPpsBased': return {tag: __typed__.tag, value: exports.OcfSharePriceBasedConversionMechanism.encode(__typed__.value)};
104
- case 'OcfConvMechValuationBased': return {tag: __typed__.tag, value: exports.OcfValuationBasedConversionMechanism.encode(__typed__.value)};
105
- case 'OcfConvMechRatio': return {tag: __typed__.tag, value: Fairmint_OpenCapTable_Types_Stock.OcfRatio.encode(__typed__.value)};
106
- default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfConvertibleConversionMechanism';
107
- }
108
- }
109
- ,
96
+ return {
97
+ include_additional_option_pool_topup: damlTypes.Bool.encode(__typed__.include_additional_option_pool_topup),
98
+ include_new_money: damlTypes.Bool.encode(__typed__.include_new_money),
99
+ include_option_pool_topup_for_promised_options: damlTypes.Bool.encode(__typed__.include_option_pool_topup_for_promised_options),
100
+ include_other_converting_securities: damlTypes.Bool.encode(__typed__.include_other_converting_securities),
101
+ include_outstanding_options: damlTypes.Bool.encode(__typed__.include_outstanding_options),
102
+ include_outstanding_shares: damlTypes.Bool.encode(__typed__.include_outstanding_shares),
103
+ include_outstanding_unissued_options: damlTypes.Bool.encode(__typed__.include_outstanding_unissued_options),
104
+ include_this_security: damlTypes.Bool.encode(__typed__.include_this_security),
105
+ };
106
+ },
110
107
  };
111
108
 
112
-
113
-
114
- exports.OcfWarrantConversionRight = {
115
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_mechanism: exports.OcfWarrantConversionMechanism.decoder, type_: damlTypes.Text.decoder, converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
116
- encode: function (__typed__) {
117
- return {
118
- conversion_mechanism: exports.OcfWarrantConversionMechanism.encode(__typed__.conversion_mechanism),
119
- type_: damlTypes.Text.encode(__typed__.type_),
120
- converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
121
- converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
122
- };
123
- }
124
- ,
109
+ exports.OcfCompoundingType = {
110
+ OcfCompounding: 'OcfCompounding',
111
+ OcfSimple: 'OcfSimple',
112
+ keys: ['OcfCompounding', 'OcfSimple'],
113
+ decoder: damlTypes.lazyMemo(function () {
114
+ return jtv.oneOf(
115
+ jtv.constant(exports.OcfCompoundingType.OcfCompounding),
116
+ jtv.constant(exports.OcfCompoundingType.OcfSimple),
117
+ );
118
+ }),
119
+ encode: function (__typed__) { return __typed__; },
125
120
  };
126
121
 
127
-
128
-
129
- exports.OcfWarrantConversionMechanism = {
130
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfWarrantMechanismCustom'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismPercentCapitalization'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismFixedAmount'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismValuationBased'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismPpsBased'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPpsBased.decoder, })); }),
131
- encode: function (__typed__) {
132
- switch(__typed__.tag) {
133
- case 'OcfWarrantMechanismCustom': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.encode(__typed__.value)};
134
- case 'OcfWarrantMechanismPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.encode(__typed__.value)};
135
- case 'OcfWarrantMechanismFixedAmount': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.encode(__typed__.value)};
136
- case 'OcfWarrantMechanismValuationBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.encode(__typed__.value)};
137
- case 'OcfWarrantMechanismPpsBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPpsBased.encode(__typed__.value)};
138
- default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfWarrantConversionMechanism';
139
- }
140
- }
141
- ,
142
- OcfWarrantMechanismCustom:({
143
- decoder: damlTypes.lazyMemo(function () { return jtv.object({custom_conversion_description: damlTypes.Text.decoder, }); }),
144
- encode: function (__typed__) {
145
- return {
146
- custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
147
- };
148
- }
149
- ,
150
- }),
151
- OcfWarrantMechanismPercentCapitalization:({
152
- decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_percent: damlTypes.Numeric(10).decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), }); }),
153
- encode: function (__typed__) {
154
- return {
155
- converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
156
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
157
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
158
- };
159
- }
160
- ,
161
- }),
162
- OcfWarrantMechanismFixedAmount:({
163
- decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_quantity: damlTypes.Numeric(10).decoder, }); }),
164
- encode: function (__typed__) {
165
- return {
166
- converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
167
- };
168
- }
169
- ,
170
- }),
171
- OcfWarrantMechanismValuationBased:({
172
- decoder: damlTypes.lazyMemo(function () { return jtv.object({valuation_type: damlTypes.Text.decoder, valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), }); }),
173
- encode: function (__typed__) {
174
- return {
175
- valuation_type: damlTypes.Text.encode(__typed__.valuation_type),
176
- valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_amount),
177
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
178
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
179
- };
180
- }
181
- ,
182
- }),
183
- OcfWarrantMechanismPpsBased:({
184
- decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, discount: damlTypes.Bool.decoder, discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), }); }),
185
- encode: function (__typed__) {
186
- return {
187
- description: damlTypes.Text.encode(__typed__.description),
188
- discount: damlTypes.Bool.encode(__typed__.discount),
189
- discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
190
- discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.discount_amount),
191
- };
192
- }
193
- ,
122
+ exports.OcfConversionMechanism = {
123
+ OcfConversionMechanismRatioConversion: 'OcfConversionMechanismRatioConversion',
124
+ OcfConversionMechanismPercentCapitalizationConversion: 'OcfConversionMechanismPercentCapitalizationConversion',
125
+ OcfConversionMechanismFixedAmountConversion: 'OcfConversionMechanismFixedAmountConversion',
126
+ OcfConversionMechanismValuationBasedConversion: 'OcfConversionMechanismValuationBasedConversion',
127
+ OcfConversionMechanismPpsBasedConversion: 'OcfConversionMechanismPpsBasedConversion',
128
+ OcfConversionMechanismSAFEConversion: 'OcfConversionMechanismSAFEConversion',
129
+ OcfConversionMechanismNoteConversion: 'OcfConversionMechanismNoteConversion',
130
+ OcfConversionMechanismCustomConversion: 'OcfConversionMechanismCustomConversion',
131
+ keys: ['OcfConversionMechanismRatioConversion', 'OcfConversionMechanismPercentCapitalizationConversion', 'OcfConversionMechanismFixedAmountConversion', 'OcfConversionMechanismValuationBasedConversion', 'OcfConversionMechanismPpsBasedConversion', 'OcfConversionMechanismSAFEConversion', 'OcfConversionMechanismNoteConversion', 'OcfConversionMechanismCustomConversion'],
132
+ decoder: damlTypes.lazyMemo(function () {
133
+ return jtv.oneOf(
134
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismRatioConversion),
135
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismPercentCapitalizationConversion),
136
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismFixedAmountConversion),
137
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismValuationBasedConversion),
138
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismPpsBasedConversion),
139
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismSAFEConversion),
140
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismNoteConversion),
141
+ jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismCustomConversion),
142
+ );
194
143
  }),
144
+ encode: function (__typed__) { return __typed__; },
195
145
  };
196
146
 
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
- exports.OcfConvertibleType = {
210
- OcfConvertibleNote: 'OcfConvertibleNote',
211
- OcfConvertibleSafe: 'OcfConvertibleSafe',
212
- OcfConvertibleSecurity: 'OcfConvertibleSecurity',
213
- keys: ['OcfConvertibleNote','OcfConvertibleSafe','OcfConvertibleSecurity',],
214
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConvertibleType.OcfConvertibleNote), jtv.constant(exports.OcfConvertibleType.OcfConvertibleSafe), jtv.constant(exports.OcfConvertibleType.OcfConvertibleSecurity)); }),
147
+ exports.OcfConversionTimingType = {
148
+ OcfConvTimingPreMoney: 'OcfConvTimingPreMoney',
149
+ OcfConvTimingPostMoney: 'OcfConvTimingPostMoney',
150
+ keys: ['OcfConvTimingPreMoney', 'OcfConvTimingPostMoney'],
151
+ decoder: damlTypes.lazyMemo(function () {
152
+ return jtv.oneOf(
153
+ jtv.constant(exports.OcfConversionTimingType.OcfConvTimingPreMoney),
154
+ jtv.constant(exports.OcfConversionTimingType.OcfConvTimingPostMoney),
155
+ );
156
+ }),
215
157
  encode: function (__typed__) { return __typed__; },
216
158
  };
217
159
 
218
-
160
+ exports.OcfConversionTrigger = {
161
+ decoder: damlTypes.lazyMemo(function () {
162
+ return jtv.object({
163
+ conversion_right: exports.OcfAnyConversionRight.decoder,
164
+ trigger_id: damlTypes.Text.decoder,
165
+ type_: exports.OcfConversionTriggerType.decoder,
166
+ end_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
167
+ nickname: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
168
+ start_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
169
+ trigger_condition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
170
+ trigger_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
171
+ trigger_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
172
+ });
173
+ }),
174
+ encode: function (__typed__) {
175
+ return {
176
+ conversion_right: exports.OcfAnyConversionRight.encode(__typed__.conversion_right),
177
+ trigger_id: damlTypes.Text.encode(__typed__.trigger_id),
178
+ type_: exports.OcfConversionTriggerType.encode(__typed__.type_),
179
+ end_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.end_date),
180
+ nickname: damlTypes.Optional(damlTypes.Text).encode(__typed__.nickname),
181
+ start_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.start_date),
182
+ trigger_condition: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_condition),
183
+ trigger_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.trigger_date),
184
+ trigger_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_description),
185
+ };
186
+ },
187
+ };
219
188
 
220
189
  exports.OcfConversionTriggerType = {
221
190
  OcfTriggerTypeTypeAutomaticOnCondition: 'OcfTriggerTypeTypeAutomaticOnCondition',
@@ -224,269 +193,506 @@ exports.OcfConversionTriggerType = {
224
193
  OcfTriggerTypeTypeElectiveOnCondition: 'OcfTriggerTypeTypeElectiveOnCondition',
225
194
  OcfTriggerTypeTypeElectiveAtWill: 'OcfTriggerTypeTypeElectiveAtWill',
226
195
  OcfTriggerTypeTypeUnspecified: 'OcfTriggerTypeTypeUnspecified',
227
- keys: ['OcfTriggerTypeTypeAutomaticOnCondition','OcfTriggerTypeTypeAutomaticOnDate','OcfTriggerTypeTypeElectiveInRange','OcfTriggerTypeTypeElectiveOnCondition','OcfTriggerTypeTypeElectiveAtWill','OcfTriggerTypeTypeUnspecified',],
228
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeAutomaticOnCondition), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeAutomaticOnDate), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveInRange), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveOnCondition), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveAtWill), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeUnspecified)); }),
196
+ keys: ['OcfTriggerTypeTypeAutomaticOnCondition', 'OcfTriggerTypeTypeAutomaticOnDate', 'OcfTriggerTypeTypeElectiveInRange', 'OcfTriggerTypeTypeElectiveOnCondition', 'OcfTriggerTypeTypeElectiveAtWill', 'OcfTriggerTypeTypeUnspecified'],
197
+ decoder: damlTypes.lazyMemo(function () {
198
+ return jtv.oneOf(
199
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeAutomaticOnCondition),
200
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeAutomaticOnDate),
201
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveInRange),
202
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveOnCondition),
203
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeElectiveAtWill),
204
+ jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeTypeUnspecified),
205
+ );
206
+ }),
229
207
  encode: function (__typed__) { return __typed__; },
230
208
  };
231
209
 
232
-
233
-
234
- exports.OcfNoteConversionMechanism = {
235
- decoder: damlTypes.lazyMemo(function () { return jtv.object({compounding_type: exports.OcfCompoundingType.decoder, day_count_convention: exports.OcfDayCountType.decoder, interest_accrual_period: exports.OcfAccrualPeriodType.decoder, interest_payout: exports.OcfInterestPayoutType.decoder, interest_rates: damlTypes.List(exports.OcfInterestRate).decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_mfn: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder), }); }),
210
+ exports.OcfConvertibleConversionMechanism = {
211
+ decoder: damlTypes.lazyMemo(function () {
212
+ return jtv.oneOf(
213
+ jtv.object({
214
+ tag: jtv.constant("OcfConvMechSAFE"),
215
+ value: exports.OcfSAFEConversionMechanism.decoder,
216
+ }),
217
+ jtv.object({
218
+ tag: jtv.constant("OcfConvMechNote"),
219
+ value: exports.OcfNoteConversionMechanism.decoder,
220
+ }),
221
+ jtv.object({
222
+ tag: jtv.constant("OcfConvMechCustom"),
223
+ value: exports.OcfCustomConversionMechanism.decoder,
224
+ }),
225
+ jtv.object({
226
+ tag: jtv.constant("OcfConvMechPercentCapitalization"),
227
+ value: exports.OcfPercentCapitalizationConversionMechanism.decoder,
228
+ }),
229
+ jtv.object({
230
+ tag: jtv.constant("OcfConvMechFixedAmount"),
231
+ value: exports.OcfFixedAmountConversionMechanism.decoder,
232
+ }),
233
+ jtv.object({
234
+ tag: jtv.constant("OcfConvMechPpsBased"),
235
+ value: exports.OcfSharePriceBasedConversionMechanism.decoder,
236
+ }),
237
+ jtv.object({
238
+ tag: jtv.constant("OcfConvMechValuationBased"),
239
+ value: exports.OcfValuationBasedConversionMechanism.decoder,
240
+ }),
241
+ jtv.object({
242
+ tag: jtv.constant("OcfConvMechRatio"),
243
+ value: Fairmint_OpenCapTable_Types_Stock.OcfRatio.decoder,
244
+ }),
245
+ );
246
+ }),
236
247
  encode: function (__typed__) {
237
- return {
238
- compounding_type: exports.OcfCompoundingType.encode(__typed__.compounding_type),
239
- day_count_convention: exports.OcfDayCountType.encode(__typed__.day_count_convention),
240
- interest_accrual_period: exports.OcfAccrualPeriodType.encode(__typed__.interest_accrual_period),
241
- interest_payout: exports.OcfInterestPayoutType.encode(__typed__.interest_payout),
242
- interest_rates: damlTypes.List(exports.OcfInterestRate).encode(__typed__.interest_rates),
243
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
244
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
245
- conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
246
- conversion_mfn: damlTypes.Optional(damlTypes.Bool).encode(__typed__.conversion_mfn),
247
- conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_valuation_cap),
248
- exit_multiple: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.exit_multiple),
249
- };
250
- }
251
- ,
248
+ switch(__typed__.tag) {
249
+ case 'OcfConvMechSAFE': return {tag: __typed__.tag, value: exports.OcfSAFEConversionMechanism.encode(__typed__.value)};
250
+ case 'OcfConvMechNote': return {tag: __typed__.tag, value: exports.OcfNoteConversionMechanism.encode(__typed__.value)};
251
+ case 'OcfConvMechCustom': return {tag: __typed__.tag, value: exports.OcfCustomConversionMechanism.encode(__typed__.value)};
252
+ case 'OcfConvMechPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfPercentCapitalizationConversionMechanism.encode(__typed__.value)};
253
+ case 'OcfConvMechFixedAmount': return {tag: __typed__.tag, value: exports.OcfFixedAmountConversionMechanism.encode(__typed__.value)};
254
+ case 'OcfConvMechPpsBased': return {tag: __typed__.tag, value: exports.OcfSharePriceBasedConversionMechanism.encode(__typed__.value)};
255
+ case 'OcfConvMechValuationBased': return {tag: __typed__.tag, value: exports.OcfValuationBasedConversionMechanism.encode(__typed__.value)};
256
+ case 'OcfConvMechRatio': return {tag: __typed__.tag, value: Fairmint_OpenCapTable_Types_Stock.OcfRatio.encode(__typed__.value)};
257
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfConvertibleConversionMechanism';
258
+ }
259
+ },
252
260
  };
253
261
 
254
-
255
-
256
- exports.OcfSAFEConversionMechanism = {
257
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_mfn: damlTypes.Bool.decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_timing: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfConversionTimingType).decoder), conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder), }); }),
262
+ exports.OcfConvertibleConversionRight = {
263
+ decoder: damlTypes.lazyMemo(function () {
264
+ return jtv.object({
265
+ conversion_mechanism: exports.OcfConvertibleConversionMechanism.decoder,
266
+ type_: damlTypes.Text.decoder,
267
+ converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder),
268
+ converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
269
+ });
270
+ }),
258
271
  encode: function (__typed__) {
259
- return {
260
- conversion_mfn: damlTypes.Bool.encode(__typed__.conversion_mfn),
261
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
262
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
263
- conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
264
- conversion_timing: damlTypes.Optional(exports.OcfConversionTimingType).encode(__typed__.conversion_timing),
265
- conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_valuation_cap),
266
- exit_multiple: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.exit_multiple),
267
- };
268
- }
269
- ,
272
+ return {
273
+ conversion_mechanism: exports.OcfConvertibleConversionMechanism.encode(__typed__.conversion_mechanism),
274
+ type_: damlTypes.Text.encode(__typed__.type_),
275
+ converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
276
+ converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
277
+ };
278
+ },
270
279
  };
271
280
 
281
+ exports.OcfConvertibleType = {
282
+ OcfConvertibleNote: 'OcfConvertibleNote',
283
+ OcfConvertibleSafe: 'OcfConvertibleSafe',
284
+ OcfConvertibleSecurity: 'OcfConvertibleSecurity',
285
+ keys: ['OcfConvertibleNote', 'OcfConvertibleSafe', 'OcfConvertibleSecurity'],
286
+ decoder: damlTypes.lazyMemo(function () {
287
+ return jtv.oneOf(
288
+ jtv.constant(exports.OcfConvertibleType.OcfConvertibleNote),
289
+ jtv.constant(exports.OcfConvertibleType.OcfConvertibleSafe),
290
+ jtv.constant(exports.OcfConvertibleType.OcfConvertibleSecurity),
291
+ );
292
+ }),
293
+ encode: function (__typed__) { return __typed__; },
294
+ };
272
295
 
273
-
274
- exports.OcfValuationBasedConversionMechanism = {
275
- decoder: damlTypes.lazyMemo(function () { return jtv.object({valuation_type: exports.OcfValuationBasedFormulaType.decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), }); }),
296
+ exports.OcfCustomConversionMechanism = {
297
+ decoder: damlTypes.lazyMemo(function () {
298
+ return jtv.object({
299
+ custom_conversion_description: damlTypes.Text.decoder,
300
+ });
301
+ }),
276
302
  encode: function (__typed__) {
277
- return {
278
- valuation_type: exports.OcfValuationBasedFormulaType.encode(__typed__.valuation_type),
279
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
280
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
281
- valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_amount),
282
- };
283
- }
284
- ,
303
+ return {
304
+ custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
305
+ };
306
+ },
285
307
  };
286
308
 
287
-
288
-
289
- exports.OcfValuationBasedFormulaType = {
290
- OcfValuationCap: 'OcfValuationCap',
291
- OcfValuationFixed: 'OcfValuationFixed',
292
- OcfValuationActual: 'OcfValuationActual',
293
- keys: ['OcfValuationCap','OcfValuationFixed','OcfValuationActual',],
294
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationCap), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFixed), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationActual)); }),
309
+ exports.OcfDayCountType = {
310
+ OcfDayCountActual365: 'OcfDayCountActual365',
311
+ OcfDayCount30_360: 'OcfDayCount30_360',
312
+ keys: ['OcfDayCountActual365', 'OcfDayCount30_360'],
313
+ decoder: damlTypes.lazyMemo(function () {
314
+ return jtv.oneOf(
315
+ jtv.constant(exports.OcfDayCountType.OcfDayCountActual365),
316
+ jtv.constant(exports.OcfDayCountType.OcfDayCount30_360),
317
+ );
318
+ }),
295
319
  encode: function (__typed__) { return __typed__; },
296
320
  };
297
321
 
298
-
299
-
300
- exports.OcfSharePriceBasedConversionMechanism = {
301
- decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, discount: damlTypes.Bool.decoder, discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder), discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
322
+ exports.OcfFixedAmountConversionMechanism = {
323
+ decoder: damlTypes.lazyMemo(function () {
324
+ return jtv.object({
325
+ converts_to_quantity: damlTypes.Numeric(10).decoder,
326
+ });
327
+ }),
302
328
  encode: function (__typed__) {
303
- return {
304
- description: damlTypes.Text.encode(__typed__.description),
305
- discount: damlTypes.Bool.encode(__typed__.discount),
306
- discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.discount_amount),
307
- discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
308
- };
309
- }
310
- ,
329
+ return {
330
+ converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
331
+ };
332
+ },
311
333
  };
312
334
 
335
+ exports.OcfInterestPayoutType = {
336
+ OcfInterestPayoutDeferred: 'OcfInterestPayoutDeferred',
337
+ OcfInterestPayoutCash: 'OcfInterestPayoutCash',
338
+ keys: ['OcfInterestPayoutDeferred', 'OcfInterestPayoutCash'],
339
+ decoder: damlTypes.lazyMemo(function () {
340
+ return jtv.oneOf(
341
+ jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutDeferred),
342
+ jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutCash),
343
+ );
344
+ }),
345
+ encode: function (__typed__) { return __typed__; },
346
+ };
313
347
 
314
-
315
- exports.OcfPercentCapitalizationConversionMechanism = {
316
- decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_percent: damlTypes.Numeric(10).decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder), }); }),
348
+ exports.OcfInterestRate = {
349
+ decoder: damlTypes.lazyMemo(function () {
350
+ return jtv.object({
351
+ accrual_start_date: damlTypes.Time.decoder,
352
+ rate: damlTypes.Numeric(10).decoder,
353
+ accrual_end_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
354
+ });
355
+ }),
317
356
  encode: function (__typed__) {
318
- return {
319
- converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
320
- capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
321
- capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
322
- };
323
- }
324
- ,
357
+ return {
358
+ accrual_start_date: damlTypes.Time.encode(__typed__.accrual_start_date),
359
+ rate: damlTypes.Numeric(10).encode(__typed__.rate),
360
+ accrual_end_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.accrual_end_date),
361
+ };
362
+ },
325
363
  };
326
364
 
327
-
328
-
329
- exports.OcfFixedAmountConversionMechanism = {
330
- decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_quantity: damlTypes.Numeric(10).decoder, }); }),
365
+ exports.OcfNoteConversionMechanism = {
366
+ decoder: damlTypes.lazyMemo(function () {
367
+ return jtv.object({
368
+ compounding_type: exports.OcfCompoundingType.decoder,
369
+ day_count_convention: exports.OcfDayCountType.decoder,
370
+ interest_accrual_period: exports.OcfAccrualPeriodType.decoder,
371
+ interest_payout: exports.OcfInterestPayoutType.decoder,
372
+ interest_rates: damlTypes.List(exports.OcfInterestRate).decoder,
373
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
374
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
375
+ conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
376
+ conversion_mfn: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder),
377
+ conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
378
+ exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder),
379
+ });
380
+ }),
331
381
  encode: function (__typed__) {
332
- return {
333
- converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
334
- };
335
- }
336
- ,
382
+ return {
383
+ compounding_type: exports.OcfCompoundingType.encode(__typed__.compounding_type),
384
+ day_count_convention: exports.OcfDayCountType.encode(__typed__.day_count_convention),
385
+ interest_accrual_period: exports.OcfAccrualPeriodType.encode(__typed__.interest_accrual_period),
386
+ interest_payout: exports.OcfInterestPayoutType.encode(__typed__.interest_payout),
387
+ interest_rates: damlTypes.List(exports.OcfInterestRate).encode(__typed__.interest_rates),
388
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
389
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
390
+ conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
391
+ conversion_mfn: damlTypes.Optional(damlTypes.Bool).encode(__typed__.conversion_mfn),
392
+ conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_valuation_cap),
393
+ exit_multiple: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.exit_multiple),
394
+ };
395
+ },
337
396
  };
338
397
 
339
-
340
-
341
- exports.OcfCustomConversionMechanism = {
342
- decoder: damlTypes.lazyMemo(function () { return jtv.object({custom_conversion_description: damlTypes.Text.decoder, }); }),
398
+ exports.OcfPercentCapitalizationConversionMechanism = {
399
+ decoder: damlTypes.lazyMemo(function () {
400
+ return jtv.object({
401
+ converts_to_percent: damlTypes.Numeric(10).decoder,
402
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
403
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
404
+ });
405
+ }),
343
406
  encode: function (__typed__) {
344
- return {
345
- custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
346
- };
347
- }
348
- ,
407
+ return {
408
+ converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
409
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
410
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
411
+ };
412
+ },
349
413
  };
350
414
 
351
-
352
-
353
415
  exports.OcfRatioConversionMechanism = {
354
- decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_price: Fairmint_OpenCapTable_Types_Monetary.OcfMonetary.decoder, ratio: Fairmint_OpenCapTable_Types_Stock.OcfRatio.decoder, rounding_type: exports.OcfRoundingType.decoder, }); }),
416
+ decoder: damlTypes.lazyMemo(function () {
417
+ return jtv.object({
418
+ conversion_price: Fairmint_OpenCapTable_Types_Monetary.OcfMonetary.decoder,
419
+ ratio: Fairmint_OpenCapTable_Types_Stock.OcfRatio.decoder,
420
+ rounding_type: exports.OcfRoundingType.decoder,
421
+ });
422
+ }),
355
423
  encode: function (__typed__) {
356
- return {
357
- conversion_price: Fairmint_OpenCapTable_Types_Monetary.OcfMonetary.encode(__typed__.conversion_price),
358
- ratio: Fairmint_OpenCapTable_Types_Stock.OcfRatio.encode(__typed__.ratio),
359
- rounding_type: exports.OcfRoundingType.encode(__typed__.rounding_type),
360
- };
361
- }
362
- ,
424
+ return {
425
+ conversion_price: Fairmint_OpenCapTable_Types_Monetary.OcfMonetary.encode(__typed__.conversion_price),
426
+ ratio: Fairmint_OpenCapTable_Types_Stock.OcfRatio.encode(__typed__.ratio),
427
+ rounding_type: exports.OcfRoundingType.encode(__typed__.rounding_type),
428
+ };
429
+ },
363
430
  };
364
431
 
365
-
366
-
367
- exports.OcfConversionMechanism = {
368
- OcfConversionMechanismRatioConversion: 'OcfConversionMechanismRatioConversion',
369
- OcfConversionMechanismPercentCapitalizationConversion: 'OcfConversionMechanismPercentCapitalizationConversion',
370
- OcfConversionMechanismFixedAmountConversion: 'OcfConversionMechanismFixedAmountConversion',
371
- OcfConversionMechanismValuationBasedConversion: 'OcfConversionMechanismValuationBasedConversion',
372
- OcfConversionMechanismPpsBasedConversion: 'OcfConversionMechanismPpsBasedConversion',
373
- OcfConversionMechanismSAFEConversion: 'OcfConversionMechanismSAFEConversion',
374
- OcfConversionMechanismNoteConversion: 'OcfConversionMechanismNoteConversion',
375
- OcfConversionMechanismCustomConversion: 'OcfConversionMechanismCustomConversion',
376
- keys: ['OcfConversionMechanismRatioConversion','OcfConversionMechanismPercentCapitalizationConversion','OcfConversionMechanismFixedAmountConversion','OcfConversionMechanismValuationBasedConversion','OcfConversionMechanismPpsBasedConversion','OcfConversionMechanismSAFEConversion','OcfConversionMechanismNoteConversion','OcfConversionMechanismCustomConversion',],
377
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismRatioConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismPercentCapitalizationConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismFixedAmountConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismValuationBasedConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismPpsBasedConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismSAFEConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismNoteConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismCustomConversion)); }),
432
+ exports.OcfRoundingType = {
433
+ OcfRoundingCeiling: 'OcfRoundingCeiling',
434
+ OcfRoundingFloor: 'OcfRoundingFloor',
435
+ OcfRoundingNormal: 'OcfRoundingNormal',
436
+ keys: ['OcfRoundingCeiling', 'OcfRoundingFloor', 'OcfRoundingNormal'],
437
+ decoder: damlTypes.lazyMemo(function () {
438
+ return jtv.oneOf(
439
+ jtv.constant(exports.OcfRoundingType.OcfRoundingCeiling),
440
+ jtv.constant(exports.OcfRoundingType.OcfRoundingFloor),
441
+ jtv.constant(exports.OcfRoundingType.OcfRoundingNormal),
442
+ );
443
+ }),
378
444
  encode: function (__typed__) { return __typed__; },
379
445
  };
380
446
 
381
-
382
-
383
- exports.OcfCapitalizationDefinitionRules = {
384
- decoder: damlTypes.lazyMemo(function () { return jtv.object({include_additional_option_pool_topup: damlTypes.Bool.decoder, include_new_money: damlTypes.Bool.decoder, include_option_pool_topup_for_promised_options: damlTypes.Bool.decoder, include_other_converting_securities: damlTypes.Bool.decoder, include_outstanding_options: damlTypes.Bool.decoder, include_outstanding_shares: damlTypes.Bool.decoder, include_outstanding_unissued_options: damlTypes.Bool.decoder, include_this_security: damlTypes.Bool.decoder, }); }),
447
+ exports.OcfSAFEConversionMechanism = {
448
+ decoder: damlTypes.lazyMemo(function () {
449
+ return jtv.object({
450
+ conversion_mfn: damlTypes.Bool.decoder,
451
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
452
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
453
+ conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
454
+ conversion_timing: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfConversionTimingType).decoder),
455
+ conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
456
+ exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder),
457
+ });
458
+ }),
385
459
  encode: function (__typed__) {
386
- return {
387
- include_additional_option_pool_topup: damlTypes.Bool.encode(__typed__.include_additional_option_pool_topup),
388
- include_new_money: damlTypes.Bool.encode(__typed__.include_new_money),
389
- include_option_pool_topup_for_promised_options: damlTypes.Bool.encode(__typed__.include_option_pool_topup_for_promised_options),
390
- include_other_converting_securities: damlTypes.Bool.encode(__typed__.include_other_converting_securities),
391
- include_outstanding_options: damlTypes.Bool.encode(__typed__.include_outstanding_options),
392
- include_outstanding_shares: damlTypes.Bool.encode(__typed__.include_outstanding_shares),
393
- include_outstanding_unissued_options: damlTypes.Bool.encode(__typed__.include_outstanding_unissued_options),
394
- include_this_security: damlTypes.Bool.encode(__typed__.include_this_security),
395
- };
396
- }
397
- ,
460
+ return {
461
+ conversion_mfn: damlTypes.Bool.encode(__typed__.conversion_mfn),
462
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
463
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
464
+ conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
465
+ conversion_timing: damlTypes.Optional(exports.OcfConversionTimingType).encode(__typed__.conversion_timing),
466
+ conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_valuation_cap),
467
+ exit_multiple: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.exit_multiple),
468
+ };
469
+ },
398
470
  };
399
471
 
400
-
401
-
402
- exports.OcfCapitalizationDefinition = {
403
- decoder: damlTypes.lazyMemo(function () { return jtv.object({exclude_security_ids: damlTypes.List(damlTypes.Text).decoder, include_security_ids: damlTypes.List(damlTypes.Text).decoder, include_stock_class_ids: damlTypes.List(damlTypes.Text).decoder, include_stock_plans_ids: damlTypes.List(damlTypes.Text).decoder, }); }),
472
+ exports.OcfSharePriceBasedConversionMechanism = {
473
+ decoder: damlTypes.lazyMemo(function () {
474
+ return jtv.object({
475
+ description: damlTypes.Text.decoder,
476
+ discount: damlTypes.Bool.decoder,
477
+ discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
478
+ discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
479
+ });
480
+ }),
404
481
  encode: function (__typed__) {
405
- return {
406
- exclude_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.exclude_security_ids),
407
- include_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_security_ids),
408
- include_stock_class_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_class_ids),
409
- include_stock_plans_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_plans_ids),
410
- };
411
- }
412
- ,
482
+ return {
483
+ description: damlTypes.Text.encode(__typed__.description),
484
+ discount: damlTypes.Bool.encode(__typed__.discount),
485
+ discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.discount_amount),
486
+ discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
487
+ };
488
+ },
413
489
  };
414
490
 
415
-
416
-
417
- exports.OcfInterestRate = {
418
- decoder: damlTypes.lazyMemo(function () { return jtv.object({accrual_start_date: damlTypes.Time.decoder, rate: damlTypes.Numeric(10).decoder, accrual_end_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
491
+ exports.OcfStockClassConversionRight = {
492
+ decoder: damlTypes.lazyMemo(function () {
493
+ return jtv.object({
494
+ conversion_mechanism: exports.OcfConversionMechanism.decoder,
495
+ conversion_trigger: exports.OcfConversionTrigger.decoder,
496
+ converts_to_stock_class_id: damlTypes.Text.decoder,
497
+ type_: damlTypes.Text.decoder,
498
+ ceiling_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
499
+ conversion_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
500
+ converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder),
501
+ custom_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
502
+ discount_rate: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
503
+ expires_at: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
504
+ floor_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
505
+ percent_of_capitalization: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
506
+ ratio: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).decoder),
507
+ reference_share_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
508
+ reference_valuation_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
509
+ valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
510
+ });
511
+ }),
419
512
  encode: function (__typed__) {
420
- return {
421
- accrual_start_date: damlTypes.Time.encode(__typed__.accrual_start_date),
422
- rate: damlTypes.Numeric(10).encode(__typed__.rate),
423
- accrual_end_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.accrual_end_date),
424
- };
425
- }
426
- ,
513
+ return {
514
+ conversion_mechanism: exports.OcfConversionMechanism.encode(__typed__.conversion_mechanism),
515
+ conversion_trigger: exports.OcfConversionTrigger.encode(__typed__.conversion_trigger),
516
+ converts_to_stock_class_id: damlTypes.Text.encode(__typed__.converts_to_stock_class_id),
517
+ type_: damlTypes.Text.encode(__typed__.type_),
518
+ ceiling_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.ceiling_price_per_share),
519
+ conversion_price: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.conversion_price),
520
+ converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
521
+ custom_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.custom_description),
522
+ discount_rate: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_rate),
523
+ expires_at: damlTypes.Optional(damlTypes.Time).encode(__typed__.expires_at),
524
+ floor_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.floor_price_per_share),
525
+ percent_of_capitalization: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.percent_of_capitalization),
526
+ ratio: damlTypes.Optional(Fairmint_OpenCapTable_Types_Stock.OcfRatio).encode(__typed__.ratio),
527
+ reference_share_price: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.reference_share_price),
528
+ reference_valuation_price_per_share: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.reference_valuation_price_per_share),
529
+ valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_cap),
530
+ };
531
+ },
427
532
  };
428
533
 
429
-
430
-
431
- exports.OcfAccrualPeriodType = {
432
- OcfAccrualDaily: 'OcfAccrualDaily',
433
- OcfAccrualMonthly: 'OcfAccrualMonthly',
434
- OcfAccrualQuarterly: 'OcfAccrualQuarterly',
435
- OcfAccrualSemiAnnual: 'OcfAccrualSemiAnnual',
436
- OcfAccrualAnnual: 'OcfAccrualAnnual',
437
- keys: ['OcfAccrualDaily','OcfAccrualMonthly','OcfAccrualQuarterly','OcfAccrualSemiAnnual','OcfAccrualAnnual',],
438
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualDaily), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualMonthly), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualQuarterly), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualSemiAnnual), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualAnnual)); }),
439
- encode: function (__typed__) { return __typed__; },
440
- };
441
-
442
-
443
-
444
- exports.OcfConversionTimingType = {
445
- OcfConvTimingPreMoney: 'OcfConvTimingPreMoney',
446
- OcfConvTimingPostMoney: 'OcfConvTimingPostMoney',
447
- keys: ['OcfConvTimingPreMoney','OcfConvTimingPostMoney',],
448
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionTimingType.OcfConvTimingPreMoney), jtv.constant(exports.OcfConversionTimingType.OcfConvTimingPostMoney)); }),
449
- encode: function (__typed__) { return __typed__; },
450
- };
451
-
452
-
453
-
454
- exports.OcfRoundingType = {
455
- OcfRoundingCeiling: 'OcfRoundingCeiling',
456
- OcfRoundingFloor: 'OcfRoundingFloor',
457
- OcfRoundingNormal: 'OcfRoundingNormal',
458
- keys: ['OcfRoundingCeiling','OcfRoundingFloor','OcfRoundingNormal',],
459
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfRoundingType.OcfRoundingCeiling), jtv.constant(exports.OcfRoundingType.OcfRoundingFloor), jtv.constant(exports.OcfRoundingType.OcfRoundingNormal)); }),
460
- encode: function (__typed__) { return __typed__; },
534
+ exports.OcfValuationBasedConversionMechanism = {
535
+ decoder: damlTypes.lazyMemo(function () {
536
+ return jtv.object({
537
+ valuation_type: exports.OcfValuationBasedFormulaType.decoder,
538
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
539
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
540
+ valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
541
+ });
542
+ }),
543
+ encode: function (__typed__) {
544
+ return {
545
+ valuation_type: exports.OcfValuationBasedFormulaType.encode(__typed__.valuation_type),
546
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
547
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
548
+ valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_amount),
549
+ };
550
+ },
461
551
  };
462
552
 
463
-
464
-
465
- exports.OcfDayCountType = {
466
- OcfDayCountActual365: 'OcfDayCountActual365',
467
- OcfDayCount30_360: 'OcfDayCount30_360',
468
- keys: ['OcfDayCountActual365','OcfDayCount30_360',],
469
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfDayCountType.OcfDayCountActual365), jtv.constant(exports.OcfDayCountType.OcfDayCount30_360)); }),
553
+ exports.OcfValuationBasedFormulaType = {
554
+ OcfValuationCap: 'OcfValuationCap',
555
+ OcfValuationFixed: 'OcfValuationFixed',
556
+ OcfValuationActual: 'OcfValuationActual',
557
+ keys: ['OcfValuationCap', 'OcfValuationFixed', 'OcfValuationActual'],
558
+ decoder: damlTypes.lazyMemo(function () {
559
+ return jtv.oneOf(
560
+ jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationCap),
561
+ jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFixed),
562
+ jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationActual),
563
+ );
564
+ }),
470
565
  encode: function (__typed__) { return __typed__; },
471
566
  };
472
567
 
473
-
474
-
475
- exports.OcfCompoundingType = {
476
- OcfCompounding: 'OcfCompounding',
477
- OcfSimple: 'OcfSimple',
478
- keys: ['OcfCompounding','OcfSimple',],
479
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfCompoundingType.OcfCompounding), jtv.constant(exports.OcfCompoundingType.OcfSimple)); }),
480
- encode: function (__typed__) { return __typed__; },
568
+ exports.OcfWarrantConversionMechanism = {
569
+ decoder: damlTypes.lazyMemo(function () {
570
+ return jtv.oneOf(
571
+ jtv.object({
572
+ tag: jtv.constant("OcfWarrantMechanismCustom"),
573
+ value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.decoder,
574
+ }),
575
+ jtv.object({
576
+ tag: jtv.constant("OcfWarrantMechanismPercentCapitalization"),
577
+ value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.decoder,
578
+ }),
579
+ jtv.object({
580
+ tag: jtv.constant("OcfWarrantMechanismFixedAmount"),
581
+ value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.decoder,
582
+ }),
583
+ jtv.object({
584
+ tag: jtv.constant("OcfWarrantMechanismValuationBased"),
585
+ value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.decoder,
586
+ }),
587
+ jtv.object({
588
+ tag: jtv.constant("OcfWarrantMechanismPpsBased"),
589
+ value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPpsBased.decoder,
590
+ }),
591
+ );
592
+ }),
593
+ encode: function (__typed__) {
594
+ switch(__typed__.tag) {
595
+ case 'OcfWarrantMechanismCustom': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.encode(__typed__.value)};
596
+ case 'OcfWarrantMechanismPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.encode(__typed__.value)};
597
+ case 'OcfWarrantMechanismFixedAmount': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.encode(__typed__.value)};
598
+ case 'OcfWarrantMechanismValuationBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.encode(__typed__.value)};
599
+ case 'OcfWarrantMechanismPpsBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPpsBased.encode(__typed__.value)};
600
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfWarrantConversionMechanism';
601
+ }
602
+ },
603
+ OcfWarrantMechanismCustom: {
604
+ decoder: damlTypes.lazyMemo(function () {
605
+ return jtv.object({
606
+ custom_conversion_description: damlTypes.Text.decoder,
607
+ });
608
+ }),
609
+ encode: function (__typed__) {
610
+ return {
611
+ custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
612
+ };
613
+ },
614
+ },
615
+ OcfWarrantMechanismFixedAmount: {
616
+ decoder: damlTypes.lazyMemo(function () {
617
+ return jtv.object({
618
+ converts_to_quantity: damlTypes.Numeric(10).decoder,
619
+ });
620
+ }),
621
+ encode: function (__typed__) {
622
+ return {
623
+ converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
624
+ };
625
+ },
626
+ },
627
+ OcfWarrantMechanismPercentCapitalization: {
628
+ decoder: damlTypes.lazyMemo(function () {
629
+ return jtv.object({
630
+ converts_to_percent: damlTypes.Numeric(10).decoder,
631
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
632
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
633
+ });
634
+ }),
635
+ encode: function (__typed__) {
636
+ return {
637
+ converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
638
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
639
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
640
+ };
641
+ },
642
+ },
643
+ OcfWarrantMechanismPpsBased: {
644
+ decoder: damlTypes.lazyMemo(function () {
645
+ return jtv.object({
646
+ description: damlTypes.Text.decoder,
647
+ discount: damlTypes.Bool.decoder,
648
+ discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder),
649
+ discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
650
+ });
651
+ }),
652
+ encode: function (__typed__) {
653
+ return {
654
+ description: damlTypes.Text.encode(__typed__.description),
655
+ discount: damlTypes.Bool.encode(__typed__.discount),
656
+ discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
657
+ discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.discount_amount),
658
+ };
659
+ },
660
+ },
661
+ OcfWarrantMechanismValuationBased: {
662
+ decoder: damlTypes.lazyMemo(function () {
663
+ return jtv.object({
664
+ valuation_type: damlTypes.Text.decoder,
665
+ valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).decoder),
666
+ capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
667
+ capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).decoder),
668
+ });
669
+ }),
670
+ encode: function (__typed__) {
671
+ return {
672
+ valuation_type: damlTypes.Text.encode(__typed__.valuation_type),
673
+ valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types_Monetary.OcfMonetary).encode(__typed__.valuation_amount),
674
+ capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
675
+ capitalization_definition_rules: damlTypes.Optional(exports.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
676
+ };
677
+ },
678
+ },
481
679
  };
482
680
 
483
-
484
-
485
- exports.OcfInterestPayoutType = {
486
- OcfInterestPayoutDeferred: 'OcfInterestPayoutDeferred',
487
- OcfInterestPayoutCash: 'OcfInterestPayoutCash',
488
- keys: ['OcfInterestPayoutDeferred','OcfInterestPayoutCash',],
489
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutDeferred), jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutCash)); }),
490
- encode: function (__typed__) { return __typed__; },
681
+ exports.OcfWarrantConversionRight = {
682
+ decoder: damlTypes.lazyMemo(function () {
683
+ return jtv.object({
684
+ conversion_mechanism: exports.OcfWarrantConversionMechanism.decoder,
685
+ type_: damlTypes.Text.decoder,
686
+ converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder),
687
+ converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
688
+ });
689
+ }),
690
+ encode: function (__typed__) {
691
+ return {
692
+ conversion_mechanism: exports.OcfWarrantConversionMechanism.encode(__typed__.conversion_mechanism),
693
+ type_: damlTypes.Text.encode(__typed__.type_),
694
+ converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
695
+ converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
696
+ };
697
+ },
491
698
  };
492
-