Skip to content

Commit

Permalink
Merge pull request #816 from EdgeApp/matthew/drpc
Browse files Browse the repository at this point in the history
Add dRPC nodes to EVM chains
  • Loading branch information
peachbits authored Aug 19, 2024
2 parents 49c6257 + 13f1889 commit 30f7d20
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- added: (Solana) Add new tokens: BSOL, DRIFT, HAWK, JITOSOL, JSOL, JTO, JUP, MIMO, MNGO, MSOL, SOL, USDC.e, WBTC, and WETH
- added: (EVM) Add dRPC nodes

## 4.19.0 (2024-08-12)

Expand Down
2 changes: 2 additions & 0 deletions src/ethereum/ethereumTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface EthereumInitOptions {
amberdataApiKey?: string
blockchairApiKey?: string
blockcypherApiKey?: string
drpcApiKey?: string
evmScanApiKey?: string | string[]
gasStationApiKey?: string
infuraProjectId?: string
Expand All @@ -40,6 +41,7 @@ export const asEthereumInitOptions = asObject<EthereumInitOptions>({
amberdataApiKey: asOptional(asString),
blockchairApiKey: asOptional(asString),
blockcypherApiKey: asOptional(asString),
drpcApiKey: asOptional(asString),
evmScanApiKey: asOptional(asEither(asString, asArray(asString))),
gasStationApiKey: asOptional(asString),
infuraProjectId: asOptional(asString),
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/amoyInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://polygon-amoy-bor-rpc.publicnode.com',
'https://rpc-amoy.polygon.technology',
'https://polygon-amoy.drpc.org',
'https://api.tatum.io/v3/blockchain/node/polygon-amoy'
'https://api.tatum.io/v3/blockchain/node/polygon-amoy',
'https://lb.drpc.org/ogrpc?network=polygon-amoy&dkey={{drpcApiKey}}'
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/arbitrumInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://arb1.arbitrum.io/rpc',
'https://arbitrum-one.public.blastapi.io',
'https://rpc.ankr.com/arbitrum',
'https://arbitrum-one.rpc.grove.city/v1/lb/{{poktPortalApiKey}}'
'https://arbitrum-one.rpc.grove.city/v1/lb/{{poktPortalApiKey}}',
'https://lb.drpc.org/ogrpc?network=arbitrum&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0x151E24A486D7258dd7C33Fb67E4bB01919B7B32c'
},
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/avalancheInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ const networkInfo: EthereumNetworkInfo = {
type: 'rpc',
servers: [
'https://api.avax.network/ext/bc/C/rpc',
'https://rpc.ankr.com/avalanche'
'https://rpc.ankr.com/avalanche',
'https://lb.drpc.org/ogrpc?network=avalanche&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0xd023d153a0dfa485130ecfde2faa7e612ef94818'
},
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/baseInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const networkInfo: EthereumNetworkInfo = {
type: 'rpc',
servers: [
'https://base-mainnet.public.blastapi.io',
'https://rpc.ankr.com/base'
'https://rpc.ankr.com/base',
'https://lb.drpc.org/ogrpc?network=base&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0x3ba5A41eA17fd4950a641a057dC0bEb8E8ff1521'
},
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/binancesmartchainInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://rpc.ankr.com/bsc',
'https://bsc-dataseed.binance.org',
'https://bsc-dataseed1.defibit.io',
'https://bsc-dataseed1.ninicoin.io'
'https://bsc-dataseed1.ninicoin.io',
'https://lb.drpc.org/ogrpc?network=bsc&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0x2352c63A83f9Fd126af8676146721Fa00924d7e4'
},
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/celoInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const networkInfo: EthereumNetworkInfo = {
servers: [
'https://forno.celo.org',
'https://rpc.ankr.com/celo',
'https://celo-mainnet-rpc.allthatnode.com'
'https://celo-mainnet-rpc.allthatnode.com',
'https://lb.drpc.org/ogrpc?network=celo&dkey={{drpcApiKey}}'
]
},
{ type: 'evmscan', servers: ['https://explorer.celo.org/mainnet'] }
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/ethereumInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://mainnet.infura.io/v3/{{infuraProjectId}}',
'https://rpc.ankr.com/eth',
'https://eth-mainnet.rpc.grove.city/v1/{{poktPortalApiKey}}',
'https://cloudflare-eth.com'
'https://cloudflare-eth.com',
'https://lb.drpc.org/ogrpc?network=ethereum&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0xb1f8e55c7f64d203c1400b9d8555d050f94adf39'
},
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/fantomInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://fantom-mainnet.rpc.grove.city/v1/{{poktPortalApiKey}}',
'https://polished-empty-cloud.fantom.quiknode.pro/{{quiknodeApiKey}}/',
'https://rpc.ankr.com/fantom',
'https://rpc.ftm.tools'
'https://rpc.ftm.tools',
'https://lb.drpc.org/ogrpc?network=fantom&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0x07f697424abe762bb808c109860c04ea488ff92b'
},
Expand Down
5 changes: 4 additions & 1 deletion src/ethereum/info/filecoinFevmCalibrationInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const networkInfo: EthereumNetworkInfo = {
networkAdapterConfigs: [
{
type: 'rpc',
servers: ['https://api.calibration.node.glif.io/rpc/v0']
servers: [
'https://api.calibration.node.glif.io/rpc/v0',
'https://lb.drpc.org/ogrpc?network=filecoin-calibration&dkey={{drpcApiKey}}'
]
},
{
type: 'filfox',
Expand Down
5 changes: 4 additions & 1 deletion src/ethereum/info/filecoinFevmInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const networkInfo: EthereumNetworkInfo = {
networkAdapterConfigs: [
{
type: 'rpc',
servers: ['https://api.node.glif.io/']
servers: [
'https://api.node.glif.io/',
'https://lb.drpc.org/ogrpc?network=filecoin&dkey={{drpcApiKey}}'
]
},
{
type: 'filfox',
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/holeskyInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://ethereum-holesky.blockpi.network/v1/rpc/public',
'https://holesky.drpc.org',
'https://rpc-holesky.rockx.com',
'https://endpoints.omniatech.io/v1/eth/holesky/public'
'https://endpoints.omniatech.io/v1/eth/holesky/public',
'https://lb.drpc.org/ogrpc?network=holesky&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0xf4C055E8760C6e66301C2e2F12b85567a9A50841'
},
Expand Down
6 changes: 5 additions & 1 deletion src/ethereum/info/optimismInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ const networkInfo: EthereumNetworkInfo = {
networkAdapterConfigs: [
{
type: 'rpc',
servers: ['https://mainnet.optimism.io', 'https://rpc.ankr.com/optimism'],
servers: [
'https://mainnet.optimism.io',
'https://rpc.ankr.com/optimism',
'https://lb.drpc.org/ogrpc?network=optimism&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0xb1c568e9c3e6bdaf755a60c7418c269eb11524fc'
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/polygonInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://matic-mainnet.chainstacklabs.com',
'https://rpc.ankr.com/polygon',
'https://poly-mainnet.rpc.grove.city/v1/{{poktPortalApiKey}}',
'https://rpc-mainnet.matic.quiknode.pro/{{quiknodeApiKey}}/'
'https://rpc-mainnet.matic.quiknode.pro/{{quiknodeApiKey}}/',
'https://lb.drpc.org/ogrpc?network=polygon&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0x2352c63A83f9Fd126af8676146721Fa00924d7e4'
},
Expand Down
5 changes: 4 additions & 1 deletion src/ethereum/info/rskInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ const networkInfo: EthereumNetworkInfo = {
networkAdapterConfigs: [
{
type: 'rpc',
servers: ['https://public-node.rsk.co']
servers: [
'https://public-node.rsk.co',
'https://lb.drpc.org/ogrpc?network=rootstock&dkey={{drpcApiKey}}'
]
},
{
type: 'evmscan',
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/info/sepoliaInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const networkInfo: EthereumNetworkInfo = {
'https://api.zan.top/node/v1/eth/sepolia/public',
'https://endpoints.omniatech.io/v1/eth/sepolia/public',
'https://rpc.sepolia.org',
'https://rpc2.sepolia.org'
'https://rpc2.sepolia.org',
'https://lb.drpc.org/ogrpc?network=sepolia&dkey={{drpcApiKey}}'
],
ethBalCheckerContract: '0xBfbCed302deD369855fc5f7668356e123ca4B329'
},
Expand Down
5 changes: 4 additions & 1 deletion src/ethereum/info/zksyncInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ const networkInfo: EthereumNetworkInfo = {
networkAdapterConfigs: [
{
type: 'rpc',
servers: ['https://mainnet.era.zksync.io']
servers: [
'https://mainnet.era.zksync.io',
'https://lb.drpc.org/ogrpc?network=zksync&dkey={{drpcApiKey}}'
]
},
{
type: 'evmscan',
Expand Down

0 comments on commit 30f7d20

Please sign in to comment.