@cryptorubic/web3 1.2.0 → 1.2.2-alpha.cloudflare.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.2.0",
3
+ "version": "1.2.2-alpha.cloudflare.1",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -102,7 +102,9 @@ class BlockchainAdapterFactoryService {
102
102
  if (!adapter.connected) {
103
103
  adapter.initWeb3Client();
104
104
  const msg = `Web3 client for ${adapter.constructor.name} initialized successfully.`;
105
- this.logger ? this.logger?.customLog(msg, adapter) : console.debug(msg, adapter);
105
+ if (this.clientParams?.envType == 'local') {
106
+ this.logger ? this.logger?.customLog(msg, adapter) : console.debug(msg, adapter);
107
+ }
106
108
  }
107
109
  });
108
110
  }
@@ -1438,6 +1438,33 @@ exports.viemConfig = {
1438
1438
  }
1439
1439
  }
1440
1440
  }),
1441
+ HYPER_EVM: (0, viem_1.defineChain)({
1442
+ id: 999,
1443
+ name: 'HyperEVM',
1444
+ nativeCurrency: {
1445
+ name: 'Hyperliquid',
1446
+ symbol: 'HYPE',
1447
+ decimals: 18
1448
+ },
1449
+ rpcUrls: {
1450
+ default: {
1451
+ http: ['https://rpc.hyperliquid.xyz/evm'],
1452
+ webSocket: ['wss://rpc.hyperliquid.xyz/evm']
1453
+ }
1454
+ },
1455
+ blockExplorers: {
1456
+ default: {
1457
+ name: 'HyperEVMScan',
1458
+ url: 'https://hyperevmscan.io/',
1459
+ apiUrl: 'https://api.hyperevmscan.io/api'
1460
+ }
1461
+ },
1462
+ contracts: {
1463
+ multicall3: {
1464
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11'
1465
+ }
1466
+ }
1467
+ }),
1441
1468
  MONAD: (0, viem_1.defineChain)({
1442
1469
  id: 143,
1443
1470
  name: 'Monad',
@@ -77,5 +77,6 @@ exports.viemBlockchainMapping = {
77
77
  [core_1.BLOCKCHAIN_NAME.MORPH]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.MORPH], // viem Morph config without multicall address
78
78
  [core_1.BLOCKCHAIN_NAME.HEMI]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.HEMI],
79
79
  [core_1.BLOCKCHAIN_NAME.PLASMA]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.PLASMA],
80
+ [core_1.BLOCKCHAIN_NAME.HYPER_EVM]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.HYPER_EVM],
80
81
  [core_1.BLOCKCHAIN_NAME.MONAD]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.MONAD]
81
82
  };