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.Class) 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 PluginService ¶
type PluginService struct {
// contains filtered or unexported fields
}
func New ¶
func New(log utils.SimpleLogger) *PluginService
func (*PluginService) WithPlugin ¶
func (p *PluginService) WithPlugin(jPlugin JunoPlugin)
Click to show internal directories.
Click to hide internal directories.