Skip to content

The one with subscription plugin

Compare
Choose a tag to compare
@ppedziwiatr ppedziwiatr released this 16 Nov 13:23
· 331 commits to main since this release

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