@ethereansos/interfaces-core 0.4.109 → 0.4.110

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -48779,51 +48779,6 @@ var useEthosContext = function useEthosContext() {
48779
48779
  var Web3Context = /*#__PURE__*/React__default["default"].createContext('web3');
48780
48780
  var DEFAULT_BLOCK_INTERVAL = 15;
48781
48781
  var DEFAULT_BLOCK_INTERVAL_TIMEOUT = 40000;
48782
-
48783
- var chains = require('use-wallet').chains;
48784
- /**
48785
- * WRAP CHAINS START
48786
- **/
48787
-
48788
-
48789
- var ETH = chains.getChainInformation(1).nativeCurrency;
48790
- var WRAPPED_CHAINS = {
48791
- 10: {
48792
- id: 10,
48793
- nativeCurrency: ETH,
48794
- type: 'main',
48795
- fullName: 'Optimism Mainnet',
48796
- shortName: 'Optimism',
48797
- explorerUrl: 'https://optimistic.etherscan.io',
48798
- testnet: false
48799
- }
48800
- };
48801
-
48802
- function wrap(methodName, funct, force) {
48803
- var oldFunction = chains[methodName];
48804
-
48805
- chains[methodName] = function (chainId) {
48806
- var args = [].concat(Array.prototype.slice.call(arguments), [oldFunction]);
48807
- return (WRAPPED_CHAINS[parseInt(chainId)] || force ? funct : oldFunction).apply(chains, args);
48808
- };
48809
- }
48810
-
48811
- wrap('isKnownChain', function () {
48812
- return true;
48813
- });
48814
- wrap('getChainInformation', function (chainId) {
48815
- return WRAPPED_CHAINS[parseInt(chainId)];
48816
- });
48817
- wrap('getKnownChainsIds', function (oldFunction) {
48818
- return [].concat(_toConsumableArray(oldFunction()), _toConsumableArray(Object.keys(WRAPPED_CHAINS)));
48819
- });
48820
- wrap('getKnownChainInformation', function (oldFunction) {
48821
- return [].concat(_toConsumableArray(oldFunction()), _toConsumableArray(Object.values(WRAPPED_CHAINS)));
48822
- });
48823
- /**
48824
- * WRAP CHAINS END
48825
- **/
48826
-
48827
48782
  var web3States = {
48828
48783
  NOT_CONNECTED: NOT_CONNECTED,
48829
48784
  CONNECTED: CONNECTED,