Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ApprovedUpgradeKey(name string) []byte
- func KeyPrefix(p string) []byte
- func NewErrApprovedUpgradeAlreadyExists(name interface{}) error
- 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)
- func RejectedUpgradeKey(name string) []byte
- type ApprovedUpgrade
- func (*ApprovedUpgrade) Descriptor() ([]byte, []int)
- func (m *ApprovedUpgrade) GetApprovals() []*Grant
- func (m *ApprovedUpgrade) GetCreator() string
- func (m *ApprovedUpgrade) GetPlan() types.Plan
- func (m *ApprovedUpgrade) GetRejects() []*Grant
- func (m *ApprovedUpgrade) GetSchemaVersion() uint32
- func (m *ApprovedUpgrade) Marshal() (dAtA []byte, err error)
- func (m *ApprovedUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *ApprovedUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApprovedUpgrade) ProtoMessage()
- func (m *ApprovedUpgrade) Reset()
- func (m *ApprovedUpgrade) Size() (n int)
- func (m *ApprovedUpgrade) String() string
- func (m *ApprovedUpgrade) Unmarshal(dAtA []byte) error
- func (m *ApprovedUpgrade) XXX_DiscardUnknown()
- func (m *ApprovedUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApprovedUpgrade) XXX_Merge(src proto.Message)
- func (m *ApprovedUpgrade) XXX_Size() int
- func (m *ApprovedUpgrade) XXX_Unmarshal(b []byte) error
- type DclauthKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetApprovedUpgradeList() []ApprovedUpgrade
- func (m *GenesisState) GetProposedUpgradeList() []ProposedUpgrade
- func (m *GenesisState) GetRejectedUpgradeList() []RejectedUpgrade
- 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 Grant
- func (*Grant) Descriptor() ([]byte, []int)
- func (m *Grant) GetAddress() string
- func (m *Grant) GetInfo() string
- func (m *Grant) GetSchemaVersion() uint32
- func (m *Grant) GetTime() int64
- func (m *Grant) Marshal() (dAtA []byte, err error)
- func (m *Grant) MarshalTo(dAtA []byte) (int, error)
- func (m *Grant) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Grant) ProtoMessage()
- func (m *Grant) Reset()
- func (m *Grant) Size() (n int)
- func (m *Grant) String() string
- func (m *Grant) Unmarshal(dAtA []byte) error
- func (m *Grant) XXX_DiscardUnknown()
- func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Grant) XXX_Merge(src proto.Message)
- func (m *Grant) XXX_Size() int
- func (m *Grant) XXX_Unmarshal(b []byte) error
- type MsgApproveUpgrade
- func (*MsgApproveUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgApproveUpgrade) GetCreator() string
- func (m *MsgApproveUpgrade) GetInfo() string
- func (m *MsgApproveUpgrade) GetName() string
- func (msg *MsgApproveUpgrade) GetSignBytes() []byte
- func (msg *MsgApproveUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgApproveUpgrade) GetTime() int64
- 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) GetInfo() string
- func (m *MsgProposeUpgrade) GetPlan() types.Plan
- func (msg *MsgProposeUpgrade) GetSignBytes() []byte
- func (msg *MsgProposeUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgProposeUpgrade) GetTime() int64
- 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 MsgRejectUpgrade
- func (*MsgRejectUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgRejectUpgrade) GetCreator() string
- func (m *MsgRejectUpgrade) GetInfo() string
- func (m *MsgRejectUpgrade) GetName() string
- func (msg *MsgRejectUpgrade) GetSignBytes() []byte
- func (msg *MsgRejectUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgRejectUpgrade) GetTime() int64
- func (m *MsgRejectUpgrade) Marshal() (dAtA []byte, err error)
- func (m *MsgRejectUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRejectUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRejectUpgrade) ProtoMessage()
- func (m *MsgRejectUpgrade) Reset()
- func (msg *MsgRejectUpgrade) Route() string
- func (m *MsgRejectUpgrade) Size() (n int)
- func (m *MsgRejectUpgrade) String() string
- func (msg *MsgRejectUpgrade) Type() string
- func (m *MsgRejectUpgrade) Unmarshal(dAtA []byte) error
- func (msg *MsgRejectUpgrade) ValidateBasic() error
- func (m *MsgRejectUpgrade) XXX_DiscardUnknown()
- func (m *MsgRejectUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRejectUpgrade) XXX_Merge(src proto.Message)
- func (m *MsgRejectUpgrade) XXX_Size() int
- func (m *MsgRejectUpgrade) XXX_Unmarshal(b []byte) error
- type MsgRejectUpgradeResponse
- func (*MsgRejectUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *MsgRejectUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRejectUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRejectUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRejectUpgradeResponse) ProtoMessage()
- func (m *MsgRejectUpgradeResponse) Reset()
- func (m *MsgRejectUpgradeResponse) Size() (n int)
- func (m *MsgRejectUpgradeResponse) String() string
- func (m *MsgRejectUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRejectUpgradeResponse) XXX_DiscardUnknown()
- func (m *MsgRejectUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRejectUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *MsgRejectUpgradeResponse) XXX_Size() int
- func (m *MsgRejectUpgradeResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Plan
- type ProposedUpgrade
- func (*ProposedUpgrade) Descriptor() ([]byte, []int)
- func (m *ProposedUpgrade) GetApprovals() []*Grant
- func (m *ProposedUpgrade) GetCreator() string
- func (m *ProposedUpgrade) GetPlan() types.Plan
- func (m *ProposedUpgrade) GetRejects() []*Grant
- func (m *ProposedUpgrade) GetSchemaVersion() uint32
- func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool
- func (upgrade ProposedUpgrade) HasRejectFrom(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 QueryAllApprovedUpgradeRequest
- func (*QueryAllApprovedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllApprovedUpgradeRequest) GetPagination() *query.PageRequest
- func (m *QueryAllApprovedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllApprovedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllApprovedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllApprovedUpgradeRequest) ProtoMessage()
- func (m *QueryAllApprovedUpgradeRequest) Reset()
- func (m *QueryAllApprovedUpgradeRequest) Size() (n int)
- func (m *QueryAllApprovedUpgradeRequest) String() string
- func (m *QueryAllApprovedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllApprovedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryAllApprovedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllApprovedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllApprovedUpgradeRequest) XXX_Size() int
- func (m *QueryAllApprovedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryAllApprovedUpgradeResponse
- func (*QueryAllApprovedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllApprovedUpgradeResponse) GetApprovedUpgrade() []ApprovedUpgrade
- func (m *QueryAllApprovedUpgradeResponse) GetPagination() *query.PageResponse
- func (m *QueryAllApprovedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllApprovedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllApprovedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllApprovedUpgradeResponse) ProtoMessage()
- func (m *QueryAllApprovedUpgradeResponse) Reset()
- func (m *QueryAllApprovedUpgradeResponse) Size() (n int)
- func (m *QueryAllApprovedUpgradeResponse) String() string
- func (m *QueryAllApprovedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllApprovedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryAllApprovedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllApprovedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllApprovedUpgradeResponse) XXX_Size() int
- func (m *QueryAllApprovedUpgradeResponse) 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 QueryAllRejectedUpgradeRequest
- func (*QueryAllRejectedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRejectedUpgradeRequest) GetPagination() *query.PageRequest
- func (m *QueryAllRejectedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRejectedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRejectedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRejectedUpgradeRequest) ProtoMessage()
- func (m *QueryAllRejectedUpgradeRequest) Reset()
- func (m *QueryAllRejectedUpgradeRequest) Size() (n int)
- func (m *QueryAllRejectedUpgradeRequest) String() string
- func (m *QueryAllRejectedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRejectedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryAllRejectedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRejectedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRejectedUpgradeRequest) XXX_Size() int
- func (m *QueryAllRejectedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRejectedUpgradeResponse
- func (*QueryAllRejectedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRejectedUpgradeResponse) GetPagination() *query.PageResponse
- func (m *QueryAllRejectedUpgradeResponse) GetRejectedUpgrade() []RejectedUpgrade
- func (m *QueryAllRejectedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRejectedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRejectedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRejectedUpgradeResponse) ProtoMessage()
- func (m *QueryAllRejectedUpgradeResponse) Reset()
- func (m *QueryAllRejectedUpgradeResponse) Size() (n int)
- func (m *QueryAllRejectedUpgradeResponse) String() string
- func (m *QueryAllRejectedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRejectedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryAllRejectedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRejectedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRejectedUpgradeResponse) XXX_Size() int
- func (m *QueryAllRejectedUpgradeResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetApprovedUpgradeRequest
- func (*QueryGetApprovedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetApprovedUpgradeRequest) GetName() string
- func (m *QueryGetApprovedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetApprovedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetApprovedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetApprovedUpgradeRequest) ProtoMessage()
- func (m *QueryGetApprovedUpgradeRequest) Reset()
- func (m *QueryGetApprovedUpgradeRequest) Size() (n int)
- func (m *QueryGetApprovedUpgradeRequest) String() string
- func (m *QueryGetApprovedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetApprovedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryGetApprovedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetApprovedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetApprovedUpgradeRequest) XXX_Size() int
- func (m *QueryGetApprovedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryGetApprovedUpgradeResponse
- func (*QueryGetApprovedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetApprovedUpgradeResponse) GetApprovedUpgrade() ApprovedUpgrade
- func (m *QueryGetApprovedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetApprovedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetApprovedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetApprovedUpgradeResponse) ProtoMessage()
- func (m *QueryGetApprovedUpgradeResponse) Reset()
- func (m *QueryGetApprovedUpgradeResponse) Size() (n int)
- func (m *QueryGetApprovedUpgradeResponse) String() string
- func (m *QueryGetApprovedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetApprovedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryGetApprovedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetApprovedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetApprovedUpgradeResponse) XXX_Size() int
- func (m *QueryGetApprovedUpgradeResponse) XXX_Unmarshal(b []byte) error
- 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 QueryGetRejectedUpgradeRequest
- func (*QueryGetRejectedUpgradeRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetRejectedUpgradeRequest) GetName() string
- func (m *QueryGetRejectedUpgradeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRejectedUpgradeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRejectedUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRejectedUpgradeRequest) ProtoMessage()
- func (m *QueryGetRejectedUpgradeRequest) Reset()
- func (m *QueryGetRejectedUpgradeRequest) Size() (n int)
- func (m *QueryGetRejectedUpgradeRequest) String() string
- func (m *QueryGetRejectedUpgradeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetRejectedUpgradeRequest) XXX_DiscardUnknown()
- func (m *QueryGetRejectedUpgradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRejectedUpgradeRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetRejectedUpgradeRequest) XXX_Size() int
- func (m *QueryGetRejectedUpgradeRequest) XXX_Unmarshal(b []byte) error
- type QueryGetRejectedUpgradeResponse
- func (*QueryGetRejectedUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetRejectedUpgradeResponse) GetRejectedUpgrade() RejectedUpgrade
- func (m *QueryGetRejectedUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRejectedUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRejectedUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRejectedUpgradeResponse) ProtoMessage()
- func (m *QueryGetRejectedUpgradeResponse) Reset()
- func (m *QueryGetRejectedUpgradeResponse) Size() (n int)
- func (m *QueryGetRejectedUpgradeResponse) String() string
- func (m *QueryGetRejectedUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetRejectedUpgradeResponse) XXX_DiscardUnknown()
- func (m *QueryGetRejectedUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRejectedUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetRejectedUpgradeResponse) XXX_Size() int
- func (m *QueryGetRejectedUpgradeResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RejectedUpgrade
- func (*RejectedUpgrade) Descriptor() ([]byte, []int)
- func (m *RejectedUpgrade) GetApprovals() []*Grant
- func (m *RejectedUpgrade) GetCreator() string
- func (m *RejectedUpgrade) GetPlan() types.Plan
- func (m *RejectedUpgrade) GetRejects() []*Grant
- func (m *RejectedUpgrade) GetSchemaVersion() uint32
- func (m *RejectedUpgrade) Marshal() (dAtA []byte, err error)
- func (m *RejectedUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *RejectedUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RejectedUpgrade) ProtoMessage()
- func (m *RejectedUpgrade) Reset()
- func (m *RejectedUpgrade) Size() (n int)
- func (m *RejectedUpgrade) String() string
- func (m *RejectedUpgrade) Unmarshal(dAtA []byte) error
- func (m *RejectedUpgrade) XXX_DiscardUnknown()
- func (m *RejectedUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RejectedUpgrade) XXX_Merge(src proto.Message)
- func (m *RejectedUpgrade) XXX_Size() int
- func (m *RejectedUpgrade) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ApproveUpgrade(ctx context.Context, req *MsgApproveUpgrade) (*MsgApproveUpgradeResponse, error)
- func (*UnimplementedMsgServer) ProposeUpgrade(ctx context.Context, req *MsgProposeUpgrade) (*MsgProposeUpgradeResponse, error)
- func (*UnimplementedMsgServer) RejectUpgrade(ctx context.Context, req *MsgRejectUpgrade) (*MsgRejectUpgradeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ApprovedUpgrade(ctx context.Context, req *QueryGetApprovedUpgradeRequest) (*QueryGetApprovedUpgradeResponse, error)
- func (*UnimplementedQueryServer) ApprovedUpgradeAll(ctx context.Context, req *QueryAllApprovedUpgradeRequest) (*QueryAllApprovedUpgradeResponse, error)
- func (*UnimplementedQueryServer) ProposedUpgrade(ctx context.Context, req *QueryGetProposedUpgradeRequest) (*QueryGetProposedUpgradeResponse, error)
- func (*UnimplementedQueryServer) ProposedUpgradeAll(ctx context.Context, req *QueryAllProposedUpgradeRequest) (*QueryAllProposedUpgradeResponse, error)
- func (*UnimplementedQueryServer) RejectedUpgrade(ctx context.Context, req *QueryGetRejectedUpgradeRequest) (*QueryGetRejectedUpgradeResponse, error)
- func (*UnimplementedQueryServer) RejectedUpgradeAll(ctx context.Context, req *QueryAllRejectedUpgradeRequest) (*QueryAllRejectedUpgradeResponse, 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 (
// ApprovedUpgradeKeyPrefix is the prefix to retrieve all ApprovedUpgrade.
ApprovedUpgradeKeyPrefix = "ApprovedUpgrade/value/"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index.
const (
// ProposedUpgradeKeyPrefix is the prefix to retrieve all ProposedUpgrade.
ProposedUpgradeKeyPrefix = "ProposedUpgrade/value/"
)
const (
// RejectedUpgradeKeyPrefix is the prefix to retrieve all RejectedUpgrade.
RejectedUpgradeKeyPrefix = "RejectedUpgrade/value/"
)
const TypeMsgApproveUpgrade = "approve_upgrade"
const TypeMsgProposeUpgrade = "propose_upgrade"
const TypeMsgRejectUpgrade = "reject_upgrade"
Variables ¶
var ( ErrInvalidLengthApprovedUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApprovedUpgrade = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApprovedUpgrade = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
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.
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 ( ErrInvalidLengthGrant = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGrant = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGrant = 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 ( ErrInvalidLengthRejectedUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRejectedUpgrade = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRejectedUpgrade = fmt.Errorf("proto: unexpected end of group") )
var ( UpgradeApprovalsPercent = 2.0 / 3.0 UpgradeApprovalRole = dclauthtypes.Trustee )
TODO: 1. Move it to separate module 2. Make it configurable 3. Save into store.
Functions ¶
func ApprovedUpgradeKey ¶ added in v0.8.0
ApprovedUpgradeKey returns the store key to retrieve a ApprovedUpgrade from the index fields.
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 ¶
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)
func RejectedUpgradeKey ¶ added in v0.11.0
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) 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) GetAddress ¶ added in v0.8.0
func (*Grant) GetSchemaVersion ¶ added in v1.4.0
func (*Grant) MarshalToSizedBuffer ¶ added in v0.8.0
func (*Grant) ProtoMessage ¶ added in v0.8.0
func (*Grant) ProtoMessage()
func (*Grant) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *Grant) XXX_DiscardUnknown()
func (*Grant) XXX_Marshal ¶ added in v0.8.0
func (*Grant) XXX_Unmarshal ¶ added in v0.8.0
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 ¶
type MsgServer interface { ProposeUpgrade(context.Context, *MsgProposeUpgrade) (*MsgProposeUpgradeResponse, error) ApproveUpgrade(context.Context, *MsgApproveUpgrade) (*MsgApproveUpgradeResponse, error) RejectUpgrade(context.Context, *MsgRejectUpgrade) (*MsgRejectUpgradeResponse, 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 []*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) 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 (m *QueryAllApprovedUpgradeRequest) String() string
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 (m *QueryAllApprovedUpgradeResponse) GetPagination() *query.PageResponse
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 (m *QueryAllApprovedUpgradeResponse) Reset()
func (*QueryAllApprovedUpgradeResponse) Size ¶ added in v0.8.0
func (m *QueryAllApprovedUpgradeResponse) Size() (n int)
func (*QueryAllApprovedUpgradeResponse) String ¶ added in v0.8.0
func (m *QueryAllApprovedUpgradeResponse) String() string
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 (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 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 (m *QueryAllRejectedUpgradeRequest) String() string
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 (m *QueryAllRejectedUpgradeResponse) GetPagination() *query.PageResponse
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 (m *QueryAllRejectedUpgradeResponse) Reset()
func (*QueryAllRejectedUpgradeResponse) Size ¶ added in v0.11.0
func (m *QueryAllRejectedUpgradeResponse) Size() (n int)
func (*QueryAllRejectedUpgradeResponse) String ¶ added in v0.11.0
func (m *QueryAllRejectedUpgradeResponse) String() string
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 (m *QueryGetApprovedUpgradeRequest) GetName() string
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 (m *QueryGetApprovedUpgradeRequest) String() string
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 (m *QueryGetApprovedUpgradeResponse) Reset()
func (*QueryGetApprovedUpgradeResponse) Size ¶ added in v0.8.0
func (m *QueryGetApprovedUpgradeResponse) Size() (n int)
func (*QueryGetApprovedUpgradeResponse) String ¶ added in v0.8.0
func (m *QueryGetApprovedUpgradeResponse) String() string
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 (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 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 (m *QueryGetRejectedUpgradeRequest) GetName() string
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 (m *QueryGetRejectedUpgradeRequest) String() string
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 (m *QueryGetRejectedUpgradeResponse) Reset()
func (*QueryGetRejectedUpgradeResponse) Size ¶ added in v0.11.0
func (m *QueryGetRejectedUpgradeResponse) Size() (n int)
func (*QueryGetRejectedUpgradeResponse) String ¶ added in v0.11.0
func (m *QueryGetRejectedUpgradeResponse) String() string
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) ApproveUpgrade(ctx context.Context, req *MsgApproveUpgrade) (*MsgApproveUpgradeResponse, error)
func (*UnimplementedMsgServer) ProposeUpgrade ¶
func (*UnimplementedMsgServer) ProposeUpgrade(ctx context.Context, req *MsgProposeUpgrade) (*MsgProposeUpgradeResponse, error)
func (*UnimplementedMsgServer) RejectUpgrade ¶ added in v0.11.0
func (*UnimplementedMsgServer) RejectUpgrade(ctx context.Context, req *MsgRejectUpgrade) (*MsgRejectUpgradeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ApprovedUpgrade ¶ added in v0.8.0
func (*UnimplementedQueryServer) ApprovedUpgrade(ctx context.Context, req *QueryGetApprovedUpgradeRequest) (*QueryGetApprovedUpgradeResponse, error)
func (*UnimplementedQueryServer) ApprovedUpgradeAll ¶ added in v0.8.0
func (*UnimplementedQueryServer) ApprovedUpgradeAll(ctx context.Context, req *QueryAllApprovedUpgradeRequest) (*QueryAllApprovedUpgradeResponse, error)
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)
func (*UnimplementedQueryServer) RejectedUpgrade ¶ added in v0.11.0
func (*UnimplementedQueryServer) RejectedUpgrade(ctx context.Context, req *QueryGetRejectedUpgradeRequest) (*QueryGetRejectedUpgradeResponse, error)
func (*UnimplementedQueryServer) RejectedUpgradeAll ¶ added in v0.11.0
func (*UnimplementedQueryServer) RejectedUpgradeAll(ctx context.Context, req *QueryAllRejectedUpgradeRequest) (*QueryAllRejectedUpgradeResponse, error)
type UpgradeKeeper ¶
type UpgradeKeeper interface { // Methods imported from upgrade should be defined here ScheduleUpgrade(ctx sdk.Context, plan upgradetypes.Plan) error }
Source Files ¶
- approved_upgrade.pb.go
- codec.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- grant.pb.go
- key_approved_upgrade.go
- key_proposed_upgrade.go
- key_rejected_upgrade.go
- keys.go
- message_approve_upgrade.go
- message_propose_upgrade.go
- message_reject_upgrade.go
- proposed_upgrade.go
- proposed_upgrade.pb.go
- query.pb.go
- query.pb.gw.go
- rejected_upgrade.pb.go
- rules.go
- tx.pb.go
- types.go