Skip to content

[Feature] EVM precompiles to check hotkey's alpha stakes #1434

@mateuszsrebrny-reef

Description

@mateuszsrebrny-reef

Is your feature request related to a problem? Please describe.

From within a smartcontract we would like to be able to access:

1️⃣ the hotkey's balance of alphas staked to a vali on a subnet
2️⃣ the list of valis a hotkey has alphas staked to on a subnet
3️⃣ the total of alphas staked by a hotkey to a subnet (derivable from 1 & 2)

I hear the first is easy, but still that would be useful: https://discordapp.com/channels/1120750674595024897/1242999357436071956/1351591677948596254

Describe the solution you'd like

I would like precompiles that can get me answer for all three questions :)
Whether it would be 3 precompiles or less but parametrized differently I don't really care.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions