types

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName = "uvalidator"

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthBallot        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBallot          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBallot = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// ParamsKey saves the current module params.
	ParamsKey = collections.NewPrefix(0)

	// ParamsName is the name of the params collection.
	ParamsName = "params"

	// CoreToUniversalKey is the key for the mapping of core validator addresses to universal validator addresses.
	CoreToUniversalKey = collections.NewPrefix(1)

	// CoreToUniversalName is the name of the core to universal mapping.
	CoreToUniversalName = "core_to_universal"

	// CoreValidatorSetKey is the key for the set of core validator addresses.
	CoreValidatorSetKey = collections.NewPrefix(2)

	// CoreValidatorSetName is the name of the core validator set.
	CoreValidatorSetName = "core_validator_set"

	// BallotsKey is the key for the collection of ballots.
	BallotsKey = collections.NewPrefix(3)

	// BallotsName is the name of the ballots collection.
	BallotsName = "ballots"

	// ActiveBallotIDsKey is the key for the set of active ballot IDs.
	ActiveBallotIDsKey = collections.NewPrefix(4)

	// ActiveBallotIDsName is the name of the active ballot IDs set.
	ActiveBallotIDsName = "active_ballot_ids"

	// ExpiredBallotIDsKey is the key for the set of expired ballot IDs.
	ExpiredBallotIDsKey = collections.NewPrefix(5)

	// ExpiredBallotIDsName is the name of the expired ballot IDs set.
	ExpiredBallotIDsName = "expired_ballot_ids"

	// FinalizedBallotIDsKey is the key for the set of finalized ballot IDs.
	FinalizedBallotIDsKey = collections.NewPrefix(6)

	// FinalizedBallotIDsName is the name of the finalized ballot IDs set.
	FinalizedBallotIDsName = "finalized_ballot_ids"
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var BallotObservationType_name = map[int32]string{
	0: "BALLOT_OBSERVATION_TYPE_UNSPECIFIED",
	1: "BALLOT_OBSERVATION_TYPE_INBOUND_TX",
	2: "BALLOT_OBSERVATION_TYPE_OUTBOUND_TX",
	3: "BALLOT_OBSERVATION_TYPE_TSS_KEY",
	4: "BALLOT_OBSERVATION_TYPE_FUND_MIGRATION",
}
View Source
var BallotObservationType_value = map[string]int32{
	"BALLOT_OBSERVATION_TYPE_UNSPECIFIED":    0,
	"BALLOT_OBSERVATION_TYPE_INBOUND_TX":     1,
	"BALLOT_OBSERVATION_TYPE_OUTBOUND_TX":    2,
	"BALLOT_OBSERVATION_TYPE_TSS_KEY":        3,
	"BALLOT_OBSERVATION_TYPE_FUND_MIGRATION": 4,
}
View Source
var BallotStatus_name = map[int32]string{
	0: "BALLOT_STATUS_UNSPECIFIED",
	1: "BALLOT_STATUS_PENDING",
	2: "BALLOT_STATUS_PASSED",
	3: "BALLOT_STATUS_REJECTED",
	4: "BALLOT_STATUS_EXPIRED",
}
View Source
var BallotStatus_value = map[string]int32{
	"BALLOT_STATUS_UNSPECIFIED": 0,
	"BALLOT_STATUS_PENDING":     1,
	"BALLOT_STATUS_PASSED":      2,
	"BALLOT_STATUS_REJECTED":    3,
	"BALLOT_STATUS_EXPIRED":     4,
}
View Source
var ORMModuleSchema = ormv1alpha1.ModuleSchemaDescriptor{
	SchemaFile: []*ormv1alpha1.ModuleSchemaDescriptor_FileEntry{
		{Id: 1, ProtoFileName: "uvalidator/v1/state.proto"},
	},
	Prefix: []byte{0},
}
View Source
var TransitionReason_name = map[int32]string{
	0: "TRANSITION_REASON_UNSPECIFIED",
	1: "TRANSITION_REASON_ADMIN",
	2: "TRANSITION_REASON_STAKING_HOOK",
}
View Source
var TransitionReason_value = map[string]int32{
	"TRANSITION_REASON_UNSPECIFIED":  0,
	"TRANSITION_REASON_ADMIN":        1,
	"TRANSITION_REASON_STAKING_HOOK": 2,
}
View Source
var UVStatus_name = map[int32]string{
	0: "UV_STATUS_UNSPECIFIED",
	1: "UV_STATUS_ACTIVE",
	2: "UV_STATUS_PENDING_JOIN",
	3: "UV_STATUS_PENDING_LEAVE",
	4: "UV_STATUS_INACTIVE",
}
View Source
var UVStatus_value = map[string]int32{
	"UV_STATUS_UNSPECIFIED":   0,
	"UV_STATUS_ACTIVE":        1,
	"UV_STATUS_PENDING_JOIN":  2,
	"UV_STATUS_PENDING_LEAVE": 3,
	"UV_STATUS_INACTIVE":      4,
}
View Source
var VoteResult_name = map[int32]string{
	0: "VOTE_RESULT_NOT_YET_VOTED",
	1: "VOTE_RESULT_SUCCESS",
	2: "VOTE_RESULT_FAILURE",
}
View Source
var VoteResult_value = map[string]int32{
	"VOTE_RESULT_NOT_YET_VOTED": 0,
	"VOTE_RESULT_SUCCESS":       1,
	"VOTE_RESULT_FAILURE":       2,
}

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper added in v0.0.13

type AccountKeeper interface {
	AddressCodec() address.Codec
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx context.Context, name string) sdk.ModuleAccountI
}

type Ballot

type Ballot struct {
	Id                 string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BallotType         BallotObservationType `` /* 133-byte string literal not displayed */
	EligibleVoters     []string              `protobuf:"bytes,3,rep,name=eligible_voters,json=eligibleVoters,proto3" json:"eligible_voters,omitempty"`
	Votes              []VoteResult          `protobuf:"varint,4,rep,packed,name=votes,proto3,enum=uvalidator.v1.VoteResult" json:"votes,omitempty"`
	VotingThreshold    int64                 `protobuf:"varint,5,opt,name=voting_threshold,json=votingThreshold,proto3" json:"voting_threshold,omitempty"`
	Status             BallotStatus          `protobuf:"varint,6,opt,name=status,proto3,enum=uvalidator.v1.BallotStatus" json:"status,omitempty"`
	BlockHeightCreated int64                 `protobuf:"varint,7,opt,name=block_height_created,json=blockHeightCreated,proto3" json:"block_height_created,omitempty"`
	BlockHeightExpiry  int64                 `protobuf:"varint,8,opt,name=block_height_expiry,json=blockHeightExpiry,proto3" json:"block_height_expiry,omitempty"`
}

--------------------------- Core Ballot Message (Indexed Voting Approach) ---------------------------

func NewBallot

func NewBallot(
	id string,
	ballotType BallotObservationType,
	voters []string,
	votesNeeded int64,
	createdHeight int64,
	expiryAfterBlocks int64,
) Ballot

NewBallot creates a new Ballot with default pending state.

func (Ballot) AddVote

func (b Ballot) AddVote(address string, vote VoteResult) (Ballot, error)

AddVote records a vote for the given voter. Ensures the voter is eligible, hasn't already voted, and ballot is pending.

func (Ballot) Age

func (b Ballot) Age(currentHeight int64) int64

Age returns how many blocks have passed since creation.

func (Ballot) CountVotes

func (b Ballot) CountVotes() (yes, no int)

CountVotes counts the YES and NO votes in the ballot.

func (*Ballot) Descriptor

func (*Ballot) Descriptor() ([]byte, []int)

func (Ballot) ExpiryTime

func (b Ballot) ExpiryTime(avgBlockTime time.Duration) time.Time

ExpiryTime estimates the wall-clock time at expiry given an average block time.

func (*Ballot) GetBallotType

func (m *Ballot) GetBallotType() BallotObservationType

func (*Ballot) GetBlockHeightCreated

func (m *Ballot) GetBlockHeightCreated() int64

func (*Ballot) GetBlockHeightExpiry

func (m *Ballot) GetBlockHeightExpiry() int64

func (*Ballot) GetEligibleVoters

func (m *Ballot) GetEligibleVoters() []string

func (*Ballot) GetId

func (m *Ballot) GetId() string

func (*Ballot) GetStatus

func (m *Ballot) GetStatus() BallotStatus

func (Ballot) GetVoterIndex

func (b Ballot) GetVoterIndex(address string) int

GetVoterIndex returns the index of the given address in the eligible voter list. Returns -1 if not found.

func (*Ballot) GetVotes

func (m *Ballot) GetVotes() []VoteResult

func (*Ballot) GetVotingThreshold

func (m *Ballot) GetVotingThreshold() int64

func (Ballot) HasVoted

func (b Ballot) HasVoted(address string) bool

HasVoted checks if the given voter address already has a vote recorded.

func (*Ballot) InitEmptyVotes

func (b *Ballot) InitEmptyVotes()

InitEmptyVotes initializes the Votes slice to match EligibleVoters length.

func (Ballot) IsExpired

func (b Ballot) IsExpired(currentHeight int64) bool

IsExpired checks if the ballot has passed its expiry height.

func (Ballot) IsFinalized

func (b Ballot) IsFinalized() bool

func (Ballot) IsFinalizingVote

func (b Ballot) IsFinalizingVote() (Ballot, bool)

IsFinalizingVote checks if the ballot is reaching the finalization in this tx

func (*Ballot) Marshal

func (m *Ballot) Marshal() (dAtA []byte, err error)

func (*Ballot) MarshalTo

func (m *Ballot) MarshalTo(dAtA []byte) (int, error)

func (*Ballot) MarshalToSizedBuffer

func (m *Ballot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ballot) ProtoMessage

func (*Ballot) ProtoMessage()

func (Ballot) RemainingTime

func (b Ballot) RemainingTime(currentHeight int64) int64

RemainingTime returns the remaining time in blocks until expiry (useful for queries).

func (*Ballot) Reset

func (m *Ballot) Reset()

func (Ballot) ShouldPass

func (b Ballot) ShouldPass() bool

ShouldPass returns true if the YES votes meet or exceed the stored voting threshold.

func (Ballot) ShouldReject

func (b Ballot) ShouldReject() bool

ShouldReject returns true if the NO votes make it impossible to reach the threshold.

func (*Ballot) Size

func (m *Ballot) Size() (n int)

func (*Ballot) String

func (m *Ballot) String() string

func (*Ballot) Unmarshal

func (m *Ballot) Unmarshal(dAtA []byte) error

func (*Ballot) XXX_DiscardUnknown

func (m *Ballot) XXX_DiscardUnknown()

func (*Ballot) XXX_Marshal

func (m *Ballot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ballot) XXX_Merge

func (m *Ballot) XXX_Merge(src proto.Message)

func (*Ballot) XXX_Size

func (m *Ballot) XXX_Size() int

func (*Ballot) XXX_Unmarshal

func (m *Ballot) XXX_Unmarshal(b []byte) error

type BallotHooks added in v0.0.40

type BallotHooks interface {
	AfterBallotTerminal(
		ctx sdk.Context,
		ballotID string,
		ballotType BallotObservationType,
		status BallotStatus,
	) error
}

BallotHooks defines the interface that external modules can implement to react to ballot lifecycle terminal transitions (EXPIRED, PASSED, REJECTED).

Implementations MUST be idempotent — terminal transitions are write-once per ballot in normal flow, but defensive idempotency protects against state replay or future code paths that might re-mark a ballot.

Implementations SHOULD NOT block the terminal transition by returning errors. The terminal status is the desired outcome regardless of secondary-index side-effect failure; callers log+ignore hook errors.

type BallotObservationType

type BallotObservationType int32

--------------------------- Ballot Observation Type ---------------------------

const (
	BallotObservationType_BALLOT_OBSERVATION_TYPE_UNSPECIFIED    BallotObservationType = 0
	BallotObservationType_BALLOT_OBSERVATION_TYPE_INBOUND_TX     BallotObservationType = 1
	BallotObservationType_BALLOT_OBSERVATION_TYPE_OUTBOUND_TX    BallotObservationType = 2
	BallotObservationType_BALLOT_OBSERVATION_TYPE_TSS_KEY        BallotObservationType = 3
	BallotObservationType_BALLOT_OBSERVATION_TYPE_FUND_MIGRATION BallotObservationType = 4
)

func (BallotObservationType) EnumDescriptor

func (BallotObservationType) EnumDescriptor() ([]byte, []int)

func (BallotObservationType) String

func (x BallotObservationType) String() string

type BallotStatus

type BallotStatus int32

--------------------------- Ballot Status Enum ---------------------------

const (
	BallotStatus_BALLOT_STATUS_UNSPECIFIED BallotStatus = 0
	BallotStatus_BALLOT_STATUS_PENDING     BallotStatus = 1
	BallotStatus_BALLOT_STATUS_PASSED      BallotStatus = 2
	BallotStatus_BALLOT_STATUS_REJECTED    BallotStatus = 3
	BallotStatus_BALLOT_STATUS_EXPIRED     BallotStatus = 4
)

func (BallotStatus) EnumDescriptor

func (BallotStatus) EnumDescriptor() ([]byte, []int)

func (BallotStatus) String

func (x BallotStatus) String() string

type BankKeeper added in v0.0.13

type BankKeeper interface {
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins

	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DistributionKeeper added in v0.0.13

type DistributionKeeper interface {
	FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
	GetCommunityTax(ctx context.Context) (math.LegacyDec, error)
	AllocateTokensToValidator(ctx context.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) error
}

type ExampleData

type ExampleData struct {
	Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Amount  uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*ExampleData) Descriptor

func (*ExampleData) Descriptor() ([]byte, []int)

func (*ExampleData) GetAccount

func (m *ExampleData) GetAccount() []byte

func (*ExampleData) GetAmount

func (m *ExampleData) GetAmount() uint64

func (*ExampleData) Marshal

func (m *ExampleData) Marshal() (dAtA []byte, err error)

func (*ExampleData) MarshalTo

func (m *ExampleData) MarshalTo(dAtA []byte) (int, error)

func (*ExampleData) MarshalToSizedBuffer

func (m *ExampleData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExampleData) ProtoMessage

func (*ExampleData) ProtoMessage()

func (*ExampleData) Reset

func (m *ExampleData) Reset()

func (*ExampleData) Size

func (m *ExampleData) Size() (n int)

func (*ExampleData) String

func (m *ExampleData) String() string

func (*ExampleData) Unmarshal

func (m *ExampleData) Unmarshal(dAtA []byte) error

func (*ExampleData) XXX_DiscardUnknown

func (m *ExampleData) XXX_DiscardUnknown()

func (*ExampleData) XXX_Marshal

func (m *ExampleData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExampleData) XXX_Merge

func (m *ExampleData) XXX_Merge(src proto.Message)

func (*ExampleData) XXX_Size

func (m *ExampleData) XXX_Size() int

func (*ExampleData) XXX_Unmarshal

func (m *ExampleData) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// Params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// universal_validators are key-value pairs from the UniversalValidatorSet Map.
	UniversalValidators []UniversalValidatorEntry `protobuf:"bytes,2,rep,name=universal_validators,json=universalValidators,proto3" json:"universal_validators"`
	// ballots are key-value pairs from the Ballots Map.
	Ballots []Ballot `protobuf:"bytes,3,rep,name=ballots,proto3" json:"ballots"`
	// active_ballot_ids are keys from the ActiveBallotIDs KeySet.
	ActiveBallotIds []string `protobuf:"bytes,4,rep,name=active_ballot_ids,json=activeBallotIds,proto3" json:"active_ballot_ids,omitempty"`
	// expired_ballot_ids are keys from the ExpiredBallotIDs KeySet.
	ExpiredBallotIds []string `protobuf:"bytes,5,rep,name=expired_ballot_ids,json=expiredBallotIds,proto3" json:"expired_ballot_ids,omitempty"`
	// finalized_ballot_ids are keys from the FinalizedBallotIDs KeySet.
	FinalizedBallotIds []string `protobuf:"bytes,6,rep,name=finalized_ballot_ids,json=finalizedBallotIds,proto3" json:"finalized_ballot_ids,omitempty"`
}

GenesisState defines the module genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetActiveBallotIds added in v0.0.23

func (m *GenesisState) GetActiveBallotIds() []string

func (*GenesisState) GetBallots added in v0.0.23

func (m *GenesisState) GetBallots() []Ballot

func (*GenesisState) GetExpiredBallotIds added in v0.0.23

func (m *GenesisState) GetExpiredBallotIds() []string

func (*GenesisState) GetFinalizedBallotIds added in v0.0.23

func (m *GenesisState) GetFinalizedBallotIds() []string

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetUniversalValidators added in v0.0.23

func (m *GenesisState) GetUniversalValidators() []UniversalValidatorEntry

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type IdentityInfo

type IdentityInfo struct {
	CoreValidatorAddress string `protobuf:"bytes,1,opt,name=core_validator_address,json=coreValidatorAddress,proto3" json:"core_validator_address,omitempty"`
}

Identity info for validator (chain-level)

func (*IdentityInfo) Descriptor

func (*IdentityInfo) Descriptor() ([]byte, []int)

func (*IdentityInfo) Equal

func (this *IdentityInfo) Equal(that interface{}) bool

func (*IdentityInfo) GetCoreValidatorAddress

func (m *IdentityInfo) GetCoreValidatorAddress() string

func (*IdentityInfo) Marshal

func (m *IdentityInfo) Marshal() (dAtA []byte, err error)

func (*IdentityInfo) MarshalTo

func (m *IdentityInfo) MarshalTo(dAtA []byte) (int, error)

func (*IdentityInfo) MarshalToSizedBuffer

func (m *IdentityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IdentityInfo) ProtoMessage

func (*IdentityInfo) ProtoMessage()

func (*IdentityInfo) Reset

func (m *IdentityInfo) Reset()

func (*IdentityInfo) Size

func (m *IdentityInfo) Size() (n int)

func (*IdentityInfo) String

func (m *IdentityInfo) String() string

func (*IdentityInfo) Unmarshal

func (m *IdentityInfo) Unmarshal(dAtA []byte) error

func (IdentityInfo) ValidateBasic

func (p IdentityInfo) ValidateBasic() error

Validate does the sanity check on the IdentityInfo message type.

func (*IdentityInfo) XXX_DiscardUnknown

func (m *IdentityInfo) XXX_DiscardUnknown()

func (*IdentityInfo) XXX_Marshal

func (m *IdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentityInfo) XXX_Merge

func (m *IdentityInfo) XXX_Merge(src proto.Message)

func (*IdentityInfo) XXX_Size

func (m *IdentityInfo) XXX_Size() int

func (*IdentityInfo) XXX_Unmarshal

func (m *IdentityInfo) XXX_Unmarshal(b []byte) error

type LifecycleEvent

type LifecycleEvent struct {
	Status      UVStatus         `protobuf:"varint,1,opt,name=status,proto3,enum=uvalidator.v1.UVStatus" json:"status,omitempty"`
	BlockHeight int64            `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Reason      TransitionReason `protobuf:"varint,3,opt,name=reason,proto3,enum=uvalidator.v1.TransitionReason" json:"reason,omitempty"`
}

Lifecycle event info

func (*LifecycleEvent) Descriptor

func (*LifecycleEvent) Descriptor() ([]byte, []int)

func (*LifecycleEvent) Equal

func (this *LifecycleEvent) Equal(that interface{}) bool

func (*LifecycleEvent) GetBlockHeight

func (m *LifecycleEvent) GetBlockHeight() int64

func (*LifecycleEvent) GetReason added in v0.0.40

func (m *LifecycleEvent) GetReason() TransitionReason

func (*LifecycleEvent) GetStatus

func (m *LifecycleEvent) GetStatus() UVStatus

func (*LifecycleEvent) Marshal

func (m *LifecycleEvent) Marshal() (dAtA []byte, err error)

func (*LifecycleEvent) MarshalTo

func (m *LifecycleEvent) MarshalTo(dAtA []byte) (int, error)

func (*LifecycleEvent) MarshalToSizedBuffer

func (m *LifecycleEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LifecycleEvent) ProtoMessage

func (*LifecycleEvent) ProtoMessage()

func (*LifecycleEvent) Reset

func (m *LifecycleEvent) Reset()

func (*LifecycleEvent) Size

func (m *LifecycleEvent) Size() (n int)

func (*LifecycleEvent) String

func (m *LifecycleEvent) String() string

func (*LifecycleEvent) Unmarshal

func (m *LifecycleEvent) Unmarshal(dAtA []byte) error

func (LifecycleEvent) ValidateBasic

func (p LifecycleEvent) ValidateBasic() error

Validate does the sanity check on the LifecycleEvent message type.

func (*LifecycleEvent) XXX_DiscardUnknown

func (m *LifecycleEvent) XXX_DiscardUnknown()

func (*LifecycleEvent) XXX_Marshal

func (m *LifecycleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LifecycleEvent) XXX_Merge

func (m *LifecycleEvent) XXX_Merge(src proto.Message)

func (*LifecycleEvent) XXX_Size

func (m *LifecycleEvent) XXX_Size() int

func (*LifecycleEvent) XXX_Unmarshal

func (m *LifecycleEvent) XXX_Unmarshal(b []byte) error

type LifecycleInfo

type LifecycleInfo struct {
	CurrentStatus UVStatus          `` /* 129-byte string literal not displayed */
	History       []*LifecycleEvent `protobuf:"bytes,2,rep,name=history,proto3" json:"history,omitempty"`
}

Validator lifecycle info

func (*LifecycleInfo) Descriptor

func (*LifecycleInfo) Descriptor() ([]byte, []int)

func (*LifecycleInfo) Equal

func (this *LifecycleInfo) Equal(that interface{}) bool

func (*LifecycleInfo) GetCurrentStatus

func (m *LifecycleInfo) GetCurrentStatus() UVStatus

func (*LifecycleInfo) GetHistory

func (m *LifecycleInfo) GetHistory() []*LifecycleEvent

func (*LifecycleInfo) Marshal

func (m *LifecycleInfo) Marshal() (dAtA []byte, err error)

func (*LifecycleInfo) MarshalTo

func (m *LifecycleInfo) MarshalTo(dAtA []byte) (int, error)

func (*LifecycleInfo) MarshalToSizedBuffer

func (m *LifecycleInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LifecycleInfo) ProtoMessage

func (*LifecycleInfo) ProtoMessage()

func (*LifecycleInfo) Reset

func (m *LifecycleInfo) Reset()

func (*LifecycleInfo) Size

func (m *LifecycleInfo) Size() (n int)

func (*LifecycleInfo) String

func (m *LifecycleInfo) String() string

func (*LifecycleInfo) Unmarshal

func (m *LifecycleInfo) Unmarshal(dAtA []byte) error

func (LifecycleInfo) ValidateBasic

func (p LifecycleInfo) ValidateBasic() error

ValidateBasic performs stateless validation on the LifecycleInfo struct. Ensures that current status is valid and lifecycle history entries are consistent.

func (*LifecycleInfo) XXX_DiscardUnknown

func (m *LifecycleInfo) XXX_DiscardUnknown()

func (*LifecycleInfo) XXX_Marshal

func (m *LifecycleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LifecycleInfo) XXX_Merge

func (m *LifecycleInfo) XXX_Merge(src proto.Message)

func (*LifecycleInfo) XXX_Size

func (m *LifecycleInfo) XXX_Size() int

func (*LifecycleInfo) XXX_Unmarshal

func (m *LifecycleInfo) XXX_Unmarshal(b []byte) error

type MsgAddUniversalValidator

type MsgAddUniversalValidator struct {
	// signer is the address authorized to execute this message
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// core_validator_address is the address of the core validator.
	CoreValidatorAddress string `protobuf:"bytes,2,opt,name=core_validator_address,json=coreValidatorAddress,proto3" json:"core_validator_address,omitempty"`
	// network metadata for validator node (IP, etc.)
	Network *NetworkInfo `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
}

func NewMsgAddUniversalValidator

func NewMsgAddUniversalValidator(
	sender sdk.Address,
	coreValidatorAddress sdk.Address,
	pubKey string,
	network NetworkInfo,
) *MsgAddUniversalValidator

NewMsgAddUniversalValidator creates new instance of MsgAddUniversalValidator

func (*MsgAddUniversalValidator) Descriptor

func (*MsgAddUniversalValidator) Descriptor() ([]byte, []int)

func (*MsgAddUniversalValidator) GetCoreValidatorAddress

func (m *MsgAddUniversalValidator) GetCoreValidatorAddress() string

func (*MsgAddUniversalValidator) GetNetwork

func (m *MsgAddUniversalValidator) GetNetwork() *NetworkInfo

func (MsgAddUniversalValidator) GetSignBytes

func (msg MsgAddUniversalValidator) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgAddUniversalValidator) GetSigner

func (m *MsgAddUniversalValidator) GetSigner() string

func (*MsgAddUniversalValidator) GetSigners

func (msg *MsgAddUniversalValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgAddUniversalValidator message.

func (*MsgAddUniversalValidator) Marshal

func (m *MsgAddUniversalValidator) Marshal() (dAtA []byte, err error)

func (*MsgAddUniversalValidator) MarshalTo

func (m *MsgAddUniversalValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddUniversalValidator) MarshalToSizedBuffer

func (m *MsgAddUniversalValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddUniversalValidator) ProtoMessage

func (*MsgAddUniversalValidator) ProtoMessage()

func (*MsgAddUniversalValidator) Reset

func (m *MsgAddUniversalValidator) Reset()

func (MsgAddUniversalValidator) Route

func (msg MsgAddUniversalValidator) Route() string

Route returns the name of the module

func (*MsgAddUniversalValidator) Size

func (m *MsgAddUniversalValidator) Size() (n int)

func (*MsgAddUniversalValidator) String

func (m *MsgAddUniversalValidator) String() string

func (MsgAddUniversalValidator) Type

func (msg MsgAddUniversalValidator) Type() string

Type returns the action

func (*MsgAddUniversalValidator) Unmarshal

func (m *MsgAddUniversalValidator) Unmarshal(dAtA []byte) error

func (*MsgAddUniversalValidator) ValidateBasic

func (msg *MsgAddUniversalValidator) ValidateBasic() error

func (*MsgAddUniversalValidator) XXX_DiscardUnknown

func (m *MsgAddUniversalValidator) XXX_DiscardUnknown()

func (*MsgAddUniversalValidator) XXX_Marshal

func (m *MsgAddUniversalValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddUniversalValidator) XXX_Merge

func (m *MsgAddUniversalValidator) XXX_Merge(src proto.Message)

func (*MsgAddUniversalValidator) XXX_Size

func (m *MsgAddUniversalValidator) XXX_Size() int

func (*MsgAddUniversalValidator) XXX_Unmarshal

func (m *MsgAddUniversalValidator) XXX_Unmarshal(b []byte) error

type MsgAddUniversalValidatorResponse

type MsgAddUniversalValidatorResponse struct {
}

func (*MsgAddUniversalValidatorResponse) Descriptor

func (*MsgAddUniversalValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgAddUniversalValidatorResponse) Marshal

func (m *MsgAddUniversalValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddUniversalValidatorResponse) MarshalTo

func (m *MsgAddUniversalValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddUniversalValidatorResponse) MarshalToSizedBuffer

func (m *MsgAddUniversalValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddUniversalValidatorResponse) ProtoMessage

func (*MsgAddUniversalValidatorResponse) ProtoMessage()

func (*MsgAddUniversalValidatorResponse) Reset

func (*MsgAddUniversalValidatorResponse) Size

func (m *MsgAddUniversalValidatorResponse) Size() (n int)

func (*MsgAddUniversalValidatorResponse) String

func (*MsgAddUniversalValidatorResponse) Unmarshal

func (m *MsgAddUniversalValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgAddUniversalValidatorResponse) XXX_DiscardUnknown

func (m *MsgAddUniversalValidatorResponse) XXX_DiscardUnknown()

func (*MsgAddUniversalValidatorResponse) XXX_Marshal

func (m *MsgAddUniversalValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddUniversalValidatorResponse) XXX_Merge

func (*MsgAddUniversalValidatorResponse) XXX_Size

func (m *MsgAddUniversalValidatorResponse) XXX_Size() int

func (*MsgAddUniversalValidatorResponse) XXX_Unmarshal

func (m *MsgAddUniversalValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// AddUniversalValidator defines a message to add a universal validator.
	AddUniversalValidator(ctx context.Context, in *MsgAddUniversalValidator, opts ...grpc.CallOption) (*MsgAddUniversalValidatorResponse, error)
	// UpdateUniversalValidator defines a message to update a universal validator.
	UpdateUniversalValidator(ctx context.Context, in *MsgUpdateUniversalValidator, opts ...grpc.CallOption) (*MsgUpdateUniversalValidatorResponse, error)
	// UpdateUniversalValidatorStatus defines a message to update a universal validator status.
	UpdateUniversalValidatorStatus(ctx context.Context, in *MsgUpdateUniversalValidatorStatus, opts ...grpc.CallOption) (*MsgUpdateUniversalValidatorStatusResponse, error)
	// RemoveUniversalValidator defines a message to remove a universal validator.
	RemoveUniversalValidator(ctx context.Context, in *MsgRemoveUniversalValidator, opts ...grpc.CallOption) (*MsgRemoveUniversalValidatorResponse, error)
	// RecomputeBallotQuorum recomputes a pending ballot's eligible voters and
	// voting threshold against the current eligible-voter set. Used as an admin
	// escape hatch for ballots that became stuck due to eligibility drift.
	RecomputeBallotQuorum(ctx context.Context, in *MsgRecomputeBallotQuorum, opts ...grpc.CallOption) (*MsgRecomputeBallotQuorumResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgRecomputeBallotQuorum added in v0.0.40

type MsgRecomputeBallotQuorum struct {
	// signer must equal Params.Admin
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// ballot_id of the stuck pending ballot to recompute
	BallotId string `protobuf:"bytes,2,opt,name=ballot_id,json=ballotId,proto3" json:"ballot_id,omitempty"`
}

func (*MsgRecomputeBallotQuorum) Descriptor added in v0.0.40

func (*MsgRecomputeBallotQuorum) Descriptor() ([]byte, []int)

func (*MsgRecomputeBallotQuorum) GetBallotId added in v0.0.40

func (m *MsgRecomputeBallotQuorum) GetBallotId() string

func (*MsgRecomputeBallotQuorum) GetSigner added in v0.0.40

func (m *MsgRecomputeBallotQuorum) GetSigner() string

func (*MsgRecomputeBallotQuorum) Marshal added in v0.0.40

func (m *MsgRecomputeBallotQuorum) Marshal() (dAtA []byte, err error)

func (*MsgRecomputeBallotQuorum) MarshalTo added in v0.0.40

func (m *MsgRecomputeBallotQuorum) MarshalTo(dAtA []byte) (int, error)

func (*MsgRecomputeBallotQuorum) MarshalToSizedBuffer added in v0.0.40

func (m *MsgRecomputeBallotQuorum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRecomputeBallotQuorum) ProtoMessage added in v0.0.40

func (*MsgRecomputeBallotQuorum) ProtoMessage()

func (*MsgRecomputeBallotQuorum) Reset added in v0.0.40

func (m *MsgRecomputeBallotQuorum) Reset()

func (*MsgRecomputeBallotQuorum) Size added in v0.0.40

func (m *MsgRecomputeBallotQuorum) Size() (n int)

func (*MsgRecomputeBallotQuorum) String added in v0.0.40

func (m *MsgRecomputeBallotQuorum) String() string

func (*MsgRecomputeBallotQuorum) Unmarshal added in v0.0.40

func (m *MsgRecomputeBallotQuorum) Unmarshal(dAtA []byte) error

func (*MsgRecomputeBallotQuorum) XXX_DiscardUnknown added in v0.0.40

func (m *MsgRecomputeBallotQuorum) XXX_DiscardUnknown()

func (*MsgRecomputeBallotQuorum) XXX_Marshal added in v0.0.40

func (m *MsgRecomputeBallotQuorum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRecomputeBallotQuorum) XXX_Merge added in v0.0.40

func (m *MsgRecomputeBallotQuorum) XXX_Merge(src proto.Message)

func (*MsgRecomputeBallotQuorum) XXX_Size added in v0.0.40

func (m *MsgRecomputeBallotQuorum) XXX_Size() int

func (*MsgRecomputeBallotQuorum) XXX_Unmarshal added in v0.0.40

func (m *MsgRecomputeBallotQuorum) XXX_Unmarshal(b []byte) error

type MsgRecomputeBallotQuorumResponse added in v0.0.40

type MsgRecomputeBallotQuorumResponse struct {
	OldEligibleCount   int64        `protobuf:"varint,1,opt,name=old_eligible_count,json=oldEligibleCount,proto3" json:"old_eligible_count,omitempty"`
	NewEligibleCount   int64        `protobuf:"varint,2,opt,name=new_eligible_count,json=newEligibleCount,proto3" json:"new_eligible_count,omitempty"`
	OldVotingThreshold int64        `protobuf:"varint,3,opt,name=old_voting_threshold,json=oldVotingThreshold,proto3" json:"old_voting_threshold,omitempty"`
	NewVotingThreshold int64        `protobuf:"varint,4,opt,name=new_voting_threshold,json=newVotingThreshold,proto3" json:"new_voting_threshold,omitempty"`
	NewStatus          BallotStatus `protobuf:"varint,5,opt,name=new_status,json=newStatus,proto3,enum=uvalidator.v1.BallotStatus" json:"new_status,omitempty"`
}

func (*MsgRecomputeBallotQuorumResponse) Descriptor added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) Descriptor() ([]byte, []int)

func (*MsgRecomputeBallotQuorumResponse) GetNewEligibleCount added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) GetNewEligibleCount() int64

func (*MsgRecomputeBallotQuorumResponse) GetNewStatus added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) GetNewVotingThreshold added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) GetNewVotingThreshold() int64

func (*MsgRecomputeBallotQuorumResponse) GetOldEligibleCount added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) GetOldEligibleCount() int64

func (*MsgRecomputeBallotQuorumResponse) GetOldVotingThreshold added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) GetOldVotingThreshold() int64

func (*MsgRecomputeBallotQuorumResponse) Marshal added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) Marshal() (dAtA []byte, err error)

func (*MsgRecomputeBallotQuorumResponse) MarshalTo added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRecomputeBallotQuorumResponse) MarshalToSizedBuffer added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRecomputeBallotQuorumResponse) ProtoMessage added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) ProtoMessage()

func (*MsgRecomputeBallotQuorumResponse) Reset added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) Size added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) Size() (n int)

func (*MsgRecomputeBallotQuorumResponse) String added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) Unmarshal added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) Unmarshal(dAtA []byte) error

func (*MsgRecomputeBallotQuorumResponse) XXX_DiscardUnknown added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) XXX_DiscardUnknown()

func (*MsgRecomputeBallotQuorumResponse) XXX_Marshal added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRecomputeBallotQuorumResponse) XXX_Merge added in v0.0.40

func (*MsgRecomputeBallotQuorumResponse) XXX_Size added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) XXX_Size() int

func (*MsgRecomputeBallotQuorumResponse) XXX_Unmarshal added in v0.0.40

func (m *MsgRecomputeBallotQuorumResponse) XXX_Unmarshal(b []byte) error

type MsgRemoveUniversalValidator

type MsgRemoveUniversalValidator struct {
	// signer is the address authorized to execute this message
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// core_validator_address is the address of the core validator to be removed.
	CoreValidatorAddress string `protobuf:"bytes,2,opt,name=core_validator_address,json=coreValidatorAddress,proto3" json:"core_validator_address,omitempty"`
}

func NewMsgRemoveUniversalValidator

func NewMsgRemoveUniversalValidator(
	sender sdk.Address,
	coreValidatorAddress sdk.Address,
) *MsgRemoveUniversalValidator

NewMsgRemoveUniversalValidator creates new instance of MsgRemoveUniversalValidator

func (*MsgRemoveUniversalValidator) Descriptor

func (*MsgRemoveUniversalValidator) Descriptor() ([]byte, []int)

func (*MsgRemoveUniversalValidator) GetCoreValidatorAddress

func (m *MsgRemoveUniversalValidator) GetCoreValidatorAddress() string

func (MsgRemoveUniversalValidator) GetSignBytes

func (msg MsgRemoveUniversalValidator) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgRemoveUniversalValidator) GetSigner

func (m *MsgRemoveUniversalValidator) GetSigner() string

func (*MsgRemoveUniversalValidator) GetSigners

func (msg *MsgRemoveUniversalValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgRemoveUniversalValidator message.

func (*MsgRemoveUniversalValidator) Marshal

func (m *MsgRemoveUniversalValidator) Marshal() (dAtA []byte, err error)

func (*MsgRemoveUniversalValidator) MarshalTo

func (m *MsgRemoveUniversalValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveUniversalValidator) MarshalToSizedBuffer

func (m *MsgRemoveUniversalValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveUniversalValidator) ProtoMessage

func (*MsgRemoveUniversalValidator) ProtoMessage()

func (*MsgRemoveUniversalValidator) Reset

func (m *MsgRemoveUniversalValidator) Reset()

func (MsgRemoveUniversalValidator) Route

func (msg MsgRemoveUniversalValidator) Route() string

Route returns the name of the module

func (*MsgRemoveUniversalValidator) Size

func (m *MsgRemoveUniversalValidator) Size() (n int)

func (*MsgRemoveUniversalValidator) String

func (m *MsgRemoveUniversalValidator) String() string

func (MsgRemoveUniversalValidator) Type

Type returns the action

func (*MsgRemoveUniversalValidator) Unmarshal

func (m *MsgRemoveUniversalValidator) Unmarshal(dAtA []byte) error

func (*MsgRemoveUniversalValidator) ValidateBasic

func (msg *MsgRemoveUniversalValidator) ValidateBasic() error

func (*MsgRemoveUniversalValidator) XXX_DiscardUnknown

func (m *MsgRemoveUniversalValidator) XXX_DiscardUnknown()

func (*MsgRemoveUniversalValidator) XXX_Marshal

func (m *MsgRemoveUniversalValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveUniversalValidator) XXX_Merge

func (m *MsgRemoveUniversalValidator) XXX_Merge(src proto.Message)

func (*MsgRemoveUniversalValidator) XXX_Size

func (m *MsgRemoveUniversalValidator) XXX_Size() int

func (*MsgRemoveUniversalValidator) XXX_Unmarshal

func (m *MsgRemoveUniversalValidator) XXX_Unmarshal(b []byte) error

type MsgRemoveUniversalValidatorResponse

type MsgRemoveUniversalValidatorResponse struct {
}

func (*MsgRemoveUniversalValidatorResponse) Descriptor

func (*MsgRemoveUniversalValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgRemoveUniversalValidatorResponse) Marshal

func (m *MsgRemoveUniversalValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgRemoveUniversalValidatorResponse) MarshalTo

func (m *MsgRemoveUniversalValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveUniversalValidatorResponse) MarshalToSizedBuffer

func (m *MsgRemoveUniversalValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveUniversalValidatorResponse) ProtoMessage

func (*MsgRemoveUniversalValidatorResponse) ProtoMessage()

func (*MsgRemoveUniversalValidatorResponse) Reset

func (*MsgRemoveUniversalValidatorResponse) Size

func (*MsgRemoveUniversalValidatorResponse) String

func (*MsgRemoveUniversalValidatorResponse) Unmarshal

func (m *MsgRemoveUniversalValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgRemoveUniversalValidatorResponse) XXX_DiscardUnknown

func (m *MsgRemoveUniversalValidatorResponse) XXX_DiscardUnknown()

func (*MsgRemoveUniversalValidatorResponse) XXX_Marshal

func (m *MsgRemoveUniversalValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveUniversalValidatorResponse) XXX_Merge

func (*MsgRemoveUniversalValidatorResponse) XXX_Size

func (*MsgRemoveUniversalValidatorResponse) XXX_Unmarshal

func (m *MsgRemoveUniversalValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// AddUniversalValidator defines a message to add a universal validator.
	AddUniversalValidator(context.Context, *MsgAddUniversalValidator) (*MsgAddUniversalValidatorResponse, error)
	// UpdateUniversalValidator defines a message to update a universal validator.
	UpdateUniversalValidator(context.Context, *MsgUpdateUniversalValidator) (*MsgUpdateUniversalValidatorResponse, error)
	// UpdateUniversalValidatorStatus defines a message to update a universal validator status.
	UpdateUniversalValidatorStatus(context.Context, *MsgUpdateUniversalValidatorStatus) (*MsgUpdateUniversalValidatorStatusResponse, error)
	// RemoveUniversalValidator defines a message to remove a universal validator.
	RemoveUniversalValidator(context.Context, *MsgRemoveUniversalValidator) (*MsgRemoveUniversalValidatorResponse, error)
	// RecomputeBallotQuorum recomputes a pending ballot's eligible voters and
	// voting threshold against the current eligible-voter set. Used as an admin
	// escape hatch for ballots that became stuck due to eligibility drift.
	RecomputeBallotQuorum(context.Context, *MsgRecomputeBallotQuorum) (*MsgRecomputeBallotQuorumResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func NewMsgUpdateParams

func NewMsgUpdateParams(
	sender sdk.Address,
	admin sdk.Address,
) *MsgUpdateParams

NewMsgUpdateParams creates new instance of MsgUpdateParams

func (*MsgUpdateParams) Descriptor

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes

func (msg MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners

func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

Route returns the name of the module

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

Type returns the action

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateUniversalValidator

type MsgUpdateUniversalValidator struct {
	// signer is the address authorized to execute this message
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// network metadata for validator node
	Network *NetworkInfo `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
}

func NewMsgUpdateUniversalValidator

func NewMsgUpdateUniversalValidator(
	sender sdk.Address,
	coreValidatorAddress sdk.Address,
	network NetworkInfo,
) *MsgUpdateUniversalValidator

NewMsgUpdateUniversalValidator creates new instance of MsgUpdateUniversalValidator

func (*MsgUpdateUniversalValidator) Descriptor

func (*MsgUpdateUniversalValidator) Descriptor() ([]byte, []int)

func (*MsgUpdateUniversalValidator) GetNetwork

func (m *MsgUpdateUniversalValidator) GetNetwork() *NetworkInfo

func (MsgUpdateUniversalValidator) GetSignBytes

func (msg MsgUpdateUniversalValidator) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateUniversalValidator) GetSigner

func (m *MsgUpdateUniversalValidator) GetSigner() string

func (*MsgUpdateUniversalValidator) GetSigners

func (msg *MsgUpdateUniversalValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateUniversalValidator message.

func (*MsgUpdateUniversalValidator) Marshal

func (m *MsgUpdateUniversalValidator) Marshal() (dAtA []byte, err error)

func (*MsgUpdateUniversalValidator) MarshalTo

func (m *MsgUpdateUniversalValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidator) MarshalToSizedBuffer

func (m *MsgUpdateUniversalValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidator) ProtoMessage

func (*MsgUpdateUniversalValidator) ProtoMessage()

func (*MsgUpdateUniversalValidator) Reset

func (m *MsgUpdateUniversalValidator) Reset()

func (MsgUpdateUniversalValidator) Route

func (msg MsgUpdateUniversalValidator) Route() string

Route returns the name of the module

func (*MsgUpdateUniversalValidator) Size

func (m *MsgUpdateUniversalValidator) Size() (n int)

func (*MsgUpdateUniversalValidator) String

func (m *MsgUpdateUniversalValidator) String() string

func (MsgUpdateUniversalValidator) Type

Type returns the action

func (*MsgUpdateUniversalValidator) Unmarshal

func (m *MsgUpdateUniversalValidator) Unmarshal(dAtA []byte) error

func (*MsgUpdateUniversalValidator) ValidateBasic

func (msg *MsgUpdateUniversalValidator) ValidateBasic() error

func (*MsgUpdateUniversalValidator) XXX_DiscardUnknown

func (m *MsgUpdateUniversalValidator) XXX_DiscardUnknown()

func (*MsgUpdateUniversalValidator) XXX_Marshal

func (m *MsgUpdateUniversalValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateUniversalValidator) XXX_Merge

func (m *MsgUpdateUniversalValidator) XXX_Merge(src proto.Message)

func (*MsgUpdateUniversalValidator) XXX_Size

func (m *MsgUpdateUniversalValidator) XXX_Size() int

func (*MsgUpdateUniversalValidator) XXX_Unmarshal

func (m *MsgUpdateUniversalValidator) XXX_Unmarshal(b []byte) error

type MsgUpdateUniversalValidatorResponse

type MsgUpdateUniversalValidatorResponse struct {
}

func (*MsgUpdateUniversalValidatorResponse) Descriptor

func (*MsgUpdateUniversalValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateUniversalValidatorResponse) Marshal

func (m *MsgUpdateUniversalValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateUniversalValidatorResponse) MarshalTo

func (m *MsgUpdateUniversalValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorResponse) MarshalToSizedBuffer

func (m *MsgUpdateUniversalValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorResponse) ProtoMessage

func (*MsgUpdateUniversalValidatorResponse) ProtoMessage()

func (*MsgUpdateUniversalValidatorResponse) Reset

func (*MsgUpdateUniversalValidatorResponse) Size

func (*MsgUpdateUniversalValidatorResponse) String

func (*MsgUpdateUniversalValidatorResponse) Unmarshal

func (m *MsgUpdateUniversalValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateUniversalValidatorResponse) XXX_DiscardUnknown

func (m *MsgUpdateUniversalValidatorResponse) XXX_DiscardUnknown()

func (*MsgUpdateUniversalValidatorResponse) XXX_Marshal

func (m *MsgUpdateUniversalValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateUniversalValidatorResponse) XXX_Merge

func (*MsgUpdateUniversalValidatorResponse) XXX_Size

func (*MsgUpdateUniversalValidatorResponse) XXX_Unmarshal

func (m *MsgUpdateUniversalValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateUniversalValidatorStatus

type MsgUpdateUniversalValidatorStatus struct {
	// signer is the address authorized to execute this message
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// core_validator_address is the address of the core validator whose status is to be updated.
	CoreValidatorAddress string `protobuf:"bytes,2,opt,name=core_validator_address,json=coreValidatorAddress,proto3" json:"core_validator_address,omitempty"`
	// new status of the universal validator
	NewStatus UVStatus `protobuf:"varint,3,opt,name=new_status,json=newStatus,proto3,enum=uvalidator.v1.UVStatus" json:"new_status,omitempty"`
}

func NewMsgUpdateUniversalValidatorStatus

func NewMsgUpdateUniversalValidatorStatus(
	sender sdk.Address,
	coreValidatorAddress sdk.Address,
	newUvStatus UVStatus,
) *MsgUpdateUniversalValidatorStatus

NewMsgUpdateUniversalValidatorStatus creates new instance of MsgUpdateUniversalValidatorStatus

func (*MsgUpdateUniversalValidatorStatus) Descriptor

func (*MsgUpdateUniversalValidatorStatus) Descriptor() ([]byte, []int)

func (*MsgUpdateUniversalValidatorStatus) GetCoreValidatorAddress

func (m *MsgUpdateUniversalValidatorStatus) GetCoreValidatorAddress() string

func (*MsgUpdateUniversalValidatorStatus) GetNewStatus

func (m *MsgUpdateUniversalValidatorStatus) GetNewStatus() UVStatus

func (MsgUpdateUniversalValidatorStatus) GetSignBytes

func (msg MsgUpdateUniversalValidatorStatus) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateUniversalValidatorStatus) GetSigner

func (*MsgUpdateUniversalValidatorStatus) GetSigners

func (msg *MsgUpdateUniversalValidatorStatus) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateUniversalValidatorStatus message.

func (*MsgUpdateUniversalValidatorStatus) Marshal

func (m *MsgUpdateUniversalValidatorStatus) Marshal() (dAtA []byte, err error)

func (*MsgUpdateUniversalValidatorStatus) MarshalTo

func (m *MsgUpdateUniversalValidatorStatus) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorStatus) MarshalToSizedBuffer

func (m *MsgUpdateUniversalValidatorStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorStatus) ProtoMessage

func (*MsgUpdateUniversalValidatorStatus) ProtoMessage()

func (*MsgUpdateUniversalValidatorStatus) Reset

func (MsgUpdateUniversalValidatorStatus) Route

Route returns the name of the module

func (*MsgUpdateUniversalValidatorStatus) Size

func (m *MsgUpdateUniversalValidatorStatus) Size() (n int)

func (*MsgUpdateUniversalValidatorStatus) String

func (MsgUpdateUniversalValidatorStatus) Type

Type returns the action

func (*MsgUpdateUniversalValidatorStatus) Unmarshal

func (m *MsgUpdateUniversalValidatorStatus) Unmarshal(dAtA []byte) error

func (*MsgUpdateUniversalValidatorStatus) ValidateBasic

func (msg *MsgUpdateUniversalValidatorStatus) ValidateBasic() error

func (*MsgUpdateUniversalValidatorStatus) XXX_DiscardUnknown

func (m *MsgUpdateUniversalValidatorStatus) XXX_DiscardUnknown()

func (*MsgUpdateUniversalValidatorStatus) XXX_Marshal

func (m *MsgUpdateUniversalValidatorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateUniversalValidatorStatus) XXX_Merge

func (*MsgUpdateUniversalValidatorStatus) XXX_Size

func (m *MsgUpdateUniversalValidatorStatus) XXX_Size() int

func (*MsgUpdateUniversalValidatorStatus) XXX_Unmarshal

func (m *MsgUpdateUniversalValidatorStatus) XXX_Unmarshal(b []byte) error

type MsgUpdateUniversalValidatorStatusResponse

type MsgUpdateUniversalValidatorStatusResponse struct {
}

func (*MsgUpdateUniversalValidatorStatusResponse) Descriptor

func (*MsgUpdateUniversalValidatorStatusResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateUniversalValidatorStatusResponse) Marshal

func (m *MsgUpdateUniversalValidatorStatusResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateUniversalValidatorStatusResponse) MarshalTo

func (m *MsgUpdateUniversalValidatorStatusResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorStatusResponse) MarshalToSizedBuffer

func (m *MsgUpdateUniversalValidatorStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateUniversalValidatorStatusResponse) ProtoMessage

func (*MsgUpdateUniversalValidatorStatusResponse) Reset

func (*MsgUpdateUniversalValidatorStatusResponse) Size

func (*MsgUpdateUniversalValidatorStatusResponse) String

func (*MsgUpdateUniversalValidatorStatusResponse) Unmarshal

func (*MsgUpdateUniversalValidatorStatusResponse) XXX_DiscardUnknown

func (m *MsgUpdateUniversalValidatorStatusResponse) XXX_DiscardUnknown()

func (*MsgUpdateUniversalValidatorStatusResponse) XXX_Marshal

func (m *MsgUpdateUniversalValidatorStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateUniversalValidatorStatusResponse) XXX_Merge

func (*MsgUpdateUniversalValidatorStatusResponse) XXX_Size

func (*MsgUpdateUniversalValidatorStatusResponse) XXX_Unmarshal

type NetworkInfo

type NetworkInfo struct {
	PeerId     string   `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	MultiAddrs []string `protobuf:"bytes,2,rep,name=multi_addrs,json=multiAddrs,proto3" json:"multi_addrs,omitempty"`
}

Validator network metadata

func (*NetworkInfo) Descriptor

func (*NetworkInfo) Descriptor() ([]byte, []int)

func (*NetworkInfo) Equal

func (this *NetworkInfo) Equal(that interface{}) bool

func (*NetworkInfo) GetMultiAddrs

func (m *NetworkInfo) GetMultiAddrs() []string

func (*NetworkInfo) GetPeerId

func (m *NetworkInfo) GetPeerId() string

func (*NetworkInfo) Marshal

func (m *NetworkInfo) Marshal() (dAtA []byte, err error)

func (*NetworkInfo) MarshalTo

func (m *NetworkInfo) MarshalTo(dAtA []byte) (int, error)

func (*NetworkInfo) MarshalToSizedBuffer

func (m *NetworkInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkInfo) ProtoMessage

func (*NetworkInfo) ProtoMessage()

func (*NetworkInfo) Reset

func (m *NetworkInfo) Reset()

func (*NetworkInfo) Size

func (m *NetworkInfo) Size() (n int)

func (*NetworkInfo) String

func (m *NetworkInfo) String() string

func (*NetworkInfo) Unmarshal

func (m *NetworkInfo) Unmarshal(dAtA []byte) error

func (NetworkInfo) ValidateBasic

func (p NetworkInfo) ValidateBasic() error

Validate does the sanity check on the network_info params.

func (*NetworkInfo) XXX_DiscardUnknown

func (m *NetworkInfo) XXX_DiscardUnknown()

func (*NetworkInfo) XXX_Marshal

func (m *NetworkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkInfo) XXX_Merge

func (m *NetworkInfo) XXX_Merge(src proto.Message)

func (*NetworkInfo) XXX_Size

func (m *NetworkInfo) XXX_Size() int

func (*NetworkInfo) XXX_Unmarshal

func (m *NetworkInfo) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// The admin account of the uvalidator module.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
}

Params defines the set of module parameters.

func DefaultParams

func DefaultParams() Params

Default Admin needs to be added explicityly in genesis file

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetAdmin

func (m *Params) GetAdmin() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

Stringer method for Params.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic does the sanity check on the params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryActiveBallotIDsRequest

type QueryActiveBallotIDsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Active ballots

func (*QueryActiveBallotIDsRequest) Descriptor

func (*QueryActiveBallotIDsRequest) Descriptor() ([]byte, []int)

func (*QueryActiveBallotIDsRequest) GetPagination

func (m *QueryActiveBallotIDsRequest) GetPagination() *query.PageRequest

func (*QueryActiveBallotIDsRequest) Marshal

func (m *QueryActiveBallotIDsRequest) Marshal() (dAtA []byte, err error)

func (*QueryActiveBallotIDsRequest) MarshalTo

func (m *QueryActiveBallotIDsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryActiveBallotIDsRequest) MarshalToSizedBuffer

func (m *QueryActiveBallotIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryActiveBallotIDsRequest) ProtoMessage

func (*QueryActiveBallotIDsRequest) ProtoMessage()

func (*QueryActiveBallotIDsRequest) Reset

func (m *QueryActiveBallotIDsRequest) Reset()

func (*QueryActiveBallotIDsRequest) Size

func (m *QueryActiveBallotIDsRequest) Size() (n int)

func (*QueryActiveBallotIDsRequest) String

func (m *QueryActiveBallotIDsRequest) String() string

func (*QueryActiveBallotIDsRequest) Unmarshal

func (m *QueryActiveBallotIDsRequest) Unmarshal(dAtA []byte) error

func (*QueryActiveBallotIDsRequest) XXX_DiscardUnknown

func (m *QueryActiveBallotIDsRequest) XXX_DiscardUnknown()

func (*QueryActiveBallotIDsRequest) XXX_Marshal

func (m *QueryActiveBallotIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryActiveBallotIDsRequest) XXX_Merge

func (m *QueryActiveBallotIDsRequest) XXX_Merge(src proto.Message)

func (*QueryActiveBallotIDsRequest) XXX_Size

func (m *QueryActiveBallotIDsRequest) XXX_Size() int

func (*QueryActiveBallotIDsRequest) XXX_Unmarshal

func (m *QueryActiveBallotIDsRequest) XXX_Unmarshal(b []byte) error

type QueryActiveBallotIDsResponse

type QueryActiveBallotIDsResponse struct {
	Ids        []string            `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryActiveBallotIDsResponse) Descriptor

func (*QueryActiveBallotIDsResponse) Descriptor() ([]byte, []int)

func (*QueryActiveBallotIDsResponse) GetIds

func (m *QueryActiveBallotIDsResponse) GetIds() []string

func (*QueryActiveBallotIDsResponse) GetPagination

func (m *QueryActiveBallotIDsResponse) GetPagination() *query.PageResponse

func (*QueryActiveBallotIDsResponse) Marshal

func (m *QueryActiveBallotIDsResponse) Marshal() (dAtA []byte, err error)

func (*QueryActiveBallotIDsResponse) MarshalTo

func (m *QueryActiveBallotIDsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryActiveBallotIDsResponse) MarshalToSizedBuffer

func (m *QueryActiveBallotIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryActiveBallotIDsResponse) ProtoMessage

func (*QueryActiveBallotIDsResponse) ProtoMessage()

func (*QueryActiveBallotIDsResponse) Reset

func (m *QueryActiveBallotIDsResponse) Reset()

func (*QueryActiveBallotIDsResponse) Size

func (m *QueryActiveBallotIDsResponse) Size() (n int)

func (*QueryActiveBallotIDsResponse) String

func (*QueryActiveBallotIDsResponse) Unmarshal

func (m *QueryActiveBallotIDsResponse) Unmarshal(dAtA []byte) error

func (*QueryActiveBallotIDsResponse) XXX_DiscardUnknown

func (m *QueryActiveBallotIDsResponse) XXX_DiscardUnknown()

func (*QueryActiveBallotIDsResponse) XXX_Marshal

func (m *QueryActiveBallotIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryActiveBallotIDsResponse) XXX_Merge

func (m *QueryActiveBallotIDsResponse) XXX_Merge(src proto.Message)

func (*QueryActiveBallotIDsResponse) XXX_Size

func (m *QueryActiveBallotIDsResponse) XXX_Size() int

func (*QueryActiveBallotIDsResponse) XXX_Unmarshal

func (m *QueryActiveBallotIDsResponse) XXX_Unmarshal(b []byte) error

type QueryActiveBallotsRequest

type QueryActiveBallotsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryActiveBallotsRequest) Descriptor

func (*QueryActiveBallotsRequest) Descriptor() ([]byte, []int)

func (*QueryActiveBallotsRequest) GetPagination

func (m *QueryActiveBallotsRequest) GetPagination() *query.PageRequest

func (*QueryActiveBallotsRequest) Marshal

func (m *QueryActiveBallotsRequest) Marshal() (dAtA []byte, err error)

func (*QueryActiveBallotsRequest) MarshalTo

func (m *QueryActiveBallotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryActiveBallotsRequest) MarshalToSizedBuffer

func (m *QueryActiveBallotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryActiveBallotsRequest) ProtoMessage

func (*QueryActiveBallotsRequest) ProtoMessage()

func (*QueryActiveBallotsRequest) Reset

func (m *QueryActiveBallotsRequest) Reset()

func (*QueryActiveBallotsRequest) Size

func (m *QueryActiveBallotsRequest) Size() (n int)

func (*QueryActiveBallotsRequest) String

func (m *QueryActiveBallotsRequest) String() string

func (*QueryActiveBallotsRequest) Unmarshal

func (m *QueryActiveBallotsRequest) Unmarshal(dAtA []byte) error

func (*QueryActiveBallotsRequest) XXX_DiscardUnknown

func (m *QueryActiveBallotsRequest) XXX_DiscardUnknown()

func (*QueryActiveBallotsRequest) XXX_Marshal

func (m *QueryActiveBallotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryActiveBallotsRequest) XXX_Merge

func (m *QueryActiveBallotsRequest) XXX_Merge(src proto.Message)

func (*QueryActiveBallotsRequest) XXX_Size

func (m *QueryActiveBallotsRequest) XXX_Size() int

func (*QueryActiveBallotsRequest) XXX_Unmarshal

func (m *QueryActiveBallotsRequest) XXX_Unmarshal(b []byte) error

type QueryActiveBallotsResponse

type QueryActiveBallotsResponse struct {
	Ballots    []*Ballot           `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryActiveBallotsResponse) Descriptor

func (*QueryActiveBallotsResponse) Descriptor() ([]byte, []int)

func (*QueryActiveBallotsResponse) GetBallots

func (m *QueryActiveBallotsResponse) GetBallots() []*Ballot

func (*QueryActiveBallotsResponse) GetPagination

func (m *QueryActiveBallotsResponse) GetPagination() *query.PageResponse

func (*QueryActiveBallotsResponse) Marshal

func (m *QueryActiveBallotsResponse) Marshal() (dAtA []byte, err error)

func (*QueryActiveBallotsResponse) MarshalTo

func (m *QueryActiveBallotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryActiveBallotsResponse) MarshalToSizedBuffer

func (m *QueryActiveBallotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryActiveBallotsResponse) ProtoMessage

func (*QueryActiveBallotsResponse) ProtoMessage()

func (*QueryActiveBallotsResponse) Reset

func (m *QueryActiveBallotsResponse) Reset()

func (*QueryActiveBallotsResponse) Size

func (m *QueryActiveBallotsResponse) Size() (n int)

func (*QueryActiveBallotsResponse) String

func (m *QueryActiveBallotsResponse) String() string

func (*QueryActiveBallotsResponse) Unmarshal

func (m *QueryActiveBallotsResponse) Unmarshal(dAtA []byte) error

func (*QueryActiveBallotsResponse) XXX_DiscardUnknown

func (m *QueryActiveBallotsResponse) XXX_DiscardUnknown()

func (*QueryActiveBallotsResponse) XXX_Marshal

func (m *QueryActiveBallotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryActiveBallotsResponse) XXX_Merge

func (m *QueryActiveBallotsResponse) XXX_Merge(src proto.Message)

func (*QueryActiveBallotsResponse) XXX_Size

func (m *QueryActiveBallotsResponse) XXX_Size() int

func (*QueryActiveBallotsResponse) XXX_Unmarshal

func (m *QueryActiveBallotsResponse) XXX_Unmarshal(b []byte) error

type QueryBallotRequest

type QueryBallotRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

Single ballot

func (*QueryBallotRequest) Descriptor

func (*QueryBallotRequest) Descriptor() ([]byte, []int)

func (*QueryBallotRequest) GetId

func (m *QueryBallotRequest) GetId() string

func (*QueryBallotRequest) Marshal

func (m *QueryBallotRequest) Marshal() (dAtA []byte, err error)

func (*QueryBallotRequest) MarshalTo

func (m *QueryBallotRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBallotRequest) MarshalToSizedBuffer

func (m *QueryBallotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBallotRequest) ProtoMessage

func (*QueryBallotRequest) ProtoMessage()

func (*QueryBallotRequest) Reset

func (m *QueryBallotRequest) Reset()

func (*QueryBallotRequest) Size

func (m *QueryBallotRequest) Size() (n int)

func (*QueryBallotRequest) String

func (m *QueryBallotRequest) String() string

func (*QueryBallotRequest) Unmarshal

func (m *QueryBallotRequest) Unmarshal(dAtA []byte) error

func (*QueryBallotRequest) XXX_DiscardUnknown

func (m *QueryBallotRequest) XXX_DiscardUnknown()

func (*QueryBallotRequest) XXX_Marshal

func (m *QueryBallotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBallotRequest) XXX_Merge

func (m *QueryBallotRequest) XXX_Merge(src proto.Message)

func (*QueryBallotRequest) XXX_Size

func (m *QueryBallotRequest) XXX_Size() int

func (*QueryBallotRequest) XXX_Unmarshal

func (m *QueryBallotRequest) XXX_Unmarshal(b []byte) error

type QueryBallotResponse

type QueryBallotResponse struct {
	Ballot *Ballot `protobuf:"bytes,1,opt,name=ballot,proto3" json:"ballot,omitempty"`
}

func (*QueryBallotResponse) Descriptor

func (*QueryBallotResponse) Descriptor() ([]byte, []int)

func (*QueryBallotResponse) GetBallot

func (m *QueryBallotResponse) GetBallot() *Ballot

func (*QueryBallotResponse) Marshal

func (m *QueryBallotResponse) Marshal() (dAtA []byte, err error)

func (*QueryBallotResponse) MarshalTo

func (m *QueryBallotResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBallotResponse) MarshalToSizedBuffer

func (m *QueryBallotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBallotResponse) ProtoMessage

func (*QueryBallotResponse) ProtoMessage()

func (*QueryBallotResponse) Reset

func (m *QueryBallotResponse) Reset()

func (*QueryBallotResponse) Size

func (m *QueryBallotResponse) Size() (n int)

func (*QueryBallotResponse) String

func (m *QueryBallotResponse) String() string

func (*QueryBallotResponse) Unmarshal

func (m *QueryBallotResponse) Unmarshal(dAtA []byte) error

func (*QueryBallotResponse) XXX_DiscardUnknown

func (m *QueryBallotResponse) XXX_DiscardUnknown()

func (*QueryBallotResponse) XXX_Marshal

func (m *QueryBallotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBallotResponse) XXX_Merge

func (m *QueryBallotResponse) XXX_Merge(src proto.Message)

func (*QueryBallotResponse) XXX_Size

func (m *QueryBallotResponse) XXX_Size() int

func (*QueryBallotResponse) XXX_Unmarshal

func (m *QueryBallotResponse) XXX_Unmarshal(b []byte) error

type QueryBallotsRequest

type QueryBallotsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

All ballots

func (*QueryBallotsRequest) Descriptor

func (*QueryBallotsRequest) Descriptor() ([]byte, []int)

func (*QueryBallotsRequest) GetPagination

func (m *QueryBallotsRequest) GetPagination() *query.PageRequest

func (*QueryBallotsRequest) Marshal

func (m *QueryBallotsRequest) Marshal() (dAtA []byte, err error)

func (*QueryBallotsRequest) MarshalTo

func (m *QueryBallotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBallotsRequest) MarshalToSizedBuffer

func (m *QueryBallotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBallotsRequest) ProtoMessage

func (*QueryBallotsRequest) ProtoMessage()

func (*QueryBallotsRequest) Reset

func (m *QueryBallotsRequest) Reset()

func (*QueryBallotsRequest) Size

func (m *QueryBallotsRequest) Size() (n int)

func (*QueryBallotsRequest) String

func (m *QueryBallotsRequest) String() string

func (*QueryBallotsRequest) Unmarshal

func (m *QueryBallotsRequest) Unmarshal(dAtA []byte) error

func (*QueryBallotsRequest) XXX_DiscardUnknown

func (m *QueryBallotsRequest) XXX_DiscardUnknown()

func (*QueryBallotsRequest) XXX_Marshal

func (m *QueryBallotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBallotsRequest) XXX_Merge

func (m *QueryBallotsRequest) XXX_Merge(src proto.Message)

func (*QueryBallotsRequest) XXX_Size

func (m *QueryBallotsRequest) XXX_Size() int

func (*QueryBallotsRequest) XXX_Unmarshal

func (m *QueryBallotsRequest) XXX_Unmarshal(b []byte) error

type QueryBallotsResponse

type QueryBallotsResponse struct {
	Ballots    []*Ballot           `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryBallotsResponse) Descriptor

func (*QueryBallotsResponse) Descriptor() ([]byte, []int)

func (*QueryBallotsResponse) GetBallots

func (m *QueryBallotsResponse) GetBallots() []*Ballot

func (*QueryBallotsResponse) GetPagination

func (m *QueryBallotsResponse) GetPagination() *query.PageResponse

func (*QueryBallotsResponse) Marshal

func (m *QueryBallotsResponse) Marshal() (dAtA []byte, err error)

func (*QueryBallotsResponse) MarshalTo

func (m *QueryBallotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBallotsResponse) MarshalToSizedBuffer

func (m *QueryBallotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBallotsResponse) ProtoMessage

func (*QueryBallotsResponse) ProtoMessage()

func (*QueryBallotsResponse) Reset

func (m *QueryBallotsResponse) Reset()

func (*QueryBallotsResponse) Size

func (m *QueryBallotsResponse) Size() (n int)

func (*QueryBallotsResponse) String

func (m *QueryBallotsResponse) String() string

func (*QueryBallotsResponse) Unmarshal

func (m *QueryBallotsResponse) Unmarshal(dAtA []byte) error

func (*QueryBallotsResponse) XXX_DiscardUnknown

func (m *QueryBallotsResponse) XXX_DiscardUnknown()

func (*QueryBallotsResponse) XXX_Marshal

func (m *QueryBallotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBallotsResponse) XXX_Merge

func (m *QueryBallotsResponse) XXX_Merge(src proto.Message)

func (*QueryBallotsResponse) XXX_Size

func (m *QueryBallotsResponse) XXX_Size() int

func (*QueryBallotsResponse) XXX_Unmarshal

func (m *QueryBallotsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries all parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// UniversalValidator queries one universal validator by core validator address.
	UniversalValidator(ctx context.Context, in *QueryUniversalValidatorRequest, opts ...grpc.CallOption) (*QueryUniversalValidatorResponse, error)
	// AllUniversalValidators queries the details of a specific universal validator by its address.
	AllUniversalValidators(ctx context.Context, in *QueryUniversalValidatorsSetRequest, opts ...grpc.CallOption) (*QueryUniversalValidatorsSetResponse, error)
	// Ballot queries one ballot by ID.
	Ballot(ctx context.Context, in *QueryBallotRequest, opts ...grpc.CallOption) (*QueryBallotResponse, error)
	// Ballots queries all ballots.
	AllBallots(ctx context.Context, in *QueryBallotsRequest, opts ...grpc.CallOption) (*QueryBallotsResponse, error)
	// ActiveBallotIDs queries all active ballot IDs.
	AllActiveBallotIDs(ctx context.Context, in *QueryActiveBallotIDsRequest, opts ...grpc.CallOption) (*QueryActiveBallotIDsResponse, error)
	// ActiveBallots queries all active ballots with full details.
	AllActiveBallots(ctx context.Context, in *QueryActiveBallotsRequest, opts ...grpc.CallOption) (*QueryActiveBallotsResponse, error)
	// ExpiredBallotIDs queries all expired ballot IDs.
	AllExpiredBallotIDs(ctx context.Context, in *QueryExpiredBallotIDsRequest, opts ...grpc.CallOption) (*QueryExpiredBallotIDsResponse, error)
	// ExpiredBallots queries all expired ballots with full details.
	AllExpiredBallots(ctx context.Context, in *QueryExpiredBallotsRequest, opts ...grpc.CallOption) (*QueryExpiredBallotsResponse, error)
	// FinalizedBallotIDs queries all finalized ballot IDs.
	AllFinalizedBallotIDs(ctx context.Context, in *QueryFinalizedBallotIDsRequest, opts ...grpc.CallOption) (*QueryFinalizedBallotIDsResponse, error)
	// FinalizedBallots queries all finalized ballots with full details.
	AllFinalizedBallots(ctx context.Context, in *QueryFinalizedBallotsRequest, opts ...grpc.CallOption) (*QueryFinalizedBallotsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryExpiredBallotIDsRequest

type QueryExpiredBallotIDsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Expired ballots

func (*QueryExpiredBallotIDsRequest) Descriptor

func (*QueryExpiredBallotIDsRequest) Descriptor() ([]byte, []int)

func (*QueryExpiredBallotIDsRequest) GetPagination

func (m *QueryExpiredBallotIDsRequest) GetPagination() *query.PageRequest

func (*QueryExpiredBallotIDsRequest) Marshal

func (m *QueryExpiredBallotIDsRequest) Marshal() (dAtA []byte, err error)

func (*QueryExpiredBallotIDsRequest) MarshalTo

func (m *QueryExpiredBallotIDsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryExpiredBallotIDsRequest) MarshalToSizedBuffer

func (m *QueryExpiredBallotIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryExpiredBallotIDsRequest) ProtoMessage

func (*QueryExpiredBallotIDsRequest) ProtoMessage()

func (*QueryExpiredBallotIDsRequest) Reset

func (m *QueryExpiredBallotIDsRequest) Reset()

func (*QueryExpiredBallotIDsRequest) Size

func (m *QueryExpiredBallotIDsRequest) Size() (n int)

func (*QueryExpiredBallotIDsRequest) String

func (*QueryExpiredBallotIDsRequest) Unmarshal

func (m *QueryExpiredBallotIDsRequest) Unmarshal(dAtA []byte) error

func (*QueryExpiredBallotIDsRequest) XXX_DiscardUnknown

func (m *QueryExpiredBallotIDsRequest) XXX_DiscardUnknown()

func (*QueryExpiredBallotIDsRequest) XXX_Marshal

func (m *QueryExpiredBallotIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryExpiredBallotIDsRequest) XXX_Merge

func (m *QueryExpiredBallotIDsRequest) XXX_Merge(src proto.Message)

func (*QueryExpiredBallotIDsRequest) XXX_Size

func (m *QueryExpiredBallotIDsRequest) XXX_Size() int

func (*QueryExpiredBallotIDsRequest) XXX_Unmarshal

func (m *QueryExpiredBallotIDsRequest) XXX_Unmarshal(b []byte) error

type QueryExpiredBallotIDsResponse

type QueryExpiredBallotIDsResponse struct {
	Ids        []string            `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryExpiredBallotIDsResponse) Descriptor

func (*QueryExpiredBallotIDsResponse) Descriptor() ([]byte, []int)

func (*QueryExpiredBallotIDsResponse) GetIds

func (m *QueryExpiredBallotIDsResponse) GetIds() []string

func (*QueryExpiredBallotIDsResponse) GetPagination

func (m *QueryExpiredBallotIDsResponse) GetPagination() *query.PageResponse

func (*QueryExpiredBallotIDsResponse) Marshal

func (m *QueryExpiredBallotIDsResponse) Marshal() (dAtA []byte, err error)

func (*QueryExpiredBallotIDsResponse) MarshalTo

func (m *QueryExpiredBallotIDsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryExpiredBallotIDsResponse) MarshalToSizedBuffer

func (m *QueryExpiredBallotIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryExpiredBallotIDsResponse) ProtoMessage

func (*QueryExpiredBallotIDsResponse) ProtoMessage()

func (*QueryExpiredBallotIDsResponse) Reset

func (m *QueryExpiredBallotIDsResponse) Reset()

func (*QueryExpiredBallotIDsResponse) Size

func (m *QueryExpiredBallotIDsResponse) Size() (n int)

func (*QueryExpiredBallotIDsResponse) String

func (*QueryExpiredBallotIDsResponse) Unmarshal

func (m *QueryExpiredBallotIDsResponse) Unmarshal(dAtA []byte) error

func (*QueryExpiredBallotIDsResponse) XXX_DiscardUnknown

func (m *QueryExpiredBallotIDsResponse) XXX_DiscardUnknown()

func (*QueryExpiredBallotIDsResponse) XXX_Marshal

func (m *QueryExpiredBallotIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryExpiredBallotIDsResponse) XXX_Merge

func (m *QueryExpiredBallotIDsResponse) XXX_Merge(src proto.Message)

func (*QueryExpiredBallotIDsResponse) XXX_Size

func (m *QueryExpiredBallotIDsResponse) XXX_Size() int

func (*QueryExpiredBallotIDsResponse) XXX_Unmarshal

func (m *QueryExpiredBallotIDsResponse) XXX_Unmarshal(b []byte) error

type QueryExpiredBallotsRequest

type QueryExpiredBallotsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryExpiredBallotsRequest) Descriptor

func (*QueryExpiredBallotsRequest) Descriptor() ([]byte, []int)

func (*QueryExpiredBallotsRequest) GetPagination

func (m *QueryExpiredBallotsRequest) GetPagination() *query.PageRequest

func (*QueryExpiredBallotsRequest) Marshal

func (m *QueryExpiredBallotsRequest) Marshal() (dAtA []byte, err error)

func (*QueryExpiredBallotsRequest) MarshalTo

func (m *QueryExpiredBallotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryExpiredBallotsRequest) MarshalToSizedBuffer

func (m *QueryExpiredBallotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryExpiredBallotsRequest) ProtoMessage

func (*QueryExpiredBallotsRequest) ProtoMessage()

func (*QueryExpiredBallotsRequest) Reset

func (m *QueryExpiredBallotsRequest) Reset()

func (*QueryExpiredBallotsRequest) Size

func (m *QueryExpiredBallotsRequest) Size() (n int)

func (*QueryExpiredBallotsRequest) String

func (m *QueryExpiredBallotsRequest) String() string

func (*QueryExpiredBallotsRequest) Unmarshal

func (m *QueryExpiredBallotsRequest) Unmarshal(dAtA []byte) error

func (*QueryExpiredBallotsRequest) XXX_DiscardUnknown

func (m *QueryExpiredBallotsRequest) XXX_DiscardUnknown()

func (*QueryExpiredBallotsRequest) XXX_Marshal

func (m *QueryExpiredBallotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryExpiredBallotsRequest) XXX_Merge

func (m *QueryExpiredBallotsRequest) XXX_Merge(src proto.Message)

func (*QueryExpiredBallotsRequest) XXX_Size

func (m *QueryExpiredBallotsRequest) XXX_Size() int

func (*QueryExpiredBallotsRequest) XXX_Unmarshal

func (m *QueryExpiredBallotsRequest) XXX_Unmarshal(b []byte) error

type QueryExpiredBallotsResponse

type QueryExpiredBallotsResponse struct {
	Ballots    []*Ballot           `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryExpiredBallotsResponse) Descriptor

func (*QueryExpiredBallotsResponse) Descriptor() ([]byte, []int)

func (*QueryExpiredBallotsResponse) GetBallots

func (m *QueryExpiredBallotsResponse) GetBallots() []*Ballot

func (*QueryExpiredBallotsResponse) GetPagination

func (m *QueryExpiredBallotsResponse) GetPagination() *query.PageResponse

func (*QueryExpiredBallotsResponse) Marshal

func (m *QueryExpiredBallotsResponse) Marshal() (dAtA []byte, err error)

func (*QueryExpiredBallotsResponse) MarshalTo

func (m *QueryExpiredBallotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryExpiredBallotsResponse) MarshalToSizedBuffer

func (m *QueryExpiredBallotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryExpiredBallotsResponse) ProtoMessage

func (*QueryExpiredBallotsResponse) ProtoMessage()

func (*QueryExpiredBallotsResponse) Reset

func (m *QueryExpiredBallotsResponse) Reset()

func (*QueryExpiredBallotsResponse) Size

func (m *QueryExpiredBallotsResponse) Size() (n int)

func (*QueryExpiredBallotsResponse) String

func (m *QueryExpiredBallotsResponse) String() string

func (*QueryExpiredBallotsResponse) Unmarshal

func (m *QueryExpiredBallotsResponse) Unmarshal(dAtA []byte) error

func (*QueryExpiredBallotsResponse) XXX_DiscardUnknown

func (m *QueryExpiredBallotsResponse) XXX_DiscardUnknown()

func (*QueryExpiredBallotsResponse) XXX_Marshal

func (m *QueryExpiredBallotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryExpiredBallotsResponse) XXX_Merge

func (m *QueryExpiredBallotsResponse) XXX_Merge(src proto.Message)

func (*QueryExpiredBallotsResponse) XXX_Size

func (m *QueryExpiredBallotsResponse) XXX_Size() int

func (*QueryExpiredBallotsResponse) XXX_Unmarshal

func (m *QueryExpiredBallotsResponse) XXX_Unmarshal(b []byte) error

type QueryFinalizedBallotIDsRequest

type QueryFinalizedBallotIDsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Finalized ballots

func (*QueryFinalizedBallotIDsRequest) Descriptor

func (*QueryFinalizedBallotIDsRequest) Descriptor() ([]byte, []int)

func (*QueryFinalizedBallotIDsRequest) GetPagination

func (m *QueryFinalizedBallotIDsRequest) GetPagination() *query.PageRequest

func (*QueryFinalizedBallotIDsRequest) Marshal

func (m *QueryFinalizedBallotIDsRequest) Marshal() (dAtA []byte, err error)

func (*QueryFinalizedBallotIDsRequest) MarshalTo

func (m *QueryFinalizedBallotIDsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFinalizedBallotIDsRequest) MarshalToSizedBuffer

func (m *QueryFinalizedBallotIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFinalizedBallotIDsRequest) ProtoMessage

func (*QueryFinalizedBallotIDsRequest) ProtoMessage()

func (*QueryFinalizedBallotIDsRequest) Reset

func (m *QueryFinalizedBallotIDsRequest) Reset()

func (*QueryFinalizedBallotIDsRequest) Size

func (m *QueryFinalizedBallotIDsRequest) Size() (n int)

func (*QueryFinalizedBallotIDsRequest) String

func (*QueryFinalizedBallotIDsRequest) Unmarshal

func (m *QueryFinalizedBallotIDsRequest) Unmarshal(dAtA []byte) error

func (*QueryFinalizedBallotIDsRequest) XXX_DiscardUnknown

func (m *QueryFinalizedBallotIDsRequest) XXX_DiscardUnknown()

func (*QueryFinalizedBallotIDsRequest) XXX_Marshal

func (m *QueryFinalizedBallotIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFinalizedBallotIDsRequest) XXX_Merge

func (m *QueryFinalizedBallotIDsRequest) XXX_Merge(src proto.Message)

func (*QueryFinalizedBallotIDsRequest) XXX_Size

func (m *QueryFinalizedBallotIDsRequest) XXX_Size() int

func (*QueryFinalizedBallotIDsRequest) XXX_Unmarshal

func (m *QueryFinalizedBallotIDsRequest) XXX_Unmarshal(b []byte) error

type QueryFinalizedBallotIDsResponse

type QueryFinalizedBallotIDsResponse struct {
	Ids        []string            `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryFinalizedBallotIDsResponse) Descriptor

func (*QueryFinalizedBallotIDsResponse) Descriptor() ([]byte, []int)

func (*QueryFinalizedBallotIDsResponse) GetIds

func (*QueryFinalizedBallotIDsResponse) GetPagination

func (*QueryFinalizedBallotIDsResponse) Marshal

func (m *QueryFinalizedBallotIDsResponse) Marshal() (dAtA []byte, err error)

func (*QueryFinalizedBallotIDsResponse) MarshalTo

func (m *QueryFinalizedBallotIDsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFinalizedBallotIDsResponse) MarshalToSizedBuffer

func (m *QueryFinalizedBallotIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFinalizedBallotIDsResponse) ProtoMessage

func (*QueryFinalizedBallotIDsResponse) ProtoMessage()

func (*QueryFinalizedBallotIDsResponse) Reset

func (*QueryFinalizedBallotIDsResponse) Size

func (m *QueryFinalizedBallotIDsResponse) Size() (n int)

func (*QueryFinalizedBallotIDsResponse) String

func (*QueryFinalizedBallotIDsResponse) Unmarshal

func (m *QueryFinalizedBallotIDsResponse) Unmarshal(dAtA []byte) error

func (*QueryFinalizedBallotIDsResponse) XXX_DiscardUnknown

func (m *QueryFinalizedBallotIDsResponse) XXX_DiscardUnknown()

func (*QueryFinalizedBallotIDsResponse) XXX_Marshal

func (m *QueryFinalizedBallotIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFinalizedBallotIDsResponse) XXX_Merge

func (m *QueryFinalizedBallotIDsResponse) XXX_Merge(src proto.Message)

func (*QueryFinalizedBallotIDsResponse) XXX_Size

func (m *QueryFinalizedBallotIDsResponse) XXX_Size() int

func (*QueryFinalizedBallotIDsResponse) XXX_Unmarshal

func (m *QueryFinalizedBallotIDsResponse) XXX_Unmarshal(b []byte) error

type QueryFinalizedBallotsRequest

type QueryFinalizedBallotsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryFinalizedBallotsRequest) Descriptor

func (*QueryFinalizedBallotsRequest) Descriptor() ([]byte, []int)

func (*QueryFinalizedBallotsRequest) GetPagination

func (m *QueryFinalizedBallotsRequest) GetPagination() *query.PageRequest

func (*QueryFinalizedBallotsRequest) Marshal

func (m *QueryFinalizedBallotsRequest) Marshal() (dAtA []byte, err error)

func (*QueryFinalizedBallotsRequest) MarshalTo

func (m *QueryFinalizedBallotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFinalizedBallotsRequest) MarshalToSizedBuffer

func (m *QueryFinalizedBallotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFinalizedBallotsRequest) ProtoMessage

func (*QueryFinalizedBallotsRequest) ProtoMessage()

func (*QueryFinalizedBallotsRequest) Reset

func (m *QueryFinalizedBallotsRequest) Reset()

func (*QueryFinalizedBallotsRequest) Size

func (m *QueryFinalizedBallotsRequest) Size() (n int)

func (*QueryFinalizedBallotsRequest) String

func (*QueryFinalizedBallotsRequest) Unmarshal

func (m *QueryFinalizedBallotsRequest) Unmarshal(dAtA []byte) error

func (*QueryFinalizedBallotsRequest) XXX_DiscardUnknown

func (m *QueryFinalizedBallotsRequest) XXX_DiscardUnknown()

func (*QueryFinalizedBallotsRequest) XXX_Marshal

func (m *QueryFinalizedBallotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFinalizedBallotsRequest) XXX_Merge

func (m *QueryFinalizedBallotsRequest) XXX_Merge(src proto.Message)

func (*QueryFinalizedBallotsRequest) XXX_Size

func (m *QueryFinalizedBallotsRequest) XXX_Size() int

func (*QueryFinalizedBallotsRequest) XXX_Unmarshal

func (m *QueryFinalizedBallotsRequest) XXX_Unmarshal(b []byte) error

type QueryFinalizedBallotsResponse

type QueryFinalizedBallotsResponse struct {
	Ballots    []*Ballot           `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryFinalizedBallotsResponse) Descriptor

func (*QueryFinalizedBallotsResponse) Descriptor() ([]byte, []int)

func (*QueryFinalizedBallotsResponse) GetBallots

func (m *QueryFinalizedBallotsResponse) GetBallots() []*Ballot

func (*QueryFinalizedBallotsResponse) GetPagination

func (m *QueryFinalizedBallotsResponse) GetPagination() *query.PageResponse

func (*QueryFinalizedBallotsResponse) Marshal

func (m *QueryFinalizedBallotsResponse) Marshal() (dAtA []byte, err error)

func (*QueryFinalizedBallotsResponse) MarshalTo

func (m *QueryFinalizedBallotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFinalizedBallotsResponse) MarshalToSizedBuffer

func (m *QueryFinalizedBallotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFinalizedBallotsResponse) ProtoMessage

func (*QueryFinalizedBallotsResponse) ProtoMessage()

func (*QueryFinalizedBallotsResponse) Reset

func (m *QueryFinalizedBallotsResponse) Reset()

func (*QueryFinalizedBallotsResponse) Size

func (m *QueryFinalizedBallotsResponse) Size() (n int)

func (*QueryFinalizedBallotsResponse) String

func (*QueryFinalizedBallotsResponse) Unmarshal

func (m *QueryFinalizedBallotsResponse) Unmarshal(dAtA []byte) error

func (*QueryFinalizedBallotsResponse) XXX_DiscardUnknown

func (m *QueryFinalizedBallotsResponse) XXX_DiscardUnknown()

func (*QueryFinalizedBallotsResponse) XXX_Marshal

func (m *QueryFinalizedBallotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFinalizedBallotsResponse) XXX_Merge

func (m *QueryFinalizedBallotsResponse) XXX_Merge(src proto.Message)

func (*QueryFinalizedBallotsResponse) XXX_Size

func (m *QueryFinalizedBallotsResponse) XXX_Size() int

func (*QueryFinalizedBallotsResponse) XXX_Unmarshal

func (m *QueryFinalizedBallotsResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries all parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// UniversalValidator queries one universal validator by core validator address.
	UniversalValidator(context.Context, *QueryUniversalValidatorRequest) (*QueryUniversalValidatorResponse, error)
	// AllUniversalValidators queries the details of a specific universal validator by its address.
	AllUniversalValidators(context.Context, *QueryUniversalValidatorsSetRequest) (*QueryUniversalValidatorsSetResponse, error)
	// Ballot queries one ballot by ID.
	Ballot(context.Context, *QueryBallotRequest) (*QueryBallotResponse, error)
	// Ballots queries all ballots.
	AllBallots(context.Context, *QueryBallotsRequest) (*QueryBallotsResponse, error)
	// ActiveBallotIDs queries all active ballot IDs.
	AllActiveBallotIDs(context.Context, *QueryActiveBallotIDsRequest) (*QueryActiveBallotIDsResponse, error)
	// ActiveBallots queries all active ballots with full details.
	AllActiveBallots(context.Context, *QueryActiveBallotsRequest) (*QueryActiveBallotsResponse, error)
	// ExpiredBallotIDs queries all expired ballot IDs.
	AllExpiredBallotIDs(context.Context, *QueryExpiredBallotIDsRequest) (*QueryExpiredBallotIDsResponse, error)
	// ExpiredBallots queries all expired ballots with full details.
	AllExpiredBallots(context.Context, *QueryExpiredBallotsRequest) (*QueryExpiredBallotsResponse, error)
	// FinalizedBallotIDs queries all finalized ballot IDs.
	AllFinalizedBallotIDs(context.Context, *QueryFinalizedBallotIDsRequest) (*QueryFinalizedBallotIDsResponse, error)
	// FinalizedBallots queries all finalized ballots with full details.
	AllFinalizedBallots(context.Context, *QueryFinalizedBallotsRequest) (*QueryFinalizedBallotsResponse, error)
}

QueryServer is the server API for Query service.

type QueryUniversalValidatorRequest

type QueryUniversalValidatorRequest struct {
	CoreValidatorAddress string `protobuf:"bytes,1,opt,name=core_validator_address,json=coreValidatorAddress,proto3" json:"core_validator_address,omitempty"`
}

Single Universal Validator

func (*QueryUniversalValidatorRequest) Descriptor

func (*QueryUniversalValidatorRequest) Descriptor() ([]byte, []int)

func (*QueryUniversalValidatorRequest) GetCoreValidatorAddress

func (m *QueryUniversalValidatorRequest) GetCoreValidatorAddress() string

func (*QueryUniversalValidatorRequest) Marshal

func (m *QueryUniversalValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryUniversalValidatorRequest) MarshalTo

func (m *QueryUniversalValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryUniversalValidatorRequest) MarshalToSizedBuffer

func (m *QueryUniversalValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUniversalValidatorRequest) ProtoMessage

func (*QueryUniversalValidatorRequest) ProtoMessage()

func (*QueryUniversalValidatorRequest) Reset

func (m *QueryUniversalValidatorRequest) Reset()

func (*QueryUniversalValidatorRequest) Size

func (m *QueryUniversalValidatorRequest) Size() (n int)

func (*QueryUniversalValidatorRequest) String

func (*QueryUniversalValidatorRequest) Unmarshal

func (m *QueryUniversalValidatorRequest) Unmarshal(dAtA []byte) error

func (*QueryUniversalValidatorRequest) XXX_DiscardUnknown

func (m *QueryUniversalValidatorRequest) XXX_DiscardUnknown()

func (*QueryUniversalValidatorRequest) XXX_Marshal

func (m *QueryUniversalValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUniversalValidatorRequest) XXX_Merge

func (m *QueryUniversalValidatorRequest) XXX_Merge(src proto.Message)

func (*QueryUniversalValidatorRequest) XXX_Size

func (m *QueryUniversalValidatorRequest) XXX_Size() int

func (*QueryUniversalValidatorRequest) XXX_Unmarshal

func (m *QueryUniversalValidatorRequest) XXX_Unmarshal(b []byte) error

type QueryUniversalValidatorResponse

type QueryUniversalValidatorResponse struct {
	UniversalValidator *UniversalValidator `protobuf:"bytes,1,opt,name=universal_validator,json=universalValidator,proto3" json:"universal_validator,omitempty"`
}

func (*QueryUniversalValidatorResponse) Descriptor

func (*QueryUniversalValidatorResponse) Descriptor() ([]byte, []int)

func (*QueryUniversalValidatorResponse) GetUniversalValidator

func (m *QueryUniversalValidatorResponse) GetUniversalValidator() *UniversalValidator

func (*QueryUniversalValidatorResponse) Marshal

func (m *QueryUniversalValidatorResponse) Marshal() (dAtA []byte, err error)

func (*QueryUniversalValidatorResponse) MarshalTo

func (m *QueryUniversalValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryUniversalValidatorResponse) MarshalToSizedBuffer

func (m *QueryUniversalValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUniversalValidatorResponse) ProtoMessage

func (*QueryUniversalValidatorResponse) ProtoMessage()

func (*QueryUniversalValidatorResponse) Reset

func (*QueryUniversalValidatorResponse) Size

func (m *QueryUniversalValidatorResponse) Size() (n int)

func (*QueryUniversalValidatorResponse) String

func (*QueryUniversalValidatorResponse) Unmarshal

func (m *QueryUniversalValidatorResponse) Unmarshal(dAtA []byte) error

func (*QueryUniversalValidatorResponse) XXX_DiscardUnknown

func (m *QueryUniversalValidatorResponse) XXX_DiscardUnknown()

func (*QueryUniversalValidatorResponse) XXX_Marshal

func (m *QueryUniversalValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUniversalValidatorResponse) XXX_Merge

func (m *QueryUniversalValidatorResponse) XXX_Merge(src proto.Message)

func (*QueryUniversalValidatorResponse) XXX_Size

func (m *QueryUniversalValidatorResponse) XXX_Size() int

func (*QueryUniversalValidatorResponse) XXX_Unmarshal

func (m *QueryUniversalValidatorResponse) XXX_Unmarshal(b []byte) error

type QueryUniversalValidatorsSetRequest

type QueryUniversalValidatorsSetRequest struct {
}

QueryUniversalValidatorsSetRequest is the request type for Query/UniversalValidatorAddresses.

func (*QueryUniversalValidatorsSetRequest) Descriptor

func (*QueryUniversalValidatorsSetRequest) Descriptor() ([]byte, []int)

func (*QueryUniversalValidatorsSetRequest) Marshal

func (m *QueryUniversalValidatorsSetRequest) Marshal() (dAtA []byte, err error)

func (*QueryUniversalValidatorsSetRequest) MarshalTo

func (m *QueryUniversalValidatorsSetRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryUniversalValidatorsSetRequest) MarshalToSizedBuffer

func (m *QueryUniversalValidatorsSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUniversalValidatorsSetRequest) ProtoMessage

func (*QueryUniversalValidatorsSetRequest) ProtoMessage()

func (*QueryUniversalValidatorsSetRequest) Reset

func (*QueryUniversalValidatorsSetRequest) Size

func (*QueryUniversalValidatorsSetRequest) String

func (*QueryUniversalValidatorsSetRequest) Unmarshal

func (m *QueryUniversalValidatorsSetRequest) Unmarshal(dAtA []byte) error

func (*QueryUniversalValidatorsSetRequest) XXX_DiscardUnknown

func (m *QueryUniversalValidatorsSetRequest) XXX_DiscardUnknown()

func (*QueryUniversalValidatorsSetRequest) XXX_Marshal

func (m *QueryUniversalValidatorsSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUniversalValidatorsSetRequest) XXX_Merge

func (*QueryUniversalValidatorsSetRequest) XXX_Size

func (*QueryUniversalValidatorsSetRequest) XXX_Unmarshal

func (m *QueryUniversalValidatorsSetRequest) XXX_Unmarshal(b []byte) error

type QueryUniversalValidatorsSetResponse

type QueryUniversalValidatorsSetResponse struct {
	// addresses is the list of all universal validator addresses registered in the module.
	UniversalValidator []*UniversalValidator `protobuf:"bytes,1,rep,name=universal_validator,json=universalValidator,proto3" json:"universal_validator,omitempty"`
}

QueryUniversalValidatorsSetResponse is the response type for Query/UniversalValidatorAddresses.

func (*QueryUniversalValidatorsSetResponse) Descriptor

func (*QueryUniversalValidatorsSetResponse) Descriptor() ([]byte, []int)

func (*QueryUniversalValidatorsSetResponse) GetUniversalValidator

func (m *QueryUniversalValidatorsSetResponse) GetUniversalValidator() []*UniversalValidator

func (*QueryUniversalValidatorsSetResponse) Marshal

func (m *QueryUniversalValidatorsSetResponse) Marshal() (dAtA []byte, err error)

func (*QueryUniversalValidatorsSetResponse) MarshalTo

func (m *QueryUniversalValidatorsSetResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryUniversalValidatorsSetResponse) MarshalToSizedBuffer

func (m *QueryUniversalValidatorsSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUniversalValidatorsSetResponse) ProtoMessage

func (*QueryUniversalValidatorsSetResponse) ProtoMessage()

func (*QueryUniversalValidatorsSetResponse) Reset

func (*QueryUniversalValidatorsSetResponse) Size

func (*QueryUniversalValidatorsSetResponse) String

func (*QueryUniversalValidatorsSetResponse) Unmarshal

func (m *QueryUniversalValidatorsSetResponse) Unmarshal(dAtA []byte) error

func (*QueryUniversalValidatorsSetResponse) XXX_DiscardUnknown

func (m *QueryUniversalValidatorsSetResponse) XXX_DiscardUnknown()

func (*QueryUniversalValidatorsSetResponse) XXX_Marshal

func (m *QueryUniversalValidatorsSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUniversalValidatorsSetResponse) XXX_Merge

func (*QueryUniversalValidatorsSetResponse) XXX_Size

func (*QueryUniversalValidatorsSetResponse) XXX_Unmarshal

func (m *QueryUniversalValidatorsSetResponse) XXX_Unmarshal(b []byte) error

type SlashingKeeper

type SlashingKeeper interface {
	IsTombstoned(ctx context.Context, addr sdk.ConsAddress) bool
}

SlashingKeeper defines the expected interface for the slashing module.

type StakingKeeper

type StakingKeeper interface {
	GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error)
	GetAllValidators(ctx context.Context) (validators []stakingtypes.Validator, err error)
	ValidatorByConsAddr(context.Context, sdk.ConsAddress) (stakingtypes.ValidatorI, error)
}

StakingKeeper defines the expected interface for the staking module.

type TransitionReason added in v0.0.40

type TransitionReason int32

What triggered a lifecycle transition. Drives auto-revival: STAKING_HOOK transitions are reversed when the base validator returns to bonded; ADMIN transitions stay put.

const (
	TransitionReason_TRANSITION_REASON_UNSPECIFIED  TransitionReason = 0
	TransitionReason_TRANSITION_REASON_ADMIN        TransitionReason = 1
	TransitionReason_TRANSITION_REASON_STAKING_HOOK TransitionReason = 2
)

func (TransitionReason) EnumDescriptor added in v0.0.40

func (TransitionReason) EnumDescriptor() ([]byte, []int)

func (TransitionReason) String added in v0.0.40

func (x TransitionReason) String() string

type UVStatus

type UVStatus int32

Universal Validator status

const (
	UVStatus_UV_STATUS_UNSPECIFIED   UVStatus = 0
	UVStatus_UV_STATUS_ACTIVE        UVStatus = 1
	UVStatus_UV_STATUS_PENDING_JOIN  UVStatus = 2
	UVStatus_UV_STATUS_PENDING_LEAVE UVStatus = 3
	UVStatus_UV_STATUS_INACTIVE      UVStatus = 4
)

func (UVStatus) EnumDescriptor

func (UVStatus) EnumDescriptor() ([]byte, []int)

func (UVStatus) String

func (x UVStatus) String() string

type UValidatorHooks

type UValidatorHooks interface {
	// Triggered when a validator enters PENDING_JOIN (newly added or rejoining)
	AfterValidatorAdded(ctx sdk.Context, valAddr sdk.ValAddress)

	// Triggered when a validator enters PENDING_LEAVE status (starting removal)
	AfterValidatorRemoved(ctx sdk.Context, valAddr sdk.ValAddress)

	// Triggered whenever a validator's status changes between any two valid states
	AfterValidatorStatusChanged(ctx sdk.Context, valAddr sdk.ValAddress, oldStatus, newStatus UVStatus)
}

UValidatorHooks defines the interface that external modules can implement to react to uvalidator lifecycle events.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddUniversalValidator

func (*UnimplementedMsgServer) RecomputeBallotQuorum added in v0.0.40

func (*UnimplementedMsgServer) RemoveUniversalValidator

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdateUniversalValidator

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllActiveBallotIDs

func (*UnimplementedQueryServer) AllActiveBallots

func (*UnimplementedQueryServer) AllBallots

func (*UnimplementedQueryServer) AllExpiredBallotIDs

func (*UnimplementedQueryServer) AllExpiredBallots

func (*UnimplementedQueryServer) AllFinalizedBallotIDs

func (*UnimplementedQueryServer) AllFinalizedBallots

func (*UnimplementedQueryServer) Ballot

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) UniversalValidator

type UniversalValidator

type UniversalValidator struct {
	IdentifyInfo  *IdentityInfo  `protobuf:"bytes,1,opt,name=identify_info,json=identifyInfo,proto3" json:"identify_info,omitempty"`
	NetworkInfo   *NetworkInfo   `protobuf:"bytes,2,opt,name=network_info,json=networkInfo,proto3" json:"network_info,omitempty"`
	LifecycleInfo *LifecycleInfo `protobuf:"bytes,3,opt,name=lifecycle_info,json=lifecycleInfo,proto3" json:"lifecycle_info,omitempty"`
}

Core Universal Validator object

func (*UniversalValidator) Descriptor

func (*UniversalValidator) Descriptor() ([]byte, []int)

func (*UniversalValidator) Equal

func (this *UniversalValidator) Equal(that interface{}) bool

func (*UniversalValidator) GetIdentifyInfo

func (m *UniversalValidator) GetIdentifyInfo() *IdentityInfo

func (*UniversalValidator) GetLifecycleInfo

func (m *UniversalValidator) GetLifecycleInfo() *LifecycleInfo

func (*UniversalValidator) GetNetworkInfo

func (m *UniversalValidator) GetNetworkInfo() *NetworkInfo

func (*UniversalValidator) Marshal

func (m *UniversalValidator) Marshal() (dAtA []byte, err error)

func (*UniversalValidator) MarshalTo

func (m *UniversalValidator) MarshalTo(dAtA []byte) (int, error)

func (*UniversalValidator) MarshalToSizedBuffer

func (m *UniversalValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UniversalValidator) ProtoMessage

func (*UniversalValidator) ProtoMessage()

func (*UniversalValidator) Reset

func (m *UniversalValidator) Reset()

func (*UniversalValidator) Size

func (m *UniversalValidator) Size() (n int)

func (UniversalValidator) String

func (p UniversalValidator) String() string

Stringer method for Params.

func (*UniversalValidator) Unmarshal

func (m *UniversalValidator) Unmarshal(dAtA []byte) error

func (UniversalValidator) ValidateBasic

func (p UniversalValidator) ValidateBasic() error

Validate does the sanity check on the params.

func (*UniversalValidator) XXX_DiscardUnknown

func (m *UniversalValidator) XXX_DiscardUnknown()

func (*UniversalValidator) XXX_Marshal

func (m *UniversalValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UniversalValidator) XXX_Merge

func (m *UniversalValidator) XXX_Merge(src proto.Message)

func (*UniversalValidator) XXX_Size

func (m *UniversalValidator) XXX_Size() int

func (*UniversalValidator) XXX_Unmarshal

func (m *UniversalValidator) XXX_Unmarshal(b []byte) error

type UniversalValidatorEntry added in v0.0.23

type UniversalValidatorEntry struct {
	Key   string             `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value UniversalValidator `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
}

UniversalValidatorEntry is a key-value pair for exporting UniversalValidatorSet map state. The key is the bech32 string representation of the validator address.

func (*UniversalValidatorEntry) Descriptor added in v0.0.23

func (*UniversalValidatorEntry) Descriptor() ([]byte, []int)

func (*UniversalValidatorEntry) GetKey added in v0.0.23

func (m *UniversalValidatorEntry) GetKey() string

func (*UniversalValidatorEntry) GetValue added in v0.0.23

func (*UniversalValidatorEntry) Marshal added in v0.0.23

func (m *UniversalValidatorEntry) Marshal() (dAtA []byte, err error)

func (*UniversalValidatorEntry) MarshalTo added in v0.0.23

func (m *UniversalValidatorEntry) MarshalTo(dAtA []byte) (int, error)

func (*UniversalValidatorEntry) MarshalToSizedBuffer added in v0.0.23

func (m *UniversalValidatorEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UniversalValidatorEntry) ProtoMessage added in v0.0.23

func (*UniversalValidatorEntry) ProtoMessage()

func (*UniversalValidatorEntry) Reset added in v0.0.23

func (m *UniversalValidatorEntry) Reset()

func (*UniversalValidatorEntry) Size added in v0.0.23

func (m *UniversalValidatorEntry) Size() (n int)

func (*UniversalValidatorEntry) String added in v0.0.23

func (m *UniversalValidatorEntry) String() string

func (*UniversalValidatorEntry) Unmarshal added in v0.0.23

func (m *UniversalValidatorEntry) Unmarshal(dAtA []byte) error

func (*UniversalValidatorEntry) XXX_DiscardUnknown added in v0.0.23

func (m *UniversalValidatorEntry) XXX_DiscardUnknown()

func (*UniversalValidatorEntry) XXX_Marshal added in v0.0.23

func (m *UniversalValidatorEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UniversalValidatorEntry) XXX_Merge added in v0.0.23

func (m *UniversalValidatorEntry) XXX_Merge(src proto.Message)

func (*UniversalValidatorEntry) XXX_Size added in v0.0.23

func (m *UniversalValidatorEntry) XXX_Size() int

func (*UniversalValidatorEntry) XXX_Unmarshal added in v0.0.23

func (m *UniversalValidatorEntry) XXX_Unmarshal(b []byte) error

type UtssKeeper

type UtssKeeper interface {
	GetCurrentTssParticipants(ctx context.Context) ([]string, error)
	HasOngoingTss(ctx context.Context) (bool, error)
}

UtssKeeper defines the expected interface for the utss module.

type VoteResult

type VoteResult int32

--------------------------- Vote Result Enum ---------------------------

const (
	VoteResult_VOTE_RESULT_NOT_YET_VOTED VoteResult = 0
	VoteResult_VOTE_RESULT_SUCCESS       VoteResult = 1
	VoteResult_VOTE_RESULT_FAILURE       VoteResult = 2
)

func (VoteResult) EnumDescriptor

func (VoteResult) EnumDescriptor() ([]byte, []int)

func (VoteResult) String

func (x VoteResult) String() string

Jump to

Keyboard shortcuts

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