@open-captable-protocol/canton 0.2.90 → 0.2.91

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 (262) hide show
  1. package/dist/OcpClient.d.ts +19 -19
  2. package/dist/OcpClient.d.ts.map +1 -1
  3. package/dist/OcpClient.js +50 -50
  4. package/dist/OcpClient.js.map +1 -1
  5. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/addFunds.d.ts +1 -1
  6. package/dist/functions/PaymentStreams/activePaymentStream/addFunds.d.ts.map +1 -0
  7. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/addFunds.js +3 -3
  8. package/dist/functions/PaymentStreams/activePaymentStream/addFunds.js.map +1 -0
  9. package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.d.ts +7 -0
  10. package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.d.ts.map +1 -0
  11. package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.js +17 -0
  12. package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.js.map +1 -0
  13. package/dist/functions/PaymentStreams/activePaymentStream/cancel.d.ts +10 -0
  14. package/dist/functions/PaymentStreams/activePaymentStream/cancel.d.ts.map +1 -0
  15. package/dist/functions/PaymentStreams/activePaymentStream/cancel.js +21 -0
  16. package/dist/functions/PaymentStreams/activePaymentStream/cancel.js.map +1 -0
  17. package/dist/functions/PaymentStreams/activePaymentStream/changeParty.d.ts +10 -0
  18. package/dist/functions/PaymentStreams/activePaymentStream/changeParty.d.ts.map +1 -0
  19. package/dist/functions/PaymentStreams/activePaymentStream/changeParty.js +19 -0
  20. package/dist/functions/PaymentStreams/activePaymentStream/changeParty.js.map +1 -0
  21. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/index.d.ts +5 -5
  22. package/dist/functions/PaymentStreams/activePaymentStream/index.d.ts.map +1 -0
  23. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/index.js +4 -4
  24. package/dist/functions/PaymentStreams/activePaymentStream/index.js.map +1 -0
  25. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/processFreeTrial.d.ts +1 -1
  26. package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.d.ts.map +1 -0
  27. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/processFreeTrial.js +3 -3
  28. package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.js.map +1 -0
  29. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/processPayment.d.ts +2 -1
  30. package/dist/functions/PaymentStreams/activePaymentStream/processPayment.d.ts.map +1 -0
  31. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/processPayment.js +4 -3
  32. package/dist/functions/PaymentStreams/activePaymentStream/processPayment.js.map +1 -0
  33. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/proposeChanges.d.ts +8 -8
  34. package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.d.ts.map +1 -0
  35. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/proposeChanges.js +10 -10
  36. package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.js.map +1 -0
  37. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/refund.d.ts +3 -3
  38. package/dist/functions/PaymentStreams/activePaymentStream/refund.d.ts.map +1 -0
  39. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/refund.js +5 -5
  40. package/dist/functions/PaymentStreams/activePaymentStream/refund.js.map +1 -0
  41. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/replaceLockedAmulet.d.ts +1 -1
  42. package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.d.ts.map +1 -0
  43. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/replaceLockedAmulet.js +3 -3
  44. package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.js.map +1 -0
  45. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/withdrawFunds.d.ts +1 -1
  46. package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.d.ts.map +1 -0
  47. package/dist/functions/{Subscriptions/activeSubscription → PaymentStreams/activePaymentStream}/withdrawFunds.js +3 -3
  48. package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.js.map +1 -0
  49. package/dist/functions/PaymentStreams/index.d.ts +16 -0
  50. package/dist/functions/PaymentStreams/index.d.ts.map +1 -0
  51. package/dist/functions/PaymentStreams/index.js +58 -0
  52. package/dist/functions/PaymentStreams/index.js.map +1 -0
  53. package/dist/functions/PaymentStreams/partyMigrationProposal/approve.d.ts.map +1 -0
  54. package/dist/functions/{Subscriptions → PaymentStreams}/partyMigrationProposal/approve.js +1 -1
  55. package/dist/functions/PaymentStreams/partyMigrationProposal/approve.js.map +1 -0
  56. package/dist/functions/PaymentStreams/partyMigrationProposal/archive.d.ts.map +1 -0
  57. package/dist/functions/{Subscriptions → PaymentStreams}/partyMigrationProposal/archive.js +1 -1
  58. package/dist/functions/PaymentStreams/partyMigrationProposal/archive.js.map +1 -0
  59. package/dist/functions/PaymentStreams/partyMigrationProposal/index.d.ts +5 -0
  60. package/dist/functions/PaymentStreams/partyMigrationProposal/index.d.ts.map +1 -0
  61. package/dist/functions/{Subscriptions → PaymentStreams}/partyMigrationProposal/index.js +2 -2
  62. package/dist/functions/PaymentStreams/partyMigrationProposal/index.js.map +1 -0
  63. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.d.ts +8 -0
  64. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.d.ts.map +1 -0
  65. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.js +18 -0
  66. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.js.map +1 -0
  67. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts +8 -0
  68. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts.map +1 -0
  69. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.js +18 -0
  70. package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.js.map +1 -0
  71. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.d.ts +8 -0
  72. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.d.ts.map +1 -0
  73. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.js +18 -0
  74. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.js.map +1 -0
  75. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.d.ts +7 -0
  76. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.d.ts.map +1 -0
  77. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.js +17 -0
  78. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.js.map +1 -0
  79. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.d.ts.map +1 -0
  80. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.js.map +1 -0
  81. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.d.ts +8 -0
  82. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.d.ts.map +1 -0
  83. package/dist/functions/{Subscriptions/subscriptionChangeProposal → PaymentStreams/paymentStreamChangeProposal}/reject.js +4 -4
  84. package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.js.map +1 -0
  85. package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.d.ts +36 -0
  86. package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.d.ts.map +1 -0
  87. package/dist/functions/{Subscriptions/subscriptionFactory/createSubscriptionProposal.js → PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.js} +14 -14
  88. package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.js.map +1 -0
  89. package/dist/functions/PaymentStreams/paymentStreamFactory/index.d.ts +2 -0
  90. package/dist/functions/PaymentStreams/paymentStreamFactory/index.d.ts.map +1 -0
  91. package/dist/functions/{Subscriptions/subscriptionFactory → PaymentStreams/paymentStreamFactory}/index.js +1 -1
  92. package/dist/functions/PaymentStreams/paymentStreamFactory/index.js.map +1 -0
  93. package/dist/functions/PaymentStreams/proposedPaymentStream/approve.d.ts +7 -0
  94. package/dist/functions/PaymentStreams/proposedPaymentStream/approve.d.ts.map +1 -0
  95. package/dist/functions/PaymentStreams/proposedPaymentStream/approve.js +19 -0
  96. package/dist/functions/PaymentStreams/proposedPaymentStream/approve.js.map +1 -0
  97. package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.d.ts +10 -0
  98. package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.d.ts.map +1 -0
  99. package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.js +19 -0
  100. package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.js.map +1 -0
  101. package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.d.ts +27 -0
  102. package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.d.ts.map +1 -0
  103. package/dist/functions/{Subscriptions/proposedSubscription/editSubscriptionProposal.js → PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.js} +14 -14
  104. package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.js.map +1 -0
  105. package/dist/functions/PaymentStreams/proposedPaymentStream/index.d.ts +6 -0
  106. package/dist/functions/PaymentStreams/proposedPaymentStream/index.d.ts.map +1 -0
  107. package/dist/functions/{Subscriptions/proposedSubscription → PaymentStreams/proposedPaymentStream}/index.js +2 -2
  108. package/dist/functions/PaymentStreams/proposedPaymentStream/index.js.map +1 -0
  109. package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.d.ts +8 -0
  110. package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.d.ts.map +1 -0
  111. package/dist/functions/{Subscriptions/proposedSubscription/startSubscription.js → PaymentStreams/proposedPaymentStream/startPaymentStream.js} +6 -6
  112. package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.js.map +1 -0
  113. package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.d.ts +8 -0
  114. package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.d.ts.map +1 -0
  115. package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.js +19 -0
  116. package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.js.map +1 -0
  117. package/dist/functions/{Subscriptions/types/activeSubscription.d.ts → PaymentStreams/types/activePaymentStream.d.ts} +19 -19
  118. package/dist/functions/PaymentStreams/types/activePaymentStream.d.ts.map +1 -0
  119. package/dist/functions/{Subscriptions/types/activeSubscription.js → PaymentStreams/types/activePaymentStream.js} +10 -10
  120. package/dist/functions/PaymentStreams/types/activePaymentStream.js.map +1 -0
  121. package/dist/functions/PaymentStreams/types/index.d.ts +4 -0
  122. package/dist/functions/PaymentStreams/types/index.d.ts.map +1 -0
  123. package/dist/functions/{Subscriptions → PaymentStreams}/types/index.js +2 -2
  124. package/dist/functions/PaymentStreams/types/index.js.map +1 -0
  125. package/dist/functions/{Subscriptions → PaymentStreams}/types/lockFundsInput.d.ts +1 -1
  126. package/dist/functions/PaymentStreams/types/lockFundsInput.d.ts.map +1 -0
  127. package/dist/functions/PaymentStreams/types/lockFundsInput.js.map +1 -0
  128. package/dist/functions/{Subscriptions/types/proposedSubscription.d.ts → PaymentStreams/types/proposedPaymentStream.d.ts} +23 -23
  129. package/dist/functions/PaymentStreams/types/proposedPaymentStream.d.ts.map +1 -0
  130. package/dist/functions/PaymentStreams/types/proposedPaymentStream.js +48 -0
  131. package/dist/functions/PaymentStreams/types/proposedPaymentStream.js.map +1 -0
  132. package/dist/functions/{Subscriptions → PaymentStreams}/utils/disclosedContracts.d.ts +3 -3
  133. package/dist/functions/PaymentStreams/utils/disclosedContracts.d.ts.map +1 -0
  134. package/dist/functions/{Subscriptions → PaymentStreams}/utils/disclosedContracts.js +8 -8
  135. package/dist/functions/PaymentStreams/utils/disclosedContracts.js.map +1 -0
  136. package/dist/functions/{Subscriptions → PaymentStreams}/utils/factoryContractId.d.ts +3 -3
  137. package/dist/functions/PaymentStreams/utils/factoryContractId.d.ts.map +1 -0
  138. package/dist/functions/{Subscriptions → PaymentStreams}/utils/factoryContractId.js +5 -5
  139. package/dist/functions/PaymentStreams/utils/factoryContractId.js.map +1 -0
  140. package/dist/functions/PaymentStreams/utils/index.d.ts.map +1 -0
  141. package/dist/functions/PaymentStreams/utils/index.js.map +1 -0
  142. package/dist/functions/{Subscriptions → PaymentStreams}/utils/paymentContext.d.ts +9 -9
  143. package/dist/functions/PaymentStreams/utils/paymentContext.d.ts.map +1 -0
  144. package/dist/functions/{Subscriptions → PaymentStreams}/utils/paymentContext.js +41 -29
  145. package/dist/functions/PaymentStreams/utils/paymentContext.js.map +1 -0
  146. package/dist/functions/index.d.ts +1 -1
  147. package/dist/functions/index.d.ts.map +1 -1
  148. package/dist/functions/index.js +1 -1
  149. package/dist/functions/index.js.map +1 -1
  150. package/package.json +2 -2
  151. package/dist/functions/Subscriptions/activeSubscription/addFunds.d.ts.map +0 -1
  152. package/dist/functions/Subscriptions/activeSubscription/addFunds.js.map +0 -1
  153. package/dist/functions/Subscriptions/activeSubscription/archiveInactiveSubscription.d.ts +0 -7
  154. package/dist/functions/Subscriptions/activeSubscription/archiveInactiveSubscription.d.ts.map +0 -1
  155. package/dist/functions/Subscriptions/activeSubscription/archiveInactiveSubscription.js +0 -17
  156. package/dist/functions/Subscriptions/activeSubscription/archiveInactiveSubscription.js.map +0 -1
  157. package/dist/functions/Subscriptions/activeSubscription/cancel.d.ts +0 -11
  158. package/dist/functions/Subscriptions/activeSubscription/cancel.d.ts.map +0 -1
  159. package/dist/functions/Subscriptions/activeSubscription/cancel.js +0 -25
  160. package/dist/functions/Subscriptions/activeSubscription/cancel.js.map +0 -1
  161. package/dist/functions/Subscriptions/activeSubscription/changeParty.d.ts +0 -10
  162. package/dist/functions/Subscriptions/activeSubscription/changeParty.d.ts.map +0 -1
  163. package/dist/functions/Subscriptions/activeSubscription/changeParty.js +0 -19
  164. package/dist/functions/Subscriptions/activeSubscription/changeParty.js.map +0 -1
  165. package/dist/functions/Subscriptions/activeSubscription/index.d.ts.map +0 -1
  166. package/dist/functions/Subscriptions/activeSubscription/index.js.map +0 -1
  167. package/dist/functions/Subscriptions/activeSubscription/processFreeTrial.d.ts.map +0 -1
  168. package/dist/functions/Subscriptions/activeSubscription/processFreeTrial.js.map +0 -1
  169. package/dist/functions/Subscriptions/activeSubscription/processPayment.d.ts.map +0 -1
  170. package/dist/functions/Subscriptions/activeSubscription/processPayment.js.map +0 -1
  171. package/dist/functions/Subscriptions/activeSubscription/proposeChanges.d.ts.map +0 -1
  172. package/dist/functions/Subscriptions/activeSubscription/proposeChanges.js.map +0 -1
  173. package/dist/functions/Subscriptions/activeSubscription/refund.d.ts.map +0 -1
  174. package/dist/functions/Subscriptions/activeSubscription/refund.js.map +0 -1
  175. package/dist/functions/Subscriptions/activeSubscription/replaceLockedAmulet.d.ts.map +0 -1
  176. package/dist/functions/Subscriptions/activeSubscription/replaceLockedAmulet.js.map +0 -1
  177. package/dist/functions/Subscriptions/activeSubscription/withdrawFunds.d.ts.map +0 -1
  178. package/dist/functions/Subscriptions/activeSubscription/withdrawFunds.js.map +0 -1
  179. package/dist/functions/Subscriptions/index.d.ts +0 -16
  180. package/dist/functions/Subscriptions/index.d.ts.map +0 -1
  181. package/dist/functions/Subscriptions/index.js +0 -58
  182. package/dist/functions/Subscriptions/index.js.map +0 -1
  183. package/dist/functions/Subscriptions/partyMigrationProposal/approve.d.ts.map +0 -1
  184. package/dist/functions/Subscriptions/partyMigrationProposal/approve.js.map +0 -1
  185. package/dist/functions/Subscriptions/partyMigrationProposal/archive.d.ts.map +0 -1
  186. package/dist/functions/Subscriptions/partyMigrationProposal/archive.js.map +0 -1
  187. package/dist/functions/Subscriptions/partyMigrationProposal/index.d.ts +0 -5
  188. package/dist/functions/Subscriptions/partyMigrationProposal/index.d.ts.map +0 -1
  189. package/dist/functions/Subscriptions/partyMigrationProposal/index.js.map +0 -1
  190. package/dist/functions/Subscriptions/partyMigrationProposal/migrateActiveSubscription.d.ts +0 -8
  191. package/dist/functions/Subscriptions/partyMigrationProposal/migrateActiveSubscription.d.ts.map +0 -1
  192. package/dist/functions/Subscriptions/partyMigrationProposal/migrateActiveSubscription.js +0 -18
  193. package/dist/functions/Subscriptions/partyMigrationProposal/migrateActiveSubscription.js.map +0 -1
  194. package/dist/functions/Subscriptions/partyMigrationProposal/migrateProposedSubscription.d.ts +0 -8
  195. package/dist/functions/Subscriptions/partyMigrationProposal/migrateProposedSubscription.d.ts.map +0 -1
  196. package/dist/functions/Subscriptions/partyMigrationProposal/migrateProposedSubscription.js +0 -18
  197. package/dist/functions/Subscriptions/partyMigrationProposal/migrateProposedSubscription.js.map +0 -1
  198. package/dist/functions/Subscriptions/proposedSubscription/approve.d.ts +0 -7
  199. package/dist/functions/Subscriptions/proposedSubscription/approve.d.ts.map +0 -1
  200. package/dist/functions/Subscriptions/proposedSubscription/approve.js +0 -19
  201. package/dist/functions/Subscriptions/proposedSubscription/approve.js.map +0 -1
  202. package/dist/functions/Subscriptions/proposedSubscription/changeParty.d.ts +0 -10
  203. package/dist/functions/Subscriptions/proposedSubscription/changeParty.d.ts.map +0 -1
  204. package/dist/functions/Subscriptions/proposedSubscription/changeParty.js +0 -19
  205. package/dist/functions/Subscriptions/proposedSubscription/changeParty.js.map +0 -1
  206. package/dist/functions/Subscriptions/proposedSubscription/editSubscriptionProposal.d.ts +0 -27
  207. package/dist/functions/Subscriptions/proposedSubscription/editSubscriptionProposal.d.ts.map +0 -1
  208. package/dist/functions/Subscriptions/proposedSubscription/editSubscriptionProposal.js.map +0 -1
  209. package/dist/functions/Subscriptions/proposedSubscription/index.d.ts +0 -6
  210. package/dist/functions/Subscriptions/proposedSubscription/index.d.ts.map +0 -1
  211. package/dist/functions/Subscriptions/proposedSubscription/index.js.map +0 -1
  212. package/dist/functions/Subscriptions/proposedSubscription/startSubscription.d.ts +0 -8
  213. package/dist/functions/Subscriptions/proposedSubscription/startSubscription.d.ts.map +0 -1
  214. package/dist/functions/Subscriptions/proposedSubscription/startSubscription.js.map +0 -1
  215. package/dist/functions/Subscriptions/proposedSubscription/withdraw.d.ts +0 -8
  216. package/dist/functions/Subscriptions/proposedSubscription/withdraw.d.ts.map +0 -1
  217. package/dist/functions/Subscriptions/proposedSubscription/withdraw.js +0 -19
  218. package/dist/functions/Subscriptions/proposedSubscription/withdraw.js.map +0 -1
  219. package/dist/functions/Subscriptions/subscriptionChangeProposal/apply.d.ts +0 -8
  220. package/dist/functions/Subscriptions/subscriptionChangeProposal/apply.d.ts.map +0 -1
  221. package/dist/functions/Subscriptions/subscriptionChangeProposal/apply.js +0 -18
  222. package/dist/functions/Subscriptions/subscriptionChangeProposal/apply.js.map +0 -1
  223. package/dist/functions/Subscriptions/subscriptionChangeProposal/approve.d.ts +0 -7
  224. package/dist/functions/Subscriptions/subscriptionChangeProposal/approve.d.ts.map +0 -1
  225. package/dist/functions/Subscriptions/subscriptionChangeProposal/approve.js +0 -17
  226. package/dist/functions/Subscriptions/subscriptionChangeProposal/approve.js.map +0 -1
  227. package/dist/functions/Subscriptions/subscriptionChangeProposal/index.d.ts.map +0 -1
  228. package/dist/functions/Subscriptions/subscriptionChangeProposal/index.js.map +0 -1
  229. package/dist/functions/Subscriptions/subscriptionChangeProposal/reject.d.ts +0 -8
  230. package/dist/functions/Subscriptions/subscriptionChangeProposal/reject.d.ts.map +0 -1
  231. package/dist/functions/Subscriptions/subscriptionChangeProposal/reject.js.map +0 -1
  232. package/dist/functions/Subscriptions/subscriptionFactory/createSubscriptionProposal.d.ts +0 -36
  233. package/dist/functions/Subscriptions/subscriptionFactory/createSubscriptionProposal.d.ts.map +0 -1
  234. package/dist/functions/Subscriptions/subscriptionFactory/createSubscriptionProposal.js.map +0 -1
  235. package/dist/functions/Subscriptions/subscriptionFactory/index.d.ts +0 -2
  236. package/dist/functions/Subscriptions/subscriptionFactory/index.d.ts.map +0 -1
  237. package/dist/functions/Subscriptions/subscriptionFactory/index.js.map +0 -1
  238. package/dist/functions/Subscriptions/types/activeSubscription.d.ts.map +0 -1
  239. package/dist/functions/Subscriptions/types/activeSubscription.js.map +0 -1
  240. package/dist/functions/Subscriptions/types/index.d.ts +0 -4
  241. package/dist/functions/Subscriptions/types/index.d.ts.map +0 -1
  242. package/dist/functions/Subscriptions/types/index.js.map +0 -1
  243. package/dist/functions/Subscriptions/types/lockFundsInput.d.ts.map +0 -1
  244. package/dist/functions/Subscriptions/types/lockFundsInput.js.map +0 -1
  245. package/dist/functions/Subscriptions/types/proposedSubscription.d.ts.map +0 -1
  246. package/dist/functions/Subscriptions/types/proposedSubscription.js +0 -49
  247. package/dist/functions/Subscriptions/types/proposedSubscription.js.map +0 -1
  248. package/dist/functions/Subscriptions/utils/disclosedContracts.d.ts.map +0 -1
  249. package/dist/functions/Subscriptions/utils/disclosedContracts.js.map +0 -1
  250. package/dist/functions/Subscriptions/utils/factoryContractId.d.ts.map +0 -1
  251. package/dist/functions/Subscriptions/utils/factoryContractId.js.map +0 -1
  252. package/dist/functions/Subscriptions/utils/index.d.ts.map +0 -1
  253. package/dist/functions/Subscriptions/utils/index.js.map +0 -1
  254. package/dist/functions/Subscriptions/utils/paymentContext.d.ts.map +0 -1
  255. package/dist/functions/Subscriptions/utils/paymentContext.js.map +0 -1
  256. /package/dist/functions/{Subscriptions → PaymentStreams}/partyMigrationProposal/approve.d.ts +0 -0
  257. /package/dist/functions/{Subscriptions → PaymentStreams}/partyMigrationProposal/archive.d.ts +0 -0
  258. /package/dist/functions/{Subscriptions/subscriptionChangeProposal → PaymentStreams/paymentStreamChangeProposal}/index.d.ts +0 -0
  259. /package/dist/functions/{Subscriptions/subscriptionChangeProposal → PaymentStreams/paymentStreamChangeProposal}/index.js +0 -0
  260. /package/dist/functions/{Subscriptions → PaymentStreams}/types/lockFundsInput.js +0 -0
  261. /package/dist/functions/{Subscriptions → PaymentStreams}/utils/index.d.ts +0 -0
  262. /package/dist/functions/{Subscriptions → PaymentStreams}/utils/index.js +0 -0
@@ -12,12 +12,13 @@ function buildProcessPaymentCommand(params) {
12
12
  featuredAppRight: params.paymentContext.featuredAppRight,
13
13
  },
14
14
  skipProcessorPayment: params.skipProcessorPayment ?? false,
15
+ activityMarkerFeaturedAppRightCid: params.activityMarkerFeaturedAppRightCid ?? null,
15
16
  };
16
17
  const command = {
17
18
  ExerciseCommand: {
18
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.ActiveSubscription.ActiveSubscription.templateId,
19
- contractId: params.subscriptionContractId,
20
- choice: 'ActiveSubscription_ProcessPayment',
19
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream.templateId,
20
+ contractId: params.paymentStreamContractId,
21
+ choice: 'ActivePaymentStream_ProcessPayment',
21
22
  choiceArgument: choiceArguments,
22
23
  },
23
24
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processPayment.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/processPayment.ts"],"names":[],"mappings":";;AAcA,gEAsBC;AAnCD,6FAA0E;AAE1E,oEAA+D;AAW/D,SAAgB,0BAA0B,CAAC,MAA4B;IACrE,MAAM,eAAe,GAAG;QACtB,gBAAgB,EAAE,IAAA,+BAAa,EAAC,MAAM,CAAC,gBAAgB,CAAC;QACxD,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;QACD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,IAAI,KAAK;QAC1D,iCAAiC,EAAE,MAAM,CAAC,iCAAiC,IAAI,IAAI;KACpF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;YAC3F,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,oCAAoC;YAC5C,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
@@ -1,25 +1,25 @@
1
1
  import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
- import type { SubscriptionAmountInput, SubscriptionTimeInput } from '../subscriptionFactory/createSubscriptionProposal';
3
- export interface SubscriptionChanges {
2
+ import type { PaymentStreamAmountInput, PaymentStreamTimeInput } from '../paymentStreamFactory/createPaymentStreamProposal';
3
+ export interface PaymentStreamChanges {
4
4
  processedAndPaidUntilAdjustment?: string;
5
5
  recipientProvider?: string;
6
6
  recipientBeneficiaries?: Array<{
7
7
  party: string;
8
8
  weight: string;
9
9
  }> | null;
10
- recipientPaymentPerDay?: SubscriptionAmountInput;
11
- processorPaymentPerDay?: SubscriptionAmountInput | null;
10
+ recipientPaymentPerDay?: PaymentStreamAmountInput;
11
+ processorPaymentPerDay?: PaymentStreamAmountInput | null;
12
12
  prepayWindow?: string | null;
13
- paymentsEndAt?: SubscriptionTimeInput | null;
14
- trialEndsAt?: SubscriptionTimeInput | null;
13
+ paymentsEndAt?: PaymentStreamTimeInput | null;
14
+ trialEndsAt?: PaymentStreamTimeInput | null;
15
15
  description?: string | null;
16
16
  metadata?: Record<string, string> | null;
17
17
  observers?: string[];
18
18
  }
19
19
  export interface ProposeChangesParams {
20
- subscriptionContractId: string;
20
+ paymentStreamContractId: string;
21
21
  actor: string;
22
- subscriptionChanges: SubscriptionChanges;
22
+ paymentStreamChanges: PaymentStreamChanges;
23
23
  description?: string;
24
24
  }
25
25
  export declare function buildProposeChangesCommand(params: ProposeChangesParams): Command;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proposeChanges.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/proposeChanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,qDAAqD,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IACzE,sBAAsB,CAAC,EAAE,wBAAwB,CAAC;IAClD,sBAAsB,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAuDD,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAehF"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildProposeChangesCommand = buildProposeChangesCommand;
4
4
  const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
5
  const typeConversions_1 = require("../../../utils/typeConversions");
6
- function subscriptionAmountToDaml(amount) {
6
+ function paymentStreamAmountToDaml(amount) {
7
7
  const amountValue = typeof amount.amount === 'number' ? amount.amount.toString() : amount.amount;
8
8
  if (amount.type === 'AMULET') {
9
9
  return {
@@ -16,7 +16,7 @@ function subscriptionAmountToDaml(amount) {
16
16
  value: amountValue,
17
17
  };
18
18
  }
19
- function subscriptionTimeToDaml(time) {
19
+ function paymentStreamTimeToDaml(time) {
20
20
  if (time.type === 'PRECISE') {
21
21
  return {
22
22
  tag: 'PreciseTime',
@@ -37,16 +37,16 @@ function changesToDaml(changes) {
37
37
  if (changes.recipientBeneficiaries !== undefined)
38
38
  result.recipientBeneficiaries = changes.recipientBeneficiaries;
39
39
  if (changes.recipientPaymentPerDay !== undefined)
40
- result.recipientPaymentPerDay = subscriptionAmountToDaml(changes.recipientPaymentPerDay);
40
+ result.recipientPaymentPerDay = paymentStreamAmountToDaml(changes.recipientPaymentPerDay);
41
41
  if (changes.processorPaymentPerDay !== undefined)
42
42
  result.processorPaymentPerDay =
43
- changes.processorPaymentPerDay === null ? null : subscriptionAmountToDaml(changes.processorPaymentPerDay);
43
+ changes.processorPaymentPerDay === null ? null : paymentStreamAmountToDaml(changes.processorPaymentPerDay);
44
44
  if (changes.prepayWindow !== undefined)
45
45
  result.prepayWindow = changes.prepayWindow === null ? null : (0, typeConversions_1.relTimeToDAML)(changes.prepayWindow);
46
46
  if (changes.paymentsEndAt !== undefined)
47
- result.paymentsEndAt = changes.paymentsEndAt === null ? null : subscriptionTimeToDaml(changes.paymentsEndAt);
47
+ result.paymentsEndAt = changes.paymentsEndAt === null ? null : paymentStreamTimeToDaml(changes.paymentsEndAt);
48
48
  if (changes.trialEndsAt !== undefined)
49
- result.trialEndsAt = changes.trialEndsAt === null ? null : subscriptionTimeToDaml(changes.trialEndsAt);
49
+ result.trialEndsAt = changes.trialEndsAt === null ? null : paymentStreamTimeToDaml(changes.trialEndsAt);
50
50
  if (changes.description !== undefined)
51
51
  result.description = changes.description;
52
52
  if (changes.metadata !== undefined)
@@ -58,14 +58,14 @@ function changesToDaml(changes) {
58
58
  function buildProposeChangesCommand(params) {
59
59
  const choiceArgument = {
60
60
  actor: params.actor,
61
- subscriptionChanges: changesToDaml(params.subscriptionChanges),
61
+ paymentStreamChanges: changesToDaml(params.paymentStreamChanges),
62
62
  description: params.description ?? null,
63
63
  };
64
64
  return {
65
65
  ExerciseCommand: {
66
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.ActiveSubscription.ActiveSubscription.templateId,
67
- contractId: params.subscriptionContractId,
68
- choice: 'ActiveSubscription_ProposeChanges',
66
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream.templateId,
67
+ contractId: params.paymentStreamContractId,
68
+ choice: 'ActivePaymentStream_ProposeChanges',
69
69
  choiceArgument,
70
70
  },
71
71
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proposeChanges.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/proposeChanges.ts"],"names":[],"mappings":";;AAkFA,gEAeC;AAhGD,6FAA0E;AAC1E,oEAA+D;AA2B/D,SAAS,yBAAyB,CAAC,MAAgC;IACjE,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IAEjG,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO;YACL,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,WAAW;SACnB,CAAC;IACJ,CAAC;IACD,OAAO;QACL,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,WAAW;KACnB,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,IAA4B;IAC3D,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO;YACL,GAAG,EAAE,aAAa;YAClB,KAAK,EAAG,IAAI,CAAC,KAAc,CAAC,WAAW,EAAE;SAC1C,CAAC;IACJ,CAAC;IACD,OAAO;QACL,GAAG,EAAE,cAAc;QACnB,KAAK,EAAE,IAAI,CAAC,KAAe;KAC5B,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAA6B;IAClD,MAAM,MAAM,GAA4B,EAAE,CAAC;IAE3C,IAAI,OAAO,CAAC,+BAA+B,KAAK,SAAS;QACvD,MAAM,CAAC,+BAA+B,GAAG,IAAA,+BAAa,EAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAClG,IAAI,OAAO,CAAC,iBAAiB,KAAK,SAAS;QAAE,MAAM,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAClG,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS;QAAE,MAAM,CAAC,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IACjH,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS;QAC9C,MAAM,CAAC,sBAAsB,GAAG,yBAAyB,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC5F,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS;QAC9C,MAAM,CAAC,sBAAsB;YAC3B,OAAO,CAAC,sBAAsB,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,yBAAyB,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC/G,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS;QACpC,MAAM,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,+BAAa,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACnG,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS;QACrC,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAChH,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS;QACnC,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1G,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS;QAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAChF,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS;QAAE,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACvE,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS;QAAE,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAE1E,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,MAA4B;IACrE,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,oBAAoB,CAAC;QAChE,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;KACxC,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;YAC3F,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,oCAAoC;YAC5C,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
2
  import type { PaymentContext } from '../utils/paymentContext';
3
- export interface RefundSubscriptionParams {
4
- subscriptionContractId: string;
3
+ export interface RefundPaymentStreamParams {
4
+ paymentStreamContractId: string;
5
5
  paymentContext: PaymentContext;
6
6
  recipientAmuletInputs: string[];
7
7
  recipientFeaturedAppRight?: string | null;
8
8
  }
9
- export declare function buildRefundSubscriptionCommand(params: RefundSubscriptionParams): Command;
9
+ export declare function buildRefundPaymentStreamCommand(params: RefundPaymentStreamParams): Command;
10
10
  //# sourceMappingURL=refund.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/refund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAEhH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAmB1F"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildRefundSubscriptionCommand = buildRefundSubscriptionCommand;
3
+ exports.buildRefundPaymentStreamCommand = buildRefundPaymentStreamCommand;
4
4
  const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
- function buildRefundSubscriptionCommand(params) {
5
+ function buildRefundPaymentStreamCommand(params) {
6
6
  const choiceArgument = {
7
7
  paymentContext: {
8
8
  amuletRulesCid: params.paymentContext.amuletRulesCid,
@@ -14,9 +14,9 @@ function buildRefundSubscriptionCommand(params) {
14
14
  };
15
15
  return {
16
16
  ExerciseCommand: {
17
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.ActiveSubscription.ActiveSubscription.templateId,
18
- contractId: params.subscriptionContractId,
19
- choice: 'ActiveSubscription_Refund',
17
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream.templateId,
18
+ contractId: params.paymentStreamContractId,
19
+ choice: 'ActivePaymentStream_Refund',
20
20
  choiceArgument,
21
21
  },
22
22
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/refund.ts"],"names":[],"mappings":";;AAWA,0EAmBC;AA7BD,6FAA0E;AAU1E,SAAgB,+BAA+B,CAAC,MAAiC;IAC/E,MAAM,cAAc,GAAG;QACrB,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;QACD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;QACnD,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,IAAI,IAAI;KACpE,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;YAC3F,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,4BAA4B;YACpC,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { CommandWithDisclosedContracts } from '../../../types';
2
2
  import type { PaymentContext } from '../utils/paymentContext';
3
3
  export interface ReplaceLockedAmuletParams {
4
- subscriptionContractId: string;
4
+ paymentStreamContractId: string;
5
5
  newAmulets: string[];
6
6
  amountToLock: string;
7
7
  paymentContext: PaymentContext;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceLockedAmulet.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,yBAAyB,GAAG,6BAA6B,CAqBhH"}
@@ -14,9 +14,9 @@ function buildReplaceLockedAmuletCommand(params) {
14
14
  };
15
15
  const command = {
16
16
  ExerciseCommand: {
17
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.ActiveSubscription.ActiveSubscription.templateId,
18
- contractId: params.subscriptionContractId,
19
- choice: 'ActiveSubscription_ReplaceLockedAmulet',
17
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream.templateId,
18
+ contractId: params.paymentStreamContractId,
19
+ choice: 'ActivePaymentStream_ReplaceLockedAmulet',
20
20
  choiceArgument: choiceArguments,
21
21
  },
22
22
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceLockedAmulet.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.ts"],"names":[],"mappings":";;AAYA,0EAqBC;AAhCD,6FAA0E;AAW1E,SAAgB,+BAA+B,CAAC,MAAiC;IAC/E,MAAM,eAAe,GAAG;QACtB,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;YAC3F,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,yCAAyC;YACjD,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { CommandWithDisclosedContracts } from '../../../types';
2
2
  import type { PaymentContext } from '../utils/paymentContext';
3
3
  export interface WithdrawFundsParams {
4
- subscriptionContractId: string;
4
+ paymentStreamContractId: string;
5
5
  amountToKeepLocked: string;
6
6
  paymentContext: PaymentContext;
7
7
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdrawFunds.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/withdrawFunds.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,6BAA6B,CAoBpG"}
@@ -13,9 +13,9 @@ function buildWithdrawFundsCommand(params) {
13
13
  };
14
14
  const command = {
15
15
  ExerciseCommand: {
16
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.ActiveSubscription.ActiveSubscription.templateId,
17
- contractId: params.subscriptionContractId,
18
- choice: 'ActiveSubscription_WithdrawFunds',
16
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream.templateId,
17
+ contractId: params.paymentStreamContractId,
18
+ choice: 'ActivePaymentStream_WithdrawFunds',
19
19
  choiceArgument: choiceArguments,
20
20
  },
21
21
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdrawFunds.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/withdrawFunds.ts"],"names":[],"mappings":";;AAWA,8DAoBC;AA9BD,6FAA0E;AAU1E,SAAgB,yBAAyB,CAAC,MAA2B;IACnE,MAAM,eAAe,GAAG;QACtB,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;QAC7C,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,UAAU;YAC3F,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,mCAAmC;YAC3C,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './partyMigrationProposal';
2
+ export * from './paymentStreamChangeProposal';
3
+ export { buildCreateProposedPaymentStreamCommand } from './paymentStreamFactory';
4
+ export type { CreateProposedPaymentStreamParams, PaymentStreamAmountInput, PaymentStreamProposalInput, PaymentStreamTimeInput, } from './paymentStreamFactory';
5
+ export { buildActivePaymentStreamChangePartyCommand, buildAddFundsCommand, buildArchiveInactivePaymentStreamCommand, buildCancelPaymentStreamCommand, buildProcessFreeTrialCommand, buildProcessPaymentCommand, buildProposeChangesCommand, buildRefundPaymentStreamCommand, buildReplaceLockedAmuletCommand, buildWithdrawFundsCommand, } from './activePaymentStream';
6
+ export type { ActivePaymentStreamChangePartyParams, AddFundsParams, ArchiveInactivePaymentStreamParams, CancelPaymentStreamParams, PaymentStreamChanges, ProcessFreeTrialParams, ProcessPaymentParams, ProposeChangesParams, RefundPaymentStreamParams, ReplaceLockedAmuletParams, WithdrawFundsParams, } from './activePaymentStream';
7
+ export { buildPaymentContext, buildPaymentContextWithAmulets, getFactoryContractId, getFactoryDisclosedContracts, getProposedPaymentStreamDisclosedContracts, } from './utils';
8
+ export type { FactoryContractInfo, Network, PaymentContext, PaymentContextWithAmulets, PaymentContextWithAmuletsAndDisclosed, PaymentContextWithDisclosedContracts, } from './utils';
9
+ export { isPaymentStreamReadyForProcessing, secondsToMicroseconds } from './types/activePaymentStream';
10
+ export type { ActivePaymentStreamContract, ActivePaymentStreamPayload, PaymentStreamAmount, PaymentStreamDetails, PaymentStreamStats, ProcessorContext, } from './types/activePaymentStream';
11
+ export type { LockFundsInput } from './types/lockFundsInput';
12
+ export { areAllNonPayerPartiesApproved, isProposalPendingPayerApproval, isProposalPendingProcessorApproval, isProposalPendingRecipientApproval, } from './types/proposedPaymentStream';
13
+ export type { Approvals, PaymentStreamProposal, ProposedPaymentStreamContract, ProposedPaymentStreamPayload, } from './types/proposedPaymentStream';
14
+ export { buildEditPaymentStreamProposalCommand, buildProposedPaymentStreamApproveCommand, buildProposedPaymentStreamChangePartyCommand, buildProposedPaymentStreamStartCommand, buildProposedPaymentStreamWithdrawCommand, } from './proposedPaymentStream';
15
+ export type { EditPaymentStreamProposalParams, PaymentStreamProposalChanges, ProposedPaymentStreamApproveParams, ProposedPaymentStreamChangePartyParams, PartyRole as ProposedPaymentStreamPartyRole, ProposedPaymentStreamStartParams, ProposedPaymentStreamWithdrawParams, } from './proposedPaymentStream';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/functions/PaymentStreams/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAE9C,OAAO,EAAE,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AACjF,YAAY,EACV,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,0CAA0C,EAC1C,oBAAoB,EACpB,wCAAwC,EACxC,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,oCAAoC,EACpC,cAAc,EACd,kCAAkC,EAClC,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,0CAA0C,GAC3C,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,yBAAyB,EACzB,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iCAAiC,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACvG,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,SAAS,EACT,qBAAqB,EACrB,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,qCAAqC,EACrC,wCAAwC,EACxC,4CAA4C,EAC5C,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,+BAA+B,EAC/B,4BAA4B,EAC5B,kCAAkC,EAClC,sCAAsC,EACtC,SAAS,IAAI,8BAA8B,EAC3C,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.buildProposedPaymentStreamWithdrawCommand = exports.buildProposedPaymentStreamStartCommand = exports.buildProposedPaymentStreamChangePartyCommand = exports.buildProposedPaymentStreamApproveCommand = exports.buildEditPaymentStreamProposalCommand = exports.isProposalPendingRecipientApproval = exports.isProposalPendingProcessorApproval = exports.isProposalPendingPayerApproval = exports.areAllNonPayerPartiesApproved = exports.secondsToMicroseconds = exports.isPaymentStreamReadyForProcessing = exports.getProposedPaymentStreamDisclosedContracts = exports.getFactoryDisclosedContracts = exports.getFactoryContractId = exports.buildPaymentContextWithAmulets = exports.buildPaymentContext = exports.buildWithdrawFundsCommand = exports.buildReplaceLockedAmuletCommand = exports.buildRefundPaymentStreamCommand = exports.buildProposeChangesCommand = exports.buildProcessPaymentCommand = exports.buildProcessFreeTrialCommand = exports.buildCancelPaymentStreamCommand = exports.buildArchiveInactivePaymentStreamCommand = exports.buildAddFundsCommand = exports.buildActivePaymentStreamChangePartyCommand = exports.buildCreateProposedPaymentStreamCommand = void 0;
18
+ __exportStar(require("./partyMigrationProposal"), exports);
19
+ __exportStar(require("./paymentStreamChangeProposal"), exports);
20
+ // Export paymentStream factory with explicit types to avoid naming conflicts
21
+ var paymentStreamFactory_1 = require("./paymentStreamFactory");
22
+ Object.defineProperty(exports, "buildCreateProposedPaymentStreamCommand", { enumerable: true, get: function () { return paymentStreamFactory_1.buildCreateProposedPaymentStreamCommand; } });
23
+ // Export activePaymentStream explicitly to avoid PaymentContext conflict with utils
24
+ var activePaymentStream_1 = require("./activePaymentStream");
25
+ Object.defineProperty(exports, "buildActivePaymentStreamChangePartyCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildActivePaymentStreamChangePartyCommand; } });
26
+ Object.defineProperty(exports, "buildAddFundsCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildAddFundsCommand; } });
27
+ Object.defineProperty(exports, "buildArchiveInactivePaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildArchiveInactivePaymentStreamCommand; } });
28
+ Object.defineProperty(exports, "buildCancelPaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildCancelPaymentStreamCommand; } });
29
+ Object.defineProperty(exports, "buildProcessFreeTrialCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProcessFreeTrialCommand; } });
30
+ Object.defineProperty(exports, "buildProcessPaymentCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProcessPaymentCommand; } });
31
+ Object.defineProperty(exports, "buildProposeChangesCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProposeChangesCommand; } });
32
+ Object.defineProperty(exports, "buildRefundPaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildRefundPaymentStreamCommand; } });
33
+ Object.defineProperty(exports, "buildReplaceLockedAmuletCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildReplaceLockedAmuletCommand; } });
34
+ Object.defineProperty(exports, "buildWithdrawFundsCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildWithdrawFundsCommand; } });
35
+ // Export utils last with explicit types to avoid conflicts
36
+ var utils_1 = require("./utils");
37
+ Object.defineProperty(exports, "buildPaymentContext", { enumerable: true, get: function () { return utils_1.buildPaymentContext; } });
38
+ Object.defineProperty(exports, "buildPaymentContextWithAmulets", { enumerable: true, get: function () { return utils_1.buildPaymentContextWithAmulets; } });
39
+ Object.defineProperty(exports, "getFactoryContractId", { enumerable: true, get: function () { return utils_1.getFactoryContractId; } });
40
+ Object.defineProperty(exports, "getFactoryDisclosedContracts", { enumerable: true, get: function () { return utils_1.getFactoryDisclosedContracts; } });
41
+ Object.defineProperty(exports, "getProposedPaymentStreamDisclosedContracts", { enumerable: true, get: function () { return utils_1.getProposedPaymentStreamDisclosedContracts; } });
42
+ // Export types
43
+ var activePaymentStream_2 = require("./types/activePaymentStream");
44
+ Object.defineProperty(exports, "isPaymentStreamReadyForProcessing", { enumerable: true, get: function () { return activePaymentStream_2.isPaymentStreamReadyForProcessing; } });
45
+ Object.defineProperty(exports, "secondsToMicroseconds", { enumerable: true, get: function () { return activePaymentStream_2.secondsToMicroseconds; } });
46
+ var proposedPaymentStream_1 = require("./types/proposedPaymentStream");
47
+ Object.defineProperty(exports, "areAllNonPayerPartiesApproved", { enumerable: true, get: function () { return proposedPaymentStream_1.areAllNonPayerPartiesApproved; } });
48
+ Object.defineProperty(exports, "isProposalPendingPayerApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingPayerApproval; } });
49
+ Object.defineProperty(exports, "isProposalPendingProcessorApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingProcessorApproval; } });
50
+ Object.defineProperty(exports, "isProposalPendingRecipientApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingRecipientApproval; } });
51
+ // Re-export proposedPaymentStream with explicit exports to avoid PartyRole conflict
52
+ var proposedPaymentStream_2 = require("./proposedPaymentStream");
53
+ Object.defineProperty(exports, "buildEditPaymentStreamProposalCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildEditPaymentStreamProposalCommand; } });
54
+ Object.defineProperty(exports, "buildProposedPaymentStreamApproveCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamApproveCommand; } });
55
+ Object.defineProperty(exports, "buildProposedPaymentStreamChangePartyCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamChangePartyCommand; } });
56
+ Object.defineProperty(exports, "buildProposedPaymentStreamStartCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamStartCommand; } });
57
+ Object.defineProperty(exports, "buildProposedPaymentStreamWithdrawCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamWithdrawCommand; } });
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/PaymentStreams/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,gEAA8C;AAC9C,6EAA6E;AAC7E,+DAAiF;AAAxE,+IAAA,uCAAuC,OAAA;AAQhD,oFAAoF;AACpF,6DAW+B;AAV7B,iJAAA,0CAA0C,OAAA;AAC1C,2HAAA,oBAAoB,OAAA;AACpB,+IAAA,wCAAwC,OAAA;AACxC,sIAAA,+BAA+B,OAAA;AAC/B,mIAAA,4BAA4B,OAAA;AAC5B,iIAAA,0BAA0B,OAAA;AAC1B,iIAAA,0BAA0B,OAAA;AAC1B,sIAAA,+BAA+B,OAAA;AAC/B,sIAAA,+BAA+B,OAAA;AAC/B,gIAAA,yBAAyB,OAAA;AAgB3B,2DAA2D;AAC3D,iCAMiB;AALf,4GAAA,mBAAmB,OAAA;AACnB,uHAAA,8BAA8B,OAAA;AAC9B,6GAAA,oBAAoB,OAAA;AACpB,qHAAA,4BAA4B,OAAA;AAC5B,mIAAA,0CAA0C,OAAA;AAW5C,eAAe;AACf,mEAAuG;AAA9F,wIAAA,iCAAiC,OAAA;AAAE,4HAAA,qBAAqB,OAAA;AAUjE,uEAKuC;AAJrC,sIAAA,6BAA6B,OAAA;AAC7B,uIAAA,8BAA8B,OAAA;AAC9B,2IAAA,kCAAkC,OAAA;AAClC,2IAAA,kCAAkC,OAAA;AASpC,oFAAoF;AACpF,iEAMiC;AAL/B,8IAAA,qCAAqC,OAAA;AACrC,iJAAA,wCAAwC,OAAA;AACxC,qJAAA,4CAA4C,OAAA;AAC5C,+IAAA,sCAAsC,OAAA;AACtC,kJAAA,yCAAyC,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/approve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,mCAAmC;IAClD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,yCAAyC,CAAC,MAAM,EAAE,mCAAmC,GAAG,OAAO,CAW9G"}
@@ -5,7 +5,7 @@ const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protoc
5
5
  function buildPartyMigrationProposalApproveCommand(params) {
6
6
  return {
7
7
  ExerciseCommand: {
8
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.PartyMigrationProposal.PartyMigrationProposal.templateId,
8
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal.PartyMigrationProposal.templateId,
9
9
  contractId: params.migrationProposalContractId,
10
10
  choice: 'PartyMigrationProposal_Approve',
11
11
  choiceArgument: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approve.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/approve.ts"],"names":[],"mappings":";;AAQA,8FAWC;AAlBD,6FAA0E;AAO1E,SAAgB,yCAAyC,CAAC,MAA2C;IACnG,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU;YACjG,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,gCAAgC;YACxC,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/archive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,mCAAmC;IAClD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,yCAAyC,CAAC,MAAM,EAAE,mCAAmC,GAAG,OAAO,CAkB9G"}
@@ -12,7 +12,7 @@ function buildPartyMigrationProposalArchiveCommand(params) {
12
12
  }
13
13
  return {
14
14
  ExerciseCommand: {
15
- templateId: open_captable_protocol_daml_js_1.Fairmint.Subscriptions.PartyMigrationProposal.PartyMigrationProposal.templateId,
15
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal.PartyMigrationProposal.templateId,
16
16
  contractId: params.migrationProposalContractId,
17
17
  choice: 'PartyMigrationProposal_Archive',
18
18
  choiceArgument,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/archive.ts"],"names":[],"mappings":";;AASA,8FAkBC;AA1BD,6FAA0E;AAQ1E,SAAgB,yCAAyC,CAAC,MAA2C;IACnG,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;KACxC,CAAC;IAEF,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACvB,cAAc,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAClD,CAAC;IAED,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU;YACjG,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,gCAAgC;YACxC,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './approve';
2
+ export * from './archive';
3
+ export * from './migrateActivePaymentStream';
4
+ export * from './migrateProposedPaymentStream';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC"}
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./approve"), exports);
18
18
  __exportStar(require("./archive"), exports);
19
- __exportStar(require("./migrateActiveSubscription"), exports);
20
- __exportStar(require("./migrateProposedSubscription"), exports);
19
+ __exportStar(require("./migrateActivePaymentStream"), exports);
20
+ __exportStar(require("./migrateProposedPaymentStream"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,+DAA6C;AAC7C,iEAA+C"}
@@ -0,0 +1,8 @@
1
+ import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
+ export interface MigrateActivePaymentStreamParams {
3
+ migrationProposalContractId: string;
4
+ actor: string;
5
+ activePaymentStreamCid: string;
6
+ }
7
+ export declare function buildMigrateActivePaymentStreamCommand(params: MigrateActivePaymentStreamParams): Command;
8
+ //# sourceMappingURL=migrateActivePaymentStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrateActivePaymentStream.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,sCAAsC,CAAC,MAAM,EAAE,gCAAgC,GAAG,OAAO,CAYxG"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildMigrateActivePaymentStreamCommand = buildMigrateActivePaymentStreamCommand;
4
+ const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
+ function buildMigrateActivePaymentStreamCommand(params) {
6
+ return {
7
+ ExerciseCommand: {
8
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal.PartyMigrationProposal.templateId,
9
+ contractId: params.migrationProposalContractId,
10
+ choice: 'PartyMigrationProposal_MigrateActivePaymentStream',
11
+ choiceArgument: {
12
+ actor: params.actor,
13
+ activePaymentStreamCid: params.activePaymentStreamCid,
14
+ },
15
+ },
16
+ };
17
+ }
18
+ //# sourceMappingURL=migrateActivePaymentStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrateActivePaymentStream.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.ts"],"names":[],"mappings":";;AASA,wFAYC;AApBD,6FAA0E;AAQ1E,SAAgB,sCAAsC,CAAC,MAAwC;IAC7F,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU;YACjG,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,mDAAmD;YAC3D,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;aACtD;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
+ export interface MigrateProposedPaymentStreamParams {
3
+ migrationProposalContractId: string;
4
+ actor: string;
5
+ proposedPaymentStreamCid: string;
6
+ }
7
+ export declare function buildMigrateProposedPaymentStreamCommand(params: MigrateProposedPaymentStreamParams): Command;
8
+ //# sourceMappingURL=migrateProposedPaymentStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrateProposedPaymentStream.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,kCAAkC;IACjD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAY5G"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildMigrateProposedPaymentStreamCommand = buildMigrateProposedPaymentStreamCommand;
4
+ const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
+ function buildMigrateProposedPaymentStreamCommand(params) {
6
+ return {
7
+ ExerciseCommand: {
8
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal.PartyMigrationProposal.templateId,
9
+ contractId: params.migrationProposalContractId,
10
+ choice: 'PartyMigrationProposal_MigrateProposedPaymentStream',
11
+ choiceArgument: {
12
+ actor: params.actor,
13
+ proposedPaymentStreamCid: params.proposedPaymentStreamCid,
14
+ },
15
+ },
16
+ };
17
+ }
18
+ //# sourceMappingURL=migrateProposedPaymentStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrateProposedPaymentStream.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.ts"],"names":[],"mappings":";;AASA,4FAYC;AApBD,6FAA0E;AAQ1E,SAAgB,wCAAwC,CAAC,MAA0C;IACjG,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU;YACjG,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,qDAAqD;YAC7D,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;aAC1D;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
+ export interface PaymentStreamChangeProposalApplyParams {
3
+ changeProposalContractId: string;
4
+ actor: string;
5
+ activePaymentStreamCid: string;
6
+ }
7
+ export declare function buildPaymentStreamChangeProposalApplyCommand(params: PaymentStreamChangeProposalApplyParams): Command;
8
+ //# sourceMappingURL=apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,sCAAsC;IACrD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,4CAA4C,CAAC,MAAM,EAAE,sCAAsC,GAAG,OAAO,CAYpH"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPaymentStreamChangeProposalApplyCommand = buildPaymentStreamChangeProposalApplyCommand;
4
+ const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
+ function buildPaymentStreamChangeProposalApplyCommand(params) {
6
+ return {
7
+ ExerciseCommand: {
8
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.PaymentStreamChangeProposal.templateId,
9
+ contractId: params.changeProposalContractId,
10
+ choice: 'PaymentStreamChangeProposal_Apply',
11
+ choiceArgument: {
12
+ actor: params.actor,
13
+ activePaymentStreamCid: params.activePaymentStreamCid,
14
+ },
15
+ },
16
+ };
17
+ }
18
+ //# sourceMappingURL=apply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/apply.ts"],"names":[],"mappings":";;AASA,oGAYC;AApBD,6FAA0E;AAQ1E,SAAgB,4CAA4C,CAAC,MAA8C;IACzG,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,UAAU;YACnG,UAAU,EAAE,MAAM,CAAC,wBAAwB;YAC3C,MAAM,EAAE,mCAAmC;YAC3C,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;aACtD;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
+ export interface PaymentStreamChangeProposalApproveParams {
3
+ changeProposalContractId: string;
4
+ actor: string;
5
+ }
6
+ export declare function buildPaymentStreamChangeProposalApproveCommand(params: PaymentStreamChangeProposalApproveParams): Command;
7
+ //# sourceMappingURL=approve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/approve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,wCAAwC;IACvD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAWT"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPaymentStreamChangeProposalApproveCommand = buildPaymentStreamChangeProposalApproveCommand;
4
+ const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
+ function buildPaymentStreamChangeProposalApproveCommand(params) {
6
+ return {
7
+ ExerciseCommand: {
8
+ templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.PaymentStreamChangeProposal.templateId,
9
+ contractId: params.changeProposalContractId,
10
+ choice: 'PaymentStreamChangeProposal_Approve',
11
+ choiceArgument: {
12
+ actor: params.actor,
13
+ },
14
+ },
15
+ };
16
+ }
17
+ //# sourceMappingURL=approve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approve.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/approve.ts"],"names":[],"mappings":";;AAQA,wGAaC;AApBD,6FAA0E;AAO1E,SAAgB,8CAA8C,CAC5D,MAAgD;IAEhD,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EAAE,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,UAAU;YACnG,UAAU,EAAE,MAAM,CAAC,wBAAwB;YAC3C,MAAM,EAAE,qCAAqC;YAC7C,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB"}
@@ -0,0 +1,8 @@
1
+ import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
2
+ export interface PaymentStreamChangeProposalRejectParams {
3
+ changeProposalContractId: string;
4
+ actor: string;
5
+ description?: string;
6
+ }
7
+ export declare function buildPaymentStreamChangeProposalRejectCommand(params: PaymentStreamChangeProposalRejectParams): Command;
8
+ //# sourceMappingURL=reject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reject.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/reject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,uCAAuC;IACtD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,6CAA6C,CAC3D,MAAM,EAAE,uCAAuC,GAC9C,OAAO,CAcT"}