Sitelet https://github.com/Quantus-Network/quantus-cli/pull/27
Skip to content

Add raw storage access - #27

Merged
czareko merged 4 commits into
mainfrom
add_raw_storage_access
Sep 1, 2025
Merged

czareko merged 4 commits into
mainfrom
add_raw_storage_access

Conversation

@n13

@n13 n13 commented Aug 30, 2025 •

Copy link
Copy Markdown
Contributor

(I will clean up the comments, most of them should stay as they are)

get storage now also works with full storage keys, the likes of which are returned by other storage commands such as "iterate".

So now we can either

  • Provide pallet, name, and key
    Or
  • Provide storage key

Example:

quantusTestnet storage get --storage-key 0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9b3ba637fc7ecea094774a3f7b2632a1a5c13aaf952f050731feb3e0c3da1bccc6e9fbad3045428b471253971c99a298f --decode-as accountinfo
🔮 Quantus CLI
🗄️  Storage
🔎 Getting storage...
🔑 With storage key: 0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9b3ba637fc7ecea094774a3f7b2632a1a5c13aaf952f050731feb3e0c3da1bccc6e9fbad3045428b471253971c99a298f
✅ Raw Value: 0x00000000000000000100000000000000001a7118020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080
Attempting to decode as accountinfo...
✅ Decoded Value: AccountInfo {
    nonce: 0,
    consumers: 0,
    providers: 1,
    sufficients: 0,
    data: AccountData {
        free: 9000000000,
        reserved: 0,
        frozen: 0,
        flags: 170141183460469231731687303715884105728,
    },
}

n13 added 3 commits August 30, 2025 12:57
refactor storage to allow both --key --pallet --name and alternatively just --storage-key
added AccoundInfo decoding option.
@n13
n13 requested a review from czareko August 30, 2025 06:52

@illuzen illuzen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@czareko

czareko commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Looks good. I pushed a small fix for clippy.

@czareko
czareko merged commit ec2b93e into main Sep 1, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants