File tree Expand file tree Collapse file tree 5 files changed +13
-1
lines changed
Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @dethcrypto/eth-sdk " : patch
3+ ---
4+
5+ Add support for SEPOLIA network
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ Predefined network identifiers are:
167167"bscTestnet" "heco" "hecoTestnet"
168168"opera" "ftmTestnet" "optimism"
169169"optimismKovan" "polygon" "polygonMumbai"
170- "arbitrumOne" "arbitrumTestnet"
170+ "arbitrumOne" "arbitrumTestnet" "sepolia"
171171```
172172
173173You can use other networks, but you will need to configure Etherscan URLs for them in [ ` etherscanURLs ` ] ( #etherscanurls )
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ export const predefinedExplorerEndpoints: PredefinedExplorerEndpoints = {
3131 url : 'https://api-goerli.etherscan.io/api' ,
3232 apiKey : ETHERSCAN_KEY ,
3333 } ,
34+ sepolia : {
35+ url : 'https://api-sepolia.etherscan.io/api' ,
36+ apiKey : ETHERSCAN_KEY ,
37+ } ,
3438 kovan : {
3539 url : 'https://api-kovan.etherscan.io/api' ,
3640 apiKey : ETHERSCAN_KEY ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const rpcProviders: RpcURLs = {
1111 rinkeby : `https://rinkeby.infura.io/v3/${ INFURA_PROJECT_URL } ` ,
1212 ropsten : `https://ropsten.infura.io/v3/${ INFURA_PROJECT_URL } ` ,
1313 goerli : `https://goerli.infura.io/v3/${ INFURA_PROJECT_URL } ` ,
14+ sepolia : `https://sepolia.infura.io/v3/${ INFURA_PROJECT_URL } ` ,
1415}
1516
1617export function getRpcProvider ( config : EthSdkConfig , network : NetworkSymbol ) : RpcProvider | null {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export enum NetworkID {
88 RINKEBY = 4 ,
99 GOERLI = 5 ,
1010 KOVAN = 42 ,
11+ SEPOLIA = 11155111 ,
1112 // Binance Smart Chain
1213 BSC = 56 ,
1314 BSC_TESTNET = 97 ,
@@ -36,6 +37,7 @@ export const networkIDtoSymbol = {
3637 [ NetworkID . ROPSTEN ] : 'ropsten' ,
3738 [ NetworkID . RINKEBY ] : 'rinkeby' ,
3839 [ NetworkID . GOERLI ] : 'goerli' ,
40+ [ NetworkID . SEPOLIA ] : 'sepolia' ,
3941 [ NetworkID . KOVAN ] : 'kovan' ,
4042 [ NetworkID . BSC ] : 'bsc' ,
4143 [ NetworkID . BSC_TESTNET ] : 'bscTestnet' ,
You can’t perform that action at this time.
0 commit comments