@aurigami/sdk 1.8.2 → 1.8.3
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/SDK.d.ts +1 -2
- package/dist/sdk.cjs.development.js +13 -49
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +13 -49
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/SDK.ts +8 -10
package/package.json
CHANGED
package/src/SDK.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
-
import
|
|
3
|
+
import { ALL_STAKING_POOLS } from './consts';
|
|
4
4
|
import { MiscRead, StakingRead, StakingReadWrite } from './contracts';
|
|
5
5
|
import { AuriEnv, BlockchainEntity, BlockchainEntityRead, Token, TokenAmount } from './entities';
|
|
6
6
|
import * as types from './types';
|
|
@@ -94,18 +94,16 @@ export class SdkRead extends BlockchainEntityRead {
|
|
|
94
94
|
|
|
95
95
|
export class SdkReadWrite extends SdkRead {
|
|
96
96
|
/**
|
|
97
|
-
* Claim
|
|
97
|
+
* Claim rewards in all markets + staking pools
|
|
98
98
|
*/
|
|
99
99
|
public async claim(): Promise<TransactionResponse> {
|
|
100
|
-
return this.env.
|
|
100
|
+
return this.env.auriLens
|
|
101
101
|
.connect(this._networkConnection.signer!)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.connect(this._networkConnection.signer!)
|
|
108
|
-
.harvest(await this._networkConnection.signer!.getAddress(), 0, consts.INF);
|
|
102
|
+
.claimRewards(
|
|
103
|
+
this.env.comptroller.address,
|
|
104
|
+
this.env.auriFairLaunch.address,
|
|
105
|
+
ALL_STAKING_POOLS
|
|
106
|
+
);
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
public async stake(amount: TokenAmount): Promise<TransactionResponse> {
|