This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chains): add moonbeam, moonriver and moonbaseAlpha (#104)
* Add moonbeam, moonriver and moonbaseAlpha chains * Update shiny-weeks-marry.md * Update moonbaseAlpha.ts * Update moonbeam.ts * Update moonriver.ts * Update moonbeam.ts * Update moonbaseAlpha.ts * Update moonriver.ts --------- Co-authored-by: jxom <jakemoxey@gmail.com>
- Loading branch information
1 parent
5d121f2
commit 51a5c32
Showing
6 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@wagmi/chains': patch | ||
--- | ||
|
||
Added Moonbeam, Moonriver, & Moonbase Alpha chains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Chain } from './types' | ||
|
||
export const moonbaseAlpha = { | ||
id: 1287, | ||
name: 'Moonbase Alpha', | ||
network: 'moonbase-alpha', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'DEV', | ||
symbol: 'DEV', | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://rpc.api.moonbase.moonbeam.network'], | ||
webSocket: ['wss://wss.api.moonbase.moonbeam.network'], | ||
}, | ||
public: { | ||
http: ['https://rpc.api.moonbase.moonbeam.network'], | ||
webSocket: ['wss://wss.api.moonbase.moonbeam.network'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Moonscan', | ||
url: 'https://moonbase.moonscan.io', | ||
}, | ||
etherscan: { | ||
name: 'Moonscan', | ||
url: 'https://moonbase.moonscan.io', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 1850686, | ||
}, | ||
}, | ||
testnet: true, | ||
} as const satisfies Chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Chain } from './types' | ||
|
||
export const moonbeam = { | ||
id: 1284, | ||
name: 'Moonbeam', | ||
network: 'moonbeam', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'GLMR', | ||
symbol: 'GLMR', | ||
}, | ||
rpcUrls: { | ||
public: { | ||
http: ['https://moonbeam.public.blastapi.io'], | ||
webSocket: ['wss://moonbeam.public.blastapi.io'], | ||
}, | ||
default: { | ||
http: ['https://moonbeam.public.blastapi.io'], | ||
webSocket: ['wss://moonbeam.public.blastapi.io'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Moonscan', | ||
url: 'https://moonscan.io', | ||
}, | ||
etherscan: { | ||
name: 'Moonscan', | ||
url: 'https://moonscan.io', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 609002, | ||
}, | ||
}, | ||
testnet: false, | ||
} as const satisfies Chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Chain } from './types' | ||
|
||
export const moonriver = { | ||
id: 1285, | ||
name: 'Moonriver', | ||
network: 'moonriver', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'MOVR', | ||
symbol: 'MOVR', | ||
}, | ||
rpcUrls: { | ||
public: { | ||
http: ['https://moonriver.public.blastapi.io'], | ||
webSocket: ['wss://moonriver.public.blastapi.io'], | ||
}, | ||
default: { | ||
http: ['https://moonriver.public.blastapi.io'], | ||
webSocket: ['wss://moonriver.public.blastapi.io'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Moonscan', | ||
url: 'https://moonriver.moonscan.io', | ||
}, | ||
etherscan: { | ||
name: 'Moonscan', | ||
url: 'https://moonriver.moonscan.io', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 1597904, | ||
}, | ||
}, | ||
testnet: false, | ||
} as const satisfies Chain |