stacks-network / sbtc-developer-release

sBTC primitives, signer components, helper tools
https://sbtc.tech
MIT License
1.98k stars 23 forks source link

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

Open jferrant opened 11 months ago

jferrant commented 11 months ago

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