bank

package
v0.3.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(b broker, cli *grpcClient.Client, tbM tb.ToBroker, cdc codec.Codec) *Module

func (*Module) HandleBlock

func (m *Module) HandleBlock(ctx context.Context, block *types.Block) error

func (*Module) HandleEndBlocker

func (m *Module) HandleEndBlocker(ctx context.Context, eventsMap types.BlockerEvents, height int64) error

func (*Module) HandleGenesis

func (m *Module) HandleGenesis(ctx context.Context, _ *cometbfttypes.GenesisDoc, appState map[string]json.RawMessage) error

func (*Module) HandleMessage

func (m *Module) HandleMessage(ctx context.Context, index int, cosmosMsg sdk.Msg, tx *types.Tx) error

func (*Module) Name

func (m *Module) Name() string

func (*Module) SetTallyCache

func (m *Module) SetTallyCache(cache TallyCache[uint64, int64])

type TallyCache

type TallyCache[K, V comparable] interface {
	UpdateCacheValue(K, V) bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL