@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.
- package/README.md +152 -1
- package/generated/subscriptions-factory-contract-id.json +10 -0
- package/generated/subscriptions-factory-contract-id.json.d.ts +11 -0
- package/lib/DA/Date/Types/index.d.ts +1 -0
- package/lib/DA/Date/Types/index.js +8 -0
- package/lib/DA/Date/Types/module.d.ts +47 -0
- package/lib/DA/Date/Types/module.js +48 -0
- package/lib/DA/Date/index.d.ts +2 -0
- package/lib/DA/Date/index.js +9 -0
- package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
- package/lib/DA/Exception/ArithmeticError/index.js +8 -0
- package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
- package/lib/DA/Exception/ArithmeticError/module.js +25 -0
- package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/AssertionFailed/index.js +8 -0
- package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/AssertionFailed/module.js +25 -0
- package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
- package/lib/DA/Exception/GeneralError/index.js +8 -0
- package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
- package/lib/DA/Exception/GeneralError/module.js +25 -0
- package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
- package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
- package/lib/DA/Exception/index.d.ts +2 -0
- package/lib/DA/Exception/index.js +9 -0
- package/lib/DA/Internal/Down/index.d.ts +1 -0
- package/lib/DA/Internal/Down/index.js +8 -0
- package/lib/DA/Internal/Down/module.d.ts +17 -0
- package/lib/DA/Internal/Down/module.js +25 -0
- package/lib/DA/Logic/Types/index.d.ts +1 -0
- package/lib/DA/Logic/Types/index.js +8 -0
- package/lib/DA/Logic/Types/module.d.ts +20 -0
- package/lib/DA/Logic/Types/module.js +29 -0
- package/lib/DA/Logic/index.d.ts +2 -0
- package/lib/DA/Logic/index.js +9 -0
- package/lib/DA/Monoid/Types/index.d.ts +1 -0
- package/lib/DA/Monoid/Types/index.js +8 -0
- package/lib/DA/Monoid/Types/module.d.ts +46 -0
- package/lib/DA/Monoid/Types/module.js +61 -0
- package/lib/DA/Monoid/index.d.ts +2 -0
- package/lib/DA/Monoid/index.js +9 -0
- package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
- package/lib/DA/NonEmpty/Types/index.js +8 -0
- package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
- package/lib/DA/NonEmpty/Types/module.js +26 -0
- package/lib/DA/NonEmpty/index.d.ts +2 -0
- package/lib/DA/NonEmpty/index.js +9 -0
- package/lib/DA/Random/Types/index.d.ts +1 -0
- package/lib/DA/Random/Types/index.js +8 -0
- package/lib/DA/Random/Types/module.d.ts +18 -0
- package/lib/DA/Random/Types/module.js +26 -0
- package/lib/DA/Random/index.d.ts +2 -0
- package/lib/DA/Random/index.js +9 -0
- package/lib/DA/Semigroup/Types/index.d.ts +1 -0
- package/lib/DA/Semigroup/Types/index.js +8 -0
- package/lib/DA/Semigroup/Types/module.d.ts +26 -0
- package/lib/DA/Semigroup/Types/module.js +37 -0
- package/lib/DA/Semigroup/index.d.ts +2 -0
- package/lib/DA/Semigroup/index.js +9 -0
- package/lib/DA/Set/Types/index.d.ts +1 -0
- package/lib/DA/Set/Types/index.js +8 -0
- package/lib/DA/Set/Types/module.d.ts +17 -0
- package/lib/DA/Set/Types/module.js +25 -0
- package/lib/DA/Set/index.d.ts +2 -0
- package/lib/DA/Set/index.js +9 -0
- package/lib/DA/Stack/Types/index.d.ts +1 -0
- package/lib/DA/Stack/Types/index.js +8 -0
- package/lib/DA/Stack/Types/module.d.ts +24 -0
- package/lib/DA/Stack/Types/module.js +31 -0
- package/lib/DA/Stack/index.d.ts +2 -0
- package/lib/DA/Stack/index.js +9 -0
- package/lib/DA/Time/Types/index.d.ts +1 -0
- package/lib/DA/Time/Types/index.js +8 -0
- package/lib/DA/Time/Types/module.d.ts +18 -0
- package/lib/DA/Time/Types/module.js +25 -0
- package/lib/DA/Time/index.d.ts +2 -0
- package/lib/DA/Time/index.js +9 -0
- package/lib/DA/Types/index.d.ts +1 -0
- package/lib/DA/Types/index.js +8 -0
- package/lib/DA/Types/module.d.ts +379 -0
- package/lib/DA/Types/module.js +445 -0
- package/lib/DA/Validation/Types/index.d.ts +1 -0
- package/lib/DA/Validation/Types/index.js +8 -0
- package/lib/DA/Validation/Types/module.d.ts +20 -0
- package/lib/DA/Validation/Types/module.js +29 -0
- package/lib/DA/Validation/index.d.ts +2 -0
- package/lib/DA/Validation/index.js +9 -0
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +75 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +124 -0
- package/lib/Fairmint/Subscriptions/Subscription/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Subscription/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +246 -0
- package/lib/Fairmint/Subscriptions/Subscription/module.js +400 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +59 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +73 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +45 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +67 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +75 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +124 -0
- package/lib/Fairmint/Subscriptions/index.d.ts +10 -0
- package/lib/Fairmint/Subscriptions/index.js +17 -0
- package/lib/Fairmint/index.d.ts +1 -0
- package/lib/Fairmint/index.js +2 -0
- package/lib/Splice/Amulet/TokenApiUtils/index.d.ts +1 -0
- package/lib/Splice/Amulet/TokenApiUtils/index.js +8 -0
- package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +24 -0
- package/lib/Splice/Amulet/TokenApiUtils/module.js +27 -0
- package/lib/Splice/Amulet/TwoStepTransfer/index.d.ts +1 -0
- package/lib/Splice/Amulet/TwoStepTransfer/index.js +8 -0
- package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +26 -0
- package/lib/Splice/Amulet/TwoStepTransfer/module.js +33 -0
- package/lib/Splice/Amulet/index.d.ts +5 -0
- package/lib/Splice/Amulet/index.js +12 -0
- package/lib/Splice/Amulet/module.d.ts +588 -0
- package/lib/Splice/Amulet/module.js +814 -0
- package/lib/Splice/AmuletAllocation/index.d.ts +1 -0
- package/lib/Splice/AmuletAllocation/index.js +8 -0
- package/lib/Splice/AmuletAllocation/module.d.ts +35 -0
- package/lib/Splice/AmuletAllocation/module.js +49 -0
- package/lib/Splice/AmuletConfig/index.d.ts +1 -0
- package/lib/Splice/AmuletConfig/index.js +8 -0
- package/lib/Splice/AmuletConfig/module.d.ts +83 -0
- package/lib/Splice/AmuletConfig/module.js +92 -0
- package/lib/Splice/AmuletRules/index.d.ts +1 -0
- package/lib/Splice/AmuletRules/index.js +8 -0
- package/lib/Splice/AmuletRules/module.d.ts +1040 -0
- package/lib/Splice/AmuletRules/module.js +1441 -0
- package/lib/Splice/AmuletTransferInstruction/index.d.ts +1 -0
- package/lib/Splice/AmuletTransferInstruction/index.js +8 -0
- package/lib/Splice/AmuletTransferInstruction/module.d.ts +35 -0
- package/lib/Splice/AmuletTransferInstruction/module.js +49 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +149 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
- package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationV1/module.d.ts +153 -0
- package/lib/Splice/Api/Token/AllocationV1/module.js +206 -0
- package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
- package/lib/Splice/Api/Token/HoldingV1/module.d.ts +60 -0
- package/lib/Splice/Api/Token/HoldingV1/module.js +76 -0
- package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
- package/lib/Splice/Api/Token/MetadataV1/module.d.ts +91 -0
- package/lib/Splice/Api/Token/MetadataV1/module.js +114 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +202 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
- package/lib/Splice/Api/Token/index.d.ts +2 -0
- package/lib/Splice/Api/Token/index.js +9 -0
- package/lib/Splice/DecentralizedSynchronizer/index.d.ts +1 -0
- package/lib/Splice/DecentralizedSynchronizer/index.js +8 -0
- package/lib/Splice/DecentralizedSynchronizer/module.d.ts +89 -0
- package/lib/Splice/DecentralizedSynchronizer/module.js +110 -0
- package/lib/Splice/Expiry/index.d.ts +1 -0
- package/lib/Splice/Expiry/index.js +8 -0
- package/lib/Splice/Expiry/module.d.ts +30 -0
- package/lib/Splice/Expiry/module.js +41 -0
- package/lib/Splice/ExternalPartyAmuletRules/index.d.ts +1 -0
- package/lib/Splice/ExternalPartyAmuletRules/index.js +8 -0
- package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +210 -0
- package/lib/Splice/ExternalPartyAmuletRules/module.js +294 -0
- package/lib/Splice/Fees/index.d.ts +1 -0
- package/lib/Splice/Fees/index.js +8 -0
- package/lib/Splice/Fees/module.d.ts +65 -0
- package/lib/Splice/Fees/module.js +80 -0
- package/lib/Splice/Issuance/index.d.ts +1 -0
- package/lib/Splice/Issuance/index.js +8 -0
- package/lib/Splice/Issuance/module.d.ts +67 -0
- package/lib/Splice/Issuance/module.js +80 -0
- package/lib/Splice/RelRound/index.d.ts +1 -0
- package/lib/Splice/RelRound/index.js +8 -0
- package/lib/Splice/RelRound/module.d.ts +18 -0
- package/lib/Splice/RelRound/module.js +25 -0
- package/lib/Splice/Round/index.d.ts +1 -0
- package/lib/Splice/Round/index.js +8 -0
- package/lib/Splice/Round/module.d.ts +136 -0
- package/lib/Splice/Round/module.js +182 -0
- package/lib/Splice/Schedule/index.d.ts +1 -0
- package/lib/Splice/Schedule/index.js +8 -0
- package/lib/Splice/Schedule/module.d.ts +20 -0
- package/lib/Splice/Schedule/module.js +28 -0
- package/lib/Splice/Types/index.d.ts +1 -0
- package/lib/Splice/Types/index.js +8 -0
- package/lib/Splice/Types/module.d.ts +50 -0
- package/lib/Splice/Types/module.js +63 -0
- package/lib/Splice/ValidatorLicense/index.d.ts +1 -0
- package/lib/Splice/ValidatorLicense/index.js +8 -0
- package/lib/Splice/ValidatorLicense/module.d.ts +283 -0
- package/lib/Splice/ValidatorLicense/module.js +388 -0
- package/package.json +15 -3
|
@@ -0,0 +1,400 @@
|
|
|
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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');
|
|
18
|
+
|
|
19
|
+
var Fairmint_Subscriptions_SubscriptionConfig = require('../../../Fairmint/Subscriptions/SubscriptionConfig/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.Subscription_ProcessPaymentResult = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(exports.Subscription).decoder, recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.decoder, processorTransferResult: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).decoder), }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
subscriptionCid: damlTypes.ContractId(exports.Subscription).encode(__typed__.subscriptionCid),
|
|
27
|
+
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.encode(__typed__.recipientTransferResult),
|
|
28
|
+
processorTransferResult: damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).encode(__typed__.processorTransferResult),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.Subscription_CancelByProcessor = {
|
|
37
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
38
|
+
encode: function (__typed__) {
|
|
39
|
+
return {
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
exports.Subscription_CancelByRecipient = {
|
|
48
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
49
|
+
encode: function (__typed__) {
|
|
50
|
+
return {
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
exports.Subscription_CancelBySubscriber = {
|
|
59
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
60
|
+
encode: function (__typed__) {
|
|
61
|
+
return {
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.Subscription_RecipientUpdateFreeTrial = {
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFreeTrialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
71
|
+
encode: function (__typed__) {
|
|
72
|
+
return {
|
|
73
|
+
newFreeTrialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.newFreeTrialEndsAt),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
,
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
exports.Subscription_SubscriberReduceFreeTrial = {
|
|
82
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFreeTrialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
83
|
+
encode: function (__typed__) {
|
|
84
|
+
return {
|
|
85
|
+
newFreeTrialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.newFreeTrialEndsAt),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.Subscription_ProcessorSetRecipientFeaturedAppRight = {
|
|
94
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight).decoder, }); }),
|
|
95
|
+
encode: function (__typed__) {
|
|
96
|
+
return {
|
|
97
|
+
newFeaturedAppRight: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight).encode(__typed__.newFeaturedAppRight),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
,
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
exports.Subscription_UpdateProcessorFeaturedAppRight = {
|
|
106
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), }); }),
|
|
107
|
+
encode: function (__typed__) {
|
|
108
|
+
return {
|
|
109
|
+
newFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.newFeaturedAppRight),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
,
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
exports.Subscription_UpdateRecipientFeaturedAppRight = {
|
|
118
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), }); }),
|
|
119
|
+
encode: function (__typed__) {
|
|
120
|
+
return {
|
|
121
|
+
newFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.newFeaturedAppRight),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
,
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
exports.Subscription_ProcessorDecreasePayment = {
|
|
130
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
131
|
+
encode: function (__typed__) {
|
|
132
|
+
return {
|
|
133
|
+
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newProcessorPayment),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
,
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
exports.Subscription_RecipientDecreasePayment = {
|
|
142
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
143
|
+
encode: function (__typed__) {
|
|
144
|
+
return {
|
|
145
|
+
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newRecipientPayment),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
,
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
exports.Subscription_SubscriberIncreasePayments = {
|
|
154
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
155
|
+
encode: function (__typed__) {
|
|
156
|
+
return {
|
|
157
|
+
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newRecipientPayment),
|
|
158
|
+
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newProcessorPayment),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
,
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
exports.Subscription_DecreaseExpiration = {
|
|
167
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newExpiresAt: damlTypes.Time.decoder, exercisingParty: damlTypes.Party.decoder, }); }),
|
|
168
|
+
encode: function (__typed__) {
|
|
169
|
+
return {
|
|
170
|
+
newExpiresAt: damlTypes.Time.encode(__typed__.newExpiresAt),
|
|
171
|
+
exercisingParty: damlTypes.Party.encode(__typed__.exercisingParty),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
,
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
exports.Subscription_UpdateExpiration = {
|
|
180
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newExpiresAt: damlTypes.Time.decoder, }); }),
|
|
181
|
+
encode: function (__typed__) {
|
|
182
|
+
return {
|
|
183
|
+
newExpiresAt: damlTypes.Time.encode(__typed__.newExpiresAt),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
,
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
exports.Subscription_ProcessFreeTrial = {
|
|
192
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }); }),
|
|
193
|
+
encode: function (__typed__) {
|
|
194
|
+
return {
|
|
195
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
exports.Subscription_ProcessPayment = {
|
|
204
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentCtx: exports.PaymentContext.decoder, }); }),
|
|
205
|
+
encode: function (__typed__) {
|
|
206
|
+
return {
|
|
207
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
208
|
+
paymentCtx: exports.PaymentContext.encode(__typed__.paymentCtx),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
,
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
exports.Subscription = damlTypes.assembleTemplate(
|
|
217
|
+
{
|
|
218
|
+
templateId: '#Subscriptions-v01:Fairmint.Subscriptions.Subscription:Subscription',
|
|
219
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
220
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
221
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({paidUntil: damlTypes.Time.decoder, config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig.decoder, context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext.decoder, }); }),
|
|
222
|
+
encode: function (__typed__) {
|
|
223
|
+
return {
|
|
224
|
+
paidUntil: damlTypes.Time.encode(__typed__.paidUntil),
|
|
225
|
+
config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig.encode(__typed__.config),
|
|
226
|
+
context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext.encode(__typed__.context),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
,
|
|
230
|
+
Subscription_ProcessPayment: {
|
|
231
|
+
template: function () { return exports.Subscription; },
|
|
232
|
+
choiceName: 'Subscription_ProcessPayment',
|
|
233
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessPayment.decoder; }),
|
|
234
|
+
argumentEncode: function (__typed__) { return exports.Subscription_ProcessPayment.encode(__typed__); },
|
|
235
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessPaymentResult.decoder; }),
|
|
236
|
+
resultEncode: function (__typed__) { return exports.Subscription_ProcessPaymentResult.encode(__typed__); },
|
|
237
|
+
},
|
|
238
|
+
Subscription_ProcessFreeTrial: {
|
|
239
|
+
template: function () { return exports.Subscription; },
|
|
240
|
+
choiceName: 'Subscription_ProcessFreeTrial',
|
|
241
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessFreeTrial.decoder; }),
|
|
242
|
+
argumentEncode: function (__typed__) { return exports.Subscription_ProcessFreeTrial.encode(__typed__); },
|
|
243
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
244
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
245
|
+
},
|
|
246
|
+
Subscription_UpdateExpiration: {
|
|
247
|
+
template: function () { return exports.Subscription; },
|
|
248
|
+
choiceName: 'Subscription_UpdateExpiration',
|
|
249
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateExpiration.decoder; }),
|
|
250
|
+
argumentEncode: function (__typed__) { return exports.Subscription_UpdateExpiration.encode(__typed__); },
|
|
251
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
252
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
253
|
+
},
|
|
254
|
+
Subscription_DecreaseExpiration: {
|
|
255
|
+
template: function () { return exports.Subscription; },
|
|
256
|
+
choiceName: 'Subscription_DecreaseExpiration',
|
|
257
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_DecreaseExpiration.decoder; }),
|
|
258
|
+
argumentEncode: function (__typed__) { return exports.Subscription_DecreaseExpiration.encode(__typed__); },
|
|
259
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
260
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
261
|
+
},
|
|
262
|
+
Subscription_SubscriberIncreasePayments: {
|
|
263
|
+
template: function () { return exports.Subscription; },
|
|
264
|
+
choiceName: 'Subscription_SubscriberIncreasePayments',
|
|
265
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_SubscriberIncreasePayments.decoder; }),
|
|
266
|
+
argumentEncode: function (__typed__) { return exports.Subscription_SubscriberIncreasePayments.encode(__typed__); },
|
|
267
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
268
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
269
|
+
},
|
|
270
|
+
Subscription_RecipientDecreasePayment: {
|
|
271
|
+
template: function () { return exports.Subscription; },
|
|
272
|
+
choiceName: 'Subscription_RecipientDecreasePayment',
|
|
273
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_RecipientDecreasePayment.decoder; }),
|
|
274
|
+
argumentEncode: function (__typed__) { return exports.Subscription_RecipientDecreasePayment.encode(__typed__); },
|
|
275
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
276
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
277
|
+
},
|
|
278
|
+
Subscription_ProcessorDecreasePayment: {
|
|
279
|
+
template: function () { return exports.Subscription; },
|
|
280
|
+
choiceName: 'Subscription_ProcessorDecreasePayment',
|
|
281
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessorDecreasePayment.decoder; }),
|
|
282
|
+
argumentEncode: function (__typed__) { return exports.Subscription_ProcessorDecreasePayment.encode(__typed__); },
|
|
283
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
284
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
285
|
+
},
|
|
286
|
+
Subscription_UpdateRecipientFeaturedAppRight: {
|
|
287
|
+
template: function () { return exports.Subscription; },
|
|
288
|
+
choiceName: 'Subscription_UpdateRecipientFeaturedAppRight',
|
|
289
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateRecipientFeaturedAppRight.decoder; }),
|
|
290
|
+
argumentEncode: function (__typed__) { return exports.Subscription_UpdateRecipientFeaturedAppRight.encode(__typed__); },
|
|
291
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
292
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
293
|
+
},
|
|
294
|
+
Subscription_UpdateProcessorFeaturedAppRight: {
|
|
295
|
+
template: function () { return exports.Subscription; },
|
|
296
|
+
choiceName: 'Subscription_UpdateProcessorFeaturedAppRight',
|
|
297
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateProcessorFeaturedAppRight.decoder; }),
|
|
298
|
+
argumentEncode: function (__typed__) { return exports.Subscription_UpdateProcessorFeaturedAppRight.encode(__typed__); },
|
|
299
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
300
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
301
|
+
},
|
|
302
|
+
Subscription_ProcessorSetRecipientFeaturedAppRight: {
|
|
303
|
+
template: function () { return exports.Subscription; },
|
|
304
|
+
choiceName: 'Subscription_ProcessorSetRecipientFeaturedAppRight',
|
|
305
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessorSetRecipientFeaturedAppRight.decoder; }),
|
|
306
|
+
argumentEncode: function (__typed__) { return exports.Subscription_ProcessorSetRecipientFeaturedAppRight.encode(__typed__); },
|
|
307
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
308
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
309
|
+
},
|
|
310
|
+
Subscription_SubscriberReduceFreeTrial: {
|
|
311
|
+
template: function () { return exports.Subscription; },
|
|
312
|
+
choiceName: 'Subscription_SubscriberReduceFreeTrial',
|
|
313
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_SubscriberReduceFreeTrial.decoder; }),
|
|
314
|
+
argumentEncode: function (__typed__) { return exports.Subscription_SubscriberReduceFreeTrial.encode(__typed__); },
|
|
315
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
316
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
317
|
+
},
|
|
318
|
+
Subscription_RecipientUpdateFreeTrial: {
|
|
319
|
+
template: function () { return exports.Subscription; },
|
|
320
|
+
choiceName: 'Subscription_RecipientUpdateFreeTrial',
|
|
321
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_RecipientUpdateFreeTrial.decoder; }),
|
|
322
|
+
argumentEncode: function (__typed__) { return exports.Subscription_RecipientUpdateFreeTrial.encode(__typed__); },
|
|
323
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
324
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
325
|
+
},
|
|
326
|
+
Subscription_CancelBySubscriber: {
|
|
327
|
+
template: function () { return exports.Subscription; },
|
|
328
|
+
choiceName: 'Subscription_CancelBySubscriber',
|
|
329
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelBySubscriber.decoder; }),
|
|
330
|
+
argumentEncode: function (__typed__) { return exports.Subscription_CancelBySubscriber.encode(__typed__); },
|
|
331
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
332
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
333
|
+
},
|
|
334
|
+
Subscription_CancelByRecipient: {
|
|
335
|
+
template: function () { return exports.Subscription; },
|
|
336
|
+
choiceName: 'Subscription_CancelByRecipient',
|
|
337
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelByRecipient.decoder; }),
|
|
338
|
+
argumentEncode: function (__typed__) { return exports.Subscription_CancelByRecipient.encode(__typed__); },
|
|
339
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
340
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
341
|
+
},
|
|
342
|
+
Archive: {
|
|
343
|
+
template: function () { return exports.Subscription; },
|
|
344
|
+
choiceName: 'Archive',
|
|
345
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
346
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
347
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
348
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
349
|
+
},
|
|
350
|
+
Subscription_CancelByProcessor: {
|
|
351
|
+
template: function () { return exports.Subscription; },
|
|
352
|
+
choiceName: 'Subscription_CancelByProcessor',
|
|
353
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelByProcessor.decoder; }),
|
|
354
|
+
argumentEncode: function (__typed__) { return exports.Subscription_CancelByProcessor.encode(__typed__); },
|
|
355
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
356
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
357
|
+
},
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
);
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
damlTypes.registerTemplate(exports.Subscription, ['a69aaed3f2c990040ac22263af73b2547522cc540ffeca867b0f13d74d9e663d', '#Subscriptions-v01']);
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
exports.PaymentRequest = {
|
|
368
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, receiverFeeRatio: damlTypes.Numeric(10).decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), expectedDso: damlTypes.Party.decoder, amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).decoder, amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).decoder, }); }),
|
|
369
|
+
encode: function (__typed__) {
|
|
370
|
+
return {
|
|
371
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
372
|
+
provider: damlTypes.Party.encode(__typed__.provider),
|
|
373
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
374
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
375
|
+
receiverFeeRatio: damlTypes.Numeric(10).encode(__typed__.receiverFeeRatio),
|
|
376
|
+
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
377
|
+
expectedDso: damlTypes.Party.encode(__typed__.expectedDso),
|
|
378
|
+
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).encode(__typed__.amuletInputs),
|
|
379
|
+
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
380
|
+
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
,
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
exports.PaymentContext = {
|
|
389
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).decoder, amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).decoder, amuletPrice: damlTypes.Numeric(10).decoder, }); }),
|
|
390
|
+
encode: function (__typed__) {
|
|
391
|
+
return {
|
|
392
|
+
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).encode(__typed__.amuletInputs),
|
|
393
|
+
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
394
|
+
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
395
|
+
amuletPrice: damlTypes.Numeric(10).encode(__typed__.amuletPrice),
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
,
|
|
399
|
+
};
|
|
400
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/SubscriptionConfig.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
|
+
|
|
12
|
+
export declare type SubscriptionConfig = {
|
|
13
|
+
subscriber: damlTypes.Party;
|
|
14
|
+
recipient: damlTypes.Party;
|
|
15
|
+
recipientPayment: PaymentConfig;
|
|
16
|
+
processorPayment: PaymentConfig;
|
|
17
|
+
expiresAt: damlTypes.Time;
|
|
18
|
+
freeTrialEndsAt: damlTypes.Optional<damlTypes.Time>;
|
|
19
|
+
reason: damlTypes.Optional<string>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare const SubscriptionConfig:
|
|
23
|
+
damlTypes.Serializable<SubscriptionConfig> & {
|
|
24
|
+
}
|
|
25
|
+
;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare type PaymentConfig = {
|
|
29
|
+
amountPerDay: SubscriptionAmount;
|
|
30
|
+
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export declare const PaymentConfig:
|
|
34
|
+
damlTypes.Serializable<PaymentConfig> & {
|
|
35
|
+
}
|
|
36
|
+
;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export declare type SubscriptionAmount =
|
|
40
|
+
| { tag: 'AmuletAmount'; value: damlTypes.Numeric }
|
|
41
|
+
| { tag: 'USDAmount'; value: damlTypes.Numeric }
|
|
42
|
+
;
|
|
43
|
+
|
|
44
|
+
export declare const SubscriptionAmount:
|
|
45
|
+
damlTypes.Serializable<SubscriptionAmount> & {
|
|
46
|
+
}
|
|
47
|
+
;
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export declare type ProcessorContext = {
|
|
51
|
+
processor: damlTypes.Party;
|
|
52
|
+
dso: damlTypes.Party;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export declare const ProcessorContext:
|
|
56
|
+
damlTypes.Serializable<ProcessorContext> & {
|
|
57
|
+
}
|
|
58
|
+
;
|
|
59
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
17
|
+
|
|
18
|
+
exports.SubscriptionConfig = {
|
|
19
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriber: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, recipientPayment: exports.PaymentConfig.decoder, processorPayment: exports.PaymentConfig.decoder, expiresAt: damlTypes.Time.decoder, freeTrialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), reason: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
20
|
+
encode: function (__typed__) {
|
|
21
|
+
return {
|
|
22
|
+
subscriber: damlTypes.Party.encode(__typed__.subscriber),
|
|
23
|
+
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
24
|
+
recipientPayment: exports.PaymentConfig.encode(__typed__.recipientPayment),
|
|
25
|
+
processorPayment: exports.PaymentConfig.encode(__typed__.processorPayment),
|
|
26
|
+
expiresAt: damlTypes.Time.encode(__typed__.expiresAt),
|
|
27
|
+
freeTrialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.freeTrialEndsAt),
|
|
28
|
+
reason: damlTypes.Optional(damlTypes.Text).encode(__typed__.reason),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.PaymentConfig = {
|
|
37
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amountPerDay: exports.SubscriptionAmount.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), }); }),
|
|
38
|
+
encode: function (__typed__) {
|
|
39
|
+
return {
|
|
40
|
+
amountPerDay: exports.SubscriptionAmount.encode(__typed__.amountPerDay),
|
|
41
|
+
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.SubscriptionAmount = {
|
|
50
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AmuletAmount'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('USDAmount'), value: damlTypes.Numeric(10).decoder, })); }),
|
|
51
|
+
encode: function (__typed__) {
|
|
52
|
+
switch(__typed__.tag) {
|
|
53
|
+
case 'AmuletAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
54
|
+
case 'USDAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
55
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type SubscriptionAmount';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.ProcessorContext = {
|
|
64
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processor: damlTypes.Party.decoder, dso: damlTypes.Party.decoder, }); }),
|
|
65
|
+
encode: function (__typed__) {
|
|
66
|
+
return {
|
|
67
|
+
processor: damlTypes.Party.encode(__typed__.processor),
|
|
68
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
,
|
|
72
|
+
};
|
|
73
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/SubscriptionFactory.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 Fairmint_Subscriptions_SubscriptionConfig from '../../../Fairmint/Subscriptions/SubscriptionConfig/module';
|
|
13
|
+
import * as Fairmint_Subscriptions_SubscriptionProposal from '../../../Fairmint/Subscriptions/SubscriptionProposal/module';
|
|
14
|
+
|
|
15
|
+
export declare type SubscriptionFactory_CreateProposal = {
|
|
16
|
+
config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare const SubscriptionFactory_CreateProposal:
|
|
20
|
+
damlTypes.Serializable<SubscriptionFactory_CreateProposal> & {
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export declare type SubscriptionFactory = {
|
|
26
|
+
context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export declare interface SubscriptionFactoryInterface {
|
|
30
|
+
Archive: damlTypes.Choice<SubscriptionFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
31
|
+
SubscriptionFactory_CreateProposal: damlTypes.Choice<SubscriptionFactory, SubscriptionFactory_CreateProposal, damlTypes.ContractId<Fairmint_Subscriptions_SubscriptionProposal.SubscriptionProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
32
|
+
}
|
|
33
|
+
export declare const SubscriptionFactory:
|
|
34
|
+
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-v01:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory'> &
|
|
35
|
+
damlTypes.ToInterface<SubscriptionFactory, never> &
|
|
36
|
+
SubscriptionFactoryInterface;
|
|
37
|
+
|
|
38
|
+
export declare namespace SubscriptionFactory {
|
|
39
|
+
export type CreateEvent = damlLedger.CreateEvent<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
|
|
40
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<SubscriptionFactory, typeof SubscriptionFactory.templateId>
|
|
41
|
+
export type Event = damlLedger.Event<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
|
|
42
|
+
export type QueryResult = damlLedger.QueryResult<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|