types

package
v1.4.2-dev1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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_dclupgrade"
)
View Source
const (
	// ApprovedUpgradeKeyPrefix is the prefix to retrieve all ApprovedUpgrade.
	ApprovedUpgradeKeyPrefix = "ApprovedUpgrade/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index.

View Source
const (
	// ProposedUpgradeKeyPrefix is the prefix to retrieve all ProposedUpgrade.
	ProposedUpgradeKeyPrefix = "ProposedUpgrade/value/"
)
View Source
const (
	// RejectedUpgradeKeyPrefix is the prefix to retrieve all RejectedUpgrade.
	RejectedUpgradeKeyPrefix = "RejectedUpgrade/value/"
)
View Source
const TypeMsgApproveUpgrade = "approve_upgrade"
View Source
const TypeMsgProposeUpgrade = "propose_upgrade"
View Source
const TypeMsgRejectUpgrade = "reject_upgrade"

Variables

View Source
var (
	ErrInvalidLengthApprovedUpgrade        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApprovedUpgrade          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApprovedUpgrade = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrProposedUpgradeAlreadyExists = errors.Register(ModuleName, 801, "proposed upgrade already exists")
	ErrProposedUpgradeDoesNotExist  = errors.Register(ModuleName, 802, "proposed upgrade does not exist")
	ErrApprovedUpgradeAlreadyExists = errors.Register(ModuleName, 803, "approved upgrade already exists")
)

x/dclupgrade 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 (
	ErrInvalidLengthGrant        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGrant          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGrant = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposedUpgrade        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposedUpgrade          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposedUpgrade = 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 (
	ErrInvalidLengthRejectedUpgrade        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRejectedUpgrade          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRejectedUpgrade = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	UpgradeApprovalsPercent = 2.0 / 3.0
	UpgradeApprovalRole     = dclauthtypes.Trustee
)

TODO: 1. Move it to separate module 2. Make it configurable 3. Save into store.

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

Functions

func ApprovedUpgradeKey added in v0.8.0

func ApprovedUpgradeKey(
	name string,
) []byte

ApprovedUpgradeKey returns the store key to retrieve a ApprovedUpgrade from the index fields.

func KeyPrefix

func KeyPrefix(p string) []byte

func NewErrApprovedUpgradeAlreadyExists added in v0.8.0

func NewErrApprovedUpgradeAlreadyExists(name interface{}) error

func NewErrProposedUpgradeAlreadyExists

func NewErrProposedUpgradeAlreadyExists(name interface{}) error

func NewErrProposedUpgradeDoesNotExist

func NewErrProposedUpgradeDoesNotExist(name interface{}) error

func ProposedUpgradeKey

func ProposedUpgradeKey(
	name string,
) []byte

ProposedUpgradeKey returns the store key to retrieve a ProposedUpgrade from the index fields.

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 RejectedUpgradeKey added in v0.11.0

func RejectedUpgradeKey(
	name string,
) []byte

RejectedUpgradeKey returns the store key to retrieve a RejectedUpgrade from the index fields.

Types

type ApprovedUpgrade added in v0.8.0

type ApprovedUpgrade struct {
	Plan          types.Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
	Creator       string     `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Approvals     []*Grant   `protobuf:"bytes,3,rep,name=approvals,proto3" json:"approvals,omitempty"`
	Rejects       []*Grant   `protobuf:"bytes,4,rep,name=rejects,proto3" json:"rejects,omitempty"`
	SchemaVersion uint32     `protobuf:"varint,5,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"`
}

func (*ApprovedUpgrade) Descriptor added in v0.8.0

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

func (*ApprovedUpgrade) GetApprovals added in v0.8.0

func (m *ApprovedUpgrade) GetApprovals() []*Grant

func (*ApprovedUpgrade) GetCreator added in v0.8.0

func (m *ApprovedUpgrade) GetCreator() string

func (*ApprovedUpgrade) GetPlan added in v0.8.0

func (m *ApprovedUpgrade) GetPlan() types.Plan

func (*ApprovedUpgrade) GetRejects added in v0.11.0

func (m *ApprovedUpgrade) GetRejects() []*Grant

func (*ApprovedUpgrade) GetSchemaVersion added in v1.4.0

func (m *ApprovedUpgrade) GetSchemaVersion() uint32

func (*ApprovedUpgrade) Marshal added in v0.8.0

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

func (*ApprovedUpgrade) MarshalTo added in v0.8.0

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

func (*ApprovedUpgrade) MarshalToSizedBuffer added in v0.8.0

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

func (*ApprovedUpgrade) ProtoMessage added in v0.8.0

func (*ApprovedUpgrade) ProtoMessage()

func (*ApprovedUpgrade) Reset added in v0.8.0

func (m *ApprovedUpgrade) Reset()

func (*ApprovedUpgrade) Size added in v0.8.0

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

func (*ApprovedUpgrade) String added in v0.8.0

func (m *ApprovedUpgrade) String() string

func (*ApprovedUpgrade) Unmarshal added in v0.8.0

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

func (*ApprovedUpgrade) XXX_DiscardUnknown added in v0.8.0

func (m *ApprovedUpgrade) XXX_DiscardUnknown()

func (*ApprovedUpgrade) XXX_Marshal added in v0.8.0

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

func (*ApprovedUpgrade) XXX_Merge added in v0.8.0

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

func (*ApprovedUpgrade) XXX_Size added in v0.8.0

func (m *ApprovedUpgrade) XXX_Size() int

func (*ApprovedUpgrade) XXX_Unmarshal added in v0.8.0

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

type DclauthKeeper

type DclauthKeeper interface {
	// Methods imported from dclauth should be defined here
	HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck dclauthtypes.AccountRole) bool
	CountAccountsWithRole(ctx sdk.Context, roleToCount dclauthtypes.AccountRole) int
}

type GenesisState

type GenesisState struct {
	ProposedUpgradeList []ProposedUpgrade `protobuf:"bytes,1,rep,name=proposedUpgradeList,proto3" json:"proposedUpgradeList"`
	ApprovedUpgradeList []ApprovedUpgrade `protobuf:"bytes,2,rep,name=approvedUpgradeList,proto3" json:"approvedUpgradeList"`
	RejectedUpgradeList []RejectedUpgrade `protobuf:"bytes,3,rep,name=rejectedUpgradeList,proto3" json:"rejectedUpgradeList"`
}

GenesisState defines the dclupgrade 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) GetApprovedUpgradeList added in v0.8.0

func (m *GenesisState) GetApprovedUpgradeList() []ApprovedUpgrade

func (*GenesisState) GetProposedUpgradeList

func (m *GenesisState) GetProposedUpgradeList() []ProposedUpgrade

func (*GenesisState) GetRejectedUpgradeList added in v0.11.0

func (m *GenesisState) GetRejectedUpgradeList() []RejectedUpgrade

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 Grant added in v0.8.0

type Grant struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Time          int64  `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	Info          string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
	SchemaVersion uint32 `protobuf:"varint,4,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"`
}

func (*Grant) Descriptor added in v0.8.0

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

func (*Grant) GetAddress added in v0.8.0

func (m *Grant) GetAddress() string

func (*Grant) GetInfo added in v0.8.0

func (m *Grant) GetInfo() string

func (*Grant) GetSchemaVersion added in v1.4.0

func (m *Grant) GetSchemaVersion() uint32

func (*Grant) GetTime added in v0.8.0

func (m *Grant) GetTime() int64

func (*Grant) Marshal added in v0.8.0

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

func (*Grant) MarshalTo added in v0.8.0

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

func (*Grant) MarshalToSizedBuffer added in v0.8.0

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

func (*Grant) ProtoMessage added in v0.8.0

func (*Grant) ProtoMessage()

func (*Grant) Reset added in v0.8.0

func (m *Grant) Reset()

func (*Grant) Size added in v0.8.0

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

func (*Grant) String added in v0.8.0

func (m *Grant) String() string

func (*Grant) Unmarshal added in v0.8.0

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

func (*Grant) XXX_DiscardUnknown added in v0.8.0

func (m *Grant) XXX_DiscardUnknown()

func (*Grant) XXX_Marshal added in v0.8.0

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

func (*Grant) XXX_Merge added in v0.8.0

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

func (*Grant) XXX_Size added in v0.8.0

func (m *Grant) XXX_Size() int

func (*Grant) XXX_Unmarshal added in v0.8.0

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

type MsgApproveUpgrade

type MsgApproveUpgrade struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" validate:"required"`
	Info    string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty" validate:"max=4096"`
	Time    int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
}

func NewMsgApproveUpgrade

func NewMsgApproveUpgrade(creator string, name string, info string) *MsgApproveUpgrade

func (*MsgApproveUpgrade) Descriptor

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

func (*MsgApproveUpgrade) GetCreator

func (m *MsgApproveUpgrade) GetCreator() string

func (*MsgApproveUpgrade) GetInfo added in v0.8.0

func (m *MsgApproveUpgrade) GetInfo() string

func (*MsgApproveUpgrade) GetName

func (m *MsgApproveUpgrade) GetName() string

func (*MsgApproveUpgrade) GetSignBytes

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

func (*MsgApproveUpgrade) GetSigners

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

func (*MsgApproveUpgrade) GetTime added in v0.8.0

func (m *MsgApproveUpgrade) GetTime() int64

func (*MsgApproveUpgrade) Marshal

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

func (*MsgApproveUpgrade) MarshalTo

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

func (*MsgApproveUpgrade) MarshalToSizedBuffer

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

func (*MsgApproveUpgrade) ProtoMessage

func (*MsgApproveUpgrade) ProtoMessage()

func (*MsgApproveUpgrade) Reset

func (m *MsgApproveUpgrade) Reset()

func (*MsgApproveUpgrade) Route

func (msg *MsgApproveUpgrade) Route() string

func (*MsgApproveUpgrade) Size

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

func (*MsgApproveUpgrade) String

func (m *MsgApproveUpgrade) String() string

func (*MsgApproveUpgrade) Type

func (msg *MsgApproveUpgrade) Type() string

func (*MsgApproveUpgrade) Unmarshal

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

func (*MsgApproveUpgrade) ValidateBasic

func (msg *MsgApproveUpgrade) ValidateBasic() error

func (*MsgApproveUpgrade) XXX_DiscardUnknown

func (m *MsgApproveUpgrade) XXX_DiscardUnknown()

func (*MsgApproveUpgrade) XXX_Marshal

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

func (*MsgApproveUpgrade) XXX_Merge

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

func (*MsgApproveUpgrade) XXX_Size

func (m *MsgApproveUpgrade) XXX_Size() int

func (*MsgApproveUpgrade) XXX_Unmarshal

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

type MsgApproveUpgradeResponse

type MsgApproveUpgradeResponse struct {
}

func (*MsgApproveUpgradeResponse) Descriptor

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

func (*MsgApproveUpgradeResponse) Marshal

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

func (*MsgApproveUpgradeResponse) MarshalTo

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

func (*MsgApproveUpgradeResponse) MarshalToSizedBuffer

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

func (*MsgApproveUpgradeResponse) ProtoMessage

func (*MsgApproveUpgradeResponse) ProtoMessage()

func (*MsgApproveUpgradeResponse) Reset

func (m *MsgApproveUpgradeResponse) Reset()

func (*MsgApproveUpgradeResponse) Size

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

func (*MsgApproveUpgradeResponse) String

func (m *MsgApproveUpgradeResponse) String() string

func (*MsgApproveUpgradeResponse) Unmarshal

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

func (*MsgApproveUpgradeResponse) XXX_DiscardUnknown

func (m *MsgApproveUpgradeResponse) XXX_DiscardUnknown()

func (*MsgApproveUpgradeResponse) XXX_Marshal

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

func (*MsgApproveUpgradeResponse) XXX_Merge

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

func (*MsgApproveUpgradeResponse) XXX_Size

func (m *MsgApproveUpgradeResponse) XXX_Size() int

func (*MsgApproveUpgradeResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	ProposeUpgrade(ctx context.Context, in *MsgProposeUpgrade, opts ...grpc.CallOption) (*MsgProposeUpgradeResponse, error)
	ApproveUpgrade(ctx context.Context, in *MsgApproveUpgrade, opts ...grpc.CallOption) (*MsgApproveUpgradeResponse, error)
	RejectUpgrade(ctx context.Context, in *MsgRejectUpgrade, opts ...grpc.CallOption) (*MsgRejectUpgradeResponse, 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 MsgProposeUpgrade

type MsgProposeUpgrade struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"`
	Plan    types.Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan"`
	Info    string     `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty" validate:"max=4096"`
	Time    int64      `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
}

func NewMsgProposeUpgrade

func NewMsgProposeUpgrade(creator string, plan Plan, info string) *MsgProposeUpgrade

func (*MsgProposeUpgrade) Descriptor

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

func (*MsgProposeUpgrade) GetCreator

func (m *MsgProposeUpgrade) GetCreator() string

func (*MsgProposeUpgrade) GetInfo added in v0.8.0

func (m *MsgProposeUpgrade) GetInfo() string

func (*MsgProposeUpgrade) GetPlan

func (m *MsgProposeUpgrade) GetPlan() types.Plan

func (*MsgProposeUpgrade) GetSignBytes

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

func (*MsgProposeUpgrade) GetSigners

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

func (*MsgProposeUpgrade) GetTime added in v0.8.0

func (m *MsgProposeUpgrade) GetTime() int64

func (*MsgProposeUpgrade) Marshal

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

func (*MsgProposeUpgrade) MarshalTo

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

func (*MsgProposeUpgrade) MarshalToSizedBuffer

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

func (*MsgProposeUpgrade) ProtoMessage

func (*MsgProposeUpgrade) ProtoMessage()

func (*MsgProposeUpgrade) Reset

func (m *MsgProposeUpgrade) Reset()

func (*MsgProposeUpgrade) Route

func (msg *MsgProposeUpgrade) Route() string

func (*MsgProposeUpgrade) Size

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

func (*MsgProposeUpgrade) String

func (m *MsgProposeUpgrade) String() string

func (*MsgProposeUpgrade) Type

func (msg *MsgProposeUpgrade) Type() string

func (*MsgProposeUpgrade) Unmarshal

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

func (*MsgProposeUpgrade) ValidateBasic

func (msg *MsgProposeUpgrade) ValidateBasic() error

func (*MsgProposeUpgrade) XXX_DiscardUnknown

func (m *MsgProposeUpgrade) XXX_DiscardUnknown()

func (*MsgProposeUpgrade) XXX_Marshal

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

func (*MsgProposeUpgrade) XXX_Merge

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

func (*MsgProposeUpgrade) XXX_Size

func (m *MsgProposeUpgrade) XXX_Size() int

func (*MsgProposeUpgrade) XXX_Unmarshal

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

type MsgProposeUpgradeResponse

type MsgProposeUpgradeResponse struct {
}

func (*MsgProposeUpgradeResponse) Descriptor

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

func (*MsgProposeUpgradeResponse) Marshal

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

func (*MsgProposeUpgradeResponse) MarshalTo

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

func (*MsgProposeUpgradeResponse) MarshalToSizedBuffer

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

func (*MsgProposeUpgradeResponse) ProtoMessage

func (*MsgProposeUpgradeResponse) ProtoMessage()

func (*MsgProposeUpgradeResponse) Reset

func (m *MsgProposeUpgradeResponse) Reset()

func (*MsgProposeUpgradeResponse) Size

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

func (*MsgProposeUpgradeResponse) String

func (m *MsgProposeUpgradeResponse) String() string

func (*MsgProposeUpgradeResponse) Unmarshal

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

func (*MsgProposeUpgradeResponse) XXX_DiscardUnknown

func (m *MsgProposeUpgradeResponse) XXX_DiscardUnknown()

func (*MsgProposeUpgradeResponse) XXX_Marshal

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

func (*MsgProposeUpgradeResponse) XXX_Merge

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

func (*MsgProposeUpgradeResponse) XXX_Size

func (m *MsgProposeUpgradeResponse) XXX_Size() int

func (*MsgProposeUpgradeResponse) XXX_Unmarshal

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

type MsgRejectUpgrade added in v0.11.0

type MsgRejectUpgrade struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Info    string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty" validate:"max=4096"`
	Time    int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
}

func NewMsgRejectUpgrade added in v0.11.0

func NewMsgRejectUpgrade(creator string, name string, info string) *MsgRejectUpgrade

func (*MsgRejectUpgrade) Descriptor added in v0.11.0

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

func (*MsgRejectUpgrade) GetCreator added in v0.11.0

func (m *MsgRejectUpgrade) GetCreator() string

func (*MsgRejectUpgrade) GetInfo added in v0.11.0

func (m *MsgRejectUpgrade) GetInfo() string

func (*MsgRejectUpgrade) GetName added in v0.11.0

func (m *MsgRejectUpgrade) GetName() string

func (*MsgRejectUpgrade) GetSignBytes added in v0.11.0

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

func (*MsgRejectUpgrade) GetSigners added in v0.11.0

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

func (*MsgRejectUpgrade) GetTime added in v0.11.0

func (m *MsgRejectUpgrade) GetTime() int64

func (*MsgRejectUpgrade) Marshal added in v0.11.0

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

func (*MsgRejectUpgrade) MarshalTo added in v0.11.0

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

func (*MsgRejectUpgrade) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgRejectUpgrade) ProtoMessage added in v0.11.0

func (*MsgRejectUpgrade) ProtoMessage()

func (*MsgRejectUpgrade) Reset added in v0.11.0

func (m *MsgRejectUpgrade) Reset()

func (*MsgRejectUpgrade) Route added in v0.11.0

func (msg *MsgRejectUpgrade) Route() string

func (*MsgRejectUpgrade) Size added in v0.11.0

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

func (*MsgRejectUpgrade) String added in v0.11.0

func (m *MsgRejectUpgrade) String() string

func (*MsgRejectUpgrade) Type added in v0.11.0

func (msg *MsgRejectUpgrade) Type() string

func (*MsgRejectUpgrade) Unmarshal added in v0.11.0

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

func (*MsgRejectUpgrade) ValidateBasic added in v0.11.0

func (msg *MsgRejectUpgrade) ValidateBasic() error

func (*MsgRejectUpgrade) XXX_DiscardUnknown added in v0.11.0

func (m *MsgRejectUpgrade) XXX_DiscardUnknown()

func (*MsgRejectUpgrade) XXX_Marshal added in v0.11.0

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

func (*MsgRejectUpgrade) XXX_Merge added in v0.11.0

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

func (*MsgRejectUpgrade) XXX_Size added in v0.11.0

func (m *MsgRejectUpgrade) XXX_Size() int

func (*MsgRejectUpgrade) XXX_Unmarshal added in v0.11.0

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

type MsgRejectUpgradeResponse added in v0.11.0

type MsgRejectUpgradeResponse struct {
}

func (*MsgRejectUpgradeResponse) Descriptor added in v0.11.0

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

func (*MsgRejectUpgradeResponse) Marshal added in v0.11.0

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

func (*MsgRejectUpgradeResponse) MarshalTo added in v0.11.0

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

func (*MsgRejectUpgradeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgRejectUpgradeResponse) ProtoMessage added in v0.11.0

func (*MsgRejectUpgradeResponse) ProtoMessage()

func (*MsgRejectUpgradeResponse) Reset added in v0.11.0

func (m *MsgRejectUpgradeResponse) Reset()

func (*MsgRejectUpgradeResponse) Size added in v0.11.0

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

func (*MsgRejectUpgradeResponse) String added in v0.11.0

func (m *MsgRejectUpgradeResponse) String() string

func (*MsgRejectUpgradeResponse) Unmarshal added in v0.11.0

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

func (*MsgRejectUpgradeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgRejectUpgradeResponse) XXX_DiscardUnknown()

func (*MsgRejectUpgradeResponse) XXX_Marshal added in v0.11.0

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

func (*MsgRejectUpgradeResponse) XXX_Merge added in v0.11.0

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

func (*MsgRejectUpgradeResponse) XXX_Size added in v0.11.0

func (m *MsgRejectUpgradeResponse) XXX_Size() int

func (*MsgRejectUpgradeResponse) XXX_Unmarshal added in v0.11.0

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

type MsgServer

MsgServer is the server API for Msg service.

type Plan

type Plan = upgradetypes.Plan

type ProposedUpgrade

type ProposedUpgrade struct {
	Plan          types.Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
	Creator       string     `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Approvals     []*Grant   `protobuf:"bytes,3,rep,name=approvals,proto3" json:"approvals,omitempty"`
	Rejects       []*Grant   `protobuf:"bytes,4,rep,name=rejects,proto3" json:"rejects,omitempty"`
	SchemaVersion uint32     `protobuf:"varint,5,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"`
}

func (*ProposedUpgrade) Descriptor

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

func (*ProposedUpgrade) GetApprovals

func (m *ProposedUpgrade) GetApprovals() []*Grant

func (*ProposedUpgrade) GetCreator

func (m *ProposedUpgrade) GetCreator() string

func (*ProposedUpgrade) GetPlan

func (m *ProposedUpgrade) GetPlan() types.Plan

func (*ProposedUpgrade) GetRejects added in v0.11.0

func (m *ProposedUpgrade) GetRejects() []*Grant

func (*ProposedUpgrade) GetSchemaVersion added in v1.4.0

func (m *ProposedUpgrade) GetSchemaVersion() uint32

func (ProposedUpgrade) HasApprovalFrom

func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool

func (ProposedUpgrade) HasRejectFrom added in v0.11.0

func (upgrade ProposedUpgrade) HasRejectFrom(address sdk.AccAddress) bool

func (*ProposedUpgrade) Marshal

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

func (*ProposedUpgrade) MarshalTo

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

func (*ProposedUpgrade) MarshalToSizedBuffer

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

func (*ProposedUpgrade) ProtoMessage

func (*ProposedUpgrade) ProtoMessage()

func (*ProposedUpgrade) Reset

func (m *ProposedUpgrade) Reset()

func (*ProposedUpgrade) Size

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

func (*ProposedUpgrade) String

func (m *ProposedUpgrade) String() string

func (*ProposedUpgrade) Unmarshal

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

func (*ProposedUpgrade) XXX_DiscardUnknown

func (m *ProposedUpgrade) XXX_DiscardUnknown()

func (*ProposedUpgrade) XXX_Marshal

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

func (*ProposedUpgrade) XXX_Merge

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

func (*ProposedUpgrade) XXX_Size

func (m *ProposedUpgrade) XXX_Size() int

func (*ProposedUpgrade) XXX_Unmarshal

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

type QueryAllApprovedUpgradeRequest added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) Descriptor added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) GetPagination added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) Marshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) MarshalTo added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) ProtoMessage added in v0.8.0

func (*QueryAllApprovedUpgradeRequest) ProtoMessage()

func (*QueryAllApprovedUpgradeRequest) Reset added in v0.8.0

func (m *QueryAllApprovedUpgradeRequest) Reset()

func (*QueryAllApprovedUpgradeRequest) Size added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) String added in v0.8.0

func (*QueryAllApprovedUpgradeRequest) Unmarshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) XXX_DiscardUnknown added in v0.8.0

func (m *QueryAllApprovedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryAllApprovedUpgradeRequest) XXX_Marshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) XXX_Merge added in v0.8.0

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

func (*QueryAllApprovedUpgradeRequest) XXX_Size added in v0.8.0

func (m *QueryAllApprovedUpgradeRequest) XXX_Size() int

func (*QueryAllApprovedUpgradeRequest) XXX_Unmarshal added in v0.8.0

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

type QueryAllApprovedUpgradeResponse added in v0.8.0

type QueryAllApprovedUpgradeResponse struct {
	ApprovedUpgrade []ApprovedUpgrade   `protobuf:"bytes,1,rep,name=approvedUpgrade,proto3" json:"approvedUpgrade"`
	Pagination      *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllApprovedUpgradeResponse) Descriptor added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) GetApprovedUpgrade added in v0.8.0

func (m *QueryAllApprovedUpgradeResponse) GetApprovedUpgrade() []ApprovedUpgrade

func (*QueryAllApprovedUpgradeResponse) GetPagination added in v0.8.0

func (*QueryAllApprovedUpgradeResponse) Marshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) MarshalTo added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) ProtoMessage added in v0.8.0

func (*QueryAllApprovedUpgradeResponse) ProtoMessage()

func (*QueryAllApprovedUpgradeResponse) Reset added in v0.8.0

func (*QueryAllApprovedUpgradeResponse) Size added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) String added in v0.8.0

func (*QueryAllApprovedUpgradeResponse) Unmarshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) XXX_DiscardUnknown added in v0.8.0

func (m *QueryAllApprovedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryAllApprovedUpgradeResponse) XXX_Marshal added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) XXX_Merge added in v0.8.0

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

func (*QueryAllApprovedUpgradeResponse) XXX_Size added in v0.8.0

func (m *QueryAllApprovedUpgradeResponse) XXX_Size() int

func (*QueryAllApprovedUpgradeResponse) XXX_Unmarshal added in v0.8.0

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

type QueryAllProposedUpgradeRequest

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

func (*QueryAllProposedUpgradeRequest) Descriptor

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

func (*QueryAllProposedUpgradeRequest) GetPagination

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

func (*QueryAllProposedUpgradeRequest) Marshal

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

func (*QueryAllProposedUpgradeRequest) MarshalTo

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

func (*QueryAllProposedUpgradeRequest) MarshalToSizedBuffer

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

func (*QueryAllProposedUpgradeRequest) ProtoMessage

func (*QueryAllProposedUpgradeRequest) ProtoMessage()

func (*QueryAllProposedUpgradeRequest) Reset

func (m *QueryAllProposedUpgradeRequest) Reset()

func (*QueryAllProposedUpgradeRequest) Size

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

func (*QueryAllProposedUpgradeRequest) String

func (*QueryAllProposedUpgradeRequest) Unmarshal

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

func (*QueryAllProposedUpgradeRequest) XXX_DiscardUnknown

func (m *QueryAllProposedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryAllProposedUpgradeRequest) XXX_Marshal

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

func (*QueryAllProposedUpgradeRequest) XXX_Merge

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

func (*QueryAllProposedUpgradeRequest) XXX_Size

func (m *QueryAllProposedUpgradeRequest) XXX_Size() int

func (*QueryAllProposedUpgradeRequest) XXX_Unmarshal

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

type QueryAllProposedUpgradeResponse

type QueryAllProposedUpgradeResponse struct {
	ProposedUpgrade []ProposedUpgrade   `protobuf:"bytes,1,rep,name=proposedUpgrade,proto3" json:"proposedUpgrade"`
	Pagination      *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllProposedUpgradeResponse) Descriptor

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

func (*QueryAllProposedUpgradeResponse) GetPagination

func (*QueryAllProposedUpgradeResponse) GetProposedUpgrade

func (m *QueryAllProposedUpgradeResponse) GetProposedUpgrade() []ProposedUpgrade

func (*QueryAllProposedUpgradeResponse) Marshal

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

func (*QueryAllProposedUpgradeResponse) MarshalTo

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

func (*QueryAllProposedUpgradeResponse) MarshalToSizedBuffer

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

func (*QueryAllProposedUpgradeResponse) ProtoMessage

func (*QueryAllProposedUpgradeResponse) ProtoMessage()

func (*QueryAllProposedUpgradeResponse) Reset

func (*QueryAllProposedUpgradeResponse) Size

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

func (*QueryAllProposedUpgradeResponse) String

func (*QueryAllProposedUpgradeResponse) Unmarshal

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

func (*QueryAllProposedUpgradeResponse) XXX_DiscardUnknown

func (m *QueryAllProposedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryAllProposedUpgradeResponse) XXX_Marshal

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

func (*QueryAllProposedUpgradeResponse) XXX_Merge

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

func (*QueryAllProposedUpgradeResponse) XXX_Size

func (m *QueryAllProposedUpgradeResponse) XXX_Size() int

func (*QueryAllProposedUpgradeResponse) XXX_Unmarshal

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

type QueryAllRejectedUpgradeRequest added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) Descriptor added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) GetPagination added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) Marshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) MarshalTo added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) ProtoMessage added in v0.11.0

func (*QueryAllRejectedUpgradeRequest) ProtoMessage()

func (*QueryAllRejectedUpgradeRequest) Reset added in v0.11.0

func (m *QueryAllRejectedUpgradeRequest) Reset()

func (*QueryAllRejectedUpgradeRequest) Size added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) String added in v0.11.0

func (*QueryAllRejectedUpgradeRequest) Unmarshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) XXX_DiscardUnknown added in v0.11.0

func (m *QueryAllRejectedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryAllRejectedUpgradeRequest) XXX_Marshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) XXX_Merge added in v0.11.0

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

func (*QueryAllRejectedUpgradeRequest) XXX_Size added in v0.11.0

func (m *QueryAllRejectedUpgradeRequest) XXX_Size() int

func (*QueryAllRejectedUpgradeRequest) XXX_Unmarshal added in v0.11.0

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

type QueryAllRejectedUpgradeResponse added in v0.11.0

type QueryAllRejectedUpgradeResponse struct {
	RejectedUpgrade []RejectedUpgrade   `protobuf:"bytes,1,rep,name=rejectedUpgrade,proto3" json:"rejectedUpgrade"`
	Pagination      *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRejectedUpgradeResponse) Descriptor added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) GetPagination added in v0.11.0

func (*QueryAllRejectedUpgradeResponse) GetRejectedUpgrade added in v0.11.0

func (m *QueryAllRejectedUpgradeResponse) GetRejectedUpgrade() []RejectedUpgrade

func (*QueryAllRejectedUpgradeResponse) Marshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) MarshalTo added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) ProtoMessage added in v0.11.0

func (*QueryAllRejectedUpgradeResponse) ProtoMessage()

func (*QueryAllRejectedUpgradeResponse) Reset added in v0.11.0

func (*QueryAllRejectedUpgradeResponse) Size added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) String added in v0.11.0

func (*QueryAllRejectedUpgradeResponse) Unmarshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *QueryAllRejectedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryAllRejectedUpgradeResponse) XXX_Marshal added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) XXX_Merge added in v0.11.0

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

func (*QueryAllRejectedUpgradeResponse) XXX_Size added in v0.11.0

func (m *QueryAllRejectedUpgradeResponse) XXX_Size() int

func (*QueryAllRejectedUpgradeResponse) XXX_Unmarshal added in v0.11.0

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

type QueryClient

type QueryClient interface {
	// Queries a ProposedUpgrade by index.
	ProposedUpgrade(ctx context.Context, in *QueryGetProposedUpgradeRequest, opts ...grpc.CallOption) (*QueryGetProposedUpgradeResponse, error)
	// Queries a list of ProposedUpgrade items.
	ProposedUpgradeAll(ctx context.Context, in *QueryAllProposedUpgradeRequest, opts ...grpc.CallOption) (*QueryAllProposedUpgradeResponse, error)
	// Queries a ApprovedUpgrade by index.
	ApprovedUpgrade(ctx context.Context, in *QueryGetApprovedUpgradeRequest, opts ...grpc.CallOption) (*QueryGetApprovedUpgradeResponse, error)
	// Queries a list of ApprovedUpgrade items.
	ApprovedUpgradeAll(ctx context.Context, in *QueryAllApprovedUpgradeRequest, opts ...grpc.CallOption) (*QueryAllApprovedUpgradeResponse, error)
	// Queries a RejectedUpgrade by index.
	RejectedUpgrade(ctx context.Context, in *QueryGetRejectedUpgradeRequest, opts ...grpc.CallOption) (*QueryGetRejectedUpgradeResponse, error)
	// Queries a list of RejectedUpgrade items.
	RejectedUpgradeAll(ctx context.Context, in *QueryAllRejectedUpgradeRequest, opts ...grpc.CallOption) (*QueryAllRejectedUpgradeResponse, 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 QueryGetApprovedUpgradeRequest added in v0.8.0

type QueryGetApprovedUpgradeRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*QueryGetApprovedUpgradeRequest) Descriptor added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) GetName added in v0.8.0

func (*QueryGetApprovedUpgradeRequest) Marshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) MarshalTo added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) ProtoMessage added in v0.8.0

func (*QueryGetApprovedUpgradeRequest) ProtoMessage()

func (*QueryGetApprovedUpgradeRequest) Reset added in v0.8.0

func (m *QueryGetApprovedUpgradeRequest) Reset()

func (*QueryGetApprovedUpgradeRequest) Size added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) String added in v0.8.0

func (*QueryGetApprovedUpgradeRequest) Unmarshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) XXX_DiscardUnknown added in v0.8.0

func (m *QueryGetApprovedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryGetApprovedUpgradeRequest) XXX_Marshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) XXX_Merge added in v0.8.0

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

func (*QueryGetApprovedUpgradeRequest) XXX_Size added in v0.8.0

func (m *QueryGetApprovedUpgradeRequest) XXX_Size() int

func (*QueryGetApprovedUpgradeRequest) XXX_Unmarshal added in v0.8.0

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

type QueryGetApprovedUpgradeResponse added in v0.8.0

type QueryGetApprovedUpgradeResponse struct {
	ApprovedUpgrade ApprovedUpgrade `protobuf:"bytes,1,opt,name=approvedUpgrade,proto3" json:"approvedUpgrade"`
}

func (*QueryGetApprovedUpgradeResponse) Descriptor added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) GetApprovedUpgrade added in v0.8.0

func (m *QueryGetApprovedUpgradeResponse) GetApprovedUpgrade() ApprovedUpgrade

func (*QueryGetApprovedUpgradeResponse) Marshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) MarshalTo added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) ProtoMessage added in v0.8.0

func (*QueryGetApprovedUpgradeResponse) ProtoMessage()

func (*QueryGetApprovedUpgradeResponse) Reset added in v0.8.0

func (*QueryGetApprovedUpgradeResponse) Size added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) String added in v0.8.0

func (*QueryGetApprovedUpgradeResponse) Unmarshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) XXX_DiscardUnknown added in v0.8.0

func (m *QueryGetApprovedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryGetApprovedUpgradeResponse) XXX_Marshal added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) XXX_Merge added in v0.8.0

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

func (*QueryGetApprovedUpgradeResponse) XXX_Size added in v0.8.0

func (m *QueryGetApprovedUpgradeResponse) XXX_Size() int

func (*QueryGetApprovedUpgradeResponse) XXX_Unmarshal added in v0.8.0

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

type QueryGetProposedUpgradeRequest

type QueryGetProposedUpgradeRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*QueryGetProposedUpgradeRequest) Descriptor

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

func (*QueryGetProposedUpgradeRequest) GetName

func (*QueryGetProposedUpgradeRequest) Marshal

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

func (*QueryGetProposedUpgradeRequest) MarshalTo

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

func (*QueryGetProposedUpgradeRequest) MarshalToSizedBuffer

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

func (*QueryGetProposedUpgradeRequest) ProtoMessage

func (*QueryGetProposedUpgradeRequest) ProtoMessage()

func (*QueryGetProposedUpgradeRequest) Reset

func (m *QueryGetProposedUpgradeRequest) Reset()

func (*QueryGetProposedUpgradeRequest) Size

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

func (*QueryGetProposedUpgradeRequest) String

func (*QueryGetProposedUpgradeRequest) Unmarshal

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

func (*QueryGetProposedUpgradeRequest) XXX_DiscardUnknown

func (m *QueryGetProposedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryGetProposedUpgradeRequest) XXX_Marshal

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

func (*QueryGetProposedUpgradeRequest) XXX_Merge

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

func (*QueryGetProposedUpgradeRequest) XXX_Size

func (m *QueryGetProposedUpgradeRequest) XXX_Size() int

func (*QueryGetProposedUpgradeRequest) XXX_Unmarshal

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

type QueryGetProposedUpgradeResponse

type QueryGetProposedUpgradeResponse struct {
	ProposedUpgrade ProposedUpgrade `protobuf:"bytes,1,opt,name=proposedUpgrade,proto3" json:"proposedUpgrade"`
}

func (*QueryGetProposedUpgradeResponse) Descriptor

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

func (*QueryGetProposedUpgradeResponse) GetProposedUpgrade

func (m *QueryGetProposedUpgradeResponse) GetProposedUpgrade() ProposedUpgrade

func (*QueryGetProposedUpgradeResponse) Marshal

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

func (*QueryGetProposedUpgradeResponse) MarshalTo

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

func (*QueryGetProposedUpgradeResponse) MarshalToSizedBuffer

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

func (*QueryGetProposedUpgradeResponse) ProtoMessage

func (*QueryGetProposedUpgradeResponse) ProtoMessage()

func (*QueryGetProposedUpgradeResponse) Reset

func (*QueryGetProposedUpgradeResponse) Size

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

func (*QueryGetProposedUpgradeResponse) String

func (*QueryGetProposedUpgradeResponse) Unmarshal

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

func (*QueryGetProposedUpgradeResponse) XXX_DiscardUnknown

func (m *QueryGetProposedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryGetProposedUpgradeResponse) XXX_Marshal

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

func (*QueryGetProposedUpgradeResponse) XXX_Merge

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

func (*QueryGetProposedUpgradeResponse) XXX_Size

func (m *QueryGetProposedUpgradeResponse) XXX_Size() int

func (*QueryGetProposedUpgradeResponse) XXX_Unmarshal

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

type QueryGetRejectedUpgradeRequest added in v0.11.0

type QueryGetRejectedUpgradeRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*QueryGetRejectedUpgradeRequest) Descriptor added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) GetName added in v0.11.0

func (*QueryGetRejectedUpgradeRequest) Marshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) MarshalTo added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) ProtoMessage added in v0.11.0

func (*QueryGetRejectedUpgradeRequest) ProtoMessage()

func (*QueryGetRejectedUpgradeRequest) Reset added in v0.11.0

func (m *QueryGetRejectedUpgradeRequest) Reset()

func (*QueryGetRejectedUpgradeRequest) Size added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) String added in v0.11.0

func (*QueryGetRejectedUpgradeRequest) Unmarshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) XXX_DiscardUnknown added in v0.11.0

func (m *QueryGetRejectedUpgradeRequest) XXX_DiscardUnknown()

func (*QueryGetRejectedUpgradeRequest) XXX_Marshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) XXX_Merge added in v0.11.0

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

func (*QueryGetRejectedUpgradeRequest) XXX_Size added in v0.11.0

func (m *QueryGetRejectedUpgradeRequest) XXX_Size() int

func (*QueryGetRejectedUpgradeRequest) XXX_Unmarshal added in v0.11.0

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

type QueryGetRejectedUpgradeResponse added in v0.11.0

type QueryGetRejectedUpgradeResponse struct {
	RejectedUpgrade RejectedUpgrade `protobuf:"bytes,1,opt,name=rejectedUpgrade,proto3" json:"rejectedUpgrade"`
}

func (*QueryGetRejectedUpgradeResponse) Descriptor added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) GetRejectedUpgrade added in v0.11.0

func (m *QueryGetRejectedUpgradeResponse) GetRejectedUpgrade() RejectedUpgrade

func (*QueryGetRejectedUpgradeResponse) Marshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) MarshalTo added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) ProtoMessage added in v0.11.0

func (*QueryGetRejectedUpgradeResponse) ProtoMessage()

func (*QueryGetRejectedUpgradeResponse) Reset added in v0.11.0

func (*QueryGetRejectedUpgradeResponse) Size added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) String added in v0.11.0

func (*QueryGetRejectedUpgradeResponse) Unmarshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *QueryGetRejectedUpgradeResponse) XXX_DiscardUnknown()

func (*QueryGetRejectedUpgradeResponse) XXX_Marshal added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) XXX_Merge added in v0.11.0

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

func (*QueryGetRejectedUpgradeResponse) XXX_Size added in v0.11.0

func (m *QueryGetRejectedUpgradeResponse) XXX_Size() int

func (*QueryGetRejectedUpgradeResponse) XXX_Unmarshal added in v0.11.0

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

type QueryServer

type QueryServer interface {
	// Queries a ProposedUpgrade by index.
	ProposedUpgrade(context.Context, *QueryGetProposedUpgradeRequest) (*QueryGetProposedUpgradeResponse, error)
	// Queries a list of ProposedUpgrade items.
	ProposedUpgradeAll(context.Context, *QueryAllProposedUpgradeRequest) (*QueryAllProposedUpgradeResponse, error)
	// Queries a ApprovedUpgrade by index.
	ApprovedUpgrade(context.Context, *QueryGetApprovedUpgradeRequest) (*QueryGetApprovedUpgradeResponse, error)
	// Queries a list of ApprovedUpgrade items.
	ApprovedUpgradeAll(context.Context, *QueryAllApprovedUpgradeRequest) (*QueryAllApprovedUpgradeResponse, error)
	// Queries a RejectedUpgrade by index.
	RejectedUpgrade(context.Context, *QueryGetRejectedUpgradeRequest) (*QueryGetRejectedUpgradeResponse, error)
	// Queries a list of RejectedUpgrade items.
	RejectedUpgradeAll(context.Context, *QueryAllRejectedUpgradeRequest) (*QueryAllRejectedUpgradeResponse, error)
}

QueryServer is the server API for Query service.

type RejectedUpgrade added in v0.11.0

type RejectedUpgrade struct {
	Plan          types.Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
	Creator       string     `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Approvals     []*Grant   `protobuf:"bytes,3,rep,name=approvals,proto3" json:"approvals,omitempty"`
	Rejects       []*Grant   `protobuf:"bytes,4,rep,name=rejects,proto3" json:"rejects,omitempty"`
	SchemaVersion uint32     `protobuf:"varint,5,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"`
}

func (*RejectedUpgrade) Descriptor added in v0.11.0

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

func (*RejectedUpgrade) GetApprovals added in v0.11.0

func (m *RejectedUpgrade) GetApprovals() []*Grant

func (*RejectedUpgrade) GetCreator added in v0.11.0

func (m *RejectedUpgrade) GetCreator() string

func (*RejectedUpgrade) GetPlan added in v0.11.0

func (m *RejectedUpgrade) GetPlan() types.Plan

func (*RejectedUpgrade) GetRejects added in v0.11.0

func (m *RejectedUpgrade) GetRejects() []*Grant

func (*RejectedUpgrade) GetSchemaVersion added in v1.4.0

func (m *RejectedUpgrade) GetSchemaVersion() uint32

func (*RejectedUpgrade) Marshal added in v0.11.0

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

func (*RejectedUpgrade) MarshalTo added in v0.11.0

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

func (*RejectedUpgrade) MarshalToSizedBuffer added in v0.11.0

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

func (*RejectedUpgrade) ProtoMessage added in v0.11.0

func (*RejectedUpgrade) ProtoMessage()

func (*RejectedUpgrade) Reset added in v0.11.0

func (m *RejectedUpgrade) Reset()

func (*RejectedUpgrade) Size added in v0.11.0

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

func (*RejectedUpgrade) String added in v0.11.0

func (m *RejectedUpgrade) String() string

func (*RejectedUpgrade) Unmarshal added in v0.11.0

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

func (*RejectedUpgrade) XXX_DiscardUnknown added in v0.11.0

func (m *RejectedUpgrade) XXX_DiscardUnknown()

func (*RejectedUpgrade) XXX_Marshal added in v0.11.0

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

func (*RejectedUpgrade) XXX_Merge added in v0.11.0

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

func (*RejectedUpgrade) XXX_Size added in v0.11.0

func (m *RejectedUpgrade) XXX_Size() int

func (*RejectedUpgrade) XXX_Unmarshal added in v0.11.0

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ApproveUpgrade

func (*UnimplementedMsgServer) ProposeUpgrade

func (*UnimplementedMsgServer) RejectUpgrade added in v0.11.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ApprovedUpgrade added in v0.8.0

func (*UnimplementedQueryServer) ApprovedUpgradeAll added in v0.8.0

func (*UnimplementedQueryServer) ProposedUpgrade

func (*UnimplementedQueryServer) ProposedUpgradeAll

func (*UnimplementedQueryServer) RejectedUpgrade added in v0.11.0

func (*UnimplementedQueryServer) RejectedUpgradeAll added in v0.11.0

type UpgradeKeeper

type UpgradeKeeper interface {
	// Methods imported from upgrade should be defined here
	ScheduleUpgrade(ctx sdk.Context, plan upgradetypes.Plan) error
}

Jump to

Keyboard shortcuts

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