@aurigami/sdk 1.6.5 → 1.6.7

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import { TransactionResponse } from '@ethersproject/abstract-provider';
2
+ import BigNumber from 'bignumber.js';
2
3
  import { MiscRead, StakingRead } from './contracts';
3
4
  import { AuriEnv, BlockchainEntity, BlockchainEntityRead, Token, TokenAmount } from './entities';
4
5
  import * as types from './types';
@@ -35,6 +36,7 @@ export declare class SdkRead extends BlockchainEntityRead {
35
36
  * - Ply in vesting contract
36
37
  */
37
38
  getPlyCirculatingSupply(): Promise<TokenAmount>;
39
+ getUltilizations(userAddr: types.Address): Promise<BigNumber>;
38
40
  }
39
41
  export declare class SdkReadWrite extends SdkRead {
40
42
  /**
@@ -9,6 +9,7 @@ import EthRepayHelperABI from '@aurigami/contracts/artifacts/contracts/EthRepayH
9
9
  import EIP20InterfaceABI from '@aurigami/contracts/artifacts/contracts/interfaces/EIP20Interface.sol/EIP20Interface.json';
10
10
  import IUniswapV2PairABI from '@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json';
11
11
  import Multicall2ABI from '@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json';
12
+ import UltilizationHelperABI from '@aurigami/contracts/artifacts/contracts/mock/UltilizationHelper.sol/UltilizationHelper.json';
12
13
  import PulpABI from '@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json';
13
14
  import ReferralDirectoryABI from '@aurigami/contracts/artifacts/contracts/ReferralDirectory.sol/ReferralDirectory.json';
14
- export { AuriOracleABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, };
15
+ export { AuriOracleABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, UltilizationHelperABI };
@@ -3,7 +3,7 @@ import { TransactionResponse } from '@ethersproject/abstract-provider';
3
3
  import { BlockchainEntity, BlockchainEntityRead, TokenAmount } from '../entities';
4
4
  import { Address, NetworkConnection } from '../types';
5
5
  export declare class AirdropRead extends BlockchainEntityRead {
6
- protected _airDrop: AuriAirdrop;
6
+ readonly airDrop: AuriAirdrop;
7
7
  constructor(networkConnection: NetworkConnection);
8
8
  /**
9
9
  * Get redeemable rewards amount of user
@@ -13,7 +13,7 @@ declare type RewardSpeeds = {
13
13
  export declare class MoneyMarketRead extends BlockchainEntityRead {
14
14
  underlying: Token;
15
15
  auToken: AuErc20 | AuETH;
16
- protected env: AuriEnv;
16
+ readonly env: AuriEnv;
17
17
  constructor(networkConnection: NetworkConnection, auToken: Address, underlyingAsset: Address);
18
18
  protected getRewardSpeeds(): Promise<RewardSpeeds>;
19
19
  getTotalTokenBorrowed(): Promise<TokenAmount>;
@@ -4,7 +4,7 @@ import { Result } from 'ethers/lib/utils';
4
4
  import { BlockchainEntityRead } from '../entities';
5
5
  import { NetworkConnection } from '../types';
6
6
  export declare class MulticallRead extends BlockchainEntityRead {
7
- protected _multicall: Multicall2;
7
+ readonly multicall: Multicall2;
8
8
  constructor(networkConnection: NetworkConnection);
9
9
  /**
10
10
  * Run multiple calls via multicall contract
@@ -2,9 +2,9 @@ import { TransactionResponse } from '@ethersproject/abstract-provider';
2
2
  import { AuriEnv, BlockchainEntity, BlockchainEntityRead, Token, TokenAmount } from '../entities';
3
3
  import { Address, NetworkConnection, UserLockingDetails } from '../types';
4
4
  export declare class PapermillRead extends BlockchainEntityRead {
5
- plyToken: Token;
6
- pulpToken: Token;
7
- protected env: AuriEnv;
5
+ readonly plyToken: Token;
6
+ readonly pulpToken: Token;
7
+ readonly env: AuriEnv;
8
8
  constructor(networkConnection: NetworkConnection);
9
9
  getPlyBalance(userAddress: Address): Promise<TokenAmount>;
10
10
  getPulpBalance(userAddress: Address): Promise<TokenAmount>;
@@ -3,7 +3,7 @@ import { TransactionResponse } from '@ethersproject/abstract-provider';
3
3
  import { BlockchainEntity, BlockchainEntityRead } from '../entities';
4
4
  import { Address, NetworkConnection } from '../types';
5
5
  export declare class ReferralRead extends BlockchainEntityRead {
6
- protected _referral: ReferralDirectory;
6
+ readonly referral: ReferralDirectory;
7
7
  constructor(networkConnection: NetworkConnection);
8
8
  /**
9
9
  * Generate a 10-character referral code
@@ -2,7 +2,7 @@ import { TransactionResponse } from '@ethersproject/abstract-provider';
2
2
  import { AuriEnv, BlockchainEntity, BlockchainEntityRead, TokenAmount } from '../entities';
3
3
  import { NetworkConnection, PLYWNEARPoolDetails } from '../types';
4
4
  export declare class StakingRead extends BlockchainEntityRead {
5
- protected env: AuriEnv;
5
+ readonly env: AuriEnv;
6
6
  constructor(networkConnection: NetworkConnection);
7
7
  getPLYWNEARPoolDetails(): Promise<PLYWNEARPoolDetails>;
8
8
  /**
@@ -1,9 +1,9 @@
1
- import { StakingRead } from '../contracts';
2
1
  import { AuriEnv, BlockchainEntityRead, Token, TokenAmount } from '../entities';
3
2
  import * as types from '../types';
3
+ import { StakingRead } from './Staking';
4
4
  export declare class MiscRead extends BlockchainEntityRead {
5
- protected env: AuriEnv;
6
- protected _stakingRead: StakingRead;
5
+ readonly env: AuriEnv;
6
+ readonly stakingRead: StakingRead;
7
7
  constructor(networkConnection: types.NetworkConnection);
8
8
  getUserDetails(userAddress: string): Promise<types.UserDetails>;
9
9
  getTokenPrice(token: Token): Promise<types.CurrencyAmount>;