@gooddollar/goodprotocol 1.0.12 → 1.0.13-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddollar/goodprotocol",
3
- "version": "1.0.12",
3
+ "version": "1.0.13-beta.0",
4
4
  "description": "GoodDollar Protocol",
5
5
  "scripts": {
6
6
  "build": "scripts/build.sh deploy",
@@ -213,7 +213,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
213
213
  await setDAOAddress("GDAO_STAKERS", stakersDistribution.address);
214
214
  });
215
215
 
216
- xit("it should have 2M monthly Reputation distribution", async () => {
216
+ it("it should have 2M monthly Reputation distribution", async () => {
217
217
  const monthlyReputationDistribution =
218
218
  await stakersDistribution.monthlyReputationDistribution();
219
219
  expect(monthlyReputationDistribution).to.be.equal(
@@ -221,14 +221,14 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
221
221
  );
222
222
  });
223
223
 
224
- xit("it should have 0 monthly rewards since staking amount was zero while initializing stakersDistribution", async () => {
224
+ it("it should have 0 monthly rewards since staking amount was zero while initializing stakersDistribution", async () => {
225
225
  const rewardsPerBlock = await stakersDistribution.rewardsPerBlock(
226
226
  simpleStaking.address
227
227
  );
228
228
  expect(rewardsPerBlock).to.be.equal(0);
229
229
  });
230
230
 
231
- xit("It should update monthly rewards according to staking amount of staking contract after one month passed from initialized", async () => {
231
+ it("It should update monthly rewards according to staking amount of staking contract after one month passed from initialized", async () => {
232
232
  const stakingAmount = ethers.utils.parseEther("1000");
233
233
  const rewardsPerBlockBeforeStake =
234
234
  await stakersDistribution.rewardsPerBlock(simpleStaking.address);
@@ -257,7 +257,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
257
257
  expect(rewardsPerBlockAfterStake).to.be.equal(rewardsPerBlockAfterWithdraw);
258
258
  });
259
259
 
260
- xit("it should not be set monthly reputation when not Avatar", async () => {
260
+ it("it should not be set monthly reputation when not Avatar", async () => {
261
261
  const transaction = await stakersDistribution
262
262
  .setMonthlyReputationDistribution("1000000")
263
263
  .catch(e => e);
@@ -266,7 +266,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
266
266
  );
267
267
  });
268
268
 
269
- xit("it should set monthly reputation when Avatar", async () => {
269
+ it("it should set monthly reputation when Avatar", async () => {
270
270
  let encoded = stakersDistribution.interface.encodeFunctionData(
271
271
  "setMonthlyReputationDistribution",
272
272
  [ethers.utils.parseEther("1000000")]
@@ -284,7 +284,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
284
284
  await genericCall(stakersDistribution.address, encoded);
285
285
  });
286
286
 
287
- xit("it should distribute monthly rewards according to staking amount of contracts so in this particular case simpleStaking contract should get %75 of the monthly rewards ", async () => {
287
+ it("it should distribute monthly rewards according to staking amount of contracts so in this particular case simpleStaking contract should get %75 of the monthly rewards ", async () => {
288
288
  const goodFundManagerFactory = await ethers.getContractFactory(
289
289
  "GoodFundManager"
290
290
  );
@@ -349,7 +349,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
349
349
  await ictrl.genericCall(goodFundManager.address, encodedData, avatar, 0);
350
350
  });
351
351
 
352
- xit("It should not update monthly rewards if staking contract's blockEnd Passed", async () => {
352
+ it("It should not update monthly rewards if staking contract's blockEnd Passed", async () => {
353
353
  const goodFundManagerFactory = await ethers.getContractFactory(
354
354
  "GoodFundManager"
355
355
  );
@@ -403,7 +403,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
403
403
  .true;
404
404
  });
405
405
 
406
- xit("it should give distribute if blockend passed but some of the rewards during reward period was not distributed", async () => {
406
+ it("it should give distribute if blockend passed but some of the rewards during reward period was not distributed", async () => {
407
407
  const goodFundManagerFactory = await ethers.getContractFactory(
408
408
  "GoodFundManager"
409
409
  );
@@ -449,7 +449,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
449
449
  );
450
450
  });
451
451
 
452
- xit("it should not increaseProductivity of staking contract which is blacklisted", async () => {
452
+ it("it should not increaseProductivity of staking contract which is blacklisted", async () => {
453
453
  const goodFundManagerFactory = await ethers.getContractFactory(
454
454
  "GoodFundManager"
455
455
  );
@@ -484,7 +484,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
484
484
  expect(productivityOfStaker[0]).to.be.equal(0);
485
485
  });
486
486
 
487
- xit("it should not decreaseProductivity of staking contract which is blacklisted", async () => {
487
+ it("it should not decreaseProductivity of staking contract which is blacklisted", async () => {
488
488
  const goodFundManagerFactory = await ethers.getContractFactory(
489
489
  "GoodFundManager"
490
490
  );
@@ -555,7 +555,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
555
555
  expect(pendingGDAO).equal(0); //should have 0 pending after contract was blacklisted
556
556
  });
557
557
 
558
- xit("it should not earn rewards when current block < startBlock", async () => {
558
+ it("it should not earn rewards when current block < startBlock", async () => {
559
559
  const goodFundManagerFactory = await ethers.getContractFactory(
560
560
  "GoodFundManager"
561
561
  );
@@ -619,7 +619,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
619
619
  await ictrl.genericCall(goodFundManager.address, encodedData, avatar, 0);
620
620
  });
621
621
 
622
- xit("Accumulated per share has enough precision when reward << totalproductivity", async () => {
622
+ it("Accumulated per share has enough precision when reward << totalproductivity", async () => {
623
623
  const goodFundManagerFactory = await ethers.getContractFactory(
624
624
  "GoodFundManager"
625
625
  );
@@ -676,7 +676,7 @@ describe("StakersDistribution - staking with GD and get Rewards in GDAO", () =>
676
676
  await ictrl.genericCall(goodFundManager.address, encodedData, avatar, 0);
677
677
  });
678
678
 
679
- xit("it should distribute rewards properly when staking contract's token is different decimals than 18", async () => {
679
+ it("it should distribute rewards properly when staking contract's token is different decimals than 18", async () => {
680
680
  const goodFundManagerFactory = await ethers.getContractFactory(
681
681
  "GoodFundManager"
682
682
  );