types

package
v0.0.0-...-b0ad14f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeInitZValidator   = "init_zvalidator"
	EventTypeAddZValidator    = "add_zvalidator"
	EventTypeUpdateZValidator = "update_zvalidator"

	AttributeKeyDenom        = "denom"
	AttributeKeyAddresses    = "addresses"
	AttributeKeyAddress      = "address"
	AttributeKeyNewAddress   = "new_address"
	AttributeKeyOldAddress   = "old_address"
	AttributeKeyAddedAddress = "added_address"
	AttributeKeyPoolAddress  = "pool_address"
	AttributeKeyChainEra     = "chain_era"
	AttributeKeyCycleVersion = "cycle_version"
	AttributeKeyCycleNumber  = "cycle_number"
	AttributeKeyCycleSeconds = "cycle_seconds"
)

sudo module event types

View Source
const (
	// ModuleName defines the module name
	ModuleName = "zvalidator"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_zvalidator"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAddZValidator = "add_r_validator"
View Source
const TypeMsgInitZValidator = "init_r_validator"
View Source
const TypeMsgRmZValidator = "rm_r_validator"
View Source
const TypeMsgSetCycleSeconds = "set_cycle_seconds"
View Source
const TypeMsgSetShuffleSeconds = "set_shuffle_seconds"
View Source
const TypeUpdateZValidatorProposal = "update_r_validator"
View Source
const TypeUpdateZValidatorReportProposal = "update_r_validator_report"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrZValidatorAlreadyExist              = sdkerrors.Register(ModuleName, 1101, "zValidator already exist")
	ErrZValidatorNotExist                  = sdkerrors.Register(ModuleName, 1102, "zValidator not exist")
	ErrCycleBehindLatestCycle              = sdkerrors.Register(ModuleName, 1103, "cycle behind latest voted cycle")
	ErrCycleVersionNotMatch                = sdkerrors.Register(ModuleName, 1104, "cycle version not match")
	ErrLatestVotedCycleNotDealed           = sdkerrors.Register(ModuleName, 1105, "latest voted cycle not dealed")
	ErrLedgerIsBusyWithEra                 = sdkerrors.Register(ModuleName, 1106, "ledger is busy with era")
	ErrReportCycleNotMatchLatestVotedCycle = sdkerrors.Register(ModuleName, 1107, "report cycle not match latest voted cycle")
	ErrLedgerChainEraNotExist              = sdkerrors.Register(ModuleName, 1108, "ledger chain era not exist")
	ErrDealingZvalidatorNotFound           = sdkerrors.Register(ModuleName, 1109, "dealing zvalidator not found")
	ErrOldEqualNewZValidator               = sdkerrors.Register(ModuleName, 1110, "old euqal new zValidator")
	ErrZValidatorAlreadyInit               = sdkerrors.Register(ModuleName, 1111, "zValidator already init")
)

x/zvalidator module sentinel errors

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 (
	DefaultCycleSeconds   = uint64(60 * 10)
	DefaultShuffleSeconds = uint64(60 * 60 * 24 * 14)
)
View Source
var (
	SelectedZValidatorStoreKeyPrefix = []byte{0x01}
	LatestVotedCycleStoreKeyPrefix   = []byte{0x02}
	CycleSecondsStoreKeyPrefix       = []byte{0x03}
	ShuffleSecondsStoreKeyPrefix     = []byte{0x04}
	LatestDealedCycleStoreKeyPrefix  = []byte{0x05}
	DealingZValidatorStoreKeyPrefix  = []byte{0x06}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 UpdateZValidatorStatus_name = map[int32]string{
	0: "UPDATE_ZVALIDATOR_STATUS_UNSPECIFIED",
	1: "UPDATE_ZVALIDATOR_STATUS_SUCCESS",
	2: "UPDATE_ZVALIDATOR_STATUS_FAILED",
}
View Source
var UpdateZValidatorStatus_value = map[string]int32{
	"UPDATE_ZVALIDATOR_STATUS_UNSPECIFIED": 0,
	"UPDATE_ZVALIDATOR_STATUS_SUCCESS":     1,
	"UPDATE_ZVALIDATOR_STATUS_FAILED":      2,
}

Functions

func CycleSecondsStoreKey

func CycleSecondsStoreKey(denom string) []byte

func DealingZValidatorStoreKey

func DealingZValidatorStoreKey(denom, poolAddress string) []byte

prefix + denomLen + denom + poolAddressLen + poolAddress

func KeyPrefix

func KeyPrefix(p string) []byte

func LatestDealedCycleStoreKey

func LatestDealedCycleStoreKey(denom, poolAddress string) []byte

prefix + denomLen + denom + poolAddressLen + poolAddress

func LatestVotedCycleStoreKey

func LatestVotedCycleStoreKey(denom, poolAddress string) []byte

prefix + denomLen + denom + poolAddressLen + poolAddress

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

func SelectedRValdidatorStoreKey

func SelectedRValdidatorStoreKey(denom, poolAddress, zValidatorAddress string) []byte

prefix + denomLen + denom + poolAddressLen + poolAddress + zValidatorAddressLen + zValidatorAddress

func ShuffleSecondsStoreKey

func ShuffleSecondsStoreKey(denom string) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Cycle

type Cycle struct {
	Denom       string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	Version     uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	Number      uint64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"`
}

func (*Cycle) Descriptor

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

func (*Cycle) GetDenom

func (m *Cycle) GetDenom() string

func (*Cycle) GetNumber

func (m *Cycle) GetNumber() uint64

func (*Cycle) GetPoolAddress

func (m *Cycle) GetPoolAddress() string

func (*Cycle) GetVersion

func (m *Cycle) GetVersion() uint64

func (*Cycle) Marshal

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

func (*Cycle) MarshalTo

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

func (*Cycle) MarshalToSizedBuffer

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

func (*Cycle) ProtoMessage

func (*Cycle) ProtoMessage()

func (*Cycle) Reset

func (m *Cycle) Reset()

func (*Cycle) Size

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

func (*Cycle) String

func (m *Cycle) String() string

func (*Cycle) Unmarshal

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

func (*Cycle) XXX_DiscardUnknown

func (m *Cycle) XXX_DiscardUnknown()

func (*Cycle) XXX_Marshal

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

func (*Cycle) XXX_Merge

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

func (*Cycle) XXX_Size

func (m *Cycle) XXX_Size() int

func (*Cycle) XXX_Unmarshal

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

type CycleSeconds

type CycleSeconds struct {
	Denom   string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Seconds uint64 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
}

func (*CycleSeconds) Descriptor

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

func (*CycleSeconds) GetDenom

func (m *CycleSeconds) GetDenom() string

func (*CycleSeconds) GetSeconds

func (m *CycleSeconds) GetSeconds() uint64

func (*CycleSeconds) GetVersion

func (m *CycleSeconds) GetVersion() uint64

func (*CycleSeconds) Marshal

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

func (*CycleSeconds) MarshalTo

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

func (*CycleSeconds) MarshalToSizedBuffer

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

func (*CycleSeconds) ProtoMessage

func (*CycleSeconds) ProtoMessage()

func (*CycleSeconds) Reset

func (m *CycleSeconds) Reset()

func (*CycleSeconds) Size

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

func (*CycleSeconds) String

func (m *CycleSeconds) String() string

func (*CycleSeconds) Unmarshal

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

func (*CycleSeconds) XXX_DiscardUnknown

func (m *CycleSeconds) XXX_DiscardUnknown()

func (*CycleSeconds) XXX_Marshal

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

func (*CycleSeconds) XXX_Merge

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

func (*CycleSeconds) XXX_Size

func (m *CycleSeconds) XXX_Size() int

func (*CycleSeconds) XXX_Unmarshal

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

type DealingZValidator

type DealingZValidator struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress   string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	OldValAddress string `protobuf:"bytes,3,opt,name=oldValAddress,proto3" json:"oldValAddress,omitempty"`
	NewValAddress string `protobuf:"bytes,4,opt,name=newValAddress,proto3" json:"newValAddress,omitempty"`
}

func (*DealingZValidator) Descriptor

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

func (*DealingZValidator) GetDenom

func (m *DealingZValidator) GetDenom() string

func (*DealingZValidator) GetNewValAddress

func (m *DealingZValidator) GetNewValAddress() string

func (*DealingZValidator) GetOldValAddress

func (m *DealingZValidator) GetOldValAddress() string

func (*DealingZValidator) GetPoolAddress

func (m *DealingZValidator) GetPoolAddress() string

func (*DealingZValidator) Marshal

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

func (*DealingZValidator) MarshalTo

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

func (*DealingZValidator) MarshalToSizedBuffer

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

func (*DealingZValidator) ProtoMessage

func (*DealingZValidator) ProtoMessage()

func (*DealingZValidator) Reset

func (m *DealingZValidator) Reset()

func (*DealingZValidator) Size

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

func (*DealingZValidator) String

func (m *DealingZValidator) String() string

func (*DealingZValidator) Unmarshal

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

func (*DealingZValidator) XXX_DiscardUnknown

func (m *DealingZValidator) XXX_DiscardUnknown()

func (*DealingZValidator) XXX_Marshal

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

func (*DealingZValidator) XXX_Merge

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

func (*DealingZValidator) XXX_Size

func (m *DealingZValidator) XXX_Size() int

func (*DealingZValidator) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                 Params               `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SelectedZValidatorList []*ZValidator        `protobuf:"bytes,2,rep,name=selectedZValidatorList,proto3" json:"selectedZValidatorList,omitempty"`
	LatestVotedCycleList   []*Cycle             `protobuf:"bytes,3,rep,name=latestVotedCycleList,proto3" json:"latestVotedCycleList,omitempty"`
	LatestDealedCycleList  []*Cycle             `protobuf:"bytes,4,rep,name=latestDealedCycleList,proto3" json:"latestDealedCycleList,omitempty"`
	CycleSecondsList       []*CycleSeconds      `protobuf:"bytes,5,rep,name=cycleSecondsList,proto3" json:"cycleSecondsList,omitempty"`
	ShuffleSecondsList     []*ShuffleSeconds    `protobuf:"bytes,6,rep,name=shuffleSecondsList,proto3" json:"shuffleSecondsList,omitempty"`
	DealingZValidatorList  []*DealingZValidator `protobuf:"bytes,7,rep,name=dealingZValidatorList,proto3" json:"dealingZValidatorList,omitempty"`
}

GenesisState defines the zvalidator module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCycleSecondsList

func (m *GenesisState) GetCycleSecondsList() []*CycleSeconds

func (*GenesisState) GetDealingZValidatorList

func (m *GenesisState) GetDealingZValidatorList() []*DealingZValidator

func (*GenesisState) GetLatestDealedCycleList

func (m *GenesisState) GetLatestDealedCycleList() []*Cycle

func (*GenesisState) GetLatestVotedCycleList

func (m *GenesisState) GetLatestVotedCycleList() []*Cycle

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSelectedZValidatorList

func (m *GenesisState) GetSelectedZValidatorList() []*ZValidator

func (*GenesisState) GetShuffleSecondsList

func (m *GenesisState) GetShuffleSecondsList() []*ShuffleSeconds

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 LedgerKeeper

type LedgerKeeper interface {
	CurrentEraSnapshots(ctx sdk.Context, denom string) ledgerTypes.EraSnapshot
	GetChainEra(ctx sdk.Context, denom string) (val ledgerTypes.ChainEra, found bool)
}

type MsgAddZValidator

type MsgAddZValidator struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom       string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,3,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	ValAddress  string `protobuf:"bytes,4,opt,name=valAddress,proto3" json:"valAddress,omitempty"`
}

func NewMsgAddZValidator

func NewMsgAddZValidator(creator string, denom string, poolAddress string, valAddress string) *MsgAddZValidator

func (*MsgAddZValidator) Descriptor

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

func (*MsgAddZValidator) GetCreator

func (m *MsgAddZValidator) GetCreator() string

func (*MsgAddZValidator) GetDenom

func (m *MsgAddZValidator) GetDenom() string

func (*MsgAddZValidator) GetPoolAddress

func (m *MsgAddZValidator) GetPoolAddress() string

func (*MsgAddZValidator) GetSignBytes

func (msg *MsgAddZValidator) GetSignBytes() []byte

func (*MsgAddZValidator) GetSigners

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

func (*MsgAddZValidator) GetValAddress

func (m *MsgAddZValidator) GetValAddress() string

func (*MsgAddZValidator) Marshal

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

func (*MsgAddZValidator) MarshalTo

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

func (*MsgAddZValidator) MarshalToSizedBuffer

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

func (*MsgAddZValidator) ProtoMessage

func (*MsgAddZValidator) ProtoMessage()

func (*MsgAddZValidator) Reset

func (m *MsgAddZValidator) Reset()

func (*MsgAddZValidator) Route

func (msg *MsgAddZValidator) Route() string

func (*MsgAddZValidator) Size

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

func (*MsgAddZValidator) String

func (m *MsgAddZValidator) String() string

func (*MsgAddZValidator) Type

func (msg *MsgAddZValidator) Type() string

func (*MsgAddZValidator) Unmarshal

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

func (*MsgAddZValidator) ValidateBasic

func (msg *MsgAddZValidator) ValidateBasic() error

func (*MsgAddZValidator) XXX_DiscardUnknown

func (m *MsgAddZValidator) XXX_DiscardUnknown()

func (*MsgAddZValidator) XXX_Marshal

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

func (*MsgAddZValidator) XXX_Merge

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

func (*MsgAddZValidator) XXX_Size

func (m *MsgAddZValidator) XXX_Size() int

func (*MsgAddZValidator) XXX_Unmarshal

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

type MsgAddZValidatorResponse

type MsgAddZValidatorResponse struct {
}

func (*MsgAddZValidatorResponse) Descriptor

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

func (*MsgAddZValidatorResponse) Marshal

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

func (*MsgAddZValidatorResponse) MarshalTo

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

func (*MsgAddZValidatorResponse) MarshalToSizedBuffer

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

func (*MsgAddZValidatorResponse) ProtoMessage

func (*MsgAddZValidatorResponse) ProtoMessage()

func (*MsgAddZValidatorResponse) Reset

func (m *MsgAddZValidatorResponse) Reset()

func (*MsgAddZValidatorResponse) Size

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

func (*MsgAddZValidatorResponse) String

func (m *MsgAddZValidatorResponse) String() string

func (*MsgAddZValidatorResponse) Unmarshal

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

func (*MsgAddZValidatorResponse) XXX_DiscardUnknown

func (m *MsgAddZValidatorResponse) XXX_DiscardUnknown()

func (*MsgAddZValidatorResponse) XXX_Marshal

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

func (*MsgAddZValidatorResponse) XXX_Merge

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

func (*MsgAddZValidatorResponse) XXX_Size

func (m *MsgAddZValidatorResponse) XXX_Size() int

func (*MsgAddZValidatorResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	InitZValidator(ctx context.Context, in *MsgInitZValidator, opts ...grpc.CallOption) (*MsgInitZValidatorResponse, error)
	SetCycleSeconds(ctx context.Context, in *MsgSetCycleSeconds, opts ...grpc.CallOption) (*MsgSetCycleSecondsResponse, error)
	SetShuffleSeconds(ctx context.Context, in *MsgSetShuffleSeconds, opts ...grpc.CallOption) (*MsgSetShuffleSecondsResponse, error)
	AddZValidator(ctx context.Context, in *MsgAddZValidator, opts ...grpc.CallOption) (*MsgAddZValidatorResponse, error)
	RmZValidator(ctx context.Context, in *MsgRmZValidator, opts ...grpc.CallOption) (*MsgRmZValidatorResponse, 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 MsgInitZValidator

type MsgInitZValidator struct {
	Creator        string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom          string   `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress    string   `protobuf:"bytes,3,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	ValAddressList []string `protobuf:"bytes,4,rep,name=valAddressList,proto3" json:"valAddressList,omitempty"`
}

func NewMsgInitZValidator

func NewMsgInitZValidator(creator string, denom, poolAddress string, addressList []string) *MsgInitZValidator

func (*MsgInitZValidator) Descriptor

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

func (*MsgInitZValidator) GetCreator

func (m *MsgInitZValidator) GetCreator() string

func (*MsgInitZValidator) GetDenom

func (m *MsgInitZValidator) GetDenom() string

func (*MsgInitZValidator) GetPoolAddress

func (m *MsgInitZValidator) GetPoolAddress() string

func (*MsgInitZValidator) GetSignBytes

func (msg *MsgInitZValidator) GetSignBytes() []byte

func (*MsgInitZValidator) GetSigners

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

func (*MsgInitZValidator) GetValAddressList

func (m *MsgInitZValidator) GetValAddressList() []string

func (*MsgInitZValidator) Marshal

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

func (*MsgInitZValidator) MarshalTo

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

func (*MsgInitZValidator) MarshalToSizedBuffer

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

func (*MsgInitZValidator) ProtoMessage

func (*MsgInitZValidator) ProtoMessage()

func (*MsgInitZValidator) Reset

func (m *MsgInitZValidator) Reset()

func (*MsgInitZValidator) Route

func (msg *MsgInitZValidator) Route() string

func (*MsgInitZValidator) Size

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

func (*MsgInitZValidator) String

func (m *MsgInitZValidator) String() string

func (*MsgInitZValidator) Type

func (msg *MsgInitZValidator) Type() string

func (*MsgInitZValidator) Unmarshal

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

func (*MsgInitZValidator) ValidateBasic

func (msg *MsgInitZValidator) ValidateBasic() error

func (*MsgInitZValidator) XXX_DiscardUnknown

func (m *MsgInitZValidator) XXX_DiscardUnknown()

func (*MsgInitZValidator) XXX_Marshal

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

func (*MsgInitZValidator) XXX_Merge

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

func (*MsgInitZValidator) XXX_Size

func (m *MsgInitZValidator) XXX_Size() int

func (*MsgInitZValidator) XXX_Unmarshal

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

type MsgInitZValidatorResponse

type MsgInitZValidatorResponse struct {
}

func (*MsgInitZValidatorResponse) Descriptor

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

func (*MsgInitZValidatorResponse) Marshal

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

func (*MsgInitZValidatorResponse) MarshalTo

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

func (*MsgInitZValidatorResponse) MarshalToSizedBuffer

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

func (*MsgInitZValidatorResponse) ProtoMessage

func (*MsgInitZValidatorResponse) ProtoMessage()

func (*MsgInitZValidatorResponse) Reset

func (m *MsgInitZValidatorResponse) Reset()

func (*MsgInitZValidatorResponse) Size

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

func (*MsgInitZValidatorResponse) String

func (m *MsgInitZValidatorResponse) String() string

func (*MsgInitZValidatorResponse) Unmarshal

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

func (*MsgInitZValidatorResponse) XXX_DiscardUnknown

func (m *MsgInitZValidatorResponse) XXX_DiscardUnknown()

func (*MsgInitZValidatorResponse) XXX_Marshal

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

func (*MsgInitZValidatorResponse) XXX_Merge

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

func (*MsgInitZValidatorResponse) XXX_Size

func (m *MsgInitZValidatorResponse) XXX_Size() int

func (*MsgInitZValidatorResponse) XXX_Unmarshal

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

type MsgRmZValidator

type MsgRmZValidator struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom       string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,3,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	OldAddress  string `protobuf:"bytes,4,opt,name=oldAddress,proto3" json:"oldAddress,omitempty"`
	NewAddress  string `protobuf:"bytes,5,opt,name=newAddress,proto3" json:"newAddress,omitempty"`
}

func NewMsgRmZValidator

func NewMsgRmZValidator(creator string, denom string, poolAddress string, oldAddress string, newAddress string) *MsgRmZValidator

func (*MsgRmZValidator) Descriptor

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

func (*MsgRmZValidator) GetCreator

func (m *MsgRmZValidator) GetCreator() string

func (*MsgRmZValidator) GetDenom

func (m *MsgRmZValidator) GetDenom() string

func (*MsgRmZValidator) GetNewAddress

func (m *MsgRmZValidator) GetNewAddress() string

func (*MsgRmZValidator) GetOldAddress

func (m *MsgRmZValidator) GetOldAddress() string

func (*MsgRmZValidator) GetPoolAddress

func (m *MsgRmZValidator) GetPoolAddress() string

func (*MsgRmZValidator) GetSignBytes

func (msg *MsgRmZValidator) GetSignBytes() []byte

func (*MsgRmZValidator) GetSigners

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

func (*MsgRmZValidator) Marshal

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

func (*MsgRmZValidator) MarshalTo

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

func (*MsgRmZValidator) MarshalToSizedBuffer

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

func (*MsgRmZValidator) ProtoMessage

func (*MsgRmZValidator) ProtoMessage()

func (*MsgRmZValidator) Reset

func (m *MsgRmZValidator) Reset()

func (*MsgRmZValidator) Route

func (msg *MsgRmZValidator) Route() string

func (*MsgRmZValidator) Size

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

func (*MsgRmZValidator) String

func (m *MsgRmZValidator) String() string

func (*MsgRmZValidator) Type

func (msg *MsgRmZValidator) Type() string

func (*MsgRmZValidator) Unmarshal

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

func (*MsgRmZValidator) ValidateBasic

func (msg *MsgRmZValidator) ValidateBasic() error

func (*MsgRmZValidator) XXX_DiscardUnknown

func (m *MsgRmZValidator) XXX_DiscardUnknown()

func (*MsgRmZValidator) XXX_Marshal

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

func (*MsgRmZValidator) XXX_Merge

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

func (*MsgRmZValidator) XXX_Size

func (m *MsgRmZValidator) XXX_Size() int

func (*MsgRmZValidator) XXX_Unmarshal

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

type MsgRmZValidatorResponse

type MsgRmZValidatorResponse struct {
}

func (*MsgRmZValidatorResponse) Descriptor

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

func (*MsgRmZValidatorResponse) Marshal

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

func (*MsgRmZValidatorResponse) MarshalTo

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

func (*MsgRmZValidatorResponse) MarshalToSizedBuffer

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

func (*MsgRmZValidatorResponse) ProtoMessage

func (*MsgRmZValidatorResponse) ProtoMessage()

func (*MsgRmZValidatorResponse) Reset

func (m *MsgRmZValidatorResponse) Reset()

func (*MsgRmZValidatorResponse) Size

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

func (*MsgRmZValidatorResponse) String

func (m *MsgRmZValidatorResponse) String() string

func (*MsgRmZValidatorResponse) Unmarshal

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

func (*MsgRmZValidatorResponse) XXX_DiscardUnknown

func (m *MsgRmZValidatorResponse) XXX_DiscardUnknown()

func (*MsgRmZValidatorResponse) XXX_Marshal

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

func (*MsgRmZValidatorResponse) XXX_Merge

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

func (*MsgRmZValidatorResponse) XXX_Size

func (m *MsgRmZValidatorResponse) XXX_Size() int

func (*MsgRmZValidatorResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetCycleSeconds

type MsgSetCycleSeconds struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom   string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Seconds uint64 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds"`
}

func NewMsgSetCycleSeconds

func NewMsgSetCycleSeconds(creator string, denom string, seconds uint64) *MsgSetCycleSeconds

func (*MsgSetCycleSeconds) Descriptor

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

func (*MsgSetCycleSeconds) GetCreator

func (m *MsgSetCycleSeconds) GetCreator() string

func (*MsgSetCycleSeconds) GetDenom

func (m *MsgSetCycleSeconds) GetDenom() string

func (*MsgSetCycleSeconds) GetSeconds

func (m *MsgSetCycleSeconds) GetSeconds() uint64

func (*MsgSetCycleSeconds) GetSignBytes

func (msg *MsgSetCycleSeconds) GetSignBytes() []byte

func (*MsgSetCycleSeconds) GetSigners

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

func (*MsgSetCycleSeconds) Marshal

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

func (*MsgSetCycleSeconds) MarshalTo

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

func (*MsgSetCycleSeconds) MarshalToSizedBuffer

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

func (*MsgSetCycleSeconds) ProtoMessage

func (*MsgSetCycleSeconds) ProtoMessage()

func (*MsgSetCycleSeconds) Reset

func (m *MsgSetCycleSeconds) Reset()

func (*MsgSetCycleSeconds) Route

func (msg *MsgSetCycleSeconds) Route() string

func (*MsgSetCycleSeconds) Size

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

func (*MsgSetCycleSeconds) String

func (m *MsgSetCycleSeconds) String() string

func (*MsgSetCycleSeconds) Type

func (msg *MsgSetCycleSeconds) Type() string

func (*MsgSetCycleSeconds) Unmarshal

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

func (*MsgSetCycleSeconds) ValidateBasic

func (msg *MsgSetCycleSeconds) ValidateBasic() error

func (*MsgSetCycleSeconds) XXX_DiscardUnknown

func (m *MsgSetCycleSeconds) XXX_DiscardUnknown()

func (*MsgSetCycleSeconds) XXX_Marshal

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

func (*MsgSetCycleSeconds) XXX_Merge

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

func (*MsgSetCycleSeconds) XXX_Size

func (m *MsgSetCycleSeconds) XXX_Size() int

func (*MsgSetCycleSeconds) XXX_Unmarshal

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

type MsgSetCycleSecondsResponse

type MsgSetCycleSecondsResponse struct {
}

func (*MsgSetCycleSecondsResponse) Descriptor

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

func (*MsgSetCycleSecondsResponse) Marshal

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

func (*MsgSetCycleSecondsResponse) MarshalTo

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

func (*MsgSetCycleSecondsResponse) MarshalToSizedBuffer

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

func (*MsgSetCycleSecondsResponse) ProtoMessage

func (*MsgSetCycleSecondsResponse) ProtoMessage()

func (*MsgSetCycleSecondsResponse) Reset

func (m *MsgSetCycleSecondsResponse) Reset()

func (*MsgSetCycleSecondsResponse) Size

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

func (*MsgSetCycleSecondsResponse) String

func (m *MsgSetCycleSecondsResponse) String() string

func (*MsgSetCycleSecondsResponse) Unmarshal

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

func (*MsgSetCycleSecondsResponse) XXX_DiscardUnknown

func (m *MsgSetCycleSecondsResponse) XXX_DiscardUnknown()

func (*MsgSetCycleSecondsResponse) XXX_Marshal

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

func (*MsgSetCycleSecondsResponse) XXX_Merge

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

func (*MsgSetCycleSecondsResponse) XXX_Size

func (m *MsgSetCycleSecondsResponse) XXX_Size() int

func (*MsgSetCycleSecondsResponse) XXX_Unmarshal

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

type MsgSetShuffleSeconds

type MsgSetShuffleSeconds struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom   string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Seconds uint64 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds"`
}

func NewMsgSetShuffleSeconds

func NewMsgSetShuffleSeconds(creator string, denom string, seconds uint64) *MsgSetShuffleSeconds

func (*MsgSetShuffleSeconds) Descriptor

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

func (*MsgSetShuffleSeconds) GetCreator

func (m *MsgSetShuffleSeconds) GetCreator() string

func (*MsgSetShuffleSeconds) GetDenom

func (m *MsgSetShuffleSeconds) GetDenom() string

func (*MsgSetShuffleSeconds) GetSeconds

func (m *MsgSetShuffleSeconds) GetSeconds() uint64

func (*MsgSetShuffleSeconds) GetSignBytes

func (msg *MsgSetShuffleSeconds) GetSignBytes() []byte

func (*MsgSetShuffleSeconds) GetSigners

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

func (*MsgSetShuffleSeconds) Marshal

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

func (*MsgSetShuffleSeconds) MarshalTo

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

func (*MsgSetShuffleSeconds) MarshalToSizedBuffer

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

func (*MsgSetShuffleSeconds) ProtoMessage

func (*MsgSetShuffleSeconds) ProtoMessage()

func (*MsgSetShuffleSeconds) Reset

func (m *MsgSetShuffleSeconds) Reset()

func (*MsgSetShuffleSeconds) Route

func (msg *MsgSetShuffleSeconds) Route() string

func (*MsgSetShuffleSeconds) Size

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

func (*MsgSetShuffleSeconds) String

func (m *MsgSetShuffleSeconds) String() string

func (*MsgSetShuffleSeconds) Type

func (msg *MsgSetShuffleSeconds) Type() string

func (*MsgSetShuffleSeconds) Unmarshal

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

func (*MsgSetShuffleSeconds) ValidateBasic

func (msg *MsgSetShuffleSeconds) ValidateBasic() error

func (*MsgSetShuffleSeconds) XXX_DiscardUnknown

func (m *MsgSetShuffleSeconds) XXX_DiscardUnknown()

func (*MsgSetShuffleSeconds) XXX_Marshal

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

func (*MsgSetShuffleSeconds) XXX_Merge

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

func (*MsgSetShuffleSeconds) XXX_Size

func (m *MsgSetShuffleSeconds) XXX_Size() int

func (*MsgSetShuffleSeconds) XXX_Unmarshal

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

type MsgSetShuffleSecondsResponse

type MsgSetShuffleSecondsResponse struct {
}

func (*MsgSetShuffleSecondsResponse) Descriptor

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

func (*MsgSetShuffleSecondsResponse) Marshal

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

func (*MsgSetShuffleSecondsResponse) MarshalTo

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

func (*MsgSetShuffleSecondsResponse) MarshalToSizedBuffer

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

func (*MsgSetShuffleSecondsResponse) ProtoMessage

func (*MsgSetShuffleSecondsResponse) ProtoMessage()

func (*MsgSetShuffleSecondsResponse) Reset

func (m *MsgSetShuffleSecondsResponse) Reset()

func (*MsgSetShuffleSecondsResponse) Size

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

func (*MsgSetShuffleSecondsResponse) String

func (*MsgSetShuffleSecondsResponse) Unmarshal

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

func (*MsgSetShuffleSecondsResponse) XXX_DiscardUnknown

func (m *MsgSetShuffleSecondsResponse) XXX_DiscardUnknown()

func (*MsgSetShuffleSecondsResponse) XXX_Marshal

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

func (*MsgSetShuffleSecondsResponse) XXX_Merge

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

func (*MsgSetShuffleSecondsResponse) XXX_Size

func (m *MsgSetShuffleSecondsResponse) XXX_Size() int

func (*MsgSetShuffleSecondsResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of 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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of ZValidatorList items.
	ZValidatorList(ctx context.Context, in *QueryZValidatorListRequest, opts ...grpc.CallOption) (*QueryZValidatorListResponse, error)
	// Queries a list of CycleSeconds items.
	CycleSeconds(ctx context.Context, in *QueryCycleSecondsRequest, opts ...grpc.CallOption) (*QueryCycleSecondsResponse, error)
	// Queries a list of ShuffleSeconds items.
	ShuffleSeconds(ctx context.Context, in *QueryShuffleSecondsRequest, opts ...grpc.CallOption) (*QueryShuffleSecondsResponse, error)
	// Queries a list of LatestVotedCycle items.
	LatestVotedCycle(ctx context.Context, in *QueryLatestVotedCycleRequest, opts ...grpc.CallOption) (*QueryLatestVotedCycleResponse, error)
	// Queries a list of LatestDealedCycle items.
	LatestDealedCycle(ctx context.Context, in *QueryLatestDealedCycleRequest, opts ...grpc.CallOption) (*QueryLatestDealedCycleResponse, 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 QueryCycleSecondsRequest

type QueryCycleSecondsRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryCycleSecondsRequest) Descriptor

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

func (*QueryCycleSecondsRequest) GetDenom

func (m *QueryCycleSecondsRequest) GetDenom() string

func (*QueryCycleSecondsRequest) Marshal

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

func (*QueryCycleSecondsRequest) MarshalTo

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

func (*QueryCycleSecondsRequest) MarshalToSizedBuffer

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

func (*QueryCycleSecondsRequest) ProtoMessage

func (*QueryCycleSecondsRequest) ProtoMessage()

func (*QueryCycleSecondsRequest) Reset

func (m *QueryCycleSecondsRequest) Reset()

func (*QueryCycleSecondsRequest) Size

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

func (*QueryCycleSecondsRequest) String

func (m *QueryCycleSecondsRequest) String() string

func (*QueryCycleSecondsRequest) Unmarshal

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

func (*QueryCycleSecondsRequest) XXX_DiscardUnknown

func (m *QueryCycleSecondsRequest) XXX_DiscardUnknown()

func (*QueryCycleSecondsRequest) XXX_Marshal

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

func (*QueryCycleSecondsRequest) XXX_Merge

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

func (*QueryCycleSecondsRequest) XXX_Size

func (m *QueryCycleSecondsRequest) XXX_Size() int

func (*QueryCycleSecondsRequest) XXX_Unmarshal

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

type QueryCycleSecondsResponse

type QueryCycleSecondsResponse struct {
	CycleSeconds *CycleSeconds `protobuf:"bytes,1,opt,name=cycleSeconds,proto3" json:"cycleSeconds,omitempty"`
}

func (*QueryCycleSecondsResponse) Descriptor

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

func (*QueryCycleSecondsResponse) GetCycleSeconds

func (m *QueryCycleSecondsResponse) GetCycleSeconds() *CycleSeconds

func (*QueryCycleSecondsResponse) Marshal

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

func (*QueryCycleSecondsResponse) MarshalTo

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

func (*QueryCycleSecondsResponse) MarshalToSizedBuffer

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

func (*QueryCycleSecondsResponse) ProtoMessage

func (*QueryCycleSecondsResponse) ProtoMessage()

func (*QueryCycleSecondsResponse) Reset

func (m *QueryCycleSecondsResponse) Reset()

func (*QueryCycleSecondsResponse) Size

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

func (*QueryCycleSecondsResponse) String

func (m *QueryCycleSecondsResponse) String() string

func (*QueryCycleSecondsResponse) Unmarshal

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

func (*QueryCycleSecondsResponse) XXX_DiscardUnknown

func (m *QueryCycleSecondsResponse) XXX_DiscardUnknown()

func (*QueryCycleSecondsResponse) XXX_Marshal

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

func (*QueryCycleSecondsResponse) XXX_Merge

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

func (*QueryCycleSecondsResponse) XXX_Size

func (m *QueryCycleSecondsResponse) XXX_Size() int

func (*QueryCycleSecondsResponse) XXX_Unmarshal

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

type QueryLatestDealedCycleRequest

type QueryLatestDealedCycleRequest struct {
	Denom       string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
}

func (*QueryLatestDealedCycleRequest) Descriptor

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

func (*QueryLatestDealedCycleRequest) GetDenom

func (m *QueryLatestDealedCycleRequest) GetDenom() string

func (*QueryLatestDealedCycleRequest) GetPoolAddress

func (m *QueryLatestDealedCycleRequest) GetPoolAddress() string

func (*QueryLatestDealedCycleRequest) Marshal

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

func (*QueryLatestDealedCycleRequest) MarshalTo

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

func (*QueryLatestDealedCycleRequest) MarshalToSizedBuffer

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

func (*QueryLatestDealedCycleRequest) ProtoMessage

func (*QueryLatestDealedCycleRequest) ProtoMessage()

func (*QueryLatestDealedCycleRequest) Reset

func (m *QueryLatestDealedCycleRequest) Reset()

func (*QueryLatestDealedCycleRequest) Size

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

func (*QueryLatestDealedCycleRequest) String

func (*QueryLatestDealedCycleRequest) Unmarshal

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

func (*QueryLatestDealedCycleRequest) XXX_DiscardUnknown

func (m *QueryLatestDealedCycleRequest) XXX_DiscardUnknown()

func (*QueryLatestDealedCycleRequest) XXX_Marshal

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

func (*QueryLatestDealedCycleRequest) XXX_Merge

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

func (*QueryLatestDealedCycleRequest) XXX_Size

func (m *QueryLatestDealedCycleRequest) XXX_Size() int

func (*QueryLatestDealedCycleRequest) XXX_Unmarshal

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

type QueryLatestDealedCycleResponse

type QueryLatestDealedCycleResponse struct {
	LatestDealedCycle *Cycle `protobuf:"bytes,1,opt,name=latestDealedCycle,proto3" json:"latestDealedCycle,omitempty"`
}

func (*QueryLatestDealedCycleResponse) Descriptor

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

func (*QueryLatestDealedCycleResponse) GetLatestDealedCycle

func (m *QueryLatestDealedCycleResponse) GetLatestDealedCycle() *Cycle

func (*QueryLatestDealedCycleResponse) Marshal

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

func (*QueryLatestDealedCycleResponse) MarshalTo

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

func (*QueryLatestDealedCycleResponse) MarshalToSizedBuffer

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

func (*QueryLatestDealedCycleResponse) ProtoMessage

func (*QueryLatestDealedCycleResponse) ProtoMessage()

func (*QueryLatestDealedCycleResponse) Reset

func (m *QueryLatestDealedCycleResponse) Reset()

func (*QueryLatestDealedCycleResponse) Size

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

func (*QueryLatestDealedCycleResponse) String

func (*QueryLatestDealedCycleResponse) Unmarshal

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

func (*QueryLatestDealedCycleResponse) XXX_DiscardUnknown

func (m *QueryLatestDealedCycleResponse) XXX_DiscardUnknown()

func (*QueryLatestDealedCycleResponse) XXX_Marshal

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

func (*QueryLatestDealedCycleResponse) XXX_Merge

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

func (*QueryLatestDealedCycleResponse) XXX_Size

func (m *QueryLatestDealedCycleResponse) XXX_Size() int

func (*QueryLatestDealedCycleResponse) XXX_Unmarshal

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

type QueryLatestVotedCycleRequest

type QueryLatestVotedCycleRequest struct {
	Denom       string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
}

func (*QueryLatestVotedCycleRequest) Descriptor

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

func (*QueryLatestVotedCycleRequest) GetDenom

func (m *QueryLatestVotedCycleRequest) GetDenom() string

func (*QueryLatestVotedCycleRequest) GetPoolAddress

func (m *QueryLatestVotedCycleRequest) GetPoolAddress() string

func (*QueryLatestVotedCycleRequest) Marshal

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

func (*QueryLatestVotedCycleRequest) MarshalTo

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

func (*QueryLatestVotedCycleRequest) MarshalToSizedBuffer

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

func (*QueryLatestVotedCycleRequest) ProtoMessage

func (*QueryLatestVotedCycleRequest) ProtoMessage()

func (*QueryLatestVotedCycleRequest) Reset

func (m *QueryLatestVotedCycleRequest) Reset()

func (*QueryLatestVotedCycleRequest) Size

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

func (*QueryLatestVotedCycleRequest) String

func (*QueryLatestVotedCycleRequest) Unmarshal

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

func (*QueryLatestVotedCycleRequest) XXX_DiscardUnknown

func (m *QueryLatestVotedCycleRequest) XXX_DiscardUnknown()

func (*QueryLatestVotedCycleRequest) XXX_Marshal

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

func (*QueryLatestVotedCycleRequest) XXX_Merge

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

func (*QueryLatestVotedCycleRequest) XXX_Size

func (m *QueryLatestVotedCycleRequest) XXX_Size() int

func (*QueryLatestVotedCycleRequest) XXX_Unmarshal

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

type QueryLatestVotedCycleResponse

type QueryLatestVotedCycleResponse struct {
	LatestVotedCycle *Cycle `protobuf:"bytes,1,opt,name=latestVotedCycle,proto3" json:"latestVotedCycle,omitempty"`
}

func (*QueryLatestVotedCycleResponse) Descriptor

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

func (*QueryLatestVotedCycleResponse) GetLatestVotedCycle

func (m *QueryLatestVotedCycleResponse) GetLatestVotedCycle() *Cycle

func (*QueryLatestVotedCycleResponse) Marshal

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

func (*QueryLatestVotedCycleResponse) MarshalTo

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

func (*QueryLatestVotedCycleResponse) MarshalToSizedBuffer

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

func (*QueryLatestVotedCycleResponse) ProtoMessage

func (*QueryLatestVotedCycleResponse) ProtoMessage()

func (*QueryLatestVotedCycleResponse) Reset

func (m *QueryLatestVotedCycleResponse) Reset()

func (*QueryLatestVotedCycleResponse) Size

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

func (*QueryLatestVotedCycleResponse) String

func (*QueryLatestVotedCycleResponse) Unmarshal

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

func (*QueryLatestVotedCycleResponse) XXX_DiscardUnknown

func (m *QueryLatestVotedCycleResponse) XXX_DiscardUnknown()

func (*QueryLatestVotedCycleResponse) XXX_Marshal

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

func (*QueryLatestVotedCycleResponse) XXX_Merge

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

func (*QueryLatestVotedCycleResponse) XXX_Size

func (m *QueryLatestVotedCycleResponse) XXX_Size() int

func (*QueryLatestVotedCycleResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is 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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of ZValidatorList items.
	ZValidatorList(context.Context, *QueryZValidatorListRequest) (*QueryZValidatorListResponse, error)
	// Queries a list of CycleSeconds items.
	CycleSeconds(context.Context, *QueryCycleSecondsRequest) (*QueryCycleSecondsResponse, error)
	// Queries a list of ShuffleSeconds items.
	ShuffleSeconds(context.Context, *QueryShuffleSecondsRequest) (*QueryShuffleSecondsResponse, error)
	// Queries a list of LatestVotedCycle items.
	LatestVotedCycle(context.Context, *QueryLatestVotedCycleRequest) (*QueryLatestVotedCycleResponse, error)
	// Queries a list of LatestDealedCycle items.
	LatestDealedCycle(context.Context, *QueryLatestDealedCycleRequest) (*QueryLatestDealedCycleResponse, error)
}

QueryServer is the server API for Query service.

type QueryShuffleSecondsRequest

type QueryShuffleSecondsRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryShuffleSecondsRequest) Descriptor

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

func (*QueryShuffleSecondsRequest) GetDenom

func (m *QueryShuffleSecondsRequest) GetDenom() string

func (*QueryShuffleSecondsRequest) Marshal

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

func (*QueryShuffleSecondsRequest) MarshalTo

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

func (*QueryShuffleSecondsRequest) MarshalToSizedBuffer

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

func (*QueryShuffleSecondsRequest) ProtoMessage

func (*QueryShuffleSecondsRequest) ProtoMessage()

func (*QueryShuffleSecondsRequest) Reset

func (m *QueryShuffleSecondsRequest) Reset()

func (*QueryShuffleSecondsRequest) Size

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

func (*QueryShuffleSecondsRequest) String

func (m *QueryShuffleSecondsRequest) String() string

func (*QueryShuffleSecondsRequest) Unmarshal

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

func (*QueryShuffleSecondsRequest) XXX_DiscardUnknown

func (m *QueryShuffleSecondsRequest) XXX_DiscardUnknown()

func (*QueryShuffleSecondsRequest) XXX_Marshal

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

func (*QueryShuffleSecondsRequest) XXX_Merge

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

func (*QueryShuffleSecondsRequest) XXX_Size

func (m *QueryShuffleSecondsRequest) XXX_Size() int

func (*QueryShuffleSecondsRequest) XXX_Unmarshal

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

type QueryShuffleSecondsResponse

type QueryShuffleSecondsResponse struct {
	ShuffleSeconds *ShuffleSeconds `protobuf:"bytes,1,opt,name=shuffleSeconds,proto3" json:"shuffleSeconds,omitempty"`
}

func (*QueryShuffleSecondsResponse) Descriptor

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

func (*QueryShuffleSecondsResponse) GetShuffleSeconds

func (m *QueryShuffleSecondsResponse) GetShuffleSeconds() *ShuffleSeconds

func (*QueryShuffleSecondsResponse) Marshal

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

func (*QueryShuffleSecondsResponse) MarshalTo

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

func (*QueryShuffleSecondsResponse) MarshalToSizedBuffer

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

func (*QueryShuffleSecondsResponse) ProtoMessage

func (*QueryShuffleSecondsResponse) ProtoMessage()

func (*QueryShuffleSecondsResponse) Reset

func (m *QueryShuffleSecondsResponse) Reset()

func (*QueryShuffleSecondsResponse) Size

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

func (*QueryShuffleSecondsResponse) String

func (m *QueryShuffleSecondsResponse) String() string

func (*QueryShuffleSecondsResponse) Unmarshal

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

func (*QueryShuffleSecondsResponse) XXX_DiscardUnknown

func (m *QueryShuffleSecondsResponse) XXX_DiscardUnknown()

func (*QueryShuffleSecondsResponse) XXX_Marshal

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

func (*QueryShuffleSecondsResponse) XXX_Merge

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

func (*QueryShuffleSecondsResponse) XXX_Size

func (m *QueryShuffleSecondsResponse) XXX_Size() int

func (*QueryShuffleSecondsResponse) XXX_Unmarshal

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

type QueryZValidatorListRequest

type QueryZValidatorListRequest struct {
	Denom       string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
}

func (*QueryZValidatorListRequest) Descriptor

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

func (*QueryZValidatorListRequest) GetDenom

func (m *QueryZValidatorListRequest) GetDenom() string

func (*QueryZValidatorListRequest) GetPoolAddress

func (m *QueryZValidatorListRequest) GetPoolAddress() string

func (*QueryZValidatorListRequest) Marshal

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

func (*QueryZValidatorListRequest) MarshalTo

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

func (*QueryZValidatorListRequest) MarshalToSizedBuffer

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

func (*QueryZValidatorListRequest) ProtoMessage

func (*QueryZValidatorListRequest) ProtoMessage()

func (*QueryZValidatorListRequest) Reset

func (m *QueryZValidatorListRequest) Reset()

func (*QueryZValidatorListRequest) Size

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

func (*QueryZValidatorListRequest) String

func (m *QueryZValidatorListRequest) String() string

func (*QueryZValidatorListRequest) Unmarshal

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

func (*QueryZValidatorListRequest) XXX_DiscardUnknown

func (m *QueryZValidatorListRequest) XXX_DiscardUnknown()

func (*QueryZValidatorListRequest) XXX_Marshal

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

func (*QueryZValidatorListRequest) XXX_Merge

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

func (*QueryZValidatorListRequest) XXX_Size

func (m *QueryZValidatorListRequest) XXX_Size() int

func (*QueryZValidatorListRequest) XXX_Unmarshal

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

type QueryZValidatorListResponse

type QueryZValidatorListResponse struct {
	ZValidatorList []string `protobuf:"bytes,1,rep,name=zValidatorList,proto3" json:"zValidatorList,omitempty"`
}

func (*QueryZValidatorListResponse) Descriptor

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

func (*QueryZValidatorListResponse) GetZValidatorList

func (m *QueryZValidatorListResponse) GetZValidatorList() []string

func (*QueryZValidatorListResponse) Marshal

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

func (*QueryZValidatorListResponse) MarshalTo

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

func (*QueryZValidatorListResponse) MarshalToSizedBuffer

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

func (*QueryZValidatorListResponse) ProtoMessage

func (*QueryZValidatorListResponse) ProtoMessage()

func (*QueryZValidatorListResponse) Reset

func (m *QueryZValidatorListResponse) Reset()

func (*QueryZValidatorListResponse) Size

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

func (*QueryZValidatorListResponse) String

func (m *QueryZValidatorListResponse) String() string

func (*QueryZValidatorListResponse) Unmarshal

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

func (*QueryZValidatorListResponse) XXX_DiscardUnknown

func (m *QueryZValidatorListResponse) XXX_DiscardUnknown()

func (*QueryZValidatorListResponse) XXX_Marshal

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

func (*QueryZValidatorListResponse) XXX_Merge

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

func (*QueryZValidatorListResponse) XXX_Size

func (m *QueryZValidatorListResponse) XXX_Size() int

func (*QueryZValidatorListResponse) XXX_Unmarshal

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

type ShuffleSeconds

type ShuffleSeconds struct {
	Denom   string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Seconds uint64 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
}

func (*ShuffleSeconds) Descriptor

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

func (*ShuffleSeconds) GetDenom

func (m *ShuffleSeconds) GetDenom() string

func (*ShuffleSeconds) GetSeconds

func (m *ShuffleSeconds) GetSeconds() uint64

func (*ShuffleSeconds) GetVersion

func (m *ShuffleSeconds) GetVersion() uint64

func (*ShuffleSeconds) Marshal

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

func (*ShuffleSeconds) MarshalTo

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

func (*ShuffleSeconds) MarshalToSizedBuffer

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

func (*ShuffleSeconds) ProtoMessage

func (*ShuffleSeconds) ProtoMessage()

func (*ShuffleSeconds) Reset

func (m *ShuffleSeconds) Reset()

func (*ShuffleSeconds) Size

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

func (*ShuffleSeconds) String

func (m *ShuffleSeconds) String() string

func (*ShuffleSeconds) Unmarshal

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

func (*ShuffleSeconds) XXX_DiscardUnknown

func (m *ShuffleSeconds) XXX_DiscardUnknown()

func (*ShuffleSeconds) XXX_Marshal

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

func (*ShuffleSeconds) XXX_Merge

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

func (*ShuffleSeconds) XXX_Size

func (m *ShuffleSeconds) XXX_Size() int

func (*ShuffleSeconds) XXX_Unmarshal

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

type SudoKeeper

type SudoKeeper interface {
	IsAdmin(ctx sdk.Context, address string) bool
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddZValidator

func (*UnimplementedMsgServer) InitZValidator

func (*UnimplementedMsgServer) RmZValidator

func (*UnimplementedMsgServer) SetCycleSeconds

func (*UnimplementedMsgServer) SetShuffleSeconds

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CycleSeconds

func (*UnimplementedQueryServer) LatestDealedCycle

func (*UnimplementedQueryServer) LatestVotedCycle

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ShuffleSeconds

func (*UnimplementedQueryServer) ZValidatorList

type UpdateZValidatorProposal

type UpdateZValidatorProposal struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom       string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,3,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	OldAddress  string `protobuf:"bytes,4,opt,name=oldAddress,proto3" json:"oldAddress,omitempty"`
	NewAddress  string `protobuf:"bytes,5,opt,name=newAddress,proto3" json:"newAddress,omitempty"`
	PropId      string `protobuf:"bytes,6,opt,name=propId,proto3" json:"propId,omitempty"`
	Cycle       *Cycle `protobuf:"bytes,7,opt,name=cycle,proto3" json:"cycle,omitempty"`
}

func NewUpdateZValidatorProposal

func NewUpdateZValidatorProposal(creator string, denom string, poolAddress, oldAddress string, newAddress string, cycle *Cycle) *UpdateZValidatorProposal

func (*UpdateZValidatorProposal) Descriptor

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

func (*UpdateZValidatorProposal) GetCreator

func (m *UpdateZValidatorProposal) GetCreator() string

func (*UpdateZValidatorProposal) GetCycle

func (m *UpdateZValidatorProposal) GetCycle() *Cycle

func (*UpdateZValidatorProposal) GetDenom

func (m *UpdateZValidatorProposal) GetDenom() string

func (*UpdateZValidatorProposal) GetNewAddress

func (m *UpdateZValidatorProposal) GetNewAddress() string

func (*UpdateZValidatorProposal) GetOldAddress

func (m *UpdateZValidatorProposal) GetOldAddress() string

func (*UpdateZValidatorProposal) GetPoolAddress

func (m *UpdateZValidatorProposal) GetPoolAddress() string

func (*UpdateZValidatorProposal) GetPropId

func (m *UpdateZValidatorProposal) GetPropId() string

func (*UpdateZValidatorProposal) GetSignBytes

func (msg *UpdateZValidatorProposal) GetSignBytes() []byte

func (*UpdateZValidatorProposal) GetSigners

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

func (*UpdateZValidatorProposal) InFavour

func (p *UpdateZValidatorProposal) InFavour() bool

func (*UpdateZValidatorProposal) Marshal

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

func (*UpdateZValidatorProposal) MarshalTo

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

func (*UpdateZValidatorProposal) MarshalToSizedBuffer

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

func (*UpdateZValidatorProposal) ProposalRoute

func (p *UpdateZValidatorProposal) ProposalRoute() string

func (*UpdateZValidatorProposal) ProposalType

func (p *UpdateZValidatorProposal) ProposalType() string

func (*UpdateZValidatorProposal) ProtoMessage

func (*UpdateZValidatorProposal) ProtoMessage()

func (*UpdateZValidatorProposal) Reset

func (m *UpdateZValidatorProposal) Reset()

func (*UpdateZValidatorProposal) Size

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

func (*UpdateZValidatorProposal) String

func (m *UpdateZValidatorProposal) String() string

func (*UpdateZValidatorProposal) Unmarshal

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

func (*UpdateZValidatorProposal) ValidateBasic

func (msg *UpdateZValidatorProposal) ValidateBasic() error

func (*UpdateZValidatorProposal) XXX_DiscardUnknown

func (m *UpdateZValidatorProposal) XXX_DiscardUnknown()

func (*UpdateZValidatorProposal) XXX_Marshal

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

func (*UpdateZValidatorProposal) XXX_Merge

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

func (*UpdateZValidatorProposal) XXX_Size

func (m *UpdateZValidatorProposal) XXX_Size() int

func (*UpdateZValidatorProposal) XXX_Unmarshal

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

type UpdateZValidatorReportProposal

type UpdateZValidatorReportProposal struct {
	Creator     string                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom       string                 `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string                 `protobuf:"bytes,3,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	PropId      string                 `protobuf:"bytes,4,opt,name=propId,proto3" json:"propId,omitempty"`
	Cycle       *Cycle                 `protobuf:"bytes,5,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Status      UpdateZValidatorStatus `protobuf:"varint,6,opt,name=status,proto3,enum=mezonhub.mezonhub.zvalidator.UpdateZValidatorStatus" json:"status,omitempty"`
}

func NewUpdateZValidatorReportProposal

func NewUpdateZValidatorReportProposal(creator string, denom string, poolAddress string, cycle *Cycle, status UpdateZValidatorStatus) *UpdateZValidatorReportProposal

func (*UpdateZValidatorReportProposal) Descriptor

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

func (*UpdateZValidatorReportProposal) GetCreator

func (m *UpdateZValidatorReportProposal) GetCreator() string

func (*UpdateZValidatorReportProposal) GetCycle

func (m *UpdateZValidatorReportProposal) GetCycle() *Cycle

func (*UpdateZValidatorReportProposal) GetDenom

func (m *UpdateZValidatorReportProposal) GetDenom() string

func (*UpdateZValidatorReportProposal) GetPoolAddress

func (m *UpdateZValidatorReportProposal) GetPoolAddress() string

func (*UpdateZValidatorReportProposal) GetPropId

func (m *UpdateZValidatorReportProposal) GetPropId() string

func (*UpdateZValidatorReportProposal) GetSignBytes

func (msg *UpdateZValidatorReportProposal) GetSignBytes() []byte

func (*UpdateZValidatorReportProposal) GetSigners

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

func (*UpdateZValidatorReportProposal) GetStatus

func (*UpdateZValidatorReportProposal) InFavour

func (p *UpdateZValidatorReportProposal) InFavour() bool

func (*UpdateZValidatorReportProposal) Marshal

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

func (*UpdateZValidatorReportProposal) MarshalTo

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

func (*UpdateZValidatorReportProposal) MarshalToSizedBuffer

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

func (*UpdateZValidatorReportProposal) ProposalRoute

func (p *UpdateZValidatorReportProposal) ProposalRoute() string

func (*UpdateZValidatorReportProposal) ProposalType

func (p *UpdateZValidatorReportProposal) ProposalType() string

func (*UpdateZValidatorReportProposal) ProtoMessage

func (*UpdateZValidatorReportProposal) ProtoMessage()

func (*UpdateZValidatorReportProposal) Reset

func (m *UpdateZValidatorReportProposal) Reset()

func (*UpdateZValidatorReportProposal) Size

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

func (*UpdateZValidatorReportProposal) String

func (*UpdateZValidatorReportProposal) Unmarshal

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

func (*UpdateZValidatorReportProposal) ValidateBasic

func (msg *UpdateZValidatorReportProposal) ValidateBasic() error

func (*UpdateZValidatorReportProposal) XXX_DiscardUnknown

func (m *UpdateZValidatorReportProposal) XXX_DiscardUnknown()

func (*UpdateZValidatorReportProposal) XXX_Marshal

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

func (*UpdateZValidatorReportProposal) XXX_Merge

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

func (*UpdateZValidatorReportProposal) XXX_Size

func (m *UpdateZValidatorReportProposal) XXX_Size() int

func (*UpdateZValidatorReportProposal) XXX_Unmarshal

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

type UpdateZValidatorStatus

type UpdateZValidatorStatus int32
const (
	UpdateZValidatorStatusUnspecified UpdateZValidatorStatus = 0
	UpdateZValidatorStatusSuccess     UpdateZValidatorStatus = 1
	UpdateZValidatorStatusFailed      UpdateZValidatorStatus = 2
)

func (UpdateZValidatorStatus) EnumDescriptor

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

func (UpdateZValidatorStatus) String

func (x UpdateZValidatorStatus) String() string

type ZBankKeeper

type ZBankKeeper interface {
	CheckValAddress(ctx sdk.Context, denom, address string) error
	CheckAccAddress(ctx sdk.Context, denom, address string) error
}

type ZValidator

type ZValidator struct {
	Denom       string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=poolAddress,proto3" json:"poolAddress,omitempty"`
	ValAddress  string `protobuf:"bytes,3,opt,name=valAddress,proto3" json:"valAddress,omitempty"`
}

func (*ZValidator) Descriptor

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

func (*ZValidator) GetDenom

func (m *ZValidator) GetDenom() string

func (*ZValidator) GetPoolAddress

func (m *ZValidator) GetPoolAddress() string

func (*ZValidator) GetValAddress

func (m *ZValidator) GetValAddress() string

func (*ZValidator) Marshal

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

func (*ZValidator) MarshalTo

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

func (*ZValidator) MarshalToSizedBuffer

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

func (*ZValidator) ProtoMessage

func (*ZValidator) ProtoMessage()

func (*ZValidator) Reset

func (m *ZValidator) Reset()

func (*ZValidator) Size

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

func (*ZValidator) String

func (m *ZValidator) String() string

func (*ZValidator) Unmarshal

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

func (*ZValidator) XXX_DiscardUnknown

func (m *ZValidator) XXX_DiscardUnknown()

func (*ZValidator) XXX_Marshal

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

func (*ZValidator) XXX_Merge

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

func (*ZValidator) XXX_Size

func (m *ZValidator) XXX_Size() int

func (*ZValidator) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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