staking

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeginRedelegateMsg added in v0.1.2

type BeginRedelegateMsg struct {
	processorCommon.TxMsg
	FromValidator string
	ToValidator   string
}

func (BeginRedelegateMsg) String added in v0.1.2

func (msg BeginRedelegateMsg) String() string

type CreateValidatorMsg

type CreateValidatorMsg struct {
	processorCommon.TxMsg
	Address    string
	Name       string
	Commission float64
}

func (CreateValidatorMsg) String

func (msg CreateValidatorMsg) String() string

type DelegateMsg

type DelegateMsg struct {
	processorCommon.TxMsg
	Validator string
}

func (DelegateMsg) String

func (msg DelegateMsg) String() string

type StakingProcessor

type StakingProcessor struct {
	*processorCommon.BaseProcessor
	*cosmos.CosmosClient
	// contains filtered or unexported fields
}

func NewStakingProcessor

func NewStakingProcessor(cfg StakingProcessorConfig,
	cosmosClient *cosmos.CosmosClient,
	db *store.Store,
	log logger.Logger,
) (*StakingProcessor, error)

func (*StakingProcessor) Process

func (p *StakingProcessor) Process(ctx context.Context, receipt *sdk.TxResponse) error

func (*StakingProcessor) Queue

func (p *StakingProcessor) Queue(msg interface{})

func (*StakingProcessor) Start

func (p *StakingProcessor) Start(ctx context.Context)

type StakingProcessorConfig

type StakingProcessorConfig struct {
	common.BaseConfig
}

func DefaultConfig

func DefaultConfig() StakingProcessorConfig

func (StakingProcessorConfig) IsValid

func (cfg StakingProcessorConfig) IsValid() (bool, error)

type UndelegateMsg

type UndelegateMsg struct {
	processorCommon.TxMsg
	Validator string
}

func (UndelegateMsg) String

func (msg UndelegateMsg) String() string

Jump to

Keyboard shortcuts

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