@aurigami/sdk 1.15.3 → 1.16.1
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/consts/constants.d.ts +84 -9
- package/dist/interactors/MoneyMarket.d.ts +1 -0
- package/dist/sdk.cjs.development.js +210 -141
- 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 +210 -141
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +70 -71
- package/src/consts/constants.ts +8 -11
- package/src/consts/decimals.ts +3 -2
- package/src/interactors/MoneyMarket.ts +46 -15
- package/src/types/index.ts +2 -1
- package/src/.DS_Store +0 -0
|
@@ -5,16 +5,91 @@ export declare const ETHAddress: string;
|
|
|
5
5
|
export declare const AURORA_CHAINID = 1313161554;
|
|
6
6
|
export declare const DECIMAL_PRECISION = 10;
|
|
7
7
|
export declare const AURORA_PLUS_API_PREFIX = "https://aurora.plus/api/wallet/";
|
|
8
|
-
export declare
|
|
9
|
-
auTokens: {
|
|
10
|
-
name:
|
|
11
|
-
address: string;
|
|
12
|
-
underlying: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
export declare const networkAddresses: {
|
|
9
|
+
readonly auTokens: readonly [{
|
|
10
|
+
readonly name: "auUSDC";
|
|
11
|
+
readonly address: string;
|
|
12
|
+
readonly underlying: string;
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "auETH";
|
|
15
|
+
readonly address: string;
|
|
16
|
+
readonly underlying: string;
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "auWBTC";
|
|
19
|
+
readonly address: string;
|
|
20
|
+
readonly underlying: string;
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "auUSDT";
|
|
23
|
+
readonly address: string;
|
|
24
|
+
readonly underlying: string;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "auDAI";
|
|
27
|
+
readonly address: string;
|
|
28
|
+
readonly underlying: string;
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "auWNEAR";
|
|
31
|
+
readonly address: string;
|
|
32
|
+
readonly underlying: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "auSTNEAR";
|
|
35
|
+
readonly address: string;
|
|
36
|
+
readonly underlying: string;
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "auAURORA";
|
|
39
|
+
readonly address: string;
|
|
40
|
+
readonly underlying: string;
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "auTRI";
|
|
43
|
+
readonly address: string;
|
|
44
|
+
readonly underlying: string;
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "auPLY";
|
|
47
|
+
readonly address: string;
|
|
48
|
+
readonly underlying: string;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "auUSN";
|
|
51
|
+
readonly address: string;
|
|
52
|
+
readonly underlying: string;
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "auNEARX";
|
|
55
|
+
readonly address: string;
|
|
56
|
+
readonly underlying: string;
|
|
57
|
+
}];
|
|
58
|
+
readonly misc: {
|
|
59
|
+
readonly COMPTROLLER: string;
|
|
60
|
+
readonly oracle: string;
|
|
61
|
+
readonly AURIFAIRLAUNCH: string;
|
|
62
|
+
readonly AURILENS: string;
|
|
63
|
+
readonly ETHREPAYHELPER: string;
|
|
64
|
+
readonly AURI_AIRDROP: string;
|
|
65
|
+
readonly MULTICALL: string;
|
|
66
|
+
readonly TEAM_MULTISIG: string;
|
|
67
|
+
readonly TEAM_MULTISIG_AURORA_PLUS: string;
|
|
68
|
+
readonly AURORA_PLUS: string;
|
|
69
|
+
readonly PULP_CONTRACT: string;
|
|
70
|
+
readonly PLY_TOKEN_LOCK: string;
|
|
71
|
+
readonly REFERRAL: string;
|
|
72
|
+
readonly REFERRAL_V2: string;
|
|
73
|
+
readonly AURI_INTERNAL_LENS: string;
|
|
74
|
+
readonly PLYGAME: string;
|
|
75
|
+
};
|
|
76
|
+
readonly tokens: {
|
|
77
|
+
readonly AURORA: string;
|
|
78
|
+
readonly PLY: string;
|
|
79
|
+
readonly stNEAR: string;
|
|
80
|
+
readonly USDC: string;
|
|
81
|
+
readonly WNEAR: string;
|
|
82
|
+
readonly TRI: string;
|
|
83
|
+
readonly META: string;
|
|
84
|
+
readonly PULP: string;
|
|
85
|
+
readonly PLYWNEAR: string;
|
|
86
|
+
readonly USN: string;
|
|
87
|
+
readonly PLY_WNEAR: string;
|
|
88
|
+
readonly WNEAR_TRI: string;
|
|
89
|
+
readonly AURORA_WNEAR: string;
|
|
90
|
+
readonly NEARX: string;
|
|
91
|
+
};
|
|
16
92
|
};
|
|
17
|
-
export declare const networkAddresses: NetworkAddresses;
|
|
18
93
|
export declare const DEPOSIT_ONLY_TOKENS: string[];
|
|
19
94
|
export declare const PRICE_WHITELISTED: Set<string>;
|
|
20
95
|
export declare const REWARD_CLAIM_START = 1651759200;
|
|
@@ -28,6 +28,7 @@ export declare class MoneyMarketRead extends BlockchainEntityRead {
|
|
|
28
28
|
getDepositNearAPY(): Promise<BigNumber>;
|
|
29
29
|
getBorrowNearAPY(): Promise<BigNumber>;
|
|
30
30
|
getDepositMetaAPY(): Promise<BigNumber>;
|
|
31
|
+
getDepositStaderAPY(): Promise<BigNumber>;
|
|
31
32
|
getDetails(): Promise<MoneyMarketDetails>;
|
|
32
33
|
getUserBorrowBalance(userAddress: string): Promise<TokenAmount>;
|
|
33
34
|
getUserDepositBalance(userAddress: string): Promise<TokenAmount>;
|