File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,15 @@ class TransitionToolInput(CamelModel):
212
212
env : Environment
213
213
214
214
215
+ class TransitionToolCLIInput (CamelModel ):
216
+ """Transition tool CLI input."""
217
+
218
+ alloc : Alloc
219
+ txs : List [Transaction ]
220
+ env : Environment
221
+ blob_schedule : BlobSchedule
222
+
223
+
215
224
class TransitionToolOutput (CamelModel ):
216
225
"""Transition tool output."""
217
226
Original file line number Diff line number Diff line change 28
28
Traces ,
29
29
TransactionReceipt ,
30
30
TransactionTraces ,
31
+ TransitionToolCLIInput ,
31
32
TransitionToolContext ,
32
33
TransitionToolInput ,
33
34
TransitionToolOutput ,
@@ -185,6 +186,15 @@ def to_input(self) -> TransitionToolInput:
185
186
env = self .env ,
186
187
)
187
188
189
+ def to_cli_input (self ) -> TransitionToolCLIInput :
190
+ """Convert the data to a TransitionToolCLIInput object."""
191
+ return TransitionToolCLIInput (
192
+ alloc = self .alloc ,
193
+ txs = self .txs ,
194
+ env = self .env ,
195
+ blob_schedule = self .blob_schedule or BlobSchedule (),
196
+ )
197
+
188
198
def get_request_data (self ) -> TransitionToolRequest :
189
199
"""Convert the data to a TransitionToolRequest object."""
190
200
return TransitionToolRequest (
@@ -211,7 +221,7 @@ def _evaluate_filesystem(
211
221
os .mkdir (os .path .join (temp_dir .name , "input" ))
212
222
os .mkdir (os .path .join (temp_dir .name , "output" ))
213
223
214
- input_contents = t8n_data .to_input ().model_dump (mode = "json" , ** model_dump_config )
224
+ input_contents = t8n_data .to_cli_input ().model_dump (mode = "json" , ** model_dump_config )
215
225
216
226
input_paths = {
217
227
k : os .path .join (temp_dir .name , "input" , f"{ k } .json" ) for k in input_contents .keys ()
@@ -235,6 +245,8 @@ def _evaluate_filesystem(
235
245
input_paths ["env" ],
236
246
"--input.txs" ,
237
247
input_paths ["txs" ],
248
+ "--input.blobSchedule" ,
249
+ input_paths ["blobSchedule" ],
238
250
"--output.basedir" ,
239
251
temp_dir .name ,
240
252
"--output.result" ,
You can’t perform that action at this time.
0 commit comments