@cryptorubic/web3 0.0.32 → 0.0.34

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": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
@@ -38,7 +38,7 @@ class BlockchainAdapterFactoryService {
38
38
  const adapters = Object.entries(this.rpcList)
39
39
  .map(([blockchain, rpcs]) => {
40
40
  const adapter = this.createAdapter(blockchain, rpcs || []);
41
- // return [blockchain, adapter || null];
41
+ return [blockchain, adapter || null];
42
42
  if (adapter) {
43
43
  this.logger?.customLog(`Creating adapter for ${blockchain} blockchain`);
44
44
  return [blockchain, adapter];
@@ -1037,4 +1037,21 @@ exports.viemConfig = {
1037
1037
  }
1038
1038
  }
1039
1039
  }),
1040
+ GRAVITY: (0, viem_1.defineChain)({
1041
+ blockExplorers: { default: { apiUrl: 'https://gscan.xyz/', name: 'Gravity Explorer', url: 'https://gscan.xyz/' } },
1042
+ id: 1625,
1043
+ name: 'Gravity',
1044
+ nativeCurrency: { decimals: 18, name: 'Gravity', symbol: 'G' },
1045
+ rpcUrls: {
1046
+ default: {
1047
+ http: ['https://mainnet.gravity-rpc.com', 'https://rpc.gravity.xyz']
1048
+ }
1049
+ },
1050
+ testnet: false,
1051
+ contracts: {
1052
+ multicall3: {
1053
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11'
1054
+ }
1055
+ }
1056
+ })
1040
1057
  };
@@ -69,6 +69,6 @@ exports.viemBlockchainMapping = {
69
69
  [core_1.BLOCKCHAIN_NAME.XLAYER]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.XLAYER], // viem xLayer config without multicall address
70
70
  [core_1.BLOCKCHAIN_NAME.BAHAMUT]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.BAHAMUT],
71
71
  [core_1.BLOCKCHAIN_NAME.BITLAYER]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.BITLAYER],
72
- [core_1.BLOCKCHAIN_NAME.GRAVITY]: chains_1.gravity,
72
+ [core_1.BLOCKCHAIN_NAME.GRAVITY]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.GRAVITY],
73
73
  [core_1.BLOCKCHAIN_NAME.SEI]: chains_1.sei
74
74
  };