diff --git a/.changeset/hungry-humans-design.md b/.changeset/hungry-humans-design.md new file mode 100644 index 0000000000..9f548ba00c --- /dev/null +++ b/.changeset/hungry-humans-design.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Silicon chains. diff --git a/src/chains/definitions/silicon.ts b/src/chains/definitions/silicon.ts new file mode 100644 index 0000000000..65765b034b --- /dev/null +++ b/src/chains/definitions/silicon.ts @@ -0,0 +1,18 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const silicon = /*#__PURE__*/ defineChain({ + id: 2355, + name: 'Silicon zkEVM', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.silicon.network', 'https://silicon-mainnet.nodeinfra.com'], + }, + }, + blockExplorers: { + default: { + name: 'SiliconScope', + url: 'https://scope.silicon.network', + }, + }, +}) diff --git a/src/chains/definitions/siliconSepolia.ts b/src/chains/definitions/siliconSepolia.ts new file mode 100644 index 0000000000..71a5ae30a2 --- /dev/null +++ b/src/chains/definitions/siliconSepolia.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const siliconSepolia = /*#__PURE__*/ defineChain({ + id: 1722641160, + name: 'Silicon Sepolia zkEVM', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc-sepolia.silicon.network', 'https://silicon-testnet.nodeinfra.com'], + }, + }, + blockExplorers: { + default: { + name: 'SiliconSepoliaScope', + url: 'https://scope-sepolia.silicon.network', + }, + }, + testnet: true, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index d2bb1be43d..be80a866d6 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -292,6 +292,8 @@ export { shardeumSphinx } from './definitions/shardeumSphinx.js' export { shibarium } from './definitions/shibarium.js' export { shibariumTestnet } from './definitions/shibariumTestnet.js' export { storyTestnet } from './definitions/storyTestnet.js' +export { silicon } from './definitions/silicon.js' +export { siliconSepolia } from './definitions/siliconSepolia.js' export { stratis } from './definitions/stratis.js' export { syscoin } from './definitions/syscoin.js' export { syscoinTestnet } from './definitions/syscoinTestnet.js'