-
-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Shape chain * add explorer, update rpc * remove explorer for now * remove contracts * add contracts and explorer * add to op-stack, format * add l2OutputOracle * add portal and l1StandardBridge * update explorer * Update itchy-flowers-attack.md --------- Co-authored-by: jxom <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 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 | ||
--- | ||
|
||
Added Shape 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,49 @@ | ||
import { chainConfig } from '../../op-stack/chainConfig.js' | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
const sourceId = 1 // mainnet | ||
|
||
export const shape = /*#__PURE__*/ defineChain({ | ||
...chainConfig, | ||
id: 360, | ||
name: 'Shape', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://mainnet.shape.network'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'shapescan', | ||
url: 'https://shapescan.xyz', | ||
apiUrl: 'https://shapescan.xyz/api', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
l2OutputOracle: { | ||
[sourceId]: { | ||
address: '0x6Ef8c69CfE4635d866e3E02732068022c06e724D', | ||
blockCreated: 20369940, | ||
}, | ||
}, | ||
multicall3: { | ||
address: '0xca11bde05977b3631167028862be2a173976ca11', | ||
blockCreated: 1, | ||
}, | ||
portal: { | ||
[sourceId]: { | ||
address: '0xEB06fFa16011B5628BaB98E29776361c83741dd3', | ||
blockCreated: 20369933, | ||
}, | ||
}, | ||
l1StandardBridge: { | ||
[sourceId]: { | ||
address: '0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B', | ||
blockCreated: 20369935, | ||
}, | ||
}, | ||
}, | ||
sourceId, | ||
}) |
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