@aurigami/sdk 1.5.2 → 1.5.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 +2 -0
- package/dist/sdk.cjs.development.js +5 -4
- 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 +5 -4
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +4 -1
- package/src/SDK.ts +6 -4
package/dist/SDK.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuriFairLaunch, AuriLens, Comptroller } from '@aurigami/contracts/typechain';
|
|
2
2
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
3
3
|
import { BlockchainEntity, BlockchainEntityRead } from './BlockchainEntity';
|
|
4
|
+
import { StakingRead } from './Staking';
|
|
4
5
|
import { Token } from './token';
|
|
5
6
|
import { TokenAmount } from './tokenAmount';
|
|
6
7
|
import { CurrencyAmount, HypotheticalStats, MarketAction, NetworkConnection, PLYWNEARPoolDetails, TokenValuation, UserDetails, UserMarketDetails } from './types';
|
|
@@ -8,6 +9,7 @@ export declare class SdkRead extends BlockchainEntityRead {
|
|
|
8
9
|
protected _comptroller: Comptroller;
|
|
9
10
|
protected _auriFairLaunch: AuriFairLaunch;
|
|
10
11
|
protected _auriLens: AuriLens;
|
|
12
|
+
protected _stakingRead: StakingRead;
|
|
11
13
|
constructor(networkConnection: NetworkConnection);
|
|
12
14
|
getUserDetails(userAddress: string): Promise<UserDetails>;
|
|
13
15
|
getPLYWNEARPoolDetails(): Promise<PLYWNEARPoolDetails>;
|
|
@@ -3975,6 +3975,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
3975
3975
|
var _this;
|
|
3976
3976
|
|
|
3977
3977
|
_this = _BlockchainEntityRead.call(this, networkConnection) || this;
|
|
3978
|
+
_this._stakingRead = new StakingRead(networkConnection);
|
|
3978
3979
|
_this._comptroller = new ethers.Contract(networkAddresses.misc.COMPTROLLER, ComptrollerABI.abi, networkConnection.provider);
|
|
3979
3980
|
_this._auriFairLaunch = new ethers.Contract(networkAddresses.misc.AURIFAIRLAUNCH, AuriFairLaunchABI.abi, networkConnection.provider);
|
|
3980
3981
|
_this._auriLens = new ethers.Contract(networkAddresses.misc.AURILENS, AuriLensABI.abi, networkConnection.provider);
|
|
@@ -4130,7 +4131,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4130
4131
|
while (1) {
|
|
4131
4132
|
switch (_context2.prev = _context2.next) {
|
|
4132
4133
|
case 0:
|
|
4133
|
-
return _context2.abrupt("return",
|
|
4134
|
+
return _context2.abrupt("return", this._stakingRead.getPLYWNEARPoolDetails());
|
|
4134
4135
|
|
|
4135
4136
|
case 1:
|
|
4136
4137
|
case "end":
|
|
@@ -4185,7 +4186,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4185
4186
|
while (1) {
|
|
4186
4187
|
switch (_context4.prev = _context4.next) {
|
|
4187
4188
|
case 0:
|
|
4188
|
-
return _context4.abrupt("return",
|
|
4189
|
+
return _context4.abrupt("return", this._stakingRead.stakeBalanceOf(user));
|
|
4189
4190
|
|
|
4190
4191
|
case 1:
|
|
4191
4192
|
case "end":
|
|
@@ -4208,7 +4209,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4208
4209
|
while (1) {
|
|
4209
4210
|
switch (_context5.prev = _context5.next) {
|
|
4210
4211
|
case 0:
|
|
4211
|
-
return _context5.abrupt("return",
|
|
4212
|
+
return _context5.abrupt("return", this._stakingRead.LpBalanceOf(user));
|
|
4212
4213
|
|
|
4213
4214
|
case 1:
|
|
4214
4215
|
case "end":
|
|
@@ -4231,7 +4232,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4231
4232
|
while (1) {
|
|
4232
4233
|
switch (_context6.prev = _context6.next) {
|
|
4233
4234
|
case 0:
|
|
4234
|
-
return _context6.abrupt("return",
|
|
4235
|
+
return _context6.abrupt("return", this._stakingRead.unclaimedRewardsOf(user));
|
|
4235
4236
|
|
|
4236
4237
|
case 1:
|
|
4237
4238
|
case "end":
|