@cryptorubic/web3 1.0.2 → 1.0.3-alpha-rub-797.4

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.0.2",
3
+ "version": "1.0.3-alpha-rub-797.4",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -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
  };
@@ -3,5 +3,5 @@ import { RubicSdkError } from '../rubic-sdk.error';
3
3
  * Thrown, when user cancels transaction.
4
4
  */
5
5
  export declare class UserRejectError extends RubicSdkError {
6
- constructor();
6
+ constructor(message?: string);
7
7
  }
@@ -6,8 +6,8 @@ const rubic_sdk_error_1 = require("../rubic-sdk.error");
6
6
  * Thrown, when user cancels transaction.
7
7
  */
8
8
  class UserRejectError extends rubic_sdk_error_1.RubicSdkError {
9
- constructor() {
10
- super();
9
+ constructor(message) {
10
+ super(message);
11
11
  Object.setPrototypeOf(this, UserRejectError.prototype);
12
12
  }
13
13
  }