From 0a992fd0a89d346972299e0fd4b9ff2c099feda4 Mon Sep 17 00:00:00 2001 From: Yaro Shkvorets Date: Wed, 18 Dec 2024 15:17:08 -0500 Subject: [PATCH] Change root url and more (#30) * change root url to networks-registry.thegraph.com * add exceptions to trailing slash lint rule * bump up version * add icons --- .env.example | 2 +- package.json | 2 +- public/TheGraphNetworksRegistry.json | 2 +- public/TheGraphNetworksRegistrySchema_v0_3.json | 2 +- public/TheGraphNetworksRegistrySchema_v0_4.json | 2 +- public/TheGraphNetworksRegistrySchema_v0_5.json | 2 +- public/TheGraphNetworksRegistrySchema_v0_6.json | 2 +- public/TheGraphNetworksRegistry_v0_4_2.json | 2 +- public/TheGraphNetworksRegistry_v0_4_3.json | 2 +- public/TheGraphNetworksRegistry_v0_4_x.json | 2 +- public/TheGraphNetworksRegistry_v0_5_0.json | 2 +- public/TheGraphNetworksRegistry_v0_5_1.json | 2 +- public/TheGraphNetworksRegistry_v0_5_2.json | 2 +- public/TheGraphNetworksRegistry_v0_5_3.json | 2 +- public/TheGraphNetworksRegistry_v0_5_x.json | 2 +- public/TheGraphNetworksRegistry_v0_6_0.json | 2 +- public/TheGraphNetworksRegistry_v0_6_1.json | 2 +- public/TheGraphNetworksRegistry_v0_6_10.json | 2 +- public/TheGraphNetworksRegistry_v0_6_11.json | 2 +- public/TheGraphNetworksRegistry_v0_6_12.json | 2 +- public/TheGraphNetworksRegistry_v0_6_13.json | 2 +- public/TheGraphNetworksRegistry_v0_6_14.json | 2 +- public/TheGraphNetworksRegistry_v0_6_15.json | 2 +- public/TheGraphNetworksRegistry_v0_6_2.json | 2 +- public/TheGraphNetworksRegistry_v0_6_3.json | 2 +- public/TheGraphNetworksRegistry_v0_6_4.json | 2 +- public/TheGraphNetworksRegistry_v0_6_5.json | 2 +- public/TheGraphNetworksRegistry_v0_6_6.json | 2 +- public/TheGraphNetworksRegistry_v0_6_7.json | 2 +- public/TheGraphNetworksRegistry_v0_6_8.json | 2 +- public/TheGraphNetworksRegistry_v0_6_9.json | 2 +- public/TheGraphNetworksRegistry_v0_6_x.json | 2 +- public/TheGraphNetworksRegistry_v0_x_x.json | 2 +- registry/antelope/wax-testnet.json | 3 ++- registry/antelope/wax.json | 3 ++- registry/eip155/lumia.json | 7 +++++-- registry/eip155/sonic.json | 3 ++- schemas/registry.schema.json | 2 +- src/generate.ts | 2 +- src/prettier/plugin-no-trailing-slash.cjs | 8 ++++++++ 40 files changed, 54 insertions(+), 40 deletions(-) diff --git a/.env.example b/.env.example index abd6b48..cbbe870 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -REGISTRY_ROOT_URL="https://registry.thegraph.com" +REGISTRY_ROOT_URL="https://networks-registry.thegraph.com" # [optional] to query network subgraph for validation THEGRAPH_STUDIO_KEY= diff --git a/package.json b/package.json index ed8bbfe..6e0d86f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.6.15", + "version": "0.6.16", "private": true, "type": "module", "scripts": { diff --git a/public/TheGraphNetworksRegistry.json b/public/TheGraphNetworksRegistry.json index 8e4c9ea..ce74fd3 100644 --- a/public/TheGraphNetworksRegistry.json +++ b/public/TheGraphNetworksRegistry.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.15", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistrySchema_v0_3.json b/public/TheGraphNetworksRegistrySchema_v0_3.json index 662c168..902c71c 100644 --- a/public/TheGraphNetworksRegistrySchema_v0_3.json +++ b/public/TheGraphNetworksRegistrySchema_v0_3.json @@ -1,5 +1,5 @@ { - "$id": "https://thegraph.com/schemas/registry.schema.json", + "$id": "https://thegraph.com/schemas/networks-registry.schema.json", "$schema": "http://json-schema.org/schema#", "title": "The Graph networks registry schema", "type": "object", diff --git a/public/TheGraphNetworksRegistrySchema_v0_4.json b/public/TheGraphNetworksRegistrySchema_v0_4.json index 8194753..660909d 100644 --- a/public/TheGraphNetworksRegistrySchema_v0_4.json +++ b/public/TheGraphNetworksRegistrySchema_v0_4.json @@ -1,5 +1,5 @@ { - "$id": "https://thegraph.com/schemas/registry.schema.json", + "$id": "https://thegraph.com/schemas/networks-registry.schema.json", "$schema": "http://json-schema.org/schema#", "title": "The Graph networks registry schema", "type": "object", diff --git a/public/TheGraphNetworksRegistrySchema_v0_5.json b/public/TheGraphNetworksRegistrySchema_v0_5.json index 0741eeb..1f8e963 100644 --- a/public/TheGraphNetworksRegistrySchema_v0_5.json +++ b/public/TheGraphNetworksRegistrySchema_v0_5.json @@ -1,5 +1,5 @@ { - "$id": "https://thegraph.com/schemas/registry.schema.json", + "$id": "https://thegraph.com/schemas/networks-registry.schema.json", "$schema": "http://json-schema.org/schema#", "title": "The Graph networks registry schema", "type": "object", diff --git a/public/TheGraphNetworksRegistrySchema_v0_6.json b/public/TheGraphNetworksRegistrySchema_v0_6.json index e525ac2..d8ee61c 100644 --- a/public/TheGraphNetworksRegistrySchema_v0_6.json +++ b/public/TheGraphNetworksRegistrySchema_v0_6.json @@ -1,5 +1,5 @@ { - "$id": "https://thegraph.com/schemas/registry.schema.json", + "$id": "https://thegraph.com/schemas/networks-registry.schema.json", "$schema": "http://json-schema.org/schema#", "title": "The Graph networks registry schema", "type": "object", diff --git a/public/TheGraphNetworksRegistry_v0_4_2.json b/public/TheGraphNetworksRegistry_v0_4_2.json index 55fa726..5df0e1b 100644 --- a/public/TheGraphNetworksRegistry_v0_4_2.json +++ b/public/TheGraphNetworksRegistry_v0_4_2.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", "version": "0.4.2", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_4_3.json b/public/TheGraphNetworksRegistry_v0_4_3.json index 90e62fa..8bc9038 100644 --- a/public/TheGraphNetworksRegistry_v0_4_3.json +++ b/public/TheGraphNetworksRegistry_v0_4_3.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", "version": "0.4.3", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_4_x.json b/public/TheGraphNetworksRegistry_v0_4_x.json index 90e62fa..8bc9038 100644 --- a/public/TheGraphNetworksRegistry_v0_4_x.json +++ b/public/TheGraphNetworksRegistry_v0_4_x.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_4.json", "version": "0.4.3", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_5_0.json b/public/TheGraphNetworksRegistry_v0_5_0.json index 51a1955..0ab0495 100644 --- a/public/TheGraphNetworksRegistry_v0_5_0.json +++ b/public/TheGraphNetworksRegistry_v0_5_0.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", "version": "0.5.0", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_5_1.json b/public/TheGraphNetworksRegistry_v0_5_1.json index abd1337..1a0b603 100644 --- a/public/TheGraphNetworksRegistry_v0_5_1.json +++ b/public/TheGraphNetworksRegistry_v0_5_1.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", "version": "0.5.1", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_5_2.json b/public/TheGraphNetworksRegistry_v0_5_2.json index 8c213ac..4d7751c 100644 --- a/public/TheGraphNetworksRegistry_v0_5_2.json +++ b/public/TheGraphNetworksRegistry_v0_5_2.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", "version": "0.5.2", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_5_3.json b/public/TheGraphNetworksRegistry_v0_5_3.json index 694174c..4684448 100644 --- a/public/TheGraphNetworksRegistry_v0_5_3.json +++ b/public/TheGraphNetworksRegistry_v0_5_3.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", "version": "0.5.3", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_5_x.json b/public/TheGraphNetworksRegistry_v0_5_x.json index 694174c..4684448 100644 --- a/public/TheGraphNetworksRegistry_v0_5_x.json +++ b/public/TheGraphNetworksRegistry_v0_5_x.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_5.json", "version": "0.5.3", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_0.json b/public/TheGraphNetworksRegistry_v0_6_0.json index 644e455..83348c2 100644 --- a/public/TheGraphNetworksRegistry_v0_6_0.json +++ b/public/TheGraphNetworksRegistry_v0_6_0.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.0", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_1.json b/public/TheGraphNetworksRegistry_v0_6_1.json index 61dd05a..8dcfe32 100644 --- a/public/TheGraphNetworksRegistry_v0_6_1.json +++ b/public/TheGraphNetworksRegistry_v0_6_1.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.1", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_10.json b/public/TheGraphNetworksRegistry_v0_6_10.json index c7cab4c..e712d2d 100644 --- a/public/TheGraphNetworksRegistry_v0_6_10.json +++ b/public/TheGraphNetworksRegistry_v0_6_10.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.10", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_11.json b/public/TheGraphNetworksRegistry_v0_6_11.json index b350746..eb865fa 100644 --- a/public/TheGraphNetworksRegistry_v0_6_11.json +++ b/public/TheGraphNetworksRegistry_v0_6_11.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.11", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_12.json b/public/TheGraphNetworksRegistry_v0_6_12.json index 53b9474..51aa203 100644 --- a/public/TheGraphNetworksRegistry_v0_6_12.json +++ b/public/TheGraphNetworksRegistry_v0_6_12.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.12", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_13.json b/public/TheGraphNetworksRegistry_v0_6_13.json index 4b6564a..122fe84 100644 --- a/public/TheGraphNetworksRegistry_v0_6_13.json +++ b/public/TheGraphNetworksRegistry_v0_6_13.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.13", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_14.json b/public/TheGraphNetworksRegistry_v0_6_14.json index 9a86ad7..3349b7b 100644 --- a/public/TheGraphNetworksRegistry_v0_6_14.json +++ b/public/TheGraphNetworksRegistry_v0_6_14.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.14", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_15.json b/public/TheGraphNetworksRegistry_v0_6_15.json index 8e4c9ea..ce74fd3 100644 --- a/public/TheGraphNetworksRegistry_v0_6_15.json +++ b/public/TheGraphNetworksRegistry_v0_6_15.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.15", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_2.json b/public/TheGraphNetworksRegistry_v0_6_2.json index a2dba80..544e754 100644 --- a/public/TheGraphNetworksRegistry_v0_6_2.json +++ b/public/TheGraphNetworksRegistry_v0_6_2.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.2", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_3.json b/public/TheGraphNetworksRegistry_v0_6_3.json index 0dc8f68..d9d2efb 100644 --- a/public/TheGraphNetworksRegistry_v0_6_3.json +++ b/public/TheGraphNetworksRegistry_v0_6_3.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.3", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_4.json b/public/TheGraphNetworksRegistry_v0_6_4.json index 91f08bb..c38c13d 100644 --- a/public/TheGraphNetworksRegistry_v0_6_4.json +++ b/public/TheGraphNetworksRegistry_v0_6_4.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.4", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_5.json b/public/TheGraphNetworksRegistry_v0_6_5.json index 07d8cb0..b84c781 100644 --- a/public/TheGraphNetworksRegistry_v0_6_5.json +++ b/public/TheGraphNetworksRegistry_v0_6_5.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.5", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_6.json b/public/TheGraphNetworksRegistry_v0_6_6.json index 9fb08cd..c0c9367 100644 --- a/public/TheGraphNetworksRegistry_v0_6_6.json +++ b/public/TheGraphNetworksRegistry_v0_6_6.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.6", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_7.json b/public/TheGraphNetworksRegistry_v0_6_7.json index 49a4158..4b9cbfe 100644 --- a/public/TheGraphNetworksRegistry_v0_6_7.json +++ b/public/TheGraphNetworksRegistry_v0_6_7.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.7", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_8.json b/public/TheGraphNetworksRegistry_v0_6_8.json index d252d5f..56d58d9 100644 --- a/public/TheGraphNetworksRegistry_v0_6_8.json +++ b/public/TheGraphNetworksRegistry_v0_6_8.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.8", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_9.json b/public/TheGraphNetworksRegistry_v0_6_9.json index 50645e2..1310dd4 100644 --- a/public/TheGraphNetworksRegistry_v0_6_9.json +++ b/public/TheGraphNetworksRegistry_v0_6_9.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.9", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_6_x.json b/public/TheGraphNetworksRegistry_v0_6_x.json index 8e4c9ea..ce74fd3 100644 --- a/public/TheGraphNetworksRegistry_v0_6_x.json +++ b/public/TheGraphNetworksRegistry_v0_6_x.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.15", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/public/TheGraphNetworksRegistry_v0_x_x.json b/public/TheGraphNetworksRegistry_v0_x_x.json index 8e4c9ea..ce74fd3 100644 --- a/public/TheGraphNetworksRegistry_v0_x_x.json +++ b/public/TheGraphNetworksRegistry_v0_x_x.json @@ -1,5 +1,5 @@ { - "$schema": "https://registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", + "$schema": "https://networks-registry.thegraph.com/TheGraphNetworksRegistrySchema_v0_6.json", "version": "0.6.15", "title": "The Graph networks registry", "description": "This registry was generated and validated. To add a chain, open a pull request: https://github.com/graphprotocol/networks-registry", diff --git a/registry/antelope/wax-testnet.json b/registry/antelope/wax-testnet.json index aeca7f4..8c23797 100644 --- a/registry/antelope/wax-testnet.json +++ b/registry/antelope/wax-testnet.json @@ -24,5 +24,6 @@ "blockType": "sf.antelope.type.v1.Block", "bufUrl": "https://buf.build/pinax/firehose-antelope", "bytesEncoding": "hex" - } + }, + "icon": { "web3Icons": { "name": "wax" } } } diff --git a/registry/antelope/wax.json b/registry/antelope/wax.json index 906f655..5b55482 100644 --- a/registry/antelope/wax.json +++ b/registry/antelope/wax.json @@ -23,5 +23,6 @@ "blockType": "sf.antelope.type.v1.Block", "bufUrl": "https://buf.build/pinax/firehose-antelope", "bytesEncoding": "hex" - } + }, + "icon": { "web3Icons": { "name": "wax" } } } diff --git a/registry/eip155/lumia.json b/registry/eip155/lumia.json index 764cd68..0e73b99 100644 --- a/registry/eip155/lumia.json +++ b/registry/eip155/lumia.json @@ -7,7 +7,9 @@ "graphNode": { "protocol": "ethereum" }, "explorerUrls": ["https://lens.lumia.org"], "rpcUrls": ["https://mainnet-rpc.lumia.org"], - "apiUrls": [{ "url": "https://explorer.lumia.org/api", "kind": "etherscan" }], + "apiUrls": [ + { "url": "https://explorer.lumia.org/api/", "kind": "etherscan" } + ], "relations": [{ "kind": "l2Of", "network": "mainnet" }], "services": { "subgraphs": ["https://api.studio.thegraph.com/deploy"] }, "networkType": "mainnet", @@ -23,5 +25,6 @@ "evmExtendedModel": false, "bufUrl": "https://buf.build/streamingfast/firehose-ethereum", "bytesEncoding": "hex" - } + }, + "icon": { "web3Icons": { "name": "lumia" } } } diff --git a/registry/eip155/sonic.json b/registry/eip155/sonic.json index 93c3bd0..aeef373 100644 --- a/registry/eip155/sonic.json +++ b/registry/eip155/sonic.json @@ -27,5 +27,6 @@ "evmExtendedModel": false, "bufUrl": "https://buf.build/streamingfast/firehose-ethereum", "bytesEncoding": "hex" - } + }, + "icon": { "web3Icons": { "name": "sonic" } } } diff --git a/schemas/registry.schema.json b/schemas/registry.schema.json index e525ac2..d8ee61c 100644 --- a/schemas/registry.schema.json +++ b/schemas/registry.schema.json @@ -1,5 +1,5 @@ { - "$id": "https://thegraph.com/schemas/registry.schema.json", + "$id": "https://thegraph.com/schemas/networks-registry.schema.json", "$schema": "http://json-schema.org/schema#", "title": "The Graph networks registry schema", "type": "object", diff --git a/src/generate.ts b/src/generate.ts index 3f7af95..e649489 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -6,7 +6,7 @@ import packageInfo from "../package.json"; import { getVersionFilenames } from "./utils/versions"; const REGISTRY_ROOT_URL = - process.env.REGISTRY_ROOT_URL ?? "https://registry.thegraph.com"; + process.env.REGISTRY_ROOT_URL ?? "https://networks-registry.thegraph.com"; function generateMermaidGraph(networks: Network[]): string { const relations = networks diff --git a/src/prettier/plugin-no-trailing-slash.cjs b/src/prettier/plugin-no-trailing-slash.cjs index 3eb38f2..917b26c 100644 --- a/src/prettier/plugin-no-trailing-slash.cjs +++ b/src/prettier/plugin-no-trailing-slash.cjs @@ -3,8 +3,16 @@ module.exports = { json: { ...require("prettier/parser-babel").parsers.json, preprocess: (text) => { + // List of URLs that should keep their trailing slash + const exceptions = [ + "https://explorer.lumia.org/api/", + ]; + const processValue = (value) => { if (typeof value === "string" && (value.startsWith("http://") || value.startsWith("https://"))) { + if (exceptions.includes(value)) { + return value; + } return value.replace(/\/+$/, ""); } if (Array.isArray(value)) {