Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockAndStateUpdate ¶
type BlockAndStateUpdate struct {
Block *core.Block
StateUpdate *core.StateUpdate
}
type JunoPlugin ¶
type JunoPlugin interface {
Init() error
Shutdown() error
NewBlock(
block *core.Block,
stateUpdate *core.StateUpdate,
newClasses map[felt.Felt]core.ClassDefinition,
) error
// The state is reverted by applying a write operation with the reverseStateDiff's StorageDiffs, Nonces, and ReplacedClasses,
// and a delete option with its DeclaredV0Classes, DeclaredV1Classes, and ReplacedClasses.
RevertBlock(from, to *BlockAndStateUpdate, reverseStateDiff *core.StateDiff) error
}
func Load ¶
func Load(pluginPath string) (JunoPlugin, error)
type Service ¶ added in v0.12.4
type Service struct {
// contains filtered or unexported fields
}
Service provides an abstraction for signalling the plugin to shut down.
func NewService ¶ added in v0.12.4
func NewService(plugin JunoPlugin) *Service
Click to show internal directories.
Click to hide internal directories.