Breaking changes for stacks.js
janniks opened this issue ยท 0 comments
janniks commented
more steps to come ๐
- #1655
- #1703
- allow use of Network or Name everywhere possible
- allow Clarity values to also use number/string/bigint
- refactor to use asset-info string everywhere possible, refactor to contract-address-id strings (.) (::)
- rename
NftString
to Asset, since it's the same for FT contracts, update the builders as well
- rename
- prefer string addresses everywhere (maybe doesn't need to be message type)
- make all methods use new network obj, instead of chain-id etc.
- consolidate capitalization (camel case vs STX/ID)
- remove structured signature from message types (and other non-needed wrapper types)
non-breaking (extra credit)
- add pox tuple address helper to the Cl. namespace
- add missing tx creation checks (e.g. contract name too long)
- add detectable (control flowable) errors everywhere
e.g. FetchError for anything that failed during fetch
errors should still just be a string (and maybe a .originalError) - clean imports everywhere
- get rid of comments using [[]] syntax
- clean up manual re-exports and always export where defined