@ethereansos/interfaces-core 0.4.102 → 0.4.105

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -63752,6 +63752,56 @@ const gBase64 = {
63752
63752
  extendBuiltins: extendBuiltins,
63753
63753
  };
63754
63754
 
63755
+ function memoryFetch(_x, _x2) {
63756
+ return _memoryFetch.apply(this, arguments);
63757
+ }
63758
+
63759
+ function _memoryFetch() {
63760
+ _memoryFetch = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, type) {
63761
+ var element;
63762
+ return regeneratorRuntime.wrap(function _callee$(_context) {
63763
+ while (1) {
63764
+ switch (_context.prev = _context.next) {
63765
+ case 0:
63766
+ try {
63767
+ element = JSON.parse(window.localStorage.getItem(url));
63768
+ } catch (e) {}
63769
+
63770
+ if (!element) {
63771
+ _context.next = 3;
63772
+ break;
63773
+ }
63774
+
63775
+ return _context.abrupt("return", element);
63776
+
63777
+ case 3:
63778
+ _context.next = 5;
63779
+ return fetch(url);
63780
+
63781
+ case 5:
63782
+ element = _context.sent;
63783
+ _context.next = 8;
63784
+ return element[type || 'json']();
63785
+
63786
+ case 8:
63787
+ element = _context.sent;
63788
+
63789
+ try {
63790
+ window.localStorage.setItem(url, JSON.stringify(element));
63791
+ } catch (e) {}
63792
+
63793
+ return _context.abrupt("return", element);
63794
+
63795
+ case 11:
63796
+ case "end":
63797
+ return _context.stop();
63798
+ }
63799
+ }
63800
+ }, _callee);
63801
+ }));
63802
+ return _memoryFetch.apply(this, arguments);
63803
+ }
63804
+
63755
63805
  function cleanLink(linkToClean) {
63756
63806
  var cleanedLink = linkToClean;
63757
63807
 
@@ -63827,7 +63877,7 @@ function _tryRetrieveMetadata() {
63827
63877
  item.metadataLink = metadatas && metadatas[item.address] || item.metadataLink;
63828
63878
 
63829
63879
  if (!(item.metadataLink !== '')) {
63830
- _context.next = 44;
63880
+ _context.next = 42;
63831
63881
  break;
63832
63882
  }
63833
63883
 
@@ -63842,23 +63892,19 @@ function _tryRetrieveMetadata() {
63842
63892
  }
63843
63893
 
63844
63894
  _context.t1 = JSON.parse(gBase64.decode(item.metadataLink.substring('data:application/json;base64,'.length)));
63845
- _context.next = 33;
63895
+ _context.next = 31;
63846
63896
  break;
63847
63897
 
63848
63898
  case 28:
63849
63899
  _context.next = 30;
63850
- return fetch(cleanLink(formatLink({
63900
+ return memoryFetch(cleanLink(formatLink({
63851
63901
  context: context
63852
63902
  }, item.metadataLink)));
63853
63903
 
63854
63904
  case 30:
63855
- _context.next = 32;
63856
- return _context.sent.json();
63857
-
63858
- case 32:
63859
63905
  _context.t1 = _context.sent;
63860
63906
 
63861
- case 33:
63907
+ case 31:
63862
63908
  item.metadata = _context.t1;
63863
63909
 
63864
63910
  if (typeof item.metadata !== 'string') {
@@ -63874,11 +63920,11 @@ function _tryRetrieveMetadata() {
63874
63920
  item.description = item.description && item.description.split('\n\n').join(' ');
63875
63921
  }
63876
63922
 
63877
- _context.next = 43;
63923
+ _context.next = 41;
63878
63924
  break;
63879
63925
 
63880
- case 37:
63881
- _context.prev = 37;
63926
+ case 35:
63927
+ _context.prev = 35;
63882
63928
  _context.t2 = _context["catch"](23);
63883
63929
  delete item.image;
63884
63930
  item.image = getElementImage({
@@ -63887,18 +63933,18 @@ function _tryRetrieveMetadata() {
63887
63933
  item.metadataMessage = "Could not retrieve metadata, maybe due to CORS restriction policies for the link (<a href=\"".concat(item.metadataLink, "\" target=\"_blank\">").concat(item.metadataLink, "</a>), check it on <a href=\"").concat(item.collection ? context.openSeaItemLinkTemplate.format(item.collection.address, item.id) : context.openSeaCollectionLinkTemplate.format(item.address), "\" target=\"_blank\">Opensea</a>");
63888
63934
  console.error(item.metadataMessage);
63889
63935
 
63890
- case 43:
63936
+ case 41:
63891
63937
  clearMetadata = false;
63892
63938
 
63893
- case 44:
63894
- _context.next = 48;
63939
+ case 42:
63940
+ _context.next = 46;
63895
63941
  break;
63896
63942
 
63897
- case 46:
63898
- _context.prev = 46;
63943
+ case 44:
63944
+ _context.prev = 44;
63899
63945
  _context.t3 = _context["catch"](8);
63900
63946
 
63901
- case 48:
63947
+ case 46:
63902
63948
  clearMetadata && delete item.metadata;
63903
63949
  clearMetadata && (item.metadataLink = clearMetadata ? 'blank' : item.metadataLink);
63904
63950
 
@@ -63920,12 +63966,12 @@ function _tryRetrieveMetadata() {
63920
63966
 
63921
63967
  return _context.abrupt("return", item);
63922
63968
 
63923
- case 53:
63969
+ case 51:
63924
63970
  case "end":
63925
63971
  return _context.stop();
63926
63972
  }
63927
63973
  }
63928
- }, _callee, null, [[8, 46], [23, 37]]);
63974
+ }, _callee, null, [[8, 44], [23, 35]]);
63929
63975
  }));
63930
63976
  return _tryRetrieveMetadata.apply(this, arguments);
63931
63977
  }
@@ -63994,107 +64040,165 @@ function _getTokenPriceInDollarsOnUniswap() {
63994
64040
  return _getTokenPriceInDollarsOnUniswap.apply(this, arguments);
63995
64041
  }
63996
64042
 
63997
- function getTokenPriceInDollarsOnUniswapV3(_x5, _x6, _x7) {
64043
+ function getTokenPriceInDollarsOnSushiSwap(_x5, _x6, _x7, _x8) {
64044
+ return _getTokenPriceInDollarsOnSushiSwap.apply(this, arguments);
64045
+ }
64046
+
64047
+ function _getTokenPriceInDollarsOnSushiSwap() {
64048
+ _getTokenPriceInDollarsOnSushiSwap = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(_ref2, tokenAddress, decimals, amountPlain) {
64049
+ var context, newContract, uniswapV2Router, wethAddress, ethereumPrice, path, amount, ethereumValue;
64050
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
64051
+ while (1) {
64052
+ switch (_context2.prev = _context2.next) {
64053
+ case 0:
64054
+ context = _ref2.context, newContract = _ref2.newContract;
64055
+ uniswapV2Router = newContract(context.uniswapV2RouterABI, context.sushiSwapRouterAddress);
64056
+ _context2.t0 = web3Utils;
64057
+ _context2.next = 5;
64058
+ return blockchainCall(uniswapV2Router.methods.WETH);
64059
+
64060
+ case 5:
64061
+ _context2.t1 = _context2.sent;
64062
+ wethAddress = _context2.t0.toChecksumAddress.call(_context2.t0, _context2.t1);
64063
+ _context2.next = 9;
64064
+ return getEthereumPrice({
64065
+ context: context
64066
+ });
64067
+
64068
+ case 9:
64069
+ ethereumPrice = _context2.sent;
64070
+ path = [tokenAddress, wethAddress];
64071
+ amount = toDecimals(numberToString(!isNaN(amountPlain) ? amountPlain : 1), decimals);
64072
+ ethereumValue = '0';
64073
+ _context2.prev = 13;
64074
+ _context2.next = 16;
64075
+ return blockchainCall(uniswapV2Router.methods.getAmountsOut, amount, path);
64076
+
64077
+ case 16:
64078
+ ethereumValue = _context2.sent[1];
64079
+ _context2.next = 21;
64080
+ break;
64081
+
64082
+ case 19:
64083
+ _context2.prev = 19;
64084
+ _context2.t2 = _context2["catch"](13);
64085
+
64086
+ case 21:
64087
+ ethereumValue = parseFloat(fromDecimals(ethereumValue, 18, true));
64088
+ ethereumValue *= ethereumPrice;
64089
+ return _context2.abrupt("return", ethereumValue);
64090
+
64091
+ case 24:
64092
+ case "end":
64093
+ return _context2.stop();
64094
+ }
64095
+ }
64096
+ }, _callee2, null, [[13, 19]]);
64097
+ }));
64098
+ return _getTokenPriceInDollarsOnSushiSwap.apply(this, arguments);
64099
+ }
64100
+
64101
+ function getTokenPriceInDollarsOnUniswapV3(_x9, _x10, _x11) {
63998
64102
  return _getTokenPriceInDollarsOnUniswapV.apply(this, arguments);
63999
64103
  }
64000
64104
 
64001
64105
  function _getTokenPriceInDollarsOnUniswapV() {
64002
- _getTokenPriceInDollarsOnUniswapV = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(_ref2, tokenAddress, decimals) {
64106
+ _getTokenPriceInDollarsOnUniswapV = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(_ref3, tokenAddress, decimals) {
64003
64107
  var context, newContract, chainId, uniswapV2Router, wethAddress, ethereumPrice, ethereumValue, univ3Factory, uniToken, uniTokenWeth, proms;
64004
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
64108
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
64005
64109
  while (1) {
64006
- switch (_context3.prev = _context3.next) {
64110
+ switch (_context4.prev = _context4.next) {
64007
64111
  case 0:
64008
- context = _ref2.context, newContract = _ref2.newContract, chainId = _ref2.chainId;
64112
+ context = _ref3.context, newContract = _ref3.newContract, chainId = _ref3.chainId;
64009
64113
  uniswapV2Router = newContract(context.uniswapV2RouterABI, context.uniswapV2RouterAddress);
64010
- _context3.t0 = web3Utils;
64011
- _context3.next = 5;
64114
+ _context4.t0 = web3Utils;
64115
+ _context4.next = 5;
64012
64116
  return blockchainCall(uniswapV2Router.methods.WETH);
64013
64117
 
64014
64118
  case 5:
64015
- _context3.t1 = _context3.sent;
64016
- wethAddress = _context3.t0.toChecksumAddress.call(_context3.t0, _context3.t1);
64017
- _context3.next = 9;
64119
+ _context4.t1 = _context4.sent;
64120
+ wethAddress = _context4.t0.toChecksumAddress.call(_context4.t0, _context4.t1);
64121
+ _context4.next = 9;
64018
64122
  return getEthereumPrice({
64019
64123
  context: context
64020
64124
  });
64021
64125
 
64022
64126
  case 9:
64023
- ethereumPrice = _context3.sent;
64127
+ ethereumPrice = _context4.sent;
64024
64128
  ethereumValue = '0';
64025
64129
  univ3Factory = newContract(context.UniswapV3FactoryABI, context.uniswapV3FactoryAddress);
64026
64130
  uniToken = new Token(chainId, tokenAddress, parseInt(decimals), 'TOK', 'Token');
64027
64131
  uniTokenWeth = new Token(chainId, wethAddress, 18, 'ETH', 'Ethereum');
64028
- _context3.prev = 14;
64029
- _context3.next = 17;
64132
+ _context4.prev = 14;
64133
+ _context4.next = 17;
64030
64134
  return Promise.all(Object.keys(conversionEncode).map( /*#__PURE__*/function () {
64031
- var _ref3 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(fee) {
64135
+ var _ref4 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(fee) {
64032
64136
  var pool, slot0, price;
64033
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
64137
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
64034
64138
  while (1) {
64035
- switch (_context2.prev = _context2.next) {
64139
+ switch (_context3.prev = _context3.next) {
64036
64140
  case 0:
64037
- _context2.prev = 0;
64038
- _context2.t0 = newContract;
64039
- _context2.t1 = context.UniswapV3PoolABI;
64040
- _context2.next = 5;
64141
+ _context3.prev = 0;
64142
+ _context3.t0 = newContract;
64143
+ _context3.t1 = context.UniswapV3PoolABI;
64144
+ _context3.next = 5;
64041
64145
  return blockchainCall(univ3Factory.methods.getPool, wethAddress, tokenAddress, fee);
64042
64146
 
64043
64147
  case 5:
64044
- _context2.t2 = _context2.sent;
64045
- pool = (0, _context2.t0)(_context2.t1, _context2.t2);
64046
- _context2.next = 9;
64148
+ _context3.t2 = _context3.sent;
64149
+ pool = (0, _context3.t0)(_context3.t1, _context3.t2);
64150
+ _context3.next = 9;
64047
64151
  return blockchainCall(pool.methods.slot0);
64048
64152
 
64049
64153
  case 9:
64050
- slot0 = _context2.sent;
64154
+ slot0 = _context3.sent;
64051
64155
  price = tickToPrice(uniToken, uniTokenWeth, parseInt(slot0.tick)).toSignificant(15);
64052
- return _context2.abrupt("return", toDecimals(price, 18));
64156
+ return _context3.abrupt("return", toDecimals(price, 18));
64053
64157
 
64054
64158
  case 14:
64055
- _context2.prev = 14;
64056
- _context2.t3 = _context2["catch"](0);
64057
- return _context2.abrupt("return", '0');
64159
+ _context3.prev = 14;
64160
+ _context3.t3 = _context3["catch"](0);
64161
+ return _context3.abrupt("return", '0');
64058
64162
 
64059
64163
  case 17:
64060
64164
  case "end":
64061
- return _context2.stop();
64165
+ return _context3.stop();
64062
64166
  }
64063
64167
  }
64064
- }, _callee2, null, [[0, 14]]);
64168
+ }, _callee3, null, [[0, 14]]);
64065
64169
  }));
64066
64170
 
64067
- return function (_x8) {
64068
- return _ref3.apply(this, arguments);
64171
+ return function (_x12) {
64172
+ return _ref4.apply(this, arguments);
64069
64173
  };
64070
64174
  }()));
64071
64175
 
64072
64176
  case 17:
64073
- proms = _context3.sent.filter(function (it) {
64177
+ proms = _context4.sent.filter(function (it) {
64074
64178
  return it && it !== '0';
64075
64179
  });
64076
64180
  ethereumValue = proms.reduce(function (a, b) {
64077
64181
  return a.ethereansosAdd(b);
64078
64182
  });
64079
64183
  ethereumValue = ethereumValue.ethereansosDiv(proms.length);
64080
- _context3.next = 24;
64184
+ _context4.next = 24;
64081
64185
  break;
64082
64186
 
64083
64187
  case 22:
64084
- _context3.prev = 22;
64085
- _context3.t2 = _context3["catch"](14);
64188
+ _context4.prev = 22;
64189
+ _context4.t2 = _context4["catch"](14);
64086
64190
 
64087
64191
  case 24:
64088
64192
  ethereumValue = parseFloat(fromDecimals(ethereumValue, 18, true));
64089
64193
  ethereumValue *= ethereumPrice;
64090
- return _context3.abrupt("return", ethereumValue);
64194
+ return _context4.abrupt("return", ethereumValue);
64091
64195
 
64092
64196
  case 27:
64093
64197
  case "end":
64094
- return _context3.stop();
64198
+ return _context4.stop();
64095
64199
  }
64096
64200
  }
64097
- }, _callee3, null, [[14, 22]]);
64201
+ }, _callee4, null, [[14, 22]]);
64098
64202
  }));
64099
64203
  return _getTokenPriceInDollarsOnUniswapV.apply(this, arguments);
64100
64204
  }
@@ -64133,7 +64237,7 @@ function _elaboratePrices() {
64133
64237
 
64134
64238
  case 7:
64135
64239
  if ((_step = _iterator.n()).done) {
64136
- _context.next = 36;
64240
+ _context.next = 57;
64137
64241
  break;
64138
64242
  }
64139
64243
 
@@ -64157,61 +64261,103 @@ function _elaboratePrices() {
64157
64261
  response.data[token] = {
64158
64262
  usd: _context.t4
64159
64263
  };
64160
- _context.next = 34;
64264
+ _context.next = 55;
64161
64265
  break;
64162
64266
 
64163
64267
  case 22:
64164
64268
  _context.prev = 22;
64165
64269
  _context.t5 = _context["catch"](9);
64270
+ _context.prev = 24;
64166
64271
  _context.t6 = getTokenPriceInDollarsOnUniswap;
64167
64272
  _context.t7 = _objectSpread2({
64168
64273
  context: context
64169
64274
  }, web3Data);
64170
64275
  _context.t8 = token;
64171
- _context.next = 29;
64276
+ _context.next = 30;
64172
64277
  return blockchainCall(web3Data.newContract(context.ERC20ABI, token).methods.decimals);
64173
64278
 
64174
- case 29:
64279
+ case 30:
64175
64280
  _context.t9 = _context.sent;
64176
- _context.next = 32;
64281
+ _context.next = 33;
64177
64282
  return (0, _context.t6)(_context.t7, _context.t8, _context.t9);
64178
64283
 
64179
- case 32:
64284
+ case 33:
64180
64285
  _context.t10 = _context.sent;
64181
64286
  response.data[token] = {
64182
64287
  usd: _context.t10
64183
64288
  };
64289
+ _context.next = 39;
64290
+ break;
64291
+
64292
+ case 37:
64293
+ _context.prev = 37;
64294
+ _context.t11 = _context["catch"](24);
64295
+
64296
+ case 39:
64297
+ _context.prev = 39;
64298
+
64299
+ if (!(!response.data[token].usd || parseFloat(response.data[token].usd) === 0)) {
64300
+ _context.next = 51;
64301
+ break;
64302
+ }
64303
+
64304
+ _context.t12 = getTokenPriceInDollarsOnSushiSwap;
64305
+ _context.t13 = _objectSpread2({
64306
+ context: context
64307
+ }, web3Data);
64308
+ _context.t14 = token;
64309
+ _context.next = 46;
64310
+ return blockchainCall(web3Data.newContract(context.ERC20ABI, token).methods.decimals);
64311
+
64312
+ case 46:
64313
+ _context.t15 = _context.sent;
64314
+ _context.next = 49;
64315
+ return (0, _context.t12)(_context.t13, _context.t14, _context.t15);
64316
+
64317
+ case 49:
64318
+ _context.t16 = _context.sent;
64319
+ response.data[token] = {
64320
+ usd: _context.t16
64321
+ };
64184
64322
 
64185
- case 34:
64323
+ case 51:
64324
+ _context.next = 55;
64325
+ break;
64326
+
64327
+ case 53:
64328
+ _context.prev = 53;
64329
+ _context.t17 = _context["catch"](39);
64330
+
64331
+ case 55:
64186
64332
  _context.next = 7;
64187
64333
  break;
64188
64334
 
64189
- case 36:
64190
- _context.next = 41;
64335
+ case 57:
64336
+ _context.next = 62;
64191
64337
  break;
64192
64338
 
64193
- case 38:
64194
- _context.prev = 38;
64195
- _context.t11 = _context["catch"](5);
64339
+ case 59:
64340
+ _context.prev = 59;
64341
+ _context.t18 = _context["catch"](5);
64196
64342
 
64197
- _iterator.e(_context.t11);
64343
+ _iterator.e(_context.t18);
64198
64344
 
64199
- case 41:
64200
- _context.prev = 41;
64345
+ case 62:
64346
+ _context.prev = 62;
64201
64347
 
64202
64348
  _iterator.f();
64203
64349
 
64204
- return _context.finish(41);
64350
+ return _context.finish(62);
64205
64351
 
64206
- case 44:
64352
+ case 65:
64207
64353
  return _context.abrupt("return", response);
64208
64354
 
64209
- case 45:
64355
+ case 66:
64210
64356
  case "end":
64211
64357
  return _context.stop();
64212
64358
  }
64213
64359
  }
64214
- }, _callee, null, [[5, 38, 41, 44], [9, 22]]);
64360
+ }, _callee, null, [[5, 59, 62, 65], [9, 22], [24, 37], [39, 53]]);
64215
64361
  }));
64216
64362
  return _elaboratePrices.apply(this, arguments);
64217
64363
  }
@@ -64876,5 +65022,5 @@ var tokenPercentage = function tokenPercentage(amount, totalSupply) {
64876
65022
 
64877
65023
  var abi = new AbiCoder();
64878
65024
 
64879
- export { ADDRESS_ZERO, BASE64_REGEXP, BLOCK_SEARCH_SIZE, gBase64 as Base64, BaseContract, BigNumber, Contract, ContractFactory, CurrencyAmount, DFO_DEPLOYED_EVENT, Ether, FACTORY_ADDRESS, FeeAmount, FixedNumber, Fraction, FullMath, GlobalContextsProvider, InitContextProvider, LiquidityMath, MaxUint256, Multicall, NEW_DFO_DEPLOYED_EVENT, NativeCurrency, NoTickDataProvider, NonfungiblePositionManager, POOL_INIT_CODE_HASH, Payments, Percent, PluginsContextProvider, Pool, Position, PositionLibrary, Price, Rounding, Route, SelfPermit, Signer, SqrtPriceMath, Staker, SwapMath, SwapQuoter, SwapRouter, TICK_SPACINGS, Tick, TickLibrary, TickList, TickListDataProvider, TickMath, Token, Trade, TradeType, URL_REGEXP, VOID_BYTES32, VOID_ETHEREUM_ADDRESS, VoidSigner, WETH9, Wallet, Web3ContextProvider, Wordlist, abi, add, blockchainCall, checkCoverSize, computePoolAddress, computePriceImpact, index$2 as constants, createContract, deployMetadataLink, div, eliminateFloatingFinalZeroes, encodeRouteToPath, encodeSqrtRatioX96, ErrorCode as errors, ethers, PubSub as ethosEvents, extractComment, extractHTMLDescription, formatLink, formatMoney, formatMoneyUniV3, formatNumber, formatString, fromDecimals, generateAndCompileContract, generateFunctionalityMetadataLink, getAllContracts, getDefaultProvider, getEthereumPrice, getLogs, getNetworkElement, getRandomArrayElement, getRandomArrayIndex, SolidityUtilities as getSolidityUtilities, getSupportedSolidityVersion, getTokenPriceInDollarsOnUniswap, getTokenPriceInDollarsOnUniswapV3, getTokenPricesInDollarsOnCoingecko, hasEthereumAddress, isEthereumAddress, isSorted, loadBlockSearchTranches, loadContent, loadFunctionality, loadFunctionalityNames, loadMetadatas, loadOffChainWallets as loadOffchainWallets, logger, maxLiquidityForAmounts, methodSignatureMatch, mint, mostSignificantBit, mul, nearestUsableTick, newContract, normalizeValue, numberToString, packCollection, pragmaSolidityRule, priceToClosestTick, index as providers, refreshBalances, resetContracts, searchForCodeErrors, sendAsync, sendGeneratedProposal, shortenWord, sleep, solidityImportRule, sortedInsert, split, sqrt, toLines as stringToLines, sub, subIn256, swap, tickToPrice, toDecimals, toEthereumSymbol, toHex, toSubArrays, tokenPercentage, tradeComparator, transfer, truncatedWord, tryRetrieveMetadata, uploadMetadata, uploadToIPFS, useEthosContext, useInit, useIsUnmounted, useLoadUniswapPairs, useLocalStorage, usePlaceholder, usePlugins, usePrevious, useSinglePlaceholder, useWeb3, utils, validateAndParseAddress, validateDFOMetadata, version$1 as version, web3States, wordlists };
65025
+ export { ADDRESS_ZERO, BASE64_REGEXP, BLOCK_SEARCH_SIZE, gBase64 as Base64, BaseContract, BigNumber, Contract, ContractFactory, CurrencyAmount, DFO_DEPLOYED_EVENT, Ether, FACTORY_ADDRESS, FeeAmount, FixedNumber, Fraction, FullMath, GlobalContextsProvider, InitContextProvider, LiquidityMath, MaxUint256, Multicall, NEW_DFO_DEPLOYED_EVENT, NativeCurrency, NoTickDataProvider, NonfungiblePositionManager, POOL_INIT_CODE_HASH, Payments, Percent, PluginsContextProvider, Pool, Position, PositionLibrary, Price, Rounding, Route, SelfPermit, Signer, SqrtPriceMath, Staker, SwapMath, SwapQuoter, SwapRouter, TICK_SPACINGS, Tick, TickLibrary, TickList, TickListDataProvider, TickMath, Token, Trade, TradeType, URL_REGEXP, VOID_BYTES32, VOID_ETHEREUM_ADDRESS, VoidSigner, WETH9, Wallet, Web3ContextProvider, Wordlist, abi, add, blockchainCall, checkCoverSize, computePoolAddress, computePriceImpact, index$2 as constants, createContract, deployMetadataLink, div, eliminateFloatingFinalZeroes, encodeRouteToPath, encodeSqrtRatioX96, ErrorCode as errors, ethers, PubSub as ethosEvents, extractComment, extractHTMLDescription, formatLink, formatMoney, formatMoneyUniV3, formatNumber, formatString, fromDecimals, generateAndCompileContract, generateFunctionalityMetadataLink, getAllContracts, getDefaultProvider, getEthereumPrice, getLogs, getNetworkElement, getRandomArrayElement, getRandomArrayIndex, SolidityUtilities as getSolidityUtilities, getSupportedSolidityVersion, getTokenPriceInDollarsOnSushiSwap, getTokenPriceInDollarsOnUniswap, getTokenPriceInDollarsOnUniswapV3, getTokenPricesInDollarsOnCoingecko, hasEthereumAddress, isEthereumAddress, isSorted, loadBlockSearchTranches, loadContent, loadFunctionality, loadFunctionalityNames, loadMetadatas, loadOffChainWallets as loadOffchainWallets, logger, maxLiquidityForAmounts, memoryFetch, methodSignatureMatch, mint, mostSignificantBit, mul, nearestUsableTick, newContract, normalizeValue, numberToString, packCollection, pragmaSolidityRule, priceToClosestTick, index as providers, refreshBalances, resetContracts, searchForCodeErrors, sendAsync, sendGeneratedProposal, shortenWord, sleep, solidityImportRule, sortedInsert, split, sqrt, toLines as stringToLines, sub, subIn256, swap, tickToPrice, toDecimals, toEthereumSymbol, toHex, toSubArrays, tokenPercentage, tradeComparator, transfer, truncatedWord, tryRetrieveMetadata, uploadMetadata, uploadToIPFS, useEthosContext, useInit, useIsUnmounted, useLoadUniswapPairs, useLocalStorage, usePlaceholder, usePlugins, usePrevious, useSinglePlaceholder, useWeb3, utils, validateAndParseAddress, validateDFOMetadata, version$1 as version, web3States, wordlists };
64880
65026
  //# sourceMappingURL=index.esm.js.map