-
-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add : swellchain * fix : formatting * add : chainconfig contracts * Update src/chains/definitions/swellchain.ts Co-authored-by: Fabian Hug <fabian@swellnetwork.io> --------- Co-authored-by: Fabian Hug <fabian@swellnetwork.io>
- Loading branch information
1 parent
2a2239e
commit 6a3e407
Showing
3 changed files
with
34 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 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Add Swellchain |
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,28 @@ | ||
import { chainConfig } from '../../op-stack/chainConfig.js' | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const swellchain = /*#__PURE__*/ defineChain({ | ||
...chainConfig, | ||
id: 1923, | ||
name: 'Swellchain', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://swell-mainnet.alt.technology', 'https://rpc.ankr.com/swell'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Swell Explorer', | ||
url: 'https://explorer.swellnetwork.io', | ||
apiUrl: 'https://explorer.swellnetwork.io/api', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 1, | ||
}, | ||
}, | ||
}) |
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