diff --git a/.changeset/chatty-moose-yawn.md b/.changeset/chatty-moose-yawn.md new file mode 100644 index 00000000..11a45eac --- /dev/null +++ b/.changeset/chatty-moose-yawn.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": minor +--- + +Added Mantle and Mantle Testnet chains diff --git a/.changeset/cold-ravens-punch.md b/.changeset/cold-ravens-punch.md new file mode 100644 index 00000000..86c63456 --- /dev/null +++ b/.changeset/cold-ravens-punch.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": major +--- + +Fixed canto rpc and blockexplorer diff --git a/.changeset/slimy-flowers-judge.md b/.changeset/slimy-flowers-judge.md new file mode 100644 index 00000000..491c278c --- /dev/null +++ b/.changeset/slimy-flowers-judge.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": patch +--- + +added nexilix chain diff --git a/.changeset/yellow-shirts-bake.md b/.changeset/yellow-shirts-bake.md new file mode 100644 index 00000000..80589c59 --- /dev/null +++ b/.changeset/yellow-shirts-bake.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": minor +--- + +Add multicall3 to Polygon zkEVM diff --git a/packages/chains/README.md b/packages/chains/README.md index 04c6449f..a58cac94 100644 --- a/packages/chains/README.md +++ b/packages/chains/README.md @@ -60,6 +60,8 @@ const { chains, provider } = configureChains( - `iotexTestnet` - `localhost` - `mainnet` +- `mantle` +- `mantleTestnet` - `metis` - `metisGoerli` - `moonbaseAlpha` diff --git a/packages/chains/src/canto.ts b/packages/chains/src/canto.ts index cb5a2126..d70226d6 100644 --- a/packages/chains/src/canto.ts +++ b/packages/chains/src/canto.ts @@ -10,13 +10,13 @@ export const canto = { symbol: 'CANTO', }, rpcUrls: { - default: { http: ['https://canto.slingshot.finance'] }, - public: { http: ['https://canto.slingshot.finance'] }, + default: { http: ['https://canto.gravitychain.io'] }, + public: { http: ['https://canto.gravitychain.io'] }, }, blockExplorers: { default: { - name: 'Canto EVM Explorer (Blockscout)', - url: 'https://evm.explorer.canto.io', + name: 'Tuber.Build (Blockscout)', + url: 'https://tuber.build', }, }, contracts: { diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 71521caf..1edfd93f 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -58,6 +58,8 @@ export { klaytn } from './klaytn' export { lineaTestnet } from './lineaTestnet' export { localhost } from './localhost' export { mainnet } from './mainnet' +export { mantle } from './mantle' +export { mantleTestnet } from './mantleTestnet' export { metis } from './metis' export { metisGoerli } from './metisGoerli' export { moonbaseAlpha } from './moonbaseAlpha' @@ -65,6 +67,7 @@ export { moonbeam } from './moonbeam' export { moonriver } from './moonriver' export { neonDevnet } from './neonDevnet' export { nexi } from './nexi' +export { nexilix } from './nexilix' export { oasys } from './oasys' export { okc } from './okc' export { optimism } from './optimism' diff --git a/packages/chains/src/mantle.ts b/packages/chains/src/mantle.ts new file mode 100644 index 00000000..198589fc --- /dev/null +++ b/packages/chains/src/mantle.ts @@ -0,0 +1,26 @@ +import { Chain } from './types' + +export const mantle = { + id: 5000, + name: 'Mantle', + network: 'mantle', + nativeCurrency: { + decimals: 18, + name: 'MNT', + symbol: 'MNT', + }, + rpcUrls: { + default: { http: ['https://rpc.mantle.xyz'] }, + public: { http: ['https://rpc.mantle.xyz'] }, + }, + blockExplorers: { + etherscan: { + name: 'Mantle Testnet Explorer', + url: 'https://explorer.mantle.xyz', + }, + default: { + name: 'Mantle Testnet Explorer', + url: 'https://explorer.mantle.xyz', + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/mantleTestnet.ts b/packages/chains/src/mantleTestnet.ts new file mode 100644 index 00000000..cc8f14e0 --- /dev/null +++ b/packages/chains/src/mantleTestnet.ts @@ -0,0 +1,27 @@ +import { Chain } from './types' + +export const mantleTestnet = { + id: 5001, + name: 'Mantle Testnet', + network: 'mantle', + nativeCurrency: { + decimals: 18, + name: 'MNT', + symbol: 'MNT', + }, + rpcUrls: { + default: { http: ['https://rpc.testnet.mantle.xyz'] }, + public: { http: ['https://rpc.testnet.mantle.xyz'] }, + }, + blockExplorers: { + etherscan: { + name: 'Mantle Testnet Explorer', + url: 'https://explorer.testnet.mantle.xyz', + }, + default: { + name: 'Mantle Testnet Explorer', + url: 'https://explorer.testnet.mantle.xyz', + }, + }, + testnet: true, +} as const satisfies Chain diff --git a/packages/chains/src/nexilix.ts b/packages/chains/src/nexilix.ts new file mode 100644 index 00000000..5c978cff --- /dev/null +++ b/packages/chains/src/nexilix.ts @@ -0,0 +1,26 @@ +import { Chain } from './types' + +export const nexilix = { + id: 240, + name: 'Nexilix Smart Chain', + network: 'nexilix', + nativeCurrency: { + decimals: 18, + name: 'Nexilix', + symbol: 'NEXILIX', + }, + rpcUrls: { + default: { http: ['https://rpcurl.pos.nexilix.com'] }, + public: { http: ['https://rpcurl.pos.nexilix.com'] }, + }, + blockExplorers: { + etherscan: { name: 'NexilixScan', url: 'https://scan.nexilix.com' }, + default: { name: 'NexilixScan', url: 'https://scan.nexilix.com' }, + }, + contracts: { + multicall3: { + address: '0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244', + blockCreated: 74448, + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/polygonZkEvm.ts b/packages/chains/src/polygonZkEvm.ts index 77ea0771..ee0fa422 100644 --- a/packages/chains/src/polygonZkEvm.ts +++ b/packages/chains/src/polygonZkEvm.ts @@ -19,4 +19,10 @@ export const polygonZkEvm = { url: 'https://zkevm.polygonscan.com', }, }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 57746, + }, + }, } as const satisfies Chain diff --git a/packages/chains/src/polygonZkEvmTestnet.ts b/packages/chains/src/polygonZkEvmTestnet.ts index b29b9b5d..f0a15dfb 100644 --- a/packages/chains/src/polygonZkEvmTestnet.ts +++ b/packages/chains/src/polygonZkEvmTestnet.ts @@ -14,10 +14,20 @@ export const polygonZkEvmTestnet = { }, }, blockExplorers: { - default: { + blockscout: { name: 'Blockscout', url: 'https://explorer.public.zkevm-test.net', }, + default: { + name: 'PolygonScan', + url: 'https://testnet-zkevm.polygonscan.com', + }, }, testnet: true, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 525686, + }, + }, } as const satisfies Chain diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7285856a..4003879f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5251,3 +5251,7 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false