MCPcopy
hub / github.com/canopy-network/canopy / PluginCompatibleFSM

Interface PluginCompatibleFSM

lib/plugin.go:21–26  ·  view source on GitHub ↗

* This file contains logic for extensible plugins that enable smart contract abstraction */ PluginCompatibleFSM: defines the 'expected' interface that plugins utilize to read and write data from the FSM store

Source from the content-addressed store, hash-verified

19
20// PluginCompatibleFSM: defines the 'expected' interface that plugins utilize to read and write data from the FSM store
21type PluginCompatibleFSM interface {
22 // StateRead() executes a 'read request' to the state store
23 StateRead(request *PluginStateReadRequest) (response PluginStateReadResponse, err ErrorI)
24 // StateWrite() executes a 'write request' to the state store
25 StateWrite(request *PluginStateWriteRequest) (response PluginStateWriteResponse, err ErrorI)
26}
27
28// Plugin defines the 'VM-less' extension of the Finite State Machine
29type Plugin struct {

Callers 8

CheckTxMethod · 0.65
DeliverMessageSendMethod · 0.65
CheckTxMethod · 0.65
DeliverMessageSendMethod · 0.65
DeliverMessageSendMethod · 0.65
DeliverMessageSendMethod · 0.65

Implementers 3

Pluginplugin/typescript/src/contract/plugin.
Pluginplugin/go/contract/plugin.go
StateMachinefsm/state.go

Calls

no outgoing calls

Tested by

no test coverage detected