@aurigami/sdk 0.1.6 → 0.2.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/src/types.ts CHANGED
@@ -1,12 +1,26 @@
1
1
  import type { providers, Signer } from 'ethers';
2
- import { CurrencyAmount } from '@pendle/sdk-core';
2
+ import { TokenAmount } from './tokenAmount';
3
3
 
4
- export type ProviderOrSigner = providers.Provider | Signer;
4
+ export enum ComptrollerRewardType {
5
+ PLY = 0,
6
+ AURORA
7
+ };
8
+ export type NetworkConnection = {
9
+ provider: providers.Provider,
10
+ signer?: Signer
11
+ }
12
+
13
+ export type Address = string;
14
+
15
+ export type CurrencyAmount = {
16
+ currency: string,
17
+ amount: string
18
+ };
5
19
 
6
20
  export type MoneyMarketDetails = {
7
21
  auTokenAddress: string;
8
- totalTokenDeposited: CurrencyAmount;
9
- totalTokenBorrowed: CurrencyAmount;
22
+ totalTokenDeposited: TokenAmount;
23
+ totalTokenBorrowed: TokenAmount;
10
24
  depositApy: number;
11
25
  depositPlyApy: number;
12
26
  borrowApy: number;
@@ -17,8 +31,8 @@ export type MoneyMarketDetails = {
17
31
  export type UserDetails = {
18
32
  markets: UserMarketDetails[];
19
33
  borrowLimit: CurrencyAmount;
20
- accruedPly: CurrencyAmount;
21
- lockedPly: CurrencyAmount;
34
+ accruedPly: TokenAmount;
35
+ lockedPly: TokenAmount;
22
36
  borrowableAmount: CurrencyAmount;
23
37
  };
24
38
 
@@ -35,13 +49,13 @@ export type PlyAuroraPool = {
35
49
 
36
50
  export type UserMarketDetails = {
37
51
  market: string;
38
- depositBalance: CurrencyAmount;
39
- borrowBalance: CurrencyAmount;
52
+ depositBalance: TokenAmount;
53
+ borrowBalance: TokenAmount;
40
54
  isCollateral: boolean;
41
- maxWithdrawableAmount: CurrencyAmount;
55
+ maxWithdrawableAmount: TokenAmount;
42
56
  };
43
57
 
44
58
  export type PlyAuroraPoolDetails = {
45
- totalStakedLiquidity: CurrencyAmount;
46
- apy: number;
47
- };
59
+ totalStakedLiquidity: TokenAmount;
60
+ apy: string;
61
+ };