Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codecTypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAuthority() string
- 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 MsgClient
- type MsgExecute
- func (*MsgExecute) Descriptor() ([]byte, []int)
- func (m *MsgExecute) GetAuthority() string
- func (m *MsgExecute) GetMessages() []*types.Any
- func (m *MsgExecute) GetMsgs() ([]sdk.Msg, error)
- func (m *MsgExecute) GetSignBytes() []byte
- func (m *MsgExecute) GetSigners() []sdk.AccAddress
- func (m *MsgExecute) Marshal() (dAtA []byte, err error)
- func (m *MsgExecute) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecute) ProtoMessage()
- func (m *MsgExecute) Reset()
- func (m *MsgExecute) Route() string
- func (m *MsgExecute) Size() (n int)
- func (m *MsgExecute) String() string
- func (m *MsgExecute) Type() string
- func (m *MsgExecute) Unmarshal(dAtA []byte) error
- func (m *MsgExecute) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
- func (m *MsgExecute) ValidateBasic() error
- func (m *MsgExecute) XXX_DiscardUnknown()
- func (m *MsgExecute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecute) XXX_Merge(src proto.Message)
- func (m *MsgExecute) XXX_Size() int
- func (m *MsgExecute) XXX_Unmarshal(b []byte) error
- type MsgExecuteLegacyContent
- func (*MsgExecuteLegacyContent) Descriptor() ([]byte, []int)
- func (m *MsgExecuteLegacyContent) GetAuthority() string
- func (m *MsgExecuteLegacyContent) GetContent() *types.Any
- func (m *MsgExecuteLegacyContent) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteLegacyContent) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteLegacyContent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteLegacyContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteLegacyContent) ProtoMessage()
- func (m *MsgExecuteLegacyContent) Reset()
- func (m *MsgExecuteLegacyContent) Size() (n int)
- func (m *MsgExecuteLegacyContent) String() string
- func (m *MsgExecuteLegacyContent) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteLegacyContent) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
- func (m *MsgExecuteLegacyContent) ValidateBasic() error
- func (m *MsgExecuteLegacyContent) XXX_DiscardUnknown()
- func (m *MsgExecuteLegacyContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteLegacyContent) XXX_Merge(src proto.Message)
- func (m *MsgExecuteLegacyContent) XXX_Size() int
- func (m *MsgExecuteLegacyContent) XXX_Unmarshal(b []byte) error
- type MsgExecuteLegacyContentResponse
- func (*MsgExecuteLegacyContentResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteLegacyContentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteLegacyContentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteLegacyContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteLegacyContentResponse) ProtoMessage()
- func (m *MsgExecuteLegacyContentResponse) Reset()
- func (m *MsgExecuteLegacyContentResponse) Size() (n int)
- func (m *MsgExecuteLegacyContentResponse) String() string
- func (m *MsgExecuteLegacyContentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteLegacyContentResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteLegacyContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteLegacyContentResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteLegacyContentResponse) XXX_Size() int
- func (m *MsgExecuteLegacyContentResponse) XXX_Unmarshal(b []byte) error
- type MsgExecuteResponse
- func (*MsgExecuteResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteResponse) ProtoMessage()
- func (m *MsgExecuteResponse) Reset()
- func (m *MsgExecuteResponse) Size() (n int)
- func (m *MsgExecuteResponse) String() string
- func (m *MsgExecuteResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteResponse) XXX_Size() int
- func (m *MsgExecuteResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateAuthority
- func (*MsgUpdateAuthority) Descriptor() ([]byte, []int)
- func (m *MsgUpdateAuthority) GetAuthority() string
- func (m *MsgUpdateAuthority) GetNewAuthority() string
- func (m *MsgUpdateAuthority) GetSignBytes() []byte
- func (m *MsgUpdateAuthority) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateAuthority) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateAuthority) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateAuthority) ProtoMessage()
- func (m *MsgUpdateAuthority) Reset()
- func (m *MsgUpdateAuthority) Route() string
- func (m *MsgUpdateAuthority) Size() (n int)
- func (m *MsgUpdateAuthority) String() string
- func (m *MsgUpdateAuthority) Type() string
- func (m *MsgUpdateAuthority) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateAuthority) ValidateBasic() error
- func (m *MsgUpdateAuthority) XXX_DiscardUnknown()
- func (m *MsgUpdateAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateAuthority) XXX_Merge(src proto.Message)
- func (m *MsgUpdateAuthority) XXX_Size() int
- func (m *MsgUpdateAuthority) XXX_Unmarshal(b []byte) error
- type MsgUpdateAuthorityResponse
- func (*MsgUpdateAuthorityResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateAuthorityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateAuthorityResponse) ProtoMessage()
- func (m *MsgUpdateAuthorityResponse) Reset()
- func (m *MsgUpdateAuthorityResponse) Size() (n int)
- func (m *MsgUpdateAuthorityResponse) String() string
- func (m *MsgUpdateAuthorityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateAuthorityResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateAuthorityResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateAuthorityResponse) XXX_Size() int
- func (m *MsgUpdateAuthorityResponse) XXX_Unmarshal(b []byte) error
- type QueryAuthority
- func (*QueryAuthority) Descriptor() ([]byte, []int)
- func (m *QueryAuthority) Marshal() (dAtA []byte, err error)
- func (m *QueryAuthority) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuthority) ProtoMessage()
- func (m *QueryAuthority) Reset()
- func (m *QueryAuthority) Size() (n int)
- func (m *QueryAuthority) String() string
- func (m *QueryAuthority) Unmarshal(dAtA []byte) error
- func (m *QueryAuthority) XXX_DiscardUnknown()
- func (m *QueryAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuthority) XXX_Merge(src proto.Message)
- func (m *QueryAuthority) XXX_Size() int
- func (m *QueryAuthority) XXX_Unmarshal(b []byte) error
- type QueryAuthorityResponse
- func (*QueryAuthorityResponse) Descriptor() ([]byte, []int)
- func (m *QueryAuthorityResponse) GetAuthority() string
- func (m *QueryAuthorityResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuthorityResponse) ProtoMessage()
- func (m *QueryAuthorityResponse) Reset()
- func (m *QueryAuthorityResponse) Size() (n int)
- func (m *QueryAuthorityResponse) String() string
- func (m *QueryAuthorityResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAuthorityResponse) XXX_DiscardUnknown()
- func (m *QueryAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuthorityResponse) XXX_Merge(src proto.Message)
- func (m *QueryAuthorityResponse) XXX_Size() int
- func (m *QueryAuthorityResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Execute(ctx context.Context, req *MsgExecute) (*MsgExecuteResponse, error)
- func (*UnimplementedMsgServer) ExecuteLegacyContent(ctx context.Context, req *MsgExecuteLegacyContent) (*MsgExecuteLegacyContentResponse, error)
- func (*UnimplementedMsgServer) UpdateAuthority(ctx context.Context, req *MsgUpdateAuthority) (*MsgUpdateAuthorityResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ModuleName = "authority"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var AuthorityKey = []byte("authority")
var ModuleAddress = authTypes.NewModuleAddress(ModuleName)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codecTypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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 GenesisState ¶
type GenesisState struct {
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object.
func NewGenesisState ¶
func NewGenesisState(authority string) *GenesisState
NewGenesisState creates a new GenesisState object.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAuthority ¶
func (m *GenesisState) GetAuthority() string
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 validates the provided genesis state.
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 MsgClient ¶
type MsgClient interface { Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error) ExecuteLegacyContent(ctx context.Context, in *MsgExecuteLegacyContent, opts ...grpc.CallOption) (*MsgExecuteLegacyContentResponse, error) UpdateAuthority(ctx context.Context, in *MsgUpdateAuthority, opts ...grpc.CallOption) (*MsgUpdateAuthorityResponse, 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 MsgExecute ¶
type MsgExecute struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Messages []*types.Any `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` }
MsgExecute is the Msg/Execute request type.
func (*MsgExecute) Descriptor ¶
func (*MsgExecute) Descriptor() ([]byte, []int)
func (*MsgExecute) GetAuthority ¶
func (m *MsgExecute) GetAuthority() string
func (*MsgExecute) GetMessages ¶
func (m *MsgExecute) GetMessages() []*types.Any
func (*MsgExecute) GetSignBytes ¶
func (m *MsgExecute) GetSignBytes() []byte
func (*MsgExecute) GetSigners ¶
func (m *MsgExecute) GetSigners() []sdk.AccAddress
func (*MsgExecute) Marshal ¶
func (m *MsgExecute) Marshal() (dAtA []byte, err error)
func (*MsgExecute) MarshalToSizedBuffer ¶
func (m *MsgExecute) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecute) ProtoMessage ¶
func (*MsgExecute) ProtoMessage()
func (*MsgExecute) Reset ¶
func (m *MsgExecute) Reset()
func (*MsgExecute) Route ¶
func (m *MsgExecute) Route() string
func (*MsgExecute) Size ¶
func (m *MsgExecute) Size() (n int)
func (*MsgExecute) String ¶
func (m *MsgExecute) String() string
func (*MsgExecute) Type ¶
func (m *MsgExecute) Type() string
func (*MsgExecute) Unmarshal ¶
func (m *MsgExecute) Unmarshal(dAtA []byte) error
func (*MsgExecute) UnpackInterfaces ¶
func (m *MsgExecute) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
func (*MsgExecute) ValidateBasic ¶
func (m *MsgExecute) ValidateBasic() error
func (*MsgExecute) XXX_DiscardUnknown ¶
func (m *MsgExecute) XXX_DiscardUnknown()
func (*MsgExecute) XXX_Marshal ¶
func (m *MsgExecute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecute) XXX_Merge ¶
func (m *MsgExecute) XXX_Merge(src proto.Message)
func (*MsgExecute) XXX_Size ¶
func (m *MsgExecute) XXX_Size() int
func (*MsgExecute) XXX_Unmarshal ¶
func (m *MsgExecute) XXX_Unmarshal(b []byte) error
type MsgExecuteLegacyContent ¶
type MsgExecuteLegacyContent struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Content *types.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` }
MsgExecuteLegacyContent is the Msg/ExecuteLegacyContent request type.
func (*MsgExecuteLegacyContent) Descriptor ¶
func (*MsgExecuteLegacyContent) Descriptor() ([]byte, []int)
func (*MsgExecuteLegacyContent) GetAuthority ¶
func (m *MsgExecuteLegacyContent) GetAuthority() string
func (*MsgExecuteLegacyContent) GetContent ¶
func (m *MsgExecuteLegacyContent) GetContent() *types.Any
func (*MsgExecuteLegacyContent) GetSigners ¶
func (m *MsgExecuteLegacyContent) GetSigners() []sdk.AccAddress
func (*MsgExecuteLegacyContent) Marshal ¶
func (m *MsgExecuteLegacyContent) Marshal() (dAtA []byte, err error)
func (*MsgExecuteLegacyContent) MarshalTo ¶
func (m *MsgExecuteLegacyContent) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteLegacyContent) MarshalToSizedBuffer ¶
func (m *MsgExecuteLegacyContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteLegacyContent) ProtoMessage ¶
func (*MsgExecuteLegacyContent) ProtoMessage()
func (*MsgExecuteLegacyContent) Reset ¶
func (m *MsgExecuteLegacyContent) Reset()
func (*MsgExecuteLegacyContent) Size ¶
func (m *MsgExecuteLegacyContent) Size() (n int)
func (*MsgExecuteLegacyContent) String ¶
func (m *MsgExecuteLegacyContent) String() string
func (*MsgExecuteLegacyContent) Unmarshal ¶
func (m *MsgExecuteLegacyContent) Unmarshal(dAtA []byte) error
func (*MsgExecuteLegacyContent) UnpackInterfaces ¶
func (m *MsgExecuteLegacyContent) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
func (*MsgExecuteLegacyContent) ValidateBasic ¶
func (m *MsgExecuteLegacyContent) ValidateBasic() error
func (*MsgExecuteLegacyContent) XXX_DiscardUnknown ¶
func (m *MsgExecuteLegacyContent) XXX_DiscardUnknown()
func (*MsgExecuteLegacyContent) XXX_Marshal ¶
func (m *MsgExecuteLegacyContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteLegacyContent) XXX_Merge ¶
func (m *MsgExecuteLegacyContent) XXX_Merge(src proto.Message)
func (*MsgExecuteLegacyContent) XXX_Size ¶
func (m *MsgExecuteLegacyContent) XXX_Size() int
func (*MsgExecuteLegacyContent) XXX_Unmarshal ¶
func (m *MsgExecuteLegacyContent) XXX_Unmarshal(b []byte) error
type MsgExecuteLegacyContentResponse ¶
type MsgExecuteLegacyContentResponse struct { }
MsgExecuteLegacyContentResponse is the Msg/ExecuteLegacyContent response type.
func (*MsgExecuteLegacyContentResponse) Descriptor ¶
func (*MsgExecuteLegacyContentResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteLegacyContentResponse) Marshal ¶
func (m *MsgExecuteLegacyContentResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteLegacyContentResponse) MarshalTo ¶
func (m *MsgExecuteLegacyContentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteLegacyContentResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteLegacyContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteLegacyContentResponse) ProtoMessage ¶
func (*MsgExecuteLegacyContentResponse) ProtoMessage()
func (*MsgExecuteLegacyContentResponse) Reset ¶
func (m *MsgExecuteLegacyContentResponse) Reset()
func (*MsgExecuteLegacyContentResponse) Size ¶
func (m *MsgExecuteLegacyContentResponse) Size() (n int)
func (*MsgExecuteLegacyContentResponse) String ¶
func (m *MsgExecuteLegacyContentResponse) String() string
func (*MsgExecuteLegacyContentResponse) Unmarshal ¶
func (m *MsgExecuteLegacyContentResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteLegacyContentResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteLegacyContentResponse) XXX_DiscardUnknown()
func (*MsgExecuteLegacyContentResponse) XXX_Marshal ¶
func (m *MsgExecuteLegacyContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteLegacyContentResponse) XXX_Merge ¶
func (m *MsgExecuteLegacyContentResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteLegacyContentResponse) XXX_Size ¶
func (m *MsgExecuteLegacyContentResponse) XXX_Size() int
func (*MsgExecuteLegacyContentResponse) XXX_Unmarshal ¶
func (m *MsgExecuteLegacyContentResponse) XXX_Unmarshal(b []byte) error
type MsgExecuteResponse ¶
type MsgExecuteResponse struct { }
MsgExecuteResponse is the Msg/Execute response type.
func (*MsgExecuteResponse) Descriptor ¶
func (*MsgExecuteResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteResponse) Marshal ¶
func (m *MsgExecuteResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteResponse) MarshalTo ¶
func (m *MsgExecuteResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteResponse) ProtoMessage ¶
func (*MsgExecuteResponse) ProtoMessage()
func (*MsgExecuteResponse) Reset ¶
func (m *MsgExecuteResponse) Reset()
func (*MsgExecuteResponse) Size ¶
func (m *MsgExecuteResponse) Size() (n int)
func (*MsgExecuteResponse) String ¶
func (m *MsgExecuteResponse) String() string
func (*MsgExecuteResponse) Unmarshal ¶
func (m *MsgExecuteResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteResponse) XXX_DiscardUnknown()
func (*MsgExecuteResponse) XXX_Marshal ¶
func (m *MsgExecuteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteResponse) XXX_Merge ¶
func (m *MsgExecuteResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteResponse) XXX_Size ¶
func (m *MsgExecuteResponse) XXX_Size() int
func (*MsgExecuteResponse) XXX_Unmarshal ¶
func (m *MsgExecuteResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error) ExecuteLegacyContent(context.Context, *MsgExecuteLegacyContent) (*MsgExecuteLegacyContentResponse, error) UpdateAuthority(context.Context, *MsgUpdateAuthority) (*MsgUpdateAuthorityResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateAuthority ¶
type MsgUpdateAuthority struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` NewAuthority string `protobuf:"bytes,2,opt,name=new_authority,json=newAuthority,proto3" json:"new_authority,omitempty"` }
MsgUpdateAuthority is the Msg/UpdateAuthority request type.
func (*MsgUpdateAuthority) Descriptor ¶
func (*MsgUpdateAuthority) Descriptor() ([]byte, []int)
func (*MsgUpdateAuthority) GetAuthority ¶
func (m *MsgUpdateAuthority) GetAuthority() string
func (*MsgUpdateAuthority) GetNewAuthority ¶
func (m *MsgUpdateAuthority) GetNewAuthority() string
func (*MsgUpdateAuthority) GetSignBytes ¶
func (m *MsgUpdateAuthority) GetSignBytes() []byte
func (*MsgUpdateAuthority) GetSigners ¶
func (m *MsgUpdateAuthority) GetSigners() []sdk.AccAddress
func (*MsgUpdateAuthority) Marshal ¶
func (m *MsgUpdateAuthority) Marshal() (dAtA []byte, err error)
func (*MsgUpdateAuthority) MarshalTo ¶
func (m *MsgUpdateAuthority) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateAuthority) MarshalToSizedBuffer ¶
func (m *MsgUpdateAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateAuthority) ProtoMessage ¶
func (*MsgUpdateAuthority) ProtoMessage()
func (*MsgUpdateAuthority) Reset ¶
func (m *MsgUpdateAuthority) Reset()
func (*MsgUpdateAuthority) Route ¶
func (m *MsgUpdateAuthority) Route() string
func (*MsgUpdateAuthority) Size ¶
func (m *MsgUpdateAuthority) Size() (n int)
func (*MsgUpdateAuthority) String ¶
func (m *MsgUpdateAuthority) String() string
func (*MsgUpdateAuthority) Type ¶
func (m *MsgUpdateAuthority) Type() string
func (*MsgUpdateAuthority) Unmarshal ¶
func (m *MsgUpdateAuthority) Unmarshal(dAtA []byte) error
func (*MsgUpdateAuthority) ValidateBasic ¶
func (m *MsgUpdateAuthority) ValidateBasic() error
func (*MsgUpdateAuthority) XXX_DiscardUnknown ¶
func (m *MsgUpdateAuthority) XXX_DiscardUnknown()
func (*MsgUpdateAuthority) XXX_Marshal ¶
func (m *MsgUpdateAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateAuthority) XXX_Merge ¶
func (m *MsgUpdateAuthority) XXX_Merge(src proto.Message)
func (*MsgUpdateAuthority) XXX_Size ¶
func (m *MsgUpdateAuthority) XXX_Size() int
func (*MsgUpdateAuthority) XXX_Unmarshal ¶
func (m *MsgUpdateAuthority) XXX_Unmarshal(b []byte) error
type MsgUpdateAuthorityResponse ¶
type MsgUpdateAuthorityResponse struct { }
MsgUpdateAuthorityResponse is the Msg/UpdateAuthority response type.
func (*MsgUpdateAuthorityResponse) Descriptor ¶
func (*MsgUpdateAuthorityResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateAuthorityResponse) Marshal ¶
func (m *MsgUpdateAuthorityResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateAuthorityResponse) MarshalTo ¶
func (m *MsgUpdateAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateAuthorityResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateAuthorityResponse) ProtoMessage ¶
func (*MsgUpdateAuthorityResponse) ProtoMessage()
func (*MsgUpdateAuthorityResponse) Reset ¶
func (m *MsgUpdateAuthorityResponse) Reset()
func (*MsgUpdateAuthorityResponse) Size ¶
func (m *MsgUpdateAuthorityResponse) Size() (n int)
func (*MsgUpdateAuthorityResponse) String ¶
func (m *MsgUpdateAuthorityResponse) String() string
func (*MsgUpdateAuthorityResponse) Unmarshal ¶
func (m *MsgUpdateAuthorityResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateAuthorityResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateAuthorityResponse) XXX_DiscardUnknown()
func (*MsgUpdateAuthorityResponse) XXX_Marshal ¶
func (m *MsgUpdateAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateAuthorityResponse) XXX_Merge ¶
func (m *MsgUpdateAuthorityResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateAuthorityResponse) XXX_Size ¶
func (m *MsgUpdateAuthorityResponse) XXX_Size() int
func (*MsgUpdateAuthorityResponse) XXX_Unmarshal ¶
func (m *MsgUpdateAuthorityResponse) XXX_Unmarshal(b []byte) error
type QueryAuthority ¶
type QueryAuthority struct { }
QueryAuthority is the Query/Authority request type.
func (*QueryAuthority) Descriptor ¶
func (*QueryAuthority) Descriptor() ([]byte, []int)
func (*QueryAuthority) Marshal ¶
func (m *QueryAuthority) Marshal() (dAtA []byte, err error)
func (*QueryAuthority) MarshalToSizedBuffer ¶
func (m *QueryAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuthority) ProtoMessage ¶
func (*QueryAuthority) ProtoMessage()
func (*QueryAuthority) Reset ¶
func (m *QueryAuthority) Reset()
func (*QueryAuthority) Size ¶
func (m *QueryAuthority) Size() (n int)
func (*QueryAuthority) String ¶
func (m *QueryAuthority) String() string
func (*QueryAuthority) Unmarshal ¶
func (m *QueryAuthority) Unmarshal(dAtA []byte) error
func (*QueryAuthority) XXX_DiscardUnknown ¶
func (m *QueryAuthority) XXX_DiscardUnknown()
func (*QueryAuthority) XXX_Marshal ¶
func (m *QueryAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuthority) XXX_Merge ¶
func (m *QueryAuthority) XXX_Merge(src proto.Message)
func (*QueryAuthority) XXX_Size ¶
func (m *QueryAuthority) XXX_Size() int
func (*QueryAuthority) XXX_Unmarshal ¶
func (m *QueryAuthority) XXX_Unmarshal(b []byte) error
type QueryAuthorityResponse ¶
type QueryAuthorityResponse struct {
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
QueryAuthorityResponse is the Query/Authority response type.
func (*QueryAuthorityResponse) Descriptor ¶
func (*QueryAuthorityResponse) Descriptor() ([]byte, []int)
func (*QueryAuthorityResponse) GetAuthority ¶
func (m *QueryAuthorityResponse) GetAuthority() string
func (*QueryAuthorityResponse) Marshal ¶
func (m *QueryAuthorityResponse) Marshal() (dAtA []byte, err error)
func (*QueryAuthorityResponse) MarshalTo ¶
func (m *QueryAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAuthorityResponse) MarshalToSizedBuffer ¶
func (m *QueryAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuthorityResponse) ProtoMessage ¶
func (*QueryAuthorityResponse) ProtoMessage()
func (*QueryAuthorityResponse) Reset ¶
func (m *QueryAuthorityResponse) Reset()
func (*QueryAuthorityResponse) Size ¶
func (m *QueryAuthorityResponse) Size() (n int)
func (*QueryAuthorityResponse) String ¶
func (m *QueryAuthorityResponse) String() string
func (*QueryAuthorityResponse) Unmarshal ¶
func (m *QueryAuthorityResponse) Unmarshal(dAtA []byte) error
func (*QueryAuthorityResponse) XXX_DiscardUnknown ¶
func (m *QueryAuthorityResponse) XXX_DiscardUnknown()
func (*QueryAuthorityResponse) XXX_Marshal ¶
func (m *QueryAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuthorityResponse) XXX_Merge ¶
func (m *QueryAuthorityResponse) XXX_Merge(src proto.Message)
func (*QueryAuthorityResponse) XXX_Size ¶
func (m *QueryAuthorityResponse) XXX_Size() int
func (*QueryAuthorityResponse) XXX_Unmarshal ¶
func (m *QueryAuthorityResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
Authority(ctx context.Context, in *QueryAuthority, opts ...grpc.CallOption) (*QueryAuthorityResponse, 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 QueryServer ¶
type QueryServer interface {
Authority(context.Context, *QueryAuthority) (*QueryAuthorityResponse, 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) Execute ¶
func (*UnimplementedMsgServer) Execute(ctx context.Context, req *MsgExecute) (*MsgExecuteResponse, error)
func (*UnimplementedMsgServer) ExecuteLegacyContent ¶
func (*UnimplementedMsgServer) ExecuteLegacyContent(ctx context.Context, req *MsgExecuteLegacyContent) (*MsgExecuteLegacyContentResponse, error)
func (*UnimplementedMsgServer) UpdateAuthority ¶
func (*UnimplementedMsgServer) UpdateAuthority(ctx context.Context, req *MsgUpdateAuthority) (*MsgUpdateAuthorityResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Authority ¶
func (*UnimplementedQueryServer) Authority(ctx context.Context, req *QueryAuthority) (*QueryAuthorityResponse, error)