@streamflow/stream 5.2.0 → 5.2.1

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.
@@ -218,7 +218,7 @@ var SuiStreamClient = /** @class */ (function (_super) {
218
218
  txb.object(withdrawData.id),
219
219
  txb.object(this.configId),
220
220
  txb.object(utils_1.SUI_CLOCK_OBJECT_ID),
221
- txb.pure(withdrawData.amount),
221
+ txb.pure(withdrawData.amount.toString()),
222
222
  ],
223
223
  });
224
224
  return [4 /*yield*/, wallet.signAndExecuteTransactionBlock({
@@ -322,7 +322,7 @@ var SuiStreamClient = /** @class */ (function (_super) {
322
322
  txb.object(this.configId),
323
323
  coinObject,
324
324
  txb.gas,
325
- txb.pure(topupData.amount),
325
+ txb.pure(topupData.amount.toString()),
326
326
  ],
327
327
  });
328
328
  this.returnSplittedCoinObject(txb, tokenId, coins, coinObject);
@@ -398,8 +398,10 @@ var SuiStreamClient = /** @class */ (function (_super) {
398
398
  txb.pure(updateData.enableAutomaticWithdrawal !== undefined
399
399
  ? [updateData.enableAutomaticWithdrawal]
400
400
  : [], "vector<bool>"),
401
- txb.pure(updateData.withdrawFrequency !== undefined ? [updateData.withdrawFrequency] : [], "vector<u64>"),
402
- txb.pure(updateData.amountPerPeriod !== undefined ? [updateData.amountPerPeriod] : [], "vector<u64>"),
401
+ txb.pure(updateData.withdrawFrequency !== undefined
402
+ ? [updateData.withdrawFrequency.toString()]
403
+ : [], "vector<u64>"),
404
+ txb.pure(updateData.amountPerPeriod !== undefined ? [updateData.amountPerPeriod.toString()] : [], "vector<u64>"),
403
405
  ],
404
406
  });
405
407
  return [4 /*yield*/, wallet.signAndExecuteTransactionBlock({
@@ -447,11 +449,11 @@ var SuiStreamClient = /** @class */ (function (_super) {
447
449
  txb.object(utils_1.SUI_CLOCK_OBJECT_ID),
448
450
  coinObject,
449
451
  txb.gas,
450
- txb.pure(recipient.amount),
452
+ txb.pure(recipient.amount.toString()),
451
453
  txb.pure(multipleStreamData.period),
452
- txb.pure(recipient.amountPerPeriod),
454
+ txb.pure(recipient.amountPerPeriod.toString()),
453
455
  txb.pure(multipleStreamData.start),
454
- txb.pure(recipient.cliffAmount),
456
+ txb.pure(recipient.cliffAmount.toString()),
455
457
  txb.pure(multipleStreamData.cancelableBySender),
456
458
  txb.pure(multipleStreamData.cancelableByRecipient),
457
459
  txb.pure(multipleStreamData.cancelableBySender),
@@ -524,7 +526,7 @@ var SuiStreamClient = /** @class */ (function (_super) {
524
526
  txb.mergeCoins(coinObject, coins.slice(1).map(function (item) { return txb.object(item.coinObjectId); }));
525
527
  }
526
528
  var sum = amount.mul(new bn_js_1.default(constants_1.BASE_FEE)).div(new bn_js_1.default(1000000));
527
- return txb.splitCoins(coinObject, [txb.pure(sum)])[0];
529
+ return txb.splitCoins(coinObject, [txb.pure(sum.toString())])[0];
528
530
  };
529
531
  /**
530
532
  * Return previously splitted Coin Object to owner and merge it to to rebate storage fees
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/stream",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "JavaScript SDK to interact with Streamflow protocol.",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "https://github.com/streamflow-finance/js-sdk/",