Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromFile ¶
Types ¶
type BigInt ¶ added in v0.0.12
BigInt handles both numeric and string JSON encodings for balances.
func (BigInt) MarshalJSON ¶ added in v0.0.12
func (*BigInt) UnmarshalJSON ¶ added in v0.0.12
type GenesisAccount ¶ added in v0.0.12
type GenesisAccount struct {
ContractName string `json:"contractName,omitempty"`
AccountName string `json:"accountName,omitempty"`
Balance BigInt `json:"balance"`
Nonce uint64 `json:"nonce,string"`
Address common.Address `json:"address"`
Bytecode string `json:"bytecode,omitempty"`
Storage map[common.Hash]common.Hash `json:"storage,omitempty"`
}
GenesisAccount represents a single account or contract entry within the genesis array.
type GenesisAllocs ¶ added in v0.0.12
type GenesisAllocs struct {
Root common.Hash `json:"root"`
Genesis []GenesisAccount `json:"genesis"`
}
GenesisAllocs represents the full genesis JSON structure.
func LoadGenesisAllocs ¶
func LoadGenesisAllocs(baseDir, genesisPath string) (*GenesisAllocs, error)
LoadGenesisAllocs loads the genessis allocations from the provided baseDir followed by the relative path of the genesis allocs file
type RPCs ¶
func Load ¶
func Load(l1Network, rmAlias, rAlias, baseDir string) (*RPCs, *rollupmanager.RollupManager, *rollup.RollupMetadata, error)
Load RPCs configuration, rollup manager metadata and rollup metadata
Click to show internal directories.
Click to hide internal directories.