Skip to content

Commit

Permalink
add lens testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Nov 21, 2024
1 parent c42e646 commit f398e1b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
36 changes: 36 additions & 0 deletions registry/eip155/lens-sepolia.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
11 changes: 9 additions & 2 deletions src/generate_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 ? "✅" : "",
`*${
Expand Down

0 comments on commit f398e1b

Please sign in to comment.