Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
31727208
Unverified
Commit
31727208
authored
Jun 02, 2022
by
Mark Tyneway
Committed by
GitHub
Jun 02, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2661 from ethereum-optimism/fix/geth-types
core-utils: update geth genesis type
parents
1aca58c4
5ecdd804
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
18 deletions
+39
-18
shy-panthers-hear.md
.changeset/shy-panthers-hear.md
+5
-0
geth-types.ts
packages/core-utils/src/external/geth/geth-types.ts
+34
-18
No files found.
.changeset/shy-panthers-hear.md
0 → 100644
View file @
31727208
---
'
@eth-optimism/core-utils'
:
patch
---
Update geth genesis type
packages/core-utils/src/external/geth/geth-types.ts
View file @
31727208
...
...
@@ -7,36 +7,52 @@ export interface State {
[
address
:
string
]:
{
nonce
:
number
balance
:
string
codeHash
:
string
root
:
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
eip155Block
:
number
eip158Block
:
number
byzantiumBlock
:
number
constantinopleBlock
:
number
petersburgBlock
:
number
istanbulBlock
:
number
muirGlacierBlock
:
number
berlinBlock
:
number
londonBlock
?:
number
arrowGlacierBlock
?:
number
mergeForkBlock
?:
number
terminalTotalDifficulty
?:
number
clique
?:
{
period
:
number
epoch
:
number
}
ethash
?:
{}
}
/**
* Represents Geth's genesis file format.
*/
export
interface
Genesis
{
config
:
{
chainId
:
number
homesteadBlock
:
number
eip150Block
:
number
eip155Block
:
number
eip158Block
:
number
byzantiumBlock
:
number
constantinopleBlock
:
number
petersburgBlock
:
number
istanbulBlock
:
number
muirGlacierBlock
:
number
clique
:
{
period
:
number
epoch
:
number
}
}
config
:
ChainConfig
nonce
?:
number
timestamp
?:
number
difficulty
:
string
mixHash
?:
string
coinbase
?:
string
gasLimit
:
string
extraData
:
string
alloc
:
State
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment