@fileverse-dev/formulajs 4.4.11-mod-86-patch-3 → 4.4.11-mod-87

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.
@@ -1,10 +1,6 @@
1
- /* @fileverse-dev/formulajs v4.4.11-mod-86-patch-3 */
1
+ /* @fileverse-dev/formulajs v4.4.11-mod-87 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
- function _toArray(r) {
5
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
6
- }
7
-
8
4
  function _objectWithoutProperties(e, t) {
9
5
  if (null == e) return {};
10
6
  var o, r, i = _objectWithoutPropertiesLoose(e, t);
@@ -18248,55 +18244,26 @@ function _typeof(o) {
18248
18244
  })));
18249
18245
  return _UNISWAP.apply(this, arguments);
18250
18246
  }
18251
- var smartContractSchema = arrayType(anyType()).refine((function(args) {
18252
- return args.length >= 2 && typeof args[0] === "string" && typeof args[1] === "string";
18253
- }), {
18254
- message: "First two arguments must be strings: contractName and functionName"
18255
- });
18256
18247
  function SMARTCONTRACT() {
18257
- return _SMARTCONTRACT.apply(this, arguments);
18258
- }
18259
- function _SMARTCONTRACT() {
18260
- _SMARTCONTRACT = _asyncToGenerator(_regeneratorRuntime().mark((function _callee27() {
18261
- var _argsToArray29, _argsToArray30, contractName, functionName, args, _args30 = arguments;
18262
- return _regeneratorRuntime().wrap((function _callee27$(_context30) {
18263
- while (1) switch (_context30.prev = _context30.next) {
18264
- case 0:
18265
- _context30.prev = 0;
18266
- _argsToArray29 = argsToArray(_args30), _argsToArray30 = _toArray(_argsToArray29),
18267
- contractName = _argsToArray30[0], functionName = _argsToArray30[1], args = _argsToArray30.slice(2);
18268
- validateParams(smartContractSchema, [ contractName, functionName ].concat(_toConsumableArray(args)));
18269
- return _context30.abrupt("return", new Promise((function(resolve) {
18270
- resolve({
18271
- contractName: contractName,
18272
- functionName: functionName,
18273
- args: args,
18274
- responseType: "smart-contract"
18275
- });
18276
- })));
18277
-
18278
- case 6:
18279
- _context30.prev = 6;
18280
- _context30.t0 = _context30["catch"](0);
18281
- return _context30.abrupt("return", errorMessageHandler(_context30.t0, "SMARTCONTRACT"));
18282
-
18283
- case 9:
18284
- case "end":
18285
- return _context30.stop();
18286
- }
18287
- }), _callee27, null, [ [ 0, 6 ] ]);
18288
- })));
18289
- return _SMARTCONTRACT.apply(this, arguments);
18248
+ try {
18249
+ var args = argsToArray(arguments);
18250
+ return {
18251
+ callSignature: args,
18252
+ responseType: "smart-contract"
18253
+ };
18254
+ } catch (error) {
18255
+ return errorMessageHandler(error, "SMARTCONTRACT");
18256
+ }
18290
18257
  }
18291
18258
  function FLVURL() {
18292
18259
  return _FLVURL.apply(this, arguments);
18293
18260
  }
18294
18261
  function _FLVURL() {
18295
- _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee28() {
18296
- return _regeneratorRuntime().wrap((function _callee28$(_context31) {
18297
- while (1) switch (_context31.prev = _context31.next) {
18262
+ _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee27() {
18263
+ return _regeneratorRuntime().wrap((function _callee27$(_context30) {
18264
+ while (1) switch (_context30.prev = _context30.next) {
18298
18265
  case 0:
18299
- return _context31.abrupt("return", new Promise((function(resolve) {
18266
+ return _context30.abrupt("return", new Promise((function(resolve) {
18300
18267
  setTimeout((function() {
18301
18268
  resolve([ {
18302
18269
  Yoo: "gotcha"
@@ -18306,9 +18273,9 @@ function _typeof(o) {
18306
18273
 
18307
18274
  case 1:
18308
18275
  case "end":
18309
- return _context31.stop();
18276
+ return _context30.stop();
18310
18277
  }
18311
- }), _callee28);
18278
+ }), _callee27);
18312
18279
  })));
18313
18280
  return _FLVURL.apply(this, arguments);
18314
18281
  }