Commit 210b2c81 authored by Mark Tyneway's avatar Mark Tyneway

core-utils: delete unmaintained geth types

These geth types are legacy code and not being updated along
with the definitions of the geth types. They were used in
old regenesis events. They are not used elsewhere in the monorepo,
keeping them around only adds tech debt.
parent 4e0e1730
---
'@eth-optimism/core-utils': minor
---
Delete unmaintained geth types
// Types explicitly related to dealing with Geth.
/**
* Represents the Ethereum state, in the format that Geth expects it.
*/
export interface State {
[address: string]: {
nonce?: string
balance?: string
codeHash?: string
root?: string
code?: string
storage?: {
[key: string]: string
}
secretKey?: string
}
}
/**
* Represents Geth's ChainConfig
*/
export interface ChainConfig {
chainId: number
homesteadBlock: number
eip150Block: number
eip150Hash?: string
eip155Block: number
eip158Block: number
byzantiumBlock: number
constantinopleBlock: number
petersburgBlock: number
istanbulBlock: number
muirGlacierBlock: number
berlinBlock: number
londonBlock?: number
arrowGlacierBlock?: number
grayGlacierBlock?: number
mergeNetsplitBlock?: number
terminalTotalDifficulty?: number
clique?: {
period: number
epoch: number
}
ethash?: {}
}
/**
* Represents Geth's genesis file format.
*/
export interface Genesis {
config: ChainConfig
nonce?: string
timestamp?: string
difficulty: string
mixHash?: string
coinbase?: string
number?: string
gasLimit: string
gasUsed?: string
parentHash?: string
extraData: string
baseFeePerGas?: string
alloc: State
}
/**
* Represents the chain config for an Optimism chain
*/
export interface OptimismChainConfig extends ChainConfig {
optimism: {
baseFeeRecipient: string
l1FeeRecipient: string
}
}
/**
* Represents the Genesis file format for an Optimism chain
*/
export interface OptimismGenesis extends Genesis {
config: OptimismChainConfig
}
/**
* Utilities related to go-ethereum (Geth)
*/
export * from './geth-types'
...@@ -4,4 +4,3 @@ ...@@ -4,4 +4,3 @@
export * from './bcfg' export * from './bcfg'
export * from './ethers' export * from './ethers'
export * from './geth'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment