wallaby-cash 2.2.5 → 2.2.7

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/index.esm.js CHANGED
@@ -775,7 +775,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
775
775
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.RS256 },
776
776
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.ES256 },
777
777
  ];
778
- const currentPackageVersion = "2.2.5";
778
+ const currentPackageVersion = "2.2.7";
779
779
 
780
780
  const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;
781
781
 
@@ -11273,9 +11273,10 @@ class Transactions extends Base {
11273
11273
  * @param {string} reference
11274
11274
  * @param {AuthenticationResponse} authenticationOptions
11275
11275
  * @param {string} memo
11276
+ * @param {TransactionType} transactionType
11276
11277
  * @returns {TransactionResponse}
11277
11278
  */
11278
- async transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, }) {
11279
+ async transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, transactionType, }) {
11279
11280
  try {
11280
11281
  // Only attempt migration if we have password auth and V2 storage might be incomplete
11281
11282
  if (this.deviceAuthType === AuthType.Password && authenticationOptions.password) {
@@ -11301,7 +11302,8 @@ class Transactions extends Base {
11301
11302
  payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedSeed: readyForTransportSeedPhrase, originAddress,
11302
11303
  recipientAddress,
11303
11304
  assetId,
11304
- amount, reference: reference || v4(), memo }),
11305
+ amount, reference: reference || v4(), memo,
11306
+ transactionType }),
11305
11307
  });
11306
11308
  }
11307
11309
  else if (hasShares) {
@@ -11309,7 +11311,8 @@ class Transactions extends Base {
11309
11311
  payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedShares: sharesEncryptedWithWallabyPubKey, originAddress,
11310
11312
  recipientAddress,
11311
11313
  assetId,
11312
- amount, reference: reference || v4(), memo }),
11314
+ amount, reference: reference || v4(), memo,
11315
+ transactionType }),
11313
11316
  });
11314
11317
  }
11315
11318
  else {
@@ -11338,10 +11341,11 @@ class Transactions extends Base {
11338
11341
  * @param {string} suiObjectId
11339
11342
  * @param {string} reference
11340
11343
  * @param {string} memo
11344
+ * @param {TransactionType} transactionType
11341
11345
  * @returns {CreateAllowanceResponse}
11342
11346
  *
11343
11347
  */
11344
- async createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, }) {
11348
+ async createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, transactionType, }) {
11345
11349
  try {
11346
11350
  if (!suiObjectId && !contractAddress && !assetId && !assetSymbol && !chainName) {
11347
11351
  throw new WallabyError({
@@ -11389,7 +11393,8 @@ class Transactions extends Base {
11389
11393
  assetSymbol,
11390
11394
  amount,
11391
11395
  assetId, contractAddress: contractAddress !== null && contractAddress !== void 0 ? contractAddress : suiObjectId, reference,
11392
- memo }, (hasShares ? { encryptedShares: sharesEncryptedWithWallabyPubKey } : { encryptedSeed: readyForTransportSeedPhrase }));
11396
+ memo,
11397
+ transactionType }, (hasShares ? { encryptedShares: sharesEncryptedWithWallabyPubKey } : { encryptedSeed: readyForTransportSeedPhrase }));
11393
11398
  const response = await this.request(TransactionsRoutes.createAllowance, {
11394
11399
  payload,
11395
11400
  });