ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / chains / supersimL2C

supersimL2C

const supersimL2C: object

L2 chain C definition for supersim in non-forked mode

Type declaration

blockExplorers?

optional blockExplorers: object

Collection of block explorers

Index Signature

[key: string]: ChainBlockExplorer

blockExplorers.default

default: ChainBlockExplorer

contracts

contracts: object

Collection of contracts

contracts.create2Deployer

readonly create2Deployer: object

contracts.create2Deployer.address

readonly address: "0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2" = '0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2'

contracts.gasPriceOracle

readonly gasPriceOracle: object

contracts.gasPriceOracle.address

readonly address: "0x420000000000000000000000000000000000000F"

contracts.l1Block

readonly l1Block: object

contracts.l1Block.address

readonly address: "0x4200000000000000000000000000000000000015"

contracts.l2CrossDomainMessenger

readonly l2CrossDomainMessenger: object

contracts.l2CrossDomainMessenger.address

readonly address: "0x4200000000000000000000000000000000000007"

contracts.l2Erc721Bridge

readonly l2Erc721Bridge: object

contracts.l2Erc721Bridge.address

readonly address: "0x4200000000000000000000000000000000000014"

contracts.l2StandardBridge

readonly l2StandardBridge: object

contracts.l2StandardBridge.address

readonly address: "0x4200000000000000000000000000000000000010"

contracts.l2ToL1MessagePasser

readonly l2ToL1MessagePasser: object

contracts.l2ToL1MessagePasser.address

readonly address: "0x4200000000000000000000000000000000000016"

contracts.multicall3

readonly multicall3: object

contracts.multicall3.address

readonly address: "0xca11bde05977b3631167028862be2a173976ca11" = '0xca11bde05977b3631167028862be2a173976ca11'

contracts.optimismMintableERC20Factory

readonly optimismMintableERC20Factory: object

contracts.optimismMintableERC20Factory.address

readonly address: "0x4200000000000000000000000000000000000012" = '0x4200000000000000000000000000000000000012'

contracts.permit2

readonly permit2: object

contracts.permit2.address

readonly address: "0x000000000022D473030F116dDEE9F6B43aC78BA3" = '0x000000000022D473030F116dDEE9F6B43aC78BA3'

contracts.supersimL2CContracts

supersimL2CContracts: object

contracts.supersimL2CContracts.addressManager

readonly addressManager: object

contracts.supersimL2CContracts.addressManager.901

readonly 901: object

contracts.supersimL2CContracts.addressManager.901.address

readonly address: "0x9a36cea6561f9c77e1b7fb5bc34f3eb04f144558" = '0x9a36cea6561f9c77e1b7fb5bc34f3eb04f144558'

contracts.supersimL2CContracts.anchorStateRegistry

readonly anchorStateRegistry: object

contracts.supersimL2CContracts.anchorStateRegistry.901

readonly 901: object

contracts.supersimL2CContracts.anchorStateRegistry.901.address

readonly address: "0x28f326c4bab0c21ba877da21b5287a3f241819b9" = '0x28f326c4bab0c21ba877da21b5287a3f241819b9'

contracts.supersimL2CContracts.delayedWETHPermissionedGame

readonly delayedWETHPermissionedGame: object

contracts.supersimL2CContracts.delayedWETHPermissionedGame.901

readonly 901: object

contracts.supersimL2CContracts.delayedWETHPermissionedGame.901.address

readonly address: "0xbe9b8af2517bf5ba18f6389a0c8a9d0e30c556bb" = '0xbe9b8af2517bf5ba18f6389a0c8a9d0e30c556bb'

contracts.supersimL2CContracts.disputeGameFactory

readonly disputeGameFactory: object

contracts.supersimL2CContracts.disputeGameFactory.901

readonly 901: object

contracts.supersimL2CContracts.disputeGameFactory.901.address

readonly address: "0x796768d6f0a25636cda7fa244b6c194ff70414f3" = '0x796768d6f0a25636cda7fa244b6c194ff70414f3'

contracts.supersimL2CContracts.l1CrossDomainMessenger

readonly l1CrossDomainMessenger: object

contracts.supersimL2CContracts.l1CrossDomainMessenger.901

readonly 901: object

contracts.supersimL2CContracts.l1CrossDomainMessenger.901.address

readonly address: "0x5741bf82900aca6232d46b52cf78b1c1b3eb87b8" = '0x5741bf82900aca6232d46b52cf78b1c1b3eb87b8'

contracts.supersimL2CContracts.l1Erc721Bridge

readonly l1Erc721Bridge: object

contracts.supersimL2CContracts.l1Erc721Bridge.901

readonly 901: object

contracts.supersimL2CContracts.l1Erc721Bridge.901.address

readonly address: "0x2afefa54002024cd9d798c0e25f6a957e9a84d9a" = '0x2afefa54002024cd9d798c0e25f6a957e9a84d9a'

contracts.supersimL2CContracts.l1StandardBridge

readonly l1StandardBridge: object

contracts.supersimL2CContracts.l1StandardBridge.901

readonly 901: object

contracts.supersimL2CContracts.l1StandardBridge.901.address

readonly address: "0x24729345269eaa41713671bdd32484ae7d69069b" = '0x24729345269eaa41713671bdd32484ae7d69069b'

contracts.supersimL2CContracts.opChainProxyAdmin

readonly opChainProxyAdmin: object

contracts.supersimL2CContracts.opChainProxyAdmin.901

readonly 901: object

contracts.supersimL2CContracts.opChainProxyAdmin.901.address

readonly address: "0x7b4d50210451097f4fa1e6762044aee5ec163419" = '0x7b4d50210451097f4fa1e6762044aee5ec163419'

contracts.supersimL2CContracts.optimismMintableErc20Factory

readonly optimismMintableErc20Factory: object

contracts.supersimL2CContracts.optimismMintableErc20Factory.901

readonly 901: object

contracts.supersimL2CContracts.optimismMintableErc20Factory.901.address

readonly address: "0x5b68a53ec6eed8762d9b37633b2af6b9cb0b4b00" = '0x5b68a53ec6eed8762d9b37633b2af6b9cb0b4b00'

contracts.supersimL2CContracts.permissionedDisputeGame

readonly permissionedDisputeGame: object

contracts.supersimL2CContracts.permissionedDisputeGame.901

readonly 901: object

contracts.supersimL2CContracts.permissionedDisputeGame.901.address

readonly address: "0x2ec0f1bcfaf82ebabbd09475eaaa02ebe8dd92a8" = '0x2ec0f1bcfaf82ebabbd09475eaaa02ebe8dd92a8'

contracts.supersimL2CContracts.portal

readonly portal: object

contracts.supersimL2CContracts.portal.901

readonly 901: object

contracts.supersimL2CContracts.portal.901.address

readonly address: "0xd5d24833d21f039a97e7f67c8c681f2ec3ad3858" = '0xd5d24833d21f039a97e7f67c8c681f2ec3ad3858'

contracts.supersimL2CContracts.systemConfig

readonly systemConfig: object

contracts.supersimL2CContracts.systemConfig.901

readonly 901: object

contracts.supersimL2CContracts.systemConfig.901.address

readonly address: "0xffdbf5ee3fc2f4f2c74078f5f3d8971b9f925538" = '0xffdbf5ee3fc2f4f2c74078f5f3d8971b9f925538'

contracts.supersimL2CContracts.uniV4PoolManager

readonly uniV4PoolManager: object

contracts.supersimL2CContracts.uniV4PoolManager.address

readonly address: "0xa1caFe2C10007B3f230B180549AF68F98F9da161" = '0xa1caFe2C10007B3f230B180549AF68F98F9da161'

contracts.supersimL2CContracts.uniV4Posm

readonly uniV4Posm: object

contracts.supersimL2CContracts.uniV4Posm.address

readonly address: "0xA879cbA8E7927E3486C003455824726fB06B505B" = '0xA879cbA8E7927E3486C003455824726fB06B505B'

contracts.supersimL2CContracts.uniV4Router

readonly uniV4Router: object

contracts.supersimL2CContracts.uniV4Router.address

readonly address: "0x08654d9B5314c439237e339858ebCF9bC0061ccB" = '0x08654d9B5314c439237e339858ebCF9bC0061ccB'

contracts.supersimL2CContracts.uniV4StateView

readonly uniV4StateView: object

contracts.supersimL2CContracts.uniV4StateView.address

readonly address: "0x98FD43d306458eC292944337909cd26B08b78257" = '0x98FD43d306458eC292944337909cd26B08b78257'

contracts.weth

readonly weth: object

contracts.weth.address

readonly address: "0x4200000000000000000000000000000000000006" = '0x4200000000000000000000000000000000000006'

custom?

optional custom: Record<string, unknown>

Custom chain data.

fees?

optional fees: ChainFees<undefined>

Modifies how fees are derived.

formatters

readonly formatters: object

Modifies how data is formatted and typed (e.g. blocks and transactions)

formatters.block

readonly block: object

formatters.block.exclude

exclude: undefined | []

formatters.block.format()

format: (args) => object

Parameters

args: OpStackRpcBlock<BlockTag, boolean>

Returns

object

baseFeePerGas

baseFeePerGas: null | bigint

blobGasUsed

blobGasUsed: bigint

difficulty

difficulty: bigint

excessBlobGas

excessBlobGas: bigint

extraData

extraData: `0x${string}`

gasLimit

gasLimit: bigint

gasUsed

gasUsed: bigint

hash

hash: null | `0x${string}`

logsBloom

logsBloom: null | `0x${string}`

miner

miner: `0x${string}`

mixHash

mixHash: `0x${string}`

nonce

nonce: null | `0x${string}`

number

number: null | bigint

parentHash

parentHash: `0x${string}`

receiptsRoot

receiptsRoot: `0x${string}`

sealFields

sealFields: `0x${string}`[]

sha3Uncles

sha3Uncles: `0x${string}`

size

size: bigint

stateRoot

stateRoot: `0x${string}`

timestamp

timestamp: bigint

totalDifficulty

totalDifficulty: null | bigint

transactions

transactions: `0x${string}`[] | OpStackTransaction<boolean>[]

transactionsRoot

transactionsRoot: `0x${string}`

uncles

uncles: `0x${string}`[]

withdrawals?

optional withdrawals: Withdrawal[]

withdrawalsRoot?

optional withdrawalsRoot: `0x${string}`

formatters.block.type

type: "block"

formatters.transaction

readonly transaction: object

formatters.transaction.exclude

exclude: undefined | []

formatters.transaction.format()

format: (args) => object | object | object | object | object

Parameters

args: OpStackRpcTransaction<boolean>

Returns

object | object | object | object | object

formatters.transaction.type

type: "transaction"

formatters.transactionReceipt

readonly transactionReceipt: object

formatters.transactionReceipt.exclude

exclude: undefined | []

formatters.transactionReceipt.format()

format: (args) => object

Parameters

args: OpStackRpcTransactionReceipt

Returns

object

blobGasPrice?

optional blobGasPrice: bigint

blobGasUsed?

optional blobGasUsed: bigint

blockHash

blockHash: `0x${string}`

blockNumber

blockNumber: bigint

contractAddress

contractAddress: undefined | null | `0x${string}`

cumulativeGasUsed

cumulativeGasUsed: bigint

effectiveGasPrice

effectiveGasPrice: bigint

from

from: `0x${string}`

gasUsed

gasUsed: bigint

l1Fee

l1Fee: null | bigint

l1FeeScalar

l1FeeScalar: null | number

l1GasPrice

l1GasPrice: null | bigint

l1GasUsed

l1GasUsed: null | bigint

logs

logs: Log<bigint, number, false, undefined, undefined, undefined, undefined>[]

logsBloom

logsBloom: `0x${string}`

root?

optional root: `0x${string}`

status

status: "success" | "reverted"

to

to: null | `0x${string}`

transactionHash

transactionHash: `0x${string}`

transactionIndex

transactionIndex: number

type

type: TransactionType

formatters.transactionReceipt.type

type: "transactionReceipt"

id

id: 903

ID in number form

name

name: "Supersim L2 C"

Human-readable name

nativeCurrency

nativeCurrency: object

Currency used by chain

nativeCurrency.decimals

readonly decimals: 18 = 18

nativeCurrency.name

readonly name: "Ether" = 'Ether'

nativeCurrency.symbol

readonly symbol: "ETH" = 'ETH'

rpcUrls

rpcUrls: object

Collection of RPC endpoints

rpcUrls.default

readonly default: object

rpcUrls.default.http

readonly http: readonly ["http://127.0.0.1:9547"]

serializers

readonly serializers: object

Modifies how data is serialized (e.g. transactions).

serializers.transaction()

readonly transaction: (transaction, signature?) => `0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`

Parameters

transaction: OpStackTransactionSerializable

signature?: Signature

Returns

`0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`

sourceId

sourceId: 900

Source Chain ID (ie. the L1 chain)

testnet

testnet: true

Flag for test networks

Defined in

packages/viem/src/chains/supersim.ts:87