-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathconfig.go
53 lines (48 loc) · 2.27 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package opinit_bots
type NodeConfig struct {
ChainID string `json:"chain_id"`
Bech32Prefix string `json:"bech32_prefix"`
RPCAddress string `json:"rpc_address"`
}
type ChallengerConfig struct {
Version int `json:"version"`
Server ServerConfig `json:"server"`
L1Node NodeConfig `json:"l1_node"`
L2Node NodeConfig `json:"l2_node"`
L1StartHeight int `json:"l1_start_height"`
L2StartHeight int `json:"l2_start_height"`
DisableAutoSetL1Height bool `json:"disable_auto_set_l1_height"`
}
type NodeSettings struct {
ChainID string `json:"chain_id"`
Bech32Prefix string `json:"bech32_prefix"`
RPCAddress string `json:"rpc_address"`
GasPrice string `json:"gas_price"`
GasAdjustment float64 `json:"gas_adjustment"`
TxTimeout int `json:"tx_timeout"`
}
type ServerConfig struct {
Address string `json:"address"`
AllowOrigins string `json:"allow_origins"`
AllowHeaders string `json:"allow_headers"`
AllowMethods string `json:"allow_methods"`
}
type ExecutorConfig struct {
Version int `json:"version"`
Server ServerConfig `json:"server"`
L1Node NodeSettings `json:"l1_node"`
L2Node NodeSettings `json:"l2_node"`
DANode NodeSettings `json:"da_node"`
BridgeExecutor string `json:"bridge_executor"`
OracleBridgeExecutor string `json:"oracle_bridge_executor"`
DisableOutputSubmitter bool `json:"disable_output_submitter"`
DisableBatchSubmitter bool `json:"disable_batch_submitter"`
MaxChunks int `json:"max_chunks"`
MaxChunkSize int `json:"max_chunk_size"`
MaxSubmissionTime int `json:"max_submission_time"`
DisableAutoSetL1Height bool `json:"disable_auto_set_l1_height"`
L1StartHeight int `json:"l1_start_height"`
L2StartHeight int `json:"l2_start_height"`
BatchStartHeight int `json:"batch_start_height"`
DisableDeleteFutureWithdrawal bool `json:"disable_delete_future_withdrawal"`
}