@open-captable-protocol/canton 0.2.92 → 0.2.93

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.
@@ -140,7 +140,7 @@ export declare class OcpClient {
140
140
  };
141
141
  PaymentStreams: {
142
142
  paymentStreamFactory: {
143
- buildCreateProposedPaymentStreamCommand: (params: import('./functions').CreateProposedPaymentStreamParams) => CommandWithDisclosedContracts;
143
+ buildCreatePaymentStreamProposalCommand: (params: import('./functions').CreatePaymentStreamProposalParams) => CommandWithDisclosedContracts;
144
144
  };
145
145
  proposedPaymentStream: {
146
146
  buildApproveCommand: (params: import('./functions').ProposedPaymentStreamApproveParams) => CommandWithDisclosedContracts;
package/dist/OcpClient.js CHANGED
@@ -107,9 +107,9 @@ class OcpClient {
107
107
  /* eslint-disable @typescript-eslint/no-require-imports */
108
108
  this.PaymentStreams = {
109
109
  paymentStreamFactory: {
110
- buildCreateProposedPaymentStreamCommand: (params) => {
111
- const { buildCreateProposedPaymentStreamCommand } = require('./functions/PaymentStreams');
112
- return buildCreateProposedPaymentStreamCommand(params);
110
+ buildCreatePaymentStreamProposalCommand: (params) => {
111
+ const { buildCreatePaymentStreamProposalCommand } = require('./functions/PaymentStreams');
112
+ return buildCreatePaymentStreamProposalCommand(params);
113
113
  },
114
114
  },
115
115
  proposedPaymentStream: {
@@ -1,7 +1,7 @@
1
1
  export * from './partyMigrationProposal';
2
2
  export * from './paymentStreamChangeProposal';
3
- export { buildCreateProposedPaymentStreamCommand } from './paymentStreamFactory';
4
- export type { CreateProposedPaymentStreamParams, PaymentStreamAmountInput, PaymentStreamProposalInput, PaymentStreamTimeInput, } from './paymentStreamFactory';
3
+ export { buildCreatePaymentStreamProposalCommand } from './paymentStreamFactory';
4
+ export type { CreatePaymentStreamProposalParams, PaymentStreamAmountInput, PaymentStreamProposalInput, PaymentStreamTimeInput, } from './paymentStreamFactory';
5
5
  export { buildActivePaymentStreamChangePartyCommand, buildAddFundsCommand, buildArchiveInactivePaymentStreamCommand, buildCancelPaymentStreamCommand, buildProcessFreeTrialCommand, buildProcessPaymentCommand, buildProposeChangesCommand, buildRefundPaymentStreamCommand, buildReplaceLockedAmuletCommand, buildWithdrawFundsCommand, } from './activePaymentStream';
6
6
  export type { ActivePaymentStreamChangePartyParams, AddFundsParams, ArchiveInactivePaymentStreamParams, CancelPaymentStreamParams, PaymentStreamChanges, ProcessFreeTrialParams, ProcessPaymentParams, ProposeChangesParams, RefundPaymentStreamParams, ReplaceLockedAmuletParams, WithdrawFundsParams, } from './activePaymentStream';
7
7
  export { buildPaymentContext, buildPaymentContextWithAmulets, getFactoryContractId, getFactoryDisclosedContracts, getProposedPaymentStreamDisclosedContracts, } from './utils';
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
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.buildCreateProposedPaymentStreamCommand = void 0;
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
18
  __exportStar(require("./partyMigrationProposal"), exports);
19
19
  __exportStar(require("./paymentStreamChangeProposal"), exports);
20
20
  // Export paymentStream factory with explicit types to avoid naming conflicts
21
21
  var paymentStreamFactory_1 = require("./paymentStreamFactory");
22
- Object.defineProperty(exports, "buildCreateProposedPaymentStreamCommand", { enumerable: true, get: function () { return paymentStreamFactory_1.buildCreateProposedPaymentStreamCommand; } });
22
+ Object.defineProperty(exports, "buildCreatePaymentStreamProposalCommand", { enumerable: true, get: function () { return paymentStreamFactory_1.buildCreatePaymentStreamProposalCommand; } });
23
23
  // Export activePaymentStream explicitly to avoid PaymentContext conflict with utils
24
24
  var activePaymentStream_1 = require("./activePaymentStream");
25
25
  Object.defineProperty(exports, "buildActivePaymentStreamChangePartyCommand", { enumerable: true, get: function () { return activePaymentStream_1.buildActivePaymentStreamChangePartyCommand; } });
@@ -27,10 +27,10 @@ export interface PaymentStreamProposalInput {
27
27
  metadata?: Record<string, string>;
28
28
  observers?: string[];
29
29
  }
30
- export interface CreateProposedPaymentStreamParams {
30
+ export interface CreatePaymentStreamProposalParams {
31
31
  factoryContractId: string;
32
32
  actor: string;
33
33
  paymentStreamProposal: PaymentStreamProposalInput;
34
34
  }
35
- export declare function buildCreateProposedPaymentStreamCommand(params: CreateProposedPaymentStreamParams): CommandWithDisclosedContracts;
35
+ export declare function buildCreatePaymentStreamProposalCommand(params: CreatePaymentStreamProposalParams): CommandWithDisclosedContracts;
36
36
  //# sourceMappingURL=createPaymentStreamProposal.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildCreateProposedPaymentStreamCommand = buildCreateProposedPaymentStreamCommand;
3
+ exports.buildCreatePaymentStreamProposalCommand = buildCreatePaymentStreamProposalCommand;
4
4
  const open_captable_protocol_daml_js_1 = require("@fairmint/open-captable-protocol-daml-js");
5
5
  const typeConversions_1 = require("../../../utils/typeConversions");
6
6
  function paymentStreamAmountToDaml(amount) {
@@ -55,7 +55,7 @@ function paymentStreamProposalToDaml(proposal) {
55
55
  }
56
56
  return result;
57
57
  }
58
- function buildCreateProposedPaymentStreamCommand(params) {
58
+ function buildCreatePaymentStreamProposalCommand(params) {
59
59
  const choiceArguments = {
60
60
  actor: params.actor,
61
61
  paymentStreamProposal: paymentStreamProposalToDaml(params.paymentStreamProposal),
@@ -64,7 +64,7 @@ function buildCreateProposedPaymentStreamCommand(params) {
64
64
  ExerciseCommand: {
65
65
  templateId: open_captable_protocol_daml_js_1.CantonPayments.PaymentStream.PaymentStreamFactory.PaymentStreamFactory.templateId,
66
66
  contractId: params.factoryContractId,
67
- choice: 'PaymentStreamFactory_CreateProposedPaymentStream',
67
+ choice: 'PaymentStreamFactory_CreatePaymentStreamProposal',
68
68
  choiceArgument: choiceArguments,
69
69
  },
70
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-captable-protocol/canton",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "description": "A TypeScript SDK for interacting with the Open CapTable Protocol (OCP) Factory contract on Canton blockchain",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",