@fairmint/open-captable-protocol-daml-js 0.2.34 → 0.2.36
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/generated/subscriptions-factory-contract-id.json +10 -10
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +6 -5
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +10 -9
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.d.ts +1 -1
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +2 -2
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +1 -1
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +2 -2
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +1 -1
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +2 -2
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -2
- package/lib/Fairmint/Subscriptions/Types/index.js +0 -2
- package/package.json +2 -2
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.d.ts +0 -1
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.js +0 -8
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.d.ts +0 -22
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.js +0 -29
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Shared Coding Guidelines for OCP DAML Packages
|
|
2
2
|
|
|
3
|
-
This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `Shared`, `Subscriptions-
|
|
3
|
+
This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `Shared`, `Subscriptions-v09`). This document defines coding guidelines that apply to all packages.
|
|
4
4
|
|
|
5
5
|
For package-specific details about each implementation, see the README.md file in the respective package directory (e.g., `open-captable-protocol-daml/OpenCapTable-v25/README.md`).
|
|
6
6
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devnet": {
|
|
3
|
-
"subscriptionsFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"subscriptionsFactoryContractId": "00629c55145be284fe7190a94a603a2c58e3e81fe90531910d0b011c28fd388a88ca1112200855205e4b7afebbf13acb1ecc06ada9d411c29a5e11bb1788c9cea48756cf55",
|
|
4
|
+
"templateId": "813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory",
|
|
5
5
|
"disclosedContract": {
|
|
6
|
-
"templateId": "
|
|
7
|
-
"contractId": "
|
|
8
|
-
"createdEventBlob": "
|
|
6
|
+
"templateId": "813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory",
|
|
7
|
+
"contractId": "00629c55145be284fe7190a94a603a2c58e3e81fe90531910d0b011c28fd388a88ca1112200855205e4b7afebbf13acb1ecc06ada9d411c29a5e11bb1788c9cea48756cf55",
|
|
8
|
+
"createdEventBlob": "CgMyLjESvwQKRQBinFUUW+KE/nGQqUpgOixY4+gf6QUxkQ0LARwo/TiKiMoREiAIVSBeS3r+u/E6yx7MBq2p1BHCml4RuxeIyc6kh1bPVRIRU3Vic2NyaXB0aW9ucy12MDkahQEKQDgxM2FjZjM5MzhlZDM4ZDMzODgyM2ZkOTRjNWFmYjRhODg1ZTBhZTU0NTQ2NzQxY2MxYjAzNmM3NmMyMmM4MjUSCEZhaXJtaW50Eg1TdWJzY3JpcHRpb25zEhNTdWJzY3JpcHRpb25GYWN0b3J5GhNTdWJzY3JpcHRpb25GYWN0b3J5IsIBar8BCrwBCrkBarYBCmUKYzphdGVzdC1zdWJzY3JpcHRpb24tcHJvY2Vzc29yOjoxMjIwZWE3MGVhMmNiZmU2YmU0MzFmMzRjNzMyM2UyNDljNjI0YTAyZmIyMjA5ZDJiNzNmYWJkN2VlYTFmZTg0ZGYzNApNCks6SURTTzo6MTIyMGJlNThjMjllNjVkZTQwYmYyNzNiZTFkYzJiMjY2ZDQzYTlhMDAyZWE1YjE4OTU1YWVlZjdhYWM4ODFiYjQ3MWEqYXRlc3Qtc3Vic2NyaXB0aW9uLXByb2Nlc3Nvcjo6MTIyMGVhNzBlYTJjYmZlNmJlNDMxZjM0YzczMjNlMjQ5YzYyNGEwMmZiMjIwOWQyYjczZmFiZDdlZWExZmU4NGRmMzQ5aNdlJElBBgBCKgomCiQIARIg5ERpQAQjnGV7hfKr7Pi3myn2tPADZ+Y8zjmvzHH4FvoQHg==",
|
|
9
9
|
"synchronizerId": "global-domain::1220be58c29e65de40bf273be1dc2b266d43a9a002ea5b18955aeef7aac881bb471a"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"mainnet": {
|
|
13
|
-
"subscriptionsFactoryContractId": "
|
|
14
|
-
"templateId": "
|
|
13
|
+
"subscriptionsFactoryContractId": "00970c6821bdde398042d0e9dba27495d3fd041bbc1f7879aa4f560d38f8732defca11122062b1ff23e750e6f3bb081990bc9be8f89f2739e078519ac6b41bf716c3f3b4c7",
|
|
14
|
+
"templateId": "813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory",
|
|
15
15
|
"disclosedContract": {
|
|
16
|
-
"templateId": "
|
|
17
|
-
"contractId": "
|
|
18
|
-
"createdEventBlob": "
|
|
16
|
+
"templateId": "813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory",
|
|
17
|
+
"contractId": "00970c6821bdde398042d0e9dba27495d3fd041bbc1f7879aa4f560d38f8732defca11122062b1ff23e750e6f3bb081990bc9be8f89f2739e078519ac6b41bf716c3f3b4c7",
|
|
18
|
+
"createdEventBlob": "CgMyLjESswQKRQCXDGghvd45gELQ6duidJXT/QQbvB94eapPVg04+HMt78oREiBisf8j51Dm87sIGZC8m+j4nyc54HhRmsa0G/cWw/O0xxIRU3Vic2NyaXB0aW9ucy12MDkahQEKQDgxM2FjZjM5MzhlZDM4ZDMzODgyM2ZkOTRjNWFmYjRhODg1ZTBhZTU0NTQ2NzQxY2MxYjAzNmM3NmMyMmM4MjUSCEZhaXJtaW50Eg1TdWJzY3JpcHRpb25zEhNTdWJzY3JpcHRpb25GYWN0b3J5GhNTdWJzY3JpcHRpb25GYWN0b3J5IrwBarkBCrYBCrMBarABCl8KXTpbU3Vic2NyaXB0aW9uUHJvY2Vzc29yOjoxMjIwNGEwMzkzMjJjMDFlOWY3MTRiNTYyNTljM2U2OGI2OTA1OGJmNWRmZTFkZWJiZTk1NmM2OThmOTA1Y2ViYTlkNwpNCks6SURTTzo6MTIyMGIxNDMxZWYyMTczNDJkYjQ0ZDUxNmJiOWJlZmRlODAyYmU3ZDg4OTk2MzdkMjkwODk1ZmE1ODg4MGYxOWFjY2MqW1N1YnNjcmlwdGlvblByb2Nlc3Nvcjo6MTIyMDRhMDM5MzIyYzAxZTlmNzE0YjU2MjU5YzNlNjhiNjkwNThiZjVkZmUxZGViYmU5NTZjNjk4ZjkwNWNlYmE5ZDc56pbQJElBBgBCKgomCiQIARIgl4RXk/BANdvbcpVa1IFJ/pdmwk7KD7M1QkqHi2b3lHoQHg==",
|
|
19
19
|
"synchronizerId": "global-domain::1220b1431ef217342db44d516bb9befde802be7d8899637d290895fa58880f19accc"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -10,6 +10,7 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
|
|
11
11
|
import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
12
12
|
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
13
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../DA/Time/Types';
|
|
13
14
|
|
|
14
15
|
import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
|
|
15
16
|
import * as Fairmint_Subscriptions_Types_LockFundsInput from '../../../Fairmint/Subscriptions/Types/LockFundsInput/module';
|
|
@@ -17,7 +18,6 @@ import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subsc
|
|
|
17
18
|
import * as Fairmint_Subscriptions_Types_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
|
|
18
19
|
import * as Fairmint_Subscriptions_Types_PaymentResult from '../../../Fairmint/Subscriptions/Types/PaymentResult/module';
|
|
19
20
|
import * as Fairmint_Subscriptions_Types_ProcessFreeTrialResult from '../../../Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module';
|
|
20
|
-
import * as Fairmint_Subscriptions_Types_ProcessingContext from '../../../Fairmint/Subscriptions/Types/ProcessingContext/module';
|
|
21
21
|
import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
|
|
22
22
|
import * as Fairmint_Subscriptions_Types_Subscription from '../../../Fairmint/Subscriptions/Types/Subscription/module';
|
|
23
23
|
import * as Fairmint_Subscriptions_Types_SubscriptionChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionChanges/module';
|
|
@@ -69,7 +69,7 @@ export declare interface SubscriptionChangeProposalInterface {
|
|
|
69
69
|
Archive: damlTypes.Choice<SubscriptionChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
70
70
|
}
|
|
71
71
|
export declare const SubscriptionChangeProposal:
|
|
72
|
-
damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-
|
|
72
|
+
damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
|
|
73
73
|
damlTypes.ToInterface<SubscriptionChangeProposal, never> &
|
|
74
74
|
SubscriptionChangeProposalInterface;
|
|
75
75
|
|
|
@@ -167,7 +167,7 @@ export declare const ActiveSubscription_ProposeChanges:
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
export declare type ActiveSubscription_ProcessPayment = {
|
|
170
|
-
|
|
170
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
171
171
|
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
172
172
|
skipProcessorPayment: boolean;
|
|
173
173
|
};
|
|
@@ -179,7 +179,8 @@ export declare const ActiveSubscription_ProcessPayment:
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
export declare type ActiveSubscription_ProcessFreeTrial = {
|
|
182
|
-
|
|
182
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
183
|
+
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
183
184
|
};
|
|
184
185
|
|
|
185
186
|
export declare const ActiveSubscription_ProcessFreeTrial:
|
|
@@ -209,7 +210,7 @@ export declare interface ActiveSubscriptionInterface {
|
|
|
209
210
|
Archive: damlTypes.Choice<ActiveSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
210
211
|
}
|
|
211
212
|
export declare const ActiveSubscription:
|
|
212
|
-
damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-
|
|
213
|
+
damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
|
|
213
214
|
damlTypes.ToInterface<ActiveSubscription, never> &
|
|
214
215
|
ActiveSubscriptionInterface;
|
|
215
216
|
|
|
@@ -15,6 +15,7 @@ var damlLedger = require('@daml/ledger');
|
|
|
15
15
|
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
|
|
16
16
|
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
17
17
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
18
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');
|
|
18
19
|
|
|
19
20
|
var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
|
|
20
21
|
var Fairmint_Subscriptions_Types_LockFundsInput = require('../../../Fairmint/Subscriptions/Types/LockFundsInput/module');
|
|
@@ -22,7 +23,6 @@ var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscrip
|
|
|
22
23
|
var Fairmint_Subscriptions_Types_PaymentContext = require('../../../Fairmint/Subscriptions/Types/PaymentContext/module');
|
|
23
24
|
var Fairmint_Subscriptions_Types_PaymentResult = require('../../../Fairmint/Subscriptions/Types/PaymentResult/module');
|
|
24
25
|
var Fairmint_Subscriptions_Types_ProcessFreeTrialResult = require('../../../Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module');
|
|
25
|
-
var Fairmint_Subscriptions_Types_ProcessingContext = require('../../../Fairmint/Subscriptions/Types/ProcessingContext/module');
|
|
26
26
|
var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
27
27
|
var Fairmint_Subscriptions_Types_Subscription = require('../../../Fairmint/Subscriptions/Types/Subscription/module');
|
|
28
28
|
var Fairmint_Subscriptions_Types_SubscriptionChanges = require('../../../Fairmint/Subscriptions/Types/SubscriptionChanges/module');
|
|
@@ -69,7 +69,7 @@ exports.SubscriptionChangeProposal_Approve = {
|
|
|
69
69
|
|
|
70
70
|
exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
71
71
|
{
|
|
72
|
-
templateId: '#Subscriptions-
|
|
72
|
+
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal',
|
|
73
73
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
74
74
|
keyEncode: function () { throw 'EncodeError'; },
|
|
75
75
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.decoder, approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.decoder, }); }),
|
|
@@ -119,7 +119,7 @@ exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['
|
|
122
|
+
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
@@ -222,10 +222,10 @@ exports.ActiveSubscription_ProposeChanges = {
|
|
|
222
222
|
|
|
223
223
|
|
|
224
224
|
exports.ActiveSubscription_ProcessPayment = {
|
|
225
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
225
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, skipProcessorPayment: damlTypes.Bool.decoder, }); }),
|
|
226
226
|
encode: function (__typed__) {
|
|
227
227
|
return {
|
|
228
|
-
|
|
228
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
229
229
|
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
230
230
|
skipProcessorPayment: damlTypes.Bool.encode(__typed__.skipProcessorPayment),
|
|
231
231
|
};
|
|
@@ -236,10 +236,11 @@ exports.ActiveSubscription_ProcessPayment = {
|
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
exports.ActiveSubscription_ProcessFreeTrial = {
|
|
239
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
239
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
240
240
|
encode: function (__typed__) {
|
|
241
241
|
return {
|
|
242
|
-
|
|
242
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
243
|
+
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
246
|
,
|
|
@@ -249,7 +250,7 @@ exports.ActiveSubscription_ProcessFreeTrial = {
|
|
|
249
250
|
|
|
250
251
|
exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
251
252
|
{
|
|
252
|
-
templateId: '#Subscriptions-
|
|
253
|
+
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription',
|
|
253
254
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
254
255
|
keyEncode: function () { throw 'EncodeError'; },
|
|
255
256
|
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, lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).decoder, stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.decoder, }); }),
|
|
@@ -348,5 +349,5 @@ exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
|
348
349
|
);
|
|
349
350
|
|
|
350
351
|
|
|
351
|
-
damlTypes.registerTemplate(exports.ActiveSubscription, ['
|
|
352
|
+
damlTypes.registerTemplate(exports.ActiveSubscription, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
352
353
|
|
|
@@ -74,7 +74,7 @@ export declare interface PartyMigrationProposalInterface {
|
|
|
74
74
|
Archive: damlTypes.Choice<PartyMigrationProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
75
75
|
}
|
|
76
76
|
export declare const PartyMigrationProposal:
|
|
77
|
-
damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-
|
|
77
|
+
damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal'> &
|
|
78
78
|
damlTypes.ToInterface<PartyMigrationProposal, never> &
|
|
79
79
|
PartyMigrationProposalInterface;
|
|
80
80
|
|
|
@@ -74,7 +74,7 @@ exports.PartyMigrationProposal_Approve = {
|
|
|
74
74
|
|
|
75
75
|
exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
76
76
|
{
|
|
77
|
-
templateId: '#Subscriptions-
|
|
77
|
+
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal',
|
|
78
78
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
79
79
|
keyEncode: function () { throw 'EncodeError'; },
|
|
80
80
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, oldPartyApproved: damlTypes.Bool.decoder, newPartyApproved: damlTypes.Bool.decoder, }); }),
|
|
@@ -133,5 +133,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
133
133
|
);
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['
|
|
136
|
+
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
137
137
|
|
|
@@ -89,7 +89,7 @@ export declare interface ProposedSubscriptionInterface {
|
|
|
89
89
|
ProposedSubscription_Withdraw: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Withdraw, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
90
90
|
}
|
|
91
91
|
export declare const ProposedSubscription:
|
|
92
|
-
damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-
|
|
92
|
+
damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription'> &
|
|
93
93
|
damlTypes.ToInterface<ProposedSubscription, never> &
|
|
94
94
|
ProposedSubscriptionInterface;
|
|
95
95
|
|
|
@@ -92,7 +92,7 @@ exports.ProposedSubscription_Approve = {
|
|
|
92
92
|
|
|
93
93
|
exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
94
94
|
{
|
|
95
|
-
templateId: '#Subscriptions-
|
|
95
|
+
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription',
|
|
96
96
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
97
97
|
keyEncode: function () { throw 'EncodeError'; },
|
|
98
98
|
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, }); }),
|
|
@@ -157,5 +157,5 @@ exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
|
157
157
|
);
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
damlTypes.registerTemplate(exports.ProposedSubscription, ['
|
|
160
|
+
damlTypes.registerTemplate(exports.ProposedSubscription, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
161
161
|
|
|
@@ -38,7 +38,7 @@ export declare interface SubscriptionFactoryInterface {
|
|
|
38
38
|
SubscriptionFactory_CreateProposedSubscription: damlTypes.Choice<SubscriptionFactory, SubscriptionFactory_CreateProposedSubscription, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either<damlTypes.ContractId<Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription>, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
39
39
|
}
|
|
40
40
|
export declare const SubscriptionFactory:
|
|
41
|
-
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-
|
|
41
|
+
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory'> &
|
|
42
42
|
damlTypes.ToInterface<SubscriptionFactory, never> &
|
|
43
43
|
SubscriptionFactoryInterface;
|
|
44
44
|
|
|
@@ -39,7 +39,7 @@ exports.SubscriptionFactory_CreateProposedSubscription = {
|
|
|
39
39
|
|
|
40
40
|
exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
41
41
|
{
|
|
42
|
-
templateId: '#Subscriptions-
|
|
42
|
+
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory',
|
|
43
43
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
44
44
|
keyEncode: function () { throw 'EncodeError'; },
|
|
45
45
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, }); }),
|
|
@@ -70,5 +70,5 @@ exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
damlTypes.registerTemplate(exports.SubscriptionFactory, ['
|
|
73
|
+
damlTypes.registerTemplate(exports.SubscriptionFactory, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
74
74
|
|
|
@@ -12,8 +12,6 @@ import * as PaymentResult from './PaymentResult';
|
|
|
12
12
|
export { PaymentResult } ;
|
|
13
13
|
import * as ProcessFreeTrialResult from './ProcessFreeTrialResult';
|
|
14
14
|
export { ProcessFreeTrialResult } ;
|
|
15
|
-
import * as ProcessingContext from './ProcessingContext';
|
|
16
|
-
export { ProcessingContext } ;
|
|
17
15
|
import * as ProcessorContext from './ProcessorContext';
|
|
18
16
|
export { ProcessorContext } ;
|
|
19
17
|
import * as Subscription from './Subscription';
|
|
@@ -19,8 +19,6 @@ var PaymentResult = require('./PaymentResult');
|
|
|
19
19
|
exports.PaymentResult = PaymentResult;
|
|
20
20
|
var ProcessFreeTrialResult = require('./ProcessFreeTrialResult');
|
|
21
21
|
exports.ProcessFreeTrialResult = ProcessFreeTrialResult;
|
|
22
|
-
var ProcessingContext = require('./ProcessingContext');
|
|
23
|
-
exports.ProcessingContext = ProcessingContext;
|
|
24
22
|
var ProcessorContext = require('./ProcessorContext');
|
|
25
23
|
exports.ProcessorContext = ProcessorContext;
|
|
26
24
|
var Subscription = require('./Subscription');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build": "daml build --all",
|
|
41
41
|
"build:ts": "tsc",
|
|
42
42
|
"clean": "daml clean --all",
|
|
43
|
-
"codegen": "npm run build && cd OpenCapTable-v25 && daml codegen js && cd .. && cd Shared && daml codegen js && cd .. && cd OpenCapTableReports-v01 && daml codegen js && cd .. && cd Subscriptions-
|
|
43
|
+
"codegen": "npm run build && cd OpenCapTable-v25 && daml codegen js && cd .. && cd Shared && daml codegen js && cd .. && cd OpenCapTableReports-v01 && daml codegen js && cd .. && cd Subscriptions-v09 && daml codegen js && cd .. && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:ts",
|
|
44
44
|
"test": "cd Test && daml test --show-coverage --color --coverage-ignore-choice splice-amulet:.*",
|
|
45
45
|
"test:imports": "tsx scripts/test-imports.ts",
|
|
46
46
|
"upload-dar:ocp": "npm run build && ts-node scripts/upload-dar.ts --network devnet && ts-node scripts/upload-dar.ts --network mainnet",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './module';
|
|
@@ -1,8 +0,0 @@
|
|
|
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'));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Generated from Fairmint/Subscriptions/Types/ProcessingContext.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 pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
|
-
|
|
13
|
-
export declare type ProcessingContext = {
|
|
14
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
15
|
-
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export declare const ProcessingContext:
|
|
19
|
-
damlTypes.Serializable<ProcessingContext> & {
|
|
20
|
-
}
|
|
21
|
-
;
|
|
22
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
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 pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.ProcessingContext = {
|
|
20
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
21
|
-
encode: function (__typed__) {
|
|
22
|
-
return {
|
|
23
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
24
|
-
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
,
|
|
28
|
-
};
|
|
29
|
-
|