blueprint

package
v0.0.0-...-77dcbbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package blueprint provides blueprint for framework modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

type Command

type Command struct{}

type Endpoint

type Endpoint struct{}

func (*Endpoint) Get

type Module

type Module struct {
}

Module has default behavior for the module.

func (*Module) API

func (m *Module) API() interface{}

func (*Module) AfterCommandExecute

func (m *Module) AfterCommandExecute(ctx *statemachine.TransactionExecuteContext) error

func (*Module) AfterTransactionsExecute

func (m *Module) AfterTransactionsExecute(ctx *statemachine.AfterTransactionsExecuteContext) error

func (*Module) BeforeCommandExecute

func (m *Module) BeforeCommandExecute(ctx *statemachine.TransactionExecuteContext) error

func (*Module) BeforeTransactionsExecute

func (m *Module) BeforeTransactionsExecute(ctx *statemachine.BeforeTransactionsExecuteContext) error

func (*Module) Endpoint

func (m *Module) Endpoint() statemachine.Endpoint

func (*Module) Events

func (m *Module) Events() []string

func (*Module) FinalizeGenesisState

func (m *Module) FinalizeGenesisState(ctx *statemachine.GenesisBlockProcessingContext) error

func (*Module) GetCommand

func (m *Module) GetCommand(name string) (statemachine.Command, bool)

func (*Module) Init

func (m *Module) Init(cfg []byte) error

func (*Module) InitGenesisState

func (m *Module) InitGenesisState(ctx *statemachine.GenesisBlockProcessingContext) error

func (*Module) InsertAssets

func (m *Module) InsertAssets(ctx *statemachine.InsertAssetsContext) error

func (*Module) VerifyAssets

func (m *Module) VerifyAssets(ctx *statemachine.VerifyAssetsContext) error

func (*Module) VerifyTransaction

type Plugin

type Plugin struct {
}

BaseModule has default behavior for the module.

func (*Plugin) Endpoint

func (b *Plugin) Endpoint() statemachine.Endpoint

func (*Plugin) Events

func (b *Plugin) Events() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳