stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

Better support for automation of stacking pools

Open friedger opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. I would like to automate managing a stacking pool (delegation of stacking) as much as possible. Currently, it is not possible

  1. to discover if a user delegates to my pool's delegation address. This is needed to initiate the stacking process for a user.
  2. to discover the delegated amount of a user in a smart contract. This is needed to stack the user's STX in a managing contract.

Describe the solution you'd like For 1., I would like to see an event when use delegates or revokes stacks For 2., I would like to see a function in pox to read the delegation state or more generally a clarity function to read map from another contract (https://github.com/clarity-lang/reference/issues/30)

Describe alternatives you've considered Currently, I do this off-chain

Additional context [Ultra Mega Super Stacks 2.1 Thread] https://github.com/stacksgov/sips/discussions/16

friedger avatar Sep 19 '21 06:09 friedger

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 02:09 stale[bot]

This issue has been automatically closed. Please reopen if needed.

stale[bot] avatar Oct 22 '22 20:10 stale[bot]