Skip to content

Commit

Permalink
Add OnFinality code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Oct 29, 2024
1 parent daba26c commit 2114992
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Network = {
// > https://github.com/TalismanSociety/chaindata/blob/v3/chaindata.json
code: string;
name: string;
onfinality_code?: string;
chain_id: string;
description: string;
logo: string;
Expand Down Expand Up @@ -98,6 +99,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "42161",
name: "Arbitrum One",
onfinality_code: "arbitrum",
chain_id: "42161",
description:
"A Layer 2 scaling solution for Ethereum, enhancing transaction throughput and reducing fees while maintaining compatibility with Ethereum's smart contracts.",
Expand Down Expand Up @@ -395,6 +397,7 @@ const networkFamilies: NetworkFamily[] = [
code: "8453",
name: "Base",
chain_id: "8453",
onfinality_code: "base",
description:
"A blockchain network focused on simplifying smart contract development and execution, offering secure and efficient blockchain solutions.",
logo: "https://static.subquery.network/network-logos/8453.png",
Expand Down Expand Up @@ -622,6 +625,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "56",
name: "BNB Smart Chain",
onfinality_code: "bnb",
chain_id: "56",
description:
"Binance's blockchain network, designed for fast and low-cost transactions, powering various DeFi applications and tokens within the Binance ecosystem.",
Expand Down Expand Up @@ -1052,6 +1056,7 @@ const networkFamilies: NetworkFamily[] = [
code: "1",
name: "Ethereum",
chain_id: "1",
onfinality_code: "eth",
description:
"A leading decentralized blockchain platform for smart contracts and decentralized applications (DApps), known for its native cryptocurrency Ether (ETH).",
logo: "https://static.subquery.network/network-logos/1.png",
Expand Down Expand Up @@ -1205,6 +1210,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "11155111",
name: "Ethereum Sepolia",
onfinality_code: "eth-sepolia",
chain_id: "11155111",
description: "",
logo: "https://static.subquery.network/network-logos/11155111.png",
Expand Down Expand Up @@ -1904,6 +1910,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "10",
name: "Optimism",
onfinality_code: "optimism",
chain_id: "10",
description:
"An Ethereum Layer 2 scaling solution, enhancing transaction speed and cost efficiency while maintaining compatibility with the Ethereum network and smart contracts.",
Expand Down Expand Up @@ -2007,6 +2014,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "137",
name: "Polygon",
onfinality_code: "polygon",
chain_id: "137",
description:
"A multi-chain framework for Ethereum, promoting scalability and interoperability by facilitating the development of various blockchain solutions and dApps.",
Expand Down Expand Up @@ -4205,6 +4213,7 @@ const networkFamilies: NetworkFamily[] = [
{
code: "darwinia",
name: "Darwinia",
onfinality_code: "darwinia2",
chain_id:
"0xf0b8924b12e8108550d28870bc03f7b45a947e1b2b9abf81bfb0b89ecb60570e",
description:
Expand Down Expand Up @@ -5309,6 +5318,7 @@ writeFile("./dist/output.json", schemaJSONString, (err) => {
const rpcsOutput: {
code: string;
name: string;
onfinality_code: string;
chain_id: string;
description: string;
logo: string;
Expand All @@ -5324,6 +5334,7 @@ const rpcsOutput: {
return {
code: n.code,
name: n.name,
onfinality_code: n.onfinality_code || n.code,
chain_id: n.chain_id,
description: n.description,
logo: n.logo,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ ts-to-json@^1.8.3:
sortobject "^4.16.0"
typescript "~5.1.3"

typescript@^5.1.6, typescript@>=2.7, typescript@~5.1.3:
typescript@^5.1.6, typescript@~5.1.3:
version "5.1.6"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
Expand Down

0 comments on commit 2114992

Please sign in to comment.