restake 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62,9 +62,11 @@ function runLoop() {
62
62
  return;
63
63
  }
64
64
  if (cafe_utility_1.Random.chance(1 / 3)) {
65
- await bee.depositStake(bzz.toString());
65
+ console.log(`:${port} depositing ${bzz.toDecimalString()} BZZ as stake`);
66
+ await bee.depositStake(bzz);
66
67
  }
67
68
  else if (cafe_utility_1.Random.chance(1 / 2)) {
69
+ console.log(`:${port} transferring ${bzz.toDecimalString()} BZZ to external wallet`);
68
70
  await transferBZZ(privateKeys[port - 1633], externalWallet, bzz);
69
71
  }
70
72
  else {
@@ -75,6 +77,7 @@ function runLoop() {
75
77
  return;
76
78
  }
77
79
  const { amount } = await bee.calculateTopUpForBzz(postageBatch.depth, bzz);
80
+ console.log(`:${port} topping up postage batch ${postageBatchId} with ${amount} amount`);
78
81
  await bee.topUpBatch(postageBatch.batchID, amount);
79
82
  }
80
83
  }, sleep, console.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "restake",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "restake": "./dist/index.js"