@fairmint/canton-fairmint-sdk 0.0.56 → 0.0.60
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/dist/clients/json-api/sdkHelper.js +1 -1
- package/dist/clients/shared/runtime.d.ts.map +1 -1
- package/dist/clients/shared/runtime.js +15 -13
- package/dist/clients/shared/runtime.js.map +1 -1
- package/dist/extensions/CantonPaymentsExtension.d.ts +34 -0
- package/dist/extensions/CantonPaymentsExtension.d.ts.map +1 -0
- package/dist/extensions/CantonPaymentsExtension.js +23 -0
- package/dist/extensions/CantonPaymentsExtension.js.map +1 -0
- package/dist/extensions/PaymentStreamsExtension.d.ts +71 -0
- package/dist/extensions/PaymentStreamsExtension.d.ts.map +1 -0
- package/dist/extensions/PaymentStreamsExtension.js +55 -0
- package/dist/extensions/PaymentStreamsExtension.js.map +1 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +8 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/fairmintOcpClient.d.ts +48 -0
- package/dist/fairmintOcpClient.d.ts.map +1 -0
- package/dist/fairmintOcpClient.js +52 -0
- package/dist/fairmintOcpClient.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/addObserversToAirdrop.d.ts +8 -0
- package/dist/functions/CantonPayments/airdrop/addObserversToAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/addObserversToAirdrop.js +18 -0
- package/dist/functions/CantonPayments/airdrop/addObserversToAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/createAirdrop.d.ts +13 -0
- package/dist/functions/CantonPayments/airdrop/createAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/createAirdrop.js +23 -0
- package/dist/functions/CantonPayments/airdrop/createAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/executeAirdrop.d.ts +20 -0
- package/dist/functions/CantonPayments/airdrop/executeAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/executeAirdrop.js +31 -0
- package/dist/functions/CantonPayments/airdrop/executeAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/index.d.ts +6 -0
- package/dist/functions/CantonPayments/airdrop/index.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/index.js +22 -0
- package/dist/functions/CantonPayments/airdrop/index.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/joinAirdrop.d.ts +14 -0
- package/dist/functions/CantonPayments/airdrop/joinAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/joinAirdrop.js +36 -0
- package/dist/functions/CantonPayments/airdrop/joinAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/airdrop/updateAirdropConfig.d.ts +8 -0
- package/dist/functions/CantonPayments/airdrop/updateAirdropConfig.d.ts.map +1 -0
- package/dist/functions/CantonPayments/airdrop/updateAirdropConfig.js +22 -0
- package/dist/functions/CantonPayments/airdrop/updateAirdropConfig.js.map +1 -0
- package/dist/functions/CantonPayments/index.d.ts +3 -0
- package/dist/functions/CantonPayments/index.d.ts.map +1 -0
- package/dist/functions/CantonPayments/index.js +19 -0
- package/dist/functions/CantonPayments/index.js.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/archiveSimpleAirdrop.d.ts +6 -0
- package/dist/functions/CantonPayments/simpleAirdrop/archiveSimpleAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/archiveSimpleAirdrop.js +15 -0
- package/dist/functions/CantonPayments/simpleAirdrop/archiveSimpleAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/createSimpleAirdrop.d.ts +12 -0
- package/dist/functions/CantonPayments/simpleAirdrop/createSimpleAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/createSimpleAirdrop.js +21 -0
- package/dist/functions/CantonPayments/simpleAirdrop/createSimpleAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/executeSimpleAirdrop.d.ts +14 -0
- package/dist/functions/CantonPayments/simpleAirdrop/executeSimpleAirdrop.d.ts.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/executeSimpleAirdrop.js +26 -0
- package/dist/functions/CantonPayments/simpleAirdrop/executeSimpleAirdrop.js.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/index.d.ts +4 -0
- package/dist/functions/CantonPayments/simpleAirdrop/index.d.ts.map +1 -0
- package/dist/functions/CantonPayments/simpleAirdrop/index.js +20 -0
- package/dist/functions/CantonPayments/simpleAirdrop/index.js.map +1 -0
- package/dist/functions/CouponMinter/canMintCouponsNow.d.ts +56 -0
- package/dist/functions/CouponMinter/canMintCouponsNow.d.ts.map +1 -0
- package/dist/functions/CouponMinter/canMintCouponsNow.js +89 -0
- package/dist/functions/CouponMinter/canMintCouponsNow.js.map +1 -0
- package/dist/functions/CouponMinter/index.d.ts +3 -0
- package/dist/functions/CouponMinter/index.d.ts.map +1 -0
- package/dist/functions/CouponMinter/index.js +12 -0
- package/dist/functions/CouponMinter/index.js.map +1 -0
- package/dist/functions/CouponMinter/waitUntilCanMint.d.ts +176 -0
- package/dist/functions/CouponMinter/waitUntilCanMint.d.ts.map +1 -0
- package/dist/functions/CouponMinter/waitUntilCanMint.js +235 -0
- package/dist/functions/CouponMinter/waitUntilCanMint.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/addFunds.d.ts +10 -0
- package/dist/functions/PaymentStreams/activePaymentStream/addFunds.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/addFunds.js +30 -0
- package/dist/functions/PaymentStreams/activePaymentStream/addFunds.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.d.ts +7 -0
- package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.js +18 -0
- package/dist/functions/PaymentStreams/activePaymentStream/archiveInactivePaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/cancel.d.ts +10 -0
- package/dist/functions/PaymentStreams/activePaymentStream/cancel.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/cancel.js +22 -0
- package/dist/functions/PaymentStreams/activePaymentStream/cancel.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/changeParty.d.ts +10 -0
- package/dist/functions/PaymentStreams/activePaymentStream/changeParty.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/changeParty.js +20 -0
- package/dist/functions/PaymentStreams/activePaymentStream/changeParty.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/index.d.ts +19 -0
- package/dist/functions/PaymentStreams/activePaymentStream/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/index.js +39 -0
- package/dist/functions/PaymentStreams/activePaymentStream/index.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.d.ts +8 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.js +21 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processFreeTrial.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processPayment.d.ts +11 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processPayment.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processPayment.js +28 -0
- package/dist/functions/PaymentStreams/activePaymentStream/processPayment.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.d.ts +26 -0
- package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.js +72 -0
- package/dist/functions/PaymentStreams/activePaymentStream/proposeChanges.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/refund.d.ts +10 -0
- package/dist/functions/PaymentStreams/activePaymentStream/refund.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/refund.js +25 -0
- package/dist/functions/PaymentStreams/activePaymentStream/refund.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.d.ts +10 -0
- package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.js +26 -0
- package/dist/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.js.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.d.ts +9 -0
- package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.js +25 -0
- package/dist/functions/PaymentStreams/activePaymentStream/withdrawFunds.js.map +1 -0
- package/dist/functions/PaymentStreams/index.d.ts +17 -0
- package/dist/functions/PaymentStreams/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/index.js +58 -0
- package/dist/functions/PaymentStreams/index.js.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/approve.d.ts +7 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/approve.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/approve.js +18 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/approve.js.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/archive.d.ts +8 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/archive.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/archive.js +20 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/archive.js.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/index.d.ts +5 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/index.js +21 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/index.js.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.d.ts +8 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.js +19 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts +8 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.js +19 -0
- package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.d.ts +8 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.js +19 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/apply.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.d.ts +7 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.js +18 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/approve.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.d.ts +4 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.js +20 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/index.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.d.ts +8 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.js +20 -0
- package/dist/functions/PaymentStreams/paymentStreamChangeProposal/reject.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.d.ts +10 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.js +22 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.js.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/index.d.ts +2 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/index.js +18 -0
- package/dist/functions/PaymentStreams/paymentStreamFactory/index.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/approve.d.ts +7 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/approve.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/approve.js +19 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/approve.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.d.ts +10 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.js +20 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/changeParty.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.d.ts +27 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.js +75 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/index.d.ts +6 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/index.js +22 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/index.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.d.ts +8 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.js +28 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.d.ts +8 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.js +20 -0
- package/dist/functions/PaymentStreams/proposedPaymentStream/withdraw.js.map +1 -0
- package/dist/functions/PaymentStreams/types/activePaymentStream.d.ts +64 -0
- package/dist/functions/PaymentStreams/types/activePaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/activePaymentStream.js +52 -0
- package/dist/functions/PaymentStreams/types/activePaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/types/index.d.ts +6 -0
- package/dist/functions/PaymentStreams/types/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/index.js +22 -0
- package/dist/functions/PaymentStreams/types/index.js.map +1 -0
- package/dist/functions/PaymentStreams/types/lockFundsInput.d.ts +8 -0
- package/dist/functions/PaymentStreams/types/lockFundsInput.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/lockFundsInput.js +3 -0
- package/dist/functions/PaymentStreams/types/lockFundsInput.js.map +1 -0
- package/dist/functions/PaymentStreams/types/partyRole.d.ts +3 -0
- package/dist/functions/PaymentStreams/types/partyRole.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/partyRole.js +3 -0
- package/dist/functions/PaymentStreams/types/partyRole.js.map +1 -0
- package/dist/functions/PaymentStreams/types/paymentStreamProposalInput.d.ts +37 -0
- package/dist/functions/PaymentStreams/types/paymentStreamProposalInput.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/paymentStreamProposalInput.js +4 -0
- package/dist/functions/PaymentStreams/types/paymentStreamProposalInput.js.map +1 -0
- package/dist/functions/PaymentStreams/types/proposedPaymentStream.d.ts +81 -0
- package/dist/functions/PaymentStreams/types/proposedPaymentStream.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/types/proposedPaymentStream.js +51 -0
- package/dist/functions/PaymentStreams/types/proposedPaymentStream.js.map +1 -0
- package/dist/functions/PaymentStreams/utils/disclosedContracts.d.ts +14 -0
- package/dist/functions/PaymentStreams/utils/disclosedContracts.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/utils/disclosedContracts.js +53 -0
- package/dist/functions/PaymentStreams/utils/disclosedContracts.js.map +1 -0
- package/dist/functions/PaymentStreams/utils/factoryContractId.d.ts +17 -0
- package/dist/functions/PaymentStreams/utils/factoryContractId.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/utils/factoryContractId.js +27 -0
- package/dist/functions/PaymentStreams/utils/factoryContractId.js.map +1 -0
- package/dist/functions/PaymentStreams/utils/index.d.ts +4 -0
- package/dist/functions/PaymentStreams/utils/index.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/utils/index.js +20 -0
- package/dist/functions/PaymentStreams/utils/index.js.map +1 -0
- package/dist/functions/PaymentStreams/utils/paymentContext.d.ts +61 -0
- package/dist/functions/PaymentStreams/utils/paymentContext.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/utils/paymentContext.js +209 -0
- package/dist/functions/PaymentStreams/utils/paymentContext.js.map +1 -0
- package/dist/functions/PaymentStreams/utils/paymentStreamDamlCodec.d.ts +75 -0
- package/dist/functions/PaymentStreams/utils/paymentStreamDamlCodec.d.ts.map +1 -0
- package/dist/functions/PaymentStreams/utils/paymentStreamDamlCodec.js +81 -0
- package/dist/functions/PaymentStreams/utils/paymentStreamDamlCodec.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.buildReplaceLockedAmuletCommand = exports.buildWithdrawFundsCommand = exports.buildAddFundsCommand = exports.buildRefundPaymentStreamCommand = exports.buildActivePaymentStreamChangePartyCommand = exports.buildProcessPaymentCommand = exports.buildProcessFreeTrialCommand = void 0;
|
|
18
|
+
__exportStar(require("./archiveInactivePaymentStream"), exports);
|
|
19
|
+
__exportStar(require("./cancel"), exports);
|
|
20
|
+
__exportStar(require("./proposeChanges"), exports);
|
|
21
|
+
// Re-export processFreeTrial and processPayment explicitly to avoid ProcessingContext/PaymentContext conflicts
|
|
22
|
+
var processFreeTrial_1 = require("./processFreeTrial");
|
|
23
|
+
Object.defineProperty(exports, "buildProcessFreeTrialCommand", { enumerable: true, get: function () { return processFreeTrial_1.buildProcessFreeTrialCommand; } });
|
|
24
|
+
var processPayment_1 = require("./processPayment");
|
|
25
|
+
Object.defineProperty(exports, "buildProcessPaymentCommand", { enumerable: true, get: function () { return processPayment_1.buildProcessPaymentCommand; } });
|
|
26
|
+
// Re-export changeParty explicitly to avoid PartyRole conflict
|
|
27
|
+
var changeParty_1 = require("./changeParty");
|
|
28
|
+
Object.defineProperty(exports, "buildActivePaymentStreamChangePartyCommand", { enumerable: true, get: function () { return changeParty_1.buildActivePaymentStreamChangePartyCommand; } });
|
|
29
|
+
// Re-export refund with explicit exports to avoid PaymentContext conflict
|
|
30
|
+
var refund_1 = require("./refund");
|
|
31
|
+
Object.defineProperty(exports, "buildRefundPaymentStreamCommand", { enumerable: true, get: function () { return refund_1.buildRefundPaymentStreamCommand; } });
|
|
32
|
+
// Export fund management functions
|
|
33
|
+
var addFunds_1 = require("./addFunds");
|
|
34
|
+
Object.defineProperty(exports, "buildAddFundsCommand", { enumerable: true, get: function () { return addFunds_1.buildAddFundsCommand; } });
|
|
35
|
+
var withdrawFunds_1 = require("./withdrawFunds");
|
|
36
|
+
Object.defineProperty(exports, "buildWithdrawFundsCommand", { enumerable: true, get: function () { return withdrawFunds_1.buildWithdrawFundsCommand; } });
|
|
37
|
+
var replaceLockedAmulet_1 = require("./replaceLockedAmulet");
|
|
38
|
+
Object.defineProperty(exports, "buildReplaceLockedAmuletCommand", { enumerable: true, get: function () { return replaceLockedAmulet_1.buildReplaceLockedAmuletCommand; } });
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,2CAAyB;AACzB,mDAAiC;AAEjC,+GAA+G;AAC/G,uDAAkE;AAAzD,gIAAA,4BAA4B,OAAA;AAGrC,mDAA8D;AAArD,4HAAA,0BAA0B,OAAA;AAGnC,+DAA+D;AAC/D,6CAA2E;AAAlE,yIAAA,0CAA0C,OAAA;AAInD,0EAA0E;AAC1E,mCAA2D;AAAlD,yHAAA,+BAA+B,OAAA;AAGxC,mCAAmC;AACnC,uCAAkD;AAAzC,gHAAA,oBAAoB,OAAA;AAG7B,iDAA4D;AAAnD,0HAAA,yBAAyB,OAAA;AAGlC,6DAAwE;AAA/D,sIAAA,+BAA+B,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
export interface ProcessFreeTrialParams {
|
|
3
|
+
paymentStreamContractId: string;
|
|
4
|
+
processingPeriod: string;
|
|
5
|
+
featuredAppRight?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildProcessFreeTrialCommand(params: ProcessFreeTrialParams): Command;
|
|
8
|
+
//# sourceMappingURL=processFreeTrial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processFreeTrial.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/processFreeTrial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAIhH,MAAM,WAAW,sBAAsB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAgBT"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProcessFreeTrialCommand = buildProcessFreeTrialCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const canton_1 = require("@open-captable-protocol/canton");
|
|
6
|
+
function buildProcessFreeTrialCommand(params) {
|
|
7
|
+
const choiceArguments = {
|
|
8
|
+
processingPeriod: (0, canton_1.relTimeToDAML)(params.processingPeriod),
|
|
9
|
+
featuredAppRight: params.featuredAppRight ?? null,
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
ExerciseCommand: {
|
|
13
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
14
|
+
.templateId,
|
|
15
|
+
contractId: params.paymentStreamContractId,
|
|
16
|
+
choice: 'ActivePaymentStream_ProcessFreeTrial',
|
|
17
|
+
choiceArgument: choiceArguments,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=processFreeTrial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processFreeTrial.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/processFreeTrial.ts"],"names":[],"mappings":";;AAUA,oEAkBC;AA3BD,6FAA0E;AAC1E,2DAA+D;AAQ/D,SAAgB,4BAA4B,CAC1C,MAA8B;IAE9B,MAAM,eAAe,GAAG;QACtB,gBAAgB,EAAE,IAAA,sBAAa,EAAC,MAAM,CAAC,gBAAgB,CAAC;QACxD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,IAAI,IAAI;KAClD,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,sCAAsC;YAC9C,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommandWithDisclosedContracts } from '@open-captable-protocol/canton';
|
|
2
|
+
import type { PaymentContext } from '../utils/paymentContext';
|
|
3
|
+
export interface ProcessPaymentParams {
|
|
4
|
+
paymentStreamContractId: string;
|
|
5
|
+
processingPeriod: string;
|
|
6
|
+
paymentContext: PaymentContext;
|
|
7
|
+
skipProcessorPayment?: boolean;
|
|
8
|
+
activityMarkerFeaturedAppRightCid?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function buildProcessPaymentCommand(params: ProcessPaymentParams): CommandWithDisclosedContracts;
|
|
11
|
+
//# sourceMappingURL=processPayment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processPayment.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/processPayment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAEpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,oBAAoB;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iCAAiC,CAAC,EAAE,MAAM,CAAC;CAC5C;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,oBAAoB,GAC3B,6BAA6B,CAyB/B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProcessPaymentCommand = buildProcessPaymentCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const canton_1 = require("@open-captable-protocol/canton");
|
|
6
|
+
function buildProcessPaymentCommand(params) {
|
|
7
|
+
const choiceArguments = {
|
|
8
|
+
processingPeriod: (0, canton_1.relTimeToDAML)(params.processingPeriod),
|
|
9
|
+
paymentContext: {
|
|
10
|
+
amuletRulesCid: params.paymentContext.amuletRulesCid,
|
|
11
|
+
openMiningRoundCid: params.paymentContext.openMiningRoundCid,
|
|
12
|
+
featuredAppRight: params.paymentContext.featuredAppRight,
|
|
13
|
+
},
|
|
14
|
+
skipProcessorPayment: params.skipProcessorPayment ?? false,
|
|
15
|
+
activityMarkerFeaturedAppRightCid: params.activityMarkerFeaturedAppRightCid ?? null,
|
|
16
|
+
};
|
|
17
|
+
const command = {
|
|
18
|
+
ExerciseCommand: {
|
|
19
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
20
|
+
.templateId,
|
|
21
|
+
contractId: params.paymentStreamContractId,
|
|
22
|
+
choice: 'ActivePaymentStream_ProcessPayment',
|
|
23
|
+
choiceArgument: choiceArguments,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
return { command, disclosedContracts: [] };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=processPayment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processPayment.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/processPayment.ts"],"names":[],"mappings":";;AAcA,gEA2BC;AAxCD,6FAA0E;AAE1E,2DAA+D;AAW/D,SAAgB,0BAA0B,CACxC,MAA4B;IAE5B,MAAM,eAAe,GAAG;QACtB,gBAAgB,EAAE,IAAA,sBAAa,EAAC,MAAM,CAAC,gBAAgB,CAAC;QACxD,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;QACD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,IAAI,KAAK;QAC1D,iCAAiC,EAC/B,MAAM,CAAC,iCAAiC,IAAI,IAAI;KACnD,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,oCAAoC;YAC5C,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
import type { PaymentStreamAmountInput, PaymentStreamTimeInput } from '../types/paymentStreamProposalInput';
|
|
3
|
+
export interface PaymentStreamChanges {
|
|
4
|
+
processedAndPaidUntilAdjustment?: string;
|
|
5
|
+
recipientProvider?: string;
|
|
6
|
+
recipientBeneficiaries?: Array<{
|
|
7
|
+
party: string;
|
|
8
|
+
weight: string;
|
|
9
|
+
}> | null;
|
|
10
|
+
recipientPaymentPerDay?: PaymentStreamAmountInput;
|
|
11
|
+
processorPaymentPerDay?: PaymentStreamAmountInput | null;
|
|
12
|
+
prepayWindow?: string | null;
|
|
13
|
+
paymentsEndAt?: PaymentStreamTimeInput | null;
|
|
14
|
+
trialEndsAt?: PaymentStreamTimeInput | null;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
metadata?: Record<string, string> | null;
|
|
17
|
+
observers?: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface ProposeChangesParams {
|
|
20
|
+
paymentStreamContractId: string;
|
|
21
|
+
actor: string;
|
|
22
|
+
paymentStreamChanges: PaymentStreamChanges;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function buildProposeChangesCommand(params: ProposeChangesParams): Command;
|
|
26
|
+
//# sourceMappingURL=proposeChanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proposeChanges.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/proposeChanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAO7C,MAAM,WAAW,oBAAoB;IACnC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IACzE,sBAAsB,CAAC,EAAE,wBAAwB,CAAC;IAClD,sBAAsB,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4DD,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAiBT"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProposeChangesCommand = buildProposeChangesCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const canton_1 = require("@open-captable-protocol/canton");
|
|
6
|
+
const paymentStreamDamlCodec_1 = require("../utils/paymentStreamDamlCodec");
|
|
7
|
+
function changesToDaml(changes) {
|
|
8
|
+
const result = {};
|
|
9
|
+
if (changes.processedAndPaidUntilAdjustment !== undefined) {
|
|
10
|
+
result.processedAndPaidUntilAdjustment = (0, canton_1.relTimeToDAML)(changes.processedAndPaidUntilAdjustment);
|
|
11
|
+
}
|
|
12
|
+
if (changes.recipientProvider !== undefined) {
|
|
13
|
+
result.recipientProvider = changes.recipientProvider;
|
|
14
|
+
}
|
|
15
|
+
if (changes.recipientBeneficiaries !== undefined) {
|
|
16
|
+
result.recipientBeneficiaries = changes.recipientBeneficiaries;
|
|
17
|
+
}
|
|
18
|
+
if (changes.recipientPaymentPerDay !== undefined) {
|
|
19
|
+
result.recipientPaymentPerDay = (0, paymentStreamDamlCodec_1.paymentStreamAmountToDaml)(changes.recipientPaymentPerDay);
|
|
20
|
+
}
|
|
21
|
+
if (changes.processorPaymentPerDay !== undefined) {
|
|
22
|
+
result.processorPaymentPerDay =
|
|
23
|
+
changes.processorPaymentPerDay === null
|
|
24
|
+
? null
|
|
25
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamAmountToDaml)(changes.processorPaymentPerDay);
|
|
26
|
+
}
|
|
27
|
+
if (changes.prepayWindow !== undefined) {
|
|
28
|
+
result.prepayWindow =
|
|
29
|
+
changes.prepayWindow === null
|
|
30
|
+
? null
|
|
31
|
+
: (0, canton_1.relTimeToDAML)(changes.prepayWindow);
|
|
32
|
+
}
|
|
33
|
+
if (changes.paymentsEndAt !== undefined) {
|
|
34
|
+
result.paymentsEndAt =
|
|
35
|
+
changes.paymentsEndAt === null
|
|
36
|
+
? null
|
|
37
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamTimeToDaml)(changes.paymentsEndAt);
|
|
38
|
+
}
|
|
39
|
+
if (changes.trialEndsAt !== undefined) {
|
|
40
|
+
result.trialEndsAt =
|
|
41
|
+
changes.trialEndsAt === null
|
|
42
|
+
? null
|
|
43
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamTimeToDaml)(changes.trialEndsAt);
|
|
44
|
+
}
|
|
45
|
+
if (changes.description !== undefined) {
|
|
46
|
+
result.description = changes.description;
|
|
47
|
+
}
|
|
48
|
+
if (changes.metadata !== undefined) {
|
|
49
|
+
result.metadata = changes.metadata;
|
|
50
|
+
}
|
|
51
|
+
if (changes.observers !== undefined) {
|
|
52
|
+
result.observers = changes.observers;
|
|
53
|
+
}
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
function buildProposeChangesCommand(params) {
|
|
57
|
+
const choiceArgument = {
|
|
58
|
+
actor: params.actor,
|
|
59
|
+
paymentStreamChanges: changesToDaml(params.paymentStreamChanges),
|
|
60
|
+
description: params.description ?? null,
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
ExerciseCommand: {
|
|
64
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
65
|
+
.templateId,
|
|
66
|
+
contractId: params.paymentStreamContractId,
|
|
67
|
+
choice: 'ActivePaymentStream_ProposeChanges',
|
|
68
|
+
choiceArgument,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=proposeChanges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proposeChanges.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/proposeChanges.ts"],"names":[],"mappings":";;AA4FA,gEAmBC;AA9GD,6FAA0E;AAC1E,2DAA+D;AAK/D,4EAIyC;AAuBzC,SAAS,aAAa,CACpB,OAA6B;IAE7B,MAAM,MAAM,GAA6B,EAAE,CAAC;IAE5C,IAAI,OAAO,CAAC,+BAA+B,KAAK,SAAS,EAAE,CAAC;QAC1D,MAAM,CAAC,+BAA+B,GAAG,IAAA,sBAAa,EACpD,OAAO,CAAC,+BAA+B,CACxC,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;QAC5C,MAAM,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IACvD,CAAC;IACD,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;QACjD,MAAM,CAAC,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IACjE,CAAC;IACD,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;QACjD,MAAM,CAAC,sBAAsB,GAAG,IAAA,kDAAyB,EACvD,OAAO,CAAC,sBAAsB,CAC/B,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;QACjD,MAAM,CAAC,sBAAsB;YAC3B,OAAO,CAAC,sBAAsB,KAAK,IAAI;gBACrC,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAA,kDAAyB,EAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAClE,CAAC;IACD,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACvC,MAAM,CAAC,YAAY;YACjB,OAAO,CAAC,YAAY,KAAK,IAAI;gBAC3B,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAA,sBAAa,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACxC,MAAM,CAAC,aAAa;YAClB,OAAO,CAAC,aAAa,KAAK,IAAI;gBAC5B,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAA,gDAAuB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACtC,MAAM,CAAC,WAAW;YAChB,OAAO,CAAC,WAAW,KAAK,IAAI;gBAC1B,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAA,gDAAuB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACrD,CAAC;IACD,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACtC,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAC3C,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QACnC,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACrC,CAAC;IACD,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACpC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACvC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CACxC,MAA4B;IAE5B,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,oBAAoB,CAAC;QAChE,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;KACxC,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,oCAAoC;YAC5C,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
import type { PaymentContext } from '../utils/paymentContext';
|
|
3
|
+
export interface RefundPaymentStreamParams {
|
|
4
|
+
paymentStreamContractId: string;
|
|
5
|
+
paymentContext: PaymentContext;
|
|
6
|
+
recipientAmuletInputs: string[];
|
|
7
|
+
recipientFeaturedAppRight?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function buildRefundPaymentStreamCommand(params: RefundPaymentStreamParams): Command;
|
|
10
|
+
//# sourceMappingURL=refund.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/refund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAEhH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,yBAAyB,GAChC,OAAO,CAqBT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildRefundPaymentStreamCommand = buildRefundPaymentStreamCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildRefundPaymentStreamCommand(params) {
|
|
6
|
+
const choiceArgument = {
|
|
7
|
+
paymentContext: {
|
|
8
|
+
amuletRulesCid: params.paymentContext.amuletRulesCid,
|
|
9
|
+
openMiningRoundCid: params.paymentContext.openMiningRoundCid,
|
|
10
|
+
featuredAppRight: params.paymentContext.featuredAppRight,
|
|
11
|
+
},
|
|
12
|
+
recipientAmuletInputs: params.recipientAmuletInputs,
|
|
13
|
+
recipientFeaturedAppRight: params.recipientFeaturedAppRight ?? null,
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
ExerciseCommand: {
|
|
17
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
18
|
+
.templateId,
|
|
19
|
+
contractId: params.paymentStreamContractId,
|
|
20
|
+
choice: 'ActivePaymentStream_Refund',
|
|
21
|
+
choiceArgument,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=refund.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/refund.ts"],"names":[],"mappings":";;AAWA,0EAuBC;AAjCD,6FAA0E;AAU1E,SAAgB,+BAA+B,CAC7C,MAAiC;IAEjC,MAAM,cAAc,GAAG;QACrB,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;QACD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;QACnD,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,IAAI,IAAI;KACpE,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,4BAA4B;YACpC,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommandWithDisclosedContracts } from '@open-captable-protocol/canton';
|
|
2
|
+
import type { PaymentContext } from '../utils/paymentContext';
|
|
3
|
+
export interface ReplaceLockedAmuletParams {
|
|
4
|
+
paymentStreamContractId: string;
|
|
5
|
+
newAmulets: string[];
|
|
6
|
+
amountToLock: string;
|
|
7
|
+
paymentContext: PaymentContext;
|
|
8
|
+
}
|
|
9
|
+
export declare function buildReplaceLockedAmuletCommand(params: ReplaceLockedAmuletParams): CommandWithDisclosedContracts;
|
|
10
|
+
//# sourceMappingURL=replaceLockedAmulet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replaceLockedAmulet.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,yBAAyB,GAChC,6BAA6B,CAuB/B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildReplaceLockedAmuletCommand = buildReplaceLockedAmuletCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildReplaceLockedAmuletCommand(params) {
|
|
6
|
+
const choiceArguments = {
|
|
7
|
+
newAmulets: params.newAmulets,
|
|
8
|
+
amountToLock: params.amountToLock,
|
|
9
|
+
paymentContext: {
|
|
10
|
+
amuletRulesCid: params.paymentContext.amuletRulesCid,
|
|
11
|
+
openMiningRoundCid: params.paymentContext.openMiningRoundCid,
|
|
12
|
+
featuredAppRight: params.paymentContext.featuredAppRight,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
const command = {
|
|
16
|
+
ExerciseCommand: {
|
|
17
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
18
|
+
.templateId,
|
|
19
|
+
contractId: params.paymentStreamContractId,
|
|
20
|
+
choice: 'ActivePaymentStream_ReplaceLockedAmulet',
|
|
21
|
+
choiceArgument: choiceArguments,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
return { command, disclosedContracts: [] };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=replaceLockedAmulet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replaceLockedAmulet.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/replaceLockedAmulet.ts"],"names":[],"mappings":";;AAYA,0EAyBC;AApCD,6FAA0E;AAW1E,SAAgB,+BAA+B,CAC7C,MAAiC;IAEjC,MAAM,eAAe,GAAG;QACtB,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,yCAAyC;YACjD,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CommandWithDisclosedContracts } from '@open-captable-protocol/canton';
|
|
2
|
+
import type { PaymentContext } from '../utils/paymentContext';
|
|
3
|
+
export interface WithdrawFundsParams {
|
|
4
|
+
paymentStreamContractId: string;
|
|
5
|
+
amountToKeepLocked: string;
|
|
6
|
+
paymentContext: PaymentContext;
|
|
7
|
+
}
|
|
8
|
+
export declare function buildWithdrawFundsCommand(params: WithdrawFundsParams): CommandWithDisclosedContracts;
|
|
9
|
+
//# sourceMappingURL=withdrawFunds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawFunds.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/withdrawFunds.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mBAAmB,GAC1B,6BAA6B,CAsB/B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildWithdrawFundsCommand = buildWithdrawFundsCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildWithdrawFundsCommand(params) {
|
|
6
|
+
const choiceArguments = {
|
|
7
|
+
amountToKeepLocked: params.amountToKeepLocked,
|
|
8
|
+
paymentContext: {
|
|
9
|
+
amuletRulesCid: params.paymentContext.amuletRulesCid,
|
|
10
|
+
openMiningRoundCid: params.paymentContext.openMiningRoundCid,
|
|
11
|
+
featuredAppRight: params.paymentContext.featuredAppRight,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const command = {
|
|
15
|
+
ExerciseCommand: {
|
|
16
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream.ActivePaymentStream
|
|
17
|
+
.templateId,
|
|
18
|
+
contractId: params.paymentStreamContractId,
|
|
19
|
+
choice: 'ActivePaymentStream_WithdrawFunds',
|
|
20
|
+
choiceArgument: choiceArguments,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
return { command, disclosedContracts: [] };
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=withdrawFunds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawFunds.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/activePaymentStream/withdrawFunds.ts"],"names":[],"mappings":";;AAWA,8DAwBC;AAlCD,6FAA0E;AAU1E,SAAgB,yBAAyB,CACvC,MAA2B;IAE3B,MAAM,eAAe,GAAG;QACtB,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;QAC7C,cAAc,EAAE;YACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc;YACpD,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,kBAAkB;YAC5D,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;SACzD;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB;iBACjE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,uBAAuB;YAC1C,MAAM,EAAE,mCAAmC;YAC3C,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './partyMigrationProposal';
|
|
2
|
+
export * from './paymentStreamChangeProposal';
|
|
3
|
+
export { buildCreatePaymentStreamProposalCommand } from './paymentStreamFactory';
|
|
4
|
+
export type { CreatePaymentStreamProposalParams, PaymentStreamAmountInput, PaymentStreamPreciseTimeInput, PaymentStreamProposalInput, PaymentStreamRelativeTimeInput, PaymentStreamTimeInput, } from './paymentStreamFactory';
|
|
5
|
+
export { buildActivePaymentStreamChangePartyCommand, buildAddFundsCommand, buildArchiveInactivePaymentStreamCommand, buildCancelPaymentStreamCommand, buildProcessFreeTrialCommand, buildProcessPaymentCommand, buildProposeChangesCommand, buildRefundPaymentStreamCommand, buildReplaceLockedAmuletCommand, buildWithdrawFundsCommand, } from './activePaymentStream';
|
|
6
|
+
export type { ActivePaymentStreamChangePartyParams, AddFundsParams, ArchiveInactivePaymentStreamParams, CancelPaymentStreamParams, PaymentStreamChanges, ProcessFreeTrialParams, ProcessPaymentParams, ProposeChangesParams, RefundPaymentStreamParams, ReplaceLockedAmuletParams, WithdrawFundsParams, } from './activePaymentStream';
|
|
7
|
+
export { buildPaymentContext, buildPaymentContextWithAmulets, getFactoryContractId, getFactoryDisclosedContracts, getProposedPaymentStreamDisclosedContracts, } from './utils';
|
|
8
|
+
export type { FactoryContractInfo, Network, PaymentContext, PaymentContextWithAmulets, PaymentContextWithAmuletsAndDisclosed, PaymentContextWithDisclosedContracts, } from './utils';
|
|
9
|
+
export { isPaymentStreamReadyForProcessing, secondsToMicroseconds, } from './types/activePaymentStream';
|
|
10
|
+
export type { ActivePaymentStreamContract, ActivePaymentStreamPayload, PaymentStreamAmount, PaymentStreamDetails, PaymentStreamStats, ProcessorContext, } from './types/activePaymentStream';
|
|
11
|
+
export type { LockFundsInput } from './types/lockFundsInput';
|
|
12
|
+
export { areAllNonPayerPartiesApproved, isProposalPendingPayerApproval, isProposalPendingProcessorApproval, isProposalPendingRecipientApproval, } from './types/proposedPaymentStream';
|
|
13
|
+
export type { Approvals, PaymentStreamProposal, ProposedPaymentStreamContract, ProposedPaymentStreamPayload, } from './types/proposedPaymentStream';
|
|
14
|
+
export { buildEditPaymentStreamProposalCommand, buildProposedPaymentStreamApproveCommand, buildProposedPaymentStreamChangePartyCommand, buildProposedPaymentStreamStartCommand, buildProposedPaymentStreamWithdrawCommand, } from './proposedPaymentStream';
|
|
15
|
+
export type { EditPaymentStreamProposalParams, PaymentStreamProposalChanges, ProposedPaymentStreamApproveParams, ProposedPaymentStreamChangePartyParams, ProposedPaymentStreamStartParams, ProposedPaymentStreamWithdrawParams, } from './proposedPaymentStream';
|
|
16
|
+
export type { PartyRole as ProposedPaymentStreamPartyRole } from './types/partyRole';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/functions/PaymentStreams/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAE9C,OAAO,EAAE,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AACjF,YAAY,EACV,iCAAiC,EACjC,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,0CAA0C,EAC1C,oBAAoB,EACpB,wCAAwC,EACxC,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,oCAAoC,EACpC,cAAc,EACd,kCAAkC,EAClC,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,0CAA0C,GAC3C,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,yBAAyB,EACzB,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,iCAAiC,EACjC,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,SAAS,EACT,qBAAqB,EACrB,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,qCAAqC,EACrC,wCAAwC,EACxC,4CAA4C,EAC5C,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,+BAA+B,EAC/B,4BAA4B,EAC5B,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,SAAS,IAAI,8BAA8B,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.buildProposedPaymentStreamWithdrawCommand = exports.buildProposedPaymentStreamStartCommand = exports.buildProposedPaymentStreamChangePartyCommand = exports.buildProposedPaymentStreamApproveCommand = exports.buildEditPaymentStreamProposalCommand = exports.isProposalPendingRecipientApproval = exports.isProposalPendingProcessorApproval = exports.isProposalPendingPayerApproval = exports.areAllNonPayerPartiesApproved = exports.secondsToMicroseconds = exports.isPaymentStreamReadyForProcessing = exports.getProposedPaymentStreamDisclosedContracts = exports.getFactoryDisclosedContracts = exports.getFactoryContractId = exports.buildPaymentContextWithAmulets = exports.buildPaymentContext = exports.buildWithdrawFundsCommand = exports.buildReplaceLockedAmuletCommand = exports.buildRefundPaymentStreamCommand = exports.buildProposeChangesCommand = exports.buildProcessPaymentCommand = exports.buildProcessFreeTrialCommand = exports.buildCancelPaymentStreamCommand = exports.buildArchiveInactivePaymentStreamCommand = exports.buildAddFundsCommand = exports.buildActivePaymentStreamChangePartyCommand = exports.buildCreatePaymentStreamProposalCommand = void 0;
|
|
18
|
+
__exportStar(require("./partyMigrationProposal"), exports);
|
|
19
|
+
__exportStar(require("./paymentStreamChangeProposal"), exports);
|
|
20
|
+
// Export paymentStream factory with explicit types to avoid naming conflicts
|
|
21
|
+
var paymentStreamFactory_1 = require("./paymentStreamFactory");
|
|
22
|
+
Object.defineProperty(exports, "buildCreatePaymentStreamProposalCommand", { enumerable: true, get: function () { return paymentStreamFactory_1.buildCreatePaymentStreamProposalCommand; } });
|
|
23
|
+
// Export activePaymentStream explicitly to avoid PaymentContext conflict with utils
|
|
24
|
+
var activePaymentStream_1 = require("./activePaymentStream");
|
|
25
|
+
Object.defineProperty(exports, "buildActivePaymentStreamChangePartyCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildActivePaymentStreamChangePartyCommand; } });
|
|
26
|
+
Object.defineProperty(exports, "buildAddFundsCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildAddFundsCommand; } });
|
|
27
|
+
Object.defineProperty(exports, "buildArchiveInactivePaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildArchiveInactivePaymentStreamCommand; } });
|
|
28
|
+
Object.defineProperty(exports, "buildCancelPaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildCancelPaymentStreamCommand; } });
|
|
29
|
+
Object.defineProperty(exports, "buildProcessFreeTrialCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProcessFreeTrialCommand; } });
|
|
30
|
+
Object.defineProperty(exports, "buildProcessPaymentCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProcessPaymentCommand; } });
|
|
31
|
+
Object.defineProperty(exports, "buildProposeChangesCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildProposeChangesCommand; } });
|
|
32
|
+
Object.defineProperty(exports, "buildRefundPaymentStreamCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildRefundPaymentStreamCommand; } });
|
|
33
|
+
Object.defineProperty(exports, "buildReplaceLockedAmuletCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildReplaceLockedAmuletCommand; } });
|
|
34
|
+
Object.defineProperty(exports, "buildWithdrawFundsCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildWithdrawFundsCommand; } });
|
|
35
|
+
// Export utils last with explicit types to avoid conflicts
|
|
36
|
+
var utils_1 = require("./utils");
|
|
37
|
+
Object.defineProperty(exports, "buildPaymentContext", { enumerable: true, get: function () { return utils_1.buildPaymentContext; } });
|
|
38
|
+
Object.defineProperty(exports, "buildPaymentContextWithAmulets", { enumerable: true, get: function () { return utils_1.buildPaymentContextWithAmulets; } });
|
|
39
|
+
Object.defineProperty(exports, "getFactoryContractId", { enumerable: true, get: function () { return utils_1.getFactoryContractId; } });
|
|
40
|
+
Object.defineProperty(exports, "getFactoryDisclosedContracts", { enumerable: true, get: function () { return utils_1.getFactoryDisclosedContracts; } });
|
|
41
|
+
Object.defineProperty(exports, "getProposedPaymentStreamDisclosedContracts", { enumerable: true, get: function () { return utils_1.getProposedPaymentStreamDisclosedContracts; } });
|
|
42
|
+
// Export types
|
|
43
|
+
var activePaymentStream_2 = require("./types/activePaymentStream");
|
|
44
|
+
Object.defineProperty(exports, "isPaymentStreamReadyForProcessing", { enumerable: true, get: function () { return activePaymentStream_2.isPaymentStreamReadyForProcessing; } });
|
|
45
|
+
Object.defineProperty(exports, "secondsToMicroseconds", { enumerable: true, get: function () { return activePaymentStream_2.secondsToMicroseconds; } });
|
|
46
|
+
var proposedPaymentStream_1 = require("./types/proposedPaymentStream");
|
|
47
|
+
Object.defineProperty(exports, "areAllNonPayerPartiesApproved", { enumerable: true, get: function () { return proposedPaymentStream_1.areAllNonPayerPartiesApproved; } });
|
|
48
|
+
Object.defineProperty(exports, "isProposalPendingPayerApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingPayerApproval; } });
|
|
49
|
+
Object.defineProperty(exports, "isProposalPendingProcessorApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingProcessorApproval; } });
|
|
50
|
+
Object.defineProperty(exports, "isProposalPendingRecipientApproval", { enumerable: true, get: function () { return proposedPaymentStream_1.isProposalPendingRecipientApproval; } });
|
|
51
|
+
// Re-export proposedPaymentStream with explicit exports to avoid PartyRole conflict
|
|
52
|
+
var proposedPaymentStream_2 = require("./proposedPaymentStream");
|
|
53
|
+
Object.defineProperty(exports, "buildEditPaymentStreamProposalCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildEditPaymentStreamProposalCommand; } });
|
|
54
|
+
Object.defineProperty(exports, "buildProposedPaymentStreamApproveCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamApproveCommand; } });
|
|
55
|
+
Object.defineProperty(exports, "buildProposedPaymentStreamChangePartyCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamChangePartyCommand; } });
|
|
56
|
+
Object.defineProperty(exports, "buildProposedPaymentStreamStartCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamStartCommand; } });
|
|
57
|
+
Object.defineProperty(exports, "buildProposedPaymentStreamWithdrawCommand", { enumerable: true, get: function () { return proposedPaymentStream_2.buildProposedPaymentStreamWithdrawCommand; } });
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/PaymentStreams/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,gEAA8C;AAC9C,6EAA6E;AAC7E,+DAAiF;AAAxE,+IAAA,uCAAuC,OAAA;AAUhD,oFAAoF;AACpF,6DAW+B;AAV7B,iJAAA,0CAA0C,OAAA;AAC1C,2HAAA,oBAAoB,OAAA;AACpB,+IAAA,wCAAwC,OAAA;AACxC,sIAAA,+BAA+B,OAAA;AAC/B,mIAAA,4BAA4B,OAAA;AAC5B,iIAAA,0BAA0B,OAAA;AAC1B,iIAAA,0BAA0B,OAAA;AAC1B,sIAAA,+BAA+B,OAAA;AAC/B,sIAAA,+BAA+B,OAAA;AAC/B,gIAAA,yBAAyB,OAAA;AAgB3B,2DAA2D;AAC3D,iCAMiB;AALf,4GAAA,mBAAmB,OAAA;AACnB,uHAAA,8BAA8B,OAAA;AAC9B,6GAAA,oBAAoB,OAAA;AACpB,qHAAA,4BAA4B,OAAA;AAC5B,mIAAA,0CAA0C,OAAA;AAW5C,eAAe;AACf,mEAGqC;AAFnC,wIAAA,iCAAiC,OAAA;AACjC,4HAAA,qBAAqB,OAAA;AAWvB,uEAKuC;AAJrC,sIAAA,6BAA6B,OAAA;AAC7B,uIAAA,8BAA8B,OAAA;AAC9B,2IAAA,kCAAkC,OAAA;AAClC,2IAAA,kCAAkC,OAAA;AASpC,oFAAoF;AACpF,iEAMiC;AAL/B,8IAAA,qCAAqC,OAAA;AACrC,iJAAA,wCAAwC,OAAA;AACxC,qJAAA,4CAA4C,OAAA;AAC5C,+IAAA,sCAAsC,OAAA;AACtC,kJAAA,yCAAyC,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
export interface PartyMigrationProposalApproveParams {
|
|
3
|
+
migrationProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function buildPartyMigrationProposalApproveCommand(params: PartyMigrationProposalApproveParams): Command;
|
|
7
|
+
//# sourceMappingURL=approve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/approve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,mCAAmC;IAClD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,mCAAmC,GAC1C,OAAO,CAaT"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPartyMigrationProposalApproveCommand = buildPartyMigrationProposalApproveCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildPartyMigrationProposalApproveCommand(params) {
|
|
6
|
+
return {
|
|
7
|
+
ExerciseCommand: {
|
|
8
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal
|
|
9
|
+
.PartyMigrationProposal.templateId,
|
|
10
|
+
contractId: params.migrationProposalContractId,
|
|
11
|
+
choice: 'PartyMigrationProposal_Approve',
|
|
12
|
+
choiceArgument: {
|
|
13
|
+
actor: params.actor,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=approve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/approve.ts"],"names":[],"mappings":";;AAQA,8FAeC;AAtBD,6FAA0E;AAO1E,SAAgB,yCAAyC,CACvD,MAA2C;IAE3C,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,sBAAsB;iBAChD,sBAAsB,CAAC,UAAU;YACtC,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,gCAAgC;YACxC,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
export interface PartyMigrationProposalArchiveParams {
|
|
3
|
+
migrationProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildPartyMigrationProposalArchiveCommand(params: PartyMigrationProposalArchiveParams): Command;
|
|
8
|
+
//# sourceMappingURL=archive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/archive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,mCAAmC;IAClD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,mCAAmC,GAC1C,OAAO,CAgBT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPartyMigrationProposalArchiveCommand = buildPartyMigrationProposalArchiveCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildPartyMigrationProposalArchiveCommand(params) {
|
|
6
|
+
const choiceArgument = {
|
|
7
|
+
actor: params.actor,
|
|
8
|
+
description: params.description ?? null,
|
|
9
|
+
};
|
|
10
|
+
return {
|
|
11
|
+
ExerciseCommand: {
|
|
12
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PartyMigrationProposal
|
|
13
|
+
.PartyMigrationProposal.templateId,
|
|
14
|
+
contractId: params.migrationProposalContractId,
|
|
15
|
+
choice: 'PartyMigrationProposal_Archive',
|
|
16
|
+
choiceArgument,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/archive.ts"],"names":[],"mappings":";;AASA,8FAkBC;AA1BD,6FAA0E;AAQ1E,SAAgB,yCAAyC,CACvD,MAA2C;IAE3C,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;KACxC,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,sBAAsB;iBAChD,sBAAsB,CAAC,UAAU;YACtC,UAAU,EAAE,MAAM,CAAC,2BAA2B;YAC9C,MAAM,EAAE,gCAAgC;YACxC,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./approve"), exports);
|
|
18
|
+
__exportStar(require("./archive"), exports);
|
|
19
|
+
__exportStar(require("./migrateActivePaymentStream"), exports);
|
|
20
|
+
__exportStar(require("./migrateProposedPaymentStream"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,+DAA6C;AAC7C,iEAA+C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from '@fairmint/canton-node-sdk/build/src/clients/ledger-json-api/schemas/api/commands';
|
|
2
|
+
export interface MigrateActivePaymentStreamParams {
|
|
3
|
+
migrationProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
activePaymentStreamCid: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildMigrateActivePaymentStreamCommand(params: MigrateActivePaymentStreamParams): Command;
|
|
8
|
+
//# sourceMappingURL=migrateActivePaymentStream.d.ts.map
|