hirosystems / stacks.js

JavaScript libraries for identity, auth, storage and transactions on the Stacks blockchain.
https://stacks.js.org
MIT License
944 stars 307 forks source link

Expose global stacks.js instance on `stacks.js.org` #1641

Open kyranjamie opened 4 months ago

kyranjamie commented 4 months ago

Not sure if supported by typedoc tool, but would be helpful if you could access the globals here.

Example use case

await LeatherProvider.request('stx_signMessage', { 
  messageType: 'structured', 
  message: stacks.serializeCV(stacks.stringCV('test')), 
  domain: stacks.serializeCV(stacks.tupleCV({}))
})
janniks commented 4 months ago

What do you mean here? Is this just a documentation change request? Or adding features to the console (as a playground?) to the .org docs site?

kyranjamie commented 4 months ago

As in, on the docs site, make the packages available via the global object (window) available in console.

janniks commented 4 months ago

Cool idea, will check how easy it is to add