Skip to content

Releases: warp-contracts/warp

The one with subscription plugin

16 Nov 13:23
Compare
Choose a tag to compare

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

Full Changelog: v1.2.18...v1.2.19