From d669224119ac1fdd30291911c79dd9cbba81dddb Mon Sep 17 00:00:00 2001 From: YaroShkvorets Date: Wed, 20 Nov 2024 22:34:00 -0500 Subject: [PATCH] add lens testnet --- package.json | 2 +- registry/eip155/lens-sepolia.json | 36 +++++++++++++++++++++++++++++++ src/generate_table.ts | 11 ++++++++-- 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 registry/eip155/lens-sepolia.json diff --git a/package.json b/package.json index fcde26b..7b81421 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.6.1", + "version": "0.6.2", "private": true, "type": "module", "scripts": { diff --git a/registry/eip155/lens-sepolia.json b/registry/eip155/lens-sepolia.json new file mode 100644 index 0000000..96f7b96 --- /dev/null +++ b/registry/eip155/lens-sepolia.json @@ -0,0 +1,36 @@ +{ + "id": "lens-sepolia", + "shortName": "Lens", + "secondName": "Sepolia", + "fullName": "Lens Sepolia Testnet", + "aliases": ["evm-37111", "lens-testnet"], + "caip2Id": "eip155:37111", + "graphNode": { "protocol": "ethereum" }, + "explorerUrls": ["https://block-explorer.testnet.lens.dev"], + "rpcUrls": ["https://rpc.testnet.lens.dev"], + "apiUrls": [ + { + "url": "https://block-explorer-api.staging.lens.dev/api", + "kind": "etherscan" + } + ], + "networkType": "testnet", + "relations": [ + { "kind": "testnetOf", "network": "lens-sepolia" }, + { "kind": "l2Of", "network": "sepolia" } + ], + "services": {}, + "issuanceRewards": false, + "nativeToken": "GRASS", + "docsUrl": "https://www.lens.xyz/docs", + "genesis": { + "hash": "0xe8e77626586f73b955364c7b4bbf0bb7f7685ebd40e852b164633a4acbd3244c", + "height": 0 + }, + "firehose": { + "blockType": "sf.ethereum.type.v2.Block", + "evmExtendedModel": false, + "bufUrl": "https://buf.build/streamingfast/firehose-ethereum", + "bytesEncoding": "hex" + } +} diff --git a/src/generate_table.ts b/src/generate_table.ts index dfa90af..f665b03 100644 --- a/src/generate_table.ts +++ b/src/generate_table.ts @@ -6,8 +6,8 @@ import { version } from "../package.json"; function generateMarkdownTable(networks: Network[]): string { const headers = [ - "ID", "Network", + "ID", "Type", "Indexing Rewards", "Graph Node Protocol", @@ -24,12 +24,19 @@ function generateMarkdownTable(networks: Network[]): string { // center-align all columns using :---: const alignmentRow = `| ${headers.map(() => ":---:").join(" | ")} |`; + const fullName = (network: Network) => { + const icon = network.icon?.web3Icons?.name + ? `![](https://raw.githubusercontent.com/0xa3k5/web3icons/refs/heads/main/raw-svgs/networks/branded/${network.icon.web3Icons.name}.svg)` + : ""; + return `${icon} ${network.shortName} ${network.secondName ?? ""}`; + }; + // Generate rows for each network const rows = networks.map((network) => { const services = network.services || {}; return [ + fullName(network), `**${network.id}**`, - `${network.shortName} ${network.secondName ?? ""}`, `*${network.networkType}*`, network.issuanceRewards ? "✅" : "", `*${