Closed flipchan closed 1 year ago
cargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues
Compiling uptest-examples v0.1.1 (/tmp/tmpuptest/uptest/examples)
Finished dev [unoptimized + debuginfo] target(s) in 43.80s
Running `target/debug/examples/get_pallet_storagemaps_storagevalues`
Starting
Amount of pallets: 39
looping throw loot
Pallet name: "System"
- Storage item name: "Account"
- Storage type: StorageMap
- Storage type id key: 3
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: Some("nonce"), ty: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Index"), docs: [] }, Field { name: Some("consumers"), ty: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("providers"), ty: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("sufficients"), ty: UntrackedSymbol { id: 4, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("RefCount"), docs: [] }, Field { name: Some("data"), ty: UntrackedSymbol { id: 5, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("AccountData"), docs: [] }] })
Pallet name: "System"
- Storage item name: "ExtrinsicCount"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "BlockWeight"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "AllExtrinsicsLen"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "BlockHash"
- Storage type: StorageMap
- Storage type id key: 11
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] })
Pallet name: "System"
- Storage item name: "ExtrinsicData"
- Storage type: StorageMap
- Storage type id key: 12
- Pallet Raw type: Sequence(TypeDefSequence { type_param: UntrackedSymbol { id: 2, marker: PhantomData<fn() -> core::any::TypeId> } })
Pallet name: "System"
- Storage item name: "Number"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "ParentHash"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "Digest"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "Events"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "EventCount"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "EventTopics"
- Storage type: StorageMap
- Storage type id key: 44
- Pallet Raw type: Sequence(TypeDefSequence { type_param: UntrackedSymbol { id: 45, marker: PhantomData<fn() -> core::any::TypeId> } })
Pallet name: "System"
- Storage item name: "LastRuntimeUpgrade"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "UpgradedToU32RefCount"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "UpgradedToTripleRefCount"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "System"
- Storage item name: "ExecutionPhase"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Timestamp"
- Storage item name: "Now"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Timestamp"
- Storage item name: "DidUpdate"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Aura"
- Storage item name: "Authorities"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Aura"
- Storage item name: "CurrentSlot"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "State"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "PendingChange"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "NextForced"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "Stalled"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "CurrentSetId"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Grandpa"
- Storage item name: "SetIdSession"
- Storage type: StorageMap
- Storage type id key: 4
- Pallet Raw type: Primitive(U32)
Pallet name: "Balances"
- Storage item name: "TotalIssuance"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Balances"
- Storage item name: "InactiveIssuance"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Balances"
- Storage item name: "Account"
- Storage type: StorageMap
- Storage type id key: 5
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: Some("free"), ty: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("reserved"), ty: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("misc_frozen"), ty: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Balance"), docs: [] }, Field { name: Some("fee_frozen"), ty: UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Balance"), docs: [] }] })
Pallet name: "Balances"
- Storage item name: "Locks"
- Storage type: StorageMap
- Storage type id key: 92
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 95, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Vec<T>"), docs: [] }] })
Pallet name: "Balances"
- Storage item name: "Reserves"
- Storage type: StorageMap
- Storage type id key: 96
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 98, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("Vec<T>"), docs: [] }] })
Pallet name: "TransactionPayment"
- Storage item name: "NextFeeMultiplier"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "TransactionPayment"
- Storage item name: "StorageVersion"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "Sudo"
- Storage item name: "Key"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "TemplateModule"
- Storage item name: "Something"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "TemplateModule"
- Storage item name: "Something2"
- Storage type: StorageValue
- Storage type id key: 0
- Pallet Raw type: Primitive(Bool)
Pallet name: "TemplateModule"
- Storage item name: "SomeMapfirst"
- Storage type: StorageMap
- Storage type id key: 0
- Pallet Raw type: Composite(TypeDefComposite { fields: [Field { name: None, ty: UntrackedSymbol { id: 1, marker: PhantomData<fn() -> core::any::TypeId> }, type_name: Some("[u8; 32]"), docs: [] }] })
Pallet name: "TemplateModule"
- Storage item name: "SomeMaptwo"
- Storage type: StorageMap
- Storage type id key: 10
- Pallet Raw type: Primitive(U64)
Pallet name: "TemplateModule"
- Storage item name: "SomeMapthree"
- Storage type: StorageMap
- Storage type id key: 6
- Pallet Raw type: Primitive(U128)
done
$ cargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues | grep -i bool
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
update in:
Finished dev [unoptimized + debuginfo] target(s) in 0.28s
Running `target/debug/examples/get_pallet_storagemaps_storagevalues`
$ cargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues | grep -i bool
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
- Pallet Raw type: Primitive(Bool)
Much better matching in #59
storage values does not render the default type id and type definition. defaults to a boolean if it doesnt know the type