@velora-dex/sdk 9.2.0 → 9.3.0-dev.0

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/sdk.esm.js CHANGED
@@ -4053,7 +4053,7 @@ function produceDeltaOrderHash(typedData) {
4053
4053
  });
4054
4054
  }
4055
4055
 
4056
- var _excluded = ["includeAgents", "excludeAgents"];
4056
+ var _excluded = ["includeAgents", "excludeAgents", "includeBridges", "excludeBridges"];
4057
4057
  var constructGetDeltaPrice = function constructGetDeltaPrice(_ref) {
4058
4058
  var _ref$apiURL = _ref.apiURL,
4059
4059
  apiURL = _ref$apiURL === void 0 ? API_URL : _ref$apiURL,
@@ -4066,30 +4066,34 @@ var constructGetDeltaPrice = function constructGetDeltaPrice(_ref) {
4066
4066
  function _getDeltaPrice() {
4067
4067
  _getDeltaPrice = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, requestParams) {
4068
4068
  var _options$side;
4069
- var includeAgents, excludeAgents, rest, includeAgentsString, excludeAgentsString, search, fetchURL, data;
4069
+ var includeAgents, excludeAgents, includeBridges, excludeBridges, rest, includeAgentsString, excludeAgentsString, includeBridgesString, excludeBridgesString, search, fetchURL, data;
4070
4070
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4071
4071
  while (1) switch (_context.prev = _context.next) {
4072
4072
  case 0:
4073
- includeAgents = options.includeAgents, excludeAgents = options.excludeAgents, rest = _objectWithoutPropertiesLoose(options, _excluded);
4073
+ includeAgents = options.includeAgents, excludeAgents = options.excludeAgents, includeBridges = options.includeBridges, excludeBridges = options.excludeBridges, rest = _objectWithoutPropertiesLoose(options, _excluded);
4074
4074
  includeAgentsString = includeAgents ? includeAgents.join(',') : undefined;
4075
4075
  excludeAgentsString = excludeAgents ? excludeAgents.join(',') : undefined;
4076
+ includeBridgesString = includeBridges ? includeBridges.join(',') : undefined;
4077
+ excludeBridgesString = excludeBridges ? excludeBridges.join(',') : undefined;
4076
4078
  search = constructSearchString(_extends({}, rest, {
4077
4079
  chainId: chainId,
4078
4080
  side: (_options$side = options.side) != null ? _options$side : SwapSide.SELL,
4079
4081
  includeAgents: includeAgentsString,
4080
- excludeAgents: excludeAgentsString
4082
+ excludeAgents: excludeAgentsString,
4083
+ includeBridges: includeBridgesString,
4084
+ excludeBridges: excludeBridgesString
4081
4085
  }));
4082
4086
  fetchURL = pricesUrl + "/" + search;
4083
- _context.next = 7;
4087
+ _context.next = 9;
4084
4088
  return fetcher({
4085
4089
  url: fetchURL,
4086
4090
  method: 'GET',
4087
4091
  requestParams: requestParams
4088
4092
  });
4089
- case 7:
4093
+ case 9:
4090
4094
  data = _context.sent;
4091
4095
  return _context.abrupt("return", data.price);
4092
- case 9:
4096
+ case 11:
4093
4097
  case "end":
4094
4098
  return _context.stop();
4095
4099
  }