vote

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles voting on TSS key processes

func NewHandler

func NewHandler(txSigner TxSigner, log zerolog.Logger, granter string) *Handler

NewHandler creates a new TSS vote handler

func (*Handler) VoteTssKeyProcess

func (h *Handler) VoteTssKeyProcess(ctx context.Context, tssPubKey string, keyID string, processId uint64) (string, error)

VoteTssKeyProcess votes on a completed TSS key process. Returns vote tx hash on success, error on failure.

type TxSigner

type TxSigner interface {
	SignAndBroadcastAuthZTx(ctx context.Context, msgs []sdk.Msg, memo string, gasLimit uint64, feeAmount sdk.Coins) (*sdk.TxResponse, error)
}

TxSigner defines the interface for signing and broadcasting transactions. Defined locally to avoid import cycles with core package.

Jump to

Keyboard shortcuts

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