@aurigami/sdk 1.11.2-dummy1 → 1.12.0-beta1
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 +1 -0
- package/dist/helpers/helpers.d.ts +0 -8
- package/dist/interactors/PlyGame.d.ts +5 -0
- package/dist/interactors/Referral.d.ts +2 -11
- package/dist/sdk.cjs.development.js +191 -239
- 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 +191 -238
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +2 -3
- package/package.json +3 -3
- package/src/a.ts.log +29 -0
- package/src/consts/constants.ts +3 -1
- package/src/consts/dummy.ts +4 -6
- package/src/helpers/helpers.ts +0 -21
- package/src/interactors/PlyGame.ts +17 -22
- package/src/interactors/Referral.ts +10 -31
- package/src/types/index.ts +2 -4
package/dist/sdk.esm.js
CHANGED
|
@@ -49,6 +49,7 @@ var dummyAddress = '0xDEADbeEfEEeEEEeEEEeEEeeeeeEeEEeeeeEEEEeE';
|
|
|
49
49
|
var ETHAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
50
50
|
var AURORA_CHAINID = 1313161554;
|
|
51
51
|
var DECIMAL_PRECISION = 10;
|
|
52
|
+
var AURORA_PLUS_API_PREFIX = 'https://aurora.plus/api/wallet/';
|
|
52
53
|
var networkAddresses = {
|
|
53
54
|
auTokens: [{
|
|
54
55
|
name: 'auUSDC',
|
|
@@ -110,7 +111,7 @@ var networkAddresses = {
|
|
|
110
111
|
PLY_TOKEN_LOCK: /*#__PURE__*/MAINNET_ADDRESSES.plyTokenLock.toLowerCase(),
|
|
111
112
|
REFERRAL: /*#__PURE__*/MAINNET_ADDRESSES.referralDirectory.toLowerCase(),
|
|
112
113
|
AURI_INTERNAL_LENS: /*#__PURE__*/MAINNET_ADDRESSES.auriInternalLens.toLowerCase(),
|
|
113
|
-
PLYGAME: /*#__PURE__*/
|
|
114
|
+
PLYGAME: /*#__PURE__*/'0x60bf668CA101060BD83BD644531a38719586B89f'.toLowerCase()
|
|
114
115
|
},
|
|
115
116
|
tokens: {
|
|
116
117
|
AURORA: /*#__PURE__*/'0x8bec47865ade3b172a928df8f990bc7f2a3b9f79'.toLowerCase(),
|
|
@@ -1207,30 +1208,6 @@ var isSameAddress = function isSameAddress(address1, address2) {
|
|
|
1207
1208
|
var getCurrentTimestamp = function getCurrentTimestamp() {
|
|
1208
1209
|
return Math.trunc(Date.now() / 1000);
|
|
1209
1210
|
};
|
|
1210
|
-
function sleep(_x) {
|
|
1211
|
-
return _sleep.apply(this, arguments);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
function _sleep() {
|
|
1215
|
-
_sleep = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(duration) {
|
|
1216
|
-
return runtime_1.wrap(function _callee$(_context) {
|
|
1217
|
-
while (1) {
|
|
1218
|
-
switch (_context.prev = _context.next) {
|
|
1219
|
-
case 0:
|
|
1220
|
-
return _context.abrupt("return", new Promise(function (resolve) {
|
|
1221
|
-
setTimeout(resolve, duration);
|
|
1222
|
-
}));
|
|
1223
|
-
|
|
1224
|
-
case 1:
|
|
1225
|
-
case "end":
|
|
1226
|
-
return _context.stop();
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
}, _callee);
|
|
1230
|
-
}));
|
|
1231
|
-
return _sleep.apply(this, arguments);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
1211
|
function validateAndParseAddress(address) {
|
|
1235
1212
|
try {
|
|
1236
1213
|
return utils.getAddress(address);
|
|
@@ -1272,35 +1249,35 @@ function calcLMRewardApr(rewardsValue, totalStakeValue, frequencyPerYear) {
|
|
|
1272
1249
|
|
|
1273
1250
|
return rewardsValue.multipliedBy(frequencyPerYear).dividedBy(totalStakeValue);
|
|
1274
1251
|
}
|
|
1275
|
-
function getBlockTimestamp(
|
|
1252
|
+
function getBlockTimestamp(_x, _x2) {
|
|
1276
1253
|
return _getBlockTimestamp.apply(this, arguments);
|
|
1277
1254
|
}
|
|
1278
1255
|
|
|
1279
1256
|
function _getBlockTimestamp() {
|
|
1280
|
-
_getBlockTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1257
|
+
_getBlockTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(provider, blockNumber) {
|
|
1281
1258
|
var block;
|
|
1282
|
-
return runtime_1.wrap(function
|
|
1259
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
1283
1260
|
while (1) {
|
|
1284
|
-
switch (
|
|
1261
|
+
switch (_context.prev = _context.next) {
|
|
1285
1262
|
case 0:
|
|
1286
|
-
|
|
1263
|
+
_context.next = 2;
|
|
1287
1264
|
return provider.getBlock(blockNumber);
|
|
1288
1265
|
|
|
1289
1266
|
case 2:
|
|
1290
|
-
block =
|
|
1291
|
-
return
|
|
1267
|
+
block = _context.sent;
|
|
1268
|
+
return _context.abrupt("return", block.timestamp);
|
|
1292
1269
|
|
|
1293
1270
|
case 4:
|
|
1294
1271
|
case "end":
|
|
1295
|
-
return
|
|
1272
|
+
return _context.stop();
|
|
1296
1273
|
}
|
|
1297
1274
|
}
|
|
1298
|
-
},
|
|
1275
|
+
}, _callee);
|
|
1299
1276
|
}));
|
|
1300
1277
|
return _getBlockTimestamp.apply(this, arguments);
|
|
1301
1278
|
}
|
|
1302
1279
|
|
|
1303
|
-
function getBlocksTimestampViaRPC(
|
|
1280
|
+
function getBlocksTimestampViaRPC(_x3, _x4) {
|
|
1304
1281
|
return _getBlocksTimestampViaRPC.apply(this, arguments);
|
|
1305
1282
|
}
|
|
1306
1283
|
/**
|
|
@@ -1310,11 +1287,11 @@ function getBlocksTimestampViaRPC(_x4, _x5) {
|
|
|
1310
1287
|
*/
|
|
1311
1288
|
|
|
1312
1289
|
function _getBlocksTimestampViaRPC() {
|
|
1313
|
-
_getBlocksTimestampViaRPC = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1290
|
+
_getBlocksTimestampViaRPC = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(provider, blocksNumber) {
|
|
1314
1291
|
var CHUNK_SIZE, results, i, slice, promises;
|
|
1315
|
-
return runtime_1.wrap(function
|
|
1292
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
|
1316
1293
|
while (1) {
|
|
1317
|
-
switch (
|
|
1294
|
+
switch (_context3.prev = _context3.next) {
|
|
1318
1295
|
case 0:
|
|
1319
1296
|
// Promise all 200 blocks at a time, using too many blocks at once will cause the RPC call timeout.
|
|
1320
1297
|
CHUNK_SIZE = 200;
|
|
@@ -1323,58 +1300,58 @@ function _getBlocksTimestampViaRPC() {
|
|
|
1323
1300
|
|
|
1324
1301
|
case 3:
|
|
1325
1302
|
if (!(i < blocksNumber.length)) {
|
|
1326
|
-
|
|
1303
|
+
_context3.next = 14;
|
|
1327
1304
|
break;
|
|
1328
1305
|
}
|
|
1329
1306
|
|
|
1330
1307
|
slice = blocksNumber.slice(i, i + CHUNK_SIZE);
|
|
1331
1308
|
promises = slice.map( /*#__PURE__*/function () {
|
|
1332
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1333
|
-
return runtime_1.wrap(function
|
|
1309
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(blockNumber) {
|
|
1310
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
1334
1311
|
while (1) {
|
|
1335
|
-
switch (
|
|
1312
|
+
switch (_context2.prev = _context2.next) {
|
|
1336
1313
|
case 0:
|
|
1337
|
-
return
|
|
1314
|
+
return _context2.abrupt("return", getBlockTimestamp(provider, blockNumber));
|
|
1338
1315
|
|
|
1339
1316
|
case 1:
|
|
1340
1317
|
case "end":
|
|
1341
|
-
return
|
|
1318
|
+
return _context2.stop();
|
|
1342
1319
|
}
|
|
1343
1320
|
}
|
|
1344
|
-
},
|
|
1321
|
+
}, _callee2);
|
|
1345
1322
|
}));
|
|
1346
1323
|
|
|
1347
|
-
return function (
|
|
1324
|
+
return function (_x9) {
|
|
1348
1325
|
return _ref.apply(this, arguments);
|
|
1349
1326
|
};
|
|
1350
1327
|
}());
|
|
1351
|
-
|
|
1352
|
-
|
|
1328
|
+
_context3.t0 = results;
|
|
1329
|
+
_context3.next = 9;
|
|
1353
1330
|
return Promise.all(promises);
|
|
1354
1331
|
|
|
1355
1332
|
case 9:
|
|
1356
|
-
|
|
1357
|
-
results =
|
|
1333
|
+
_context3.t1 = _context3.sent;
|
|
1334
|
+
results = _context3.t0.concat.call(_context3.t0, _context3.t1);
|
|
1358
1335
|
|
|
1359
1336
|
case 11:
|
|
1360
1337
|
i += CHUNK_SIZE;
|
|
1361
|
-
|
|
1338
|
+
_context3.next = 3;
|
|
1362
1339
|
break;
|
|
1363
1340
|
|
|
1364
1341
|
case 14:
|
|
1365
|
-
return
|
|
1342
|
+
return _context3.abrupt("return", results);
|
|
1366
1343
|
|
|
1367
1344
|
case 15:
|
|
1368
1345
|
case "end":
|
|
1369
|
-
return
|
|
1346
|
+
return _context3.stop();
|
|
1370
1347
|
}
|
|
1371
1348
|
}
|
|
1372
|
-
},
|
|
1349
|
+
}, _callee3);
|
|
1373
1350
|
}));
|
|
1374
1351
|
return _getBlocksTimestampViaRPC.apply(this, arguments);
|
|
1375
1352
|
}
|
|
1376
1353
|
|
|
1377
|
-
function getBlocksTimestamp(
|
|
1354
|
+
function getBlocksTimestamp(_x5, _x6) {
|
|
1378
1355
|
return _getBlocksTimestamp.apply(this, arguments);
|
|
1379
1356
|
}
|
|
1380
1357
|
/**
|
|
@@ -1387,18 +1364,18 @@ function getBlocksTimestamp(_x6, _x7) {
|
|
|
1387
1364
|
*/
|
|
1388
1365
|
|
|
1389
1366
|
function _getBlocksTimestamp() {
|
|
1390
|
-
_getBlocksTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1367
|
+
_getBlocksTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(provider, blockNumbers) {
|
|
1391
1368
|
var CHUNK_SIZE, promises, lines, i, query, results, missingBlocks, missingBlocksTimestamps;
|
|
1392
|
-
return runtime_1.wrap(function
|
|
1369
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
|
1393
1370
|
while (1) {
|
|
1394
|
-
switch (
|
|
1371
|
+
switch (_context4.prev = _context4.next) {
|
|
1395
1372
|
case 0:
|
|
1396
1373
|
if (!(blockNumbers.length == 0)) {
|
|
1397
|
-
|
|
1374
|
+
_context4.next = 2;
|
|
1398
1375
|
break;
|
|
1399
1376
|
}
|
|
1400
1377
|
|
|
1401
|
-
return
|
|
1378
|
+
return _context4.abrupt("return", []);
|
|
1402
1379
|
|
|
1403
1380
|
case 2:
|
|
1404
1381
|
CHUNK_SIZE = 100; // graphql query limit
|
|
@@ -1414,11 +1391,11 @@ function _getBlocksTimestamp() {
|
|
|
1414
1391
|
} // merge all the json objects
|
|
1415
1392
|
|
|
1416
1393
|
|
|
1417
|
-
|
|
1394
|
+
_context4.next = 8;
|
|
1418
1395
|
return Promise.all(promises);
|
|
1419
1396
|
|
|
1420
1397
|
case 8:
|
|
1421
|
-
results =
|
|
1398
|
+
results = _context4.sent.reduce(function (acc, cur) {
|
|
1422
1399
|
return _extends({}, acc, cur);
|
|
1423
1400
|
});
|
|
1424
1401
|
missingBlocks = blockNumbers.filter(function (blockNumber) {
|
|
@@ -1429,71 +1406,71 @@ function _getBlocksTimestamp() {
|
|
|
1429
1406
|
devLog("These blocks are missing from Aurora GraphQL endpoint: " + missingBlocks.join(', '));
|
|
1430
1407
|
}
|
|
1431
1408
|
|
|
1432
|
-
|
|
1409
|
+
_context4.next = 13;
|
|
1433
1410
|
return getBlocksTimestampViaRPC(provider, missingBlocks);
|
|
1434
1411
|
|
|
1435
1412
|
case 13:
|
|
1436
|
-
missingBlocksTimestamps =
|
|
1413
|
+
missingBlocksTimestamps = _context4.sent;
|
|
1437
1414
|
missingBlocksTimestamps.forEach(function (timestamp, index) {
|
|
1438
1415
|
results["b" + missingBlocks[index]] = {
|
|
1439
1416
|
timestamp: new Date(timestamp * 1000).toISOString()
|
|
1440
1417
|
};
|
|
1441
1418
|
});
|
|
1442
|
-
return
|
|
1419
|
+
return _context4.abrupt("return", blockNumbers.map(function (blockNumber) {
|
|
1443
1420
|
return Math.trunc(new Date(results["b" + blockNumber].timestamp).getTime() / 1000);
|
|
1444
1421
|
}));
|
|
1445
1422
|
|
|
1446
1423
|
case 16:
|
|
1447
1424
|
case "end":
|
|
1448
|
-
return
|
|
1425
|
+
return _context4.stop();
|
|
1449
1426
|
}
|
|
1450
1427
|
}
|
|
1451
|
-
},
|
|
1428
|
+
}, _callee4);
|
|
1452
1429
|
}));
|
|
1453
1430
|
return _getBlocksTimestamp.apply(this, arguments);
|
|
1454
1431
|
}
|
|
1455
1432
|
|
|
1456
|
-
function getBlockBeforeTimestamp(
|
|
1433
|
+
function getBlockBeforeTimestamp(_x7, _x8) {
|
|
1457
1434
|
return _getBlockBeforeTimestamp.apply(this, arguments);
|
|
1458
1435
|
}
|
|
1459
1436
|
|
|
1460
1437
|
function _getBlockBeforeTimestamp() {
|
|
1461
|
-
_getBlockBeforeTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
1438
|
+
_getBlockBeforeTimestamp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(provider, timestamp) {
|
|
1462
1439
|
var result;
|
|
1463
|
-
return runtime_1.wrap(function
|
|
1440
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
|
1464
1441
|
while (1) {
|
|
1465
|
-
switch (
|
|
1442
|
+
switch (_context5.prev = _context5.next) {
|
|
1466
1443
|
case 0:
|
|
1467
|
-
|
|
1444
|
+
_context5.next = 2;
|
|
1468
1445
|
return getQuery('block', 'getblocknobytime', {
|
|
1469
1446
|
timestamp: timestamp,
|
|
1470
1447
|
closest: 'before'
|
|
1471
1448
|
});
|
|
1472
1449
|
|
|
1473
1450
|
case 2:
|
|
1474
|
-
result =
|
|
1475
|
-
|
|
1451
|
+
result = _context5.sent;
|
|
1452
|
+
_context5.t0 = parseInt(result);
|
|
1476
1453
|
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1454
|
+
if (_context5.t0) {
|
|
1455
|
+
_context5.next = 8;
|
|
1479
1456
|
break;
|
|
1480
1457
|
}
|
|
1481
1458
|
|
|
1482
|
-
|
|
1459
|
+
_context5.next = 7;
|
|
1483
1460
|
return provider.getBlockNumber();
|
|
1484
1461
|
|
|
1485
1462
|
case 7:
|
|
1486
|
-
|
|
1463
|
+
_context5.t0 = _context5.sent;
|
|
1487
1464
|
|
|
1488
1465
|
case 8:
|
|
1489
|
-
return
|
|
1466
|
+
return _context5.abrupt("return", _context5.t0);
|
|
1490
1467
|
|
|
1491
1468
|
case 9:
|
|
1492
1469
|
case "end":
|
|
1493
|
-
return
|
|
1470
|
+
return _context5.stop();
|
|
1494
1471
|
}
|
|
1495
1472
|
}
|
|
1496
|
-
},
|
|
1473
|
+
}, _callee5);
|
|
1497
1474
|
}));
|
|
1498
1475
|
return _getBlockBeforeTimestamp.apply(this, arguments);
|
|
1499
1476
|
}
|
|
@@ -1509,20 +1486,6 @@ function devLog(message) {
|
|
|
1509
1486
|
(_console = console).log.apply(_console, ['[DEV LOG]', message].concat(optionalParams));
|
|
1510
1487
|
}
|
|
1511
1488
|
}
|
|
1512
|
-
/**
|
|
1513
|
-
* Sorts (in place) an array of Events by blocknumber.
|
|
1514
|
-
* This method mutates the array and returns a reference to the same array.
|
|
1515
|
-
**/
|
|
1516
|
-
|
|
1517
|
-
function sortEvents(events) {
|
|
1518
|
-
return events.sort(function (a, b) {
|
|
1519
|
-
if (a.blockNumber == b.blockNumber) {
|
|
1520
|
-
return a.logIndex - b.logIndex;
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
return a.blockNumber - b.blockNumber;
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
1489
|
|
|
1527
1490
|
var BlockchainEntityRead = function BlockchainEntityRead(networkConnection) {
|
|
1528
1491
|
this._networkConnection = networkConnection;
|
|
@@ -1787,23 +1750,21 @@ var dummyUserMarketDetails = {
|
|
|
1787
1750
|
};
|
|
1788
1751
|
var referralRewardDummy1 = {
|
|
1789
1752
|
campaign: 'testa',
|
|
1790
|
-
startTime:
|
|
1791
|
-
endTime:
|
|
1753
|
+
startTime: 1652882400,
|
|
1754
|
+
endTime: 1653573599,
|
|
1792
1755
|
isReferrer: false,
|
|
1793
1756
|
rewardTokenAmount: dummyTokenAmount,
|
|
1794
1757
|
transactionHash: null,
|
|
1795
|
-
userAddr: '0x...123'
|
|
1796
|
-
refereeAddress: '0x123..123'
|
|
1758
|
+
userAddr: '0x...123'
|
|
1797
1759
|
};
|
|
1798
1760
|
var referralRewardDummy2 = {
|
|
1799
1761
|
campaign: 'testb',
|
|
1800
|
-
startTime:
|
|
1801
|
-
endTime:
|
|
1762
|
+
startTime: 1652882400,
|
|
1763
|
+
endTime: 1653573599,
|
|
1802
1764
|
isReferrer: true,
|
|
1803
1765
|
rewardTokenAmount: dummyTokenAmount2,
|
|
1804
1766
|
transactionHash: '0x4da9657663b46ef18d150b897b28c7b717f16421978b52e3a06d91b54ca3548b',
|
|
1805
|
-
userAddr: '0x...456'
|
|
1806
|
-
refereeAddress: '0x123..123'
|
|
1767
|
+
userAddr: '0x...456'
|
|
1807
1768
|
};
|
|
1808
1769
|
|
|
1809
1770
|
var AURIGAMI_API_END_POINT = 'https://api.aurigami.finance/app/';
|
|
@@ -2623,7 +2584,6 @@ var helpers = {
|
|
|
2623
2584
|
decimalFactor: decimalFactor,
|
|
2624
2585
|
isSameAddress: isSameAddress,
|
|
2625
2586
|
getCurrentTimestamp: getCurrentTimestamp,
|
|
2626
|
-
sleep: sleep,
|
|
2627
2587
|
validateAndParseAddress: validateAndParseAddress,
|
|
2628
2588
|
getDecimal: getDecimal,
|
|
2629
2589
|
getSymbol: getSymbol,
|
|
@@ -2634,7 +2594,6 @@ var helpers = {
|
|
|
2634
2594
|
getBlocksTimestamp: getBlocksTimestamp,
|
|
2635
2595
|
getBlockBeforeTimestamp: getBlockBeforeTimestamp,
|
|
2636
2596
|
devLog: devLog,
|
|
2637
|
-
sortEvents: sortEvents,
|
|
2638
2597
|
fetchPriceFromCoingeckoAPI: fetchPriceFromCoingeckoAPI,
|
|
2639
2598
|
fetchPriceFromCoingecko: fetchPriceFromCoingecko,
|
|
2640
2599
|
fetchLPPositions: fetchLPPositions,
|
|
@@ -4689,14 +4648,11 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4689
4648
|
|
|
4690
4649
|
_proto.parseBetMakeEvent = function parseBetMakeEvent(event) {
|
|
4691
4650
|
var outcome = ['bigWin', 'win', 'lose', 'noImpact'][event.args.outcome];
|
|
4692
|
-
var
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
var lostAmount = betAmount.mul([0, 0, 100, 2][event.args.outcome]).div(100);
|
|
4696
|
-
var unlock = betAmount.mul([10, 1, 0, 0][event.args.outcome]);
|
|
4651
|
+
var amount = event.args.amount;
|
|
4652
|
+
var unlock = amount.mul([10, 1, 0, 0][event.args.outcome]);
|
|
4697
4653
|
return {
|
|
4698
4654
|
player: event.args.player,
|
|
4699
|
-
|
|
4655
|
+
amount: new TokenAmount(this.plyToken, amount.toString()),
|
|
4700
4656
|
unlockedPulpAmount: new TokenAmount(this.pulpToken, unlock.toString()),
|
|
4701
4657
|
outcome: outcome,
|
|
4702
4658
|
transactionHash: event.transactionHash,
|
|
@@ -4776,13 +4732,11 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4776
4732
|
|
|
4777
4733
|
case 8:
|
|
4778
4734
|
events = _context2.sent;
|
|
4779
|
-
// Sort descending by block number
|
|
4780
|
-
sortEvents(events).reverse();
|
|
4781
4735
|
return _context2.abrupt("return", this.attachTimestamp(events.map(function (event) {
|
|
4782
4736
|
return _this2.parseBetMakeEvent(event);
|
|
4783
4737
|
})));
|
|
4784
4738
|
|
|
4785
|
-
case
|
|
4739
|
+
case 10:
|
|
4786
4740
|
case "end":
|
|
4787
4741
|
return _context2.stop();
|
|
4788
4742
|
}
|
|
@@ -4832,81 +4786,72 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4832
4786
|
return currentJackpotAmount;
|
|
4833
4787
|
}();
|
|
4834
4788
|
|
|
4835
|
-
_proto.
|
|
4836
|
-
var
|
|
4837
|
-
var earlyUnlockedPulpAmount;
|
|
4789
|
+
_proto.nextJackpotRevealTime = /*#__PURE__*/function () {
|
|
4790
|
+
var _nextJackpotRevealTime = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4() {
|
|
4838
4791
|
return runtime_1.wrap(function _callee4$(_context4) {
|
|
4839
4792
|
while (1) {
|
|
4840
4793
|
switch (_context4.prev = _context4.next) {
|
|
4841
4794
|
case 0:
|
|
4842
|
-
_context4.
|
|
4843
|
-
return this.env.plygame.totalPlyUnlockedEarly(user);
|
|
4844
|
-
|
|
4845
|
-
case 2:
|
|
4846
|
-
earlyUnlockedPulpAmount = _context4.sent;
|
|
4847
|
-
return _context4.abrupt("return", new TokenAmount(this.pulpToken, earlyUnlockedPulpAmount.toString()));
|
|
4795
|
+
return _context4.abrupt("return", 0);
|
|
4848
4796
|
|
|
4849
|
-
case
|
|
4797
|
+
case 1:
|
|
4850
4798
|
case "end":
|
|
4851
4799
|
return _context4.stop();
|
|
4852
4800
|
}
|
|
4853
4801
|
}
|
|
4854
|
-
}, _callee4
|
|
4802
|
+
}, _callee4);
|
|
4855
4803
|
}));
|
|
4856
4804
|
|
|
4857
|
-
function
|
|
4858
|
-
return
|
|
4805
|
+
function nextJackpotRevealTime() {
|
|
4806
|
+
return _nextJackpotRevealTime.apply(this, arguments);
|
|
4859
4807
|
}
|
|
4860
4808
|
|
|
4861
|
-
return
|
|
4809
|
+
return nextJackpotRevealTime;
|
|
4862
4810
|
}();
|
|
4863
4811
|
|
|
4864
|
-
_proto.
|
|
4865
|
-
var
|
|
4866
|
-
var
|
|
4867
|
-
|
|
4868
|
-
var tx, i, filter, betMadeEvents;
|
|
4812
|
+
_proto.earlyUnlockedPulpAmount = /*#__PURE__*/function () {
|
|
4813
|
+
var _earlyUnlockedPulpAmount = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(user) {
|
|
4814
|
+
var earlyUnlockedPulpAmount;
|
|
4869
4815
|
return runtime_1.wrap(function _callee5$(_context5) {
|
|
4870
4816
|
while (1) {
|
|
4871
4817
|
switch (_context5.prev = _context5.next) {
|
|
4872
4818
|
case 0:
|
|
4873
4819
|
_context5.next = 2;
|
|
4874
|
-
return this.
|
|
4820
|
+
return this.env.plygame.totalPlyUnlockedEarly(user);
|
|
4875
4821
|
|
|
4876
4822
|
case 2:
|
|
4877
|
-
|
|
4878
|
-
|
|
4823
|
+
earlyUnlockedPulpAmount = _context5.sent;
|
|
4824
|
+
return _context5.abrupt("return", new TokenAmount(this.pulpToken, earlyUnlockedPulpAmount.toString()));
|
|
4879
4825
|
|
|
4880
4826
|
case 4:
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
return sleep(1000);
|
|
4888
|
-
|
|
4889
|
-
case 7:
|
|
4890
|
-
_context5.next = 9;
|
|
4891
|
-
return this._networkConnection.provider.getTransactionReceipt(txHash);
|
|
4827
|
+
case "end":
|
|
4828
|
+
return _context5.stop();
|
|
4829
|
+
}
|
|
4830
|
+
}
|
|
4831
|
+
}, _callee5, this);
|
|
4832
|
+
}));
|
|
4892
4833
|
|
|
4893
|
-
|
|
4894
|
-
|
|
4834
|
+
function earlyUnlockedPulpAmount(_x3) {
|
|
4835
|
+
return _earlyUnlockedPulpAmount.apply(this, arguments);
|
|
4836
|
+
}
|
|
4895
4837
|
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
_context5.next = 4;
|
|
4899
|
-
break;
|
|
4838
|
+
return earlyUnlockedPulpAmount;
|
|
4839
|
+
}();
|
|
4900
4840
|
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
break;
|
|
4905
|
-
}
|
|
4841
|
+
_proto.getPlyGameResultsInTransaction = /*#__PURE__*/function () {
|
|
4842
|
+
var _getPlyGameResultsInTransaction = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(txHash) {
|
|
4843
|
+
var _this3 = this;
|
|
4906
4844
|
|
|
4907
|
-
|
|
4845
|
+
var tx, filter, betMadeEvents;
|
|
4846
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
|
4847
|
+
while (1) {
|
|
4848
|
+
switch (_context6.prev = _context6.next) {
|
|
4849
|
+
case 0:
|
|
4850
|
+
_context6.next = 2;
|
|
4851
|
+
return this._networkConnection.provider.getTransactionReceipt(txHash);
|
|
4908
4852
|
|
|
4909
|
-
case
|
|
4853
|
+
case 2:
|
|
4854
|
+
tx = _context6.sent;
|
|
4910
4855
|
filter = this.env.plygame.filters.BetMade();
|
|
4911
4856
|
betMadeEvents = tx.logs.filter(function (log) {
|
|
4912
4857
|
return isSameAddress(log.topics[0], filter.topics[0]);
|
|
@@ -4916,16 +4861,16 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4916
4861
|
transactionHash: txHash
|
|
4917
4862
|
});
|
|
4918
4863
|
});
|
|
4919
|
-
return
|
|
4864
|
+
return _context6.abrupt("return", this.attachTimestamp(betMadeEvents.map(function (e) {
|
|
4920
4865
|
return _this3.parseBetMakeEvent(e);
|
|
4921
4866
|
})));
|
|
4922
4867
|
|
|
4923
|
-
case
|
|
4868
|
+
case 6:
|
|
4924
4869
|
case "end":
|
|
4925
|
-
return
|
|
4870
|
+
return _context6.stop();
|
|
4926
4871
|
}
|
|
4927
4872
|
}
|
|
4928
|
-
},
|
|
4873
|
+
}, _callee6, this);
|
|
4929
4874
|
}));
|
|
4930
4875
|
|
|
4931
4876
|
function getPlyGameResultsInTransaction(_x4) {
|
|
@@ -4942,20 +4887,20 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4942
4887
|
_proto.leaderboard =
|
|
4943
4888
|
/*#__PURE__*/
|
|
4944
4889
|
function () {
|
|
4945
|
-
var _leaderboard = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
4890
|
+
var _leaderboard = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7() {
|
|
4946
4891
|
var _this4 = this;
|
|
4947
4892
|
|
|
4948
4893
|
var result;
|
|
4949
|
-
return runtime_1.wrap(function
|
|
4894
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
|
4950
4895
|
while (1) {
|
|
4951
|
-
switch (
|
|
4896
|
+
switch (_context7.prev = _context7.next) {
|
|
4952
4897
|
case 0:
|
|
4953
|
-
|
|
4898
|
+
_context7.next = 2;
|
|
4954
4899
|
return getPaginatedApi('/plygame/leaderboard');
|
|
4955
4900
|
|
|
4956
4901
|
case 2:
|
|
4957
|
-
result =
|
|
4958
|
-
return
|
|
4902
|
+
result = _context7.sent;
|
|
4903
|
+
return _context7.abrupt("return", result.items.map(function (item, i) {
|
|
4959
4904
|
return {
|
|
4960
4905
|
player: item.user,
|
|
4961
4906
|
unlockedPulpAmount: new TokenAmount(_this4.pulpToken, item.unlockedAmount),
|
|
@@ -4965,10 +4910,10 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4965
4910
|
|
|
4966
4911
|
case 4:
|
|
4967
4912
|
case "end":
|
|
4968
|
-
return
|
|
4913
|
+
return _context7.stop();
|
|
4969
4914
|
}
|
|
4970
4915
|
}
|
|
4971
|
-
},
|
|
4916
|
+
}, _callee7);
|
|
4972
4917
|
}));
|
|
4973
4918
|
|
|
4974
4919
|
function leaderboard() {
|
|
@@ -4989,28 +4934,57 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
4989
4934
|
|
|
4990
4935
|
var _proto2 = PlyGameReadWrite.prototype;
|
|
4991
4936
|
|
|
4937
|
+
/**
|
|
4938
|
+
* makes "times" independent bets, but consecutively, of the same amount
|
|
4939
|
+
*/
|
|
4940
|
+
_proto2.makeBetMultiple =
|
|
4941
|
+
/*#__PURE__*/
|
|
4942
|
+
function () {
|
|
4943
|
+
var _makeBetMultiple = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount, times) {
|
|
4944
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
4945
|
+
while (1) {
|
|
4946
|
+
switch (_context8.prev = _context8.next) {
|
|
4947
|
+
case 0:
|
|
4948
|
+
return _context8.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetMultiple(amount.rawAmount(), times));
|
|
4949
|
+
|
|
4950
|
+
case 1:
|
|
4951
|
+
case "end":
|
|
4952
|
+
return _context8.stop();
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4955
|
+
}, _callee8, this);
|
|
4956
|
+
}));
|
|
4957
|
+
|
|
4958
|
+
function makeBetMultiple(_x5, _x6) {
|
|
4959
|
+
return _makeBetMultiple.apply(this, arguments);
|
|
4960
|
+
}
|
|
4961
|
+
|
|
4962
|
+
return makeBetMultiple;
|
|
4963
|
+
}()
|
|
4992
4964
|
/**
|
|
4993
4965
|
* Make a single bet
|
|
4994
4966
|
*/
|
|
4967
|
+
;
|
|
4968
|
+
|
|
4995
4969
|
_proto2.makeBetOnce =
|
|
4996
4970
|
/*#__PURE__*/
|
|
4997
4971
|
function () {
|
|
4998
|
-
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
4999
|
-
return runtime_1.wrap(function
|
|
4972
|
+
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
|
|
4973
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
5000
4974
|
while (1) {
|
|
5001
|
-
switch (
|
|
4975
|
+
switch (_context9.prev = _context9.next) {
|
|
5002
4976
|
case 0:
|
|
5003
|
-
return
|
|
4977
|
+
return _context9.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
|
|
5004
4978
|
|
|
5005
4979
|
case 1:
|
|
5006
4980
|
case "end":
|
|
5007
|
-
return
|
|
4981
|
+
return _context9.stop();
|
|
5008
4982
|
}
|
|
5009
4983
|
}
|
|
5010
|
-
},
|
|
4984
|
+
}, _callee9, this);
|
|
5011
4985
|
}));
|
|
5012
4986
|
|
|
5013
|
-
function makeBetOnce(
|
|
4987
|
+
function makeBetOnce(_x7) {
|
|
5014
4988
|
return _makeBetOnce.apply(this, arguments);
|
|
5015
4989
|
}
|
|
5016
4990
|
|
|
@@ -5018,22 +4992,22 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
5018
4992
|
}();
|
|
5019
4993
|
|
|
5020
4994
|
_proto2.approve = /*#__PURE__*/function () {
|
|
5021
|
-
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
5022
|
-
return runtime_1.wrap(function
|
|
4995
|
+
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(amount) {
|
|
4996
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
5023
4997
|
while (1) {
|
|
5024
|
-
switch (
|
|
4998
|
+
switch (_context10.prev = _context10.next) {
|
|
5025
4999
|
case 0:
|
|
5026
|
-
return
|
|
5000
|
+
return _context10.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
|
|
5027
5001
|
|
|
5028
5002
|
case 1:
|
|
5029
5003
|
case "end":
|
|
5030
|
-
return
|
|
5004
|
+
return _context10.stop();
|
|
5031
5005
|
}
|
|
5032
5006
|
}
|
|
5033
|
-
},
|
|
5007
|
+
}, _callee10, this);
|
|
5034
5008
|
}));
|
|
5035
5009
|
|
|
5036
|
-
function approve(
|
|
5010
|
+
function approve(_x8) {
|
|
5037
5011
|
return _approve.apply(this, arguments);
|
|
5038
5012
|
}
|
|
5039
5013
|
|
|
@@ -5277,14 +5251,12 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5277
5251
|
rewardTokenAmount: TokenAmount.fromAddressAndAmount(item.token, item.amount),
|
|
5278
5252
|
startTime: REFERRAL_CAMPAIGNS[item.campaign].start,
|
|
5279
5253
|
endTime: REFERRAL_CAMPAIGNS[item.campaign].end,
|
|
5280
|
-
transactionHash: (_item$transactionHash = item.transactionHash) != null ? _item$transactionHash : null
|
|
5281
|
-
refereeAddress: null
|
|
5254
|
+
transactionHash: (_item$transactionHash = item.transactionHash) != null ? _item$transactionHash : null
|
|
5282
5255
|
};
|
|
5283
5256
|
});
|
|
5284
|
-
items = [referralRewardDummy1, referralRewardDummy2].concat(items);
|
|
5285
5257
|
return _context5.abrupt("return", items);
|
|
5286
5258
|
|
|
5287
|
-
case
|
|
5259
|
+
case 5:
|
|
5288
5260
|
case "end":
|
|
5289
5261
|
return _context5.stop();
|
|
5290
5262
|
}
|
|
@@ -5327,8 +5299,7 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5327
5299
|
rewardTokenAmount: TokenAmount.fromAddressAndAmount(item.token, item.amount),
|
|
5328
5300
|
startTime: REFERRAL_CAMPAIGNS[item.campaign].start,
|
|
5329
5301
|
endTime: REFERRAL_CAMPAIGNS[item.campaign].end,
|
|
5330
|
-
transactionHash: null
|
|
5331
|
-
refereeAddress: null
|
|
5302
|
+
transactionHash: null
|
|
5332
5303
|
};
|
|
5333
5304
|
});
|
|
5334
5305
|
items.sort(function (a, b) {
|
|
@@ -5349,23 +5320,25 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5349
5320
|
}
|
|
5350
5321
|
|
|
5351
5322
|
return leaderboard;
|
|
5352
|
-
}()
|
|
5353
|
-
/**
|
|
5354
|
-
* current number of slots under a referral code being used that exceed minimum deposit amount
|
|
5355
|
-
*/
|
|
5356
|
-
;
|
|
5323
|
+
}();
|
|
5357
5324
|
|
|
5358
|
-
_proto.
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
var _slotsInUse = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(referralCode) {
|
|
5325
|
+
_proto.isWhitelistedAddress = /*#__PURE__*/function () {
|
|
5326
|
+
var _isWhitelistedAddress = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(address) {
|
|
5327
|
+
var result;
|
|
5362
5328
|
return runtime_1.wrap(function _callee7$(_context7) {
|
|
5363
5329
|
while (1) {
|
|
5364
5330
|
switch (_context7.prev = _context7.next) {
|
|
5365
5331
|
case 0:
|
|
5366
|
-
|
|
5332
|
+
_context7.next = 2;
|
|
5333
|
+
return getApi('/referral/whitelisted', {
|
|
5334
|
+
address: address
|
|
5335
|
+
});
|
|
5367
5336
|
|
|
5368
|
-
case
|
|
5337
|
+
case 2:
|
|
5338
|
+
result = _context7.sent;
|
|
5339
|
+
return _context7.abrupt("return", result.isWhitelisted);
|
|
5340
|
+
|
|
5341
|
+
case 4:
|
|
5369
5342
|
case "end":
|
|
5370
5343
|
return _context7.stop();
|
|
5371
5344
|
}
|
|
@@ -5373,60 +5346,40 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5373
5346
|
}, _callee7);
|
|
5374
5347
|
}));
|
|
5375
5348
|
|
|
5376
|
-
function
|
|
5377
|
-
return
|
|
5349
|
+
function isWhitelistedAddress(_x7) {
|
|
5350
|
+
return _isWhitelistedAddress.apply(this, arguments);
|
|
5378
5351
|
}
|
|
5379
5352
|
|
|
5380
|
-
return
|
|
5353
|
+
return isWhitelistedAddress;
|
|
5381
5354
|
}();
|
|
5382
5355
|
|
|
5383
|
-
_proto.
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
/**
|
|
5387
|
-
* a way to determine qualification status of a user. null if not referred yet,
|
|
5388
|
-
* qualified if referred + min deposit, notQualified if referred + min deposit
|
|
5389
|
-
* not reached or withdrew too early
|
|
5390
|
-
*/
|
|
5391
|
-
;
|
|
5392
|
-
|
|
5393
|
-
_proto.userReferralStatus =
|
|
5394
|
-
/*#__PURE__*/
|
|
5395
|
-
function () {
|
|
5396
|
-
var _userReferralStatus = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(userAddr) {
|
|
5356
|
+
_proto.isOnAuroraPlus = /*#__PURE__*/function () {
|
|
5357
|
+
var _isOnAuroraPlus = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(address) {
|
|
5358
|
+
var resp;
|
|
5397
5359
|
return runtime_1.wrap(function _callee8$(_context8) {
|
|
5398
5360
|
while (1) {
|
|
5399
5361
|
switch (_context8.prev = _context8.next) {
|
|
5400
5362
|
case 0:
|
|
5401
5363
|
_context8.next = 2;
|
|
5402
|
-
return
|
|
5364
|
+
return axios.get(AURORA_PLUS_API_PREFIX + address);
|
|
5403
5365
|
|
|
5404
5366
|
case 2:
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
if (!(_context8.t0 !== '')) {
|
|
5408
|
-
_context8.next = 7;
|
|
5409
|
-
break;
|
|
5410
|
-
}
|
|
5367
|
+
resp = _context8.sent;
|
|
5368
|
+
return _context8.abrupt("return", resp.data.status == 'active');
|
|
5411
5369
|
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
case 7:
|
|
5415
|
-
return _context8.abrupt("return", 'notReferred');
|
|
5416
|
-
|
|
5417
|
-
case 8:
|
|
5370
|
+
case 4:
|
|
5418
5371
|
case "end":
|
|
5419
5372
|
return _context8.stop();
|
|
5420
5373
|
}
|
|
5421
5374
|
}
|
|
5422
|
-
}, _callee8
|
|
5375
|
+
}, _callee8);
|
|
5423
5376
|
}));
|
|
5424
5377
|
|
|
5425
|
-
function
|
|
5426
|
-
return
|
|
5378
|
+
function isOnAuroraPlus(_x8) {
|
|
5379
|
+
return _isOnAuroraPlus.apply(this, arguments);
|
|
5427
5380
|
}
|
|
5428
5381
|
|
|
5429
|
-
return
|
|
5382
|
+
return isOnAuroraPlus;
|
|
5430
5383
|
}();
|
|
5431
5384
|
|
|
5432
5385
|
return ReferralRead;
|
|
@@ -5950,5 +5903,5 @@ BigNumber.config({
|
|
|
5950
5903
|
DECIMAL_PLACES: 50
|
|
5951
5904
|
});
|
|
5952
5905
|
|
|
5953
|
-
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, PlyGame, PlyGameRead, PlyGameReadWrite, REFERRAL_CAMPAIGNS, 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, fetchStNEARPrice, fetchToken0PriceByLP, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getApi, getBlockBeforeTimestamp, getBlockTimestamp, getBlocksTimestamp, getBlocksTimestampViaRPC, getCurrentTimestamp, getDecimal, getPaginatedApi, getQuery, getSymbol, getUnderlying, isSameAddress, networkAddresses, queryGraphQL, referralRewardDummy1, referralRewardDummy2,
|
|
5906
|
+
export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, AURORA_PLUS_API_PREFIX, 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, PlyGame, PlyGameRead, PlyGameReadWrite, REFERRAL_CAMPAIGNS, 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, fetchStNEARPrice, fetchToken0PriceByLP, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getApi, getBlockBeforeTimestamp, getBlockTimestamp, getBlocksTimestamp, getBlocksTimestampViaRPC, getCurrentTimestamp, getDecimal, getPaginatedApi, getQuery, getSymbol, getUnderlying, isSameAddress, networkAddresses, queryGraphQL, referralRewardDummy1, referralRewardDummy2, symbolRecords, validateAndParseAddress, valuateToken };
|
|
5954
5907
|
//# sourceMappingURL=sdk.esm.js.map
|