[INFO] fetching crate ckb-system-scripts 0.3.2-alpha.4+chain-root... [INFO] checking ckb-system-scripts-0.3.2-alpha.4+chain-root against try#ea663bba38739867a4b75ac820991b4f5d093c3b for pr-62262-1 [INFO] extracting crate ckb-system-scripts 0.3.2-alpha.4+chain-root into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate ckb-system-scripts 0.3.2-alpha.4+chain-root on toolchain ea663bba38739867a4b75ac820991b4f5d093c3b [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate ckb-system-scripts 0.3.2-alpha.4+chain-root [INFO] finished tweaking crates.io crate ckb-system-scripts 0.3.2-alpha.4+chain-root [INFO] tweaked toml for crates.io crate ckb-system-scripts 0.3.2-alpha.4+chain-root written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 67bca52385fc56aced73388fbc5060159f2c700c3b39a11370a2c148ede30e6d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "67bca52385fc56aced73388fbc5060159f2c700c3b39a11370a2c148ede30e6d"` [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling faster-hex v0.3.1 [INFO] [stderr] Compiling blake2b-rs v0.1.5 [INFO] [stderr] Compiling secp256k1 v0.15.5 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking flate2 v1.0.12 [INFO] [stderr] Checking ripemd160 v0.8.0 [INFO] [stderr] Compiling miniz_oxide v0.3.3 [INFO] [stderr] Checking includedir v0.5.0 [INFO] [stderr] Compiling includedir_codegen v0.5.0 [INFO] [stderr] Compiling ckb-system-scripts v0.3.2-alpha.4+chain-root (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_types` [INFO] [stderr] --> src/tests/dao.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_types` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_types` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_types` [INFO] [stderr] --> src/tests/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_crypto` [INFO] [stderr] --> src/tests/dao.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use ckb_crypto::secp::{Generator, Privkey}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_crypto` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `super::sign_tx`, `super::DummyDataLoader`, `super::DAO_BIN`, `super::MAX_CYCLES`, `super::SECP256K1_DATA_BIN`, `super::SIGHASH_ALL_BIN`, `ckb_crypto::secp::Generator`, `ckb_crypto::secp::Privkey`, `ckb_dao_utils` [INFO] [stderr] --> src/tests/dao.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use super::{sign_tx, DummyDataLoader, DAO_BIN, MAX_CYCLES, SECP256K1_DATA_BIN, SIGHASH_ALL_BIN}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 2 | use byteorder::{ByteOrder, LittleEndian}; [INFO] [stderr] 3 | use ckb_crypto::secp::{Generator, Privkey}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] 4 | use ckb_dao_utils::pack_dao_data; [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ckb_dao_utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_crypto` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use ckb_crypto::secp::{Generator, Privkey}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_crypto` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_script`, `ckb_types::bytes::Bytes`, `ckb_types::core::cell::CellMeta`, `ckb_types::core::cell::CellMetaBuilder`, `ckb_types::core::cell::ResolvedTransaction`, `ckb_types::core::BlockNumber`, `ckb_types::core::Capacity`, `ckb_types::core::DepType`, `ckb_types::core::HeaderBuilder`, `ckb_types::core::HeaderView`, `ckb_types::core::ScriptHashType`, `ckb_types::core::TransactionBuilder`, `ckb_types::core::TransactionInfo`, `ckb_types::core::TransactionView`, `ckb_types::packed::Byte32`, `ckb_types::packed::CellDep`, `ckb_types::packed::CellInput`, `ckb_types::packed::CellOutput`, `ckb_types::packed::OutPoint`, `ckb_types::packed::Script`, `super::blake160`, `super::sign_tx`, `super::DummyDataLoader`, `super::MAX_CYCLES`, `super::SECP256K1_DATA_BIN`, `super::SIGHASH_ALL_BIN`, `ckb_crypto::secp::Generator`, `ckb_crypto::secp::Privkey` [INFO] [stderr] --> src/tests/dao.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use ckb_script::{ScriptConfig, ScriptError, TransactionScriptsVerifier}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_script` [INFO] [stderr] 6 | use ckb_types::{ [INFO] [stderr] 7 | bytes::Bytes, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 8 | core::{ [INFO] [stderr] 9 | cell::{CellMeta, CellMetaBuilder, ResolvedTransaction}, [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 10 | BlockNumber, Capacity, DepType, HeaderBuilder, HeaderView, ScriptHashType, [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] 11 | TransactionBuilder, TransactionInfo, TransactionView, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 12 | }, [INFO] [stderr] 13 | packed::{Byte32, CellDep, CellInput, CellOutput, OutPoint, Script}, [INFO] [stderr] | ^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/tests/secp256k1_blake160_sighash_all.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use super::{blake160, sign_tx, DummyDataLoader, MAX_CYCLES, SECP256K1_DATA_BIN, SIGHASH_ALL_BIN}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 2 | use ckb_crypto::secp::{Generator, Privkey}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_script`, `ckb_types::bytes::Bytes`, `ckb_types::core::cell::CellMetaBuilder`, `ckb_types::core::cell::ResolvedTransaction`, `ckb_types::core::Capacity`, `ckb_types::core::DepType`, `ckb_types::core::ScriptHashType`, `ckb_types::core::TransactionBuilder`, `ckb_types::core::TransactionView`, `ckb_types::packed::CellDep`, `ckb_types::packed::CellInput`, `ckb_types::packed::CellOutput`, `ckb_types::packed::OutPoint`, `ckb_types::packed::Script` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use ckb_script::{ScriptConfig, ScriptError, TransactionScriptsVerifier}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_script` [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] 5 | bytes::Bytes, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | core::{ [INFO] [stderr] 7 | cell::{CellMetaBuilder, ResolvedTransaction}, [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | Capacity, DepType, ScriptHashType, TransactionBuilder, TransactionView, [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | }, [INFO] [stderr] 10 | packed::{CellDep, CellInput, CellOutput, OutPoint, Script}, [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_crypto` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use ckb_crypto::secp::{Generator, Privkey, Pubkey}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_crypto` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_types`, `super::super::multi_sign_tx`, `super::DummyDataLoader`, `super::BITCOIN_P2PKH_BIN`, `super::MAX_CYCLES`, `super::SECP256K1_DATA_BIN`, `ckb_crypto::secp::Generator`, `ckb_crypto::secp::Privkey`, `ckb_crypto::secp::Pubkey` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] ... [INFO] [stderr] 262 | use super::super::multi_sign_tx; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use super::{DummyDataLoader, BITCOIN_P2PKH_BIN, MAX_CYCLES, SECP256K1_DATA_BIN}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 2 | use ckb_crypto::secp::{Generator, Privkey, Pubkey}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_script`, `ckb_types::bytes::Bytes`, `ckb_types::core::cell::CellMetaBuilder`, `ckb_types::core::cell::ResolvedTransaction`, `ckb_types::core::Capacity`, `ckb_types::core::DepType`, `ckb_types::core::ScriptHashType`, `ckb_types::core::TransactionBuilder`, `ckb_types::core::TransactionView` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use ckb_script::{ScriptConfig, ScriptError, TransactionScriptsVerifier}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_script` [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] 5 | bytes::Bytes, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | core::{ [INFO] [stderr] 7 | cell::{CellMetaBuilder, ResolvedTransaction}, [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | Capacity, DepType, ScriptHashType, TransactionBuilder, TransactionView, [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_crypto` [INFO] [stderr] --> src/tests/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use ckb_crypto::secp::Privkey; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_crypto` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_types`, `ckb_types::packed::CellDep`, `ckb_types::packed::CellInput`, `ckb_types::packed::CellOutput`, `ckb_types::packed::OutPoint`, `ckb_types::packed::Script`, `ckb_types::packed::Witness`, `ckb_crypto::secp::Privkey` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] ... [INFO] [stderr] 11 | packed::{CellDep, CellInput, CellOutput, OutPoint, Script, Witness}, [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/tests/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use ckb_crypto::secp::Privkey; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ckb_script`, `ckb_types::bytes::Bytes`, `ckb_types::core::cell::CellMeta`, `ckb_types::core::BlockExt`, `ckb_types::core::HeaderView`, `ckb_types::core::TransactionView`, `ckb_types::packed::Byte32`, `ckb_types::packed::CellOutput`, `ckb_types::packed::OutPoint`, `ckb_types::packed::Witness` [INFO] [stderr] --> src/tests/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use ckb_script::DataLoader; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_script` [INFO] [stderr] 7 | use ckb_types::{ [INFO] [stderr] 8 | bytes::Bytes, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 9 | core::{cell::CellMeta, BlockExt, HeaderView, TransactionView}, [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 10 | packed::{Byte32, CellOutput, OutPoint, Witness}, [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `ckb_types` [INFO] [stderr] --> src/tests/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use ckb_types::{ [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `ckb_types` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `h160` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:196:9 [INFO] [stderr] | [INFO] [stderr] 196 | h160!("0x9c1185a5c5e9fc54612808977ee8f548b2258d31"), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `h256` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:200:9 [INFO] [stderr] | [INFO] [stderr] 200 | h256!("0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/dao.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:20:19 [INFO] [stderr] | [INFO] [stderr] 20 | .capacity(Capacity::shannons(shannons).pack()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/dao.rs:31:21 [INFO] [stderr] | [INFO] [stderr] 31 | let out_point = OutPoint::new(tx_hash, 0); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/dao.rs:33:16 [INFO] [stderr] | [INFO] [stderr] 33 | let cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | Capacity::bytes(script_data.len()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/dao.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | CellOutput::calc_data_hash(&SIGHASH_ALL_BIN) [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/dao.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | CellOutput::calc_data_hash(&DAO_BIN) [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/dao.rs:63:21 [INFO] [stderr] | [INFO] [stderr] 63 | let out_point = OutPoint::new(tx_hash, 0); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Script` [INFO] [stderr] --> src/tests/dao.rs:65:16 [INFO] [stderr] | [INFO] [stderr] 65 | let lock = Script::new_builder() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Script` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ScriptHashType` [INFO] [stderr] --> src/tests/dao.rs:68:20 [INFO] [stderr] | [INFO] [stderr] 68 | .hash_type(ScriptHashType::Data.pack()) [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `ScriptHashType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Script` [INFO] [stderr] --> src/tests/dao.rs:70:17 [INFO] [stderr] | [INFO] [stderr] 70 | let type_ = Script::new_builder() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Script` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ScriptHashType` [INFO] [stderr] --> src/tests/dao.rs:73:20 [INFO] [stderr] | [INFO] [stderr] 73 | .hash_type(ScriptHashType::Data.pack()) [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `ScriptHashType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/dao.rs:75:16 [INFO] [stderr] | [INFO] [stderr] 75 | let cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:82:51 [INFO] [stderr] | [INFO] [stderr] 82 | .insert(out_point.clone(), (cell.clone(), Bytes::new())); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `HeaderBuilder` [INFO] [stderr] --> src/tests/dao.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | HeaderBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `HeaderBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:92:13 [INFO] [stderr] | [INFO] [stderr] 92 | Capacity::shannons(0), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | Capacity::shannons(0), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/dao.rs:99:19 [INFO] [stderr] | [INFO] [stderr] 99 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_hash` [INFO] [stderr] --> src/tests/dao.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | ckb_hash::blake2b_256(ser_pk)[..20].to_vec() [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ckb_hash` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:119:9 [INFO] [stderr] | [INFO] [stderr] 119 | CellMetaBuilder::from_cell_output(secp_cell.clone(), SIGHASH_ALL_BIN.clone()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | CellMetaBuilder::from_cell_output(secp_data_cell.clone(), SECP256K1_DATA_BIN.clone()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:126:25 [INFO] [stderr] | [INFO] [stderr] 126 | let dao_cell_meta = CellMetaBuilder::from_cell_output(dao_cell.clone(), DAO_BIN.clone()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/dao.rs:143:13 [INFO] [stderr] | [INFO] [stderr] 143 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/dao.rs:145:27 [INFO] [stderr] | [INFO] [stderr] 145 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/dao.rs:149:13 [INFO] [stderr] | [INFO] [stderr] 149 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/dao.rs:151:27 [INFO] [stderr] | [INFO] [stderr] 151 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/dao.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/dao.rs:157:27 [INFO] [stderr] | [INFO] [stderr] 157 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:179:9 [INFO] [stderr] | [INFO] [stderr] 179 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:190:27 [INFO] [stderr] | [INFO] [stderr] 190 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:190:67 [INFO] [stderr] | [INFO] [stderr] 190 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:205:24 [INFO] [stderr] | [INFO] [stderr] 205 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:206:19 [INFO] [stderr] | [INFO] [stderr] 206 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:207:16 [INFO] [stderr] | [INFO] [stderr] 207 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:209:22 [INFO] [stderr] | [INFO] [stderr] 209 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:240:9 [INFO] [stderr] | [INFO] [stderr] 240 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:251:27 [INFO] [stderr] | [INFO] [stderr] 251 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:251:67 [INFO] [stderr] | [INFO] [stderr] 251 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:266:24 [INFO] [stderr] | [INFO] [stderr] 266 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:267:19 [INFO] [stderr] | [INFO] [stderr] 267 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:268:16 [INFO] [stderr] | [INFO] [stderr] 268 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:270:22 [INFO] [stderr] | [INFO] [stderr] 270 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:301:9 [INFO] [stderr] | [INFO] [stderr] 301 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:312:27 [INFO] [stderr] | [INFO] [stderr] 312 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:312:67 [INFO] [stderr] | [INFO] [stderr] 312 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:327:24 [INFO] [stderr] | [INFO] [stderr] 327 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Script` [INFO] [stderr] --> src/tests/dao.rs:328:17 [INFO] [stderr] | [INFO] [stderr] 328 | let type_ = Script::new_builder() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Script` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ScriptHashType` [INFO] [stderr] --> src/tests/dao.rs:331:20 [INFO] [stderr] | [INFO] [stderr] 331 | .hash_type(ScriptHashType::Data.pack()) [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `ScriptHashType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:333:19 [INFO] [stderr] | [INFO] [stderr] 333 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:334:16 [INFO] [stderr] | [INFO] [stderr] 334 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:341:22 [INFO] [stderr] | [INFO] [stderr] 341 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:374:9 [INFO] [stderr] | [INFO] [stderr] 374 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:379:9 [INFO] [stderr] | [INFO] [stderr] 379 | Capacity::shannons(123456781000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:396:27 [INFO] [stderr] | [INFO] [stderr] 396 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:396:67 [INFO] [stderr] | [INFO] [stderr] 396 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:405:28 [INFO] [stderr] | [INFO] [stderr] 405 | let input_cell_meta2 = CellMetaBuilder::from_cell_output(cell2, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:405:69 [INFO] [stderr] | [INFO] [stderr] 405 | let input_cell_meta2 = CellMetaBuilder::from_cell_output(cell2, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:422:19 [INFO] [stderr] | [INFO] [stderr] 422 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:423:16 [INFO] [stderr] | [INFO] [stderr] 423 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:424:16 [INFO] [stderr] | [INFO] [stderr] 424 | .input(CellInput::new(previous_out_point2, 2061)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:427:28 [INFO] [stderr] | [INFO] [stderr] 427 | .outputs_data(vec![Bytes::new(); 2].pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:432:23 [INFO] [stderr] | [INFO] [stderr] 432 | .witness(vec![Bytes::from(&b[..]).pack()].pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:433:23 [INFO] [stderr] | [INFO] [stderr] 433 | .witness(vec![Bytes::from(&b2[..]).pack()].pack()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:461:9 [INFO] [stderr] | [INFO] [stderr] 461 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/dao.rs:469:30 [INFO] [stderr] | [INFO] [stderr] 469 | let previous_out_point = OutPoint::new_builder() [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:474:27 [INFO] [stderr] | [INFO] [stderr] 474 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:474:67 [INFO] [stderr] | [INFO] [stderr] 474 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:489:24 [INFO] [stderr] | [INFO] [stderr] 489 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:490:19 [INFO] [stderr] | [INFO] [stderr] 490 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:491:16 [INFO] [stderr] | [INFO] [stderr] 491 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:493:22 [INFO] [stderr] | [INFO] [stderr] 493 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:523:9 [INFO] [stderr] | [INFO] [stderr] 523 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:531:27 [INFO] [stderr] | [INFO] [stderr] 531 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:531:67 [INFO] [stderr] | [INFO] [stderr] 531 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:546:24 [INFO] [stderr] | [INFO] [stderr] 546 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:547:19 [INFO] [stderr] | [INFO] [stderr] 547 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:548:16 [INFO] [stderr] | [INFO] [stderr] 548 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:550:22 [INFO] [stderr] | [INFO] [stderr] 550 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:580:9 [INFO] [stderr] | [INFO] [stderr] 580 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:591:27 [INFO] [stderr] | [INFO] [stderr] 591 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:591:67 [INFO] [stderr] | [INFO] [stderr] 591 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:606:24 [INFO] [stderr] | [INFO] [stderr] 606 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:607:19 [INFO] [stderr] | [INFO] [stderr] 607 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:608:16 [INFO] [stderr] | [INFO] [stderr] 608 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:610:22 [INFO] [stderr] | [INFO] [stderr] 610 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:641:9 [INFO] [stderr] | [INFO] [stderr] 641 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:652:27 [INFO] [stderr] | [INFO] [stderr] 652 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:652:67 [INFO] [stderr] | [INFO] [stderr] 652 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:667:24 [INFO] [stderr] | [INFO] [stderr] 667 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:668:19 [INFO] [stderr] | [INFO] [stderr] 668 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:669:16 [INFO] [stderr] | [INFO] [stderr] 669 | .input(CellInput::new(previous_out_point, 1900)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:671:22 [INFO] [stderr] | [INFO] [stderr] 671 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/dao.rs:702:9 [INFO] [stderr] | [INFO] [stderr] 702 | Capacity::shannons(123456780000), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/dao.rs:713:27 [INFO] [stderr] | [INFO] [stderr] 713 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:713:67 [INFO] [stderr] | [INFO] [stderr] 713 | let input_cell_meta = CellMetaBuilder::from_cell_output(cell, Bytes::new()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:728:24 [INFO] [stderr] | [INFO] [stderr] 728 | let witness = vec![Bytes::from(&b[..]).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/dao.rs:729:19 [INFO] [stderr] | [INFO] [stderr] 729 | let builder = TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/dao.rs:730:16 [INFO] [stderr] | [INFO] [stderr] 730 | .input(CellInput::new(previous_out_point, 2011)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/dao.rs:732:22 [INFO] [stderr] | [INFO] [stderr] 732 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:31:20 [INFO] [stderr] | [INFO] [stderr] 31 | let capacity = Capacity::shannons(42); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:32:30 [INFO] [stderr] | [INFO] [stderr] 32 | let previous_out_point = OutPoint::new(previous_tx_hash, previous_index); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:40:30 [INFO] [stderr] | [INFO] [stderr] 40 | let contract_out_point = OutPoint::new(contract_tx_hash.clone(), contract_index); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:42:20 [INFO] [stderr] | [INFO] [stderr] 42 | let dep_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | Capacity::bytes(script_data.len()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:49:30 [INFO] [stderr] | [INFO] [stderr] 49 | let dep_cell_data_hash = CellOutput::calc_data_hash(&script_data); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | OutPoint::new(tx_hash, 0) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:63:31 [INFO] [stderr] | [INFO] [stderr] 63 | let secp256k1_data_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:65:13 [INFO] [stderr] | [INFO] [stderr] 65 | Capacity::bytes(SECP256K1_DATA_BIN.len()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Script` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:75:18 [INFO] [stderr] | [INFO] [stderr] 75 | let script = Script::new_builder() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Script` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ScriptHashType` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:78:20 [INFO] [stderr] | [INFO] [stderr] 78 | .hash_type(ScriptHashType::Data.pack()) [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `ScriptHashType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:80:32 [INFO] [stderr] | [INFO] [stderr] 80 | let previous_output_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:86:32 [INFO] [stderr] | [INFO] [stderr] 86 | (previous_output_cell, Bytes::new()), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:89:16 [INFO] [stderr] | [INFO] [stderr] 89 | .input(CellInput::new(previous_out_point.clone(), 0)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:93:27 [INFO] [stderr] | [INFO] [stderr] 93 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:97:13 [INFO] [stderr] | [INFO] [stderr] 97 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:99:27 [INFO] [stderr] | [INFO] [stderr] 99 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:102:17 [INFO] [stderr] | [INFO] [stderr] 102 | .output(CellOutput::new_builder().capacity(capacity.pack()).build()) [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:103:22 [INFO] [stderr] | [INFO] [stderr] 103 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_hash` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:109:23 [INFO] [stderr] | [INFO] [stderr] 109 | let mut blake2b = ckb_hash::new_blake2b(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ckb_hash` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:116:23 [INFO] [stderr] | [INFO] [stderr] 116 | .witness(vec![Bytes::from(sig.serialize()).pack()].pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:136:13 [INFO] [stderr] | [INFO] [stderr] 136 | CellMetaBuilder::from_cell_output(dep_output.to_owned(), dep_data.to_owned()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:143:9 [INFO] [stderr] | [INFO] [stderr] 143 | CellMetaBuilder::from_cell_output(input_output.to_owned(), input_data.to_owned()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:157:19 [INFO] [stderr] | [INFO] [stderr] 157 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:172:19 [INFO] [stderr] | [INFO] [stderr] 172 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 173 | let wrong_privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:191:19 [INFO] [stderr] | [INFO] [stderr] 191 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:214:19 [INFO] [stderr] | [INFO] [stderr] 214 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:222:30 [INFO] [stderr] | [INFO] [stderr] 222 | let super_long_message = Bytes::from(&buffer[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_hash` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:224:23 [INFO] [stderr] | [INFO] [stderr] 224 | let mut blake2b = ckb_hash::new_blake2b(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ckb_hash` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:235:17 [INFO] [stderr] | [INFO] [stderr] 235 | Bytes::from(sig.serialize()).pack(), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:268:23 [INFO] [stderr] | [INFO] [stderr] 268 | keys.push(Generator::random_privkey()); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:346:31 [INFO] [stderr] | [INFO] [stderr] 346 | .witness(vec![Bytes::from("x").pack()].pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:30:20 [INFO] [stderr] | [INFO] [stderr] 30 | let capacity = Capacity::shannons(42); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:31:30 [INFO] [stderr] | [INFO] [stderr] 31 | let previous_out_point = OutPoint::new(previous_tx_hash, previous_index); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:39:30 [INFO] [stderr] | [INFO] [stderr] 39 | let contract_out_point = OutPoint::new(contract_tx_hash.clone(), contract_index); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:41:20 [INFO] [stderr] | [INFO] [stderr] 41 | let dep_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | Capacity::bytes(script_data.len()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:48:30 [INFO] [stderr] | [INFO] [stderr] 48 | let dep_cell_data_hash = CellOutput::calc_data_hash(&script_data); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `OutPoint` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | OutPoint::new(tx_hash, 0) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `OutPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:62:31 [INFO] [stderr] | [INFO] [stderr] 62 | let secp256k1_data_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Capacity` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | Capacity::bytes(SECP256K1_DATA_BIN.len()) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Capacity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Script` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:74:18 [INFO] [stderr] | [INFO] [stderr] 74 | let script = Script::new_builder() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Script` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ScriptHashType` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:77:20 [INFO] [stderr] | [INFO] [stderr] 77 | .hash_type(ScriptHashType::Data.pack()) [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `ScriptHashType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:79:32 [INFO] [stderr] | [INFO] [stderr] 79 | let previous_output_cell = CellOutput::new_builder() [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:85:32 [INFO] [stderr] | [INFO] [stderr] 85 | (previous_output_cell, Bytes::new()), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TransactionBuilder` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | TransactionBuilder::default() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `TransactionBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellInput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:88:16 [INFO] [stderr] | [INFO] [stderr] 88 | .input(CellInput::new(previous_out_point.clone(), 0)) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `CellInput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:93:27 [INFO] [stderr] | [INFO] [stderr] 93 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellDep` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:97:13 [INFO] [stderr] | [INFO] [stderr] 97 | CellDep::new_builder() [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CellDep` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DepType` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:99:27 [INFO] [stderr] | [INFO] [stderr] 99 | .dep_type(DepType::Code.pack()) [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `DepType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:102:17 [INFO] [stderr] | [INFO] [stderr] 102 | .output(CellOutput::new_builder().capacity(capacity.pack()).build()) [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:103:22 [INFO] [stderr] | [INFO] [stderr] 103 | .output_data(Bytes::new().pack()) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:118:43 [INFO] [stderr] | [INFO] [stderr] 118 | let mut signed_witness = vec![Bytes::from(sig.serialize()).pack()]; [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:147:13 [INFO] [stderr] | [INFO] [stderr] 147 | CellMetaBuilder::from_cell_output(dep_output.to_owned(), dep_data.to_owned()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:154:9 [INFO] [stderr] | [INFO] [stderr] 154 | CellMetaBuilder::from_cell_output(input_output.to_owned(), input_data.to_owned()) [INFO] [stderr] | ^^^^^^^^^^^^^^^ use of undeclared type or module `CellMetaBuilder` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:208:19 [INFO] [stderr] | [INFO] [stderr] 208 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:229:19 [INFO] [stderr] | [INFO] [stderr] 229 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:249:19 [INFO] [stderr] | [INFO] [stderr] 249 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_crypto` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:262:24 [INFO] [stderr] | [INFO] [stderr] 262 | let context = &ckb_crypto::secp::SECP256K1; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ckb_crypto` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:266:25 [INFO] [stderr] | [INFO] [stderr] 266 | let signature = Bytes::from(&signature.serialize_compact()[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:285:19 [INFO] [stderr] | [INFO] [stderr] 285 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:286:25 [INFO] [stderr] | [INFO] [stderr] 286 | let wrong_privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:307:19 [INFO] [stderr] | [INFO] [stderr] 307 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:330:19 [INFO] [stderr] | [INFO] [stderr] 330 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:344:30 [INFO] [stderr] | [INFO] [stderr] 344 | let super_long_message = Bytes::from(&buffer[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:352:17 [INFO] [stderr] | [INFO] [stderr] 352 | Bytes::from(sig.serialize()).pack(), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Generator` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:369:19 [INFO] [stderr] | [INFO] [stderr] 369 | let privkey = Generator::random_privkey(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `Generator` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:380:25 [INFO] [stderr] | [INFO] [stderr] 380 | let other_witness = Bytes::from("1243").pack(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | Bytes::from(&include_bytes!("../../specs/cells/secp256k1_blake160_sighash_all")[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:22:47 [INFO] [stderr] | [INFO] [stderr] 22 | pub static ref BITCOIN_P2PKH_BIN: Bytes = Bytes::from( [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | Bytes::from(&include_bytes!("../../specs/cells/secp256k1_data")[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:27:37 [INFO] [stderr] | [INFO] [stderr] 27 | pub static ref DAO_BIN: Bytes = Bytes::from(&include_bytes!("../../specs/cells/dao")[..]); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CellOutput` [INFO] [stderr] --> src/tests/mod.rs:48:49 [INFO] [stderr] | [INFO] [stderr] 48 | .map(|(_, data)| (data.clone(), CellOutput::calc_data_hash(&data))) [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `CellOutput` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | Bytes::from(&ckb_hash::blake2b_256(message)[..20]) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_hash` [INFO] [stderr] --> src/tests/mod.rs:63:18 [INFO] [stderr] | [INFO] [stderr] 63 | Bytes::from(&ckb_hash::blake2b_256(message)[..20]) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ckb_hash` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ckb_hash` [INFO] [stderr] --> src/tests/mod.rs:74:31 [INFO] [stderr] | [INFO] [stderr] 74 | let mut blake2b = ckb_hash::new_blake2b(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ckb_hash` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Bytes` [INFO] [stderr] --> src/tests/mod.rs:86:21 [INFO] [stderr] | [INFO] [stderr] 86 | Bytes::from(sig.serialize()).pack() [INFO] [stderr] | ^^^^^ use of undeclared type or module `Bytes` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellOutput` in this scope [INFO] [stderr] --> src/tests/dao.rs:18:53 [INFO] [stderr] | [INFO] [stderr] 18 | fn cell_output_with_only_capacity(shannons: u64) -> CellOutput { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/dao.rs:24:30 [INFO] [stderr] | [INFO] [stderr] 24 | fn script_cell(script_data: &Bytes) -> (CellOutput, OutPoint) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellOutput` in this scope [INFO] [stderr] --> src/tests/dao.rs:24:41 [INFO] [stderr] | [INFO] [stderr] 24 | fn script_cell(script_data: &Bytes) -> (CellOutput, OutPoint) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `OutPoint` in this scope [INFO] [stderr] --> src/tests/dao.rs:24:53 [INFO] [stderr] | [INFO] [stderr] 24 | fn script_cell(script_data: &Bytes) -> (CellOutput, OutPoint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/dao.rs:44:24 [INFO] [stderr] | [INFO] [stderr] 44 | fn secp_code_hash() -> Byte32 { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/dao.rs:48:23 [INFO] [stderr] | [INFO] [stderr] 48 | fn dao_code_hash() -> Byte32 { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Capacity` in this scope [INFO] [stderr] --> src/tests/dao.rs:54:15 [INFO] [stderr] | [INFO] [stderr] 54 | capacity: Capacity, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/dao.rs:55:20 [INFO] [stderr] | [INFO] [stderr] 55 | lock_args: Vec, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellOutput` in this scope [INFO] [stderr] --> src/tests/dao.rs:56:7 [INFO] [stderr] | [INFO] [stderr] 56 | ) -> (CellOutput, OutPoint) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `OutPoint` in this scope [INFO] [stderr] --> src/tests/dao.rs:56:19 [INFO] [stderr] | [INFO] [stderr] 56 | ) -> (CellOutput, OutPoint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BlockNumber` in this scope [INFO] [stderr] --> src/tests/dao.rs:87:23 [INFO] [stderr] | [INFO] [stderr] 87 | fn gen_header(number: BlockNumber, ar: u64) -> HeaderView { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HeaderView` in this scope [INFO] [stderr] --> src/tests/dao.rs:87:48 [INFO] [stderr] | [INFO] [stderr] 87 | fn gen_header(number: BlockNumber, ar: u64) -> HeaderView { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/dao.rs:98:19 [INFO] [stderr] | [INFO] [stderr] 98 | fn gen_lock() -> (Privkey, Vec) { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/dao.rs:98:32 [INFO] [stderr] | [INFO] [stderr] 98 | fn gen_lock() -> (Privkey, Vec) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionBuilder` in this scope [INFO] [stderr] --> src/tests/dao.rs:112:14 [INFO] [stderr] | [INFO] [stderr] 112 | builder: TransactionBuilder, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/dao.rs:113:7 [INFO] [stderr] | [INFO] [stderr] 113 | ) -> (TransactionView, Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellMeta` in this scope [INFO] [stderr] --> src/tests/dao.rs:113:28 [INFO] [stderr] | [INFO] [stderr] 113 | ) -> (TransactionView, Vec) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:192:27 [INFO] [stderr] | [INFO] [stderr] 192 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:218:15 [INFO] [stderr] | [INFO] [stderr] 218 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:253:27 [INFO] [stderr] | [INFO] [stderr] 253 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:279:15 [INFO] [stderr] | [INFO] [stderr] 279 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:314:27 [INFO] [stderr] | [INFO] [stderr] 314 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:350:15 [INFO] [stderr] | [INFO] [stderr] 350 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:398:27 [INFO] [stderr] | [INFO] [stderr] 398 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:407:27 [INFO] [stderr] | [INFO] [stderr] 407 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:439:15 [INFO] [stderr] | [INFO] [stderr] 439 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:476:27 [INFO] [stderr] | [INFO] [stderr] 476 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:502:15 [INFO] [stderr] | [INFO] [stderr] 502 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:533:27 [INFO] [stderr] | [INFO] [stderr] 533 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:558:15 [INFO] [stderr] | [INFO] [stderr] 558 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:593:27 [INFO] [stderr] | [INFO] [stderr] 593 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:619:15 [INFO] [stderr] | [INFO] [stderr] 619 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:654:27 [INFO] [stderr] | [INFO] [stderr] 654 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:680:15 [INFO] [stderr] | [INFO] [stderr] 680 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `TransactionInfo` in this scope [INFO] [stderr] --> src/tests/dao.rs:715:27 [INFO] [stderr] | [INFO] [stderr] 715 | .transaction_info(TransactionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/dao.rs:741:15 [INFO] [stderr] | [INFO] [stderr] 741 | let rtx = ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | script_data: Bytes, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | lock_args: Vec, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:23:6 [INFO] [stderr] | [INFO] [stderr] 23 | ) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:107:21 [INFO] [stderr] | [INFO] [stderr] 107 | fn sign_tx_hash(tx: TransactionView, key: &Privkey, tx_hash: &[u8]) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:107:44 [INFO] [stderr] | [INFO] [stderr] 107 | fn sign_tx_hash(tx: TransactionView, key: &Privkey, tx_hash: &[u8]) -> TransactionView { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:107:72 [INFO] [stderr] | [INFO] [stderr] 107 | fn sign_tx_hash(tx: TransactionView, key: &Privkey, tx_hash: &[u8]) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:122:13 [INFO] [stderr] | [INFO] [stderr] 122 | tx: &'a TransactionView, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:123:6 [INFO] [stderr] | [INFO] [stderr] 123 | ) -> ResolvedTransaction<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:146:5 [INFO] [stderr] | [INFO] [stderr] 146 | ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:265:39 [INFO] [stderr] | [INFO] [stderr] 265 | fn generate_keys(n: usize) -> Vec { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:274:18 [INFO] [stderr] | [INFO] [stderr] 274 | fn pkh(key: &Privkey) -> Bytes { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:274:30 [INFO] [stderr] | [INFO] [stderr] 274 | fn pkh(key: &Privkey) -> Bytes { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 262 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 262 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 262 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_blake160_sighash_all.rs:278:51 [INFO] [stderr] | [INFO] [stderr] 278 | fn verify(data_loader: &DummyDataLoader, tx: &TransactionView) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:19:18 [INFO] [stderr] | [INFO] [stderr] 19 | script_data: Bytes, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:20:20 [INFO] [stderr] | [INFO] [stderr] 20 | lock_args: Vec, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:21:24 [INFO] [stderr] | [INFO] [stderr] 21 | extra_witness: Vec, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:22:6 [INFO] [stderr] | [INFO] [stderr] 22 | ) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:109:20 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:109:43 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:109:55 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Witness` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:111:31 [INFO] [stderr] | [INFO] [stderr] 111 | let signed_witnesses: Vec = tx [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:133:13 [INFO] [stderr] | [INFO] [stderr] 133 | tx: &'a TransactionView, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:134:6 [INFO] [stderr] | [INFO] [stderr] 134 | ) -> ResolvedTransaction<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `ResolvedTransaction` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:157:5 [INFO] [stderr] | [INFO] [stderr] 157 | ResolvedTransaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Pubkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:177:33 [INFO] [stderr] | [INFO] [stderr] 177 | fn pubkey_uncompressed(pubkey: &Pubkey) -> Vec { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Pubkey` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:183:31 [INFO] [stderr] | [INFO] [stderr] 183 | fn pubkey_compressed(pubkey: &Pubkey) -> Vec { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/secp256k1_ripemd160_sha256_sighash_all.rs:267:27 [INFO] [stderr] | [INFO] [stderr] 267 | let pubkey_bytes: Bytes = pubkey.into(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 1 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:20:37 [INFO] [stderr] | [INFO] [stderr] 20 | pub static ref SIGHASH_ALL_BIN: Bytes = [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:22:39 [INFO] [stderr] | [INFO] [stderr] 22 | pub static ref BITCOIN_P2PKH_BIN: Bytes = Bytes::from( [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:25:40 [INFO] [stderr] | [INFO] [stderr] 25 | pub static ref SECP256K1_DATA_BIN: Bytes = [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:27:29 [INFO] [stderr] | [INFO] [stderr] 27 | pub static ref DAO_BIN: Bytes = Bytes::from(&include_bytes!("../../specs/cells/dao")[..]); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `OutPoint` in this scope [INFO] [stderr] --> src/tests/mod.rs:32:24 [INFO] [stderr] | [INFO] [stderr] 32 | pub cells: HashMap, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellOutput` in this scope [INFO] [stderr] --> src/tests/mod.rs:32:35 [INFO] [stderr] | [INFO] [stderr] 32 | pub cells: HashMap, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:32:47 [INFO] [stderr] | [INFO] [stderr] 32 | pub cells: HashMap, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/mod.rs:33:26 [INFO] [stderr] | [INFO] [stderr] 33 | pub headers: HashMap, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HeaderView` in this scope [INFO] [stderr] --> src/tests/mod.rs:33:34 [INFO] [stderr] | [INFO] [stderr] 33 | pub headers: HashMap, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `CellMeta` in this scope [INFO] [stderr] --> src/tests/mod.rs:44:37 [INFO] [stderr] | [INFO] [stderr] 44 | fn load_cell_data(&self, cell: &CellMeta) -> Option<(Bytes, Byte32)> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:44:58 [INFO] [stderr] | [INFO] [stderr] 44 | fn load_cell_data(&self, cell: &CellMeta) -> Option<(Bytes, Byte32)> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/mod.rs:44:65 [INFO] [stderr] | [INFO] [stderr] 44 | fn load_cell_data(&self, cell: &CellMeta) -> Option<(Bytes, Byte32)> { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/mod.rs:52:37 [INFO] [stderr] | [INFO] [stderr] 52 | fn get_block_ext(&self, _hash: &Byte32) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BlockExt` in this scope [INFO] [stderr] --> src/tests/mod.rs:52:55 [INFO] [stderr] | [INFO] [stderr] 52 | fn get_block_ext(&self, _hash: &Byte32) -> Option { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Byte32` in this scope [INFO] [stderr] --> src/tests/mod.rs:57:39 [INFO] [stderr] | [INFO] [stderr] 57 | fn get_header(&self, block_hash: &Byte32) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HeaderView` in this scope [INFO] [stderr] --> src/tests/mod.rs:57:57 [INFO] [stderr] | [INFO] [stderr] 57 | fn get_header(&self, block_hash: &Byte32) -> Option { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stderr] --> src/tests/mod.rs:62:36 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn blake160(message: &[u8]) -> Bytes { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 5 | use core::str::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Bytes; [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::Bytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/mod.rs:66:26 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn multi_sign_tx(tx: TransactionView, keys: &[&Privkey]) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/mod.rs:66:52 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn multi_sign_tx(tx: TransactionView, keys: &[&Privkey]) -> TransactionView { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/mod.rs:66:65 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn multi_sign_tx(tx: TransactionView, keys: &[&Privkey]) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Witness` in this scope [INFO] [stderr] --> src/tests/mod.rs:68:31 [INFO] [stderr] | [INFO] [stderr] 68 | let signed_witnesses: Vec = tx [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/mod.rs:101:20 [INFO] [stderr] | [INFO] [stderr] 101 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Privkey` in this scope [INFO] [stderr] --> src/tests/mod.rs:101:43 [INFO] [stderr] | [INFO] [stderr] 101 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TransactionView` in this scope [INFO] [stderr] --> src/tests/mod.rs:101:55 [INFO] [stderr] | [INFO] [stderr] 101 | pub fn sign_tx(tx: TransactionView, key: &Privkey) -> TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 285 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `ckb-system-scripts`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "67bca52385fc56aced73388fbc5060159f2c700c3b39a11370a2c148ede30e6d"` [INFO] running `"docker" "rm" "-f" "67bca52385fc56aced73388fbc5060159f2c700c3b39a11370a2c148ede30e6d"` [INFO] [stdout] 67bca52385fc56aced73388fbc5060159f2c700c3b39a11370a2c148ede30e6d