@fileverse-dev/formulajs 4.4.11-mod-99-dune-sim-2 → 4.4.11-mod-99-dune-sim-3
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/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-99-dune-sim-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-99-dune-sim-3 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -18334,7 +18334,8 @@ function _typeof(o) {
|
|
|
18334
18334
|
return _TALLY.apply(this, arguments);
|
|
18335
18335
|
}
|
|
18336
18336
|
var duneSimParamsSchema = objectType({
|
|
18337
|
-
address: stringType().nonempty()
|
|
18337
|
+
address: stringType().nonempty(),
|
|
18338
|
+
service: enumType([ "activity" ])
|
|
18338
18339
|
});
|
|
18339
18340
|
function flattenObject(obj) {
|
|
18340
18341
|
var parentKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -18366,15 +18367,16 @@ function _typeof(o) {
|
|
|
18366
18367
|
}
|
|
18367
18368
|
function _DUNESIM() {
|
|
18368
18369
|
_DUNESIM = _asyncToGenerator(_regeneratorRuntime().mark((function _callee29() {
|
|
18369
|
-
var _argsToArray31, _argsToArray32, address, apiKey, url, _getUrlAndHeaders1, finalUrl, HEADERS, response, json, activity, _args32 = arguments;
|
|
18370
|
+
var _argsToArray31, _argsToArray32, service, address, apiKey, url, _getUrlAndHeaders1, finalUrl, HEADERS, response, json, activity, _args32 = arguments;
|
|
18370
18371
|
return _regeneratorRuntime().wrap((function _callee29$(_context32) {
|
|
18371
18372
|
while (1) switch (_context32.prev = _context32.next) {
|
|
18372
18373
|
case 0:
|
|
18373
18374
|
_context32.prev = 0;
|
|
18374
|
-
_argsToArray31 = argsToArray(_args32), _argsToArray32 = _slicedToArray(_argsToArray31,
|
|
18375
|
-
|
|
18375
|
+
_argsToArray31 = argsToArray(_args32), _argsToArray32 = _slicedToArray(_argsToArray31, 2),
|
|
18376
|
+
service = _argsToArray32[0], address = _argsToArray32[1];
|
|
18376
18377
|
validateParams(duneSimParamsSchema, {
|
|
18377
|
-
address: address
|
|
18378
|
+
address: address,
|
|
18379
|
+
service: service
|
|
18378
18380
|
});
|
|
18379
18381
|
apiKey = window.localStorage.getItem(SERVICES_API_KEY.DuneSim);
|
|
18380
18382
|
url = "https://api.sim.dune.com/v1/evm/activity/".concat(address);
|