Skip to content

Commit

Permalink
Edits to match chain names in Studio (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets authored Nov 28, 2024
2 parents 0a685f2 + 983cc53 commit 23cfd5c
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 10 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.6",
"version": "0.6.7",
"private": true,
"type": "module",
"scripts": {
Expand Down
28 changes: 28 additions & 0 deletions registry/eip155/abstract-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "abstract-testnet",
"shortName": "Abstract",
"fullName": "Abstract Testnet",
"aliases": ["evm-11124", "abstract-sepolia"],
"caip2Id": "eip155:11124",
"graphNode": { "protocol": "ethereum" },
"explorerUrls": ["https://explorer.testnet.abs.xyz/"],
"rpcUrls": ["https://api.testnet.abs.xyz"],
"apiUrls": [{"url": "https://block-explorer-api.testnet.abs.xyz/api", "kind": "etherscan"}],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
"relations": [{ "kind": "testnetOf", "network": "abstract" }, { "kind": "l2Of", "network": "sepolia" }],
"issuanceRewards": false,
"nativeToken": "ETH",
"docsUrl": "https://docs.abs.xyz/",
"genesis": {
"hash": "0xfbb449463d9f1ec874d597d80d911f60857cc2fbf93f8ac83c70f8cfa2220a74",
"height": 1
},
"firehose": {
"blockType": "sf.ethereum.type.v2.Block",
"evmExtendedModel": false,
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
"bytesEncoding": "hex"
},
"icon": { "web3Icons": { "name": "abstract" } }
}
25 changes: 25 additions & 0 deletions registry/eip155/abstract.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "abstract",
"shortName": "Abstract",
"fullName": "Abstract Mainnet",
"aliases": ["evm-2741", "abstract-mainnet"],
"caip2Id": "eip155:2741",
"graphNode": { "protocol": "ethereum" },
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
"relations": [{ "kind": "l2Of", "network": "mainnet" }],
"issuanceRewards": false,
"nativeToken": "ETH",
"docsUrl": "https://docs.abs.xyz/",
"genesis": {
"hash": "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
"height": 1
},
"firehose": {
"blockType": "sf.ethereum.type.v2.Block",
"evmExtendedModel": false,
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
"bytesEncoding": "hex"
},
"icon": { "web3Icons": { "name": "abstract" } }
}
4 changes: 3 additions & 1 deletion registry/eip155/gravity-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"apiUrls": [
{ "url": "https://explorer.gravity.xyz/api", "kind": "etherscan" }
],
"relations": [
{ "kind": "l2Of", "network": "mainnet" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
"firehose": ["gravity.firehose.pinax.network:443"],
"substreams": ["gravity.substreams.pinax.network:443"]
},
"networkType": "mainnet",
"relations": [{ "kind": "l2Of", "network": "mainnet" }],
"issuanceRewards": false,
"nativeToken": "G",
"docsUrl": "https://docs.gravity.xyz",
Expand Down
32 changes: 32 additions & 0 deletions registry/eip155/iotex-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"id": "iotex-testnet",
"shortName": "Iotex",
"secondName": "Testnet",
"fullName": "Iotex Testnet",
"aliases": ["evm-4690"],
"caip2Id": "eip155:4690",
"graphNode": { "protocol": "ethereum" },
"explorerUrls": ["https://testnet.iotexscan.io"],
"rpcUrls": [
"https://babel-api.testnet.iotex.io"
],
"apiUrls": [{"url": "https://testnet.index.iotexscan.io/api", "kind": "etherscan"}],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
"relations": [{ "kind": "testnetOf", "network": "iotex" }],
"issuanceRewards": false,
"nativeToken": "IOTX",
"docsUrl": "https://docs.iotex.io",
"genesis": {
"hash": "0x663fc0a40a4943f1b56f501aee3ad626b5396e850aa53c5bd8759d0d47694dfc",
"height": 1
},
"firehose": {
"blockType": "sf.ethereum.type.v2.Block",
"evmExtendedModel": false,
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
"bytesEncoding": "hex"
},
"icon": { "web3Icons": { "name": "iotex" } }
}

4 changes: 2 additions & 2 deletions registry/eip155/lens-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"nativeToken": "GRASS",
"docsUrl": "https://www.lens.xyz/docs",
"genesis": {
"hash": "0xe8e77626586f73b955364c7b4bbf0bb7f7685ebd40e852b164633a4acbd3244c",
"height": 0
"hash": "0x5712a0fa02404a9fe852ef7d19ea2c019af52f59faa262a34f327ba03bbdc6d2",
"height": 1
},
"firehose": {
"blockType": "sf.ethereum.type.v2.Block",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "soneium-minato",
"id": "soneium-testnet",
"shortName": "Soneium",
"secondName": "Minato",
"fullName": "Soneium Minato Testnet",
"aliases": ["soneium-minato-testnet", "soneium-testnet"],
"aliases": ["soneium-minato-testnet", "soneium-minato", "minato"],
"caip2Id": "eip155:1946",
"graphNode": { "protocol": "ethereum" },
"explorerUrls": ["https://soneium-minato.blockscout.com"],
Expand All @@ -16,7 +16,7 @@
],
"networkType": "testnet",
"relations": [
{ "kind": "testnetOf", "network": "soneium-minato" },
{ "kind": "testnetOf", "network": "soneium-testnet" },
{ "kind": "l2Of", "network": "sepolia" }
],
"services": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "astar-zkyoto",
"id": "zkyoto-testnet",
"shortName": "Astar",
"secondName": "zKyoto",
"fullName": "Astar zkEVM Testnet zKyoto",
"aliases": ["evm-6038361", "astar-testnet", "astar-zkevm-testnet"],
"aliases": ["evm-6038361", "astar-testnet", "astar-zkevm-testnet", "astar-zkyoto"],
"caip2Id": "eip155:6038361",
"graphNode": { "protocol": "ethereum" },
"explorerUrls": ["https://zkyoto.explorer.startale.com"],
Expand Down
2 changes: 1 addition & 1 deletion src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function validateUniqueness(networks: Network[]) {
if (Array.isArray(n[obj])) {
return n[obj].map((item) => item[fi]);
}
if (Array.isArray(n[obj][fi])) {
if (Array.isArray(n[obj]?.[fi])) {
return n[obj][fi];
}
return [n[obj]?.[fi]].filter(Boolean);
Expand Down

0 comments on commit 23cfd5c

Please sign in to comment.