wharfkit / session

Create account-based sessions, perform transactions, and allow users to login using Antelope-based blockchains.
Other
9 stars 1 forks source link

Create a static method to retrieve a client for use in the contract kit #56

Closed aaroncox closed 1 year ago

aaroncox commented 1 year ago

Currently the contract kit requires passing in a session, but we want to also be able to use the contract kit instances without requiring a session (like to access table data for an unauthenticated user). The contract kit is going to need to somehow request an APIClient from the Session Kit (or other global state?), understand which chain is in use, and then utilize that APIClient to make requests for things like table data.

If the Contract Kit wants to perform an action, it'll still need a session.

aaroncox commented 1 year ago

Redesign of the Contract Kit has changed and this isn't needed.