@fairmint/open-captable-protocol-daml-js 0.2.14 → 0.2.15
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 +1 -1
- 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/ActiveSubscription/module.d.ts +191 -0
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +302 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.d.ts +86 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +135 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +90 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +139 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +11 -9
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +17 -15
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +25 -0
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +32 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.d.ts +20 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.js +24 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +22 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.d.ts +23 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.d.ts +27 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.js +34 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.js +26 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.d.ts +24 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +30 -0
- package/lib/Fairmint/Subscriptions/Types/index.js +37 -0
- package/lib/Fairmint/Subscriptions/index.d.ts +8 -8
- package/lib/Fairmint/Subscriptions/index.js +8 -8
- package/package.json +2 -2
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +0 -124
- package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +0 -246
- package/lib/Fairmint/Subscriptions/Subscription/module.js +0 -400
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +0 -59
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +0 -73
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +0 -124
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.js +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('@daml.js/daml-prim-DA-Types-1.0.0');
|
|
16
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
|
+
|
|
18
|
+
var Fairmint_Subscriptions_ActiveSubscription = require('../../../Fairmint/Subscriptions/ActiveSubscription/module');
|
|
19
|
+
var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
|
|
20
|
+
var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscriptions/Types/PartyRole/module');
|
|
21
|
+
var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
22
|
+
var Fairmint_Subscriptions_Types_SubscriptionProposal = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module');
|
|
23
|
+
var Fairmint_Subscriptions_Types_SubscriptionProposalChanges = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.ProposedSubscription_ChangeParty = {
|
|
27
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, }); }),
|
|
28
|
+
encode: function (__typed__) {
|
|
29
|
+
return {
|
|
30
|
+
partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.encode(__typed__.partyType),
|
|
31
|
+
oldParty: damlTypes.Party.encode(__typed__.oldParty),
|
|
32
|
+
newParty: damlTypes.Party.encode(__typed__.newParty),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.ProposedSubscription_Withdraw = {
|
|
41
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
42
|
+
encode: function (__typed__) {
|
|
43
|
+
return {
|
|
44
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
45
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
exports.ProposedSubscription_EditSubscriptionProposal = {
|
|
54
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, changes: Fairmint_Subscriptions_Types_SubscriptionProposalChanges.SubscriptionProposalChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
55
|
+
encode: function (__typed__) {
|
|
56
|
+
return {
|
|
57
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
58
|
+
changes: Fairmint_Subscriptions_Types_SubscriptionProposalChanges.SubscriptionProposalChanges.encode(__typed__.changes),
|
|
59
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
exports.ProposedSubscription_Approve = {
|
|
68
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
69
|
+
encode: function (__typed__) {
|
|
70
|
+
return {
|
|
71
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
,
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
80
|
+
{
|
|
81
|
+
templateId: '#Subscriptions-v02:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription',
|
|
82
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
83
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
84
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.decoder, }); }),
|
|
85
|
+
encode: function (__typed__) {
|
|
86
|
+
return {
|
|
87
|
+
subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.encode(__typed__.subscriptionProposal),
|
|
88
|
+
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
89
|
+
approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.encode(__typed__.approvals),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
,
|
|
93
|
+
Archive: {
|
|
94
|
+
template: function () { return exports.ProposedSubscription; },
|
|
95
|
+
choiceName: 'Archive',
|
|
96
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
97
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
98
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
99
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
100
|
+
},
|
|
101
|
+
ProposedSubscription_ChangeParty: {
|
|
102
|
+
template: function () { return exports.ProposedSubscription; },
|
|
103
|
+
choiceName: 'ProposedSubscription_ChangeParty',
|
|
104
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_ChangeParty.decoder; }),
|
|
105
|
+
argumentEncode: function (__typed__) { return exports.ProposedSubscription_ChangeParty.encode(__typed__); },
|
|
106
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedSubscription).decoder; }),
|
|
107
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedSubscription).encode(__typed__); },
|
|
108
|
+
},
|
|
109
|
+
ProposedSubscription_Approve: {
|
|
110
|
+
template: function () { return exports.ProposedSubscription; },
|
|
111
|
+
choiceName: 'ProposedSubscription_Approve',
|
|
112
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_Approve.decoder; }),
|
|
113
|
+
argumentEncode: function (__typed__) { return exports.ProposedSubscription_Approve.encode(__typed__); },
|
|
114
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(exports.ProposedSubscription), damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription)).decoder; }),
|
|
115
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(exports.ProposedSubscription), damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription)).encode(__typed__); },
|
|
116
|
+
},
|
|
117
|
+
ProposedSubscription_EditSubscriptionProposal: {
|
|
118
|
+
template: function () { return exports.ProposedSubscription; },
|
|
119
|
+
choiceName: 'ProposedSubscription_EditSubscriptionProposal',
|
|
120
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_EditSubscriptionProposal.decoder; }),
|
|
121
|
+
argumentEncode: function (__typed__) { return exports.ProposedSubscription_EditSubscriptionProposal.encode(__typed__); },
|
|
122
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedSubscription).decoder; }),
|
|
123
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedSubscription).encode(__typed__); },
|
|
124
|
+
},
|
|
125
|
+
ProposedSubscription_Withdraw: {
|
|
126
|
+
template: function () { return exports.ProposedSubscription; },
|
|
127
|
+
choiceName: 'ProposedSubscription_Withdraw',
|
|
128
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_Withdraw.decoder; }),
|
|
129
|
+
argumentEncode: function (__typed__) { return exports.ProposedSubscription_Withdraw.encode(__typed__); },
|
|
130
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
131
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
damlTypes.registerTemplate(exports.ProposedSubscription, ['6074d79bdf0a7176b14b8664425e8c4c61c1fb2b5586a979e1e2c07fedf5c390', '#Subscriptions-v02']);
|
|
139
|
+
|
|
@@ -9,29 +9,31 @@ import * as damlLedger from '@daml/ledger';
|
|
|
9
9
|
|
|
10
10
|
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
11
11
|
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
12
|
+
import * as Fairmint_Subscriptions_ProposedSubscription from '../../../Fairmint/Subscriptions/ProposedSubscription/module';
|
|
13
|
+
import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
|
|
14
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionProposal from '../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module';
|
|
14
15
|
|
|
15
|
-
export declare type
|
|
16
|
-
|
|
16
|
+
export declare type SubscriptionFactory_CreateProposedSubscription = {
|
|
17
|
+
actor: damlTypes.Party;
|
|
18
|
+
subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal;
|
|
17
19
|
};
|
|
18
20
|
|
|
19
|
-
export declare const
|
|
20
|
-
damlTypes.Serializable<
|
|
21
|
+
export declare const SubscriptionFactory_CreateProposedSubscription:
|
|
22
|
+
damlTypes.Serializable<SubscriptionFactory_CreateProposedSubscription> & {
|
|
21
23
|
}
|
|
22
24
|
;
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
export declare type SubscriptionFactory = {
|
|
26
|
-
|
|
28
|
+
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
export declare interface SubscriptionFactoryInterface {
|
|
30
32
|
Archive: damlTypes.Choice<SubscriptionFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
31
|
-
|
|
33
|
+
SubscriptionFactory_CreateProposedSubscription: damlTypes.Choice<SubscriptionFactory, SubscriptionFactory_CreateProposedSubscription, damlTypes.ContractId<Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
32
34
|
}
|
|
33
35
|
export declare const SubscriptionFactory:
|
|
34
|
-
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-
|
|
36
|
+
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-v02:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory'> &
|
|
35
37
|
damlTypes.ToInterface<SubscriptionFactory, never> &
|
|
36
38
|
SubscriptionFactoryInterface;
|
|
37
39
|
|
|
@@ -14,15 +14,17 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
var
|
|
17
|
+
var Fairmint_Subscriptions_ProposedSubscription = require('../../../Fairmint/Subscriptions/ProposedSubscription/module');
|
|
18
|
+
var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
19
|
+
var Fairmint_Subscriptions_Types_SubscriptionProposal = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module');
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
exports.
|
|
22
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
22
|
+
exports.SubscriptionFactory_CreateProposedSubscription = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.decoder, }); }),
|
|
23
24
|
encode: function (__typed__) {
|
|
24
25
|
return {
|
|
25
|
-
|
|
26
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
27
|
+
subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.encode(__typed__.subscriptionProposal),
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
,
|
|
@@ -32,13 +34,13 @@ exports.SubscriptionFactory_CreateProposal = {
|
|
|
32
34
|
|
|
33
35
|
exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
34
36
|
{
|
|
35
|
-
templateId: '#Subscriptions-
|
|
37
|
+
templateId: '#Subscriptions-v02:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory',
|
|
36
38
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
37
39
|
keyEncode: function () { throw 'EncodeError'; },
|
|
38
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
40
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, }); }),
|
|
39
41
|
encode: function (__typed__) {
|
|
40
42
|
return {
|
|
41
|
-
|
|
43
|
+
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
,
|
|
@@ -50,18 +52,18 @@ exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
|
50
52
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
51
53
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
52
54
|
},
|
|
53
|
-
|
|
55
|
+
SubscriptionFactory_CreateProposedSubscription: {
|
|
54
56
|
template: function () { return exports.SubscriptionFactory; },
|
|
55
|
-
choiceName: '
|
|
56
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
57
|
-
argumentEncode: function (__typed__) { return exports.
|
|
58
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(
|
|
59
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(
|
|
57
|
+
choiceName: 'SubscriptionFactory_CreateProposedSubscription',
|
|
58
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SubscriptionFactory_CreateProposedSubscription.decoder; }),
|
|
59
|
+
argumentEncode: function (__typed__) { return exports.SubscriptionFactory_CreateProposedSubscription.encode(__typed__); },
|
|
60
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription).decoder; }),
|
|
61
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription).encode(__typed__); },
|
|
60
62
|
},
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
);
|
|
64
66
|
|
|
65
67
|
|
|
66
|
-
damlTypes.registerTemplate(exports.SubscriptionFactory, ['
|
|
68
|
+
damlTypes.registerTemplate(exports.SubscriptionFactory, ['6074d79bdf0a7176b14b8664425e8c4c61c1fb2b5586a979e1e2c07fedf5c390', '#Subscriptions-v02']);
|
|
67
69
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/ActiveSubscriptionData.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 Fairmint_Subscriptions_Types_ProcessorContext from '../../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
|
|
11
|
+
import * as Fairmint_Subscriptions_Types_Subscription from '../../../../Fairmint/Subscriptions/Types/Subscription/module';
|
|
12
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionStats from '../../../../Fairmint/Subscriptions/Types/SubscriptionStats/module';
|
|
13
|
+
|
|
14
|
+
export declare type ActiveSubscriptionData = {
|
|
15
|
+
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
|
|
16
|
+
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
|
|
17
|
+
processedAndPaidUntil: damlTypes.Time;
|
|
18
|
+
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare const ActiveSubscriptionData:
|
|
22
|
+
damlTypes.Serializable<ActiveSubscriptionData> & {
|
|
23
|
+
}
|
|
24
|
+
;
|
|
25
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Fairmint_Subscriptions_Types_ProcessorContext = require('../../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
16
|
+
var Fairmint_Subscriptions_Types_Subscription = require('../../../../Fairmint/Subscriptions/Types/Subscription/module');
|
|
17
|
+
var Fairmint_Subscriptions_Types_SubscriptionStats = require('../../../../Fairmint/Subscriptions/Types/SubscriptionStats/module');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.ActiveSubscriptionData = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.decoder, }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.encode(__typed__.subscription),
|
|
25
|
+
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
26
|
+
processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
|
|
27
|
+
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.encode(__typed__.stats),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
,
|
|
31
|
+
};
|
|
32
|
+
|
|
@@ -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,20 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/Approvals.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
|
+
export declare type Approvals = {
|
|
11
|
+
subscriberApproved: boolean;
|
|
12
|
+
recipientApproved: boolean;
|
|
13
|
+
processorApproved: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare const Approvals:
|
|
17
|
+
damlTypes.Serializable<Approvals> & {
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
16
|
+
exports.Approvals = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriberApproved: damlTypes.Bool.decoder, recipientApproved: damlTypes.Bool.decoder, processorApproved: damlTypes.Bool.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
subscriberApproved: damlTypes.Bool.encode(__typed__.subscriberApproved),
|
|
21
|
+
recipientApproved: damlTypes.Bool.encode(__typed__.recipientApproved),
|
|
22
|
+
processorApproved: damlTypes.Bool.encode(__typed__.processorApproved),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
,
|
|
26
|
+
};
|
|
27
|
+
|
|
@@ -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,21 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/PartyRole.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
|
+
export declare type PartyRole =
|
|
11
|
+
| 'Subscriber'
|
|
12
|
+
| 'Recipient'
|
|
13
|
+
| 'Processor'
|
|
14
|
+
;
|
|
15
|
+
|
|
16
|
+
export declare const PartyRole:
|
|
17
|
+
damlTypes.Serializable<PartyRole> & {
|
|
18
|
+
}
|
|
19
|
+
& { readonly keys: PartyRole[] } & { readonly [e in PartyRole]: e }
|
|
20
|
+
;
|
|
21
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
16
|
+
exports.PartyRole = {
|
|
17
|
+
Subscriber: 'Subscriber',
|
|
18
|
+
Recipient: 'Recipient',
|
|
19
|
+
Processor: 'Processor',
|
|
20
|
+
keys: ['Subscriber','Recipient','Processor',],
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.PartyRole.Subscriber), jtv.constant(exports.PartyRole.Recipient), jtv.constant(exports.PartyRole.Processor)); }),
|
|
22
|
+
encode: function (__typed__) { return __typed__; },
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -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,22 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/PaymentContext.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 PaymentContext = {
|
|
13
|
+
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
14
|
+
amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
|
|
15
|
+
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export declare const PaymentContext:
|
|
19
|
+
damlTypes.Serializable<PaymentContext> & {
|
|
20
|
+
}
|
|
21
|
+
;
|
|
22
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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.PaymentContext = {
|
|
19
|
+
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, }); }),
|
|
20
|
+
encode: function (__typed__) {
|
|
21
|
+
return {
|
|
22
|
+
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).encode(__typed__.amuletInputs),
|
|
23
|
+
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
24
|
+
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
,
|
|
28
|
+
};
|
|
29
|
+
|
|
@@ -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,23 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/PaymentResult.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../../..';
|
|
11
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
12
|
+
|
|
13
|
+
export declare type ProcessPaymentResult<t> = {
|
|
14
|
+
subscriptionCid: damlTypes.ContractId<t>;
|
|
15
|
+
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult;
|
|
16
|
+
processorTransferResult: damlTypes.Optional<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult>;
|
|
17
|
+
processorActivityMarkerCid: damlTypes.Optional<damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker>>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const ProcessPaymentResult :
|
|
21
|
+
(<t>(t: damlTypes.Serializable<t>) => damlTypes.Serializable<ProcessPaymentResult<t>>) & {
|
|
22
|
+
};
|
|
23
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.ProcessPaymentResult = function (t) { return ({
|
|
20
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(t).decoder, recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.decoder, processorTransferResult: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).decoder), processorActivityMarkerCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).decoder), }); }),
|
|
21
|
+
encode: function (__typed__) {
|
|
22
|
+
return {
|
|
23
|
+
subscriptionCid: damlTypes.ContractId(t).encode(__typed__.subscriptionCid),
|
|
24
|
+
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.encode(__typed__.recipientTransferResult),
|
|
25
|
+
processorTransferResult: damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).encode(__typed__.processorTransferResult),
|
|
26
|
+
processorActivityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).encode(__typed__.processorActivityMarkerCid),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
,
|
|
30
|
+
}); };
|
|
31
|
+
|
|
@@ -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,21 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/ProcessFreeTrialResult.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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
|
|
12
|
+
export declare type ProcessFreeTrialResult<t> = {
|
|
13
|
+
subscriptionCid: damlTypes.ContractId<t>;
|
|
14
|
+
recipientActivityMarkerCid: damlTypes.Optional<damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker>>;
|
|
15
|
+
processorActivityMarkerCid: damlTypes.Optional<damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker>>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export declare const ProcessFreeTrialResult :
|
|
19
|
+
(<t>(t: damlTypes.Serializable<t>) => damlTypes.Serializable<ProcessFreeTrialResult<t>>) & {
|
|
20
|
+
};
|
|
21
|
+
|