Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom authored Jul 6, 2023
2 parents e4ac68d + 0a6e6da commit 6fe1a34
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-moose-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added Mantle and Mantle Testnet chains
5 changes: 5 additions & 0 deletions .changeset/cold-ravens-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": major
---

Fixed canto rpc and blockexplorer
5 changes: 5 additions & 0 deletions .changeset/slimy-flowers-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": patch
---

added nexilix chain
5 changes: 5 additions & 0 deletions .changeset/yellow-shirts-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Add multicall3 to Polygon zkEVM
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const { chains, provider } = configureChains(
- `iotexTestnet`
- `localhost`
- `mainnet`
- `mantle`
- `mantleTestnet`
- `metis`
- `metisGoerli`
- `moonbaseAlpha`
Expand Down
8 changes: 4 additions & 4 deletions packages/chains/src/canto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 3 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ 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'
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'
Expand Down
26 changes: 26 additions & 0 deletions packages/chains/src/mantle.ts
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions packages/chains/src/mantleTestnet.ts
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions packages/chains/src/nexilix.ts
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions packages/chains/src/polygonZkEvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ export const polygonZkEvm = {
url: 'https://zkevm.polygonscan.com',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 57746,
},
},
} as const satisfies Chain
12 changes: 11 additions & 1 deletion packages/chains/src/polygonZkEvmTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6fe1a34

Please sign in to comment.