@aurigami/sdk 1.22.0 → 1.23.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 +10 -0
- package/dist/sdk.cjs.development.js +15 -3
- 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 +15 -3
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/consts/constants.ts +12 -0
- package/src/consts/decimals.ts +2 -0
- package/src/helpers/priceFetcher.ts +0 -1
|
@@ -54,6 +54,14 @@ export declare const networkAddresses: {
|
|
|
54
54
|
readonly name: "auNEARX";
|
|
55
55
|
readonly address: string;
|
|
56
56
|
readonly underlying: string;
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "auUSDCNative";
|
|
59
|
+
readonly address: string;
|
|
60
|
+
readonly underlying: string;
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "auUSDTNative";
|
|
63
|
+
readonly address: string;
|
|
64
|
+
readonly underlying: string;
|
|
57
65
|
}];
|
|
58
66
|
readonly misc: {
|
|
59
67
|
readonly COMPTROLLER: string;
|
|
@@ -90,6 +98,8 @@ export declare const networkAddresses: {
|
|
|
90
98
|
readonly AURORA_WNEAR: string;
|
|
91
99
|
readonly NEARX: string;
|
|
92
100
|
readonly STADER: string;
|
|
101
|
+
readonly USDC_NATIVE: string;
|
|
102
|
+
readonly USDT_NATIVE: string;
|
|
93
103
|
};
|
|
94
104
|
};
|
|
95
105
|
export declare const DEPOSIT_ONLY_TOKENS: string[];
|
|
@@ -108,6 +108,14 @@ var networkAddresses = {
|
|
|
108
108
|
name: 'auNEARX',
|
|
109
109
|
address: /*#__PURE__*/MAINNET_ADDRESSES.auTokens.NEARX.toLowerCase(),
|
|
110
110
|
underlying: /*#__PURE__*/'0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375'.toLowerCase()
|
|
111
|
+
}, {
|
|
112
|
+
name: 'auUSDCNative',
|
|
113
|
+
address: /*#__PURE__*/MAINNET_ADDRESSES.auTokens.USDC_NATIVE.toLowerCase(),
|
|
114
|
+
underlying: /*#__PURE__*/'0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7'.toLowerCase()
|
|
115
|
+
}, {
|
|
116
|
+
name: 'auUSDTNative',
|
|
117
|
+
address: /*#__PURE__*/MAINNET_ADDRESSES.auTokens.USDT_NATIVE.toLowerCase(),
|
|
118
|
+
underlying: /*#__PURE__*/'0x80da25da4d783e57d2fcda0436873a193a4beccf'.toLowerCase()
|
|
111
119
|
}],
|
|
112
120
|
misc: {
|
|
113
121
|
COMPTROLLER: /*#__PURE__*/MAINNET_ADDRESSES.comptroller.toLowerCase(),
|
|
@@ -143,7 +151,9 @@ var networkAddresses = {
|
|
|
143
151
|
WNEAR_TRI: /*#__PURE__*/'0x84b123875f0f36b966d0b6ca14b31121bd9676ad'.toLowerCase(),
|
|
144
152
|
AURORA_WNEAR: /*#__PURE__*/'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008'.toLowerCase(),
|
|
145
153
|
NEARX: /*#__PURE__*/'0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375'.toLowerCase(),
|
|
146
|
-
STADER: /*#__PURE__*/'0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84'.toLowerCase()
|
|
154
|
+
STADER: /*#__PURE__*/'0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84'.toLowerCase(),
|
|
155
|
+
USDC_NATIVE: /*#__PURE__*/'0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7'.toLowerCase(),
|
|
156
|
+
USDT_NATIVE: /*#__PURE__*/'0x80da25da4d783e57d2fcda0436873a193a4beccf'.toLowerCase()
|
|
147
157
|
}
|
|
148
158
|
};
|
|
149
159
|
var DEPOSIT_ONLY_TOKENS = [/*#__PURE__*/MAINNET_ADDRESSES.auTokens.AURORA.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.TRI.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.PLY.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.USN.toLowerCase()];
|
|
@@ -241,7 +251,9 @@ var decimalRecords = {
|
|
|
241
251
|
'0x84b123875f0f36b966d0b6ca14b31121bd9676ad': 18,
|
|
242
252
|
'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008': 18,
|
|
243
253
|
'0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375': 24,
|
|
244
|
-
'0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84': 18
|
|
254
|
+
'0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84': 18,
|
|
255
|
+
'0x80da25da4d783e57d2fcda0436873a193a4beccf': 6,
|
|
256
|
+
'0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7': 6
|
|
245
257
|
};
|
|
246
258
|
|
|
247
259
|
function _regeneratorRuntime() {
|
|
@@ -1881,7 +1893,7 @@ function _fetchUnderlyingTokensPrices() {
|
|
|
1881
1893
|
}
|
|
1882
1894
|
function shouldFetchFromKyberSwap(address) {
|
|
1883
1895
|
address = address.toLowerCase();
|
|
1884
|
-
return address == networkAddresses.tokens.
|
|
1896
|
+
return address == networkAddresses.tokens.TRI || address == networkAddresses.tokens.META || address == networkAddresses.tokens.STADER;
|
|
1885
1897
|
}
|
|
1886
1898
|
/**
|
|
1887
1899
|
* Fetch price from Oracle or Coingecko
|