@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var CantonPayments_PaymentStream_Types_PaymentStream = require('../../../../CantonPayments/PaymentStream/Types/PaymentStream/module');
|
|
16
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamStats = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module');
|
|
17
|
+
var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.ActivePaymentStreamData = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.decoder, }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.encode(__typed__.paymentStream),
|
|
25
|
+
processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
26
|
+
processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
|
|
27
|
+
stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.encode(__typed__.stats),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
,
|
|
31
|
+
};
|
|
32
|
+
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/Approvals.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 */
|
|
@@ -8,7 +8,7 @@ import * as damlTypes from '@daml/types';
|
|
|
8
8
|
import * as damlLedger from '@daml/ledger';
|
|
9
9
|
|
|
10
10
|
export declare type Approvals = {
|
|
11
|
-
|
|
11
|
+
payerApproved: boolean;
|
|
12
12
|
recipientApproved: boolean;
|
|
13
13
|
processorApproved: boolean;
|
|
14
14
|
};
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.js
RENAMED
|
@@ -14,10 +14,10 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
exports.Approvals = {
|
|
17
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({payerApproved: damlTypes.Bool.decoder, recipientApproved: damlTypes.Bool.decoder, processorApproved: damlTypes.Bool.decoder, }); }),
|
|
18
18
|
encode: function (__typed__) {
|
|
19
19
|
return {
|
|
20
|
-
|
|
20
|
+
payerApproved: damlTypes.Bool.encode(__typed__.payerApproved),
|
|
21
21
|
recipientApproved: damlTypes.Bool.encode(__typed__.recipientApproved),
|
|
22
22
|
processorApproved: damlTypes.Bool.encode(__typed__.processorApproved),
|
|
23
23
|
};
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/LockFundsInput.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,12 +9,12 @@ import * as damlLedger from '@daml/ledger';
|
|
|
9
9
|
|
|
10
10
|
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../../..';
|
|
11
11
|
|
|
12
|
-
import * as
|
|
12
|
+
import * as CantonPayments_PaymentStream_Types_PaymentContext from '../../../../CantonPayments/PaymentStream/Types/PaymentContext/module';
|
|
13
13
|
|
|
14
14
|
export declare type LockFundsInput = {
|
|
15
15
|
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
16
16
|
amountToLock: damlTypes.Numeric;
|
|
17
|
-
paymentContext:
|
|
17
|
+
paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export declare const LockFundsInput:
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.js
RENAMED
|
@@ -14,16 +14,16 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../../..');
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var CantonPayments_PaymentStream_Types_PaymentContext = require('../../../../CantonPayments/PaymentStream/Types/PaymentContext/module');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.LockFundsInput = {
|
|
21
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, paymentContext:
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
22
22
|
encode: function (__typed__) {
|
|
23
23
|
return {
|
|
24
24
|
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.amuletInputs),
|
|
25
25
|
amountToLock: damlTypes.Numeric(10).encode(__typed__.amountToLock),
|
|
26
|
-
paymentContext:
|
|
26
|
+
paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
,
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PartyRole.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 */
|
|
@@ -8,7 +8,7 @@ import * as damlTypes from '@daml/types';
|
|
|
8
8
|
import * as damlLedger from '@daml/ledger';
|
|
9
9
|
|
|
10
10
|
export declare type PartyRole =
|
|
11
|
-
| '
|
|
11
|
+
| 'Payer'
|
|
12
12
|
| 'Recipient'
|
|
13
13
|
| 'Processor'
|
|
14
14
|
;
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.js
RENAMED
|
@@ -14,11 +14,11 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
exports.PartyRole = {
|
|
17
|
-
|
|
17
|
+
Payer: 'Payer',
|
|
18
18
|
Recipient: 'Recipient',
|
|
19
19
|
Processor: 'Processor',
|
|
20
|
-
keys: ['
|
|
21
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.PartyRole.
|
|
20
|
+
keys: ['Payer','Recipient','Processor',],
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.PartyRole.Payer), jtv.constant(exports.PartyRole.Recipient), jtv.constant(exports.PartyRole.Processor)); }),
|
|
22
22
|
encode: function (__typed__) { return __typed__; },
|
|
23
23
|
};
|
|
24
24
|
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentContext.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 */
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentResult.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 */
|
|
@@ -8,10 +8,12 @@ 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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
12
|
|
|
12
13
|
export declare type ProcessPaymentResult<t> = {
|
|
13
|
-
|
|
14
|
+
paymentStreamCid: damlTypes.ContractId<t>;
|
|
14
15
|
transferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult;
|
|
16
|
+
activityMarkerCid: damlTypes.Optional<damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker>>;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export declare const ProcessPaymentResult :
|
package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.js
RENAMED
|
@@ -13,14 +13,16 @@ var damlTypes = require('@daml/types');
|
|
|
13
13
|
var damlLedger = require('@daml/ledger');
|
|
14
14
|
|
|
15
15
|
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../../..');
|
|
16
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
exports.ProcessPaymentResult = function (t) { return ({
|
|
19
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
20
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStreamCid: damlTypes.ContractId(t).decoder, transferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult.decoder, activityMarkerCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppActivityMarker)).decoder), }); }),
|
|
20
21
|
encode: function (__typed__) {
|
|
21
22
|
return {
|
|
22
|
-
|
|
23
|
+
paymentStreamCid: damlTypes.ContractId(t).encode(__typed__.paymentStreamCid),
|
|
23
24
|
transferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult.encode(__typed__.transferResult),
|
|
25
|
+
activityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppActivityMarker)).encode(__typed__.activityMarkerCid),
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStream.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 */
|
|
@@ -10,13 +10,13 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
11
|
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamAmount from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module';
|
|
14
14
|
|
|
15
|
-
export declare type
|
|
16
|
-
|
|
15
|
+
export declare type PaymentStream = {
|
|
16
|
+
payer: damlTypes.Party;
|
|
17
17
|
recipient: damlTypes.Party;
|
|
18
|
-
recipientPaymentPerDay:
|
|
19
|
-
processorPaymentPerDay: damlTypes.Optional<
|
|
18
|
+
recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount;
|
|
19
|
+
processorPaymentPerDay: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>;
|
|
20
20
|
freeTrialExpiration: damlTypes.Optional<damlTypes.Time>;
|
|
21
21
|
prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
22
22
|
paymentsEndAt: damlTypes.Optional<damlTypes.Time>;
|
|
@@ -27,8 +27,8 @@ export declare type Subscription = {
|
|
|
27
27
|
observers: damlTypes.Party[];
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export declare const
|
|
31
|
-
damlTypes.Serializable<
|
|
30
|
+
export declare const PaymentStream:
|
|
31
|
+
damlTypes.Serializable<PaymentStream> & {
|
|
32
32
|
}
|
|
33
33
|
;
|
|
34
34
|
|
|
@@ -15,17 +15,17 @@ var damlLedger = require('@daml/ledger');
|
|
|
15
15
|
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
16
|
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamAmount = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.
|
|
22
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
21
|
+
exports.PaymentStream = {
|
|
22
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({payer: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount.decoder, processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), provider: damlTypes.Party.decoder, appRewardBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary).decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).decoder), observers: damlTypes.List(damlTypes.Party).decoder, }); }),
|
|
23
23
|
encode: function (__typed__) {
|
|
24
24
|
return {
|
|
25
|
-
|
|
25
|
+
payer: damlTypes.Party.encode(__typed__.payer),
|
|
26
26
|
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
27
|
-
recipientPaymentPerDay:
|
|
28
|
-
processorPaymentPerDay: damlTypes.Optional(
|
|
27
|
+
recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount.encode(__typed__.recipientPaymentPerDay),
|
|
28
|
+
processorPaymentPerDay: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).encode(__typed__.processorPaymentPerDay),
|
|
29
29
|
freeTrialExpiration: damlTypes.Optional(damlTypes.Time).encode(__typed__.freeTrialExpiration),
|
|
30
30
|
prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.prepayWindow),
|
|
31
31
|
paymentsEndAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.paymentsEndAt),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStreamAmount.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 */
|
|
@@ -7,13 +7,13 @@ 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
|
-
export declare type
|
|
10
|
+
export declare type PaymentStreamAmount =
|
|
11
11
|
| { tag: 'AmuletAmount'; value: damlTypes.Numeric }
|
|
12
12
|
| { tag: 'USDAmount'; value: damlTypes.Numeric }
|
|
13
13
|
;
|
|
14
14
|
|
|
15
|
-
export declare const
|
|
16
|
-
damlTypes.Serializable<
|
|
15
|
+
export declare const PaymentStreamAmount:
|
|
16
|
+
damlTypes.Serializable<PaymentStreamAmount> & {
|
|
17
17
|
}
|
|
18
18
|
;
|
|
19
19
|
|
|
@@ -13,13 +13,13 @@ var damlTypes = require('@daml/types');
|
|
|
13
13
|
var damlLedger = require('@daml/ledger');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.
|
|
16
|
+
exports.PaymentStreamAmount = {
|
|
17
17
|
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AmuletAmount'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('USDAmount'), value: damlTypes.Numeric(10).decoder, })); }),
|
|
18
18
|
encode: function (__typed__) {
|
|
19
19
|
switch(__typed__.tag) {
|
|
20
20
|
case 'AmuletAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
21
21
|
case 'USDAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
22
|
-
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type
|
|
22
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type PaymentStreamAmount';
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStreamChanges.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 */
|
|
@@ -10,25 +10,25 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
11
|
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
12
|
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamAmount from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module';
|
|
14
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamTime from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module';
|
|
15
15
|
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type PaymentStreamChanges = {
|
|
17
17
|
processedAndPaidUntilAdjustment: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
18
18
|
provider: damlTypes.Optional<damlTypes.Party>;
|
|
19
19
|
appRewardBeneficiaries: damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>;
|
|
20
|
-
recipientPaymentPerDay: damlTypes.Optional<
|
|
21
|
-
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<
|
|
20
|
+
recipientPaymentPerDay: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>;
|
|
21
|
+
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>>;
|
|
22
22
|
prepayWindow: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
23
|
-
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<
|
|
24
|
-
freeTrialExpiration: damlTypes.Optional<damlTypes.Optional<
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>>;
|
|
24
|
+
freeTrialExpiration: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>>;
|
|
25
25
|
description: damlTypes.Optional<damlTypes.Optional<string>>;
|
|
26
26
|
metadata: damlTypes.Optional<damlTypes.Optional<{ [key: string]: string }>>;
|
|
27
27
|
observers: damlTypes.Optional<damlTypes.Party[]>;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export declare const
|
|
31
|
-
damlTypes.Serializable<
|
|
30
|
+
export declare const PaymentStreamChanges:
|
|
31
|
+
damlTypes.Serializable<PaymentStreamChanges> & {
|
|
32
32
|
}
|
|
33
33
|
;
|
|
34
34
|
|
|
@@ -15,22 +15,22 @@ var damlLedger = require('@daml/ledger');
|
|
|
15
15
|
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
16
|
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamAmount = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module');
|
|
19
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamTime = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.
|
|
23
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processedAndPaidUntilAdjustment: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), appRewardBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).decoder), recipientPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(
|
|
22
|
+
exports.PaymentStreamChanges = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processedAndPaidUntilAdjustment: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), appRewardBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).decoder), recipientPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).decoder), processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount)).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).decoder), observers: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Party)).decoder), }); }),
|
|
24
24
|
encode: function (__typed__) {
|
|
25
25
|
return {
|
|
26
26
|
processedAndPaidUntilAdjustment: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.processedAndPaidUntilAdjustment),
|
|
27
27
|
provider: damlTypes.Optional(damlTypes.Party).encode(__typed__.provider),
|
|
28
28
|
appRewardBeneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).encode(__typed__.appRewardBeneficiaries),
|
|
29
|
-
recipientPaymentPerDay: damlTypes.Optional(
|
|
30
|
-
processorPaymentPerDay: damlTypes.Optional(damlTypes.Optional(
|
|
29
|
+
recipientPaymentPerDay: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).encode(__typed__.recipientPaymentPerDay),
|
|
30
|
+
processorPaymentPerDay: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount)).encode(__typed__.processorPaymentPerDay),
|
|
31
31
|
prepayWindow: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.prepayWindow),
|
|
32
|
-
paymentsEndAt: damlTypes.Optional(damlTypes.Optional(
|
|
33
|
-
freeTrialExpiration: damlTypes.Optional(damlTypes.Optional(
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).encode(__typed__.paymentsEndAt),
|
|
33
|
+
freeTrialExpiration: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).encode(__typed__.freeTrialExpiration),
|
|
34
34
|
description: damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).encode(__typed__.description),
|
|
35
35
|
metadata: damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).encode(__typed__.metadata),
|
|
36
36
|
observers: damlTypes.Optional(damlTypes.List(damlTypes.Party)).encode(__typed__.observers),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStreamProposal.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 */
|
|
@@ -10,17 +10,17 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
11
|
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
12
|
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamAmount from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module';
|
|
14
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamTime from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module';
|
|
15
15
|
|
|
16
|
-
export declare type
|
|
17
|
-
|
|
16
|
+
export declare type PaymentStreamProposal = {
|
|
17
|
+
payer: damlTypes.Party;
|
|
18
18
|
recipient: damlTypes.Party;
|
|
19
|
-
recipientPaymentPerDay:
|
|
20
|
-
processorPaymentPerDay: damlTypes.Optional<
|
|
21
|
-
freeTrialExpiration: damlTypes.Optional<
|
|
19
|
+
recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount;
|
|
20
|
+
processorPaymentPerDay: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>;
|
|
21
|
+
freeTrialExpiration: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>;
|
|
22
22
|
prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
23
|
-
paymentsEndAt: damlTypes.Optional<
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>;
|
|
24
24
|
provider: damlTypes.Party;
|
|
25
25
|
appRewardBeneficiaries: pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[];
|
|
26
26
|
description: damlTypes.Optional<string>;
|
|
@@ -28,8 +28,8 @@ export declare type SubscriptionProposal = {
|
|
|
28
28
|
observers: damlTypes.Party[];
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export declare const
|
|
32
|
-
damlTypes.Serializable<
|
|
31
|
+
export declare const PaymentStreamProposal:
|
|
32
|
+
damlTypes.Serializable<PaymentStreamProposal> & {
|
|
33
33
|
}
|
|
34
34
|
;
|
|
35
35
|
|
|
@@ -0,0 +1,42 @@
|
|
|
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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamAmount = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module');
|
|
19
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamTime = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.PaymentStreamProposal = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({payer: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount.decoder, processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration).decoder), prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration).decoder), provider: damlTypes.Party.decoder, appRewardBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary).decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).decoder), observers: damlTypes.List(damlTypes.Party).decoder, }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
payer: damlTypes.Party.encode(__typed__.payer),
|
|
27
|
+
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
28
|
+
recipientPaymentPerDay: CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount.encode(__typed__.recipientPaymentPerDay),
|
|
29
|
+
processorPaymentPerDay: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).encode(__typed__.processorPaymentPerDay),
|
|
30
|
+
freeTrialExpiration: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration).encode(__typed__.freeTrialExpiration),
|
|
31
|
+
prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.prepayWindow),
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration).encode(__typed__.paymentsEndAt),
|
|
33
|
+
provider: damlTypes.Party.encode(__typed__.provider),
|
|
34
|
+
appRewardBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary).encode(__typed__.appRewardBeneficiaries),
|
|
35
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
36
|
+
metadata: damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).encode(__typed__.metadata),
|
|
37
|
+
observers: damlTypes.List(damlTypes.Party).encode(__typed__.observers),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
,
|
|
41
|
+
};
|
|
42
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges.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 */
|
|
@@ -10,26 +10,26 @@ import * as damlLedger from '@daml/ledger';
|
|
|
10
10
|
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
11
|
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
12
|
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamAmount from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module';
|
|
14
|
+
import * as CantonPayments_PaymentStream_Types_PaymentStreamTime from '../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module';
|
|
15
15
|
|
|
16
|
-
export declare type
|
|
17
|
-
|
|
16
|
+
export declare type PaymentStreamProposalChanges = {
|
|
17
|
+
payer: damlTypes.Optional<damlTypes.Party>;
|
|
18
18
|
recipient: damlTypes.Optional<damlTypes.Party>;
|
|
19
19
|
provider: damlTypes.Optional<damlTypes.Party>;
|
|
20
20
|
appRewardBeneficiaries: damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>;
|
|
21
|
-
recipientPaymentPerDay: damlTypes.Optional<
|
|
22
|
-
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<
|
|
23
|
-
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<
|
|
21
|
+
recipientPaymentPerDay: damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>;
|
|
22
|
+
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount>>;
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>>;
|
|
24
24
|
prepayWindow: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
25
|
-
freeTrialExpiration: damlTypes.Optional<damlTypes.Optional<
|
|
25
|
+
freeTrialExpiration: damlTypes.Optional<damlTypes.Optional<CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration>>;
|
|
26
26
|
description: damlTypes.Optional<damlTypes.Optional<string>>;
|
|
27
27
|
metadata: damlTypes.Optional<damlTypes.Optional<{ [key: string]: string }>>;
|
|
28
28
|
observers: damlTypes.Optional<damlTypes.Party[]>;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export declare const
|
|
32
|
-
damlTypes.Serializable<
|
|
31
|
+
export declare const PaymentStreamProposalChanges:
|
|
32
|
+
damlTypes.Serializable<PaymentStreamProposalChanges> & {
|
|
33
33
|
}
|
|
34
34
|
;
|
|
35
35
|
|
|
@@ -0,0 +1,42 @@
|
|
|
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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamAmount = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamAmount/module');
|
|
19
|
+
var CantonPayments_PaymentStream_Types_PaymentStreamTime = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamTime/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.PaymentStreamProposalChanges = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({payer: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipient: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), appRewardBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).decoder), recipientPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).decoder), processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount)).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).decoder), observers: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Party)).decoder), }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
payer: damlTypes.Optional(damlTypes.Party).encode(__typed__.payer),
|
|
27
|
+
recipient: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipient),
|
|
28
|
+
provider: damlTypes.Optional(damlTypes.Party).encode(__typed__.provider),
|
|
29
|
+
appRewardBeneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).encode(__typed__.appRewardBeneficiaries),
|
|
30
|
+
recipientPaymentPerDay: damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount).encode(__typed__.recipientPaymentPerDay),
|
|
31
|
+
processorPaymentPerDay: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamAmount.PaymentStreamAmount)).encode(__typed__.processorPaymentPerDay),
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).encode(__typed__.paymentsEndAt),
|
|
33
|
+
prepayWindow: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.prepayWindow),
|
|
34
|
+
freeTrialExpiration: damlTypes.Optional(damlTypes.Optional(CantonPayments_PaymentStream_Types_PaymentStreamTime.PaymentStreamExpiration)).encode(__typed__.freeTrialExpiration),
|
|
35
|
+
description: damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).encode(__typed__.description),
|
|
36
|
+
metadata: damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).encode(__typed__.metadata),
|
|
37
|
+
observers: damlTypes.Optional(damlTypes.List(damlTypes.Party)).encode(__typed__.observers),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
,
|
|
41
|
+
};
|
|
42
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from
|
|
1
|
+
// Generated from CantonPayments/PaymentStream/Types/PaymentStreamStats.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 */
|
|
@@ -7,18 +7,18 @@ 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
|
-
export declare type
|
|
10
|
+
export declare type PaymentStreamStats = {
|
|
11
11
|
roundsProcessed: damlTypes.Int;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
totalPaidByPayerCC: damlTypes.Numeric;
|
|
13
|
+
totalPaidByPayerUSD: damlTypes.Numeric;
|
|
14
14
|
totalReceivedByRecipientCC: damlTypes.Numeric;
|
|
15
15
|
totalReceivedByRecipientUSD: damlTypes.Numeric;
|
|
16
16
|
totalReceivedByProcessorCC: damlTypes.Numeric;
|
|
17
17
|
totalReceivedByProcessorUSD: damlTypes.Numeric;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export declare const
|
|
21
|
-
damlTypes.Serializable<
|
|
20
|
+
export declare const PaymentStreamStats:
|
|
21
|
+
damlTypes.Serializable<PaymentStreamStats> & {
|
|
22
22
|
}
|
|
23
23
|
;
|
|
24
24
|
|