@aurigami/sdk 1.15.3 → 1.16.0
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 +83 -9
- package/dist/sdk.cjs.development.js +6 -1
- 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 +6 -1
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/consts/constants.ts +7 -11
- package/src/consts/decimals.ts +3 -2
- package/src/interactors/MoneyMarket.ts +1 -6
- package/src/types/index.ts +1 -1
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.16.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint-config-prettier": "^8.3.0",
|
|
53
53
|
"eslint-plugin-prettier": "^4.0.0",
|
|
54
54
|
"ethereum-waffle": "^3.4.4",
|
|
55
|
-
"hardhat": "^2.
|
|
55
|
+
"hardhat": "^2.12.6",
|
|
56
56
|
"husky": "^7.0.4",
|
|
57
57
|
"prettier": "^2.5.1",
|
|
58
58
|
"size-limit": "^7.0.5",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"typescript": "^4.5.4"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@aurigami/contracts": "3.
|
|
65
|
+
"@aurigami/contracts": "3.17.0",
|
|
66
66
|
"axios": "^0.26.1",
|
|
67
67
|
"bignumber.js": "^9.0.2",
|
|
68
68
|
"cache-decorator": "^0.1.6",
|
package/src/consts/constants.ts
CHANGED
|
@@ -10,16 +10,7 @@ export const DECIMAL_PRECISION = 10;
|
|
|
10
10
|
|
|
11
11
|
export const AURORA_PLUS_API_PREFIX = 'https://aurora.plus/api/wallet/';
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
auTokens: {
|
|
15
|
-
name: string;
|
|
16
|
-
address: string;
|
|
17
|
-
underlying: string;
|
|
18
|
-
}[];
|
|
19
|
-
misc: Record<string, string>;
|
|
20
|
-
tokens: Record<string, string>;
|
|
21
|
-
};
|
|
22
|
-
export const networkAddresses: NetworkAddresses = {
|
|
13
|
+
export const networkAddresses = {
|
|
23
14
|
auTokens: [
|
|
24
15
|
{
|
|
25
16
|
name: 'auUSDC',
|
|
@@ -76,6 +67,11 @@ export const networkAddresses: NetworkAddresses = {
|
|
|
76
67
|
address: MAINNET_ADDRESSES.auTokens.USN.toLowerCase(),
|
|
77
68
|
underlying: '0x5183e1b1091804bc2602586919e6880ac1cf2896'.toLowerCase(),
|
|
78
69
|
},
|
|
70
|
+
{
|
|
71
|
+
name: 'auNEARX',
|
|
72
|
+
address: MAINNET_ADDRESSES.auTokens.NEARX.toLowerCase(),
|
|
73
|
+
underlying: '0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375'.toLowerCase(),
|
|
74
|
+
},
|
|
79
75
|
],
|
|
80
76
|
misc: {
|
|
81
77
|
COMPTROLLER: MAINNET_ADDRESSES.comptroller.toLowerCase(),
|
|
@@ -110,7 +106,7 @@ export const networkAddresses: NetworkAddresses = {
|
|
|
110
106
|
WNEAR_TRI: '0x84b123875f0f36b966d0b6ca14b31121bd9676ad'.toLowerCase(),
|
|
111
107
|
AURORA_WNEAR: '0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008'.toLowerCase(),
|
|
112
108
|
},
|
|
113
|
-
};
|
|
109
|
+
} as const;
|
|
114
110
|
|
|
115
111
|
export const DEPOSIT_ONLY_TOKENS = [
|
|
116
112
|
MAINNET_ADDRESSES.auTokens.AURORA.toLowerCase(),
|
package/src/consts/decimals.ts
CHANGED
|
@@ -22,6 +22,7 @@ export const decimalRecords: Record<string, number> = {
|
|
|
22
22
|
'0x04ac48711bcdc45b4d223fb021e09da73c71095e': 18, // PULP
|
|
23
23
|
'0x044b6b0cd3bb13d2b9057781df4459c66781dce7': 18, // PLYWNEAR
|
|
24
24
|
'0x5183e1b1091804bc2602586919e6880ac1cf2896': 18, // USN
|
|
25
|
-
'0x84b123875f0f36b966d0b6ca14b31121bd9676ad': 18, //WNEAR_TRI,
|
|
26
|
-
'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008': 18, //AURORA_WNEAR
|
|
25
|
+
'0x84b123875f0f36b966d0b6ca14b31121bd9676ad': 18, // WNEAR_TRI,
|
|
26
|
+
'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008': 18, // AURORA_WNEAR
|
|
27
|
+
'0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375': 24, // NEARX
|
|
27
28
|
};
|
|
@@ -16,12 +16,7 @@ import {
|
|
|
16
16
|
} from '../entities';
|
|
17
17
|
import * as helpers from '../helpers';
|
|
18
18
|
import { calcValuation, fetchPrice, fetchValuation } from '../helpers/priceFetcher';
|
|
19
|
-
import {
|
|
20
|
-
Address,
|
|
21
|
-
Apy,
|
|
22
|
-
MoneyMarketDetails,
|
|
23
|
-
NetworkConnection
|
|
24
|
-
} from '../types';
|
|
19
|
+
import { Address, Apy, MoneyMarketDetails, NetworkConnection } from '../types';
|
|
25
20
|
|
|
26
21
|
type RewardSpeeds = {
|
|
27
22
|
plyRewardSupplySpeed: BN;
|
package/src/types/index.ts
CHANGED