sbtc-developer-release icon indicating copy to clipboard operation
sbtc-developer-release copied to clipboard

[stacks-signer] Retrieve challenge RevealInfo from the stacks node sbtc contract

Open jferrant opened this issue 2 years ago • 0 comments

Description

Add a function to make a read only contract call to the .sbtc contract to retrieve the list of "pending deposits"

Context

These pending deposits are ones that were submitted to the node via a "challenge" stx transaction. This should include the BTC transaction id and the reveal info necessary to reveal it.

Expected Approach

Make a function to make the read only call to the appropriate contract Deserialize the result into a RevealInfo struct and add it to a todolist for the signer

Acceptance Criteria

  • [ ] PR adds the feature ...
  • [ ] Test the deserialization of the challenge struct and ensure it is correct

jferrant avatar Nov 09 '23 17:11 jferrant