From 2498543a3f165517ae649010a1cb439ff9267637 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Tue, 26 Nov 2024 06:11:02 +0100 Subject: [PATCH] feat: add sonic testnet Co-Authored-By: Mejuck --- .changeset/shiny-clocks-vanish.md | 5 +++++ src/chains/definitions/sonicTestnet.ts | 21 +++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 27 insertions(+) create mode 100644 .changeset/shiny-clocks-vanish.md create mode 100644 src/chains/definitions/sonicTestnet.ts diff --git a/.changeset/shiny-clocks-vanish.md b/.changeset/shiny-clocks-vanish.md new file mode 100644 index 0000000000..eb669bf4f0 --- /dev/null +++ b/.changeset/shiny-clocks-vanish.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Sonic Testnet. diff --git a/src/chains/definitions/sonicTestnet.ts b/src/chains/definitions/sonicTestnet.ts new file mode 100644 index 0000000000..b84d76d263 --- /dev/null +++ b/src/chains/definitions/sonicTestnet.ts @@ -0,0 +1,21 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const sonicTestnet = /*#__PURE__*/ defineChain({ + id: 64_165, + name: 'Sonic Testnet', + nativeCurrency: { + decimals: 18, + name: 'Sonic', + symbol: 'S', + }, + rpcUrls: { + default: { http: ['https://rpc.testnet.soniclabs.com'] }, + }, + blockExplorers: { + default: { + name: 'Sonic Testnet Explorer', + url: 'https://testnet.soniclabs.com/', + }, + }, + testnet: true, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 24262168a2..b63ba8abb4 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -136,6 +136,7 @@ export { evmosTestnet } from './definitions/evmosTestnet.js' export { excelonMainnet } from './definitions/excelonMainnet.js' export { expanse } from './definitions/expanse.js' export { fantom } from './definitions/fantom.js' +/** @deprecated Use `sonicTestnet` instead. */ export { fantomSonicTestnet } from './definitions/fantomSonicTestnet.js' export { fantomTestnet } from './definitions/fantomTestnet.js' export { fibo } from './definitions/fibo.js'