Skip to content

Commit

Permalink
add routescan apis
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Dec 2, 2024
1 parent 971b52f commit 8dba740
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REGISTRY_ROOT_URL="https://graphregistry.pages.dev"
REGISTRY_ROOT_URL="https://registry.thegraph.com"

# [optional] to query network subgraph for validation
THEGRAPH_STUDIO_KEY=<YOUR_STUDIO_KEY>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.11",
"version": "0.6.12",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -24,8 +24,5 @@
"ajv-formats": "^3.0.1",
"json-schema-to-typescript": "15.0.3",
"prettier": "3.4.1"
},
"dependencies": {
"wrangler": "3.90.0"
}
}
2 changes: 1 addition & 1 deletion registry/eip155/avalanche.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"https://avalanche.rpc.pinax.network/v1/{PINAX_API_KEY}/ext/bc/C/rpc",
"https://avalanche-c-chain-rpc.publicnode.com"
],
"apiUrls": [{ "url": "https://api.snowtrace.io/api", "kind": "etherscan" }],
"apiUrls": [{ "url": "https://api.snowtrace.io/api", "kind": "etherscan" }, { "url": "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api", "kind": "etherscan" }],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
"sps": ["https://api.thegraph.com/deploy"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/chiliz.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://rpc.ankr.com/chiliz",
"https://chiliz.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [{ "url": "https://scan.chiliz.com/api", "kind": "etherscan" }],
"apiUrls": [{ "url": "https://scan.chiliz.com/api", "kind": "etherscan" }, { "url": "https://api.routescan.io/v2/network/mainnet/evm/88888/etherscan/api", "kind": "etherscan" }],
"networkType": "mainnet",
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
6 changes: 5 additions & 1 deletion registry/eip155/corn.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"explorerUrls": ["https://maizenet-explorer.usecorn.com"],
"rpcUrls": ["https://maizenet-rpc.usecorn.com"],
"apiUrls": [
{ "url": "https://maizenet-explorer.usecorn.com/api", "kind": "etherscan" }
{ "url": "https://maizenet-explorer.usecorn.com/api", "kind": "etherscan" },
{
"url": "https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api",
"kind": "etherscan"
}
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
6 changes: 5 additions & 1 deletion registry/eip155/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
],
"apiUrls": [
{ "url": "https://mainnet.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://eth.blockscout.com/api", "kind": "blockscout" }
{ "url": "https://eth.blockscout.com/api", "kind": "blockscout" },
{
"url": "https://api.routescan.io/v2/network/mainnet/evm/1/etherscan/api",
"kind": "etherscan"
}
],
"networkType": "mainnet",
"services": {
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/mode-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"https://mode.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer.mode.network/api", "kind": "blockscout" }
{ "url": "https://explorer.mode.network/api", "kind": "blockscout" },
{ "url": "https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan/api", "kind": "etherscan" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/zora.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"https://zora.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer.zora.energy/api", "kind": "blockscout" }
{ "url": "https://explorer.zora.energy/api", "kind": "blockscout" },
{ "url": "https://api.routescan.io/v2/network/mainnet/evm/7777777/etherscan/api", "kind": "etherscan" }
],
"services": {
"firehose": ["zora.firehose.pinax.network:443"],
Expand Down
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import packageInfo from "../package.json";
import { getVersionFilenames } from "./utils/versions";

const REGISTRY_ROOT_URL =
process.env.REGISTRY_ROOT_URL ?? "https://graphregistry.pages.dev";
process.env.REGISTRY_ROOT_URL ?? "https://registry.thegraph.com";

function generateMermaidGraph(networks: Network[]): string {
const relations = networks
Expand Down

0 comments on commit 8dba740

Please sign in to comment.