@toruslabs/ethereum-controllers 5.2.5 → 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/dist/ethereumControllers.cjs.js +11 -10
- package/dist/ethereumControllers.cjs.js.map +1 -1
- package/dist/ethereumControllers.esm.js +11 -10
- package/dist/ethereumControllers.esm.js.map +1 -1
- package/dist/ethereumControllers.umd.min.js +1 -1
- package/dist/ethereumControllers.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/src/utils/constants.ts +12 -10
|
@@ -547,13 +547,14 @@ const BSC_TESTNET_CHAIN_ID = "0x61";
|
|
|
547
547
|
const AVALANCHE_TESTNET_CHAIN_ID = "0xa869";
|
|
548
548
|
const ARBITRUM_TESTNET_CHAIN_ID = "0x66eeb";
|
|
549
549
|
const OPTIMISM_TESTNET_CHAIN_ID = "0x1a4";
|
|
550
|
+
const INFURA_KEY = process.env.VITE_APP_INFURA_PROJECT_KEY;
|
|
550
551
|
const SUPPORTED_NETWORKS = {
|
|
551
552
|
[MAINNET_CHAIN_ID]: {
|
|
552
553
|
blockExplorerUrl: "https://etherscan.io",
|
|
553
554
|
chainId: MAINNET_CHAIN_ID,
|
|
554
555
|
displayName: "Main Ethereum Network",
|
|
555
556
|
logo: "eth.svg",
|
|
556
|
-
rpcTarget: `https://mainnet.infura.io/v3/${
|
|
557
|
+
rpcTarget: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
|
|
557
558
|
ticker: "ETH",
|
|
558
559
|
tickerName: "Ethereum"
|
|
559
560
|
},
|
|
@@ -562,7 +563,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
562
563
|
chainId: POLYGON_CHAIN_ID,
|
|
563
564
|
displayName: "Polygon Mainnet",
|
|
564
565
|
logo: "matic-network-logo.svg",
|
|
565
|
-
rpcTarget: `https://polygon-mainnet.infura.io/v3/${
|
|
566
|
+
rpcTarget: `https://polygon-mainnet.infura.io/v3/${INFURA_KEY}`,
|
|
566
567
|
ticker: "MATIC",
|
|
567
568
|
tickerName: "Matic Network Token"
|
|
568
569
|
},
|
|
@@ -589,7 +590,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
589
590
|
chainId: OPTIMISM_MAINNET_CHAIN_ID,
|
|
590
591
|
displayName: "Optimism",
|
|
591
592
|
logo: "optimism.svg",
|
|
592
|
-
rpcTarget: `https://optimism-mainnet.infura.io/v3/${
|
|
593
|
+
rpcTarget: `https://optimism-mainnet.infura.io/v3/${INFURA_KEY}`,
|
|
593
594
|
ticker: "ETH",
|
|
594
595
|
tickerName: "Ethereum"
|
|
595
596
|
},
|
|
@@ -598,7 +599,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
598
599
|
chainId: CELO_MAINNET_CHAIN_ID,
|
|
599
600
|
displayName: "Celo Mainnet",
|
|
600
601
|
logo: "celo.svg",
|
|
601
|
-
rpcTarget: `https://celo-mainnet.infura.io/v3/${
|
|
602
|
+
rpcTarget: `https://celo-mainnet.infura.io/v3/${INFURA_KEY}`,
|
|
602
603
|
ticker: "CELO",
|
|
603
604
|
tickerName: "Celo"
|
|
604
605
|
},
|
|
@@ -607,7 +608,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
607
608
|
chainId: ARBITRUM_MAINNET_CHAIN_ID,
|
|
608
609
|
displayName: "Arbitrum One",
|
|
609
610
|
logo: "eth.svg",
|
|
610
|
-
rpcTarget: `https://arbitrum-mainnet.infura.io/v3/${
|
|
611
|
+
rpcTarget: `https://arbitrum-mainnet.infura.io/v3/${INFURA_KEY}`,
|
|
611
612
|
ticker: "ETH",
|
|
612
613
|
tickerName: "Ethereum"
|
|
613
614
|
},
|
|
@@ -625,7 +626,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
625
626
|
chainId: GOERLI_CHAIN_ID,
|
|
626
627
|
displayName: "Goerli Test Network",
|
|
627
628
|
logo: "eth.svg",
|
|
628
|
-
rpcTarget: `https://goerli.infura.io/v3/${
|
|
629
|
+
rpcTarget: `https://goerli.infura.io/v3/${INFURA_KEY}`,
|
|
629
630
|
ticker: "ETH",
|
|
630
631
|
tickerName: "Ethereum",
|
|
631
632
|
isTestnet: true
|
|
@@ -635,7 +636,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
635
636
|
chainId: SEPOLIA_CHAIN_ID,
|
|
636
637
|
displayName: "Sepolia Test Network",
|
|
637
638
|
logo: "eth.svg",
|
|
638
|
-
rpcTarget: `https://sepolia.infura.io/v3/${
|
|
639
|
+
rpcTarget: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
|
|
639
640
|
ticker: "ETH",
|
|
640
641
|
tickerName: "Ethereum",
|
|
641
642
|
isTestnet: true
|
|
@@ -645,7 +646,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
645
646
|
chainId: POLYGON_MUMBAI_CHAIN_ID,
|
|
646
647
|
displayName: "Polygon Mumbai",
|
|
647
648
|
logo: "matic-network-logo.svg",
|
|
648
|
-
rpcTarget: `https://polygon-mumbai.infura.io/v3/${
|
|
649
|
+
rpcTarget: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
|
|
649
650
|
ticker: "MATIC",
|
|
650
651
|
tickerName: "Matic Network Token",
|
|
651
652
|
isTestnet: true
|
|
@@ -675,7 +676,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
675
676
|
chainId: ARBITRUM_TESTNET_CHAIN_ID,
|
|
676
677
|
displayName: "Arbitrum Goerli",
|
|
677
678
|
logo: "eth.svg",
|
|
678
|
-
rpcTarget: `https://arbitrum-rinkeby.infura.io/v3/${
|
|
679
|
+
rpcTarget: `https://arbitrum-rinkeby.infura.io/v3/${INFURA_KEY}`,
|
|
679
680
|
ticker: "ETH",
|
|
680
681
|
tickerName: "Ethereum",
|
|
681
682
|
isTestnet: true
|
|
@@ -685,7 +686,7 @@ const SUPPORTED_NETWORKS = {
|
|
|
685
686
|
chainId: OPTIMISM_TESTNET_CHAIN_ID,
|
|
686
687
|
displayName: "Optimism Goerli",
|
|
687
688
|
logo: "optimism.svg",
|
|
688
|
-
rpcTarget: `https://optimism-goerli.infura.io/v3/${
|
|
689
|
+
rpcTarget: `https://optimism-goerli.infura.io/v3/${INFURA_KEY}`,
|
|
689
690
|
ticker: "ETH",
|
|
690
691
|
tickerName: "Ethereum",
|
|
691
692
|
isTestnet: true
|