v3

package
v0.0.0-...-a267da6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "gov"
)

Variables

This section is empty.

Functions

func ConvertToLegacyDeposit

func ConvertToLegacyDeposit(deposit *v1.Deposit) v1beta1.Deposit

func ConvertToLegacyProposal

func ConvertToLegacyProposal(proposal v1.Proposal) (v1beta1.Proposal, error)

ConvertToLegacyProposal takes a new proposal and attempts to convert it to the legacy proposal format. This conversion is best effort. New proposal types that don't have a legacy message will return a "nil" content. Returns error when the amount of messages in `proposal` is different than one.

func ConvertToLegacyTallyResult

func ConvertToLegacyTallyResult(tally *v1.TallyResult) (v1beta1.TallyResult, error)

func ConvertToLegacyVote

func ConvertToLegacyVote(vote v1.Vote) (v1beta1.Vote, error)

func ConvertToLegacyVoteOptions

func ConvertToLegacyVoteOptions(voteOptions []*v1.WeightedVoteOption) ([]v1beta1.WeightedVoteOption, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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