stacks-network / sbtc-developer-release

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

Stacks SDK: Add clarity contract smart contract helper functions #55

Open jferrant opened 10 months ago

jferrant commented 10 months ago

Add ability to call read only functions and ability to construct stacks transactions for mutable functions with a vector of args

Definition of Done: There exists a function to call a read only smart contract function There exists the necessary helper functions/function to call a modifying smart contract function

friedger commented 9 months ago

Something like this? https://github.com/stacks-network/stacks-blockchain/pull/3989

Where is the sdk hosted eventually? Here or on stacks-blockchain?

jferrant commented 9 months ago

Something like this? stacks-network/stacks-blockchain#3989

Where is the sdk hosted eventually? Here or on stacks-blockchain?

Yeah, pretty much exactly like that. I think we don't want stacks-blockchain to host this code because of its GPL license. However, we can only use the stacks-sdk if we probably remove a bunch of crates it currently uses that certain stacks devs are not happy with. Once the SDK is approved for stacks blockchain use, hopefully we can remove this duplicated code living on 3989.