@toruslabs/ethereum-controllers 5.2.6 → 5.2.7

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": "@toruslabs/ethereum-controllers",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "4063508c644e18b27f3850b195ca521480fbde35",
67
+ "gitHead": "2b4a20debecde9df15792851c2386dd0c39e12bd",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.4"
@@ -29,13 +29,15 @@ export const AVALANCHE_TESTNET_CHAIN_ID = "0xa869";
29
29
  export const ARBITRUM_TESTNET_CHAIN_ID = "0x66eeb";
30
30
  export const OPTIMISM_TESTNET_CHAIN_ID = "0x1a4";
31
31
 
32
+ const INFURA_KEY = process.env.VITE_APP_INFURA_PROJECT_KEY;
33
+
32
34
  export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
33
35
  [MAINNET_CHAIN_ID]: {
34
36
  blockExplorerUrl: "https://etherscan.io",
35
37
  chainId: MAINNET_CHAIN_ID,
36
38
  displayName: "Main Ethereum Network",
37
39
  logo: "eth.svg",
38
- rpcTarget: `https://mainnet.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
40
+ rpcTarget: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
39
41
  ticker: "ETH",
40
42
  tickerName: "Ethereum",
41
43
  },
@@ -44,7 +46,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
44
46
  chainId: POLYGON_CHAIN_ID,
45
47
  displayName: "Polygon Mainnet",
46
48
  logo: "matic-network-logo.svg",
47
- rpcTarget: `https://polygon-mainnet.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
49
+ rpcTarget: `https://polygon-mainnet.infura.io/v3/${INFURA_KEY}`,
48
50
  ticker: "MATIC",
49
51
  tickerName: "Matic Network Token",
50
52
  },
@@ -71,7 +73,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
71
73
  chainId: OPTIMISM_MAINNET_CHAIN_ID,
72
74
  displayName: "Optimism",
73
75
  logo: "optimism.svg",
74
- rpcTarget: `https://optimism-mainnet.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
76
+ rpcTarget: `https://optimism-mainnet.infura.io/v3/${INFURA_KEY}`,
75
77
  ticker: "ETH",
76
78
  tickerName: "Ethereum",
77
79
  },
@@ -80,7 +82,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
80
82
  chainId: CELO_MAINNET_CHAIN_ID,
81
83
  displayName: "Celo Mainnet",
82
84
  logo: "celo.svg",
83
- rpcTarget: `https://celo-mainnet.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
85
+ rpcTarget: `https://celo-mainnet.infura.io/v3/${INFURA_KEY}`,
84
86
  ticker: "CELO",
85
87
  tickerName: "Celo",
86
88
  },
@@ -89,7 +91,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
89
91
  chainId: ARBITRUM_MAINNET_CHAIN_ID,
90
92
  displayName: "Arbitrum One",
91
93
  logo: "eth.svg",
92
- rpcTarget: `https://arbitrum-mainnet.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
94
+ rpcTarget: `https://arbitrum-mainnet.infura.io/v3/${INFURA_KEY}`,
93
95
  ticker: "ETH",
94
96
  tickerName: "Ethereum",
95
97
  },
@@ -107,7 +109,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
107
109
  chainId: GOERLI_CHAIN_ID,
108
110
  displayName: "Goerli Test Network",
109
111
  logo: "eth.svg",
110
- rpcTarget: `https://goerli.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
112
+ rpcTarget: `https://goerli.infura.io/v3/${INFURA_KEY}`,
111
113
  ticker: "ETH",
112
114
  tickerName: "Ethereum",
113
115
  isTestnet: true,
@@ -117,7 +119,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
117
119
  chainId: SEPOLIA_CHAIN_ID,
118
120
  displayName: "Sepolia Test Network",
119
121
  logo: "eth.svg",
120
- rpcTarget: `https://sepolia.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
122
+ rpcTarget: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
121
123
  ticker: "ETH",
122
124
  tickerName: "Ethereum",
123
125
  isTestnet: true,
@@ -127,7 +129,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
127
129
  chainId: POLYGON_MUMBAI_CHAIN_ID,
128
130
  displayName: "Polygon Mumbai",
129
131
  logo: "matic-network-logo.svg",
130
- rpcTarget: `https://polygon-mumbai.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
132
+ rpcTarget: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
131
133
  ticker: "MATIC",
132
134
  tickerName: "Matic Network Token",
133
135
  isTestnet: true,
@@ -157,7 +159,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
157
159
  chainId: ARBITRUM_TESTNET_CHAIN_ID,
158
160
  displayName: "Arbitrum Goerli",
159
161
  logo: "eth.svg",
160
- rpcTarget: `https://arbitrum-rinkeby.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
162
+ rpcTarget: `https://arbitrum-rinkeby.infura.io/v3/${INFURA_KEY}`,
161
163
  ticker: "ETH",
162
164
  tickerName: "Ethereum",
163
165
  isTestnet: true,
@@ -167,7 +169,7 @@ export const SUPPORTED_NETWORKS: Record<string, EthereumProviderConfig> = {
167
169
  chainId: OPTIMISM_TESTNET_CHAIN_ID,
168
170
  displayName: "Optimism Goerli",
169
171
  logo: "optimism.svg",
170
- rpcTarget: `https://optimism-goerli.infura.io/v3/${process.env.VITE_APP_INFURA_PROJECT_KEY}`,
172
+ rpcTarget: `https://optimism-goerli.infura.io/v3/${INFURA_KEY}`,
171
173
  ticker: "ETH",
172
174
  tickerName: "Ethereum",
173
175
  isTestnet: true,