otomato-sdk 1.5.67 → 1.5.68

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.
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { ethers } from 'ethers';
11
+ import { CHAINS } from '../constants/chains';
11
12
  class RPCServices {
12
13
  constructor() {
13
14
  this.rpcUrls = {}; // Store the RPC URLs
@@ -18,10 +19,10 @@ class RPCServices {
18
19
  }
19
20
  setRPCsFromTMS(env) {
20
21
  if (env.MODE_HTTPS_PROVIDER) {
21
- this.rpcUrls[43334] = env.MODE_HTTPS_PROVIDER; // Chain ID 43334 is for Mode network
22
+ this.rpcUrls[CHAINS.MODE] = env.MODE_HTTPS_PROVIDER; // Chain ID 43334 is for Mode network
22
23
  }
23
24
  if (env.INFURA_HTTPS_PROVIDER) {
24
- this.rpcUrls[1] = env.INFURA_HTTPS_PROVIDER; // Chain ID 1 is for Ethereum mainnet
25
+ this.rpcUrls[CHAINS.ETHEREUM] = env.INFURA_HTTPS_PROVIDER; // Chain ID 1 is for Ethereum mainnet
25
26
  }
26
27
  }
27
28
  // Function to get the RPC URL for a specific chainId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.67",
3
+ "version": "1.5.68",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",