warning: type `event_summary` should have an upper camel case name --> libuptest/src/types.rs:50:12 | 50 | pub struct event_summary { | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EventSummary` | = note: `#[warn(non_camel_case_types)]` on by default warning: type `storage_types` should have an upper camel case name --> libuptest/src/types.rs:57:10 | 57 | pub enum storage_types { | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StorageTypes` warning: type `storage_value` should have an upper camel case name --> libuptest/src/types.rs:68:12 | 68 | pub struct storage_value { | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StorageValue` warning: type `pallet_storage_types` should have an upper camel case name --> libuptest/src/types.rs:75:12 | 75 | pub struct pallet_storage_types { | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PalletStorageTypes` warning: type `justifications` should have an upper camel case name --> libuptest/src/types.rs:193:12 | 193 | pub struct justifications(Vec); | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Justifications` warning: type `generic_block` should have an upper camel case name --> libuptest/src/types.rs:204:10 | 204 | pub type generic_block = Block>; | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GenericBlock` warning: unused import: `metadata` --> libuptest/src/ws_mod.rs:19:13 | 19 | use crate::{metadata, rpc_params}; | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `crate::test_helper::InputHelper` --> libuptest/src/test_generation/autogen.rs:4:5 | 4 | use crate::test_helper::InputHelper; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: consider adding a `#[cfg(test)]` to the containing module --> libuptest/src/test_generation/mod.rs:1:1 | 1 | pub mod autogen; | ^^^^^^^^^^^^^^^^ warning: unused doc comment --> libuptest/src/test_generation/autogen.rs:7:5 | 7 | /// raw type to match against the input gen | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | Ok(()) | ------ rustdoc does not generate documentation for expressions | = help: use `//` for a plain comment = note: `#[warn(unused_doc_comments)]` on by default warning: type `storage_map_info` should have an upper camel case name --> libuptest/src/pallet_storage_parse.rs:30:12 | 30 | pub struct storage_map_info { | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StorageMapInfo` warning: type `pallet_storage_diff` should have an upper camel case name --> libuptest/src/pallet_storage_parse.rs:45:12 | 45 | pub struct pallet_storage_diff { | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PalletStorageDiff` warning: unused variable: `client` --> libuptest/src/test_generation/autogen.rs:6:28 | 6 | pub async fn generate_test(client: JsonrpseeClient) -> Result<(), Error> { | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` | = note: `#[warn(unused_variables)]` on by default warning: unreachable pattern --> libuptest/src/pallet_storage_parse.rs:130:17 | 130 | _ => { | ^ | = note: `#[warn(unreachable_patterns)]` on by default warning: unused import: `SeedableRng` --> libuptest/src/test_helper.rs:2:17 | 2 | use rand::{Rng, SeedableRng}; // https://rust-random.github.io/book/guide-rngs.html | ^^^^^^^^^^^ warning: fields `name` and `typeid` are never read --> libuptest/src/types.rs:69:5 | 68 | pub struct storage_value { | ------------- fields in this struct 69 | name: String, | ^^^^ 70 | typeid: u32, | ^^^^^^ | = note: `storage_value` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: function `serialize` is never used --> libuptest/src/types.rs:99:12 | 99 | pub fn serialize(apis: &ApisVec, ser: S) -> Result | ^^^^^^^^^ warning: type alias `TypeDef2` is never used --> libuptest/src/pallet_storage_parse.rs:65:6 | 65 | type TypeDef2 = desub_current::scale_info::TypeDef; | ^^^^^^^^ warning: structure field `StorageType` should have a snake case name --> libuptest/src/types.rs:79:9 | 79 | pub StorageType: storage_types, | ^^^^^^^^^^^ help: convert the identifier to snake case: `storage_type` | = note: `#[warn(non_snake_case)]` on by default warning: `libuptest` (lib) generated 18 warnings (run `cargo fix --lib -p libuptest` to apply 3 suggestions) warning: unused imports: `TypeDefComposite`, `TypeDefTuple` --> examples/examples/generate_pallet_tests.rs:4:60 | 4 | parse_pallet_storage_types, storage_map_info, TypeDef, TypeDefTuple, TypeDefComposite, TypeDefReg, | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused doc comment --> examples/examples/generate_pallet_tests.rs:31:9 | 31 | /// "let item_type_input: = 123u32; " | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | / let random_input: String = match &pallet_info.raw_type { 33 | | TypeDef::Primitive(value) => { 34 | | match value { 35 | | TypeDefReg::U128 => { ... | 106 | | _ => "not detected".to_string(), 107 | | }; | |__________- rustdoc does not generate documentation for statements | = help: use `//` for a plain comment = note: `#[warn(unused_doc_comments)]` on by default warning: unused variable: `pallet_name` --> examples/examples/generate_pallet_tests.rs:10:35 | 10 | async fn current_pallet_functions(pallet_name: String) -> Result<(), Error> { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pallet_name` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `value` --> examples/examples/generate_pallet_tests.rs:92:28 | 92 | TypeDef::Tuple(value) => { | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` warning: function `current_pallet_functions` is never used --> examples/examples/generate_pallet_tests.rs:10:10 | 10 | async fn current_pallet_functions(pallet_name: String) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: `uptest-examples` (example "generate_pallet_tests") generated 5 warnings (run `cargo fix --example "generate_pallet_tests"` to apply 3 suggestions) Finished release [optimized] target(s) in 0.45s Running `target/release/examples/generate_pallet_tests` Connect to chain Scanning storage... Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("nonce"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("Index"), docs: [] }, Field { name: Some("consumers"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("providers"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("sufficients"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("data"), ty: UntrackedSymbol { id: 5, marker: PhantomData core::any::TypeId> }, type_name: Some("AccountData"), docs: [] }] }) Storage Item name "Account" Storage Item type StorageMap random input is: "let output: Index = query_storage_map(Account)" ------------------- Pallet: "System" Raw Type: Primitive(U32) Storage Item name "ExtrinsicCount" Storage Item type StorageValue Found u32 fn submit_to_ExtrinsicCount(testinput) random input is: "let testinput: u32 = 8092936u32" ------------------- Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("normal"), ty: UntrackedSymbol { id: 8, marker: PhantomData core::any::TypeId> }, type_name: Some("T"), docs: [] }, Field { name: Some("operational"), ty: UntrackedSymbol { id: 8, marker: PhantomData core::any::TypeId> }, type_name: Some("T"), docs: [] }, Field { name: Some("mandatory"), ty: UntrackedSymbol { id: 8, marker: PhantomData core::any::TypeId> }, type_name: Some("T"), docs: [] }] }) Storage Item name "BlockWeight" Storage Item type StorageValue random input is: "let output: T = query_storage_map(BlockWeight)" ------------------- Pallet: "System" Raw Type: Primitive(U32) Storage Item name "AllExtrinsicsLen" Storage Item type StorageValue Found u32 fn submit_to_AllExtrinsicsLen(testinput) random input is: "let testinput: u32 = 4037047085u32" ------------------- Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] }) Storage Item name "BlockHash" Storage Item type StorageMap random input is: "let output: [u8; 32] = query_storage_map(BlockHash)" ------------------- Pallet: "System" Raw Type: Sequence(TypeDefSequence { type_param: UntrackedSymbol { id: 2, marker: PhantomData core::any::TypeId> } }) Storage Item name "ExtrinsicData" Storage Item type StorageMap Type id is: TypeId { t: 18013183783749081848 } found sequence!! random input is: "not detected" ------------------- Pallet: "System" Raw Type: Primitive(U32) Storage Item name "Number" Storage Item type StorageValue Found u32 fn submit_to_Number(testinput) random input is: "let testinput: u32 = 4191796456u32" ------------------- Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] }) Storage Item name "ParentHash" Storage Item type StorageValue random input is: "let output: [u8; 32] = query_storage_map(ParentHash)" ------------------- Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("logs"), ty: UntrackedSymbol { id: 14, marker: PhantomData core::any::TypeId> }, type_name: Some("Vec"), docs: [] }] }) Storage Item name "Digest" Storage Item type StorageValue random input is: "let output: Vec = query_storage_map(Digest)" ------------------- Pallet: "System" Raw Type: Sequence(TypeDefSequence { type_param: UntrackedSymbol { id: 18, marker: PhantomData core::any::TypeId> } }) Storage Item name "Events" Storage Item type StorageValue Type id is: TypeId { t: 18013183783749081848 } found sequence!! random input is: "not detected" ------------------- Pallet: "System" Raw Type: Primitive(U32) Storage Item name "EventCount" Storage Item type StorageValue Found u32 fn submit_to_EventCount(testinput) random input is: "let testinput: u32 = 2423931646u32" ------------------- Pallet: "System" Raw Type: Sequence(TypeDefSequence { type_param: UntrackedSymbol { id: 45, marker: PhantomData core::any::TypeId> } }) Storage Item name "EventTopics" Storage Item type StorageMap Type id is: TypeId { t: 18013183783749081848 } found sequence!! random input is: "not detected" ------------------- Pallet: "System" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("spec_version"), ty: UntrackedSymbol { id: 47, marker: PhantomData core::any::TypeId> }, type_name: Some("codec::Compact"), docs: [] }, Field { name: Some("spec_name"), ty: UntrackedSymbol { id: 48, marker: PhantomData core::any::TypeId> }, type_name: Some("sp_runtime::RuntimeString"), docs: [] }] }) Storage Item name "LastRuntimeUpgrade" Storage Item type StorageValue random input is: "let output: codec::Compact = query_storage_map(LastRuntimeUpgrade)" ------------------- Pallet: "System" Raw Type: Primitive(Bool) Storage Item name "UpgradedToU32RefCount" Storage Item type StorageValue fn submit_to_UpgradedToU32RefCount(testinput) random input is: "let testinput: bool = false" ------------------- Pallet: "System" Raw Type: Primitive(Bool) Storage Item name "UpgradedToTripleRefCount" Storage Item type StorageValue fn submit_to_UpgradedToTripleRefCount(testinput) random input is: "let testinput: bool = false" ------------------- Pallet: "System" Raw Type: Variant(TypeDefVariant { variants: [Variant { name: "ApplyExtrinsic", fields: [Field { name: None, ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("u32"), docs: [] }], index: 0, docs: [] }, Variant { name: "Finalization", fields: [], index: 1, docs: [] }, Variant { name: "Initialization", fields: [], index: 2, docs: [] }] }) Storage Item name "ExecutionPhase" Storage Item type StorageValue random input is: "not detected" ------------------- Pallet: "Timestamp" Raw Type: Primitive(U64) Storage Item name "Now" Storage Item type StorageValue Found u64 fn submit_to_Now(testinput) random input is: "let testinput: u64 = 14470090258766345962u64" ------------------- Pallet: "Timestamp" Raw Type: Primitive(Bool) Storage Item name "DidUpdate" Storage Item type StorageValue fn submit_to_DidUpdate(testinput) random input is: "let testinput: bool = true" ------------------- Pallet: "Aura" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 72, marker: PhantomData core::any::TypeId> }, type_name: Some("Vec"), docs: [] }] }) Storage Item name "Authorities" Storage Item type StorageValue random input is: "let output: Vec = query_storage_map(Authorities)" ------------------- Pallet: "Aura" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 10, marker: PhantomData core::any::TypeId> }, type_name: Some("u64"), docs: [] }] }) Storage Item name "CurrentSlot" Storage Item type StorageValue random input is: "let output: u64 = query_storage_map(CurrentSlot)" ------------------- Pallet: "Grandpa" Raw Type: Variant(TypeDefVariant { variants: [Variant { name: "Live", fields: [], index: 0, docs: [] }, Variant { name: "PendingPause", fields: [Field { name: Some("scheduled_at"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }, Field { name: Some("delay"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }], index: 1, docs: [] }, Variant { name: "Paused", fields: [], index: 2, docs: [] }, Variant { name: "PendingResume", fields: [Field { name: Some("scheduled_at"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }, Field { name: Some("delay"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }], index: 3, docs: [] }] }) Storage Item name "State" Storage Item type StorageValue random input is: "not detected" ------------------- Pallet: "Grandpa" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("scheduled_at"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }, Field { name: Some("delay"), ty: UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, type_name: Some("N"), docs: [] }, Field { name: Some("next_authorities"), ty: UntrackedSymbol { id: 76, marker: PhantomData core::any::TypeId> }, type_name: Some("BoundedAuthorityList"), docs: [] }, Field { name: Some("forced"), ty: UntrackedSymbol { id: 77, marker: PhantomData core::any::TypeId> }, type_name: Some("Option"), docs: [] }] }) Storage Item name "PendingChange" Storage Item type StorageValue random input is: "let output: N = query_storage_map(PendingChange)" ------------------- Pallet: "Grandpa" Raw Type: Primitive(U32) Storage Item name "NextForced" Storage Item type StorageValue Found u32 fn submit_to_NextForced(testinput) random input is: "let testinput: u32 = 3932899990u32" ------------------- Pallet: "Grandpa" Raw Type: Tuple(TypeDefTuple { fields: [UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }, UntrackedSymbol { id: 4, marker: PhantomData core::any::TypeId> }] }) Storage Item name "Stalled" Storage Item type StorageValue tuple detected random input is: "query_storage_map(Stalled)" ------------------- Pallet: "Grandpa" Raw Type: Primitive(U64) Storage Item name "CurrentSetId" Storage Item type StorageValue Found u64 fn submit_to_CurrentSetId(testinput) random input is: "let testinput: u64 = 2857176501271752668u64" ------------------- Pallet: "Grandpa" Raw Type: Primitive(U32) Storage Item name "SetIdSession" Storage Item type StorageMap Found u32 fn submit_to_SetIdSession(testinput) random input is: "let testinput: u32 = 511600534u32" ------------------- Pallet: "Balances" Raw Type: Primitive(U128) Storage Item name "TotalIssuance" Storage Item type StorageValue Found u128 fn submit_to_TotalIssuance(testinput) random input is: "let testinput: u128 = 128266179741473819585300905533654238253u128" ------------------- Pallet: "Balances" Raw Type: Primitive(U128) Storage Item name "InactiveIssuance" Storage Item type StorageValue Found u128 fn submit_to_InactiveIssuance(testinput) random input is: "let testinput: u128 = 335394379612394196546720917146380103904u128" ------------------- Pallet: "Balances" Raw Type: Composite(TypeDefComposite { fields: [Field { name: Some("free"), ty: UntrackedSymbol { id: 6, marker: PhantomData core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("reserved"), ty: UntrackedSymbol { id: 6, marker: PhantomData core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("misc_frozen"), ty: UntrackedSymbol { id: 6, marker: PhantomData core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("fee_frozen"), ty: UntrackedSymbol { id: 6, marker: PhantomData core::any::TypeId> }, type_name: Some("Balance"), docs: [] }] }) Storage Item name "Account" Storage Item type StorageMap random input is: "let output: Balance = query_storage_map(Account)" ------------------- Pallet: "Balances" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 95, marker: PhantomData core::any::TypeId> }, type_name: Some("Vec"), docs: [] }] }) Storage Item name "Locks" Storage Item type StorageMap random input is: "let output: Vec = query_storage_map(Locks)" ------------------- Pallet: "Balances" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 98, marker: PhantomData core::any::TypeId> }, type_name: Some("Vec"), docs: [] }] }) Storage Item name "Reserves" Storage Item type StorageMap random input is: "let output: Vec = query_storage_map(Reserves)" ------------------- Pallet: "TransactionPayment" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 6, marker: PhantomData core::any::TypeId> }, type_name: Some("u128"), docs: [] }] }) Storage Item name "NextFeeMultiplier" Storage Item type StorageValue random input is: "let output: u128 = query_storage_map(NextFeeMultiplier)" ------------------- Pallet: "TransactionPayment" Raw Type: Variant(TypeDefVariant { variants: [Variant { name: "V1Ancient", fields: [], index: 0, docs: [] }, Variant { name: "V2", fields: [], index: 1, docs: [] }] }) Storage Item name "StorageVersion" Storage Item type StorageValue random input is: "not detected" ------------------- Pallet: "Sudo" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] }) Storage Item name "Key" Storage Item type StorageValue random input is: "let output: [u8; 32] = query_storage_map(Key)" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U32) Storage Item name "Something" Storage Item type StorageValue Found u32 fn submit_to_Something(testinput) random input is: "let testinput: u32 = 3788632801u32" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U64) Storage Item name "Something2" Storage Item type StorageValue Found u64 fn submit_to_Something2(testinput) random input is: "let testinput: u64 = 11036624901536880284u64" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U128) Storage Item name "Something6" Storage Item type StorageValue Found u128 fn submit_to_Something6(testinput) random input is: "let testinput: u128 = 51428145114796910025028127700019136884u128" ------------------- Pallet: "TemplateModule" Raw Type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] }) Storage Item name "SomeMapfirst" Storage Item type StorageMap random input is: "let output: [u8; 32] = query_storage_map(SomeMapfirst)" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U32) Storage Item name "NumberResultQuery" Storage Item type StorageValue Found u32 fn submit_to_NumberResultQuery(testinput) random input is: "let testinput: u32 = 2252786284u32" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U64) Storage Item name "SomeMaptwos" Storage Item type StorageValue Found u64 fn submit_to_SomeMaptwos(testinput) random input is: "let testinput: u64 = 16964874299915506651u64" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U64) Storage Item name "SomeMaptwo" Storage Item type StorageMap Found u64 fn submit_to_SomeMaptwo(testinput) random input is: "let testinput: u64 = 7762600299054620857u64" ------------------- Pallet: "TemplateModule" Raw Type: Primitive(U32) Storage Item name "SomeMapthree" Storage Item type StorageMap Found u32 fn submit_to_SomeMapthree(testinput) random input is: "let testinput: u32 = 41128944u32" -------------------