@@ -17,10 +17,11 @@ var (
17
17
DeprecatedEthConfirmationDepthFlagName = withDeprecatedFlagPrefix ("eth-confirmation-depth" )
18
18
19
19
// kzg flags
20
- DeprecatedG1PathFlagName = withDeprecatedFlagPrefix ("g1-path" )
21
- DeprecatedG2TauFlagName = withDeprecatedFlagPrefix ("g2-tau-path" )
22
- DeprecatedCachePathFlagName = withDeprecatedFlagPrefix ("cache-path" )
23
- DeprecatedMaxBlobLengthFlagName = withDeprecatedFlagPrefix ("max-blob-length" )
20
+ DeprecatedG1PathFlagName = withDeprecatedFlagPrefix ("g1-path" )
21
+ DeprecatedG2TauFlagName = withDeprecatedFlagPrefix ("g2-tau-path" )
22
+ DeprecatedCachePathFlagName = withDeprecatedFlagPrefix ("cache-path" )
23
+ DeprecatedMaxBlobLengthFlagName = withDeprecatedFlagPrefix ("max-blob-length" )
24
+ DeprecatedG2PowerOf2PathFlagName = withDeprecatedFlagPrefix ("g2-power-of-2-path" )
24
25
)
25
26
26
27
func withDeprecatedFlagPrefix (s string ) string {
@@ -40,7 +41,8 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
40
41
Usage : "JSON RPC node endpoint for the Ethereum network used for finalizing DA blobs. See available list here: https://docs.eigenlayer.xyz/eigenda/networks/" ,
41
42
EnvVars : []string {withDeprecatedEnvPrefix (envPrefix , "ETH_RPC" )},
42
43
Action : func (_ * cli.Context , _ string ) error {
43
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
44
+ return fmt .Errorf (
45
+ "flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
44
46
DeprecatedEthRPCFlagName , withDeprecatedEnvPrefix (envPrefix , "ETH_RPC" ),
45
47
eigendaflags .EthRPCURLFlagName , withEnvPrefix (envPrefix , "ETH_RPC" ))
46
48
},
@@ -51,7 +53,8 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
51
53
Usage : "The deployed EigenDA service manager address. The list can be found here: https://github.com/Layr-Labs/eigenlayer-middleware/?tab=readme-ov-file#current-mainnet-deployment" ,
52
54
EnvVars : []string {withDeprecatedEnvPrefix (envPrefix , "SERVICE_MANAGER_ADDR" )},
53
55
Action : func (_ * cli.Context , _ string ) error {
54
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
56
+ return fmt .Errorf (
57
+ "flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
55
58
DeprecatedSvcManagerAddrFlagName , withDeprecatedEnvPrefix (envPrefix , "SERVICE_MANAGER_ADDR" ),
56
59
eigendaflags .SvcManagerAddrFlagName , withEnvPrefix (envPrefix , "SERVICE_MANAGER_ADDR" ))
57
60
},
@@ -83,7 +86,8 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
83
86
// of the container
84
87
Value : "resources/g1.point" ,
85
88
Action : func (_ * cli.Context , _ string ) error {
86
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
89
+ return fmt .Errorf (
90
+ "flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
87
91
DeprecatedG1PathFlagName , withDeprecatedEnvPrefix (envPrefix , "TARGET_KZG_G1_PATH" ),
88
92
G1PathFlagName , withEnvPrefix (envPrefix , "TARGET_KZG_G1_PATH" ))
89
93
},
@@ -98,9 +102,9 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
98
102
// of the container
99
103
Value : "resources/g2.point.powerOf2" ,
100
104
Action : func (_ * cli.Context , _ string ) error {
101
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
102
- DeprecatedG2TauFlagName , withDeprecatedEnvPrefix ( envPrefix , "TARGET_G2_TAU_PATH" ) ,
103
- G2PowerOf2PathFlagName , withEnvPrefix (envPrefix , "TARGET_KZG_G2_POWER_OF_2_PATH " ))
105
+ return fmt .Errorf (
106
+ "flag --%s (env var %s) is deprecated" ,
107
+ DeprecatedG2TauFlagName , withDeprecatedEnvPrefix (envPrefix , "TARGET_G2_TAU_PATH " ))
104
108
},
105
109
Category : category ,
106
110
},
@@ -113,7 +117,8 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
113
117
// of the container
114
118
Value : "resources/SRSTables/" ,
115
119
Action : func (_ * cli.Context , _ string ) error {
116
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
120
+ return fmt .Errorf (
121
+ "flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
117
122
DeprecatedCachePathFlagName , withDeprecatedEnvPrefix (envPrefix , "TARGET_CACHE_PATH" ),
118
123
CachePathFlagName , withEnvPrefix (envPrefix , "TARGET_CACHE_PATH" ))
119
124
},
@@ -126,13 +131,27 @@ func DeprecatedCLIFlags(envPrefix, category string) []cli.Flag {
126
131
EnvVars : []string {withDeprecatedEnvPrefix (envPrefix , "MAX_BLOB_LENGTH" )},
127
132
Value : "16MiB" ,
128
133
Action : func (_ * cli.Context , _ string ) error {
129
- return fmt .Errorf ("flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
134
+ return fmt .Errorf (
135
+ "flag --%s (env var %s) is deprecated, use --%s (env var %s) instead" ,
130
136
DeprecatedMaxBlobLengthFlagName , withDeprecatedEnvPrefix (envPrefix , "MAX_BLOB_LENGTH" ),
131
137
MaxBlobLengthFlagName , withEnvPrefix (envPrefix , "MAX_BLOB_LENGTH" ))
132
138
},
133
139
// we also use this flag for memstore.
134
140
// should we duplicate the flag? Or is there a better way to handle this?
135
141
Category : category ,
136
142
},
143
+ & cli.StringFlag {
144
+ Name : DeprecatedG2PowerOf2PathFlagName ,
145
+ Usage : "path to g2.point.powerOf2 file." ,
146
+ EnvVars : []string {withDeprecatedEnvPrefix (envPrefix , "TARGET_KZG_G2_POWER_OF_2_PATH" )},
147
+ Value : "" ,
148
+ Action : func (_ * cli.Context , _ string ) error {
149
+ return fmt .Errorf (
150
+ "flag --%s (env var %s) is deprecated" ,
151
+ DeprecatedG2PowerOf2PathFlagName ,
152
+ withDeprecatedEnvPrefix (envPrefix , "TARGET_KZG_G2_POWER_OF_2_PATH" ))
153
+ },
154
+ Category : category ,
155
+ },
137
156
}
138
157
}
0 commit comments