@provablehq/sdk 0.6.11 → 0.6.13

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.
@@ -253,7 +253,6 @@ declare class ProgramManager {
253
253
  * @param {string} transferType The type of transfer to perform - options: 'private', 'privateToPublic', 'public', 'publicToPrivate'
254
254
  * @param {number} fee The fee to pay for the transfer
255
255
  * @param {boolean} privateFee Use a private record to pay the fee. If false this will use the account's public credit balance
256
- * @param {string | undefined} caller The caller of the function (if calling transfer_public)
257
256
  * @param {RecordSearchParams | undefined} recordSearchParams Optional parameters for finding the amount and fee
258
257
  * records for the transfer transaction
259
258
  * @param {RecordPlaintext | string} amountRecord Optional amount record to use for the transfer
@@ -275,12 +274,11 @@ declare class ProgramManager {
275
274
  * const tx_id = await programManager.transfer(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", "private", 0.2)
276
275
  * const transaction = await programManager.networkClient.getTransaction(tx_id);
277
276
  */
278
- buildTransferTransaction(amount: number, recipient: string, transferType: string, fee: number, privateFee: boolean, caller?: string, recordSearchParams?: RecordSearchParams, amountRecord?: RecordPlaintext | string, feeRecord?: RecordPlaintext | string, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<Transaction | Error>;
277
+ buildTransferTransaction(amount: number, recipient: string, transferType: string, fee: number, privateFee: boolean, recordSearchParams?: RecordSearchParams, amountRecord?: RecordPlaintext | string, feeRecord?: RecordPlaintext | string, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<Transaction | Error>;
279
278
  /**
280
279
  * Build a transfer_public transaction to transfer credits to another account for later submission to the Aleo network
281
280
  *
282
281
  * @param {number} amount The amount of credits to transfer
283
- * @param {string} caller The caller of the transfer (may be different from the signer)
284
282
  * @param {string} recipient The recipient of the transfer
285
283
  * @param {string} transferType The type of transfer to perform - options: 'private', 'privateToPublic', 'public', 'publicToPrivate'
286
284
  * @param {number} fee The fee to pay for the transfer
@@ -293,7 +291,7 @@ declare class ProgramManager {
293
291
  * @param {OfflineQuery | undefined} offlineQuery Optional offline query if creating transactions in an offline environment
294
292
  * @returns {Promise<string | Error>} The transaction id of the transfer transaction
295
293
  */
296
- buildTransferPublicTransaction(amount: number, caller: string, recipient: string, fee: number, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<Transaction | Error>;
294
+ buildTransferPublicTransaction(amount: number, recipient: string, fee: number, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<Transaction | Error>;
297
295
  /**
298
296
  * Build a transfer_public_as_signer transaction to transfer credits to another account for later submission to the Aleo network
299
297
  *
@@ -319,7 +317,6 @@ declare class ProgramManager {
319
317
  * @param {string} transferType The type of transfer to perform - options: 'private', 'privateToPublic', 'public', 'publicToPrivate'
320
318
  * @param {number} fee The fee to pay for the transfer
321
319
  * @param {boolean} privateFee Use a private record to pay the fee. If false this will use the account's public credit balance
322
- * @param {string | undefined} caller The caller of the function (if calling transfer_public)
323
320
  * @param {RecordSearchParams | undefined} recordSearchParams Optional parameters for finding the amount and fee
324
321
  * records for the transfer transaction
325
322
  * @param {RecordPlaintext | string} amountRecord Optional amount record to use for the transfer
@@ -340,7 +337,7 @@ declare class ProgramManager {
340
337
  * const tx_id = await programManager.transfer(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", "private", 0.2)
341
338
  * const transaction = await programManager.networkClient.getTransaction(tx_id);
342
339
  */
343
- transfer(amount: number, recipient: string, transferType: string, fee: number, privateFee: boolean, caller?: string, recordSearchParams?: RecordSearchParams, amountRecord?: RecordPlaintext | string, feeRecord?: RecordPlaintext | string, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<string | Error>;
340
+ transfer(amount: number, recipient: string, transferType: string, fee: number, privateFee: boolean, recordSearchParams?: RecordSearchParams, amountRecord?: RecordPlaintext | string, feeRecord?: RecordPlaintext | string, privateKey?: PrivateKey, offlineQuery?: OfflineQuery): Promise<string | Error>;
344
341
  /**
345
342
  * Build transaction to bond credits to a validator for later submission to the Aleo Network
346
343
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provablehq/sdk",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
4
4
  "description": "A Software Development Kit (SDK) for Zero-Knowledge Transactions",
5
5
  "collaborators": [
6
6
  "The Provable Team"