@fairmint/open-captable-protocol-daml-js 0.3.6 → 0.3.8

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 +6 -4
  2. package/lib/DA/Internal/Template/module.js +7 -7
  3. package/lib/DA/Set/Types/index.js +0 -1
  4. package/lib/DA/Set/Types/module.d.ts +7 -6
  5. package/lib/DA/Set/Types/module.js +11 -15
  6. package/lib/DA/Set/index.d.ts +1 -2
  7. package/lib/DA/Set/index.js +0 -2
  8. package/lib/DA/Time/Types/index.js +0 -1
  9. package/lib/DA/Time/Types/module.d.ts +7 -5
  10. package/lib/DA/Time/Types/module.js +8 -10
  11. package/lib/DA/Time/index.d.ts +1 -2
  12. package/lib/DA/Time/index.js +0 -2
  13. package/lib/DA/Types/index.js +0 -1
  14. package/lib/DA/Types/module.d.ts +344 -305
  15. package/lib/DA/Types/module.js +431 -689
  16. package/lib/Fairmint/OpenCapTable/CapTable/index.js +0 -1
  17. package/lib/Fairmint/OpenCapTable/CapTable/module.d.ts +358 -336
  18. package/lib/Fairmint/OpenCapTable/CapTable/module.js +406 -1286
  19. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/index.js +0 -1
  20. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +25 -21
  21. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +59 -71
  22. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/index.js +0 -1
  23. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.d.ts +22 -17
  24. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +40 -49
  25. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/index.js +0 -1
  26. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.d.ts +25 -20
  27. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +43 -55
  28. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/index.js +0 -1
  29. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.d.ts +28 -23
  30. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +46 -61
  31. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/index.js +0 -1
  32. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.d.ts +50 -42
  33. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +68 -97
  34. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/index.js +0 -1
  35. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.d.ts +23 -18
  36. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +41 -51
  37. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/index.js +0 -1
  38. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.d.ts +26 -21
  39. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +44 -57
  40. package/lib/Fairmint/OpenCapTable/OCF/Document/index.js +0 -1
  41. package/lib/Fairmint/OpenCapTable/OCF/Document/module.d.ts +51 -39
  42. package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +64 -134
  43. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/index.js +0 -1
  44. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.d.ts +22 -17
  45. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +40 -49
  46. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/index.js +0 -1
  47. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.d.ts +25 -20
  48. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +43 -55
  49. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/index.js +0 -1
  50. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.d.ts +25 -20
  51. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +43 -55
  52. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/index.js +0 -1
  53. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.d.ts +39 -34
  54. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +57 -83
  55. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/index.js +0 -1
  56. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.d.ts +27 -22
  57. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +45 -59
  58. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/index.js +0 -1
  59. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.d.ts +23 -18
  60. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +41 -51
  61. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/index.js +0 -1
  62. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.d.ts +23 -18
  63. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +41 -51
  64. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/index.js +0 -1
  65. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.d.ts +26 -21
  66. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +44 -57
  67. package/lib/Fairmint/OpenCapTable/OCF/Issuer/index.js +0 -1
  68. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.d.ts +31 -26
  69. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +49 -67
  70. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/index.js +0 -1
  71. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.d.ts +25 -20
  72. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +43 -55
  73. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/index.js +0 -1
  74. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.d.ts +76 -54
  75. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +95 -132
  76. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/index.js +0 -1
  77. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.d.ts +24 -19
  78. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +42 -53
  79. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/index.js +0 -1
  80. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.d.ts +23 -18
  81. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +41 -51
  82. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/index.js +0 -1
  83. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.d.ts +22 -17
  84. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +40 -49
  85. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/index.js +0 -1
  86. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.d.ts +25 -20
  87. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +43 -55
  88. package/lib/Fairmint/OpenCapTable/OCF/StockClass/index.js +0 -1
  89. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.d.ts +33 -28
  90. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +51 -71
  91. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/index.js +0 -1
  92. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.d.ts +25 -20
  93. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +43 -55
  94. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/index.js +0 -1
  95. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.d.ts +23 -18
  96. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +41 -51
  97. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/index.js +0 -1
  98. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.d.ts +23 -18
  99. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +41 -51
  100. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/index.js +0 -1
  101. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.d.ts +24 -19
  102. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +42 -53
  103. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/index.js +0 -1
  104. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.d.ts +25 -20
  105. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +43 -55
  106. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/index.js +0 -1
  107. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.d.ts +44 -35
  108. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +60 -88
  109. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/index.js +0 -1
  110. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.d.ts +22 -17
  111. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +40 -49
  112. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/index.js +0 -1
  113. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.d.ts +32 -23
  114. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +48 -66
  115. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/index.js +0 -1
  116. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.d.ts +25 -20
  117. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +43 -55
  118. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/index.js +0 -1
  119. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.d.ts +25 -20
  120. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +43 -55
  121. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/index.js +0 -1
  122. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.d.ts +25 -20
  123. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +43 -55
  124. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/index.js +0 -1
  125. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.d.ts +26 -21
  126. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +44 -57
  127. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/index.js +0 -1
  128. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.d.ts +23 -18
  129. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +41 -51
  130. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/index.js +0 -1
  131. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.d.ts +26 -21
  132. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +44 -57
  133. package/lib/Fairmint/OpenCapTable/OCF/Valuation/index.js +0 -1
  134. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.d.ts +33 -24
  135. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +49 -65
  136. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/index.js +0 -1
  137. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.d.ts +24 -19
  138. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +42 -53
  139. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/index.js +0 -1
  140. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.d.ts +23 -18
  141. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +41 -51
  142. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/index.js +0 -1
  143. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.d.ts +23 -18
  144. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +41 -51
  145. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/index.js +0 -1
  146. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.d.ts +119 -86
  147. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +157 -252
  148. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/index.js +0 -1
  149. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.d.ts +22 -17
  150. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +40 -49
  151. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/index.js +0 -1
  152. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.d.ts +25 -20
  153. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +43 -55
  154. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/index.js +0 -1
  155. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.d.ts +26 -21
  156. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +44 -57
  157. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/index.js +0 -1
  158. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.d.ts +36 -31
  159. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +54 -77
  160. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/index.js +0 -1
  161. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.d.ts +23 -18
  162. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +41 -51
  163. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/index.js +0 -1
  164. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.d.ts +26 -21
  165. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +44 -57
  166. package/lib/Fairmint/OpenCapTable/OCF/index.d.ts +48 -49
  167. package/lib/Fairmint/OpenCapTable/OCF/index.js +47 -49
  168. package/lib/Fairmint/OpenCapTable/OcpFactory/index.js +0 -1
  169. package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +18 -15
  170. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +41 -50
  171. package/lib/Fairmint/OpenCapTable/Types/Contact/index.js +0 -1
  172. package/lib/Fairmint/OpenCapTable/Types/Contact/module.d.ts +27 -14
  173. package/lib/Fairmint/OpenCapTable/Types/Contact/module.js +26 -40
  174. package/lib/Fairmint/OpenCapTable/Types/Conversion/index.js +0 -1
  175. package/lib/Fairmint/OpenCapTable/Types/Conversion/module.d.ts +361 -252
  176. package/lib/Fairmint/OpenCapTable/Types/Conversion/module.js +396 -602
  177. package/lib/Fairmint/OpenCapTable/Types/Core/index.js +0 -1
  178. package/lib/Fairmint/OpenCapTable/Types/Core/module.d.ts +18 -13
  179. package/lib/Fairmint/OpenCapTable/Types/Core/module.js +20 -25
  180. package/lib/Fairmint/OpenCapTable/Types/Monetary/index.js +0 -1
  181. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.d.ts +35 -23
  182. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.js +37 -52
  183. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/index.js +0 -1
  184. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.d.ts +7 -4
  185. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.js +4 -19
  186. package/lib/Fairmint/OpenCapTable/Types/Stock/index.js +0 -1
  187. package/lib/Fairmint/OpenCapTable/Types/Stock/module.d.ts +90 -56
  188. package/lib/Fairmint/OpenCapTable/Types/Stock/module.js +86 -132
  189. package/lib/Fairmint/OpenCapTable/Types/Vesting/index.js +0 -1
  190. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.d.ts +57 -37
  191. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.js +56 -90
  192. package/lib/Fairmint/OpenCapTable/Types/index.d.ts +7 -8
  193. package/lib/Fairmint/OpenCapTable/Types/index.js +6 -8
  194. package/lib/Fairmint/OpenCapTable/index.d.ts +5 -6
  195. package/lib/Fairmint/OpenCapTable/index.js +4 -6
  196. package/lib/Splice/Amulet/TokenApiUtils/index.js +0 -1
  197. package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +7 -4
  198. package/lib/Splice/Amulet/TokenApiUtils/module.js +4 -12
  199. package/lib/Splice/Amulet/TwoStepTransfer/index.js +0 -1
  200. package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +15 -13
  201. package/lib/Splice/Amulet/TwoStepTransfer/module.js +16 -26
  202. package/lib/Splice/Amulet/index.d.ts +2 -4
  203. package/lib/Splice/Amulet/index.js +1 -4
  204. package/lib/Splice/Amulet/module.d.ts +487 -370
  205. package/lib/Splice/Amulet/module.js +817 -996
  206. package/lib/Splice/AmuletAllocation/index.js +0 -1
  207. package/lib/Splice/AmuletAllocation/module.d.ts +11 -9
  208. package/lib/Splice/AmuletAllocation/module.js +26 -31
  209. package/lib/Splice/AmuletConfig/index.js +0 -1
  210. package/lib/Splice/AmuletConfig/module.d.ts +56 -42
  211. package/lib/Splice/AmuletConfig/module.js +62 -93
  212. package/lib/Splice/AmuletRules/index.js +0 -1
  213. package/lib/Splice/AmuletRules/module.d.ts +875 -682
  214. package/lib/Splice/AmuletRules/module.js +1274 -1689
  215. package/lib/Splice/AmuletTransferInstruction/index.js +0 -1
  216. package/lib/Splice/AmuletTransferInstruction/module.d.ts +11 -9
  217. package/lib/Splice/AmuletTransferInstruction/module.js +26 -31
  218. package/lib/Splice/Api/FeaturedAppRightV1/module.d.ts +50 -40
  219. package/lib/Splice/Api/FeaturedAppRightV1/module.js +61 -84
  220. package/lib/Splice/Api/FeaturedAppRightV2/index.js +0 -1
  221. package/lib/Splice/Api/FeaturedAppRightV2/module.d.ts +51 -41
  222. package/lib/Splice/Api/FeaturedAppRightV2/module.js +62 -86
  223. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +0 -1
  224. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +99 -82
  225. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +142 -202
  226. package/lib/Splice/Api/Token/AllocationV1/index.js +0 -1
  227. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +109 -84
  228. package/lib/Splice/Api/Token/AllocationV1/module.js +139 -185
  229. package/lib/Splice/Api/Token/HoldingV1/index.js +0 -1
  230. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +34 -27
  231. package/lib/Splice/Api/Token/HoldingV1/module.js +39 -55
  232. package/lib/Splice/Api/Token/MetadataV1/index.js +0 -1
  233. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +60 -44
  234. package/lib/Splice/Api/Token/MetadataV1/module.js +70 -123
  235. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +0 -1
  236. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +137 -112
  237. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +195 -278
  238. package/lib/Splice/DecentralizedSynchronizer/index.js +0 -1
  239. package/lib/Splice/DecentralizedSynchronizer/module.d.ts +58 -44
  240. package/lib/Splice/DecentralizedSynchronizer/module.js +79 -103
  241. package/lib/Splice/Expiry/index.js +0 -1
  242. package/lib/Splice/Expiry/module.d.ts +18 -14
  243. package/lib/Splice/Expiry/module.js +23 -37
  244. package/lib/Splice/ExternalPartyAmuletRules/index.js +0 -1
  245. package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +147 -116
  246. package/lib/Splice/ExternalPartyAmuletRules/module.js +242 -307
  247. package/lib/Splice/Fees/index.js +0 -1
  248. package/lib/Splice/Fees/module.d.ts +40 -26
  249. package/lib/Splice/Fees/module.js +48 -57
  250. package/lib/Splice/Issuance/index.js +0 -1
  251. package/lib/Splice/Issuance/module.d.ts +50 -39
  252. package/lib/Splice/Issuance/module.js +56 -82
  253. package/lib/Splice/RelRound/index.js +0 -1
  254. package/lib/Splice/RelRound/module.d.ts +7 -5
  255. package/lib/Splice/RelRound/module.js +8 -10
  256. package/lib/Splice/Round/index.js +0 -1
  257. package/lib/Splice/Round/module.d.ts +78 -66
  258. package/lib/Splice/Round/module.js +142 -186
  259. package/lib/Splice/Schedule/index.js +0 -1
  260. package/lib/Splice/Schedule/module.d.ts +8 -7
  261. package/lib/Splice/Schedule/module.js +12 -17
  262. package/lib/Splice/Types/index.js +0 -1
  263. package/lib/Splice/Types/module.d.ts +31 -20
  264. package/lib/Splice/Types/module.js +37 -44
  265. package/lib/Splice/ValidatorLicense/index.js +0 -1
  266. package/lib/Splice/ValidatorLicense/module.d.ts +195 -145
  267. package/lib/Splice/ValidatorLicense/module.js +310 -388
  268. package/package.json +8 -8
  269. package/published-dars/OpenCapTable.dar +0 -0
@@ -5,7 +5,6 @@ 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
-
9
8
  /* eslint-disable-next-line no-unused-vars */
10
9
  var jtv = require('@mojotech/json-type-validation');
11
10
  /* eslint-disable-next-line no-unused-vars */
@@ -14,178 +13,210 @@ var damlTypes = require('@daml/types');
14
13
  var Fairmint_OpenCapTable_Types_Monetary = require('../../../../Fairmint/OpenCapTable/Types/Monetary/module');
15
14
  var Fairmint_OpenCapTable_Types_Stock = require('../../../../Fairmint/OpenCapTable/Types/Stock/module');
16
15
 
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__; },
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
+ ,
34
33
  };
35
34
 
35
+
36
+
36
37
  exports.OcfAnyConversionRight = {
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
- }),
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, })); }),
53
39
  encode: function (__typed__) {
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
- },
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
+ ,
61
48
  };
62
49
 
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
- }),
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), }); }),
72
54
  encode: function (__typed__) {
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
- },
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
+ ,
80
75
  };
81
76
 
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
- }),
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), }); }),
95
81
  encode: function (__typed__) {
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
- },
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
+ ,
107
90
  };
108
91
 
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__; },
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, })); }),
96
+ 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
+ ,
120
110
  };
121
111
 
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
- );
143
- }),
144
- encode: function (__typed__) { return __typed__; },
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
+ ,
145
125
  };
146
126
 
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
- );
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
+ ,
156
194
  }),
157
- encode: function (__typed__) { return __typed__; },
158
195
  };
159
196
 
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
- },
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)); }),
215
+ encode: function (__typed__) { return __typed__; },
187
216
  };
188
217
 
218
+
219
+
189
220
  exports.OcfConversionTriggerType = {
190
221
  OcfTriggerTypeTypeAutomaticOnCondition: 'OcfTriggerTypeTypeAutomaticOnCondition',
191
222
  OcfTriggerTypeTypeAutomaticOnDate: 'OcfTriggerTypeTypeAutomaticOnDate',
@@ -193,506 +224,269 @@ exports.OcfConversionTriggerType = {
193
224
  OcfTriggerTypeTypeElectiveOnCondition: 'OcfTriggerTypeTypeElectiveOnCondition',
194
225
  OcfTriggerTypeTypeElectiveAtWill: 'OcfTriggerTypeTypeElectiveAtWill',
195
226
  OcfTriggerTypeTypeUnspecified: '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
- }),
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)); }),
207
229
  encode: function (__typed__) { return __typed__; },
208
230
  };
209
231
 
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
- }),
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), }); }),
247
236
  encode: function (__typed__) {
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
- },
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
+ ,
260
252
  };
261
253
 
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
- }),
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), }); }),
271
258
  encode: function (__typed__) {
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
- },
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
+ ,
279
270
  };
280
271
 
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
- };
295
272
 
296
- exports.OcfCustomConversionMechanism = {
297
- decoder: damlTypes.lazyMemo(function () {
298
- return jtv.object({
299
- custom_conversion_description: damlTypes.Text.decoder,
300
- });
301
- }),
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), }); }),
302
276
  encode: function (__typed__) {
303
- return {
304
- custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
305
- };
306
- },
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
+ ,
307
285
  };
308
286
 
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
- }),
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)); }),
319
295
  encode: function (__typed__) { return __typed__; },
320
296
  };
321
297
 
322
- exports.OcfFixedAmountConversionMechanism = {
323
- decoder: damlTypes.lazyMemo(function () {
324
- return jtv.object({
325
- converts_to_quantity: damlTypes.Numeric(10).decoder,
326
- });
327
- }),
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), }); }),
328
302
  encode: function (__typed__) {
329
- return {
330
- converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
331
- };
332
- },
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
+ ,
333
311
  };
334
312
 
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
- };
347
313
 
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
- }),
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), }); }),
356
317
  encode: function (__typed__) {
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
- },
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
+ ,
363
325
  };
364
326
 
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
- }),
327
+
328
+
329
+ exports.OcfFixedAmountConversionMechanism = {
330
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_quantity: damlTypes.Numeric(10).decoder, }); }),
381
331
  encode: function (__typed__) {
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
- },
332
+ return {
333
+ converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
334
+ };
335
+ }
336
+ ,
396
337
  };
397
338
 
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
- }),
339
+
340
+
341
+ exports.OcfCustomConversionMechanism = {
342
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({custom_conversion_description: damlTypes.Text.decoder, }); }),
406
343
  encode: function (__typed__) {
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
- },
344
+ return {
345
+ custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
346
+ };
347
+ }
348
+ ,
413
349
  };
414
350
 
351
+
352
+
415
353
  exports.OcfRatioConversionMechanism = {
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
- }),
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, }); }),
423
355
  encode: function (__typed__) {
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
- },
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
+ ,
430
363
  };
431
364
 
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
- }),
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)); }),
444
378
  encode: function (__typed__) { return __typed__; },
445
379
  };
446
380
 
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
- }),
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, }); }),
459
385
  encode: function (__typed__) {
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
- },
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
+ ,
470
398
  };
471
399
 
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
- }),
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, }); }),
481
404
  encode: function (__typed__) {
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
- },
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
+ ,
489
413
  };
490
414
 
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
- }),
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), }); }),
512
419
  encode: function (__typed__) {
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
- },
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
+ ,
532
427
  };
533
428
 
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
- },
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__; },
551
440
  };
552
441
 
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
- }),
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)); }),
565
449
  encode: function (__typed__) { return __typed__; },
566
450
  };
567
451
 
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
- },
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__; },
679
461
  };
680
462
 
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
- },
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)); }),
470
+ encode: function (__typed__) { return __typed__; },
698
471
  };
472
+
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__; },
481
+ };
482
+
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__; },
491
+ };
492
+