stacks.js icon indicating copy to clipboard operation
stacks.js copied to clipboard

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

Open kyranjamie opened this issue 1 year ago • 3 comments

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({}))
})

kyranjamie avatar Feb 27 '24 12:02 kyranjamie

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?

janniks avatar Feb 29 '24 13:02 janniks

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

kyranjamie avatar Feb 29 '24 14:02 kyranjamie

Cool idea, will check how easy it is to add

janniks avatar Mar 04 '24 17:03 janniks