Documentation ¶
Overview ¶
nolint
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetSuperKey(addr sdk.AccAddress) []byte
- func GetSupersSubspaceKey() []byte
- func RegisterInterfaces(registry types.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)
- func ValidAccountType(option AccountType) bool
- type AccountType
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetSupers() []Super
- 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 (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 MsgAddSuper
- func (*MsgAddSuper) Descriptor() ([]byte, []int)
- func (msg MsgAddSuper) EnsureLength() error
- func (m *MsgAddSuper) GetAddedBy() string
- func (m *MsgAddSuper) GetAddress() string
- func (m *MsgAddSuper) GetDescription() string
- func (msg MsgAddSuper) GetSignBytes() []byte
- func (msg MsgAddSuper) GetSigners() []sdk.AccAddress
- func (m *MsgAddSuper) Marshal() (dAtA []byte, err error)
- func (m *MsgAddSuper) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddSuper) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddSuper) ProtoMessage()
- func (m *MsgAddSuper) Reset()
- func (msg MsgAddSuper) Route() string
- func (m *MsgAddSuper) Size() (n int)
- func (m *MsgAddSuper) String() string
- func (msg MsgAddSuper) Type() string
- func (m *MsgAddSuper) Unmarshal(dAtA []byte) error
- func (msg MsgAddSuper) ValidateBasic() error
- func (m *MsgAddSuper) XXX_DiscardUnknown()
- func (m *MsgAddSuper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddSuper) XXX_Merge(src proto.Message)
- func (m *MsgAddSuper) XXX_Size() int
- func (m *MsgAddSuper) XXX_Unmarshal(b []byte) error
- type MsgAddSuperResponse
- func (*MsgAddSuperResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddSuperResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddSuperResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddSuperResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddSuperResponse) ProtoMessage()
- func (m *MsgAddSuperResponse) Reset()
- func (m *MsgAddSuperResponse) Size() (n int)
- func (m *MsgAddSuperResponse) String() string
- func (m *MsgAddSuperResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddSuperResponse) XXX_DiscardUnknown()
- func (m *MsgAddSuperResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddSuperResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddSuperResponse) XXX_Size() int
- func (m *MsgAddSuperResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeleteSuper
- func (*MsgDeleteSuper) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSuper) GetAddress() string
- func (m *MsgDeleteSuper) GetDeletedBy() string
- func (msg MsgDeleteSuper) GetSignBytes() []byte
- func (msg MsgDeleteSuper) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteSuper) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSuper) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSuper) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSuper) ProtoMessage()
- func (m *MsgDeleteSuper) Reset()
- func (msg MsgDeleteSuper) Route() string
- func (m *MsgDeleteSuper) Size() (n int)
- func (m *MsgDeleteSuper) String() string
- func (msg MsgDeleteSuper) Type() string
- func (m *MsgDeleteSuper) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteSuper) ValidateBasic() error
- func (m *MsgDeleteSuper) XXX_DiscardUnknown()
- func (m *MsgDeleteSuper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSuper) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSuper) XXX_Size() int
- func (m *MsgDeleteSuper) XXX_Unmarshal(b []byte) error
- type MsgDeleteSuperResponse
- func (*MsgDeleteSuperResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSuperResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSuperResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSuperResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSuperResponse) ProtoMessage()
- func (m *MsgDeleteSuperResponse) Reset()
- func (m *MsgDeleteSuperResponse) Size() (n int)
- func (m *MsgDeleteSuperResponse) String() string
- func (m *MsgDeleteSuperResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteSuperResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteSuperResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSuperResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSuperResponse) XXX_Size() int
- func (m *MsgDeleteSuperResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryServer
- type QuerySupersRequest
- func (*QuerySupersRequest) Descriptor() ([]byte, []int)
- func (m *QuerySupersRequest) GetPagination() *query.PageRequest
- func (m *QuerySupersRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySupersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupersRequest) ProtoMessage()
- func (m *QuerySupersRequest) Reset()
- func (m *QuerySupersRequest) Size() (n int)
- func (m *QuerySupersRequest) String() string
- func (m *QuerySupersRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySupersRequest) XXX_DiscardUnknown()
- func (m *QuerySupersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupersRequest) XXX_Merge(src proto.Message)
- func (m *QuerySupersRequest) XXX_Size() int
- func (m *QuerySupersRequest) XXX_Unmarshal(b []byte) error
- type QuerySupersResponse
- func (*QuerySupersResponse) Descriptor() ([]byte, []int)
- func (m *QuerySupersResponse) GetPagination() *query.PageResponse
- func (m *QuerySupersResponse) GetSupers() []Super
- func (m *QuerySupersResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySupersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupersResponse) ProtoMessage()
- func (m *QuerySupersResponse) Reset()
- func (m *QuerySupersResponse) Size() (n int)
- func (m *QuerySupersResponse) String() string
- func (m *QuerySupersResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySupersResponse) XXX_DiscardUnknown()
- func (m *QuerySupersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupersResponse) XXX_Merge(src proto.Message)
- func (m *QuerySupersResponse) XXX_Size() int
- func (m *QuerySupersResponse) XXX_Unmarshal(b []byte) error
- type Super
- func (*Super) Descriptor() ([]byte, []int)
- func (g Super) Equal(super Super) bool
- func (m *Super) GetAccountType() AccountType
- func (m *Super) GetAddedBy() string
- func (m *Super) GetAddress() string
- func (m *Super) GetDescription() string
- func (m *Super) Marshal() (dAtA []byte, err error)
- func (m *Super) MarshalTo(dAtA []byte) (int, error)
- func (m *Super) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Super) ProtoMessage()
- func (m *Super) Reset()
- func (m *Super) Size() (n int)
- func (m *Super) String() string
- func (m *Super) Unmarshal(dAtA []byte) error
- func (m *Super) XXX_DiscardUnknown()
- func (m *Super) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Super) XXX_Merge(src proto.Message)
- func (m *Super) XXX_Size() int
- func (m *Super) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeAddSuper = "add_super" EventTypeDeleteSuper = "delete_super" AttributeKeySuperAddress = "address" AttributeKeyAddedBy = "added_by" AttributeKeyDeletedBy = "deleted_by" AttributeValueCategory = ModuleName )
guardian module event types
const ( // module name ModuleName = "guardian" // StoreKey is the default store key for guardian StoreKey = ModuleName // RouterKey is the message route for guardian RouterKey = ModuleName // QuerierRoute is the querier route for the guardian store. QuerierRoute = StoreKey // Query endpoints supported by the guardian querier QuerySupers = "supers" )
nolint
const ( TypeMsgAddSuper = "add_super" // type for MsgAddSuper TypeMsgDeleteSuper = "delete_super" // type for MsgDeleteSuper )
Variables ¶
var ( ErrUnknownOperator = sdkerrors.Register(ModuleName, 2, "unknown operator") ErrUnknownSuper = sdkerrors.Register(ModuleName, 3, "unknown super") ErrSuperExists = sdkerrors.Register(ModuleName, 4, "super already exists") ErrDeleteGenesisSuper = sdkerrors.Register(ModuleName, 5, "can't delete genesis super") )
guardian 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 ( ErrInvalidLengthGuardian = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGuardian = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGuardian = 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 AccountType_name = map[int32]string{
0: "GENESIS",
1: "ORDINARY",
}
var AccountType_value = map[string]int32{
"GENESIS": 0,
"ORDINARY": 1,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
SuperKey = []byte{0x00} // super key
)
Functions ¶
func GetSupersSubspaceKey ¶
func GetSupersSubspaceKey() []byte
GetSupersSubspaceKey returns the key for getting all supers from the store
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary module/guardian interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
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 ValidAccountType ¶
func ValidAccountType(option AccountType) bool
ValidAccountType returns true if the AccountType option is valid and false otherwise.
Types ¶
type AccountType ¶
type AccountType int32
AccountType defines the super account type
const ( // GENESIS defines a genesis account type Genesis AccountType = 0 // ORDINARY defines a ordinary account type Ordinary AccountType = 1 )
func AccountTypeFromString ¶
func AccountTypeFromString(str string) (AccountType, error)
AccountTypeFromString converts string to AccountType byte, Returns ff if invalid.
func (AccountType) EnumDescriptor ¶
func (AccountType) EnumDescriptor() ([]byte, []int)
func (AccountType) Format ¶
func (at AccountType) Format(s fmt.State, verb rune)
Format implements the fmt.Formatter interface.
func (AccountType) Marshal ¶
func (at AccountType) Marshal() ([]byte, error)
Marshal needed for protobuf compatibility.
func (AccountType) String ¶
func (x AccountType) String() string
func (*AccountType) Unmarshal ¶
func (at *AccountType) Unmarshal(data []byte) error
Unmarshal needed for protobuf compatibility.
type GenesisState ¶
type GenesisState struct {
Supers []Super `protobuf:"bytes,1,rep,name=supers,proto3" json:"supers"`
}
GenesisState defines the guardian module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets raw genesis raw message for testing
func NewGenesisState ¶
func NewGenesisState(supers []Super) *GenesisState
NewGenesisState constructs a GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetSupers ¶
func (m *GenesisState) GetSupers() []Super
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) 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 MsgAddSuper ¶
type MsgAddSuper struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` AddedBy string `protobuf:"bytes,3,opt,name=added_by,json=addedBy,proto3" json:"added_by,omitempty"` }
MsgAddSuper defines the properties of add super account message
func NewMsgAddSuper ¶
func NewMsgAddSuper(description string, address, addedBy sdk.AccAddress) *MsgAddSuper
NewMsgAddSuper constructs a MsgAddSuper
func (*MsgAddSuper) Descriptor ¶
func (*MsgAddSuper) Descriptor() ([]byte, []int)
func (MsgAddSuper) EnsureLength ¶
func (msg MsgAddSuper) EnsureLength() error
EnsureLength validate the length of AddGuardian
func (*MsgAddSuper) GetAddedBy ¶
func (m *MsgAddSuper) GetAddedBy() string
func (*MsgAddSuper) GetAddress ¶
func (m *MsgAddSuper) GetAddress() string
func (*MsgAddSuper) GetDescription ¶
func (m *MsgAddSuper) GetDescription() string
func (MsgAddSuper) GetSignBytes ¶
func (msg MsgAddSuper) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgAddSuper) GetSigners ¶
func (msg MsgAddSuper) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgAddSuper) Marshal ¶
func (m *MsgAddSuper) Marshal() (dAtA []byte, err error)
func (*MsgAddSuper) MarshalToSizedBuffer ¶
func (m *MsgAddSuper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddSuper) ProtoMessage ¶
func (*MsgAddSuper) ProtoMessage()
func (*MsgAddSuper) Reset ¶
func (m *MsgAddSuper) Reset()
func (*MsgAddSuper) Size ¶
func (m *MsgAddSuper) Size() (n int)
func (*MsgAddSuper) String ¶
func (m *MsgAddSuper) String() string
func (*MsgAddSuper) Unmarshal ¶
func (m *MsgAddSuper) Unmarshal(dAtA []byte) error
func (MsgAddSuper) ValidateBasic ¶
func (msg MsgAddSuper) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgAddSuper) XXX_DiscardUnknown ¶
func (m *MsgAddSuper) XXX_DiscardUnknown()
func (*MsgAddSuper) XXX_Marshal ¶
func (m *MsgAddSuper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddSuper) XXX_Merge ¶
func (m *MsgAddSuper) XXX_Merge(src proto.Message)
func (*MsgAddSuper) XXX_Size ¶
func (m *MsgAddSuper) XXX_Size() int
func (*MsgAddSuper) XXX_Unmarshal ¶
func (m *MsgAddSuper) XXX_Unmarshal(b []byte) error
type MsgAddSuperResponse ¶
type MsgAddSuperResponse struct { }
MsgAddSuperResponse defines the Msg/AddSuper response type
func (*MsgAddSuperResponse) Descriptor ¶
func (*MsgAddSuperResponse) Descriptor() ([]byte, []int)
func (*MsgAddSuperResponse) Marshal ¶
func (m *MsgAddSuperResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddSuperResponse) MarshalTo ¶
func (m *MsgAddSuperResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddSuperResponse) MarshalToSizedBuffer ¶
func (m *MsgAddSuperResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddSuperResponse) ProtoMessage ¶
func (*MsgAddSuperResponse) ProtoMessage()
func (*MsgAddSuperResponse) Reset ¶
func (m *MsgAddSuperResponse) Reset()
func (*MsgAddSuperResponse) Size ¶
func (m *MsgAddSuperResponse) Size() (n int)
func (*MsgAddSuperResponse) String ¶
func (m *MsgAddSuperResponse) String() string
func (*MsgAddSuperResponse) Unmarshal ¶
func (m *MsgAddSuperResponse) Unmarshal(dAtA []byte) error
func (*MsgAddSuperResponse) XXX_DiscardUnknown ¶
func (m *MsgAddSuperResponse) XXX_DiscardUnknown()
func (*MsgAddSuperResponse) XXX_Marshal ¶
func (m *MsgAddSuperResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddSuperResponse) XXX_Merge ¶
func (m *MsgAddSuperResponse) XXX_Merge(src proto.Message)
func (*MsgAddSuperResponse) XXX_Size ¶
func (m *MsgAddSuperResponse) XXX_Size() int
func (*MsgAddSuperResponse) XXX_Unmarshal ¶
func (m *MsgAddSuperResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // AddSuper defines a method for adding a super account AddSuper(ctx context.Context, in *MsgAddSuper, opts ...grpc.CallOption) (*MsgAddSuperResponse, error) // DeleteSuper defines a method for deleting a super account DeleteSuper(ctx context.Context, in *MsgDeleteSuper, opts ...grpc.CallOption) (*MsgDeleteSuperResponse, 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 MsgDeleteSuper ¶
type MsgDeleteSuper struct { Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` DeletedBy string `protobuf:"bytes,3,opt,name=deleted_by,json=deletedBy,proto3" json:"deleted_by,omitempty"` }
MsgDeleteSuper defines the properties of delete super account message
func NewMsgDeleteSuper ¶
func NewMsgDeleteSuper(address, deletedBy sdk.AccAddress) *MsgDeleteSuper
NewMsgDeleteSuper constructs a MsgDeleteSuper
func (*MsgDeleteSuper) Descriptor ¶
func (*MsgDeleteSuper) Descriptor() ([]byte, []int)
func (*MsgDeleteSuper) GetAddress ¶
func (m *MsgDeleteSuper) GetAddress() string
func (*MsgDeleteSuper) GetDeletedBy ¶
func (m *MsgDeleteSuper) GetDeletedBy() string
func (MsgDeleteSuper) GetSignBytes ¶
func (msg MsgDeleteSuper) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgDeleteSuper) GetSigners ¶
func (msg MsgDeleteSuper) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgDeleteSuper) Marshal ¶
func (m *MsgDeleteSuper) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSuper) MarshalToSizedBuffer ¶
func (m *MsgDeleteSuper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSuper) ProtoMessage ¶
func (*MsgDeleteSuper) ProtoMessage()
func (*MsgDeleteSuper) Reset ¶
func (m *MsgDeleteSuper) Reset()
func (*MsgDeleteSuper) Size ¶
func (m *MsgDeleteSuper) Size() (n int)
func (*MsgDeleteSuper) String ¶
func (m *MsgDeleteSuper) String() string
func (*MsgDeleteSuper) Unmarshal ¶
func (m *MsgDeleteSuper) Unmarshal(dAtA []byte) error
func (MsgDeleteSuper) ValidateBasic ¶
func (msg MsgDeleteSuper) ValidateBasic() error
RoValidateBasicute implements Msg.
func (*MsgDeleteSuper) XXX_DiscardUnknown ¶
func (m *MsgDeleteSuper) XXX_DiscardUnknown()
func (*MsgDeleteSuper) XXX_Marshal ¶
func (m *MsgDeleteSuper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSuper) XXX_Merge ¶
func (m *MsgDeleteSuper) XXX_Merge(src proto.Message)
func (*MsgDeleteSuper) XXX_Size ¶
func (m *MsgDeleteSuper) XXX_Size() int
func (*MsgDeleteSuper) XXX_Unmarshal ¶
func (m *MsgDeleteSuper) XXX_Unmarshal(b []byte) error
type MsgDeleteSuperResponse ¶
type MsgDeleteSuperResponse struct { }
MsgDeleteSuperResponse defines the Msg/DeleteSuper response type
func (*MsgDeleteSuperResponse) Descriptor ¶
func (*MsgDeleteSuperResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteSuperResponse) Marshal ¶
func (m *MsgDeleteSuperResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSuperResponse) MarshalTo ¶
func (m *MsgDeleteSuperResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSuperResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteSuperResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSuperResponse) ProtoMessage ¶
func (*MsgDeleteSuperResponse) ProtoMessage()
func (*MsgDeleteSuperResponse) Reset ¶
func (m *MsgDeleteSuperResponse) Reset()
func (*MsgDeleteSuperResponse) Size ¶
func (m *MsgDeleteSuperResponse) Size() (n int)
func (*MsgDeleteSuperResponse) String ¶
func (m *MsgDeleteSuperResponse) String() string
func (*MsgDeleteSuperResponse) Unmarshal ¶
func (m *MsgDeleteSuperResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteSuperResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteSuperResponse) XXX_DiscardUnknown()
func (*MsgDeleteSuperResponse) XXX_Marshal ¶
func (m *MsgDeleteSuperResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSuperResponse) XXX_Merge ¶
func (m *MsgDeleteSuperResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteSuperResponse) XXX_Size ¶
func (m *MsgDeleteSuperResponse) XXX_Size() int
func (*MsgDeleteSuperResponse) XXX_Unmarshal ¶
func (m *MsgDeleteSuperResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // AddSuper defines a method for adding a super account AddSuper(context.Context, *MsgAddSuper) (*MsgAddSuperResponse, error) // DeleteSuper defines a method for deleting a super account DeleteSuper(context.Context, *MsgDeleteSuper) (*MsgDeleteSuperResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { // Supers returns all Supers Supers(ctx context.Context, in *QuerySupersRequest, opts ...grpc.CallOption) (*QuerySupersResponse, 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 { // Supers returns all Supers Supers(context.Context, *QuerySupersRequest) (*QuerySupersResponse, error) }
QueryServer is the server API for Query service.
type QuerySupersRequest ¶
type QuerySupersRequest struct { // pagination defines an optional pagination for the request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySupersRequest is request type for the Query/Supers RPC method
func (*QuerySupersRequest) Descriptor ¶
func (*QuerySupersRequest) Descriptor() ([]byte, []int)
func (*QuerySupersRequest) GetPagination ¶
func (m *QuerySupersRequest) GetPagination() *query.PageRequest
func (*QuerySupersRequest) Marshal ¶
func (m *QuerySupersRequest) Marshal() (dAtA []byte, err error)
func (*QuerySupersRequest) MarshalTo ¶
func (m *QuerySupersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupersRequest) MarshalToSizedBuffer ¶
func (m *QuerySupersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupersRequest) ProtoMessage ¶
func (*QuerySupersRequest) ProtoMessage()
func (*QuerySupersRequest) Reset ¶
func (m *QuerySupersRequest) Reset()
func (*QuerySupersRequest) Size ¶
func (m *QuerySupersRequest) Size() (n int)
func (*QuerySupersRequest) String ¶
func (m *QuerySupersRequest) String() string
func (*QuerySupersRequest) Unmarshal ¶
func (m *QuerySupersRequest) Unmarshal(dAtA []byte) error
func (*QuerySupersRequest) XXX_DiscardUnknown ¶
func (m *QuerySupersRequest) XXX_DiscardUnknown()
func (*QuerySupersRequest) XXX_Marshal ¶
func (m *QuerySupersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupersRequest) XXX_Merge ¶
func (m *QuerySupersRequest) XXX_Merge(src proto.Message)
func (*QuerySupersRequest) XXX_Size ¶
func (m *QuerySupersRequest) XXX_Size() int
func (*QuerySupersRequest) XXX_Unmarshal ¶
func (m *QuerySupersRequest) XXX_Unmarshal(b []byte) error
type QuerySupersResponse ¶
type QuerySupersResponse struct { Supers []Super `protobuf:"bytes,1,rep,name=supers,proto3" json:"supers"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySupersResponse is response type for the Query/Supers RPC method
func (*QuerySupersResponse) Descriptor ¶
func (*QuerySupersResponse) Descriptor() ([]byte, []int)
func (*QuerySupersResponse) GetPagination ¶
func (m *QuerySupersResponse) GetPagination() *query.PageResponse
func (*QuerySupersResponse) GetSupers ¶
func (m *QuerySupersResponse) GetSupers() []Super
func (*QuerySupersResponse) Marshal ¶
func (m *QuerySupersResponse) Marshal() (dAtA []byte, err error)
func (*QuerySupersResponse) MarshalTo ¶
func (m *QuerySupersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupersResponse) MarshalToSizedBuffer ¶
func (m *QuerySupersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupersResponse) ProtoMessage ¶
func (*QuerySupersResponse) ProtoMessage()
func (*QuerySupersResponse) Reset ¶
func (m *QuerySupersResponse) Reset()
func (*QuerySupersResponse) Size ¶
func (m *QuerySupersResponse) Size() (n int)
func (*QuerySupersResponse) String ¶
func (m *QuerySupersResponse) String() string
func (*QuerySupersResponse) Unmarshal ¶
func (m *QuerySupersResponse) Unmarshal(dAtA []byte) error
func (*QuerySupersResponse) XXX_DiscardUnknown ¶
func (m *QuerySupersResponse) XXX_DiscardUnknown()
func (*QuerySupersResponse) XXX_Marshal ¶
func (m *QuerySupersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupersResponse) XXX_Merge ¶
func (m *QuerySupersResponse) XXX_Merge(src proto.Message)
func (*QuerySupersResponse) XXX_Size ¶
func (m *QuerySupersResponse) XXX_Size() int
func (*QuerySupersResponse) XXX_Unmarshal ¶
func (m *QuerySupersResponse) XXX_Unmarshal(b []byte) error
type Super ¶
type Super struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` AccountType AccountType `` /* 150-byte string literal not displayed */ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` AddedBy string `protobuf:"bytes,4,opt,name=added_by,json=addedBy,proto3" json:"added_by,omitempty"` }
Super defines the super standard
func NewSuper ¶
func NewSuper(description string, accountType AccountType, address, addedBy sdk.AccAddress) Super
NewSuper constructs a super
func (*Super) Descriptor ¶
func (*Super) GetAccountType ¶
func (m *Super) GetAccountType() AccountType
func (*Super) GetAddedBy ¶
func (*Super) GetAddress ¶
func (*Super) GetDescription ¶
func (*Super) ProtoMessage ¶
func (*Super) ProtoMessage()
func (*Super) XXX_DiscardUnknown ¶
func (m *Super) XXX_DiscardUnknown()
func (*Super) XXX_Marshal ¶
func (*Super) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddSuper ¶
func (*UnimplementedMsgServer) AddSuper(ctx context.Context, req *MsgAddSuper) (*MsgAddSuperResponse, error)
func (*UnimplementedMsgServer) DeleteSuper ¶
func (*UnimplementedMsgServer) DeleteSuper(ctx context.Context, req *MsgDeleteSuper) (*MsgDeleteSuperResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Supers ¶
func (*UnimplementedQueryServer) Supers(ctx context.Context, req *QuerySupersRequest) (*QuerySupersResponse, error)