@fairmint/canton-fairmint-sdk 0.0.58 → 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 +4 -7
- 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
package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateActivePaymentStream.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,gCAAgC,GACvC,OAAO,CAcT"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildMigrateActivePaymentStreamCommand = buildMigrateActivePaymentStreamCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildMigrateActivePaymentStreamCommand(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_MigrateActivePaymentStream',
|
|
12
|
+
choiceArgument: {
|
|
13
|
+
actor: params.actor,
|
|
14
|
+
activePaymentStreamCid: params.activePaymentStreamCid,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=migrateActivePaymentStream.js.map
|
package/dist/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateActivePaymentStream.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateActivePaymentStream.ts"],"names":[],"mappings":";;AASA,wFAgBC;AAxBD,6FAA0E;AAQ1E,SAAgB,sCAAsC,CACpD,MAAwC;IAExC,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,mDAAmD;YAC3D,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;aACtD;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts
ADDED
|
@@ -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 MigrateProposedPaymentStreamParams {
|
|
3
|
+
migrationProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
proposedPaymentStreamCid: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildMigrateProposedPaymentStreamCommand(params: MigrateProposedPaymentStreamParams): Command;
|
|
8
|
+
//# sourceMappingURL=migrateProposedPaymentStream.d.ts.map
|
package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateProposedPaymentStream.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,kCAAkC;IACjD,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,kCAAkC,GACzC,OAAO,CAcT"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildMigrateProposedPaymentStreamCommand = buildMigrateProposedPaymentStreamCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildMigrateProposedPaymentStreamCommand(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_MigrateProposedPaymentStream',
|
|
12
|
+
choiceArgument: {
|
|
13
|
+
actor: params.actor,
|
|
14
|
+
proposedPaymentStreamCid: params.proposedPaymentStreamCid,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=migrateProposedPaymentStream.js.map
|
package/dist/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateProposedPaymentStream.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/partyMigrationProposal/migrateProposedPaymentStream.ts"],"names":[],"mappings":";;AASA,4FAgBC;AAxBD,6FAA0E;AAQ1E,SAAgB,wCAAwC,CACtD,MAA0C;IAE1C,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,qDAAqD;YAC7D,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;aAC1D;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 PaymentStreamChangeProposalApplyParams {
|
|
3
|
+
changeProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
activePaymentStreamCid: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildPaymentStreamChangeProposalApplyCommand(params: PaymentStreamChangeProposalApplyParams): Command;
|
|
8
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,sCAAsC;IACrD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,4CAA4C,CAC1D,MAAM,EAAE,sCAAsC,GAC7C,OAAO,CAcT"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPaymentStreamChangeProposalApplyCommand = buildPaymentStreamChangeProposalApplyCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildPaymentStreamChangeProposalApplyCommand(params) {
|
|
6
|
+
return {
|
|
7
|
+
ExerciseCommand: {
|
|
8
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream
|
|
9
|
+
.PaymentStreamChangeProposal.templateId,
|
|
10
|
+
contractId: params.changeProposalContractId,
|
|
11
|
+
choice: 'PaymentStreamChangeProposal_Apply',
|
|
12
|
+
choiceArgument: {
|
|
13
|
+
actor: params.actor,
|
|
14
|
+
activePaymentStreamCid: params.activePaymentStreamCid,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=apply.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/apply.ts"],"names":[],"mappings":";;AASA,oGAgBC;AAxBD,6FAA0E;AAQ1E,SAAgB,4CAA4C,CAC1D,MAA8C;IAE9C,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB;iBAC7C,2BAA2B,CAAC,UAAU;YAC3C,UAAU,EAAE,MAAM,CAAC,wBAAwB;YAC3C,MAAM,EAAE,mCAAmC;YAC3C,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;aACtD;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -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 PaymentStreamChangeProposalApproveParams {
|
|
3
|
+
changeProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function buildPaymentStreamChangeProposalApproveCommand(params: PaymentStreamChangeProposalApproveParams): Command;
|
|
7
|
+
//# sourceMappingURL=approve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/approve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,wCAAwC;IACvD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAaT"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPaymentStreamChangeProposalApproveCommand = buildPaymentStreamChangeProposalApproveCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildPaymentStreamChangeProposalApproveCommand(params) {
|
|
6
|
+
return {
|
|
7
|
+
ExerciseCommand: {
|
|
8
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ActivePaymentStream
|
|
9
|
+
.PaymentStreamChangeProposal.templateId,
|
|
10
|
+
contractId: params.changeProposalContractId,
|
|
11
|
+
choice: 'PaymentStreamChangeProposal_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/paymentStreamChangeProposal/approve.ts"],"names":[],"mappings":";;AAQA,wGAeC;AAtBD,6FAA0E;AAO1E,SAAgB,8CAA8C,CAC5D,MAAgD;IAEhD,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,mBAAmB;iBAC7C,2BAA2B,CAAC,UAAU;YAC3C,UAAU,EAAE,MAAM,CAAC,wBAAwB;YAC3C,MAAM,EAAE,qCAAqC;YAC7C,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./apply"), exports);
|
|
18
|
+
__exportStar(require("./approve"), exports);
|
|
19
|
+
__exportStar(require("./reject"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB"}
|
|
@@ -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 PaymentStreamChangeProposalRejectParams {
|
|
3
|
+
changeProposalContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildPaymentStreamChangeProposalRejectCommand(params: PaymentStreamChangeProposalRejectParams): Command;
|
|
8
|
+
//# sourceMappingURL=reject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reject.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/reject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,uCAAuC;IACtD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,6CAA6C,CAC3D,MAAM,EAAE,uCAAuC,GAC9C,OAAO,CAgBT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPaymentStreamChangeProposalRejectCommand = buildPaymentStreamChangeProposalRejectCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildPaymentStreamChangeProposalRejectCommand(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.ActivePaymentStream
|
|
13
|
+
.PaymentStreamChangeProposal.templateId,
|
|
14
|
+
contractId: params.changeProposalContractId,
|
|
15
|
+
choice: 'PaymentStreamChangeProposal_Reject',
|
|
16
|
+
choiceArgument,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=reject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reject.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamChangeProposal/reject.ts"],"names":[],"mappings":";;AASA,sGAkBC;AA1BD,6FAA0E;AAQ1E,SAAgB,6CAA6C,CAC3D,MAA+C;IAE/C,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,mBAAmB;iBAC7C,2BAA2B,CAAC,UAAU;YAC3C,UAAU,EAAE,MAAM,CAAC,wBAAwB;YAC3C,MAAM,EAAE,oCAAoC;YAC5C,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommandWithDisclosedContracts } from '@open-captable-protocol/canton';
|
|
2
|
+
import type { PaymentStreamProposalInput } from '../types/paymentStreamProposalInput';
|
|
3
|
+
export type { PaymentStreamAmountInput, PaymentStreamPreciseTimeInput, PaymentStreamProposalInput, PaymentStreamRelativeTimeInput, PaymentStreamTimeInput, } from '../types/paymentStreamProposalInput';
|
|
4
|
+
export interface CreatePaymentStreamProposalParams {
|
|
5
|
+
factoryContractId: string;
|
|
6
|
+
actor: string;
|
|
7
|
+
paymentStreamProposal: PaymentStreamProposalInput;
|
|
8
|
+
}
|
|
9
|
+
export declare function buildCreatePaymentStreamProposalCommand(params: CreatePaymentStreamProposalParams): CommandWithDisclosedContracts;
|
|
10
|
+
//# sourceMappingURL=createPaymentStreamProposal.d.ts.map
|
package/dist/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPaymentStreamProposal.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGtF,YAAY,EACV,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,iCAAiC;IAChD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,iCAAiC,GACxC,6BAA6B,CAoB/B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildCreatePaymentStreamProposalCommand = buildCreatePaymentStreamProposalCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
const paymentStreamDamlCodec_1 = require("../utils/paymentStreamDamlCodec");
|
|
6
|
+
function buildCreatePaymentStreamProposalCommand(params) {
|
|
7
|
+
const choiceArguments = {
|
|
8
|
+
actor: params.actor,
|
|
9
|
+
paymentStreamProposal: (0, paymentStreamDamlCodec_1.paymentStreamProposalToDaml)(params.paymentStreamProposal),
|
|
10
|
+
};
|
|
11
|
+
const command = {
|
|
12
|
+
ExerciseCommand: {
|
|
13
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PaymentStreamFactory.PaymentStreamFactory
|
|
14
|
+
.templateId,
|
|
15
|
+
contractId: params.factoryContractId,
|
|
16
|
+
choice: 'PaymentStreamFactory_CreatePaymentStreamProposal',
|
|
17
|
+
choiceArgument: choiceArguments,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
return { command, disclosedContracts: [] };
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=createPaymentStreamProposal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPaymentStreamProposal.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamFactory/createPaymentStreamProposal.ts"],"names":[],"mappings":";;AAoBA,0FAsBC;AAzCD,6FAA0E;AAG1E,4EAA8E;AAgB9E,SAAgB,uCAAuC,CACrD,MAAyC;IAEzC,MAAM,eAAe,GAAG;QACtB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,qBAAqB,EAAE,IAAA,oDAA2B,EAChD,MAAM,CAAC,qBAAqB,CAC7B;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC,oBAAoB;iBACnE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,iBAAiB;YACpC,MAAM,EAAE,kDAAkD;YAC1D,cAAc,EAAE,eAAe;SAChC;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamFactory/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./createPaymentStreamProposal"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/paymentStreamFactory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C"}
|
|
@@ -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 ProposedPaymentStreamApproveParams {
|
|
3
|
+
proposedPaymentStreamContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function buildProposedPaymentStreamApproveCommand(params: ProposedPaymentStreamApproveParams): Command;
|
|
7
|
+
//# sourceMappingURL=approve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/approve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,kCAAkC;IACjD,+BAA+B,EAAE,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,kCAAkC,GACzC,OAAO,CAeT"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProposedPaymentStreamApproveCommand = buildProposedPaymentStreamApproveCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildProposedPaymentStreamApproveCommand(params) {
|
|
6
|
+
const choiceArgument = {
|
|
7
|
+
actor: params.actor,
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
ExerciseCommand: {
|
|
11
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ProposedPaymentStream.ProposedPaymentStream
|
|
12
|
+
.templateId,
|
|
13
|
+
contractId: params.proposedPaymentStreamContractId,
|
|
14
|
+
choice: 'ProposedPaymentStream_Approve',
|
|
15
|
+
choiceArgument,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=approve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/approve.ts"],"names":[],"mappings":";;AAQA,4FAiBC;AAxBD,6FAA0E;AAO1E,SAAgB,wCAAwC,CACtD,MAA0C;IAE1C,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,qBAAqB,CAAC,qBAAqB;iBACrE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,+BAA+B;YAClD,MAAM,EAAE,+BAA+B;YACvC,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 { PartyRole } from '../types/partyRole';
|
|
3
|
+
export interface ProposedPaymentStreamChangePartyParams {
|
|
4
|
+
proposedPaymentStreamContractId: string;
|
|
5
|
+
partyType: PartyRole;
|
|
6
|
+
oldParty: string;
|
|
7
|
+
newParty: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function buildProposedPaymentStreamChangePartyCommand(params: ProposedPaymentStreamChangePartyParams): Command;
|
|
10
|
+
//# sourceMappingURL=changeParty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changeParty.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/changeParty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAEhH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,sCAAsC;IACrD,+BAA+B,EAAE,MAAM,CAAC;IACxC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,4CAA4C,CAC1D,MAAM,EAAE,sCAAsC,GAC7C,OAAO,CAeT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProposedPaymentStreamChangePartyCommand = buildProposedPaymentStreamChangePartyCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildProposedPaymentStreamChangePartyCommand(params) {
|
|
6
|
+
return {
|
|
7
|
+
ExerciseCommand: {
|
|
8
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ProposedPaymentStream.ProposedPaymentStream
|
|
9
|
+
.templateId,
|
|
10
|
+
contractId: params.proposedPaymentStreamContractId,
|
|
11
|
+
choice: 'ProposedPaymentStream_ChangeParty',
|
|
12
|
+
choiceArgument: {
|
|
13
|
+
partyType: params.partyType,
|
|
14
|
+
oldParty: params.oldParty,
|
|
15
|
+
newParty: params.newParty,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=changeParty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changeParty.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/changeParty.ts"],"names":[],"mappings":";;AAWA,oGAiBC;AA3BD,6FAA0E;AAU1E,SAAgB,4CAA4C,CAC1D,MAA8C;IAE9C,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,qBAAqB,CAAC,qBAAqB;iBACrE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,+BAA+B;YAClD,MAAM,EAAE,mCAAmC;YAC3C,cAAc,EAAE;gBACd,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC1B;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 PaymentStreamProposalChanges {
|
|
4
|
+
payer?: string;
|
|
5
|
+
recipient?: string;
|
|
6
|
+
recipientProvider?: string;
|
|
7
|
+
recipientBeneficiaries?: Array<{
|
|
8
|
+
party: string;
|
|
9
|
+
weight: string;
|
|
10
|
+
}> | null;
|
|
11
|
+
recipientPaymentPerDay?: PaymentStreamAmountInput;
|
|
12
|
+
processorPaymentPerDay?: PaymentStreamAmountInput | null;
|
|
13
|
+
paymentsEndAt?: PaymentStreamTimeInput | null;
|
|
14
|
+
prepayWindow?: string | null;
|
|
15
|
+
freeTrialExpiration?: PaymentStreamTimeInput | null;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
metadata?: Record<string, string> | null;
|
|
18
|
+
observers?: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface EditPaymentStreamProposalParams {
|
|
21
|
+
proposedPaymentStreamContractId: string;
|
|
22
|
+
actor: string;
|
|
23
|
+
changes: PaymentStreamProposalChanges;
|
|
24
|
+
description?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function buildEditPaymentStreamProposalCommand(params: EditPaymentStreamProposalParams): Command;
|
|
27
|
+
//# sourceMappingURL=editPaymentStreamProposal.d.ts.map
|
package/dist/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editPaymentStreamProposal.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.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,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,aAAa,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACpD,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,+BAA+B;IAC9C,+BAA+B,EAAE,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,4BAA4B,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA6DD,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAiBT"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildEditPaymentStreamProposalCommand = buildEditPaymentStreamProposalCommand;
|
|
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.payer !== undefined) {
|
|
10
|
+
result.payer = changes.payer;
|
|
11
|
+
}
|
|
12
|
+
if (changes.recipient !== undefined) {
|
|
13
|
+
result.recipient = changes.recipient;
|
|
14
|
+
}
|
|
15
|
+
if (changes.recipientProvider !== undefined) {
|
|
16
|
+
result.recipientProvider = changes.recipientProvider;
|
|
17
|
+
}
|
|
18
|
+
if (changes.recipientBeneficiaries !== undefined) {
|
|
19
|
+
result.recipientBeneficiaries = changes.recipientBeneficiaries;
|
|
20
|
+
}
|
|
21
|
+
if (changes.recipientPaymentPerDay !== undefined) {
|
|
22
|
+
result.recipientPaymentPerDay = (0, paymentStreamDamlCodec_1.paymentStreamAmountToDaml)(changes.recipientPaymentPerDay);
|
|
23
|
+
}
|
|
24
|
+
if (changes.processorPaymentPerDay !== undefined) {
|
|
25
|
+
result.processorPaymentPerDay =
|
|
26
|
+
changes.processorPaymentPerDay === null
|
|
27
|
+
? null
|
|
28
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamAmountToDaml)(changes.processorPaymentPerDay);
|
|
29
|
+
}
|
|
30
|
+
if (changes.paymentsEndAt !== undefined) {
|
|
31
|
+
result.paymentsEndAt =
|
|
32
|
+
changes.paymentsEndAt === null
|
|
33
|
+
? null
|
|
34
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamTimeToDaml)(changes.paymentsEndAt);
|
|
35
|
+
}
|
|
36
|
+
if (changes.prepayWindow !== undefined) {
|
|
37
|
+
result.prepayWindow =
|
|
38
|
+
changes.prepayWindow === null
|
|
39
|
+
? null
|
|
40
|
+
: (0, canton_1.relTimeToDAML)(changes.prepayWindow);
|
|
41
|
+
}
|
|
42
|
+
if (changes.freeTrialExpiration !== undefined) {
|
|
43
|
+
result.freeTrialExpiration =
|
|
44
|
+
changes.freeTrialExpiration === null
|
|
45
|
+
? null
|
|
46
|
+
: (0, paymentStreamDamlCodec_1.paymentStreamTimeToDaml)(changes.freeTrialExpiration);
|
|
47
|
+
}
|
|
48
|
+
if (changes.description !== undefined) {
|
|
49
|
+
result.description = changes.description;
|
|
50
|
+
}
|
|
51
|
+
if (changes.metadata !== undefined) {
|
|
52
|
+
result.metadata = changes.metadata;
|
|
53
|
+
}
|
|
54
|
+
if (changes.observers !== undefined) {
|
|
55
|
+
result.observers = changes.observers;
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
function buildEditPaymentStreamProposalCommand(params) {
|
|
60
|
+
const choiceArgument = {
|
|
61
|
+
actor: params.actor,
|
|
62
|
+
changes: changesToDaml(params.changes),
|
|
63
|
+
description: params.description ?? null,
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
ExerciseCommand: {
|
|
67
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ProposedPaymentStream.ProposedPaymentStream
|
|
68
|
+
.templateId,
|
|
69
|
+
contractId: params.proposedPaymentStreamContractId,
|
|
70
|
+
choice: 'ProposedPaymentStream_EditPaymentStreamProposal',
|
|
71
|
+
choiceArgument,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=editPaymentStreamProposal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editPaymentStreamProposal.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/editPaymentStreamProposal.ts"],"names":[],"mappings":";;AA8FA,sFAmBC;AAhHD,6FAA0E;AAC1E,2DAA+D;AAK/D,4EAIyC;AAwBzC,SAAS,aAAa,CACpB,OAAqC;IAErC,MAAM,MAAM,GAAqC,EAAE,CAAC;IAEpD,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC/B,CAAC;IACD,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACpC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACvC,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,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,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,mBAAmB,KAAK,SAAS,EAAE,CAAC;QAC9C,MAAM,CAAC,mBAAmB;YACxB,OAAO,CAAC,mBAAmB,KAAK,IAAI;gBAClC,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAA,gDAAuB,EAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC7D,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,qCAAqC,CACnD,MAAuC;IAEvC,MAAM,cAAc,GAAG;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;QACtC,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;KACxC,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,qBAAqB,CAAC,qBAAqB;iBACrE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,+BAA+B;YAClD,MAAM,EAAE,iDAAiD;YACzD,cAAc;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./changeParty"), exports);
|
|
19
|
+
__exportStar(require("./editPaymentStreamProposal"), exports);
|
|
20
|
+
__exportStar(require("./startPaymentStream"), exports);
|
|
21
|
+
__exportStar(require("./withdraw"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,8DAA4C;AAC5C,uDAAqC;AACrC,6CAA2B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CommandWithDisclosedContracts } from '@open-captable-protocol/canton';
|
|
2
|
+
import type { LockFundsInput } from '../types/lockFundsInput';
|
|
3
|
+
export interface ProposedPaymentStreamStartParams {
|
|
4
|
+
proposedPaymentStreamContractId: string;
|
|
5
|
+
lockFundsInput: LockFundsInput;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildProposedPaymentStreamStartCommand(params: ProposedPaymentStreamStartParams): CommandWithDisclosedContracts;
|
|
8
|
+
//# sourceMappingURL=startPaymentStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startPaymentStream.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,gCAAgC;IAC/C,+BAA+B,EAAE,MAAM,CAAC;IACxC,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,gCAAgC,GACvC,6BAA6B,CA0B/B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildProposedPaymentStreamStartCommand = buildProposedPaymentStreamStartCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildProposedPaymentStreamStartCommand(params) {
|
|
6
|
+
const choiceArgument = {
|
|
7
|
+
lockFundsInput: {
|
|
8
|
+
amuletInputs: params.lockFundsInput.amuletInputs,
|
|
9
|
+
amountToLock: params.lockFundsInput.amountToLock,
|
|
10
|
+
paymentContext: {
|
|
11
|
+
amuletRulesCid: params.lockFundsInput.paymentContext.amuletRulesCid,
|
|
12
|
+
openMiningRoundCid: params.lockFundsInput.paymentContext.openMiningRoundCid,
|
|
13
|
+
featuredAppRight: params.lockFundsInput.paymentContext.featuredAppRight,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
const command = {
|
|
18
|
+
ExerciseCommand: {
|
|
19
|
+
templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.ProposedPaymentStream.ProposedPaymentStream
|
|
20
|
+
.templateId,
|
|
21
|
+
contractId: params.proposedPaymentStreamContractId,
|
|
22
|
+
choice: 'ProposedPaymentStream_StartPaymentStream',
|
|
23
|
+
choiceArgument,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
return { command, disclosedContracts: [] };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=startPaymentStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startPaymentStream.js","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/startPaymentStream.ts"],"names":[],"mappings":";;AAUA,wFA4BC;AArCD,6FAA0E;AAS1E,SAAgB,sCAAsC,CACpD,MAAwC;IAExC,MAAM,cAAc,GAAG;QACrB,cAAc,EAAE;YACd,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,YAAY;YAChD,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,YAAY;YAChD,cAAc,EAAE;gBACd,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,cAAc;gBACnE,kBAAkB,EAChB,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,kBAAkB;gBACzD,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,gBAAgB;aACxE;SACF;KACF,CAAC;IAEF,MAAM,OAAO,GAAY;QACvB,eAAe,EAAE;YACf,UAAU,EACR,+CAAc,CAAC,aAAa,CAAC,qBAAqB,CAAC,qBAAqB;iBACrE,UAAU;YACf,UAAU,EAAE,MAAM,CAAC,+BAA+B;YAClD,MAAM,EAAE,0CAA0C;YAClD,cAAc;SACf;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC7C,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 ProposedPaymentStreamWithdrawParams {
|
|
3
|
+
proposedPaymentStreamContractId: string;
|
|
4
|
+
actor: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildProposedPaymentStreamWithdrawCommand(params: ProposedPaymentStreamWithdrawParams): Command;
|
|
8
|
+
//# sourceMappingURL=withdraw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../../src/functions/PaymentStreams/proposedPaymentStream/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAGhH,MAAM,WAAW,mCAAmC;IAClD,+BAA+B,EAAE,MAAM,CAAC;IACxC,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.buildProposedPaymentStreamWithdrawCommand = buildProposedPaymentStreamWithdrawCommand;
|
|
4
|
+
const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
|
|
5
|
+
function buildProposedPaymentStreamWithdrawCommand(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.ProposedPaymentStream.ProposedPaymentStream
|
|
13
|
+
.templateId,
|
|
14
|
+
contractId: params.proposedPaymentStreamContractId,
|
|
15
|
+
choice: 'ProposedPaymentStream_Withdraw',
|
|
16
|
+
choiceArgument,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=withdraw.js.map
|