@aurigami/sdk 1.7.4 → 1.7.6-temp
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/helpers/priceFetcher.d.ts +0 -1
- package/dist/sdk.cjs.development.js +83 -121
- 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 +84 -121
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/helpers/helpers.ts +1 -0
- package/src/helpers/priceFetcher.ts +6 -17
package/dist/sdk.esm.js
CHANGED
|
@@ -1382,6 +1382,14 @@ function _getBlocksTimestamp() {
|
|
|
1382
1382
|
while (1) {
|
|
1383
1383
|
switch (_context4.prev = _context4.next) {
|
|
1384
1384
|
case 0:
|
|
1385
|
+
if (!(blockNumbers.length == 0)) {
|
|
1386
|
+
_context4.next = 2;
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
return _context4.abrupt("return", []);
|
|
1391
|
+
|
|
1392
|
+
case 2:
|
|
1385
1393
|
CHUNK_SIZE = 100; // graphql query limit
|
|
1386
1394
|
|
|
1387
1395
|
promises = [];
|
|
@@ -1395,10 +1403,10 @@ function _getBlocksTimestamp() {
|
|
|
1395
1403
|
} // merge all the json objects
|
|
1396
1404
|
|
|
1397
1405
|
|
|
1398
|
-
_context4.next =
|
|
1406
|
+
_context4.next = 8;
|
|
1399
1407
|
return Promise.all(promises);
|
|
1400
1408
|
|
|
1401
|
-
case
|
|
1409
|
+
case 8:
|
|
1402
1410
|
results = _context4.sent.reduce(function (acc, cur) {
|
|
1403
1411
|
return _extends({}, acc, cur);
|
|
1404
1412
|
});
|
|
@@ -1410,10 +1418,10 @@ function _getBlocksTimestamp() {
|
|
|
1410
1418
|
devLog("These blocks are missing from Aurora GraphQL endpoint: " + missingBlocks.join(', '));
|
|
1411
1419
|
}
|
|
1412
1420
|
|
|
1413
|
-
_context4.next =
|
|
1421
|
+
_context4.next = 13;
|
|
1414
1422
|
return getBlocksTimestampViaRPC(provider, missingBlocks);
|
|
1415
1423
|
|
|
1416
|
-
case
|
|
1424
|
+
case 13:
|
|
1417
1425
|
missingBlocksTimestamps = _context4.sent;
|
|
1418
1426
|
missingBlocksTimestamps.forEach(function (timestamp, index) {
|
|
1419
1427
|
results["b" + missingBlocks[index]] = {
|
|
@@ -1424,7 +1432,7 @@ function _getBlocksTimestamp() {
|
|
|
1424
1432
|
return Math.trunc(new Date(results["b" + blockNumber].timestamp).getTime() / 1000);
|
|
1425
1433
|
}));
|
|
1426
1434
|
|
|
1427
|
-
case
|
|
1435
|
+
case 16:
|
|
1428
1436
|
case "end":
|
|
1429
1437
|
return _context4.stop();
|
|
1430
1438
|
}
|
|
@@ -1687,13 +1695,13 @@ function _fetchPriceFromCoingecko() {
|
|
|
1687
1695
|
break;
|
|
1688
1696
|
|
|
1689
1697
|
case 3:
|
|
1690
|
-
return _context2.abrupt("return",
|
|
1698
|
+
return _context2.abrupt("return", new BigNumber('4.27'));
|
|
1691
1699
|
|
|
1692
1700
|
case 4:
|
|
1693
|
-
return _context2.abrupt("return",
|
|
1701
|
+
return _context2.abrupt("return", new BigNumber('0.1034'));
|
|
1694
1702
|
|
|
1695
1703
|
case 5:
|
|
1696
|
-
return _context2.abrupt("return",
|
|
1704
|
+
return _context2.abrupt("return", new BigNumber('0.01335'));
|
|
1697
1705
|
|
|
1698
1706
|
case 6:
|
|
1699
1707
|
throw Error("Unknown token " + id + " in fetchPriceFromCoingecko");
|
|
@@ -1918,42 +1926,6 @@ function _fetchUnderlyingTokensPrices() {
|
|
|
1918
1926
|
return _fetchUnderlyingTokensPrices.apply(this, arguments);
|
|
1919
1927
|
}
|
|
1920
1928
|
|
|
1921
|
-
function fetchStNEARPrice() {
|
|
1922
|
-
return _fetchStNEARPrice.apply(this, arguments);
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
function _fetchStNEARPrice() {
|
|
1926
|
-
_fetchStNEARPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
|
|
1927
|
-
var ratioPromise, nearPricePromise, _yield$Promise$all, ratioRes, nearPrice, ratio;
|
|
1928
|
-
|
|
1929
|
-
return runtime_1.wrap(function _callee8$(_context8) {
|
|
1930
|
-
while (1) {
|
|
1931
|
-
switch (_context8.prev = _context8.next) {
|
|
1932
|
-
case 0:
|
|
1933
|
-
ratioPromise = axios.get('https://validators.narwallets.com/metrics_json').then(function (res) {
|
|
1934
|
-
return res.data;
|
|
1935
|
-
});
|
|
1936
|
-
nearPricePromise = fetchPriceFromCoingeckoAPI('near');
|
|
1937
|
-
_context8.next = 4;
|
|
1938
|
-
return Promise.all([ratioPromise, nearPricePromise]);
|
|
1939
|
-
|
|
1940
|
-
case 4:
|
|
1941
|
-
_yield$Promise$all = _context8.sent;
|
|
1942
|
-
ratioRes = _yield$Promise$all[0];
|
|
1943
|
-
nearPrice = _yield$Promise$all[1];
|
|
1944
|
-
ratio = new BigNumber(ratioRes.st_near_price);
|
|
1945
|
-
return _context8.abrupt("return", ratio.multipliedBy(nearPrice));
|
|
1946
|
-
|
|
1947
|
-
case 9:
|
|
1948
|
-
case "end":
|
|
1949
|
-
return _context8.stop();
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
}, _callee8);
|
|
1953
|
-
}));
|
|
1954
|
-
return _fetchStNEARPrice.apply(this, arguments);
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
1929
|
function shouldFetchFromCoingecko(address) {
|
|
1958
1930
|
address = address.toLowerCase();
|
|
1959
1931
|
return address == networkAddresses.tokens.AURORA || address == networkAddresses.tokens.TRI || address == networkAddresses.tokens.META;
|
|
@@ -1968,50 +1940,42 @@ function _fetchPrice(_x11, _x12) {
|
|
|
1968
1940
|
}
|
|
1969
1941
|
|
|
1970
1942
|
function _fetchPrice2() {
|
|
1971
|
-
_fetchPrice2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1943
|
+
_fetchPrice2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(address, provider) {
|
|
1972
1944
|
var matchingAuToken;
|
|
1973
|
-
return runtime_1.wrap(function
|
|
1945
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
1974
1946
|
while (1) {
|
|
1975
|
-
switch (
|
|
1947
|
+
switch (_context8.prev = _context8.next) {
|
|
1976
1948
|
case 0:
|
|
1977
1949
|
assert(PRICE_WHITELISTED.has(address.toLocaleLowerCase()), "Address " + address + " is not whitelisted for price fetching");
|
|
1978
1950
|
|
|
1979
|
-
if (!isSameAddress(address, networkAddresses.tokens.stNEAR)) {
|
|
1980
|
-
_context9.next = 3;
|
|
1981
|
-
break;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
return _context9.abrupt("return", fetchStNEARPrice());
|
|
1985
|
-
|
|
1986
|
-
case 3:
|
|
1987
1951
|
if (!shouldFetchFromCoingecko(address)) {
|
|
1988
|
-
|
|
1952
|
+
_context8.next = 3;
|
|
1989
1953
|
break;
|
|
1990
1954
|
}
|
|
1991
1955
|
|
|
1992
|
-
return
|
|
1956
|
+
return _context8.abrupt("return", fetchPriceFromCoingecko(address));
|
|
1993
1957
|
|
|
1994
|
-
case
|
|
1958
|
+
case 3:
|
|
1995
1959
|
matchingAuToken = networkAddresses.auTokens.find(function (auToken) {
|
|
1996
1960
|
return isSameAddress(auToken.underlying, address);
|
|
1997
1961
|
});
|
|
1998
1962
|
|
|
1999
1963
|
if (!(matchingAuToken !== undefined)) {
|
|
2000
|
-
|
|
1964
|
+
_context8.next = 8;
|
|
2001
1965
|
break;
|
|
2002
1966
|
}
|
|
2003
1967
|
|
|
2004
|
-
return
|
|
1968
|
+
return _context8.abrupt("return", fetchPriceFromOracle(matchingAuToken.address, getDecimal(address), provider));
|
|
2005
1969
|
|
|
2006
|
-
case
|
|
1970
|
+
case 8:
|
|
2007
1971
|
throw Error("Unable to fetch price for " + address);
|
|
2008
1972
|
|
|
2009
|
-
case
|
|
1973
|
+
case 9:
|
|
2010
1974
|
case "end":
|
|
2011
|
-
return
|
|
1975
|
+
return _context8.stop();
|
|
2012
1976
|
}
|
|
2013
1977
|
}
|
|
2014
|
-
},
|
|
1978
|
+
}, _callee8);
|
|
2015
1979
|
}));
|
|
2016
1980
|
return _fetchPrice2.apply(this, arguments);
|
|
2017
1981
|
}
|
|
@@ -2021,51 +1985,51 @@ function fetchPrice(_x13, _x14) {
|
|
|
2021
1985
|
}
|
|
2022
1986
|
|
|
2023
1987
|
function _fetchPrice3() {
|
|
2024
|
-
_fetchPrice3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2025
|
-
return runtime_1.wrap(function
|
|
1988
|
+
_fetchPrice3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(address, provider) {
|
|
1989
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
2026
1990
|
while (1) {
|
|
2027
|
-
switch (
|
|
1991
|
+
switch (_context9.prev = _context9.next) {
|
|
2028
1992
|
case 0:
|
|
2029
1993
|
if (!(address.toLowerCase() in HARDCODE_PRICE_TOKENS)) {
|
|
2030
|
-
|
|
1994
|
+
_context9.next = 4;
|
|
2031
1995
|
break;
|
|
2032
1996
|
}
|
|
2033
1997
|
|
|
2034
|
-
return
|
|
1998
|
+
return _context9.abrupt("return", new BigNumber(HARDCODE_PRICE_TOKENS[address.toLowerCase()]));
|
|
2035
1999
|
|
|
2036
2000
|
case 4:
|
|
2037
2001
|
if (!isSameAddress(address, networkAddresses.tokens.PLYWNEAR)) {
|
|
2038
|
-
|
|
2002
|
+
_context9.next = 8;
|
|
2039
2003
|
break;
|
|
2040
2004
|
}
|
|
2041
2005
|
|
|
2042
|
-
return
|
|
2006
|
+
return _context9.abrupt("return", fetchLPPrice(address, provider));
|
|
2043
2007
|
|
|
2044
2008
|
case 8:
|
|
2045
2009
|
if (!isSameAddress(address, networkAddresses.tokens.PLY)) {
|
|
2046
|
-
|
|
2010
|
+
_context9.next = 12;
|
|
2047
2011
|
break;
|
|
2048
2012
|
}
|
|
2049
2013
|
|
|
2050
|
-
return
|
|
2014
|
+
return _context9.abrupt("return", fetchPLYPrice(provider));
|
|
2051
2015
|
|
|
2052
2016
|
case 12:
|
|
2053
2017
|
if (!isSameAddress(address, networkAddresses.tokens.PULP)) {
|
|
2054
|
-
|
|
2018
|
+
_context9.next = 14;
|
|
2055
2019
|
break;
|
|
2056
2020
|
}
|
|
2057
2021
|
|
|
2058
|
-
return
|
|
2022
|
+
return _context9.abrupt("return", fetchPULPPrice(provider));
|
|
2059
2023
|
|
|
2060
2024
|
case 14:
|
|
2061
|
-
return
|
|
2025
|
+
return _context9.abrupt("return", _fetchPrice(address, provider));
|
|
2062
2026
|
|
|
2063
2027
|
case 15:
|
|
2064
2028
|
case "end":
|
|
2065
|
-
return
|
|
2029
|
+
return _context9.stop();
|
|
2066
2030
|
}
|
|
2067
2031
|
}
|
|
2068
|
-
},
|
|
2032
|
+
}, _callee9);
|
|
2069
2033
|
}));
|
|
2070
2034
|
return _fetchPrice3.apply(this, arguments);
|
|
2071
2035
|
}
|
|
@@ -2075,19 +2039,19 @@ function fetchPLYPrice(_x15) {
|
|
|
2075
2039
|
}
|
|
2076
2040
|
|
|
2077
2041
|
function _fetchPLYPrice() {
|
|
2078
|
-
_fetchPLYPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2079
|
-
return runtime_1.wrap(function
|
|
2042
|
+
_fetchPLYPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(provider) {
|
|
2043
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
2080
2044
|
while (1) {
|
|
2081
|
-
switch (
|
|
2045
|
+
switch (_context10.prev = _context10.next) {
|
|
2082
2046
|
case 0:
|
|
2083
|
-
return
|
|
2047
|
+
return _context10.abrupt("return", fetchToken0PriceByLP(networkAddresses.tokens.PLYWNEAR, provider));
|
|
2084
2048
|
|
|
2085
2049
|
case 1:
|
|
2086
2050
|
case "end":
|
|
2087
|
-
return
|
|
2051
|
+
return _context10.stop();
|
|
2088
2052
|
}
|
|
2089
2053
|
}
|
|
2090
|
-
},
|
|
2054
|
+
}, _callee10);
|
|
2091
2055
|
}));
|
|
2092
2056
|
return _fetchPLYPrice.apply(this, arguments);
|
|
2093
2057
|
}
|
|
@@ -2097,19 +2061,19 @@ function fetchPULPPrice(_x16) {
|
|
|
2097
2061
|
}
|
|
2098
2062
|
|
|
2099
2063
|
function _fetchPULPPrice() {
|
|
2100
|
-
_fetchPULPPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2101
|
-
return runtime_1.wrap(function
|
|
2064
|
+
_fetchPULPPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(provider) {
|
|
2065
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
|
2102
2066
|
while (1) {
|
|
2103
|
-
switch (
|
|
2067
|
+
switch (_context11.prev = _context11.next) {
|
|
2104
2068
|
case 0:
|
|
2105
|
-
return
|
|
2069
|
+
return _context11.abrupt("return", new BigNumber(0));
|
|
2106
2070
|
|
|
2107
2071
|
case 1:
|
|
2108
2072
|
case "end":
|
|
2109
|
-
return
|
|
2073
|
+
return _context11.stop();
|
|
2110
2074
|
}
|
|
2111
2075
|
}
|
|
2112
|
-
},
|
|
2076
|
+
}, _callee11);
|
|
2113
2077
|
}));
|
|
2114
2078
|
return _fetchPULPPrice.apply(this, arguments);
|
|
2115
2079
|
}
|
|
@@ -2119,42 +2083,42 @@ function fetchToken0PriceByLP(_x17, _x18) {
|
|
|
2119
2083
|
}
|
|
2120
2084
|
|
|
2121
2085
|
function _fetchToken0PriceByLP() {
|
|
2122
|
-
_fetchToken0PriceByLP = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2086
|
+
_fetchToken0PriceByLP = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(LP, provider) {
|
|
2123
2087
|
var LPInfo, token0Decimal, token1Decimal;
|
|
2124
|
-
return runtime_1.wrap(function
|
|
2088
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
|
2125
2089
|
while (1) {
|
|
2126
|
-
switch (
|
|
2090
|
+
switch (_context12.prev = _context12.next) {
|
|
2127
2091
|
case 0:
|
|
2128
|
-
|
|
2092
|
+
_context12.next = 2;
|
|
2129
2093
|
return fetchLPPositions(LP, provider);
|
|
2130
2094
|
|
|
2131
2095
|
case 2:
|
|
2132
|
-
LPInfo =
|
|
2096
|
+
LPInfo = _context12.sent;
|
|
2133
2097
|
|
|
2134
2098
|
if (!LPInfo.reserve1.isZero()) {
|
|
2135
|
-
|
|
2099
|
+
_context12.next = 5;
|
|
2136
2100
|
break;
|
|
2137
2101
|
}
|
|
2138
2102
|
|
|
2139
|
-
return
|
|
2103
|
+
return _context12.abrupt("return", new BigNumber(0));
|
|
2140
2104
|
|
|
2141
2105
|
case 5:
|
|
2142
2106
|
token0Decimal = getDecimal(LPInfo.token0);
|
|
2143
2107
|
token1Decimal = getDecimal(LPInfo.token1); // (token0Price * reserve0) / 10^decimal0 = (token1Price * reserve1) / 10^decimal1
|
|
2144
2108
|
// token0Price = (token1Price * reserve1) * 10^decimal0 / 10^decimal1 / reserve0
|
|
2145
2109
|
|
|
2146
|
-
|
|
2110
|
+
_context12.next = 9;
|
|
2147
2111
|
return fetchPrice(LPInfo.token1, provider);
|
|
2148
2112
|
|
|
2149
2113
|
case 9:
|
|
2150
|
-
return
|
|
2114
|
+
return _context12.abrupt("return", _context12.sent.multipliedBy(LPInfo.reserve1.toString()).multipliedBy(decimalFactor(token0Decimal)).dividedBy(decimalFactor(token1Decimal)).dividedBy(LPInfo.reserve0.toString()));
|
|
2151
2115
|
|
|
2152
2116
|
case 10:
|
|
2153
2117
|
case "end":
|
|
2154
|
-
return
|
|
2118
|
+
return _context12.stop();
|
|
2155
2119
|
}
|
|
2156
2120
|
}
|
|
2157
|
-
},
|
|
2121
|
+
}, _callee12);
|
|
2158
2122
|
}));
|
|
2159
2123
|
return _fetchToken0PriceByLP.apply(this, arguments);
|
|
2160
2124
|
}
|
|
@@ -2164,33 +2128,33 @@ function fetchValuation(_x19, _x20) {
|
|
|
2164
2128
|
}
|
|
2165
2129
|
|
|
2166
2130
|
function _fetchValuation() {
|
|
2167
|
-
_fetchValuation = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2131
|
+
_fetchValuation = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(tokenAmount, provider) {
|
|
2168
2132
|
var price;
|
|
2169
|
-
return runtime_1.wrap(function
|
|
2133
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
|
2170
2134
|
while (1) {
|
|
2171
|
-
switch (
|
|
2135
|
+
switch (_context13.prev = _context13.next) {
|
|
2172
2136
|
case 0:
|
|
2173
2137
|
if (!(tokenAmount.rawAmount() == '0')) {
|
|
2174
|
-
|
|
2138
|
+
_context13.next = 2;
|
|
2175
2139
|
break;
|
|
2176
2140
|
}
|
|
2177
2141
|
|
|
2178
|
-
return
|
|
2142
|
+
return _context13.abrupt("return", new BigNumber(0));
|
|
2179
2143
|
|
|
2180
2144
|
case 2:
|
|
2181
|
-
|
|
2145
|
+
_context13.next = 4;
|
|
2182
2146
|
return fetchPrice(tokenAmount.token.address, provider);
|
|
2183
2147
|
|
|
2184
2148
|
case 4:
|
|
2185
|
-
price =
|
|
2186
|
-
return
|
|
2149
|
+
price = _context13.sent;
|
|
2150
|
+
return _context13.abrupt("return", calcValuation(tokenAmount, price));
|
|
2187
2151
|
|
|
2188
2152
|
case 6:
|
|
2189
2153
|
case "end":
|
|
2190
|
-
return
|
|
2154
|
+
return _context13.stop();
|
|
2191
2155
|
}
|
|
2192
2156
|
}
|
|
2193
|
-
},
|
|
2157
|
+
}, _callee13);
|
|
2194
2158
|
}));
|
|
2195
2159
|
return _fetchValuation.apply(this, arguments);
|
|
2196
2160
|
}
|
|
@@ -2203,18 +2167,18 @@ function valuateToken(_x21, _x22) {
|
|
|
2203
2167
|
}
|
|
2204
2168
|
|
|
2205
2169
|
function _valuateToken() {
|
|
2206
|
-
_valuateToken = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
2170
|
+
_valuateToken = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(tokenAmount, provider) {
|
|
2207
2171
|
var tokenValuation;
|
|
2208
|
-
return runtime_1.wrap(function
|
|
2172
|
+
return runtime_1.wrap(function _callee14$(_context14) {
|
|
2209
2173
|
while (1) {
|
|
2210
|
-
switch (
|
|
2174
|
+
switch (_context14.prev = _context14.next) {
|
|
2211
2175
|
case 0:
|
|
2212
|
-
|
|
2176
|
+
_context14.next = 2;
|
|
2213
2177
|
return fetchValuation(tokenAmount, provider);
|
|
2214
2178
|
|
|
2215
2179
|
case 2:
|
|
2216
|
-
tokenValuation =
|
|
2217
|
-
return
|
|
2180
|
+
tokenValuation = _context14.sent;
|
|
2181
|
+
return _context14.abrupt("return", {
|
|
2218
2182
|
tokenAmount: tokenAmount,
|
|
2219
2183
|
currencyAmount: {
|
|
2220
2184
|
currency: 'USD',
|
|
@@ -2224,10 +2188,10 @@ function _valuateToken() {
|
|
|
2224
2188
|
|
|
2225
2189
|
case 4:
|
|
2226
2190
|
case "end":
|
|
2227
|
-
return
|
|
2191
|
+
return _context14.stop();
|
|
2228
2192
|
}
|
|
2229
2193
|
}
|
|
2230
|
-
},
|
|
2194
|
+
}, _callee14);
|
|
2231
2195
|
}));
|
|
2232
2196
|
return _valuateToken.apply(this, arguments);
|
|
2233
2197
|
}
|
|
@@ -2362,7 +2326,6 @@ var helpers = {
|
|
|
2362
2326
|
fetchLPPrice: fetchLPPrice,
|
|
2363
2327
|
fetchPriceFromOracle: fetchPriceFromOracle,
|
|
2364
2328
|
fetchUnderlyingTokensPrices: fetchUnderlyingTokensPrices,
|
|
2365
|
-
fetchStNEARPrice: fetchStNEARPrice,
|
|
2366
2329
|
fetchPrice: fetchPrice,
|
|
2367
2330
|
fetchPLYPrice: fetchPLYPrice,
|
|
2368
2331
|
fetchPULPPrice: fetchPULPPrice,
|
|
@@ -5075,5 +5038,5 @@ BigNumber.config({
|
|
|
5075
5038
|
DECIMAL_PLACES: 50
|
|
5076
5039
|
});
|
|
5077
5040
|
|
|
5078
|
-
export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, Airdrop, AirdropRead, AirdropReadWrite, AuriEnv, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, ComptrollerRewardType, DECIMAL_PRECISION, DEPOSIT_NEAR_REWARDS_PER_WEEK, DEPOSIT_ONLY_TOKENS, ETHAddress, HARDCODE_PRICE_TOKENS, INF, MarketAction, MiscRead, MoneyMarket, MoneyMarketRead, MoneyMarketReadWrite, ONE_DAY, ONE_WEEK, ONE_YEAR, PLYToken, PLYWNEARToken, PLYWNEAR_POOL_ID, PLYWNEAR_REWARD_TOKENS, PRICE_WHITELISTED, Papermill, PapermillRead, PapermillReadWrite, REWARD_CLAIM_START, Referral, ReferralRead, ReferralReadWrite, SDK, SdkRead, SdkReadWrite, Staking, StakingRead, StakingReadWrite, Token, TokenAmount, TransferEventQuery, index as abis, assert, calcLMRewardApr, calcValuation, decimalFactor, decimalRecords, devLog, dummyAddress, dummyMarketAddress, dummyPly, dummyPlyAurora, dummyToken, dummyTokenAmount, dummyTokenAmount2, dummyTokenAmount3, dummyUserMarketDetails, dummyZeroTokenAmount, fetchLPPositions, fetchLPPrice, fetchPLYPrice, fetchPULPPrice, fetchPrice, fetchPriceFromCoingecko, fetchPriceFromCoingeckoAPI, fetchPriceFromOracle,
|
|
5041
|
+
export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, Airdrop, AirdropRead, AirdropReadWrite, AuriEnv, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, ComptrollerRewardType, DECIMAL_PRECISION, DEPOSIT_NEAR_REWARDS_PER_WEEK, DEPOSIT_ONLY_TOKENS, ETHAddress, HARDCODE_PRICE_TOKENS, INF, MarketAction, MiscRead, MoneyMarket, MoneyMarketRead, MoneyMarketReadWrite, ONE_DAY, ONE_WEEK, ONE_YEAR, PLYToken, PLYWNEARToken, PLYWNEAR_POOL_ID, PLYWNEAR_REWARD_TOKENS, PRICE_WHITELISTED, Papermill, PapermillRead, PapermillReadWrite, REWARD_CLAIM_START, Referral, ReferralRead, ReferralReadWrite, SDK, SdkRead, SdkReadWrite, Staking, StakingRead, StakingReadWrite, Token, TokenAmount, TransferEventQuery, index as abis, assert, calcLMRewardApr, calcValuation, decimalFactor, decimalRecords, devLog, dummyAddress, dummyMarketAddress, dummyPly, dummyPlyAurora, dummyToken, dummyTokenAmount, dummyTokenAmount2, dummyTokenAmount3, dummyUserMarketDetails, dummyZeroTokenAmount, fetchLPPositions, fetchLPPrice, fetchPLYPrice, fetchPULPPrice, fetchPrice, fetchPriceFromCoingecko, fetchPriceFromCoingeckoAPI, fetchPriceFromOracle, fetchToken0PriceByLP, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getApi, getBlockBeforeTimestamp, getBlockTimestamp, getBlocksTimestamp, getBlocksTimestampViaRPC, getCurrentTimestamp, getDecimal, getPaginatedApi, getQuery, getSymbol, getUnderlying, isSameAddress, networkAddresses, queryGraphQL, symbolRecords, validateAndParseAddress, valuateToken };
|
|
5079
5042
|
//# sourceMappingURL=sdk.esm.js.map
|