Releases: warp-contracts/warp
Releases · warp-contracts/warp
The one with subscription plugin
Description
This release adds a new plugin type - subscription
- which will allow to register subscription
plugins.
A subscription plugin will allow to subscribe to new interaction notifications (registered for the given contract) and automatically update the local state.
A new method has been added to the Contract
interface -
readStateFor(interactions?: GQLNodeInterface[]): Promise<SortKeyCacheResult<EvalStateResult<State>>>
It allows to read the state of the contract for the passed interactions and is an equivalent of calling readState(undefined, undefined, interactions)
The new subscription plugins are available here.
What's Changed
- feat: subscription plugin poc by @ppedziwiatr in #256
Full Changelog: v1.2.18...v1.2.19