Skip to content

Commit

Permalink
Merge branch 'main' into phase21
Browse files Browse the repository at this point in the history
  • Loading branch information
hiletmis committed Jan 31, 2024
2 parents e3b80c5 + 90a881d commit 4795d31
Show file tree
Hide file tree
Showing 45 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion chains/arbitrum-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "arbitrum-goerli-testnet",
"blockTimeMs": 641,
"blockTimeMs": 1428,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/arbitrum-nova.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "arbitrum-nova",
"blockTimeMs": 862,
"blockTimeMs": 317,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/arbitrum.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "arbitrum",
"blockTimeMs": 265,
"blockTimeMs": 257,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/aurora-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "aurora-testnet",
"blockTimeMs": 988,
"blockTimeMs": 782,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/aurora.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "aurora",
"blockTimeMs": 1135,
"blockTimeMs": 1069,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/avalanche-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "avalanche-testnet",
"blockTimeMs": 2398,
"blockTimeMs": 3994,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/avalanche.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "avalanche",
"blockTimeMs": 2036,
"blockTimeMs": 2050,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/boba-bnb.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "boba-bnb",
"blockTimeMs": 636,
"blockTimeMs": 1206,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/boba-ethereum.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "boba-ethereum",
"blockTimeMs": 86994,
"blockTimeMs": 124341,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/bsc-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "bsc-testnet",
"blockTimeMs": 3002,
"blockTimeMs": 3000,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/bsc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "bsc",
"blockTimeMs": 3009,
"blockTimeMs": 3007,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/cronos-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "cronos-testnet",
"blockTimeMs": 2446,
"blockTimeMs": 2463,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/ethereum-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "ethereum-goerli-testnet",
"blockTimeMs": 15140,
"blockTimeMs": 15997,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/ethereum-sepolia-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "ethereum-sepolia-testnet",
"blockTimeMs": 12982,
"blockTimeMs": 13578,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"providers": [
{
"alias": "default",
"rpcUrl": "https://eth.llamarpc.com"
"rpcUrl": "https://cloudflare-eth.com"
},
{
"alias": "reblok",
Expand Down
2 changes: 1 addition & 1 deletion chains/fantom-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "fantom-testnet",
"blockTimeMs": 1665,
"blockTimeMs": 5181,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/fantom.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "fantom",
"blockTimeMs": 1636,
"blockTimeMs": 1761,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/gnosis-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "gnosis-testnet",
"blockTimeMs": 5015,
"blockTimeMs": 6321,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/gnosis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "gnosis",
"blockTimeMs": 5244,
"blockTimeMs": 5335,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/godwoken-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "godwoken-testnet",
"blockTimeMs": 8127,
"blockTimeMs": 8051,
"decimals": 18,
"explorer": {
"browserUrl": "https://v1.testnet.gwscan.com/"
Expand Down
2 changes: 1 addition & 1 deletion chains/godwoken.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "godwoken",
"blockTimeMs": 45041,
"blockTimeMs": 36981,
"decimals": 18,
"explorer": {
"browserUrl": "https://v1.gwscan.com/"
Expand Down
2 changes: 1 addition & 1 deletion chains/kava-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "kava-testnet",
"blockTimeMs": 5201,
"blockTimeMs": 5178,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/lightlink.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "lightlink",
"blockTimeMs": 503,
"blockTimeMs": 505,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/linea-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "linea-goerli-testnet",
"blockTimeMs": 12099,
"blockTimeMs": 4646,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/linea.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "linea",
"blockTimeMs": 12099,
"blockTimeMs": 5491,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/mantle-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "mantle-goerli-testnet",
"blockTimeMs": 362,
"blockTimeMs": 4082,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/mantle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "mantle",
"blockTimeMs": 362,
"blockTimeMs": 374,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/metis-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "metis-goerli-testnet",
"blockTimeMs": 5911,
"blockTimeMs": 24528,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/metis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "metis",
"blockTimeMs": 2564,
"blockTimeMs": 1710,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/moonbeam-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "moonbeam-testnet",
"blockTimeMs": 13654,
"blockTimeMs": 13097,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/moonbeam.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "moonbeam",
"blockTimeMs": 12233,
"blockTimeMs": 12214,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/moonriver.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "moonriver",
"blockTimeMs": 12312,
"blockTimeMs": 12955,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/polygon-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "polygon-testnet",
"blockTimeMs": 2576,
"blockTimeMs": 2451,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/polygon-zkevm-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "polygon-zkevm-goerli-testnet",
"blockTimeMs": 6587,
"blockTimeMs": 9798,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/polygon-zkevm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "polygon-zkevm",
"blockTimeMs": 1658,
"blockTimeMs": 4061,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/polygon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "polygon",
"blockTimeMs": 2210,
"blockTimeMs": 2279,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/rsk-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "rsk-testnet",
"blockTimeMs": 26036,
"blockTimeMs": 25116,
"decimals": 18,
"explorer": {
"browserUrl": "https://explorer.testnet.rsk.co/"
Expand Down
2 changes: 1 addition & 1 deletion chains/rsk.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "rsk",
"blockTimeMs": 30946,
"blockTimeMs": 29805,
"decimals": 18,
"explorer": {
"browserUrl": "https://explorer.rsk.co/"
Expand Down
2 changes: 1 addition & 1 deletion chains/scroll-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "scroll-goerli-testnet",
"blockTimeMs": 3002,
"blockTimeMs": 28244,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/sx.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "sx",
"blockTimeMs": 2035,
"blockTimeMs": 2042,
"decimals": 18,
"explorer": {
"api": {
Expand Down
2 changes: 1 addition & 1 deletion chains/zksync-goerli-testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "zksync-goerli-testnet",
"blockTimeMs": 1069,
"blockTimeMs": 2732,
"decimals": 18,
"explorer": {
"browserUrl": "https://goerli.explorer.zksync.io/"
Expand Down
2 changes: 1 addition & 1 deletion chains/zksync.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alias": "zksync",
"blockTimeMs": 1020,
"blockTimeMs": 1046,
"decimals": 18,
"explorer": {
"browserUrl": "https://explorer.zksync.io/"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@phase21/chains",
"license": "MIT",
"version": "0.5.0",
"version": "4.5.1",
"author": "API3 DAO",
"private": false,
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/calculate-average-block-times.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function calculateAverageBlockTimes(): Promise<void> {
if (blockTimeMs) {
const filePath = path.join(__dirname, `../chains/${chain.alias}.json`);
const fileContent = JSON.parse(fs.readFileSync(filePath, 'utf8'));
fs.writeFileSync(filePath, JSON.stringify({ ...fileContent, blockTimeMs }, null, 2));
fs.writeFileSync(filePath, JSON.stringify({ ...fileContent, blockTimeMs }, null, 2) + '\n');
}

return { alias: chain.alias, blockTimeMs };
Expand Down
Loading

0 comments on commit 4795d31

Please sign in to comment.