-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add supersim support to bridge app (#441)
* Adds @eth-optimism/wagmi & @eth-optimism/viem as deps to bridge-app * Adds supersim chain defs for non-fork mode to @eth-optimism/viem * Add support for UI supersim network switching * remove console.log * adds supersim chains as supported to tic tac toe game
- Loading branch information
Showing
7 changed files
with
64 additions
and
8 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
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
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,40 @@ | ||
import { defineChain } from 'viem' | ||
import { mainnet, optimism } from 'viem/chains' | ||
|
||
export const supersimL1 = defineChain({ | ||
...mainnet, | ||
id: 900, | ||
name: 'Supersim L1', | ||
rpcUrls: { | ||
default: { | ||
http: ['http://127.0.0.1:8545'], | ||
}, | ||
}, | ||
testnet: true, | ||
}) | ||
|
||
export const supersimL2A = defineChain({ | ||
...optimism, | ||
id: 901, | ||
name: 'Supersim L2 A', | ||
rpcUrls: { | ||
default: { | ||
http: ['http://127.0.0.1:9545'], | ||
}, | ||
}, | ||
testnet: true, | ||
sourceId: 900, | ||
}) | ||
|
||
export const supersimL2B = defineChain({ | ||
...optimism, | ||
id: 902, | ||
name: 'Supersim L2 B', | ||
rpcUrls: { | ||
default: { | ||
http: ['http://127.0.0.1:9546'], | ||
}, | ||
}, | ||
testnet: true, | ||
sourceId: 900, | ||
}) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.