Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func NewErrProposedUpgradeAlreadyExists(name interface{}) error
- func NewErrProposedUpgradeDoesNotExist(name interface{}) error
- func ProposedUpgradeKey(name string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type DclauthKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetProposedUpgradeList() []ProposedUpgrade
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgApproveUpgrade
- func (*MsgApproveUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgApproveUpgrade) GetCreator() string
- func (m *MsgApproveUpgrade) GetName() string
- func (msg *MsgApproveUpgrade) GetSignBytes() []byte
- func (msg *MsgApproveUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgApproveUpgrade) Marshal() (dAtA []byte, err error)
- func (m *MsgApproveUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgApproveUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgApproveUpgrade) ProtoMessage()
- func (m *MsgApproveUpgrade) Reset()
- func (msg *MsgApproveUpgrade) Route() string
- func (m *MsgApproveUpgrade) Size() (n int)
- func (m *MsgApproveUpgrade) String() string
- func (msg *MsgApproveUpgrade) Type() string
- func (m *MsgApproveUpgrade) Unmarshal(dAtA []byte) error
- func (msg *MsgApproveUpgrade) ValidateBasic() error
- func (m *MsgApproveUpgrade) XXX_DiscardUnknown()
- func (m *MsgApproveUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgApproveUpgrade) XXX_Merge(src proto.Message)
- func (m *MsgApproveUpgrade) XXX_Size() int
- func (m *MsgApproveUpgrade) XXX_Unmarshal(b []byte) error
- type MsgApproveUpgradeResponse
- func (*MsgApproveUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *MsgApproveUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgApproveUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgApproveUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgApproveUpgradeResponse) ProtoMessage()
- func (m *MsgApproveUpgradeResponse) Reset()
- func (m *MsgApproveUpgradeResponse) Size() (n int)
- func (m *MsgApproveUpgradeResponse) String() string
- func (m *MsgApproveUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgApproveUpgradeResponse) XXX_DiscardUnknown()
- func (m *MsgApproveUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgApproveUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *MsgApproveUpgradeResponse) XXX_Size() int
- func (m *MsgApproveUpgradeResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgProposeUpgrade
- func (*MsgProposeUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgProposeUpgrade) GetCreator() string
- func (m *MsgProposeUpgrade) GetPlan() types.Plan
- func (msg *MsgProposeUpgrade) GetSignBytes() []byte
- func (msg *MsgProposeUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgProposeUpgrade) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeUpgrade) ProtoMessage()
- func (m *MsgProposeUpgrade) Reset()
- func (msg *MsgProposeUpgrade) Route() string
- func (m *MsgProposeUpgrade) Size() (n int)
- func (m *MsgProposeUpgrade) String() string
- func (msg *MsgProposeUpgrade) Type() string
- func (m *MsgProposeUpgrade) Unmarshal(dAtA []byte) error
- func (msg *MsgProposeUpgrade) ValidateBasic() error
- func (m *MsgProposeUpgrade) XXX_DiscardUnknown()
- func (m *MsgProposeUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeUpgrade) XXX_Merge(src proto.Message)
- func (m *MsgProposeUpgrade) XXX_Size() int
- func (m *MsgProposeUpgrade) XXX_Unmarshal(b []byte) error
- type MsgProposeUpgradeResponse
- func (*MsgProposeUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *MsgProposeUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeUpgradeResponse) ProtoMessage()
- func (m *MsgProposeUpgradeResponse) Reset()
- func (m *MsgProposeUpgradeResponse) Size() (n int)
- func (m *MsgProposeUpgradeResponse) String() string
- func (m *MsgProposeUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProposeUpgradeResponse) XXX_DiscardUnknown()
- func (m *MsgProposeUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *MsgProposeUpgradeResponse) XXX_Size() int
- func (m *MsgProposeUpgradeResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Plan
- type ProposedUpgrade
- func (*ProposedUpgrade) Descriptor() ([]byte, []int)
- func (m *ProposedUpgrade) GetApprovals() []string
- func (m *ProposedUpgrade) GetCreator() string
- func (m *ProposedUpgrade) GetPlan() types.Plan
- func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool
- func (m *ProposedUpgrade) Marshal() (dAtA []byte, err error)
- func (m *ProposedUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposedUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposedUpgrade) ProtoMessage()
- func (m *ProposedUpgrade) Reset()
- func (m *ProposedUpgrade) Size() (n int)
- func (m *ProposedUpgrade) String() string
- func (m *ProposedUpgrade) Unmarshal(dAtA []byte) error
- func (m *ProposedUpgrade) XXX_DiscardUnknown()
- func (m *ProposedUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposedUpgrade) XXX_Merge(src proto.Message)
- func (m *ProposedUpgrade) XXX_Size() int
- func (m *ProposedUpgrade) XXX_Unmarshal(b []byte) error
- type QueryAllProposedUpgradeRequest
- func (*QueryAllProposedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllProposedUpgradeRequest) GetPagination() *query.PageRequest
- func (m *QueryAllProposedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllProposedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllProposedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllProposedUpgradeRequest) ProtoMessage()
- func (m *QueryAllProposedUpgradeRequest) Reset()
- func (m *QueryAllProposedUpgradeRequest) Size() (n int)
- func (m *QueryAllProposedUpgradeRequest) String() string
- func (m *QueryAllProposedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllProposedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryAllProposedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllProposedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllProposedUpgradeRequest) XXX_Size() int
- func (m *QueryAllProposedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryAllProposedUpgradeResponse
- func (*QueryAllProposedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllProposedUpgradeResponse) GetPagination() *query.PageResponse
- func (m *QueryAllProposedUpgradeResponse) GetProposedUpgrade() []ProposedUpgrade
- func (m *QueryAllProposedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllProposedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllProposedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllProposedUpgradeResponse) ProtoMessage()
- func (m *QueryAllProposedUpgradeResponse) Reset()
- func (m *QueryAllProposedUpgradeResponse) Size() (n int)
- func (m *QueryAllProposedUpgradeResponse) String() string
- func (m *QueryAllProposedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllProposedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryAllProposedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllProposedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllProposedUpgradeResponse) XXX_Size() int
- func (m *QueryAllProposedUpgradeResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetProposedUpgradeRequest
- func (*QueryGetProposedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetProposedUpgradeRequest) GetName() string
- func (m *QueryGetProposedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetProposedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetProposedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetProposedUpgradeRequest) ProtoMessage()
- func (m *QueryGetProposedUpgradeRequest) Reset()
- func (m *QueryGetProposedUpgradeRequest) Size() (n int)
- func (m *QueryGetProposedUpgradeRequest) String() string
- func (m *QueryGetProposedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetProposedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryGetProposedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetProposedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetProposedUpgradeRequest) XXX_Size() int
- func (m *QueryGetProposedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryGetProposedUpgradeResponse
- func (*QueryGetProposedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetProposedUpgradeResponse) GetProposedUpgrade() ProposedUpgrade
- func (m *QueryGetProposedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetProposedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetProposedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetProposedUpgradeResponse) ProtoMessage()
- func (m *QueryGetProposedUpgradeResponse) Reset()
- func (m *QueryGetProposedUpgradeResponse) Size() (n int)
- func (m *QueryGetProposedUpgradeResponse) String() string
- func (m *QueryGetProposedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetProposedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryGetProposedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetProposedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetProposedUpgradeResponse) XXX_Size() int
- func (m *QueryGetProposedUpgradeResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ProposedUpgrade(ctx context.Context, req *QueryGetProposedUpgradeRequest) (*QueryGetProposedUpgradeResponse, error)
- func (*UnimplementedQueryServer) ProposedUpgradeAll(ctx context.Context, req *QueryAllProposedUpgradeRequest) (*QueryAllProposedUpgradeResponse, error)
- type UpgradeKeeper
Constants ¶
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" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index.
const (
// ProposedUpgradeKeyPrefix is the prefix to retrieve all ProposedUpgrade.
ProposedUpgradeKeyPrefix = "ProposedUpgrade/value/"
)
const TypeMsgApproveUpgrade = "approve_upgrade"
const TypeMsgProposeUpgrade = "propose_upgrade"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrProposedUpgradeAlreadyExists = sdkerrors.Register(ModuleName, 801, "proposed upgrade already exists") ErrProposedUpgradeDoesNotExist = sdkerrors.Register(ModuleName, 802, "proposed upgrade does not exist") )
x/dclupgrade module sentinel errors.
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposedUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposedUpgrade = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposedUpgrade = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( UpgradeApprovalsPercent = 0.66 UpgradeApprovalRole = dclauthtypes.Trustee )
TODO: 1. Move it to separate module 2. Make it configurable 3. Save into store.
Functions ¶
func NewErrProposedUpgradeAlreadyExists ¶
func NewErrProposedUpgradeAlreadyExists(name interface{}) error
func NewErrProposedUpgradeDoesNotExist ¶
func NewErrProposedUpgradeDoesNotExist(name interface{}) error
func ProposedUpgradeKey ¶
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 RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type 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"`
}
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) GetProposedUpgradeList ¶
func (m *GenesisState) GetProposedUpgradeList() []ProposedUpgrade
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 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"` }
func NewMsgApproveUpgrade ¶
func NewMsgApproveUpgrade(creator string, name string) *MsgApproveUpgrade
func (*MsgApproveUpgrade) Descriptor ¶
func (*MsgApproveUpgrade) Descriptor() ([]byte, []int)
func (*MsgApproveUpgrade) GetCreator ¶
func (m *MsgApproveUpgrade) GetCreator() 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) 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) }
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"` }
func NewMsgProposeUpgrade ¶
func NewMsgProposeUpgrade(creator string, plan Plan) *MsgProposeUpgrade
func (*MsgProposeUpgrade) Descriptor ¶
func (*MsgProposeUpgrade) Descriptor() ([]byte, []int)
func (*MsgProposeUpgrade) GetCreator ¶
func (m *MsgProposeUpgrade) GetCreator() 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) 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 MsgServer ¶
type MsgServer interface { ProposeUpgrade(context.Context, *MsgProposeUpgrade) (*MsgProposeUpgradeResponse, error) ApproveUpgrade(context.Context, *MsgApproveUpgrade) (*MsgApproveUpgradeResponse, error) }
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 []string `protobuf:"bytes,3,rep,name=approvals,proto3" json:"approvals,omitempty"` }
func (*ProposedUpgrade) Descriptor ¶
func (*ProposedUpgrade) Descriptor() ([]byte, []int)
func (*ProposedUpgrade) GetApprovals ¶
func (m *ProposedUpgrade) GetApprovals() []string
func (*ProposedUpgrade) GetCreator ¶
func (m *ProposedUpgrade) GetCreator() string
func (*ProposedUpgrade) GetPlan ¶
func (m *ProposedUpgrade) GetPlan() types.Plan
func (ProposedUpgrade) HasApprovalFrom ¶
func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool
func (*ProposedUpgrade) Marshal ¶
func (m *ProposedUpgrade) Marshal() (dAtA []byte, err 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 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 (m *QueryAllProposedUpgradeRequest) String() 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 (m *QueryAllProposedUpgradeResponse) GetPagination() *query.PageResponse
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 (m *QueryAllProposedUpgradeResponse) Reset()
func (*QueryAllProposedUpgradeResponse) Size ¶
func (m *QueryAllProposedUpgradeResponse) Size() (n int)
func (*QueryAllProposedUpgradeResponse) String ¶
func (m *QueryAllProposedUpgradeResponse) String() 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 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) }
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 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 (m *QueryGetProposedUpgradeRequest) GetName() string
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 (m *QueryGetProposedUpgradeRequest) String() 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 (m *QueryGetProposedUpgradeResponse) Reset()
func (*QueryGetProposedUpgradeResponse) Size ¶
func (m *QueryGetProposedUpgradeResponse) Size() (n int)
func (*QueryGetProposedUpgradeResponse) String ¶
func (m *QueryGetProposedUpgradeResponse) String() 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 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) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ApproveUpgrade ¶
func (*UnimplementedMsgServer) ApproveUpgrade(ctx context.Context, req *MsgApproveUpgrade) (*MsgApproveUpgradeResponse, error)
func (*UnimplementedMsgServer) ProposeUpgrade ¶
func (*UnimplementedMsgServer) ProposeUpgrade(ctx context.Context, req *MsgProposeUpgrade) (*MsgProposeUpgradeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ProposedUpgrade ¶
func (*UnimplementedQueryServer) ProposedUpgrade(ctx context.Context, req *QueryGetProposedUpgradeRequest) (*QueryGetProposedUpgradeResponse, error)
func (*UnimplementedQueryServer) ProposedUpgradeAll ¶
func (*UnimplementedQueryServer) ProposedUpgradeAll(ctx context.Context, req *QueryAllProposedUpgradeRequest) (*QueryAllProposedUpgradeResponse, error)
type UpgradeKeeper ¶
type UpgradeKeeper interface { // Methods imported from upgrade should be defined here ScheduleUpgrade(ctx sdk.Context, plan upgradetypes.Plan) error }