use byteorder::{ByteOrder, LittleEndian}; use ckb_debugger_api::run; use ckb_mock_tx_types::{MockCellDep, MockInfo, MockInput, MockTransaction}; use ckb_script::ScriptGroupType; use ckb_types::{ bytes::Bytes, core::{Capacity, DepType, ScriptHashType, TransactionBuilder}, packed::{self, Byte32, CellDep, CellInput, CellOutput, OutPoint, Script}, prelude::*, }; use std::fs::File; use std::io::Read; fn read_file(name: &str) -> Bytes { let mut file = File::open(name).unwrap(); let mut buffer = Vec::new(); file.read_to_end(&mut buffer).unwrap(); buffer.into() } fn create_mock_cell_dep(data: Bytes, lock: Option