Skip to content

Commit

Permalink
feat: updated Soneium Minato as one of the OP stack chains (#2799)
Browse files Browse the repository at this point in the history
* feat: updated Soneium Minato as one of the OP stack chains

* feat: updated chains.ts

* fix: revert pnpm-lock.yaml

* fix: refactoring

* Update soneiumMinato.ts

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
impelcrypto and jxom authored Oct 1, 2024
1 parent 08da9bd commit 5b50774
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-plums-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated Soneium Minato Testnet
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site/pages/op-stack/chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
optimism, // [!code hl]
optimismGoerli, // [!code hl]
optimismSepolia, // [!code hl]
soneiumMinato, // [!code hl]
zora, // [!code hl]
zoraSepolia, // [!code hl]
zoraTestnet, // [!code hl]
Expand Down
38 changes: 33 additions & 5 deletions src/chains/definitions/soneiumMinato.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,54 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

export const soneiumMinato = defineChain({
const sourceId = 11_155_111 // sepolia

export const soneiumMinato = /*#__PURE__*/ defineChain({
...chainConfig,
id: 1946,
name: 'Soneium Minato',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
name: 'Soneium Minato Testnet',
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.minato.soneium.org'],
},
},
blockExplorers: {
default: {
name: 'Minato Explorer',
name: 'Blockscout',
url: 'https://explorer-testnet.soneium.org',
apiUrl: 'https://explorer-testnet.soneium.org/api/',
apiUrl: 'https://explorer-testnet.soneium.org/api',
},
},
contracts: {
...chainConfig.contracts,
disputeGameFactory: {
[sourceId]: {
address: '0xF69dB6cA559C52d9A4BB6e2B2901f490Ca35Fbf6',
},
},
l2OutputOracle: {
[sourceId]: {
address: '0x710e5286C746eC38beeB7538d0146f60D27be343',
},
},
portal: {
[sourceId]: {
address: '0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3',
blockCreated: 6466136,
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2',
blockCreated: 6466136,
},
},
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 1,
},
},
testnet: true,
sourceId,
})
1 change: 1 addition & 0 deletions src/op-stack/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export { pgnTestnet } from '../chains/definitions/pgnTestnet.js'
export { shape } from '../chains/definitions/shape.js'
export { snax } from '../chains/definitions/snax.js'
export { snaxTestnet } from '../chains/definitions/snaxTestnet.js'
export { soneiumMinato } from '../chains/definitions/soneiumMinato.js'
export { zora } from '../chains/definitions/zora.js'
export { zoraSepolia } from '../chains/definitions/zoraSepolia.js'
export { zoraTestnet } from '../chains/definitions/zoraTestnet.js'

0 comments on commit 5b50774

Please sign in to comment.