Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FunctionCall ¶
type GenesisConfig ¶
type GenesisConfig struct {
Classes []string `json:"classes"` // []path-to-class.json
Contracts map[felt.Felt]GenesisContractData `json:"contracts"` // address -> {classHash, constructorArgs}
FunctionCalls []FunctionCall `json:"function_calls"` // list of functionCalls to Call()
BootstrapAccounts []Account `json:"bootstrap_accounts"` // accounts to prefund with strk token
Txns []rpc.Transaction `json:"transactions"` // Declare NOT supported
}
func Read ¶
func Read(path string) (*GenesisConfig, error)
func (*GenesisConfig) UnmarshalJSON ¶
func (g *GenesisConfig) UnmarshalJSON(data []byte) error
func (*GenesisConfig) Validate ¶
func (g *GenesisConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.