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
17962ca9
Commit
17962ca9
authored
Jun 02, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core-utils: update geth genesis type
Can specify the private key in the json file which is nice for testing
parent
26a47f72
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 @
17962ca9
---
'
@eth-optimism/core-utils'
:
patch
---
Update geth genesis type
packages/core-utils/src/external/geth/geth-types.ts
View file @
17962ca9
...
@@ -7,36 +7,52 @@ export interface State {
...
@@ -7,36 +7,52 @@ export interface State {
[
address
:
string
]:
{
[
address
:
string
]:
{
nonce
:
number
nonce
:
number
balance
:
string
balance
:
string
codeHash
:
string
codeHash
?
:
string
root
:
string
root
?
:
string
code
?:
string
code
?:
string
storage
?:
{
storage
?:
{
[
key
:
string
]:
string
[
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.
* Represents Geth's genesis file format.
*/
*/
export
interface
Genesis
{
export
interface
Genesis
{
config
:
{
config
:
ChainConfig
chainId
:
number
nonce
?:
number
homesteadBlock
:
number
timestamp
?:
number
eip150Block
:
number
eip155Block
:
number
eip158Block
:
number
byzantiumBlock
:
number
constantinopleBlock
:
number
petersburgBlock
:
number
istanbulBlock
:
number
muirGlacierBlock
:
number
clique
:
{
period
:
number
epoch
:
number
}
}
difficulty
:
string
difficulty
:
string
mixHash
?:
string
coinbase
?:
string
gasLimit
:
string
gasLimit
:
string
extraData
:
string
extraData
:
string
alloc
:
State
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