@fairmint/open-captable-protocol-daml-js 0.2.35 → 0.2.37
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/paymentStreams-factory-contract-id.json +22 -0
- package/generated/{subscriptions-factory-contract-id.json.d.ts → paymentStreams-factory-contract-id.json.d.ts} +2 -2
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.d.ts +225 -0
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +354 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.d.ts +18 -18
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.js +27 -27
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.d.ts +52 -0
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +74 -0
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.d.ts +103 -0
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +161 -0
- package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.d.ts +25 -0
- package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.js +32 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.d.ts +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.js +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.js +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.d.ts +1 -1
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.d.ts +4 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.js +4 -2
- package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.d.ts +8 -8
- package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.js +6 -6
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.d.ts +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.js +2 -2
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.d.ts +10 -10
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.js +8 -8
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/module.d.ts +11 -11
- package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposal/module.js +42 -0
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/module.d.ts +11 -11
- package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module.js +42 -0
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.d.ts +6 -6
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.js +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.d.ts +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.d.ts +1 -1
- package/lib/CantonPayments/PaymentStream/Types/index.d.ts +30 -0
- package/lib/CantonPayments/PaymentStream/Types/index.js +37 -0
- package/lib/CantonPayments/PaymentStream/index.d.ts +10 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/index.js +6 -6
- package/lib/CantonPayments/index.d.ts +2 -0
- package/lib/CantonPayments/index.js +9 -0
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
- package/lib/Fairmint/index.d.ts +0 -1
- package/lib/Fairmint/index.js +0 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -0
- package/package.json +12 -12
- package/generated/subscriptions-factory-contract-id.json +0 -22
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +0 -224
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +0 -353
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +0 -103
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +0 -161
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +0 -52
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +0 -74
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +0 -25
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +0 -32
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +0 -42
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +0 -42
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -30
- package/lib/Fairmint/Subscriptions/Types/index.js +0 -37
- package/lib/Fairmint/Subscriptions/index.d.ts +0 -10
- /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/PartyMigrationProposal.daml
|
|
2
2
|
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -9,10 +9,10 @@ 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
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
12
|
+
import * as CantonPayments_PaymentStream_ActivePaymentStream from '../../../CantonPayments/PaymentStream/ActivePaymentStream/module';
|
|
13
|
+
import * as CantonPayments_PaymentStream_ProposedPaymentStream from '../../../CantonPayments/PaymentStream/ProposedPaymentStream/module';
|
|
14
|
+
import * as CantonPayments_PaymentStream_Types_PartyRole from '../../../CantonPayments/PaymentStream/Types/PartyRole/module';
|
|
15
|
+
import * as CantonPayments_PaymentStream_Types_PaymentContext from '../../../CantonPayments/PaymentStream/Types/PaymentContext/module';
|
|
16
16
|
|
|
17
17
|
export declare type PartyMigrationProposal_Archive = {
|
|
18
18
|
actor: damlTypes.Party;
|
|
@@ -25,25 +25,25 @@ export declare const PartyMigrationProposal_Archive:
|
|
|
25
25
|
;
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
export declare type
|
|
28
|
+
export declare type PartyMigrationProposal_MigrateProposedPaymentStream = {
|
|
29
29
|
actor: damlTypes.Party;
|
|
30
|
-
|
|
30
|
+
proposedPaymentStreamCid: damlTypes.ContractId<CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream>;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export declare const
|
|
34
|
-
damlTypes.Serializable<
|
|
33
|
+
export declare const PartyMigrationProposal_MigrateProposedPaymentStream:
|
|
34
|
+
damlTypes.Serializable<PartyMigrationProposal_MigrateProposedPaymentStream> & {
|
|
35
35
|
}
|
|
36
36
|
;
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
export declare type
|
|
39
|
+
export declare type PartyMigrationProposal_MigrateActivePaymentStream = {
|
|
40
40
|
actor: damlTypes.Party;
|
|
41
|
-
|
|
42
|
-
changePartyPaymentContext:
|
|
41
|
+
activePaymentStreamCid: damlTypes.ContractId<CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream>;
|
|
42
|
+
changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
export declare const
|
|
46
|
-
damlTypes.Serializable<
|
|
45
|
+
export declare const PartyMigrationProposal_MigrateActivePaymentStream:
|
|
46
|
+
damlTypes.Serializable<PartyMigrationProposal_MigrateActivePaymentStream> & {
|
|
47
47
|
}
|
|
48
48
|
;
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export declare const PartyMigrationProposal_Approve:
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
export declare type PartyMigrationProposal = {
|
|
62
|
-
partyType:
|
|
62
|
+
partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole;
|
|
63
63
|
oldParty: damlTypes.Party;
|
|
64
64
|
newParty: damlTypes.Party;
|
|
65
65
|
oldPartyApproved: boolean;
|
|
@@ -68,13 +68,13 @@ export declare type PartyMigrationProposal = {
|
|
|
68
68
|
|
|
69
69
|
export declare interface PartyMigrationProposalInterface {
|
|
70
70
|
PartyMigrationProposal_Approve: damlTypes.Choice<PartyMigrationProposal, PartyMigrationProposal_Approve, damlTypes.ContractId<PartyMigrationProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
PartyMigrationProposal_MigrateActivePaymentStream: damlTypes.Choice<PartyMigrationProposal, PartyMigrationProposal_MigrateActivePaymentStream, damlTypes.ContractId<CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
72
|
+
PartyMigrationProposal_MigrateProposedPaymentStream: damlTypes.Choice<PartyMigrationProposal, PartyMigrationProposal_MigrateProposedPaymentStream, damlTypes.ContractId<CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
73
73
|
PartyMigrationProposal_Archive: damlTypes.Choice<PartyMigrationProposal, PartyMigrationProposal_Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
|
|
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, '#
|
|
77
|
+
damlTypes.Template<PartyMigrationProposal, undefined, '#CantonPayments:CantonPayments.PaymentStream.PartyMigrationProposal:PartyMigrationProposal'> &
|
|
78
78
|
damlTypes.ToInterface<PartyMigrationProposal, never> &
|
|
79
79
|
PartyMigrationProposalInterface;
|
|
80
80
|
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.js
RENAMED
|
@@ -14,10 +14,10 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
17
|
+
var CantonPayments_PaymentStream_ActivePaymentStream = require('../../../CantonPayments/PaymentStream/ActivePaymentStream/module');
|
|
18
|
+
var CantonPayments_PaymentStream_ProposedPaymentStream = require('../../../CantonPayments/PaymentStream/ProposedPaymentStream/module');
|
|
19
|
+
var CantonPayments_PaymentStream_Types_PartyRole = require('../../../CantonPayments/PaymentStream/Types/PartyRole/module');
|
|
20
|
+
var CantonPayments_PaymentStream_Types_PaymentContext = require('../../../CantonPayments/PaymentStream/Types/PaymentContext/module');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
exports.PartyMigrationProposal_Archive = {
|
|
@@ -33,12 +33,12 @@ exports.PartyMigrationProposal_Archive = {
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
exports.
|
|
37
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder,
|
|
36
|
+
exports.PartyMigrationProposal_MigrateProposedPaymentStream = {
|
|
37
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, proposedPaymentStreamCid: damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream).decoder, }); }),
|
|
38
38
|
encode: function (__typed__) {
|
|
39
39
|
return {
|
|
40
40
|
actor: damlTypes.Party.encode(__typed__.actor),
|
|
41
|
-
|
|
41
|
+
proposedPaymentStreamCid: damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream).encode(__typed__.proposedPaymentStreamCid),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
,
|
|
@@ -46,13 +46,13 @@ exports.PartyMigrationProposal_MigrateProposedSubscription = {
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.
|
|
50
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder,
|
|
49
|
+
exports.PartyMigrationProposal_MigrateActivePaymentStream = {
|
|
50
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, activePaymentStreamCid: damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream).decoder, changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
51
51
|
encode: function (__typed__) {
|
|
52
52
|
return {
|
|
53
53
|
actor: damlTypes.Party.encode(__typed__.actor),
|
|
54
|
-
|
|
55
|
-
changePartyPaymentContext:
|
|
54
|
+
activePaymentStreamCid: damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream).encode(__typed__.activePaymentStreamCid),
|
|
55
|
+
changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.changePartyPaymentContext),
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
,
|
|
@@ -74,13 +74,13 @@ exports.PartyMigrationProposal_Approve = {
|
|
|
74
74
|
|
|
75
75
|
exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
76
76
|
{
|
|
77
|
-
templateId: '#
|
|
77
|
+
templateId: '#CantonPayments:CantonPayments.PaymentStream.PartyMigrationProposal:PartyMigrationProposal',
|
|
78
78
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
79
79
|
keyEncode: function () { throw 'EncodeError'; },
|
|
80
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType:
|
|
80
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, oldPartyApproved: damlTypes.Bool.decoder, newPartyApproved: damlTypes.Bool.decoder, }); }),
|
|
81
81
|
encode: function (__typed__) {
|
|
82
82
|
return {
|
|
83
|
-
partyType:
|
|
83
|
+
partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.encode(__typed__.partyType),
|
|
84
84
|
oldParty: damlTypes.Party.encode(__typed__.oldParty),
|
|
85
85
|
newParty: damlTypes.Party.encode(__typed__.newParty),
|
|
86
86
|
oldPartyApproved: damlTypes.Bool.encode(__typed__.oldPartyApproved),
|
|
@@ -96,21 +96,21 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
96
96
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PartyMigrationProposal).decoder; }),
|
|
97
97
|
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PartyMigrationProposal).encode(__typed__); },
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
PartyMigrationProposal_MigrateActivePaymentStream: {
|
|
100
100
|
template: function () { return exports.PartyMigrationProposal; },
|
|
101
|
-
choiceName: '
|
|
102
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
103
|
-
argumentEncode: function (__typed__) { return exports.
|
|
104
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(
|
|
105
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(
|
|
101
|
+
choiceName: 'PartyMigrationProposal_MigrateActivePaymentStream',
|
|
102
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.PartyMigrationProposal_MigrateActivePaymentStream.decoder; }),
|
|
103
|
+
argumentEncode: function (__typed__) { return exports.PartyMigrationProposal_MigrateActivePaymentStream.encode(__typed__); },
|
|
104
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream).decoder; }),
|
|
105
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream).encode(__typed__); },
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
PartyMigrationProposal_MigrateProposedPaymentStream: {
|
|
108
108
|
template: function () { return exports.PartyMigrationProposal; },
|
|
109
|
-
choiceName: '
|
|
110
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
111
|
-
argumentEncode: function (__typed__) { return exports.
|
|
112
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(
|
|
113
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(
|
|
109
|
+
choiceName: 'PartyMigrationProposal_MigrateProposedPaymentStream',
|
|
110
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.PartyMigrationProposal_MigrateProposedPaymentStream.decoder; }),
|
|
111
|
+
argumentEncode: function (__typed__) { return exports.PartyMigrationProposal_MigrateProposedPaymentStream.encode(__typed__); },
|
|
112
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream).decoder; }),
|
|
113
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream).encode(__typed__); },
|
|
114
114
|
},
|
|
115
115
|
PartyMigrationProposal_Archive: {
|
|
116
116
|
template: function () { return exports.PartyMigrationProposal; },
|
|
@@ -133,5 +133,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
133
133
|
);
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['
|
|
136
|
+
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c', '#CantonPayments']);
|
|
137
137
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/PaymentStreamFactory.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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
12
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
13
|
+
|
|
14
|
+
import * as CantonPayments_PaymentStream_ActivePaymentStream from '../../../CantonPayments/PaymentStream/ActivePaymentStream/module';
|
|
15
|
+
import * as CantonPayments_PaymentStream_ProposedPaymentStream from '../../../CantonPayments/PaymentStream/ProposedPaymentStream/module';
|
|
16
|
+
import * as CantonPayments_PaymentStream_Types_LockFundsInput from '../../../CantonPayments/PaymentStream/Types/LockFundsInput/module';
|
|
17
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamProposal from '../../../CantonPayments/PaymentStream/Types/PaymentStreamProposal/module';
|
|
18
|
+
import * as CantonPayments_PaymentStream_Types_ProcessorContext from '../../../CantonPayments/PaymentStream/Types/ProcessorContext/module';
|
|
19
|
+
|
|
20
|
+
export declare type PaymentStreamFactory_CreatePaymentStreamProposal = {
|
|
21
|
+
actor: damlTypes.Party;
|
|
22
|
+
paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal;
|
|
23
|
+
lockFundsInput: damlTypes.Optional<CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export declare const PaymentStreamFactory_CreatePaymentStreamProposal:
|
|
27
|
+
damlTypes.Serializable<PaymentStreamFactory_CreatePaymentStreamProposal> & {
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export declare type PaymentStreamFactory = {
|
|
33
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export declare interface PaymentStreamFactoryInterface {
|
|
37
|
+
Archive: damlTypes.Choice<PaymentStreamFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamFactory, undefined>>;
|
|
38
|
+
PaymentStreamFactory_CreatePaymentStreamProposal: damlTypes.Choice<PaymentStreamFactory, PaymentStreamFactory_CreatePaymentStreamProposal, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either<damlTypes.ContractId<CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream>, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PaymentStreamFactory, undefined>>;
|
|
39
|
+
}
|
|
40
|
+
export declare const PaymentStreamFactory:
|
|
41
|
+
damlTypes.Template<PaymentStreamFactory, undefined, '#CantonPayments:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory'> &
|
|
42
|
+
damlTypes.ToInterface<PaymentStreamFactory, never> &
|
|
43
|
+
PaymentStreamFactoryInterface;
|
|
44
|
+
|
|
45
|
+
export declare namespace PaymentStreamFactory {
|
|
46
|
+
export type CreateEvent = damlLedger.CreateEvent<PaymentStreamFactory, undefined, typeof PaymentStreamFactory.templateId>
|
|
47
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<PaymentStreamFactory, typeof PaymentStreamFactory.templateId>
|
|
48
|
+
export type Event = damlLedger.Event<PaymentStreamFactory, undefined, typeof PaymentStreamFactory.templateId>
|
|
49
|
+
export type QueryResult = damlLedger.QueryResult<PaymentStreamFactory, undefined, typeof PaymentStreamFactory.templateId>
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
17
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
18
|
+
|
|
19
|
+
var CantonPayments_PaymentStream_ActivePaymentStream = require('../../../CantonPayments/PaymentStream/ActivePaymentStream/module');
|
|
20
|
+
var CantonPayments_PaymentStream_ProposedPaymentStream = require('../../../CantonPayments/PaymentStream/ProposedPaymentStream/module');
|
|
21
|
+
var CantonPayments_PaymentStream_Types_LockFundsInput = require('../../../CantonPayments/PaymentStream/Types/LockFundsInput/module');
|
|
22
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamProposal = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamProposal/module');
|
|
23
|
+
var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.PaymentStreamFactory_CreatePaymentStreamProposal = {
|
|
27
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal.decoder, lockFundsInput: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput).decoder), }); }),
|
|
28
|
+
encode: function (__typed__) {
|
|
29
|
+
return {
|
|
30
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
31
|
+
paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal.encode(__typed__.paymentStreamProposal),
|
|
32
|
+
lockFundsInput: damlTypes.Optional(CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput).encode(__typed__.lockFundsInput),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.PaymentStreamFactory = damlTypes.assembleTemplate(
|
|
41
|
+
{
|
|
42
|
+
templateId: '#CantonPayments:CantonPayments.PaymentStream.PaymentStreamFactory:PaymentStreamFactory',
|
|
43
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
44
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
45
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, }); }),
|
|
46
|
+
encode: function (__typed__) {
|
|
47
|
+
return {
|
|
48
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
,
|
|
52
|
+
Archive: {
|
|
53
|
+
template: function () { return exports.PaymentStreamFactory; },
|
|
54
|
+
choiceName: 'Archive',
|
|
55
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
56
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
57
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
58
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
59
|
+
},
|
|
60
|
+
PaymentStreamFactory_CreatePaymentStreamProposal: {
|
|
61
|
+
template: function () { return exports.PaymentStreamFactory; },
|
|
62
|
+
choiceName: 'PaymentStreamFactory_CreatePaymentStreamProposal',
|
|
63
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamFactory_CreatePaymentStreamProposal.decoder; }),
|
|
64
|
+
argumentEncode: function (__typed__) { return exports.PaymentStreamFactory_CreatePaymentStreamProposal.encode(__typed__); },
|
|
65
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).decoder; }),
|
|
66
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(CantonPayments_PaymentStream_ProposedPaymentStream.ProposedPaymentStream), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).encode(__typed__); },
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
damlTypes.registerTemplate(exports.PaymentStreamFactory, ['1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c', '#CantonPayments']);
|
|
74
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/ProposedPaymentStream.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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
12
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
13
|
+
|
|
14
|
+
import * as CantonPayments_PaymentStream_ActivePaymentStream from '../../../CantonPayments/PaymentStream/ActivePaymentStream/module';
|
|
15
|
+
import * as CantonPayments_PaymentStream_Types_Approvals from '../../../CantonPayments/PaymentStream/Types/Approvals/module';
|
|
16
|
+
import * as CantonPayments_PaymentStream_Types_LockFundsInput from '../../../CantonPayments/PaymentStream/Types/LockFundsInput/module';
|
|
17
|
+
import * as CantonPayments_PaymentStream_Types_PartyRole from '../../../CantonPayments/PaymentStream/Types/PartyRole/module';
|
|
18
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamProposal from '../../../CantonPayments/PaymentStream/Types/PaymentStreamProposal/module';
|
|
19
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamProposalChanges from '../../../CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module';
|
|
20
|
+
import * as CantonPayments_PaymentStream_Types_ProcessorContext from '../../../CantonPayments/PaymentStream/Types/ProcessorContext/module';
|
|
21
|
+
|
|
22
|
+
export declare type ProposedPaymentStream_ChangeParty = {
|
|
23
|
+
partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole;
|
|
24
|
+
oldParty: damlTypes.Party;
|
|
25
|
+
newParty: damlTypes.Party;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare const ProposedPaymentStream_ChangeParty:
|
|
29
|
+
damlTypes.Serializable<ProposedPaymentStream_ChangeParty> & {
|
|
30
|
+
}
|
|
31
|
+
;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export declare type ProposedPaymentStream_Withdraw = {
|
|
35
|
+
actor: damlTypes.Party;
|
|
36
|
+
description: damlTypes.Optional<string>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export declare const ProposedPaymentStream_Withdraw:
|
|
40
|
+
damlTypes.Serializable<ProposedPaymentStream_Withdraw> & {
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export declare type ProposedPaymentStream_EditPaymentStreamProposal = {
|
|
46
|
+
actor: damlTypes.Party;
|
|
47
|
+
changes: CantonPayments_PaymentStream_Types_PaymentStreamProposalChanges.PaymentStreamProposalChanges;
|
|
48
|
+
description: damlTypes.Optional<string>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export declare const ProposedPaymentStream_EditPaymentStreamProposal:
|
|
52
|
+
damlTypes.Serializable<ProposedPaymentStream_EditPaymentStreamProposal> & {
|
|
53
|
+
}
|
|
54
|
+
;
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export declare type ProposedPaymentStream_StartPaymentStream = {
|
|
58
|
+
lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare const ProposedPaymentStream_StartPaymentStream:
|
|
62
|
+
damlTypes.Serializable<ProposedPaymentStream_StartPaymentStream> & {
|
|
63
|
+
}
|
|
64
|
+
;
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export declare type ProposedPaymentStream_Approve = {
|
|
68
|
+
actor: damlTypes.Party;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export declare const ProposedPaymentStream_Approve:
|
|
72
|
+
damlTypes.Serializable<ProposedPaymentStream_Approve> & {
|
|
73
|
+
}
|
|
74
|
+
;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export declare type ProposedPaymentStream = {
|
|
78
|
+
paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal;
|
|
79
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext;
|
|
80
|
+
approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export declare interface ProposedPaymentStreamInterface {
|
|
84
|
+
Archive: damlTypes.Choice<ProposedPaymentStream, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
85
|
+
ProposedPaymentStream_ChangeParty: damlTypes.Choice<ProposedPaymentStream, ProposedPaymentStream_ChangeParty, damlTypes.ContractId<ProposedPaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
86
|
+
ProposedPaymentStream_Approve: damlTypes.Choice<ProposedPaymentStream, ProposedPaymentStream_Approve, damlTypes.ContractId<ProposedPaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
87
|
+
ProposedPaymentStream_StartPaymentStream: damlTypes.Choice<ProposedPaymentStream, ProposedPaymentStream_StartPaymentStream, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
88
|
+
ProposedPaymentStream_EditPaymentStreamProposal: damlTypes.Choice<ProposedPaymentStream, ProposedPaymentStream_EditPaymentStreamProposal, damlTypes.ContractId<ProposedPaymentStream>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
89
|
+
ProposedPaymentStream_Withdraw: damlTypes.Choice<ProposedPaymentStream, ProposedPaymentStream_Withdraw, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedPaymentStream, undefined>>;
|
|
90
|
+
}
|
|
91
|
+
export declare const ProposedPaymentStream:
|
|
92
|
+
damlTypes.Template<ProposedPaymentStream, undefined, '#CantonPayments:CantonPayments.PaymentStream.ProposedPaymentStream:ProposedPaymentStream'> &
|
|
93
|
+
damlTypes.ToInterface<ProposedPaymentStream, never> &
|
|
94
|
+
ProposedPaymentStreamInterface;
|
|
95
|
+
|
|
96
|
+
export declare namespace ProposedPaymentStream {
|
|
97
|
+
export type CreateEvent = damlLedger.CreateEvent<ProposedPaymentStream, undefined, typeof ProposedPaymentStream.templateId>
|
|
98
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<ProposedPaymentStream, typeof ProposedPaymentStream.templateId>
|
|
99
|
+
export type Event = damlLedger.Event<ProposedPaymentStream, undefined, typeof ProposedPaymentStream.templateId>
|
|
100
|
+
export type QueryResult = damlLedger.QueryResult<ProposedPaymentStream, undefined, typeof ProposedPaymentStream.templateId>
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
17
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
18
|
+
|
|
19
|
+
var CantonPayments_PaymentStream_ActivePaymentStream = require('../../../CantonPayments/PaymentStream/ActivePaymentStream/module');
|
|
20
|
+
var CantonPayments_PaymentStream_Types_Approvals = require('../../../CantonPayments/PaymentStream/Types/Approvals/module');
|
|
21
|
+
var CantonPayments_PaymentStream_Types_LockFundsInput = require('../../../CantonPayments/PaymentStream/Types/LockFundsInput/module');
|
|
22
|
+
var CantonPayments_PaymentStream_Types_PartyRole = require('../../../CantonPayments/PaymentStream/Types/PartyRole/module');
|
|
23
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamProposal = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamProposal/module');
|
|
24
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamProposalChanges = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module');
|
|
25
|
+
var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.ProposedPaymentStream_ChangeParty = {
|
|
29
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, }); }),
|
|
30
|
+
encode: function (__typed__) {
|
|
31
|
+
return {
|
|
32
|
+
partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.encode(__typed__.partyType),
|
|
33
|
+
oldParty: damlTypes.Party.encode(__typed__.oldParty),
|
|
34
|
+
newParty: damlTypes.Party.encode(__typed__.newParty),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
exports.ProposedPaymentStream_Withdraw = {
|
|
43
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
44
|
+
encode: function (__typed__) {
|
|
45
|
+
return {
|
|
46
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
47
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.ProposedPaymentStream_EditPaymentStreamProposal = {
|
|
56
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, changes: CantonPayments_PaymentStream_Types_PaymentStreamProposalChanges.PaymentStreamProposalChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
57
|
+
encode: function (__typed__) {
|
|
58
|
+
return {
|
|
59
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
60
|
+
changes: CantonPayments_PaymentStream_Types_PaymentStreamProposalChanges.PaymentStreamProposalChanges.encode(__typed__.changes),
|
|
61
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.ProposedPaymentStream_StartPaymentStream = {
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.decoder, }); }),
|
|
71
|
+
encode: function (__typed__) {
|
|
72
|
+
return {
|
|
73
|
+
lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
,
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
exports.ProposedPaymentStream_Approve = {
|
|
82
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
83
|
+
encode: function (__typed__) {
|
|
84
|
+
return {
|
|
85
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.ProposedPaymentStream = damlTypes.assembleTemplate(
|
|
94
|
+
{
|
|
95
|
+
templateId: '#CantonPayments:CantonPayments.PaymentStream.ProposedPaymentStream:ProposedPaymentStream',
|
|
96
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
97
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
98
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.decoder, }); }),
|
|
99
|
+
encode: function (__typed__) {
|
|
100
|
+
return {
|
|
101
|
+
paymentStreamProposal: CantonPayments_PaymentStream_Types_PaymentStreamProposal.PaymentStreamProposal.encode(__typed__.paymentStreamProposal),
|
|
102
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
103
|
+
approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.encode(__typed__.approvals),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
,
|
|
107
|
+
Archive: {
|
|
108
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
109
|
+
choiceName: 'Archive',
|
|
110
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
111
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
112
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
113
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
114
|
+
},
|
|
115
|
+
ProposedPaymentStream_ChangeParty: {
|
|
116
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
117
|
+
choiceName: 'ProposedPaymentStream_ChangeParty',
|
|
118
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedPaymentStream_ChangeParty.decoder; }),
|
|
119
|
+
argumentEncode: function (__typed__) { return exports.ProposedPaymentStream_ChangeParty.encode(__typed__); },
|
|
120
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedPaymentStream).decoder; }),
|
|
121
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedPaymentStream).encode(__typed__); },
|
|
122
|
+
},
|
|
123
|
+
ProposedPaymentStream_Approve: {
|
|
124
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
125
|
+
choiceName: 'ProposedPaymentStream_Approve',
|
|
126
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedPaymentStream_Approve.decoder; }),
|
|
127
|
+
argumentEncode: function (__typed__) { return exports.ProposedPaymentStream_Approve.encode(__typed__); },
|
|
128
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedPaymentStream).decoder; }),
|
|
129
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedPaymentStream).encode(__typed__); },
|
|
130
|
+
},
|
|
131
|
+
ProposedPaymentStream_StartPaymentStream: {
|
|
132
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
133
|
+
choiceName: 'ProposedPaymentStream_StartPaymentStream',
|
|
134
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedPaymentStream_StartPaymentStream.decoder; }),
|
|
135
|
+
argumentEncode: function (__typed__) { return exports.ProposedPaymentStream_StartPaymentStream.encode(__typed__); },
|
|
136
|
+
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
137
|
+
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(CantonPayments_PaymentStream_ActivePaymentStream.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
138
|
+
},
|
|
139
|
+
ProposedPaymentStream_EditPaymentStreamProposal: {
|
|
140
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
141
|
+
choiceName: 'ProposedPaymentStream_EditPaymentStreamProposal',
|
|
142
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedPaymentStream_EditPaymentStreamProposal.decoder; }),
|
|
143
|
+
argumentEncode: function (__typed__) { return exports.ProposedPaymentStream_EditPaymentStreamProposal.encode(__typed__); },
|
|
144
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedPaymentStream).decoder; }),
|
|
145
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedPaymentStream).encode(__typed__); },
|
|
146
|
+
},
|
|
147
|
+
ProposedPaymentStream_Withdraw: {
|
|
148
|
+
template: function () { return exports.ProposedPaymentStream; },
|
|
149
|
+
choiceName: 'ProposedPaymentStream_Withdraw',
|
|
150
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedPaymentStream_Withdraw.decoder; }),
|
|
151
|
+
argumentEncode: function (__typed__) { return exports.ProposedPaymentStream_Withdraw.encode(__typed__); },
|
|
152
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
153
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
154
|
+
},
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
damlTypes.registerTemplate(exports.ProposedPaymentStream, ['1e5c887820e6830453e44cca6603a0c6fb9a521bfa04d56145e25f5e5c3ecf1c', '#CantonPayments']);
|
|
161
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/ActivePaymentStreamData.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 CantonPayments_PaymentStream_Types_PaymentStream from '../../../../CantonPayments/PaymentStream/Types/PaymentStream/module';
|
|
11
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamStats from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module';
|
|
12
|
+
import * as CantonPayments_PaymentStream_Types_ProcessorContext from '../../../../CantonPayments/PaymentStream/Types/ProcessorContext/module';
|
|
13
|
+
|
|
14
|
+
export declare type ActivePaymentStreamData = {
|
|
15
|
+
paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream;
|
|
16
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext;
|
|
17
|
+
processedAndPaidUntil: damlTypes.Time;
|
|
18
|
+
stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare const ActivePaymentStreamData:
|
|
22
|
+
damlTypes.Serializable<ActivePaymentStreamData> & {
|
|
23
|
+
}
|
|
24
|
+
;
|
|
25
|
+
|