@fairmint/open-captable-protocol-daml-js 0.2.36 → 0.2.38

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 (194) hide show
  1. package/README.md +1 -1
  2. package/generated/paymentStreams-factory-contract-id.json +22 -0
  3. package/generated/{subscriptions-factory-contract-id.json.d.ts → paymentStreams-factory-contract-id.json.d.ts} +2 -2
  4. package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.d.ts +225 -0
  5. package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +354 -0
  6. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.d.ts +18 -18
  7. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.js +27 -27
  8. package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.d.ts +52 -0
  9. package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +74 -0
  10. package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.d.ts +103 -0
  11. package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +161 -0
  12. package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.d.ts +25 -0
  13. package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.js +32 -0
  14. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.d.ts +2 -2
  15. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.js +2 -2
  16. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.d.ts +3 -3
  17. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.js +3 -3
  18. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.d.ts +2 -2
  19. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.js +3 -3
  20. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.d.ts +1 -1
  21. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.d.ts +4 -2
  22. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.js +4 -2
  23. package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.d.ts +8 -8
  24. package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.js +6 -6
  25. package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.d.ts +4 -4
  26. package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.js +2 -2
  27. package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.d.ts +10 -10
  28. package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.js +8 -8
  29. package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/module.d.ts +11 -11
  30. package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposal/module.js +42 -0
  31. package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/module.d.ts +11 -11
  32. package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module.js +42 -0
  33. package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.d.ts +6 -6
  34. package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.js +4 -4
  35. package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.d.ts +4 -4
  36. package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.js +2 -2
  37. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.d.ts +2 -2
  38. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.js +2 -2
  39. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.d.ts +1 -1
  40. package/lib/CantonPayments/PaymentStream/Types/index.d.ts +30 -0
  41. package/lib/CantonPayments/PaymentStream/Types/index.js +37 -0
  42. package/lib/CantonPayments/PaymentStream/index.d.ts +10 -0
  43. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/index.js +6 -6
  44. package/lib/CantonPayments/index.d.ts +2 -0
  45. package/lib/{DA/Date → CantonPayments}/index.js +2 -2
  46. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
  47. package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
  48. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
  49. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
  50. package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
  51. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
  52. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
  53. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
  54. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
  55. package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
  56. package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
  57. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
  58. package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
  59. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
  60. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
  61. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
  62. package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
  63. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
  64. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
  65. package/lib/Fairmint/index.d.ts +0 -1
  66. package/lib/Fairmint/index.js +0 -2
  67. package/lib/index.d.ts +2 -1
  68. package/lib/index.js +2 -0
  69. package/package.json +12 -12
  70. package/generated/subscriptions-factory-contract-id.json +0 -22
  71. package/lib/DA/Date/Types/module.d.ts +0 -47
  72. package/lib/DA/Date/Types/module.js +0 -48
  73. package/lib/DA/Date/index.d.ts +0 -2
  74. package/lib/DA/Exception/ArithmeticError/module.d.ts +0 -18
  75. package/lib/DA/Exception/ArithmeticError/module.js +0 -25
  76. package/lib/DA/Exception/AssertionFailed/module.d.ts +0 -18
  77. package/lib/DA/Exception/AssertionFailed/module.js +0 -25
  78. package/lib/DA/Exception/GeneralError/module.d.ts +0 -18
  79. package/lib/DA/Exception/GeneralError/module.js +0 -25
  80. package/lib/DA/Exception/PreconditionFailed/module.d.ts +0 -18
  81. package/lib/DA/Exception/PreconditionFailed/module.js +0 -25
  82. package/lib/DA/Exception/index.d.ts +0 -2
  83. package/lib/DA/Exception/index.js +0 -9
  84. package/lib/DA/Internal/Down/module.d.ts +0 -17
  85. package/lib/DA/Internal/Down/module.js +0 -25
  86. package/lib/DA/Logic/Types/module.d.ts +0 -20
  87. package/lib/DA/Logic/Types/module.js +0 -29
  88. package/lib/DA/Logic/index.d.ts +0 -2
  89. package/lib/DA/Logic/index.js +0 -9
  90. package/lib/DA/Monoid/Types/module.d.ts +0 -46
  91. package/lib/DA/Monoid/Types/module.js +0 -61
  92. package/lib/DA/Monoid/index.d.ts +0 -2
  93. package/lib/DA/Monoid/index.js +0 -9
  94. package/lib/DA/NonEmpty/Types/module.d.ts +0 -18
  95. package/lib/DA/NonEmpty/Types/module.js +0 -26
  96. package/lib/DA/NonEmpty/index.d.ts +0 -2
  97. package/lib/DA/NonEmpty/index.js +0 -9
  98. package/lib/DA/Random/Types/module.d.ts +0 -18
  99. package/lib/DA/Random/Types/module.js +0 -26
  100. package/lib/DA/Random/index.d.ts +0 -2
  101. package/lib/DA/Random/index.js +0 -9
  102. package/lib/DA/Semigroup/Types/module.d.ts +0 -26
  103. package/lib/DA/Semigroup/Types/module.js +0 -37
  104. package/lib/DA/Semigroup/index.d.ts +0 -2
  105. package/lib/DA/Semigroup/index.js +0 -9
  106. package/lib/DA/Stack/Types/module.d.ts +0 -24
  107. package/lib/DA/Stack/Types/module.js +0 -31
  108. package/lib/DA/Stack/index.d.ts +0 -2
  109. package/lib/DA/Stack/index.js +0 -9
  110. package/lib/DA/Validation/Types/module.d.ts +0 -20
  111. package/lib/DA/Validation/Types/module.js +0 -29
  112. package/lib/DA/Validation/index.d.ts +0 -2
  113. package/lib/DA/Validation/index.js +0 -9
  114. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +0 -224
  115. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +0 -353
  116. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +0 -103
  117. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +0 -161
  118. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +0 -52
  119. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +0 -74
  120. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +0 -25
  121. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +0 -32
  122. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.d.ts +0 -1
  123. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.js +0 -8
  124. package/lib/Fairmint/Subscriptions/Types/PartyRole/index.d.ts +0 -1
  125. package/lib/Fairmint/Subscriptions/Types/PartyRole/index.js +0 -8
  126. package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.d.ts +0 -1
  127. package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.js +0 -8
  128. package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.d.ts +0 -1
  129. package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.js +0 -8
  130. package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.d.ts +0 -1
  131. package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.js +0 -8
  132. package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.d.ts +0 -1
  133. package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.js +0 -8
  134. package/lib/Fairmint/Subscriptions/Types/Subscription/index.d.ts +0 -1
  135. package/lib/Fairmint/Subscriptions/Types/Subscription/index.js +0 -8
  136. package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.d.ts +0 -1
  137. package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.js +0 -8
  138. package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.d.ts +0 -1
  139. package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.js +0 -8
  140. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.d.ts +0 -1
  141. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.js +0 -8
  142. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +0 -42
  143. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.d.ts +0 -1
  144. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.js +0 -8
  145. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +0 -42
  146. package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.d.ts +0 -1
  147. package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.js +0 -8
  148. package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.d.ts +0 -1
  149. package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.js +0 -8
  150. package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -30
  151. package/lib/Fairmint/Subscriptions/Types/index.js +0 -37
  152. package/lib/Fairmint/Subscriptions/index.d.ts +0 -10
  153. package/lib/Splice/Api/Token/index.d.ts +0 -2
  154. package/lib/Splice/Api/Token/index.js +0 -9
  155. /package/lib/{DA/Date/Types → CantonPayments/PaymentStream/ActivePaymentStream}/index.d.ts +0 -0
  156. /package/lib/{DA/Date/Types → CantonPayments/PaymentStream/ActivePaymentStream}/index.js +0 -0
  157. /package/lib/{DA/Exception/ArithmeticError → CantonPayments/PaymentStream/PartyMigrationProposal}/index.d.ts +0 -0
  158. /package/lib/{DA/Exception/ArithmeticError → CantonPayments/PaymentStream/PartyMigrationProposal}/index.js +0 -0
  159. /package/lib/{DA/Exception/AssertionFailed → CantonPayments/PaymentStream/PaymentStreamFactory}/index.d.ts +0 -0
  160. /package/lib/{DA/Exception/AssertionFailed → CantonPayments/PaymentStream/PaymentStreamFactory}/index.js +0 -0
  161. /package/lib/{DA/Exception/GeneralError → CantonPayments/PaymentStream/ProposedPaymentStream}/index.d.ts +0 -0
  162. /package/lib/{DA/Exception/GeneralError → CantonPayments/PaymentStream/ProposedPaymentStream}/index.js +0 -0
  163. /package/lib/{DA/Exception/PreconditionFailed → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.d.ts +0 -0
  164. /package/lib/{DA/Exception/PreconditionFailed → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.js +0 -0
  165. /package/lib/{DA/Internal/Down → CantonPayments/PaymentStream/Types/Approvals}/index.d.ts +0 -0
  166. /package/lib/{DA/Internal/Down → CantonPayments/PaymentStream/Types/Approvals}/index.js +0 -0
  167. /package/lib/{DA/Logic/Types → CantonPayments/PaymentStream/Types/LockFundsInput}/index.d.ts +0 -0
  168. /package/lib/{DA/Logic/Types → CantonPayments/PaymentStream/Types/LockFundsInput}/index.js +0 -0
  169. /package/lib/{DA/Monoid/Types → CantonPayments/PaymentStream/Types/PartyRole}/index.d.ts +0 -0
  170. /package/lib/{DA/Monoid/Types → CantonPayments/PaymentStream/Types/PartyRole}/index.js +0 -0
  171. /package/lib/{DA/NonEmpty/Types → CantonPayments/PaymentStream/Types/PaymentContext}/index.d.ts +0 -0
  172. /package/lib/{DA/NonEmpty/Types → CantonPayments/PaymentStream/Types/PaymentContext}/index.js +0 -0
  173. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.js +0 -0
  174. /package/lib/{DA/Random/Types → CantonPayments/PaymentStream/Types/PaymentResult}/index.d.ts +0 -0
  175. /package/lib/{DA/Random/Types → CantonPayments/PaymentStream/Types/PaymentResult}/index.js +0 -0
  176. /package/lib/{DA/Semigroup/Types → CantonPayments/PaymentStream/Types/PaymentStream}/index.d.ts +0 -0
  177. /package/lib/{DA/Semigroup/Types → CantonPayments/PaymentStream/Types/PaymentStream}/index.js +0 -0
  178. /package/lib/{DA/Stack/Types → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.d.ts +0 -0
  179. /package/lib/{DA/Stack/Types → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.js +0 -0
  180. /package/lib/{DA/Validation/Types → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.d.ts +0 -0
  181. /package/lib/{DA/Validation/Types → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.js +0 -0
  182. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.d.ts +0 -0
  183. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.js +0 -0
  184. /package/lib/{Fairmint/Subscriptions/PartyMigrationProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.d.ts +0 -0
  185. /package/lib/{Fairmint/Subscriptions/PartyMigrationProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.js +0 -0
  186. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.d.ts +0 -0
  187. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.js +0 -0
  188. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.d.ts +0 -0
  189. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.js +0 -0
  190. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.d.ts +0 -0
  191. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.js +0 -0
  192. /package/lib/{Fairmint/Subscriptions/Types/Approvals → CantonPayments/PaymentStream/Types/ProcessorContext}/index.d.ts +0 -0
  193. /package/lib/{Fairmint/Subscriptions/Types/Approvals → CantonPayments/PaymentStream/Types/ProcessorContext}/index.js +0 -0
  194. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.js +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Shared Coding Guidelines for OCP DAML Packages
2
2
 
3
- This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `Shared`, `Subscriptions-v09`). This document defines coding guidelines that apply to all packages.
3
+ This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `Shared`, `CantonPayments`). This document defines coding guidelines that apply to all packages.
4
4
 
5
5
  For package-specific details about each implementation, see the README.md file in the respective package directory (e.g., `open-captable-protocol-daml/OpenCapTable-v25/README.md`).
6
6
 
@@ -0,0 +1,22 @@
1
+ {
2
+ "devnet": {
3
+ "paymentStreamsFactoryContractId": "008c3c3bceb49706121563693c31abd81c21c0ff436b6bfc80d499937187d4f09fca111220067ad3c0ac3b44ac1ba790bab957d07519f1f856e0bea91710e8e8c17f01ec4b",
4
+ "templateId": "1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory",
5
+ "disclosedContract": {
6
+ "templateId": "1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory",
7
+ "contractId": "008c3c3bceb49706121563693c31abd81c21c0ff436b6bfc80d499937187d4f09fca111220067ad3c0ac3b44ac1ba790bab957d07519f1f856e0bea91710e8e8c17f01ec4b",
8
+ "createdEventBlob": "CgMyLjESxAQKRQCMPDvOtJcGEhVjaTwxq9gcIcD/Q2tr/IDUmZNxh9Twn8oREiAGetPArDtErBunkLq5V9B1GfH4VuC+qRcQ6OjBfwHsSxIOQ2FudG9uUGF5bWVudHMajQEKQDFlNWM4ODc4MjBlNjgzMDQ1M2U0NGNjYTY2MDNhMGM2ZmI5YTUyMWJmYTA0ZDU2MTQ1ZTI1ZjVlNWMzZWNmMWMSDkNhbnRvblBheW1lbnRzEg1QYXltZW50U3RyZWFtEhRQYXltZW50U3RyZWFtRmFjdG9yeRoUUGF5bWVudFN0cmVhbUZhY3RvcnkiwgFqvwEKvAEKuQFqtgEKZQpjOmF0ZXN0LXN1YnNjcmlwdGlvbi1wcm9jZXNzb3I6OjEyMjBlYTcwZWEyY2JmZTZiZTQzMWYzNGM3MzIzZTI0OWM2MjRhMDJmYjIyMDlkMmI3M2ZhYmQ3ZWVhMWZlODRkZjM0Ck0KSzpJRFNPOjoxMjIwYmU1OGMyOWU2NWRlNDBiZjI3M2JlMWRjMmIyNjZkNDNhOWEwMDJlYTViMTg5NTVhZWVmN2FhYzg4MWJiNDcxYSphdGVzdC1zdWJzY3JpcHRpb24tcHJvY2Vzc29yOjoxMjIwZWE3MGVhMmNiZmU2YmU0MzFmMzRjNzMyM2UyNDljNjI0YTAyZmIyMjA5ZDJiNzNmYWJkN2VlYTFmZTg0ZGYzNDkuIul7X0EGAEIqCiYKJAgBEiBT36l4jL2joI4RW93MWGfHEAE1n/4zAkheN9mTsFEzvxAe",
9
+ "synchronizerId": "global-domain::1220be58c29e65de40bf273be1dc2b266d43a9a002ea5b18955aeef7aac881bb471a"
10
+ }
11
+ },
12
+ "mainnet": {
13
+ "paymentStreamsFactoryContractId": "00890490d890238a197a7c3ee10591900aee57128f19ba6572bb97413ad7a96864ca111220501ef680b0ff03b3d063d2dcffbe356d891df7a9d65a1443171fb2557d64514f",
14
+ "templateId": "1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory",
15
+ "disclosedContract": {
16
+ "templateId": "1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory",
17
+ "contractId": "00890490d890238a197a7c3ee10591900aee57128f19ba6572bb97413ad7a96864ca111220501ef680b0ff03b3d063d2dcffbe356d891df7a9d65a1443171fb2557d64514f",
18
+ "createdEventBlob": "CgMyLjESuAQKRQCJBJDYkCOKGXp8PuEFkZAK7lcSjxm6ZXK7l0E616loZMoREiBQHvaAsP8Ds9Bj0tz/vjVtiR33qdZaFEMXH7JVfWRRTxIOQ2FudG9uUGF5bWVudHMajQEKQDFlNWM4ODc4MjBlNjgzMDQ1M2U0NGNjYTY2MDNhMGM2ZmI5YTUyMWJmYTA0ZDU2MTQ1ZTI1ZjVlNWMzZWNmMWMSDkNhbnRvblBheW1lbnRzEg1QYXltZW50U3RyZWFtEhRQYXltZW50U3RyZWFtRmFjdG9yeRoUUGF5bWVudFN0cmVhbUZhY3RvcnkivAFquQEKtgEKswFqsAEKXwpdOltTdWJzY3JpcHRpb25Qcm9jZXNzb3I6OjEyMjA0YTAzOTMyMmMwMWU5ZjcxNGI1NjI1OWMzZTY4YjY5MDU4YmY1ZGZlMWRlYmJlOTU2YzY5OGY5MDVjZWJhOWQ3Ck0KSzpJRFNPOjoxMjIwYjE0MzFlZjIxNzM0MmRiNDRkNTE2YmI5YmVmZGU4MDJiZTdkODg5OTYzN2QyOTA4OTVmYTU4ODgwZjE5YWNjYypbU3Vic2NyaXB0aW9uUHJvY2Vzc29yOjoxMjIwNGEwMzkzMjJjMDFlOWY3MTRiNTYyNTljM2U2OGI2OTA1OGJmNWRmZTFkZWJiZTk1NmM2OThmOTA1Y2ViYTlkNzl76El8X0EGAEIqCiYKJAgBEiA3Uovb+LjoXh3G3cFRWuMpPgUZJvKttwT8WTIdK44TZRAe",
19
+ "synchronizerId": "global-domain::1220b1431ef217342db44d516bb9befde802be7d8899637d290895fa58880f19accc"
20
+ }
21
+ }
22
+ }
@@ -1,6 +1,6 @@
1
1
  declare const data: {
2
2
  devnet: {
3
- subscriptionsFactoryContractId: string;
3
+ paymentStreamsFactoryContractId: string;
4
4
  templateId: string;
5
5
  disclosedContract: {
6
6
  templateId: string;
@@ -10,7 +10,7 @@ declare const data: {
10
10
  };
11
11
  };
12
12
  mainnet: {
13
- subscriptionsFactoryContractId: string;
13
+ paymentStreamsFactoryContractId: string;
14
14
  templateId: string;
15
15
  disclosedContract: {
16
16
  templateId: string;
@@ -0,0 +1,225 @@
1
+ // Generated from CantonPayments/PaymentStream/ActivePaymentStream.daml
2
+ /* eslint-disable @typescript-eslint/camelcase */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/no-use-before-define */
5
+ import * as jtv from '@mojotech/json-type-validation';
6
+ import * as damlTypes from '@daml/types';
7
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
8
+ import * as damlLedger from '@daml/ledger';
9
+
10
+ import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
11
+ import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
12
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
13
+ import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../DA/Time/Types';
14
+
15
+ import * as CantonPayments_PaymentStream_Types_Approvals from '../../../CantonPayments/PaymentStream/Types/Approvals/module';
16
+ import * as CantonPayments_PaymentStream_Types_LockFundsInput from '../../../CantonPayments/PaymentStream/Types/LockFundsInput/module';
17
+ import * as CantonPayments_PaymentStream_Types_PartyRole from '../../../CantonPayments/PaymentStream/Types/PartyRole/module';
18
+ import * as CantonPayments_PaymentStream_Types_PaymentContext from '../../../CantonPayments/PaymentStream/Types/PaymentContext/module';
19
+ import * as CantonPayments_PaymentStream_Types_PaymentResult from '../../../CantonPayments/PaymentStream/Types/PaymentResult/module';
20
+ import * as CantonPayments_PaymentStream_Types_PaymentStream from '../../../CantonPayments/PaymentStream/Types/PaymentStream/module';
21
+ import * as CantonPayments_PaymentStream_Types_PaymentStreamChanges from '../../../CantonPayments/PaymentStream/Types/PaymentStreamChanges/module';
22
+ import * as CantonPayments_PaymentStream_Types_PaymentStreamStats from '../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module';
23
+ import * as CantonPayments_PaymentStream_Types_ProcessFreeTrialResult from '../../../CantonPayments/PaymentStream/Types/ProcessFreeTrialResult/module';
24
+ import * as CantonPayments_PaymentStream_Types_ProcessorContext from '../../../CantonPayments/PaymentStream/Types/ProcessorContext/module';
25
+
26
+ export declare type PaymentStreamChangeProposal_Reject = {
27
+ actor: damlTypes.Party;
28
+ description: damlTypes.Optional<string>;
29
+ };
30
+
31
+ export declare const PaymentStreamChangeProposal_Reject:
32
+ damlTypes.Serializable<PaymentStreamChangeProposal_Reject> & {
33
+ }
34
+ ;
35
+
36
+
37
+ export declare type PaymentStreamChangeProposal_Apply = {
38
+ actor: damlTypes.Party;
39
+ activePaymentStreamCid: damlTypes.ContractId<ActivePaymentStream>;
40
+ };
41
+
42
+ export declare const PaymentStreamChangeProposal_Apply:
43
+ damlTypes.Serializable<PaymentStreamChangeProposal_Apply> & {
44
+ }
45
+ ;
46
+
47
+
48
+ export declare type PaymentStreamChangeProposal_Approve = {
49
+ actor: damlTypes.Party;
50
+ };
51
+
52
+ export declare const PaymentStreamChangeProposal_Approve:
53
+ damlTypes.Serializable<PaymentStreamChangeProposal_Approve> & {
54
+ }
55
+ ;
56
+
57
+
58
+ export declare type PaymentStreamChangeProposal = {
59
+ paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream;
60
+ processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext;
61
+ paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges;
62
+ approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals;
63
+ };
64
+
65
+ export declare interface PaymentStreamChangeProposalInterface {
66
+ PaymentStreamChangeProposal_Approve: damlTypes.Choice<PaymentStreamChangeProposal, PaymentStreamChangeProposal_Approve, damlTypes.ContractId<PaymentStreamChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamChangeProposal, undefined>>;
67
+ PaymentStreamChangeProposal_Apply: damlTypes.Choice<PaymentStreamChangeProposal, PaymentStreamChangeProposal_Apply, damlTypes.ContractId<ActivePaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamChangeProposal, undefined>>;
68
+ PaymentStreamChangeProposal_Reject: damlTypes.Choice<PaymentStreamChangeProposal, PaymentStreamChangeProposal_Reject, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamChangeProposal, undefined>>;
69
+ Archive: damlTypes.Choice<PaymentStreamChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamChangeProposal, undefined>>;
70
+ }
71
+ export declare const PaymentStreamChangeProposal:
72
+ damlTypes.Template<PaymentStreamChangeProposal, undefined, '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:PaymentStreamChangeProposal'> &
73
+ damlTypes.ToInterface<PaymentStreamChangeProposal, never> &
74
+ PaymentStreamChangeProposalInterface;
75
+
76
+ export declare namespace PaymentStreamChangeProposal {
77
+ export type CreateEvent = damlLedger.CreateEvent<PaymentStreamChangeProposal, undefined, typeof PaymentStreamChangeProposal.templateId>
78
+ export type ArchiveEvent = damlLedger.ArchiveEvent<PaymentStreamChangeProposal, typeof PaymentStreamChangeProposal.templateId>
79
+ export type Event = damlLedger.Event<PaymentStreamChangeProposal, undefined, typeof PaymentStreamChangeProposal.templateId>
80
+ export type QueryResult = damlLedger.QueryResult<PaymentStreamChangeProposal, undefined, typeof PaymentStreamChangeProposal.templateId>
81
+ }
82
+
83
+
84
+
85
+ export declare type ActivePaymentStream_ChangeParty = {
86
+ partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole;
87
+ oldParty: damlTypes.Party;
88
+ newParty: damlTypes.Party;
89
+ changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
90
+ };
91
+
92
+ export declare const ActivePaymentStream_ChangeParty:
93
+ damlTypes.Serializable<ActivePaymentStream_ChangeParty> & {
94
+ }
95
+ ;
96
+
97
+
98
+ export declare type ActivePaymentStream_ArchiveInactivePaymentStream = {
99
+ actor: damlTypes.Party;
100
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
101
+ };
102
+
103
+ export declare const ActivePaymentStream_ArchiveInactivePaymentStream:
104
+ damlTypes.Serializable<ActivePaymentStream_ArchiveInactivePaymentStream> & {
105
+ }
106
+ ;
107
+
108
+
109
+ export declare type ActivePaymentStream_WithdrawFunds = {
110
+ amountToKeepLocked: damlTypes.Numeric;
111
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
112
+ };
113
+
114
+ export declare const ActivePaymentStream_WithdrawFunds:
115
+ damlTypes.Serializable<ActivePaymentStream_WithdrawFunds> & {
116
+ }
117
+ ;
118
+
119
+
120
+ export declare type ActivePaymentStream_AddFunds = {
121
+ actor: damlTypes.Party;
122
+ lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput;
123
+ description: damlTypes.Optional<string>;
124
+ };
125
+
126
+ export declare const ActivePaymentStream_AddFunds:
127
+ damlTypes.Serializable<ActivePaymentStream_AddFunds> & {
128
+ }
129
+ ;
130
+
131
+
132
+ export declare type ActivePaymentStream_Refund = {
133
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
134
+ recipientAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
135
+ recipientFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
136
+ };
137
+
138
+ export declare const ActivePaymentStream_Refund:
139
+ damlTypes.Serializable<ActivePaymentStream_Refund> & {
140
+ }
141
+ ;
142
+
143
+
144
+ export declare type ActivePaymentStream_Cancel = {
145
+ actor: damlTypes.Party;
146
+ disregardAvailablePaidPeriod: boolean;
147
+ description: damlTypes.Optional<string>;
148
+ openMiningRoundCid: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>>;
149
+ };
150
+
151
+ export declare const ActivePaymentStream_Cancel:
152
+ damlTypes.Serializable<ActivePaymentStream_Cancel> & {
153
+ }
154
+ ;
155
+
156
+
157
+ export declare type ActivePaymentStream_ProposeChanges = {
158
+ actor: damlTypes.Party;
159
+ paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges;
160
+ description: damlTypes.Optional<string>;
161
+ };
162
+
163
+ export declare const ActivePaymentStream_ProposeChanges:
164
+ damlTypes.Serializable<ActivePaymentStream_ProposeChanges> & {
165
+ }
166
+ ;
167
+
168
+
169
+ export declare type ActivePaymentStream_ProcessPayment = {
170
+ processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
171
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
172
+ skipProcessorPayment: boolean;
173
+ activityMarkerFeaturedAppRightCid: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
174
+ };
175
+
176
+ export declare const ActivePaymentStream_ProcessPayment:
177
+ damlTypes.Serializable<ActivePaymentStream_ProcessPayment> & {
178
+ }
179
+ ;
180
+
181
+
182
+ export declare type ActivePaymentStream_ProcessFreeTrial = {
183
+ processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
184
+ featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
185
+ };
186
+
187
+ export declare const ActivePaymentStream_ProcessFreeTrial:
188
+ damlTypes.Serializable<ActivePaymentStream_ProcessFreeTrial> & {
189
+ }
190
+ ;
191
+
192
+
193
+ export declare type ActivePaymentStream = {
194
+ paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream;
195
+ processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext;
196
+ processedAndPaidUntil: damlTypes.Time;
197
+ lockedAmuletCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.LockedAmulet>;
198
+ stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats;
199
+ };
200
+
201
+ export declare interface ActivePaymentStreamInterface {
202
+ ActivePaymentStream_ProcessFreeTrial: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_ProcessFreeTrial, CantonPayments_PaymentStream_Types_ProcessFreeTrialResult.ProcessFreeTrialResult<ActivePaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
203
+ ActivePaymentStream_ProcessPayment: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_ProcessPayment, CantonPayments_PaymentStream_Types_PaymentResult.ProcessPaymentResult<ActivePaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
204
+ ActivePaymentStream_ProposeChanges: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_ProposeChanges, damlTypes.ContractId<PaymentStreamChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
205
+ ActivePaymentStream_Cancel: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_Cancel, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.Optional<damlTypes.ContractId<ActivePaymentStream>>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
206
+ ActivePaymentStream_Refund: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_Refund, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
207
+ ActivePaymentStream_AddFunds: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_AddFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActivePaymentStream>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
208
+ ActivePaymentStream_WithdrawFunds: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_WithdrawFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActivePaymentStream>, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
209
+ ActivePaymentStream_ArchiveInactivePaymentStream: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_ArchiveInactivePaymentStream, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
210
+ ActivePaymentStream_ChangeParty: damlTypes.Choice<ActivePaymentStream, ActivePaymentStream_ChangeParty, damlTypes.ContractId<ActivePaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
211
+ Archive: damlTypes.Choice<ActivePaymentStream, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActivePaymentStream, undefined>>;
212
+ }
213
+ export declare const ActivePaymentStream:
214
+ damlTypes.Template<ActivePaymentStream, undefined, '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:ActivePaymentStream'> &
215
+ damlTypes.ToInterface<ActivePaymentStream, never> &
216
+ ActivePaymentStreamInterface;
217
+
218
+ export declare namespace ActivePaymentStream {
219
+ export type CreateEvent = damlLedger.CreateEvent<ActivePaymentStream, undefined, typeof ActivePaymentStream.templateId>
220
+ export type ArchiveEvent = damlLedger.ArchiveEvent<ActivePaymentStream, typeof ActivePaymentStream.templateId>
221
+ export type Event = damlLedger.Event<ActivePaymentStream, undefined, typeof ActivePaymentStream.templateId>
222
+ export type QueryResult = damlLedger.QueryResult<ActivePaymentStream, undefined, typeof ActivePaymentStream.templateId>
223
+ }
224
+
225
+
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+ /* eslint-disable-next-line no-unused-vars */
3
+ function __export(m) {
4
+ /* eslint-disable-next-line no-prototype-builtins */
5
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
+ }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ /* eslint-disable-next-line no-unused-vars */
9
+ var jtv = require('@mojotech/json-type-validation');
10
+ /* eslint-disable-next-line no-unused-vars */
11
+ var damlTypes = require('@daml/types');
12
+ /* eslint-disable-next-line no-unused-vars */
13
+ var damlLedger = require('@daml/ledger');
14
+
15
+ var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
16
+ var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
17
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
18
+ var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');
19
+
20
+ var CantonPayments_PaymentStream_Types_Approvals = require('../../../CantonPayments/PaymentStream/Types/Approvals/module');
21
+ var CantonPayments_PaymentStream_Types_LockFundsInput = require('../../../CantonPayments/PaymentStream/Types/LockFundsInput/module');
22
+ var CantonPayments_PaymentStream_Types_PartyRole = require('../../../CantonPayments/PaymentStream/Types/PartyRole/module');
23
+ var CantonPayments_PaymentStream_Types_PaymentContext = require('../../../CantonPayments/PaymentStream/Types/PaymentContext/module');
24
+ var CantonPayments_PaymentStream_Types_PaymentResult = require('../../../CantonPayments/PaymentStream/Types/PaymentResult/module');
25
+ var CantonPayments_PaymentStream_Types_PaymentStream = require('../../../CantonPayments/PaymentStream/Types/PaymentStream/module');
26
+ var CantonPayments_PaymentStream_Types_PaymentStreamChanges = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamChanges/module');
27
+ var CantonPayments_PaymentStream_Types_PaymentStreamStats = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module');
28
+ var CantonPayments_PaymentStream_Types_ProcessFreeTrialResult = require('../../../CantonPayments/PaymentStream/Types/ProcessFreeTrialResult/module');
29
+ var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');
30
+
31
+
32
+ exports.PaymentStreamChangeProposal_Reject = {
33
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
34
+ encode: function (__typed__) {
35
+ return {
36
+ actor: damlTypes.Party.encode(__typed__.actor),
37
+ description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
38
+ };
39
+ }
40
+ ,
41
+ };
42
+
43
+
44
+
45
+ exports.PaymentStreamChangeProposal_Apply = {
46
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, activePaymentStreamCid: damlTypes.ContractId(exports.ActivePaymentStream).decoder, }); }),
47
+ encode: function (__typed__) {
48
+ return {
49
+ actor: damlTypes.Party.encode(__typed__.actor),
50
+ activePaymentStreamCid: damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__.activePaymentStreamCid),
51
+ };
52
+ }
53
+ ,
54
+ };
55
+
56
+
57
+
58
+ exports.PaymentStreamChangeProposal_Approve = {
59
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
60
+ encode: function (__typed__) {
61
+ return {
62
+ actor: damlTypes.Party.encode(__typed__.actor),
63
+ };
64
+ }
65
+ ,
66
+ };
67
+
68
+
69
+
70
+ exports.PaymentStreamChangeProposal = damlTypes.assembleTemplate(
71
+ {
72
+ templateId: '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:PaymentStreamChangeProposal',
73
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
74
+ keyEncode: function () { throw 'EncodeError'; },
75
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.decoder, approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.decoder, }); }),
76
+ encode: function (__typed__) {
77
+ return {
78
+ paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.encode(__typed__.paymentStream),
79
+ processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
80
+ paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.encode(__typed__.paymentStreamChanges),
81
+ approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.encode(__typed__.approvals),
82
+ };
83
+ }
84
+ ,
85
+ PaymentStreamChangeProposal_Approve: {
86
+ template: function () { return exports.PaymentStreamChangeProposal; },
87
+ choiceName: 'PaymentStreamChangeProposal_Approve',
88
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Approve.decoder; }),
89
+ argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Approve.encode(__typed__); },
90
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).decoder; }),
91
+ resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).encode(__typed__); },
92
+ },
93
+ PaymentStreamChangeProposal_Apply: {
94
+ template: function () { return exports.PaymentStreamChangeProposal; },
95
+ choiceName: 'PaymentStreamChangeProposal_Apply',
96
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Apply.decoder; }),
97
+ argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Apply.encode(__typed__); },
98
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActivePaymentStream).decoder; }),
99
+ resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__); },
100
+ },
101
+ PaymentStreamChangeProposal_Reject: {
102
+ template: function () { return exports.PaymentStreamChangeProposal; },
103
+ choiceName: 'PaymentStreamChangeProposal_Reject',
104
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Reject.decoder; }),
105
+ argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Reject.encode(__typed__); },
106
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
107
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
108
+ },
109
+ Archive: {
110
+ template: function () { return exports.PaymentStreamChangeProposal; },
111
+ choiceName: 'Archive',
112
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
113
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
114
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
115
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
116
+ },
117
+ }
118
+
119
+ );
120
+
121
+
122
+ damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c', '#CantonPayments']);
123
+
124
+
125
+
126
+ exports.ActivePaymentStream_ChangeParty = {
127
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
128
+ encode: function (__typed__) {
129
+ return {
130
+ partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.encode(__typed__.partyType),
131
+ oldParty: damlTypes.Party.encode(__typed__.oldParty),
132
+ newParty: damlTypes.Party.encode(__typed__.newParty),
133
+ changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.changePartyPaymentContext),
134
+ };
135
+ }
136
+ ,
137
+ };
138
+
139
+
140
+
141
+ exports.ActivePaymentStream_ArchiveInactivePaymentStream = {
142
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
143
+ encode: function (__typed__) {
144
+ return {
145
+ actor: damlTypes.Party.encode(__typed__.actor),
146
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
147
+ };
148
+ }
149
+ ,
150
+ };
151
+
152
+
153
+
154
+ exports.ActivePaymentStream_WithdrawFunds = {
155
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({amountToKeepLocked: damlTypes.Numeric(10).decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
156
+ encode: function (__typed__) {
157
+ return {
158
+ amountToKeepLocked: damlTypes.Numeric(10).encode(__typed__.amountToKeepLocked),
159
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
160
+ };
161
+ }
162
+ ,
163
+ };
164
+
165
+
166
+
167
+ exports.ActivePaymentStream_AddFunds = {
168
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
169
+ encode: function (__typed__) {
170
+ return {
171
+ actor: damlTypes.Party.encode(__typed__.actor),
172
+ lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
173
+ description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
174
+ };
175
+ }
176
+ ,
177
+ };
178
+
179
+
180
+
181
+ exports.ActivePaymentStream_Refund = {
182
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
183
+ encode: function (__typed__) {
184
+ return {
185
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
186
+ recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.recipientAmuletInputs),
187
+ recipientFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.recipientFeaturedAppRight),
188
+ };
189
+ }
190
+ ,
191
+ };
192
+
193
+
194
+
195
+ exports.ActivePaymentStream_Cancel = {
196
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, disregardAvailablePaidPeriod: damlTypes.Bool.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), openMiningRoundCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound)).decoder), }); }),
197
+ encode: function (__typed__) {
198
+ return {
199
+ actor: damlTypes.Party.encode(__typed__.actor),
200
+ disregardAvailablePaidPeriod: damlTypes.Bool.encode(__typed__.disregardAvailablePaidPeriod),
201
+ description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
202
+ openMiningRoundCid: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound)).encode(__typed__.openMiningRoundCid),
203
+ };
204
+ }
205
+ ,
206
+ };
207
+
208
+
209
+
210
+ exports.ActivePaymentStream_ProposeChanges = {
211
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
212
+ encode: function (__typed__) {
213
+ return {
214
+ actor: damlTypes.Party.encode(__typed__.actor),
215
+ paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.encode(__typed__.paymentStreamChanges),
216
+ description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
217
+ };
218
+ }
219
+ ,
220
+ };
221
+
222
+
223
+
224
+ exports.ActivePaymentStream_ProcessPayment = {
225
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, skipProcessorPayment: damlTypes.Bool.decoder, activityMarkerFeaturedAppRightCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
226
+ encode: function (__typed__) {
227
+ return {
228
+ processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
229
+ paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
230
+ skipProcessorPayment: damlTypes.Bool.encode(__typed__.skipProcessorPayment),
231
+ activityMarkerFeaturedAppRightCid: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.activityMarkerFeaturedAppRightCid),
232
+ };
233
+ }
234
+ ,
235
+ };
236
+
237
+
238
+
239
+ exports.ActivePaymentStream_ProcessFreeTrial = {
240
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
241
+ encode: function (__typed__) {
242
+ return {
243
+ processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
244
+ featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
245
+ };
246
+ }
247
+ ,
248
+ };
249
+
250
+
251
+
252
+ exports.ActivePaymentStream = damlTypes.assembleTemplate(
253
+ {
254
+ templateId: '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:ActivePaymentStream',
255
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
256
+ keyEncode: function () { throw 'EncodeError'; },
257
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).decoder, stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.decoder, }); }),
258
+ encode: function (__typed__) {
259
+ return {
260
+ paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.encode(__typed__.paymentStream),
261
+ processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
262
+ processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
263
+ lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).encode(__typed__.lockedAmuletCid),
264
+ stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.encode(__typed__.stats),
265
+ };
266
+ }
267
+ ,
268
+ ActivePaymentStream_ProcessFreeTrial: {
269
+ template: function () { return exports.ActivePaymentStream; },
270
+ choiceName: 'ActivePaymentStream_ProcessFreeTrial',
271
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProcessFreeTrial.decoder; }),
272
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProcessFreeTrial.encode(__typed__); },
273
+ resultDecoder: damlTypes.lazyMemo(function () { return CantonPayments_PaymentStream_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActivePaymentStream).decoder; }),
274
+ resultEncode: function (__typed__) { return CantonPayments_PaymentStream_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActivePaymentStream).encode(__typed__); },
275
+ },
276
+ ActivePaymentStream_ProcessPayment: {
277
+ template: function () { return exports.ActivePaymentStream; },
278
+ choiceName: 'ActivePaymentStream_ProcessPayment',
279
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProcessPayment.decoder; }),
280
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProcessPayment.encode(__typed__); },
281
+ resultDecoder: damlTypes.lazyMemo(function () { return CantonPayments_PaymentStream_Types_PaymentResult.ProcessPaymentResult(exports.ActivePaymentStream).decoder; }),
282
+ resultEncode: function (__typed__) { return CantonPayments_PaymentStream_Types_PaymentResult.ProcessPaymentResult(exports.ActivePaymentStream).encode(__typed__); },
283
+ },
284
+ ActivePaymentStream_ProposeChanges: {
285
+ template: function () { return exports.ActivePaymentStream; },
286
+ choiceName: 'ActivePaymentStream_ProposeChanges',
287
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProposeChanges.decoder; }),
288
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProposeChanges.encode(__typed__); },
289
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).decoder; }),
290
+ resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).encode(__typed__); },
291
+ },
292
+ ActivePaymentStream_Cancel: {
293
+ template: function () { return exports.ActivePaymentStream; },
294
+ choiceName: 'ActivePaymentStream_Cancel',
295
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_Cancel.decoder; }),
296
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_Cancel.encode(__typed__); },
297
+ resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActivePaymentStream)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
298
+ resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActivePaymentStream)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
299
+ },
300
+ ActivePaymentStream_Refund: {
301
+ template: function () { return exports.ActivePaymentStream; },
302
+ choiceName: 'ActivePaymentStream_Refund',
303
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_Refund.decoder; }),
304
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_Refund.encode(__typed__); },
305
+ resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
306
+ resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
307
+ },
308
+ ActivePaymentStream_AddFunds: {
309
+ template: function () { return exports.ActivePaymentStream; },
310
+ choiceName: 'ActivePaymentStream_AddFunds',
311
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_AddFunds.decoder; }),
312
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_AddFunds.encode(__typed__); },
313
+ resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
314
+ resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
315
+ },
316
+ ActivePaymentStream_WithdrawFunds: {
317
+ template: function () { return exports.ActivePaymentStream; },
318
+ choiceName: 'ActivePaymentStream_WithdrawFunds',
319
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_WithdrawFunds.decoder; }),
320
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_WithdrawFunds.encode(__typed__); },
321
+ resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
322
+ resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
323
+ },
324
+ ActivePaymentStream_ArchiveInactivePaymentStream: {
325
+ template: function () { return exports.ActivePaymentStream; },
326
+ choiceName: 'ActivePaymentStream_ArchiveInactivePaymentStream',
327
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ArchiveInactivePaymentStream.decoder; }),
328
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ArchiveInactivePaymentStream.encode(__typed__); },
329
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).decoder; }),
330
+ resultEncode: function (__typed__) { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).encode(__typed__); },
331
+ },
332
+ ActivePaymentStream_ChangeParty: {
333
+ template: function () { return exports.ActivePaymentStream; },
334
+ choiceName: 'ActivePaymentStream_ChangeParty',
335
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ChangeParty.decoder; }),
336
+ argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ChangeParty.encode(__typed__); },
337
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActivePaymentStream).decoder; }),
338
+ resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__); },
339
+ },
340
+ Archive: {
341
+ template: function () { return exports.ActivePaymentStream; },
342
+ choiceName: 'Archive',
343
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
344
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
345
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
346
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
347
+ },
348
+ }
349
+
350
+ );
351
+
352
+
353
+ damlTypes.registerTemplate(exports.ActivePaymentStream, ['1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c', '#CantonPayments']);
354
+