From cb2f1505a6710c744281944f23896539d8340c6e Mon Sep 17 00:00:00 2001 From: parchedpanda Date: Mon, 4 Nov 2024 18:10:28 +0800 Subject: [PATCH] feat: add acria network --- .changeset/wise-mayflies-design.md | 5 +++++ src/chains/definitions/acria.ts | 23 +++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 29 insertions(+) create mode 100644 .changeset/wise-mayflies-design.md create mode 100644 src/chains/definitions/acria.ts diff --git a/.changeset/wise-mayflies-design.md b/.changeset/wise-mayflies-design.md new file mode 100644 index 00000000000..f99a1e752d8 --- /dev/null +++ b/.changeset/wise-mayflies-design.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Acria IntelliChain. diff --git a/src/chains/definitions/acria.ts b/src/chains/definitions/acria.ts new file mode 100644 index 00000000000..6f3353d3a22 --- /dev/null +++ b/src/chains/definitions/acria.ts @@ -0,0 +1,23 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const acria = /*#__PURE__*/ defineChain({ + id: 47, + name: 'Acria IntelliChain', + nativeCurrency: { + decimals: 18, + name: 'ACRIA', + symbol: 'ACRIA', + }, + rpcUrls: { + default: { + http: ['https://aic.acria.ai'], + }, + }, + blockExplorers: { + default: { + name: 'Acria Explorer', + url: 'https://explorer.acria.ai', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 7291e9e10cb..a506fbfd6e6 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -3,6 +3,7 @@ export type { Chain } from '../types/chain.js' // biome-ignore lint/performance/noBarrelFile: entrypoint module export { abstractTestnet } from './definitions/abstractTestnet.js' export { acala } from './definitions/acala.js' +export { acria } from './definitions/acria.js' export { alienx } from './definitions/alienX.js' export { alienxHalTestnet } from './definitions/alienXHalTestnet.js' export { ancient8 } from './definitions/ancient8.js'