@0x/contracts-staking: All tests back up and running.

This commit is contained in:
Lawrence Forman
2019-09-22 12:03:53 -04:00
parent 6a29654d7d
commit c72a15b488
18 changed files with 113 additions and 213 deletions

View File

@@ -155,6 +155,18 @@ export class StakerActor extends BaseActor {
);
}
public async syncDelegatorRewardsAsync(poolId: string, revertError?: RevertError): Promise<void> {
const txReceiptPromise = this._stakingApiWrapper.stakingContract.syncDelegatorRewards.awaitTransactionSuccessAsync(
poolId,
{ from: this._owner },
);
if (revertError !== undefined) {
await expect(txReceiptPromise, 'expected revert error').to.revertWith(revertError);
return;
}
await txReceiptPromise;
}
public async goToNextEpochAsync(): Promise<void> {
// cache balances
const initZrxBalanceOfVault = await this._stakingApiWrapper.utils.getZrxTokenBalanceOfZrxVaultAsync();