-
-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add redstone/garnet chains (#2713)
* feat: redstone/garnet chains * Update src/chains/definitions/garnet.ts * export garnet * chore: up * Create soft-boxes-reply.md --------- Co-authored-by: jxom <[email protected]>
- Loading branch information
Showing
4 changed files
with
91 additions
and
7 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,6 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added Garnet chain. | ||
Updated Redstone 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 = 17000 // Holesky testnet | ||
|
||
export const garnet = defineChain({ | ||
...chainConfig, | ||
name: 'Garnet Testnet', | ||
testnet: true, | ||
id: 17069, | ||
sourceId, | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://rpc.garnetchain.com'], | ||
webSocket: ['wss://rpc.garnetchain.com'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Blockscout', | ||
url: 'https://explorer.garnetchain.com', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
multicall3: { | ||
address: '0xca11bde05977b3631167028862be2a173976ca11', | ||
}, | ||
portal: { | ||
[sourceId]: { | ||
address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909', | ||
blockCreated: 1274684, | ||
}, | ||
}, | ||
l2OutputOracle: { | ||
[sourceId]: { | ||
address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B', | ||
blockCreated: 1274684, | ||
}, | ||
}, | ||
l1StandardBridge: { | ||
[sourceId]: { | ||
address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE', | ||
blockCreated: 1274684, | ||
}, | ||
}, | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,20 +1,48 @@ | ||
import { chainConfig } from '../../op-stack/chainConfig.js' | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
const sourceId = 1 // Ethereum mainnet | ||
|
||
export const redstone = defineChain({ | ||
id: 690, | ||
...chainConfig, | ||
name: 'Redstone', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'Ether', | ||
symbol: 'ETH', | ||
}, | ||
id: 690, | ||
sourceId, | ||
nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://rpc.redstonechain.com'], | ||
webSocket: ['wss://rpc.redstonechain.com'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { name: 'Explorer', url: ' https://explorer.redstone.xyz' }, | ||
default: { | ||
name: 'Blockscout', | ||
url: 'https://explorer.redstone.xyz', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
multicall3: { | ||
address: '0xca11bde05977b3631167028862be2a173976ca11', | ||
}, | ||
portal: { | ||
[sourceId]: { | ||
address: '0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae', | ||
blockCreated: 19578329, | ||
}, | ||
}, | ||
l2OutputOracle: { | ||
[sourceId]: { | ||
address: '0xa426A052f657AEEefc298b3B5c35a470e4739d69', | ||
blockCreated: 19578337, | ||
}, | ||
}, | ||
l1StandardBridge: { | ||
[sourceId]: { | ||
address: '0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69', | ||
blockCreated: 19578331, | ||
}, | ||
}, | ||
}, | ||
}) |
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