@fairmint/open-captable-protocol-daml-js 0.2.12 → 0.2.14

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 (223) hide show
  1. package/README.md +152 -1
  2. package/generated/subscriptions-factory-contract-id.json +10 -0
  3. package/generated/subscriptions-factory-contract-id.json.d.ts +11 -0
  4. package/lib/DA/Date/Types/index.d.ts +1 -0
  5. package/lib/DA/Date/Types/index.js +8 -0
  6. package/lib/DA/Date/Types/module.d.ts +47 -0
  7. package/lib/DA/Date/Types/module.js +48 -0
  8. package/lib/DA/Date/index.d.ts +2 -0
  9. package/lib/DA/Date/index.js +9 -0
  10. package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
  11. package/lib/DA/Exception/ArithmeticError/index.js +8 -0
  12. package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
  13. package/lib/DA/Exception/ArithmeticError/module.js +25 -0
  14. package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
  15. package/lib/DA/Exception/AssertionFailed/index.js +8 -0
  16. package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
  17. package/lib/DA/Exception/AssertionFailed/module.js +25 -0
  18. package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
  19. package/lib/DA/Exception/GeneralError/index.js +8 -0
  20. package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
  21. package/lib/DA/Exception/GeneralError/module.js +25 -0
  22. package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
  23. package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
  24. package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
  25. package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
  26. package/lib/DA/Exception/index.d.ts +2 -0
  27. package/lib/DA/Exception/index.js +9 -0
  28. package/lib/DA/Internal/Down/index.d.ts +1 -0
  29. package/lib/DA/Internal/Down/index.js +8 -0
  30. package/lib/DA/Internal/Down/module.d.ts +17 -0
  31. package/lib/DA/Internal/Down/module.js +25 -0
  32. package/lib/DA/Logic/Types/index.d.ts +1 -0
  33. package/lib/DA/Logic/Types/index.js +8 -0
  34. package/lib/DA/Logic/Types/module.d.ts +20 -0
  35. package/lib/DA/Logic/Types/module.js +29 -0
  36. package/lib/DA/Logic/index.d.ts +2 -0
  37. package/lib/DA/Logic/index.js +9 -0
  38. package/lib/DA/Monoid/Types/index.d.ts +1 -0
  39. package/lib/DA/Monoid/Types/index.js +8 -0
  40. package/lib/DA/Monoid/Types/module.d.ts +46 -0
  41. package/lib/DA/Monoid/Types/module.js +61 -0
  42. package/lib/DA/Monoid/index.d.ts +2 -0
  43. package/lib/DA/Monoid/index.js +9 -0
  44. package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
  45. package/lib/DA/NonEmpty/Types/index.js +8 -0
  46. package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
  47. package/lib/DA/NonEmpty/Types/module.js +26 -0
  48. package/lib/DA/NonEmpty/index.d.ts +2 -0
  49. package/lib/DA/NonEmpty/index.js +9 -0
  50. package/lib/DA/Random/Types/index.d.ts +1 -0
  51. package/lib/DA/Random/Types/index.js +8 -0
  52. package/lib/DA/Random/Types/module.d.ts +18 -0
  53. package/lib/DA/Random/Types/module.js +26 -0
  54. package/lib/DA/Random/index.d.ts +2 -0
  55. package/lib/DA/Random/index.js +9 -0
  56. package/lib/DA/Semigroup/Types/index.d.ts +1 -0
  57. package/lib/DA/Semigroup/Types/index.js +8 -0
  58. package/lib/DA/Semigroup/Types/module.d.ts +26 -0
  59. package/lib/DA/Semigroup/Types/module.js +37 -0
  60. package/lib/DA/Semigroup/index.d.ts +2 -0
  61. package/lib/DA/Semigroup/index.js +9 -0
  62. package/lib/DA/Set/Types/index.d.ts +1 -0
  63. package/lib/DA/Set/Types/index.js +8 -0
  64. package/lib/DA/Set/Types/module.d.ts +17 -0
  65. package/lib/DA/Set/Types/module.js +25 -0
  66. package/lib/DA/Set/index.d.ts +2 -0
  67. package/lib/DA/Set/index.js +9 -0
  68. package/lib/DA/Stack/Types/index.d.ts +1 -0
  69. package/lib/DA/Stack/Types/index.js +8 -0
  70. package/lib/DA/Stack/Types/module.d.ts +24 -0
  71. package/lib/DA/Stack/Types/module.js +31 -0
  72. package/lib/DA/Stack/index.d.ts +2 -0
  73. package/lib/DA/Stack/index.js +9 -0
  74. package/lib/DA/Time/Types/index.d.ts +1 -0
  75. package/lib/DA/Time/Types/index.js +8 -0
  76. package/lib/DA/Time/Types/module.d.ts +18 -0
  77. package/lib/DA/Time/Types/module.js +25 -0
  78. package/lib/DA/Time/index.d.ts +2 -0
  79. package/lib/DA/Time/index.js +9 -0
  80. package/lib/DA/Types/index.d.ts +1 -0
  81. package/lib/DA/Types/index.js +8 -0
  82. package/lib/DA/Types/module.d.ts +379 -0
  83. package/lib/DA/Types/module.js +445 -0
  84. package/lib/DA/Validation/Types/index.d.ts +1 -0
  85. package/lib/DA/Validation/Types/index.js +8 -0
  86. package/lib/DA/Validation/Types/module.d.ts +20 -0
  87. package/lib/DA/Validation/Types/module.js +29 -0
  88. package/lib/DA/Validation/index.d.ts +2 -0
  89. package/lib/DA/Validation/index.js +9 -0
  90. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
  91. package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
  92. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
  93. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
  94. package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
  95. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
  96. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
  97. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
  98. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
  99. package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
  100. package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
  101. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
  102. package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
  103. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
  104. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
  105. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
  106. package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
  107. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
  108. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
  109. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.d.ts +1 -0
  110. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.js +8 -0
  111. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +75 -0
  112. package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +124 -0
  113. package/lib/Fairmint/Subscriptions/Subscription/index.d.ts +1 -0
  114. package/lib/Fairmint/Subscriptions/Subscription/index.js +8 -0
  115. package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +246 -0
  116. package/lib/Fairmint/Subscriptions/Subscription/module.js +400 -0
  117. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.d.ts +1 -0
  118. package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.js +8 -0
  119. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +59 -0
  120. package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +73 -0
  121. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.d.ts +1 -0
  122. package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.js +8 -0
  123. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +45 -0
  124. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +67 -0
  125. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.d.ts +1 -0
  126. package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.js +8 -0
  127. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +75 -0
  128. package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +124 -0
  129. package/lib/Fairmint/Subscriptions/index.d.ts +10 -0
  130. package/lib/Fairmint/Subscriptions/index.js +17 -0
  131. package/lib/Fairmint/index.d.ts +1 -0
  132. package/lib/Fairmint/index.js +2 -0
  133. package/lib/Splice/Amulet/TokenApiUtils/index.d.ts +1 -0
  134. package/lib/Splice/Amulet/TokenApiUtils/index.js +8 -0
  135. package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +24 -0
  136. package/lib/Splice/Amulet/TokenApiUtils/module.js +27 -0
  137. package/lib/Splice/Amulet/TwoStepTransfer/index.d.ts +1 -0
  138. package/lib/Splice/Amulet/TwoStepTransfer/index.js +8 -0
  139. package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +26 -0
  140. package/lib/Splice/Amulet/TwoStepTransfer/module.js +33 -0
  141. package/lib/Splice/Amulet/index.d.ts +5 -0
  142. package/lib/Splice/Amulet/index.js +12 -0
  143. package/lib/Splice/Amulet/module.d.ts +588 -0
  144. package/lib/Splice/Amulet/module.js +814 -0
  145. package/lib/Splice/AmuletAllocation/index.d.ts +1 -0
  146. package/lib/Splice/AmuletAllocation/index.js +8 -0
  147. package/lib/Splice/AmuletAllocation/module.d.ts +35 -0
  148. package/lib/Splice/AmuletAllocation/module.js +49 -0
  149. package/lib/Splice/AmuletConfig/index.d.ts +1 -0
  150. package/lib/Splice/AmuletConfig/index.js +8 -0
  151. package/lib/Splice/AmuletConfig/module.d.ts +83 -0
  152. package/lib/Splice/AmuletConfig/module.js +92 -0
  153. package/lib/Splice/AmuletRules/index.d.ts +1 -0
  154. package/lib/Splice/AmuletRules/index.js +8 -0
  155. package/lib/Splice/AmuletRules/module.d.ts +1040 -0
  156. package/lib/Splice/AmuletRules/module.js +1441 -0
  157. package/lib/Splice/AmuletTransferInstruction/index.d.ts +1 -0
  158. package/lib/Splice/AmuletTransferInstruction/index.js +8 -0
  159. package/lib/Splice/AmuletTransferInstruction/module.d.ts +35 -0
  160. package/lib/Splice/AmuletTransferInstruction/module.js +49 -0
  161. package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
  162. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
  163. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +149 -0
  164. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
  165. package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
  166. package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
  167. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +153 -0
  168. package/lib/Splice/Api/Token/AllocationV1/module.js +206 -0
  169. package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
  170. package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
  171. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +60 -0
  172. package/lib/Splice/Api/Token/HoldingV1/module.js +76 -0
  173. package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
  174. package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
  175. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +91 -0
  176. package/lib/Splice/Api/Token/MetadataV1/module.js +114 -0
  177. package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
  178. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
  179. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +202 -0
  180. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
  181. package/lib/Splice/Api/Token/index.d.ts +2 -0
  182. package/lib/Splice/Api/Token/index.js +9 -0
  183. package/lib/Splice/DecentralizedSynchronizer/index.d.ts +1 -0
  184. package/lib/Splice/DecentralizedSynchronizer/index.js +8 -0
  185. package/lib/Splice/DecentralizedSynchronizer/module.d.ts +89 -0
  186. package/lib/Splice/DecentralizedSynchronizer/module.js +110 -0
  187. package/lib/Splice/Expiry/index.d.ts +1 -0
  188. package/lib/Splice/Expiry/index.js +8 -0
  189. package/lib/Splice/Expiry/module.d.ts +30 -0
  190. package/lib/Splice/Expiry/module.js +41 -0
  191. package/lib/Splice/ExternalPartyAmuletRules/index.d.ts +1 -0
  192. package/lib/Splice/ExternalPartyAmuletRules/index.js +8 -0
  193. package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +210 -0
  194. package/lib/Splice/ExternalPartyAmuletRules/module.js +294 -0
  195. package/lib/Splice/Fees/index.d.ts +1 -0
  196. package/lib/Splice/Fees/index.js +8 -0
  197. package/lib/Splice/Fees/module.d.ts +65 -0
  198. package/lib/Splice/Fees/module.js +80 -0
  199. package/lib/Splice/Issuance/index.d.ts +1 -0
  200. package/lib/Splice/Issuance/index.js +8 -0
  201. package/lib/Splice/Issuance/module.d.ts +67 -0
  202. package/lib/Splice/Issuance/module.js +80 -0
  203. package/lib/Splice/RelRound/index.d.ts +1 -0
  204. package/lib/Splice/RelRound/index.js +8 -0
  205. package/lib/Splice/RelRound/module.d.ts +18 -0
  206. package/lib/Splice/RelRound/module.js +25 -0
  207. package/lib/Splice/Round/index.d.ts +1 -0
  208. package/lib/Splice/Round/index.js +8 -0
  209. package/lib/Splice/Round/module.d.ts +136 -0
  210. package/lib/Splice/Round/module.js +182 -0
  211. package/lib/Splice/Schedule/index.d.ts +1 -0
  212. package/lib/Splice/Schedule/index.js +8 -0
  213. package/lib/Splice/Schedule/module.d.ts +20 -0
  214. package/lib/Splice/Schedule/module.js +28 -0
  215. package/lib/Splice/Types/index.d.ts +1 -0
  216. package/lib/Splice/Types/index.js +8 -0
  217. package/lib/Splice/Types/module.d.ts +50 -0
  218. package/lib/Splice/Types/module.js +63 -0
  219. package/lib/Splice/ValidatorLicense/index.d.ts +1 -0
  220. package/lib/Splice/ValidatorLicense/index.js +8 -0
  221. package/lib/Splice/ValidatorLicense/module.d.ts +283 -0
  222. package/lib/Splice/ValidatorLicense/module.js +388 -0
  223. package/package.json +15 -3
@@ -0,0 +1,283 @@
1
+ // Generated from Splice/ValidatorLicense.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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../DA/Internal/Template';
11
+
12
+ import * as Splice_Round from '../../Splice/Round/module';
13
+ import * as Splice_Types from '../../Splice/Types/module';
14
+
15
+ export declare type ValidatorLivenessActivityRecord_DsoExpire = {
16
+ closedRoundCid: damlTypes.ContractId<Splice_Round.ClosedMiningRound>;
17
+ };
18
+
19
+ export declare const ValidatorLivenessActivityRecord_DsoExpire:
20
+ damlTypes.Serializable<ValidatorLivenessActivityRecord_DsoExpire> & {
21
+ }
22
+ ;
23
+
24
+
25
+ export declare type ValidatorLivenessActivityRecord = {
26
+ dso: damlTypes.Party;
27
+ validator: damlTypes.Party;
28
+ round: Splice_Types.Round;
29
+ };
30
+
31
+ export declare interface ValidatorLivenessActivityRecordInterface {
32
+ Archive: damlTypes.Choice<ValidatorLivenessActivityRecord, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLivenessActivityRecord, undefined>>;
33
+ ValidatorLivenessActivityRecord_DsoExpire: damlTypes.Choice<ValidatorLivenessActivityRecord, ValidatorLivenessActivityRecord_DsoExpire, ValidatorLivenessActivityRecord_DsoExpireResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLivenessActivityRecord, undefined>>;
34
+ }
35
+ export declare const ValidatorLivenessActivityRecord:
36
+ damlTypes.Template<ValidatorLivenessActivityRecord, undefined, '#splice-amulet:Splice.ValidatorLicense:ValidatorLivenessActivityRecord'> &
37
+ damlTypes.ToInterface<ValidatorLivenessActivityRecord, never> &
38
+ ValidatorLivenessActivityRecordInterface;
39
+
40
+ export declare namespace ValidatorLivenessActivityRecord {
41
+ export type CreateEvent = damlLedger.CreateEvent<ValidatorLivenessActivityRecord, undefined, typeof ValidatorLivenessActivityRecord.templateId>
42
+ export type ArchiveEvent = damlLedger.ArchiveEvent<ValidatorLivenessActivityRecord, typeof ValidatorLivenessActivityRecord.templateId>
43
+ export type Event = damlLedger.Event<ValidatorLivenessActivityRecord, undefined, typeof ValidatorLivenessActivityRecord.templateId>
44
+ export type QueryResult = damlLedger.QueryResult<ValidatorLivenessActivityRecord, undefined, typeof ValidatorLivenessActivityRecord.templateId>
45
+ }
46
+
47
+
48
+
49
+ export declare type ValidatorFaucetCoupon_DsoExpire = {
50
+ closedRoundCid: damlTypes.ContractId<Splice_Round.ClosedMiningRound>;
51
+ };
52
+
53
+ export declare const ValidatorFaucetCoupon_DsoExpire:
54
+ damlTypes.Serializable<ValidatorFaucetCoupon_DsoExpire> & {
55
+ }
56
+ ;
57
+
58
+
59
+ export declare type ValidatorFaucetCoupon = {
60
+ dso: damlTypes.Party;
61
+ validator: damlTypes.Party;
62
+ round: Splice_Types.Round;
63
+ };
64
+
65
+ export declare interface ValidatorFaucetCouponInterface {
66
+ ValidatorFaucetCoupon_DsoExpire: damlTypes.Choice<ValidatorFaucetCoupon, ValidatorFaucetCoupon_DsoExpire, ValidatorFaucetCoupon_DsoExpireResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorFaucetCoupon, undefined>>;
67
+ Archive: damlTypes.Choice<ValidatorFaucetCoupon, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorFaucetCoupon, undefined>>;
68
+ }
69
+ export declare const ValidatorFaucetCoupon:
70
+ damlTypes.Template<ValidatorFaucetCoupon, undefined, '#splice-amulet:Splice.ValidatorLicense:ValidatorFaucetCoupon'> &
71
+ damlTypes.ToInterface<ValidatorFaucetCoupon, never> &
72
+ ValidatorFaucetCouponInterface;
73
+
74
+ export declare namespace ValidatorFaucetCoupon {
75
+ export type CreateEvent = damlLedger.CreateEvent<ValidatorFaucetCoupon, undefined, typeof ValidatorFaucetCoupon.templateId>
76
+ export type ArchiveEvent = damlLedger.ArchiveEvent<ValidatorFaucetCoupon, typeof ValidatorFaucetCoupon.templateId>
77
+ export type Event = damlLedger.Event<ValidatorFaucetCoupon, undefined, typeof ValidatorFaucetCoupon.templateId>
78
+ export type QueryResult = damlLedger.QueryResult<ValidatorFaucetCoupon, undefined, typeof ValidatorFaucetCoupon.templateId>
79
+ }
80
+
81
+
82
+
83
+ export declare type ValidatorLicense_ReportActive = {
84
+ };
85
+
86
+ export declare const ValidatorLicense_ReportActive:
87
+ damlTypes.Serializable<ValidatorLicense_ReportActive> & {
88
+ }
89
+ ;
90
+
91
+
92
+ export declare type ValidatorLicense_UpdateMetadata = {
93
+ version: string;
94
+ contactPoint: string;
95
+ };
96
+
97
+ export declare const ValidatorLicense_UpdateMetadata:
98
+ damlTypes.Serializable<ValidatorLicense_UpdateMetadata> & {
99
+ }
100
+ ;
101
+
102
+
103
+ export declare type ValidatorLicense_Cancel = {
104
+ reason: string;
105
+ };
106
+
107
+ export declare const ValidatorLicense_Cancel:
108
+ damlTypes.Serializable<ValidatorLicense_Cancel> & {
109
+ }
110
+ ;
111
+
112
+
113
+ export declare type ValidatorLicense_Withdraw = {
114
+ reason: string;
115
+ };
116
+
117
+ export declare const ValidatorLicense_Withdraw:
118
+ damlTypes.Serializable<ValidatorLicense_Withdraw> & {
119
+ }
120
+ ;
121
+
122
+
123
+ export declare type ValidatorLicense_RecordValidatorLivenessActivity = {
124
+ openRoundCid: damlTypes.ContractId<Splice_Round.OpenMiningRound>;
125
+ };
126
+
127
+ export declare const ValidatorLicense_RecordValidatorLivenessActivity:
128
+ damlTypes.Serializable<ValidatorLicense_RecordValidatorLivenessActivity> & {
129
+ }
130
+ ;
131
+
132
+
133
+ export declare type ValidatorLicense_ReceiveFaucetCoupon = {
134
+ openRoundCid: damlTypes.ContractId<Splice_Round.OpenMiningRound>;
135
+ };
136
+
137
+ export declare const ValidatorLicense_ReceiveFaucetCoupon:
138
+ damlTypes.Serializable<ValidatorLicense_ReceiveFaucetCoupon> & {
139
+ }
140
+ ;
141
+
142
+
143
+ export declare type ValidatorLicense = {
144
+ validator: damlTypes.Party;
145
+ sponsor: damlTypes.Party;
146
+ dso: damlTypes.Party;
147
+ faucetState: damlTypes.Optional<FaucetState>;
148
+ metadata: damlTypes.Optional<ValidatorLicenseMetadata>;
149
+ lastActiveAt: damlTypes.Optional<damlTypes.Time>;
150
+ };
151
+
152
+ export declare interface ValidatorLicenseInterface {
153
+ ValidatorLicense_ReceiveFaucetCoupon: damlTypes.Choice<ValidatorLicense, ValidatorLicense_ReceiveFaucetCoupon, ValidatorLicense_ReceiveFaucetCouponResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
154
+ ValidatorLicense_RecordValidatorLivenessActivity: damlTypes.Choice<ValidatorLicense, ValidatorLicense_RecordValidatorLivenessActivity, ValidatorLicense_RecordValidatorLivenessActivityResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
155
+ ValidatorLicense_Withdraw: damlTypes.Choice<ValidatorLicense, ValidatorLicense_Withdraw, ValidatorLicense_WithdrawResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
156
+ ValidatorLicense_Cancel: damlTypes.Choice<ValidatorLicense, ValidatorLicense_Cancel, ValidatorLicense_CancelResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
157
+ ValidatorLicense_UpdateMetadata: damlTypes.Choice<ValidatorLicense, ValidatorLicense_UpdateMetadata, ValidatorLicense_UpdateMetadataResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
158
+ ValidatorLicense_ReportActive: damlTypes.Choice<ValidatorLicense, ValidatorLicense_ReportActive, ValidatorLicense_ReportActiveResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
159
+ Archive: damlTypes.Choice<ValidatorLicense, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ValidatorLicense, undefined>>;
160
+ }
161
+ export declare const ValidatorLicense:
162
+ damlTypes.Template<ValidatorLicense, undefined, '#splice-amulet:Splice.ValidatorLicense:ValidatorLicense'> &
163
+ damlTypes.ToInterface<ValidatorLicense, never> &
164
+ ValidatorLicenseInterface;
165
+
166
+ export declare namespace ValidatorLicense {
167
+ export type CreateEvent = damlLedger.CreateEvent<ValidatorLicense, undefined, typeof ValidatorLicense.templateId>
168
+ export type ArchiveEvent = damlLedger.ArchiveEvent<ValidatorLicense, typeof ValidatorLicense.templateId>
169
+ export type Event = damlLedger.Event<ValidatorLicense, undefined, typeof ValidatorLicense.templateId>
170
+ export type QueryResult = damlLedger.QueryResult<ValidatorLicense, undefined, typeof ValidatorLicense.templateId>
171
+ }
172
+
173
+
174
+
175
+ export declare type ValidatorLicenseMetadata = {
176
+ lastUpdatedAt: damlTypes.Time;
177
+ version: string;
178
+ contactPoint: string;
179
+ };
180
+
181
+ export declare const ValidatorLicenseMetadata:
182
+ damlTypes.Serializable<ValidatorLicenseMetadata> & {
183
+ }
184
+ ;
185
+
186
+
187
+ export declare type ValidatorLivenessActivityRecord_DsoExpireResult =
188
+ | 'ValidatorLivenessActivityRecord_DsoExpireResult'
189
+ ;
190
+
191
+ export declare const ValidatorLivenessActivityRecord_DsoExpireResult:
192
+ damlTypes.Serializable<ValidatorLivenessActivityRecord_DsoExpireResult> & {
193
+ }
194
+ & { readonly keys: ValidatorLivenessActivityRecord_DsoExpireResult[] } & { readonly [e in ValidatorLivenessActivityRecord_DsoExpireResult]: e }
195
+ ;
196
+
197
+
198
+ export declare type ValidatorFaucetCoupon_DsoExpireResult =
199
+ | 'ValidatorFaucetCoupon_DsoExpireResult'
200
+ ;
201
+
202
+ export declare const ValidatorFaucetCoupon_DsoExpireResult:
203
+ damlTypes.Serializable<ValidatorFaucetCoupon_DsoExpireResult> & {
204
+ }
205
+ & { readonly keys: ValidatorFaucetCoupon_DsoExpireResult[] } & { readonly [e in ValidatorFaucetCoupon_DsoExpireResult]: e }
206
+ ;
207
+
208
+
209
+ export declare type ValidatorLicense_ReportActiveResult = {
210
+ licenseCid: damlTypes.ContractId<ValidatorLicense>;
211
+ };
212
+
213
+ export declare const ValidatorLicense_ReportActiveResult:
214
+ damlTypes.Serializable<ValidatorLicense_ReportActiveResult> & {
215
+ }
216
+ ;
217
+
218
+
219
+ export declare type ValidatorLicense_UpdateMetadataResult = {
220
+ licenseCid: damlTypes.ContractId<ValidatorLicense>;
221
+ };
222
+
223
+ export declare const ValidatorLicense_UpdateMetadataResult:
224
+ damlTypes.Serializable<ValidatorLicense_UpdateMetadataResult> & {
225
+ }
226
+ ;
227
+
228
+
229
+ export declare type ValidatorLicense_CancelResult =
230
+ | 'ValidatorLicense_CancelResult'
231
+ ;
232
+
233
+ export declare const ValidatorLicense_CancelResult:
234
+ damlTypes.Serializable<ValidatorLicense_CancelResult> & {
235
+ }
236
+ & { readonly keys: ValidatorLicense_CancelResult[] } & { readonly [e in ValidatorLicense_CancelResult]: e }
237
+ ;
238
+
239
+
240
+ export declare type ValidatorLicense_WithdrawResult =
241
+ | 'ValidatorLicense_WithdrawResult'
242
+ ;
243
+
244
+ export declare const ValidatorLicense_WithdrawResult:
245
+ damlTypes.Serializable<ValidatorLicense_WithdrawResult> & {
246
+ }
247
+ & { readonly keys: ValidatorLicense_WithdrawResult[] } & { readonly [e in ValidatorLicense_WithdrawResult]: e }
248
+ ;
249
+
250
+
251
+ export declare type ValidatorLicense_RecordValidatorLivenessActivityResult = {
252
+ licenseCid: damlTypes.ContractId<ValidatorLicense>;
253
+ couponCid: damlTypes.ContractId<ValidatorLivenessActivityRecord>;
254
+ };
255
+
256
+ export declare const ValidatorLicense_RecordValidatorLivenessActivityResult:
257
+ damlTypes.Serializable<ValidatorLicense_RecordValidatorLivenessActivityResult> & {
258
+ }
259
+ ;
260
+
261
+
262
+ export declare type ValidatorLicense_ReceiveFaucetCouponResult = {
263
+ licenseCid: damlTypes.ContractId<ValidatorLicense>;
264
+ couponCid: damlTypes.ContractId<ValidatorFaucetCoupon>;
265
+ };
266
+
267
+ export declare const ValidatorLicense_ReceiveFaucetCouponResult:
268
+ damlTypes.Serializable<ValidatorLicense_ReceiveFaucetCouponResult> & {
269
+ }
270
+ ;
271
+
272
+
273
+ export declare type FaucetState = {
274
+ firstReceivedFor: Splice_Types.Round;
275
+ lastReceivedFor: Splice_Types.Round;
276
+ numCouponsMissed: damlTypes.Int;
277
+ };
278
+
279
+ export declare const FaucetState:
280
+ damlTypes.Serializable<FaucetState> & {
281
+ }
282
+ ;
283
+
@@ -0,0 +1,388 @@
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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../DA/Internal/Template');
16
+
17
+ var Splice_Round = require('../../Splice/Round/module');
18
+ var Splice_Types = require('../../Splice/Types/module');
19
+
20
+
21
+ exports.ValidatorLivenessActivityRecord_DsoExpire = {
22
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).decoder, }); }),
23
+ encode: function (__typed__) {
24
+ return {
25
+ closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).encode(__typed__.closedRoundCid),
26
+ };
27
+ }
28
+ ,
29
+ };
30
+
31
+
32
+
33
+ exports.ValidatorLivenessActivityRecord = damlTypes.assembleTemplate(
34
+ {
35
+ templateId: '#splice-amulet:Splice.ValidatorLicense:ValidatorLivenessActivityRecord',
36
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
37
+ keyEncode: function () { throw 'EncodeError'; },
38
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, validator: damlTypes.Party.decoder, round: Splice_Types.Round.decoder, }); }),
39
+ encode: function (__typed__) {
40
+ return {
41
+ dso: damlTypes.Party.encode(__typed__.dso),
42
+ validator: damlTypes.Party.encode(__typed__.validator),
43
+ round: Splice_Types.Round.encode(__typed__.round),
44
+ };
45
+ }
46
+ ,
47
+ Archive: {
48
+ template: function () { return exports.ValidatorLivenessActivityRecord; },
49
+ choiceName: 'Archive',
50
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
51
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
52
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
53
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
54
+ },
55
+ ValidatorLivenessActivityRecord_DsoExpire: {
56
+ template: function () { return exports.ValidatorLivenessActivityRecord; },
57
+ choiceName: 'ValidatorLivenessActivityRecord_DsoExpire',
58
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLivenessActivityRecord_DsoExpire.decoder; }),
59
+ argumentEncode: function (__typed__) { return exports.ValidatorLivenessActivityRecord_DsoExpire.encode(__typed__); },
60
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLivenessActivityRecord_DsoExpireResult.decoder; }),
61
+ resultEncode: function (__typed__) { return exports.ValidatorLivenessActivityRecord_DsoExpireResult.encode(__typed__); },
62
+ },
63
+ }
64
+
65
+ );
66
+
67
+
68
+ damlTypes.registerTemplate(exports.ValidatorLivenessActivityRecord, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
69
+
70
+
71
+
72
+ exports.ValidatorFaucetCoupon_DsoExpire = {
73
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).decoder, }); }),
74
+ encode: function (__typed__) {
75
+ return {
76
+ closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).encode(__typed__.closedRoundCid),
77
+ };
78
+ }
79
+ ,
80
+ };
81
+
82
+
83
+
84
+ exports.ValidatorFaucetCoupon = damlTypes.assembleTemplate(
85
+ {
86
+ templateId: '#splice-amulet:Splice.ValidatorLicense:ValidatorFaucetCoupon',
87
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
88
+ keyEncode: function () { throw 'EncodeError'; },
89
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, validator: damlTypes.Party.decoder, round: Splice_Types.Round.decoder, }); }),
90
+ encode: function (__typed__) {
91
+ return {
92
+ dso: damlTypes.Party.encode(__typed__.dso),
93
+ validator: damlTypes.Party.encode(__typed__.validator),
94
+ round: Splice_Types.Round.encode(__typed__.round),
95
+ };
96
+ }
97
+ ,
98
+ ValidatorFaucetCoupon_DsoExpire: {
99
+ template: function () { return exports.ValidatorFaucetCoupon; },
100
+ choiceName: 'ValidatorFaucetCoupon_DsoExpire',
101
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorFaucetCoupon_DsoExpire.decoder; }),
102
+ argumentEncode: function (__typed__) { return exports.ValidatorFaucetCoupon_DsoExpire.encode(__typed__); },
103
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorFaucetCoupon_DsoExpireResult.decoder; }),
104
+ resultEncode: function (__typed__) { return exports.ValidatorFaucetCoupon_DsoExpireResult.encode(__typed__); },
105
+ },
106
+ Archive: {
107
+ template: function () { return exports.ValidatorFaucetCoupon; },
108
+ choiceName: 'Archive',
109
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
110
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
111
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
112
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
113
+ },
114
+ }
115
+
116
+ );
117
+
118
+
119
+ damlTypes.registerTemplate(exports.ValidatorFaucetCoupon, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
120
+
121
+
122
+
123
+ exports.ValidatorLicense_ReportActive = {
124
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
125
+ encode: function (__typed__) {
126
+ return {
127
+ };
128
+ }
129
+ ,
130
+ };
131
+
132
+
133
+
134
+ exports.ValidatorLicense_UpdateMetadata = {
135
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({version: damlTypes.Text.decoder, contactPoint: damlTypes.Text.decoder, }); }),
136
+ encode: function (__typed__) {
137
+ return {
138
+ version: damlTypes.Text.encode(__typed__.version),
139
+ contactPoint: damlTypes.Text.encode(__typed__.contactPoint),
140
+ };
141
+ }
142
+ ,
143
+ };
144
+
145
+
146
+
147
+ exports.ValidatorLicense_Cancel = {
148
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({reason: damlTypes.Text.decoder, }); }),
149
+ encode: function (__typed__) {
150
+ return {
151
+ reason: damlTypes.Text.encode(__typed__.reason),
152
+ };
153
+ }
154
+ ,
155
+ };
156
+
157
+
158
+
159
+ exports.ValidatorLicense_Withdraw = {
160
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({reason: damlTypes.Text.decoder, }); }),
161
+ encode: function (__typed__) {
162
+ return {
163
+ reason: damlTypes.Text.encode(__typed__.reason),
164
+ };
165
+ }
166
+ ,
167
+ };
168
+
169
+
170
+
171
+ exports.ValidatorLicense_RecordValidatorLivenessActivity = {
172
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
173
+ encode: function (__typed__) {
174
+ return {
175
+ openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.openRoundCid),
176
+ };
177
+ }
178
+ ,
179
+ };
180
+
181
+
182
+
183
+ exports.ValidatorLicense_ReceiveFaucetCoupon = {
184
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
185
+ encode: function (__typed__) {
186
+ return {
187
+ openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.openRoundCid),
188
+ };
189
+ }
190
+ ,
191
+ };
192
+
193
+
194
+
195
+ exports.ValidatorLicense = damlTypes.assembleTemplate(
196
+ {
197
+ templateId: '#splice-amulet:Splice.ValidatorLicense:ValidatorLicense',
198
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
199
+ keyEncode: function () { throw 'EncodeError'; },
200
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({validator: damlTypes.Party.decoder, sponsor: damlTypes.Party.decoder, dso: damlTypes.Party.decoder, faucetState: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.FaucetState).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.ValidatorLicenseMetadata).decoder), lastActiveAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
201
+ encode: function (__typed__) {
202
+ return {
203
+ validator: damlTypes.Party.encode(__typed__.validator),
204
+ sponsor: damlTypes.Party.encode(__typed__.sponsor),
205
+ dso: damlTypes.Party.encode(__typed__.dso),
206
+ faucetState: damlTypes.Optional(exports.FaucetState).encode(__typed__.faucetState),
207
+ metadata: damlTypes.Optional(exports.ValidatorLicenseMetadata).encode(__typed__.metadata),
208
+ lastActiveAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.lastActiveAt),
209
+ };
210
+ }
211
+ ,
212
+ ValidatorLicense_ReceiveFaucetCoupon: {
213
+ template: function () { return exports.ValidatorLicense; },
214
+ choiceName: 'ValidatorLicense_ReceiveFaucetCoupon',
215
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_ReceiveFaucetCoupon.decoder; }),
216
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_ReceiveFaucetCoupon.encode(__typed__); },
217
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_ReceiveFaucetCouponResult.decoder; }),
218
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_ReceiveFaucetCouponResult.encode(__typed__); },
219
+ },
220
+ ValidatorLicense_RecordValidatorLivenessActivity: {
221
+ template: function () { return exports.ValidatorLicense; },
222
+ choiceName: 'ValidatorLicense_RecordValidatorLivenessActivity',
223
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_RecordValidatorLivenessActivity.decoder; }),
224
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_RecordValidatorLivenessActivity.encode(__typed__); },
225
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_RecordValidatorLivenessActivityResult.decoder; }),
226
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_RecordValidatorLivenessActivityResult.encode(__typed__); },
227
+ },
228
+ ValidatorLicense_Withdraw: {
229
+ template: function () { return exports.ValidatorLicense; },
230
+ choiceName: 'ValidatorLicense_Withdraw',
231
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_Withdraw.decoder; }),
232
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_Withdraw.encode(__typed__); },
233
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_WithdrawResult.decoder; }),
234
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_WithdrawResult.encode(__typed__); },
235
+ },
236
+ ValidatorLicense_Cancel: {
237
+ template: function () { return exports.ValidatorLicense; },
238
+ choiceName: 'ValidatorLicense_Cancel',
239
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_Cancel.decoder; }),
240
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_Cancel.encode(__typed__); },
241
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_CancelResult.decoder; }),
242
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_CancelResult.encode(__typed__); },
243
+ },
244
+ ValidatorLicense_UpdateMetadata: {
245
+ template: function () { return exports.ValidatorLicense; },
246
+ choiceName: 'ValidatorLicense_UpdateMetadata',
247
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_UpdateMetadata.decoder; }),
248
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_UpdateMetadata.encode(__typed__); },
249
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_UpdateMetadataResult.decoder; }),
250
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_UpdateMetadataResult.encode(__typed__); },
251
+ },
252
+ ValidatorLicense_ReportActive: {
253
+ template: function () { return exports.ValidatorLicense; },
254
+ choiceName: 'ValidatorLicense_ReportActive',
255
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_ReportActive.decoder; }),
256
+ argumentEncode: function (__typed__) { return exports.ValidatorLicense_ReportActive.encode(__typed__); },
257
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorLicense_ReportActiveResult.decoder; }),
258
+ resultEncode: function (__typed__) { return exports.ValidatorLicense_ReportActiveResult.encode(__typed__); },
259
+ },
260
+ Archive: {
261
+ template: function () { return exports.ValidatorLicense; },
262
+ choiceName: 'Archive',
263
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
264
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
265
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
266
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
267
+ },
268
+ }
269
+
270
+ );
271
+
272
+
273
+ damlTypes.registerTemplate(exports.ValidatorLicense, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
274
+
275
+
276
+
277
+ exports.ValidatorLicenseMetadata = {
278
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({lastUpdatedAt: damlTypes.Time.decoder, version: damlTypes.Text.decoder, contactPoint: damlTypes.Text.decoder, }); }),
279
+ encode: function (__typed__) {
280
+ return {
281
+ lastUpdatedAt: damlTypes.Time.encode(__typed__.lastUpdatedAt),
282
+ version: damlTypes.Text.encode(__typed__.version),
283
+ contactPoint: damlTypes.Text.encode(__typed__.contactPoint),
284
+ };
285
+ }
286
+ ,
287
+ };
288
+
289
+
290
+
291
+ exports.ValidatorLivenessActivityRecord_DsoExpireResult = {
292
+ ValidatorLivenessActivityRecord_DsoExpireResult: 'ValidatorLivenessActivityRecord_DsoExpireResult',
293
+ keys: ['ValidatorLivenessActivityRecord_DsoExpireResult',],
294
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorLivenessActivityRecord_DsoExpireResult.ValidatorLivenessActivityRecord_DsoExpireResult)); }),
295
+ encode: function (__typed__) { return __typed__; },
296
+ };
297
+
298
+
299
+
300
+ exports.ValidatorFaucetCoupon_DsoExpireResult = {
301
+ ValidatorFaucetCoupon_DsoExpireResult: 'ValidatorFaucetCoupon_DsoExpireResult',
302
+ keys: ['ValidatorFaucetCoupon_DsoExpireResult',],
303
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorFaucetCoupon_DsoExpireResult.ValidatorFaucetCoupon_DsoExpireResult)); }),
304
+ encode: function (__typed__) { return __typed__; },
305
+ };
306
+
307
+
308
+
309
+ exports.ValidatorLicense_ReportActiveResult = {
310
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({licenseCid: damlTypes.ContractId(exports.ValidatorLicense).decoder, }); }),
311
+ encode: function (__typed__) {
312
+ return {
313
+ licenseCid: damlTypes.ContractId(exports.ValidatorLicense).encode(__typed__.licenseCid),
314
+ };
315
+ }
316
+ ,
317
+ };
318
+
319
+
320
+
321
+ exports.ValidatorLicense_UpdateMetadataResult = {
322
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({licenseCid: damlTypes.ContractId(exports.ValidatorLicense).decoder, }); }),
323
+ encode: function (__typed__) {
324
+ return {
325
+ licenseCid: damlTypes.ContractId(exports.ValidatorLicense).encode(__typed__.licenseCid),
326
+ };
327
+ }
328
+ ,
329
+ };
330
+
331
+
332
+
333
+ exports.ValidatorLicense_CancelResult = {
334
+ ValidatorLicense_CancelResult: 'ValidatorLicense_CancelResult',
335
+ keys: ['ValidatorLicense_CancelResult',],
336
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorLicense_CancelResult.ValidatorLicense_CancelResult)); }),
337
+ encode: function (__typed__) { return __typed__; },
338
+ };
339
+
340
+
341
+
342
+ exports.ValidatorLicense_WithdrawResult = {
343
+ ValidatorLicense_WithdrawResult: 'ValidatorLicense_WithdrawResult',
344
+ keys: ['ValidatorLicense_WithdrawResult',],
345
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorLicense_WithdrawResult.ValidatorLicense_WithdrawResult)); }),
346
+ encode: function (__typed__) { return __typed__; },
347
+ };
348
+
349
+
350
+
351
+ exports.ValidatorLicense_RecordValidatorLivenessActivityResult = {
352
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({licenseCid: damlTypes.ContractId(exports.ValidatorLicense).decoder, couponCid: damlTypes.ContractId(exports.ValidatorLivenessActivityRecord).decoder, }); }),
353
+ encode: function (__typed__) {
354
+ return {
355
+ licenseCid: damlTypes.ContractId(exports.ValidatorLicense).encode(__typed__.licenseCid),
356
+ couponCid: damlTypes.ContractId(exports.ValidatorLivenessActivityRecord).encode(__typed__.couponCid),
357
+ };
358
+ }
359
+ ,
360
+ };
361
+
362
+
363
+
364
+ exports.ValidatorLicense_ReceiveFaucetCouponResult = {
365
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({licenseCid: damlTypes.ContractId(exports.ValidatorLicense).decoder, couponCid: damlTypes.ContractId(exports.ValidatorFaucetCoupon).decoder, }); }),
366
+ encode: function (__typed__) {
367
+ return {
368
+ licenseCid: damlTypes.ContractId(exports.ValidatorLicense).encode(__typed__.licenseCid),
369
+ couponCid: damlTypes.ContractId(exports.ValidatorFaucetCoupon).encode(__typed__.couponCid),
370
+ };
371
+ }
372
+ ,
373
+ };
374
+
375
+
376
+
377
+ exports.FaucetState = {
378
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({firstReceivedFor: Splice_Types.Round.decoder, lastReceivedFor: Splice_Types.Round.decoder, numCouponsMissed: damlTypes.Int.decoder, }); }),
379
+ encode: function (__typed__) {
380
+ return {
381
+ firstReceivedFor: Splice_Types.Round.encode(__typed__.firstReceivedFor),
382
+ lastReceivedFor: Splice_Types.Round.encode(__typed__.lastReceivedFor),
383
+ numCouponsMissed: damlTypes.Int.encode(__typed__.numCouponsMissed),
384
+ };
385
+ }
386
+ ,
387
+ };
388
+