Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenesisStateDiff ¶
func GenesisStateDiff( ctx context.Context, config *GenesisConfig, v vm.VM, network *networks.Network, maxSteps uint64, maxGas uint64, useNewState bool, compiler compiler.Compiler, ) (core.StateDiff, map[felt.ClassHash]core.ClassDefinition, error)
GenesisStateDiff builds the genesis state given the genesis-config data.
Types ¶
type FunctionCall ¶
type GenesisConfig ¶
type GenesisConfig struct {
Classes []string `json:"classes"`
Contracts map[felt.Address]GenesisContractData `json:"contracts"`
FunctionCalls []FunctionCall `json:"function_calls"`
BootstrapAccounts []Account `json:"bootstrap_accounts"`
Txns []rpc.Transaction `json:"transactions"`
}
func Read ¶
func Read(path string) (*GenesisConfig, error)
func (*GenesisConfig) UnmarshalJSON ¶
func (g *GenesisConfig) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.