Skip to content

Commit

Permalink
address most comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Dec 8, 2023
1 parent 09f7f6c commit a0ee47e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions blockbuilder/genesisState.go → blockbuilder/genesis_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,17 @@ import (
)

type GenesisConfig struct {
ChainID string `json:"chain_id" validate:"required"`
WhitelistedSequencerSet []felt.Felt `json:"whitelisted_sequencer_set"`
State genesisStateData `json:"state"`
}

type genesisStateData struct {
ChainID string `json:"chain_id" validate:"required"`
Classes []string `json:"classes"` // []path-to-class.json
Contracts map[felt.Felt]genesisContractData `json:"contracts"`
FunctionCalls []functionCall `json:"function_calls"`
FunctionCalls []FunctionCall `json:"function_calls"`
}

type genesisContractData struct {
ClassHash felt.Felt `json:"class_hash"`
ConstructorArgs []felt.Felt `json:"constructor_args"`
}
type functionCall struct {
type FunctionCall struct {
ContractAddress felt.Felt `json:"contract_address"`
EntryPointSelector felt.Felt `json:"entry_point_selector"`
Calldata []felt.Felt `json:"calldata"`
Expand Down

0 comments on commit a0ee47e

Please sign in to comment.