@fairmint/open-captable-protocol-daml-js 0.2.17 → 0.2.18
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 +4 -4
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Types/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +2 -2
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +50 -5
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +87 -15
- 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 +7 -2
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +10 -5
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +1 -1
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +2 -2
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +0 -1
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +3 -4
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.js +4 -4
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.js +3 -3
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.d.ts +1 -6
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.js +2 -7
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.d.ts +4 -4
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.js +5 -5
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.d.ts +4 -4
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.js +5 -5
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.d.ts +4 -4
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +5 -5
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.d.ts +3 -3
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +4 -4
- package/lib/Splice/Amulet/module.d.ts +1 -1
- package/lib/Splice/Amulet/module.js +13 -13
- package/lib/Splice/AmuletAllocation/module.d.ts +1 -1
- package/lib/Splice/AmuletAllocation/module.js +4 -4
- package/lib/Splice/AmuletRules/module.d.ts +1 -1
- package/lib/Splice/AmuletRules/module.js +17 -17
- package/lib/Splice/AmuletTransferInstruction/module.d.ts +1 -1
- package/lib/Splice/AmuletTransferInstruction/module.js +4 -4
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +1 -1
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +20 -20
- package/lib/Splice/Api/Token/AllocationV1/module.js +26 -26
- package/lib/Splice/Api/Token/HoldingV1/module.js +2 -2
- package/lib/Splice/Api/Token/TransferInstructionV1/module.js +23 -23
- package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +2 -2
- package/lib/Splice/ExternalPartyAmuletRules/module.js +4 -4
- package/lib/Splice/index.d.ts +30 -1
- package/lib/Splice/index.js +30 -2
- package/package.json +3 -3
- package/lib/DA/Date/Types/index.d.ts +0 -1
- package/lib/DA/Date/Types/index.js +0 -8
- package/lib/DA/Date/Types/module.d.ts +0 -47
- package/lib/DA/Date/Types/module.js +0 -48
- package/lib/DA/Date/index.d.ts +0 -2
- package/lib/DA/Date/index.js +0 -9
- package/lib/DA/Exception/ArithmeticError/index.d.ts +0 -1
- package/lib/DA/Exception/ArithmeticError/index.js +0 -8
- package/lib/DA/Exception/ArithmeticError/module.d.ts +0 -18
- package/lib/DA/Exception/ArithmeticError/module.js +0 -25
- package/lib/DA/Exception/AssertionFailed/index.d.ts +0 -1
- package/lib/DA/Exception/AssertionFailed/index.js +0 -8
- package/lib/DA/Exception/AssertionFailed/module.d.ts +0 -18
- package/lib/DA/Exception/AssertionFailed/module.js +0 -25
- package/lib/DA/Exception/GeneralError/index.d.ts +0 -1
- package/lib/DA/Exception/GeneralError/index.js +0 -8
- package/lib/DA/Exception/GeneralError/module.d.ts +0 -18
- package/lib/DA/Exception/GeneralError/module.js +0 -25
- package/lib/DA/Exception/PreconditionFailed/index.d.ts +0 -1
- package/lib/DA/Exception/PreconditionFailed/index.js +0 -8
- package/lib/DA/Exception/PreconditionFailed/module.d.ts +0 -18
- package/lib/DA/Exception/PreconditionFailed/module.js +0 -25
- package/lib/DA/Exception/index.d.ts +0 -2
- package/lib/DA/Exception/index.js +0 -9
- package/lib/DA/Internal/Down/index.d.ts +0 -1
- package/lib/DA/Internal/Down/index.js +0 -8
- package/lib/DA/Internal/Down/module.d.ts +0 -17
- package/lib/DA/Internal/Down/module.js +0 -25
- package/lib/DA/Logic/Types/index.d.ts +0 -1
- package/lib/DA/Logic/Types/index.js +0 -8
- package/lib/DA/Logic/Types/module.d.ts +0 -20
- package/lib/DA/Logic/Types/module.js +0 -29
- package/lib/DA/Logic/index.d.ts +0 -2
- package/lib/DA/Logic/index.js +0 -9
- package/lib/DA/Monoid/Types/index.d.ts +0 -1
- package/lib/DA/Monoid/Types/index.js +0 -8
- package/lib/DA/Monoid/Types/module.d.ts +0 -46
- package/lib/DA/Monoid/Types/module.js +0 -61
- package/lib/DA/Monoid/index.d.ts +0 -2
- package/lib/DA/Monoid/index.js +0 -9
- package/lib/DA/NonEmpty/Types/index.d.ts +0 -1
- package/lib/DA/NonEmpty/Types/index.js +0 -8
- package/lib/DA/NonEmpty/Types/module.d.ts +0 -18
- package/lib/DA/NonEmpty/Types/module.js +0 -26
- package/lib/DA/NonEmpty/index.d.ts +0 -2
- package/lib/DA/NonEmpty/index.js +0 -9
- package/lib/DA/Random/Types/index.d.ts +0 -1
- package/lib/DA/Random/Types/index.js +0 -8
- package/lib/DA/Random/Types/module.d.ts +0 -18
- package/lib/DA/Random/Types/module.js +0 -26
- package/lib/DA/Random/index.d.ts +0 -2
- package/lib/DA/Random/index.js +0 -9
- package/lib/DA/Semigroup/Types/index.d.ts +0 -1
- package/lib/DA/Semigroup/Types/index.js +0 -8
- package/lib/DA/Semigroup/Types/module.d.ts +0 -26
- package/lib/DA/Semigroup/Types/module.js +0 -37
- package/lib/DA/Semigroup/index.d.ts +0 -2
- package/lib/DA/Semigroup/index.js +0 -9
- package/lib/DA/Stack/Types/index.d.ts +0 -1
- package/lib/DA/Stack/Types/index.js +0 -8
- package/lib/DA/Stack/Types/module.d.ts +0 -24
- package/lib/DA/Stack/Types/module.js +0 -31
- package/lib/DA/Stack/index.d.ts +0 -2
- package/lib/DA/Stack/index.js +0 -9
- package/lib/DA/Validation/Types/index.d.ts +0 -1
- package/lib/DA/Validation/Types/index.js +0 -8
- package/lib/DA/Validation/Types/module.d.ts +0 -20
- package/lib/DA/Validation/Types/module.js +0 -29
- package/lib/DA/Validation/index.d.ts +0 -2
- package/lib/DA/Validation/index.js +0 -9
- package/lib/Splice/Api/Token/index.d.ts +0 -2
- package/lib/Splice/Api/Token/index.js +0 -9
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-v03`). 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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devnet": {
|
|
3
|
-
"subscriptionsFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"subscriptionsFactoryContractId": "007e01a7d2debcdd8dc0fb3209e6d719c48a78fb2f7e0b95052fef2a2e6551ffb4ca111220d561994b95a38aad717febc2fd36951811376142f2c07bfc32f8f01b8674a805",
|
|
4
|
+
"templateId": "1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
|
|
5
5
|
},
|
|
6
6
|
"mainnet": {
|
|
7
|
-
"subscriptionsFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"subscriptionsFactoryContractId": "00dabdd5e680c0b8b28e1efa5b887e30e7c1482d69d7d83ef325acf64f32b71955ca1112208d5a5aa3c679526f861f02e33b8018bec95664fdbcff894538a065417428aa22",
|
|
8
|
+
"templateId": "1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -35,11 +35,11 @@ exports.OcpFactory = damlTypes.assembleTemplate(
|
|
|
35
35
|
templateId: '#OpenCapTable-v25:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
|
|
36
36
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
37
37
|
keyEncode: function () { throw 'EncodeError'; },
|
|
38
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
38
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).decoder, }); }),
|
|
39
39
|
encode: function (__typed__) {
|
|
40
40
|
return {
|
|
41
41
|
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
42
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
42
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
,
|
|
@@ -456,12 +456,12 @@ exports.TransferOperation = {
|
|
|
456
456
|
|
|
457
457
|
|
|
458
458
|
exports.Context = {
|
|
459
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
459
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).decoder, }); }),
|
|
460
460
|
encode: function (__typed__) {
|
|
461
461
|
return {
|
|
462
462
|
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
463
463
|
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
464
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
464
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
,
|
|
@@ -45,14 +45,14 @@ exports.CompanyValuationReport = damlTypes.assembleTemplate(
|
|
|
45
45
|
templateId: '#OpenCapTableReports-v01:Fairmint.OpenCapTableReports.CompanyValuationReport:CompanyValuationReport',
|
|
46
46
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
47
47
|
keyEncode: function () { throw 'EncodeError'; },
|
|
48
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({company_id: damlTypes.Text.decoder, company_valuation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), last_update_at: damlTypes.Time.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
48
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({company_id: damlTypes.Text.decoder, company_valuation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), last_update_at: damlTypes.Time.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).decoder, observers: damlTypes.List(damlTypes.Party).decoder, }); }),
|
|
49
49
|
encode: function (__typed__) {
|
|
50
50
|
return {
|
|
51
51
|
company_id: damlTypes.Text.encode(__typed__.company_id),
|
|
52
52
|
company_valuation: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.company_valuation),
|
|
53
53
|
last_update_at: damlTypes.Time.encode(__typed__.last_update_at),
|
|
54
54
|
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
55
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
55
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
56
56
|
observers: damlTypes.List(damlTypes.Party).encode(__typed__.observers),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -37,11 +37,11 @@ exports.ReportsFactory = damlTypes.assembleTemplate(
|
|
|
37
37
|
templateId: '#OpenCapTableReports-v01:Fairmint.OpenCapTableReports.ReportsFactory:ReportsFactory',
|
|
38
38
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
39
39
|
keyEncode: function () { throw 'EncodeError'; },
|
|
40
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
40
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).decoder, }); }),
|
|
41
41
|
encode: function (__typed__) {
|
|
42
42
|
return {
|
|
43
43
|
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
44
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
44
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
,
|
|
@@ -8,6 +8,7 @@ import * as damlTypes from '@daml/types';
|
|
|
8
8
|
import * as damlLedger from '@daml/ledger';
|
|
9
9
|
|
|
10
10
|
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
|
|
11
|
+
import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
11
12
|
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
13
|
|
|
13
14
|
import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
|
|
@@ -67,7 +68,7 @@ export declare interface SubscriptionChangeProposalInterface {
|
|
|
67
68
|
Archive: damlTypes.Choice<SubscriptionChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
68
69
|
}
|
|
69
70
|
export declare const SubscriptionChangeProposal:
|
|
70
|
-
damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-
|
|
71
|
+
damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v03:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
|
|
71
72
|
damlTypes.ToInterface<SubscriptionChangeProposal, never> &
|
|
72
73
|
SubscriptionChangeProposalInterface;
|
|
73
74
|
|
|
@@ -94,6 +95,7 @@ export declare const ActiveSubscription_ChangeParty:
|
|
|
94
95
|
|
|
95
96
|
export declare type ActiveSubscription_ArchiveInactiveSubscription = {
|
|
96
97
|
actor: damlTypes.Party;
|
|
98
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
97
99
|
};
|
|
98
100
|
|
|
99
101
|
export declare const ActiveSubscription_ArchiveInactiveSubscription:
|
|
@@ -102,8 +104,46 @@ export declare const ActiveSubscription_ArchiveInactiveSubscription:
|
|
|
102
104
|
;
|
|
103
105
|
|
|
104
106
|
|
|
107
|
+
export declare type ActiveSubscription_ReplaceLockedAmulet = {
|
|
108
|
+
newAmulets: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
109
|
+
amountToLock: damlTypes.Numeric;
|
|
110
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export declare const ActiveSubscription_ReplaceLockedAmulet:
|
|
114
|
+
damlTypes.Serializable<ActiveSubscription_ReplaceLockedAmulet> & {
|
|
115
|
+
}
|
|
116
|
+
;
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
export declare type ActiveSubscription_WithdrawFunds = {
|
|
120
|
+
amountToKeepLocked: damlTypes.Numeric;
|
|
121
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export declare const ActiveSubscription_WithdrawFunds:
|
|
125
|
+
damlTypes.Serializable<ActiveSubscription_WithdrawFunds> & {
|
|
126
|
+
}
|
|
127
|
+
;
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
export declare type ActiveSubscription_AddFunds = {
|
|
131
|
+
actor: damlTypes.Party;
|
|
132
|
+
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
133
|
+
amountToLock: damlTypes.Numeric;
|
|
134
|
+
description: damlTypes.Optional<string>;
|
|
135
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export declare const ActiveSubscription_AddFunds:
|
|
139
|
+
damlTypes.Serializable<ActiveSubscription_AddFunds> & {
|
|
140
|
+
}
|
|
141
|
+
;
|
|
142
|
+
|
|
143
|
+
|
|
105
144
|
export declare type ActiveSubscription_Refund = {
|
|
106
145
|
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
146
|
+
recipientAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
107
147
|
recipientFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
108
148
|
};
|
|
109
149
|
|
|
@@ -117,6 +157,7 @@ export declare type ActiveSubscription_Cancel = {
|
|
|
117
157
|
actor: damlTypes.Party;
|
|
118
158
|
disregardAvailablePaidPeriod: boolean;
|
|
119
159
|
description: damlTypes.Optional<string>;
|
|
160
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
120
161
|
};
|
|
121
162
|
|
|
122
163
|
export declare const ActiveSubscription_Cancel:
|
|
@@ -163,6 +204,7 @@ export declare type ActiveSubscription = {
|
|
|
163
204
|
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
|
|
164
205
|
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
|
|
165
206
|
processedAndPaidUntil: damlTypes.Time;
|
|
207
|
+
lockedAmuletCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.LockedAmulet>;
|
|
166
208
|
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats;
|
|
167
209
|
};
|
|
168
210
|
|
|
@@ -170,14 +212,17 @@ export declare interface ActiveSubscriptionInterface {
|
|
|
170
212
|
ActiveSubscription_ProcessFreeTrial: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessFreeTrial, Fairmint_Subscriptions_Types_ProcessFreeTrialResult.ProcessFreeTrialResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
171
213
|
ActiveSubscription_ProcessPayment: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessPayment, Fairmint_Subscriptions_Types_PaymentResult.ProcessPaymentResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
172
214
|
ActiveSubscription_ProposeChanges: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProposeChanges, damlTypes.ContractId<SubscriptionChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
173
|
-
ActiveSubscription_Cancel: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Cancel, damlTypes.Optional<damlTypes.ContractId<ActiveSubscription>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
174
|
-
ActiveSubscription_Refund: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Refund, pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
175
|
-
|
|
215
|
+
ActiveSubscription_Cancel: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Cancel, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.Optional<damlTypes.ContractId<ActiveSubscription>>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
216
|
+
ActiveSubscription_Refund: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Refund, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
217
|
+
ActiveSubscription_WithdrawFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_WithdrawFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
218
|
+
ActiveSubscription_ReplaceLockedAmulet: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ReplaceLockedAmulet, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
219
|
+
ActiveSubscription_ArchiveInactiveSubscription: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ArchiveInactiveSubscription, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
220
|
+
ActiveSubscription_AddFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_AddFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
176
221
|
ActiveSubscription_ChangeParty: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ChangeParty, damlTypes.ContractId<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
177
222
|
Archive: damlTypes.Choice<ActiveSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
178
223
|
}
|
|
179
224
|
export declare const ActiveSubscription:
|
|
180
|
-
damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-
|
|
225
|
+
damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v03:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
|
|
181
226
|
damlTypes.ToInterface<ActiveSubscription, never> &
|
|
182
227
|
ActiveSubscriptionInterface;
|
|
183
228
|
|
|
@@ -13,6 +13,7 @@ var damlTypes = require('@daml/types');
|
|
|
13
13
|
var damlLedger = require('@daml/ledger');
|
|
14
14
|
|
|
15
15
|
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
|
|
16
|
+
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
16
17
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
18
|
|
|
18
19
|
var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
|
|
@@ -67,7 +68,7 @@ exports.SubscriptionChangeProposal_Approve = {
|
|
|
67
68
|
|
|
68
69
|
exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
69
70
|
{
|
|
70
|
-
templateId: '#Subscriptions-
|
|
71
|
+
templateId: '#Subscriptions-v03:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal',
|
|
71
72
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
72
73
|
keyEncode: function () { throw 'EncodeError'; },
|
|
73
74
|
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, }); }),
|
|
@@ -117,7 +118,7 @@ exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
|
117
118
|
);
|
|
118
119
|
|
|
119
120
|
|
|
120
|
-
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['
|
|
121
|
+
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4', '#Subscriptions-v03']);
|
|
121
122
|
|
|
122
123
|
|
|
123
124
|
|
|
@@ -136,10 +137,54 @@ exports.ActiveSubscription_ChangeParty = {
|
|
|
136
137
|
|
|
137
138
|
|
|
138
139
|
exports.ActiveSubscription_ArchiveInactiveSubscription = {
|
|
139
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
140
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
140
141
|
encode: function (__typed__) {
|
|
141
142
|
return {
|
|
142
143
|
actor: damlTypes.Party.encode(__typed__.actor),
|
|
144
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
,
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
exports.ActiveSubscription_ReplaceLockedAmulet = {
|
|
153
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({newAmulets: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
154
|
+
encode: function (__typed__) {
|
|
155
|
+
return {
|
|
156
|
+
newAmulets: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.newAmulets),
|
|
157
|
+
amountToLock: damlTypes.Numeric(10).encode(__typed__.amountToLock),
|
|
158
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
,
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
exports.ActiveSubscription_WithdrawFunds = {
|
|
167
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amountToKeepLocked: damlTypes.Numeric(10).decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
168
|
+
encode: function (__typed__) {
|
|
169
|
+
return {
|
|
170
|
+
amountToKeepLocked: damlTypes.Numeric(10).encode(__typed__.amountToKeepLocked),
|
|
171
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
,
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
exports.ActiveSubscription_AddFunds = {
|
|
180
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
181
|
+
encode: function (__typed__) {
|
|
182
|
+
return {
|
|
183
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
184
|
+
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.amuletInputs),
|
|
185
|
+
amountToLock: damlTypes.Numeric(10).encode(__typed__.amountToLock),
|
|
186
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
187
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
143
188
|
};
|
|
144
189
|
}
|
|
145
190
|
,
|
|
@@ -148,11 +193,12 @@ exports.ActiveSubscription_ArchiveInactiveSubscription = {
|
|
|
148
193
|
|
|
149
194
|
|
|
150
195
|
exports.ActiveSubscription_Refund = {
|
|
151
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.
|
|
196
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
152
197
|
encode: function (__typed__) {
|
|
153
198
|
return {
|
|
154
199
|
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
155
|
-
|
|
200
|
+
recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.recipientAmuletInputs),
|
|
201
|
+
recipientFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.recipientFeaturedAppRight),
|
|
156
202
|
};
|
|
157
203
|
}
|
|
158
204
|
,
|
|
@@ -161,12 +207,13 @@ exports.ActiveSubscription_Refund = {
|
|
|
161
207
|
|
|
162
208
|
|
|
163
209
|
exports.ActiveSubscription_Cancel = {
|
|
164
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, disregardAvailablePaidPeriod: damlTypes.Bool.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
210
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, disregardAvailablePaidPeriod: damlTypes.Bool.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
165
211
|
encode: function (__typed__) {
|
|
166
212
|
return {
|
|
167
213
|
actor: damlTypes.Party.encode(__typed__.actor),
|
|
168
214
|
disregardAvailablePaidPeriod: damlTypes.Bool.encode(__typed__.disregardAvailablePaidPeriod),
|
|
169
215
|
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
216
|
+
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
170
217
|
};
|
|
171
218
|
}
|
|
172
219
|
,
|
|
@@ -216,15 +263,16 @@ exports.ActiveSubscription_ProcessFreeTrial = {
|
|
|
216
263
|
|
|
217
264
|
exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
218
265
|
{
|
|
219
|
-
templateId: '#Subscriptions-
|
|
266
|
+
templateId: '#Subscriptions-v03:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription',
|
|
220
267
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
221
268
|
keyEncode: function () { throw 'EncodeError'; },
|
|
222
|
-
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, }); }),
|
|
269
|
+
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, }); }),
|
|
223
270
|
encode: function (__typed__) {
|
|
224
271
|
return {
|
|
225
272
|
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.encode(__typed__.subscription),
|
|
226
273
|
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
227
274
|
processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
|
|
275
|
+
lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).encode(__typed__.lockedAmuletCid),
|
|
228
276
|
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.encode(__typed__.stats),
|
|
229
277
|
};
|
|
230
278
|
}
|
|
@@ -258,24 +306,48 @@ exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
|
258
306
|
choiceName: 'ActiveSubscription_Cancel',
|
|
259
307
|
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_Cancel.decoder; }),
|
|
260
308
|
argumentEncode: function (__typed__) { return exports.ActiveSubscription_Cancel.encode(__typed__); },
|
|
261
|
-
resultDecoder: damlTypes.lazyMemo(function () { return
|
|
262
|
-
resultEncode: function (__typed__) { return damlTypes.Optional(damlTypes.ContractId(exports.ActiveSubscription)).encode(__typed__); },
|
|
309
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActiveSubscription)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
310
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActiveSubscription)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
263
311
|
},
|
|
264
312
|
ActiveSubscription_Refund: {
|
|
265
313
|
template: function () { return exports.ActiveSubscription; },
|
|
266
314
|
choiceName: 'ActiveSubscription_Refund',
|
|
267
315
|
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_Refund.decoder; }),
|
|
268
316
|
argumentEncode: function (__typed__) { return exports.ActiveSubscription_Refund.encode(__typed__); },
|
|
269
|
-
resultDecoder: damlTypes.lazyMemo(function () { return
|
|
270
|
-
resultEncode: function (__typed__) { return
|
|
317
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
|
|
318
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
|
|
319
|
+
},
|
|
320
|
+
ActiveSubscription_WithdrawFunds: {
|
|
321
|
+
template: function () { return exports.ActiveSubscription; },
|
|
322
|
+
choiceName: 'ActiveSubscription_WithdrawFunds',
|
|
323
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_WithdrawFunds.decoder; }),
|
|
324
|
+
argumentEncode: function (__typed__) { return exports.ActiveSubscription_WithdrawFunds.encode(__typed__); },
|
|
325
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
|
|
326
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
|
|
327
|
+
},
|
|
328
|
+
ActiveSubscription_ReplaceLockedAmulet: {
|
|
329
|
+
template: function () { return exports.ActiveSubscription; },
|
|
330
|
+
choiceName: 'ActiveSubscription_ReplaceLockedAmulet',
|
|
331
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ReplaceLockedAmulet.decoder; }),
|
|
332
|
+
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ReplaceLockedAmulet.encode(__typed__); },
|
|
333
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
334
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
271
335
|
},
|
|
272
336
|
ActiveSubscription_ArchiveInactiveSubscription: {
|
|
273
337
|
template: function () { return exports.ActiveSubscription; },
|
|
274
338
|
choiceName: 'ActiveSubscription_ArchiveInactiveSubscription',
|
|
275
339
|
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ArchiveInactiveSubscription.decoder; }),
|
|
276
340
|
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ArchiveInactiveSubscription.encode(__typed__); },
|
|
277
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.
|
|
278
|
-
resultEncode: function (__typed__) { return damlTypes.
|
|
341
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).decoder; }),
|
|
342
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).encode(__typed__); },
|
|
343
|
+
},
|
|
344
|
+
ActiveSubscription_AddFunds: {
|
|
345
|
+
template: function () { return exports.ActiveSubscription; },
|
|
346
|
+
choiceName: 'ActiveSubscription_AddFunds',
|
|
347
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_AddFunds.decoder; }),
|
|
348
|
+
argumentEncode: function (__typed__) { return exports.ActiveSubscription_AddFunds.encode(__typed__); },
|
|
349
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
350
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
279
351
|
},
|
|
280
352
|
ActiveSubscription_ChangeParty: {
|
|
281
353
|
template: function () { return exports.ActiveSubscription; },
|
|
@@ -298,5 +370,5 @@ exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
|
298
370
|
);
|
|
299
371
|
|
|
300
372
|
|
|
301
|
-
damlTypes.registerTemplate(exports.ActiveSubscription, ['
|
|
373
|
+
damlTypes.registerTemplate(exports.ActiveSubscription, ['1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4', '#Subscriptions-v03']);
|
|
302
374
|
|
|
@@ -72,7 +72,7 @@ export declare interface PartyMigrationProposalInterface {
|
|
|
72
72
|
Archive: damlTypes.Choice<PartyMigrationProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
73
73
|
}
|
|
74
74
|
export declare const PartyMigrationProposal:
|
|
75
|
-
damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-
|
|
75
|
+
damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-v03:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal'> &
|
|
76
76
|
damlTypes.ToInterface<PartyMigrationProposal, never> &
|
|
77
77
|
PartyMigrationProposalInterface;
|
|
78
78
|
|
|
@@ -72,7 +72,7 @@ exports.PartyMigrationProposal_Approve = {
|
|
|
72
72
|
|
|
73
73
|
exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
74
74
|
{
|
|
75
|
-
templateId: '#Subscriptions-
|
|
75
|
+
templateId: '#Subscriptions-v03:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal',
|
|
76
76
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
77
77
|
keyEncode: function () { throw 'EncodeError'; },
|
|
78
78
|
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, }); }),
|
|
@@ -131,5 +131,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['
|
|
134
|
+
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4', '#Subscriptions-v03']);
|
|
135
135
|
|
|
@@ -7,12 +7,14 @@ import * as damlTypes from '@daml/types';
|
|
|
7
7
|
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
8
|
import * as damlLedger from '@daml/ledger';
|
|
9
9
|
|
|
10
|
+
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
|
|
10
11
|
import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
11
12
|
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
13
|
|
|
13
14
|
import * as Fairmint_Subscriptions_ActiveSubscription from '../../../Fairmint/Subscriptions/ActiveSubscription/module';
|
|
14
15
|
import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
|
|
15
16
|
import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subscriptions/Types/PartyRole/module';
|
|
17
|
+
import * as Fairmint_Subscriptions_Types_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
|
|
16
18
|
import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
|
|
17
19
|
import * as Fairmint_Subscriptions_Types_SubscriptionProposal from '../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module';
|
|
18
20
|
import * as Fairmint_Subscriptions_Types_SubscriptionProposalChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module';
|
|
@@ -54,6 +56,9 @@ export declare const ProposedSubscription_EditSubscriptionProposal:
|
|
|
54
56
|
|
|
55
57
|
export declare type ProposedSubscription_Approve = {
|
|
56
58
|
actor: damlTypes.Party;
|
|
59
|
+
subscriberAmulets: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
60
|
+
amountToLock: damlTypes.Numeric;
|
|
61
|
+
paymentContext: damlTypes.Optional<Fairmint_Subscriptions_Types_PaymentContext.PaymentContext>;
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
export declare const ProposedSubscription_Approve:
|
|
@@ -71,12 +76,12 @@ export declare type ProposedSubscription = {
|
|
|
71
76
|
export declare interface ProposedSubscriptionInterface {
|
|
72
77
|
Archive: damlTypes.Choice<ProposedSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
73
78
|
ProposedSubscription_ChangeParty: damlTypes.Choice<ProposedSubscription, ProposedSubscription_ChangeParty, damlTypes.ContractId<ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
74
|
-
ProposedSubscription_Approve: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Approve, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either<damlTypes.ContractId<ProposedSubscription>, damlTypes.ContractId<Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription
|
|
79
|
+
ProposedSubscription_Approve: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Approve, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either<damlTypes.ContractId<ProposedSubscription>, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
75
80
|
ProposedSubscription_EditSubscriptionProposal: damlTypes.Choice<ProposedSubscription, ProposedSubscription_EditSubscriptionProposal, damlTypes.ContractId<ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
76
81
|
ProposedSubscription_Withdraw: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Withdraw, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
|
|
77
82
|
}
|
|
78
83
|
export declare const ProposedSubscription:
|
|
79
|
-
damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-
|
|
84
|
+
damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-v03:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription'> &
|
|
80
85
|
damlTypes.ToInterface<ProposedSubscription, never> &
|
|
81
86
|
ProposedSubscriptionInterface;
|
|
82
87
|
|
|
@@ -12,12 +12,14 @@ var damlTypes = require('@daml/types');
|
|
|
12
12
|
/* eslint-disable-next-line no-unused-vars */
|
|
13
13
|
var damlLedger = require('@daml/ledger');
|
|
14
14
|
|
|
15
|
+
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
|
|
15
16
|
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
16
17
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
18
|
|
|
18
19
|
var Fairmint_Subscriptions_ActiveSubscription = require('../../../Fairmint/Subscriptions/ActiveSubscription/module');
|
|
19
20
|
var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
|
|
20
21
|
var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscriptions/Types/PartyRole/module');
|
|
22
|
+
var Fairmint_Subscriptions_Types_PaymentContext = require('../../../Fairmint/Subscriptions/Types/PaymentContext/module');
|
|
21
23
|
var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
22
24
|
var Fairmint_Subscriptions_Types_SubscriptionProposal = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module');
|
|
23
25
|
var Fairmint_Subscriptions_Types_SubscriptionProposalChanges = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module');
|
|
@@ -65,10 +67,13 @@ exports.ProposedSubscription_EditSubscriptionProposal = {
|
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
exports.ProposedSubscription_Approve = {
|
|
68
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, subscriberAmulets: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, paymentContext: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_PaymentContext.PaymentContext).decoder), }); }),
|
|
69
71
|
encode: function (__typed__) {
|
|
70
72
|
return {
|
|
71
73
|
actor: damlTypes.Party.encode(__typed__.actor),
|
|
74
|
+
subscriberAmulets: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.subscriberAmulets),
|
|
75
|
+
amountToLock: damlTypes.Numeric(10).encode(__typed__.amountToLock),
|
|
76
|
+
paymentContext: damlTypes.Optional(Fairmint_Subscriptions_Types_PaymentContext.PaymentContext).encode(__typed__.paymentContext),
|
|
72
77
|
};
|
|
73
78
|
}
|
|
74
79
|
,
|
|
@@ -78,7 +83,7 @@ exports.ProposedSubscription_Approve = {
|
|
|
78
83
|
|
|
79
84
|
exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
80
85
|
{
|
|
81
|
-
templateId: '#Subscriptions-
|
|
86
|
+
templateId: '#Subscriptions-v03:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription',
|
|
82
87
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
83
88
|
keyEncode: function () { throw 'EncodeError'; },
|
|
84
89
|
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, }); }),
|
|
@@ -111,8 +116,8 @@ exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
|
111
116
|
choiceName: 'ProposedSubscription_Approve',
|
|
112
117
|
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_Approve.decoder; }),
|
|
113
118
|
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__); },
|
|
119
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(exports.ProposedSubscription), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).decoder; }),
|
|
120
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(exports.ProposedSubscription), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).encode(__typed__); },
|
|
116
121
|
},
|
|
117
122
|
ProposedSubscription_EditSubscriptionProposal: {
|
|
118
123
|
template: function () { return exports.ProposedSubscription; },
|
|
@@ -135,5 +140,5 @@ exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
|
135
140
|
);
|
|
136
141
|
|
|
137
142
|
|
|
138
|
-
damlTypes.registerTemplate(exports.ProposedSubscription, ['
|
|
143
|
+
damlTypes.registerTemplate(exports.ProposedSubscription, ['1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4', '#Subscriptions-v03']);
|
|
139
144
|
|
|
@@ -33,7 +33,7 @@ export declare interface SubscriptionFactoryInterface {
|
|
|
33
33
|
SubscriptionFactory_CreateProposedSubscription: damlTypes.Choice<SubscriptionFactory, SubscriptionFactory_CreateProposedSubscription, damlTypes.ContractId<Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
|
|
34
34
|
}
|
|
35
35
|
export declare const SubscriptionFactory:
|
|
36
|
-
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-
|
|
36
|
+
damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-v03:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory'> &
|
|
37
37
|
damlTypes.ToInterface<SubscriptionFactory, never> &
|
|
38
38
|
SubscriptionFactoryInterface;
|
|
39
39
|
|
|
@@ -34,7 +34,7 @@ exports.SubscriptionFactory_CreateProposedSubscription = {
|
|
|
34
34
|
|
|
35
35
|
exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
36
36
|
{
|
|
37
|
-
templateId: '#Subscriptions-
|
|
37
|
+
templateId: '#Subscriptions-v03:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory',
|
|
38
38
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
39
39
|
keyEncode: function () { throw 'EncodeError'; },
|
|
40
40
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, }); }),
|
|
@@ -65,5 +65,5 @@ exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
damlTypes.registerTemplate(exports.SubscriptionFactory, ['
|
|
68
|
+
damlTypes.registerTemplate(exports.SubscriptionFactory, ['1b636591fc0c3337534c023944db4202f56c9ba4c2d02d4413fe6c91f67c02e4', '#Subscriptions-v03']);
|
|
69
69
|
|
|
@@ -10,7 +10,6 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../../..';
|
|
11
11
|
|
|
12
12
|
export declare type PaymentContext = {
|
|
13
|
-
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
14
13
|
amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
|
|
15
14
|
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
16
15
|
};
|
|
@@ -16,12 +16,11 @@ var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = requir
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
exports.PaymentContext = {
|
|
19
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
19
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, }); }),
|
|
20
20
|
encode: function (__typed__) {
|
|
21
21
|
return {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
22
|
+
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
23
|
+
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
25
24
|
};
|
|
26
25
|
}
|
|
27
26
|
,
|
|
@@ -17,13 +17,13 @@ var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = requir
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.ProcessPaymentResult = function (t) { return ({
|
|
20
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(t).decoder, recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.
|
|
20
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(t).decoder, recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult.decoder, processorTransferResult: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult).decoder), processorActivityMarkerCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppActivityMarker)).decoder), }); }),
|
|
21
21
|
encode: function (__typed__) {
|
|
22
22
|
return {
|
|
23
23
|
subscriptionCid: damlTypes.ContractId(t).encode(__typed__.subscriptionCid),
|
|
24
|
-
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.
|
|
25
|
-
processorTransferResult: damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.
|
|
26
|
-
processorActivityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.
|
|
24
|
+
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult.encode(__typed__.recipientTransferResult),
|
|
25
|
+
processorTransferResult: damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult).encode(__typed__.processorTransferResult),
|
|
26
|
+
processorActivityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppActivityMarker)).encode(__typed__.processorActivityMarkerCid),
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
,
|