Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strong RPC service provider #18

Merged
merged 6 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions conf/mainnets/arbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ code: arbitrum
name: Arbitrum
rpcs:
- https://arb1.arbitrum.io/rpc
- https://arb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://arbitrum-mainnet.infura.io/v3/$INFURA_KEY
- https://rpc.ankr.com/arbitrum/$ANKR_KEY
- https://arbitrum-one.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: '0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23'
Expand Down Expand Up @@ -259,7 +263,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: bsc
- chain: bsc
symbol: WBTC
protocol: lnv3
fee: '100'
Expand All @@ -269,7 +273,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: avalanche
- chain: avalanche
symbol: WBTC
protocol: lnv3
fee: '100'
Expand Down
12 changes: 8 additions & 4 deletions conf/mainnets/avalanche.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ code: avalanche
name: Avalanche
rpcs:
- https://rpc.ankr.com/avalanche
- https://avax-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://avalanche-mainnet.infura.io/v3/$INFURA_KEY
- https://rpc.ankr.com/avalanche/$ANKR_KEY
- https://ava-mainnet.blastapi.io/$BLAST_KEY/ext/bc/C/rpc
protocol:
lnv2-default: null
lnv2-opposite: null
Expand Down Expand Up @@ -88,7 +92,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: bsc
- chain: bsc
symbol: USDT
protocol: lnv3
fee: '100'
Expand All @@ -98,7 +102,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: arbitrum
- chain: arbitrum
symbol: USDT
protocol: lnv3
fee: '100'
Expand All @@ -110,7 +114,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: bsc
- chain: bsc
symbol: WBTC
protocol: lnv3
fee: '100'
Expand All @@ -120,7 +124,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: arbitrum
- chain: arbitrum
symbol: WBTC
protocol: lnv3
fee: '100'
Expand Down
3 changes: 3 additions & 0 deletions conf/mainnets/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ code: base
name: base
rpcs:
- https://mainnet.base.org
- https://base-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://rpc.ankr.com/base/$ANKR_KEY
- https://base-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
4 changes: 4 additions & 0 deletions conf/mainnets/blast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ id: "81457"
code: blast
name: Blast
rpcs:
- https://rpc.ankr.com/blast
- https://rpc.blast.io
- https://blast-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://rpc.ankr.com/blast/$ANKR_KEY
- https://blastl2-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: null
lnv2-opposite: null
Expand Down
6 changes: 5 additions & 1 deletion conf/mainnets/bsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ id: "56"
code: bsc
name: bsc
rpcs:
- https://binance.llamarpc.com
- https://bsc-rpc.publicnode.com
- https://bnb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://rpc.ankr.com/bsc/$ANKR_KEY
- https://bsc-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down Expand Up @@ -180,7 +184,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: avalanche
- chain: avalanche
symbol: WBTC
protocol: lnv3
fee: '100'
Expand Down
4 changes: 4 additions & 0 deletions conf/mainnets/ethereum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ code: ethereum
name: Ethereum
rpcs:
- https://eth.llamarpc.com
- https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://mainnet.infura.io/v3/$INFURA_KEY
- https://rpc.ankr.com/eth/$ANKR_KEY
- https://eth-mainnet.blastapi.io/$BLAST_KEY
messagers:
- name: arbitrum-l2
address: '0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119'
Expand Down
3 changes: 3 additions & 0 deletions conf/mainnets/gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ id: "100"
code: gnosis
name: Gnosis
rpcs:
- https://rpc.gnosischain.com
- https://gnosis-rpc.publicnode.com
- https://rpc.ankr.com/gnosis/$ANKR_KEY
- https://gnosis-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
6 changes: 6 additions & 0 deletions conf/mainnets/linea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ id: "59144"
code: linea
name: Linea
rpcs:
- https://rpc.linea.build
- https://linea.drpc.org
- https://linea.decubate.com
- https://1rpc.io/linea
- https://linea-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://linea-mainnet.infura.io/v3/$INFURA_KEY
- https://linea-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
4 changes: 4 additions & 0 deletions conf/mainnets/mantle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ id: "5000"
code: mantle
name: Mantle
rpcs:
- https://rpc.ankr.com/mantle
- https://rpc.mantle.xyz
- https://mantle-rpc.publicnode.com
- https://rpc.ankr.com/mantle/$ANKR_KEY
- https://mantle-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
2 changes: 2 additions & 0 deletions conf/mainnets/moonbeam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ code: moonbeam
name: Moonbeam
rpcs:
- https://moonbeam-rpc.dwellir.com
- https://rpc.ankr.com/moonbeam/$ANKR_KEY
- https://moonbeam.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: null
lnv2-opposite: null
Expand Down
9 changes: 7 additions & 2 deletions conf/mainnets/optimism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ id: "10"
code: op
name: Op
rpcs:
- https://rpc.ankr.com/optimism
- https://mainnet.optimism.io
- https://optimism-rpc.publicnode.com
- https://opt-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://rpc.ankr.com/optimism/$ANKR_KEY
- https://optimism-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down Expand Up @@ -183,7 +188,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: bsc
- chain: bsc
symbol: WBTC
protocol: lnv3
fee: '100'
Expand All @@ -193,7 +198,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: avalanche
- chain: avalanche
symbol: WBTC
protocol: lnv3
fee: '100'
Expand Down
3 changes: 3 additions & 0 deletions conf/mainnets/polygon-zkevm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ code: polygon-zkEvm
name: Polygon zkEVM
rpcs:
- https://zkevm-rpc.com
- https://polygonzkevm-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://rpc.ankr.com/polygon_zkevm/$ANKR_KEY
- https://polygon-zkevm-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
9 changes: 7 additions & 2 deletions conf/mainnets/polygon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ id: "137"
code: polygon
name: Polygon
rpcs:
- https://polygon-rpc.com
- https://polygon-bor-rpc.publicnode.com
- https://polygon-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY
- https://polygon-mainnet.infura.io/v3/$INFURA_KEY
- https://rpc.ankr.com/polygon/$ANKR_KEY
- https://polygon-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down Expand Up @@ -194,7 +199,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: bsc
- chain: bsc
symbol: WBTC
protocol: lnv3
fee: '100'
Expand All @@ -204,7 +209,7 @@ couples:
protocol: lnv3
fee: '100'
messager: layerzero
- chain: avalanche
- chain: avalanche
symbol: WBTC
protocol: lnv3
fee: '100'
Expand Down
4 changes: 4 additions & 0 deletions conf/mainnets/scroll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ id: "534352"
code: scroll
name: Scroll
rpcs:
- https://rpc.ankr.com/scroll
- https://rpc.scroll.io
- https://scroll-mainnet.public.blastapi.io
- https://rpc.ankr.com/scroll/$ANKR_KEY
- https://scroll-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337'
lnv2-opposite: null
Expand Down
2 changes: 2 additions & 0 deletions conf/mainnets/zksync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ code: zksync
name: zksync
rpcs:
- https://mainnet.era.zksync.io
- https://rpc.ankr.com/zksync_era/$ANKR_KEY
- https://zksync-mainnet.blastapi.io/$BLAST_KEY
protocol:
lnv2-default: '0x767Bc046c989f5e63683fB530f939DD34b91ceAC'
lnv2-opposite: null
Expand Down
15 changes: 15 additions & 0 deletions scripts/generate/stdconf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as helper from './_helper.mjs'

export function standardization(global, ccf) {
_stdGeneric(global, ccf);
_stdRpcs(global, ccf);
_stdMessagers(global, ccf);
_stdIndexers(global, ccf);
_stdTokens(global, ccf);
Expand All @@ -26,6 +27,20 @@ function _stdIndexers(global, ccf) {
ccf.indexers = helper.filterArray(ccf.indexers, (one, two) => one.type === two.type);
}

function _stdRpcs(global, ccf) {
ccf.rpcs = ccf.rpcs.map(item => {
const rgv = /(\$.*?_KEY)/.exec(item.toString());
if (!rgv || !rgv.length) {
return {provider: 'PUBLIC', endpoint: item};
}
const rgvf = rgv[0];
return {
provider: rgvf.replace('$', '').replace('_KEY', ''),
endpoint: item,
};
});
}

function _stdCouples(global, ccf) {
if (!ccf.couples) return;
for (const couple of ccf.couples) {
Expand Down
2 changes: 1 addition & 1 deletion template/ts/files/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helixbridge/helixconf",
"version": "1.1.8",
"version": "1.1.9",
"description": "Helix conf",
"main": "dist/src/index.js",
"publishConfig": {
Expand Down
Loading
Loading