Versions in this module Expand all Collapse all v1 v1.1.1 Apr 25, 2024 Changes in this version + const AttributeKeyAddress + const AttributeKeyEditOption + const AttributeKeyEndDate + const DefaultIndex + const DistributorAdminPrefix + const DistributorPrefix + const EventTypeAddAdmin + const EventTypeAddDistributor + const EventTypeAddDistributorProposal + const EventTypeRemoveAdmin + const EventTypeRemoveDistributor + const MemStoreKey + const ModuleName + const ProposalTypeAddDistributor + const QuerierRoute + const RouterKey + const StoreKey + var Amino = codec.NewLegacyAmino() + var ErrDistributorEndDateLessThenBlockTime = sdkerrors.Register(ModuleName, 7, "End date less then block time") + var ErrIntOverflowDistributorsauth = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthDistributorsauth = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNoAdminInStoreForAddress = sdkerrors.Register(ModuleName, 3, "No admin in store with address") + var ErrNoDistributorInStoreForAddress = sdkerrors.Register(ModuleName, 1, "No distributor in store with address") + var ErrSenderIsNotAnAdmin = sdkerrors.Register(ModuleName, 5, "Sender is not an admin") + var ErrUnexpectedEndOfGroupDistributorsauth = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ErrWrongAdminAddress = sdkerrors.Register(ModuleName, 4, "Not correct admin address") + var ErrWrongAdminEditOption = sdkerrors.Register(ModuleName, 6, "Admin have no edit option") + var ErrWrongDistributorAddress = sdkerrors.Register(ModuleName, 2, "Not correct distributor address") + var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) + func AddAdminEvent(address string, edit_option string) sdk.Event + func AddDistributoProposalEvent(address string, endDate string) sdk.Event + func AddDistributorEvent(address string, endDate string) sdk.Event + func CheckDistrubutorEndDateExpire(ctx sdk.Context, endDate uint64) bool + func ContainsGenesisAdmin(addr string, admins []Admin) bool + func ContainsGenesisDistributor(addr string, distributors []DistributorInfo) bool + func EnsureBech32Address(address string) (string, error) + func KeyPrefix(p string) []byte + func RegisterCodec(cdc *codec.LegacyAmino) + func RegisterInterfaces(registry cdctypes.InterfaceRegistry) + func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error + func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error + 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 RemoveAdminEvent(address string) sdk.Event + func RemoveDistributorEvent(address string) sdk.Event + func ValidateDistributor(address string) error + type AccountKeeper interface + IterateAccounts func(ctx sdk.Context, cb func(account types.AccountI) (stop bool)) + type AddDistributorProposal struct + Address string + Deposit string + Description string + EndDate uint64 + Title string + func NewAddDistributorProposal(title, description, address, deposit string, end_date uint64) *AddDistributorProposal + func (*AddDistributorProposal) Descriptor() ([]byte, []int) + func (*AddDistributorProposal) ProtoMessage() + func (m *AddDistributorProposal) Marshal() (dAtA []byte, err error) + func (m *AddDistributorProposal) MarshalTo(dAtA []byte) (int, error) + func (m *AddDistributorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AddDistributorProposal) Reset() + func (m *AddDistributorProposal) Size() (n int) + func (m *AddDistributorProposal) String() string + func (m *AddDistributorProposal) Unmarshal(dAtA []byte) error + func (m *AddDistributorProposal) XXX_DiscardUnknown() + func (m *AddDistributorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AddDistributorProposal) XXX_Merge(src proto.Message) + func (m *AddDistributorProposal) XXX_Size() int + func (m *AddDistributorProposal) XXX_Unmarshal(b []byte) error + func (pcp *AddDistributorProposal) GetDescription() string + func (pcp *AddDistributorProposal) GetTitle() string + func (pcp *AddDistributorProposal) ProposalRoute() string + func (pcp *AddDistributorProposal) ProposalType() string + func (pcp *AddDistributorProposal) ValidateBasic() error + type Admin struct + Address string + EditOption bool + func (*Admin) Descriptor() ([]byte, []int) + func (*Admin) ProtoMessage() + func (m *Admin) GetAddress() string + func (m *Admin) GetEditOption() bool + func (m *Admin) Marshal() (dAtA []byte, err error) + func (m *Admin) MarshalTo(dAtA []byte) (int, error) + func (m *Admin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Admin) Reset() + func (m *Admin) Size() (n int) + func (m *Admin) String() string + func (m *Admin) Unmarshal(dAtA []byte) error + func (m *Admin) XXX_DiscardUnknown() + func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Admin) XXX_Merge(src proto.Message) + func (m *Admin) XXX_Size() int + func (m *Admin) XXX_Unmarshal(b []byte) error + type BankKeeper interface + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type DistributorInfo struct + Address string + EndDate uint64 + func (*DistributorInfo) Descriptor() ([]byte, []int) + func (*DistributorInfo) ProtoMessage() + func (m *DistributorInfo) GetAddress() string + func (m *DistributorInfo) GetEndDate() uint64 + func (m *DistributorInfo) Marshal() (dAtA []byte, err error) + func (m *DistributorInfo) MarshalTo(dAtA []byte) (int, error) + func (m *DistributorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DistributorInfo) Reset() + func (m *DistributorInfo) Size() (n int) + func (m *DistributorInfo) String() string + func (m *DistributorInfo) Unmarshal(dAtA []byte) error + func (m *DistributorInfo) XXX_DiscardUnknown() + func (m *DistributorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DistributorInfo) XXX_Merge(src proto.Message) + func (m *DistributorInfo) XXX_Size() int + func (m *DistributorInfo) XXX_Unmarshal(b []byte) error + type GenesisAdminIterator struct + type GenesisAdmins []Admin + func SanitizeGenesisAdmin(genAdmins GenesisAdmins) GenesisAdmins + type GenesisDistributors []DistributorInfo + func SanitizeGenesisDistributor(genDistr GenesisDistributors) GenesisDistributors + type GenesisState struct + Admins []Admin + Distributors []DistributorInfo + func DefaultGenesis() *GenesisState + func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState + func NewGenesisState(admins []Admin, distributors []DistributorInfo) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetAdmins() []Admin + func (m *GenesisState) GetDistributors() []DistributorInfo + 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 (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 MsgAddAdmin struct + AdminAddress string + EditOption bool + Sender string + func NewMsgAddAdmin(sender sdk.AccAddress, address string, editOption bool) *MsgAddAdmin + func (*MsgAddAdmin) Descriptor() ([]byte, []int) + func (*MsgAddAdmin) ProtoMessage() + func (m *MsgAddAdmin) GetAdminAddress() string + func (m *MsgAddAdmin) GetEditOption() bool + func (m *MsgAddAdmin) GetSender() string + func (m *MsgAddAdmin) Marshal() (dAtA []byte, err error) + func (m *MsgAddAdmin) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAddAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAddAdmin) Reset() + func (m *MsgAddAdmin) Size() (n int) + func (m *MsgAddAdmin) String() string + func (m *MsgAddAdmin) Unmarshal(dAtA []byte) error + func (m *MsgAddAdmin) XXX_DiscardUnknown() + func (m *MsgAddAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAddAdmin) XXX_Merge(src proto.Message) + func (m *MsgAddAdmin) XXX_Size() int + func (m *MsgAddAdmin) XXX_Unmarshal(b []byte) error + func (msg MsgAddAdmin) GetSignBytes() []byte + func (msg MsgAddAdmin) GetSigners() []sdk.AccAddress + func (msg MsgAddAdmin) Route() string + func (msg MsgAddAdmin) Type() string + func (msg MsgAddAdmin) ValidateBasic() error + type MsgAddAdminResponse struct + func (*MsgAddAdminResponse) Descriptor() ([]byte, []int) + func (*MsgAddAdminResponse) ProtoMessage() + func (m *MsgAddAdminResponse) Marshal() (dAtA []byte, err error) + func (m *MsgAddAdminResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAddAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAddAdminResponse) Reset() + func (m *MsgAddAdminResponse) Size() (n int) + func (m *MsgAddAdminResponse) String() string + func (m *MsgAddAdminResponse) Unmarshal(dAtA []byte) error + func (m *MsgAddAdminResponse) XXX_DiscardUnknown() + func (m *MsgAddAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAddAdminResponse) XXX_Merge(src proto.Message) + func (m *MsgAddAdminResponse) XXX_Size() int + func (m *MsgAddAdminResponse) XXX_Unmarshal(b []byte) error + type MsgAddDistributor struct + DistributorAddress string + EndDate uint64 + Sender string + func NewMsgAddDistributor(sender sdk.AccAddress, address string, endDate uint64) *MsgAddDistributor + func (*MsgAddDistributor) Descriptor() ([]byte, []int) + func (*MsgAddDistributor) ProtoMessage() + func (m *MsgAddDistributor) GetDistributorAddress() string + func (m *MsgAddDistributor) GetEndDate() uint64 + func (m *MsgAddDistributor) GetSender() string + func (m *MsgAddDistributor) Marshal() (dAtA []byte, err error) + func (m *MsgAddDistributor) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAddDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAddDistributor) Reset() + func (m *MsgAddDistributor) Size() (n int) + func (m *MsgAddDistributor) String() string + func (m *MsgAddDistributor) Unmarshal(dAtA []byte) error + func (m *MsgAddDistributor) XXX_DiscardUnknown() + func (m *MsgAddDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAddDistributor) XXX_Merge(src proto.Message) + func (m *MsgAddDistributor) XXX_Size() int + func (m *MsgAddDistributor) XXX_Unmarshal(b []byte) error + func (msg MsgAddDistributor) GetSignBytes() []byte + func (msg MsgAddDistributor) GetSigners() []sdk.AccAddress + func (msg MsgAddDistributor) Route() string + func (msg MsgAddDistributor) Type() string + func (msg MsgAddDistributor) ValidateBasic() error + type MsgAddDistributorResponse struct + func (*MsgAddDistributorResponse) Descriptor() ([]byte, []int) + func (*MsgAddDistributorResponse) ProtoMessage() + func (m *MsgAddDistributorResponse) Marshal() (dAtA []byte, err error) + func (m *MsgAddDistributorResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAddDistributorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAddDistributorResponse) Reset() + func (m *MsgAddDistributorResponse) Size() (n int) + func (m *MsgAddDistributorResponse) String() string + func (m *MsgAddDistributorResponse) Unmarshal(dAtA []byte) error + func (m *MsgAddDistributorResponse) XXX_DiscardUnknown() + func (m *MsgAddDistributorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAddDistributorResponse) XXX_Merge(src proto.Message) + func (m *MsgAddDistributorResponse) XXX_Size() int + func (m *MsgAddDistributorResponse) XXX_Unmarshal(b []byte) error + type MsgClient interface + AddAdmin func(ctx context.Context, in *MsgAddAdmin, opts ...grpc.CallOption) (*MsgAddAdminResponse, error) + AddDistributor func(ctx context.Context, in *MsgAddDistributor, opts ...grpc.CallOption) (*MsgAddDistributorResponse, error) + RemoveAdmin func(ctx context.Context, in *MsgRemoveAdmin, opts ...grpc.CallOption) (*MsgRemoveAdminResponse, error) + RemoveDistributor func(ctx context.Context, in *MsgRemoveDistributor, opts ...grpc.CallOption) (*MsgRemoveDistributorResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgRemoveAdmin struct + AdminAddress string + Sender string + func NewMsgRemoveAdmin(fromAddress sdk.AccAddress, address string) *MsgRemoveAdmin + func (*MsgRemoveAdmin) Descriptor() ([]byte, []int) + func (*MsgRemoveAdmin) ProtoMessage() + func (m *MsgRemoveAdmin) GetAdminAddress() string + func (m *MsgRemoveAdmin) GetSender() string + func (m *MsgRemoveAdmin) Marshal() (dAtA []byte, err error) + func (m *MsgRemoveAdmin) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRemoveAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRemoveAdmin) Reset() + func (m *MsgRemoveAdmin) Size() (n int) + func (m *MsgRemoveAdmin) String() string + func (m *MsgRemoveAdmin) Unmarshal(dAtA []byte) error + func (m *MsgRemoveAdmin) XXX_DiscardUnknown() + func (m *MsgRemoveAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRemoveAdmin) XXX_Merge(src proto.Message) + func (m *MsgRemoveAdmin) XXX_Size() int + func (m *MsgRemoveAdmin) XXX_Unmarshal(b []byte) error + func (msg *MsgRemoveAdmin) GetSignBytes() []byte + func (msg *MsgRemoveAdmin) Route() string + func (msg *MsgRemoveAdmin) Type() string + func (msg *MsgRemoveAdmin) ValidateBasic() error + func (msg MsgRemoveAdmin) GetSigners() []sdk.AccAddress + type MsgRemoveAdminResponse struct + func (*MsgRemoveAdminResponse) Descriptor() ([]byte, []int) + func (*MsgRemoveAdminResponse) ProtoMessage() + func (m *MsgRemoveAdminResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRemoveAdminResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRemoveAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRemoveAdminResponse) Reset() + func (m *MsgRemoveAdminResponse) Size() (n int) + func (m *MsgRemoveAdminResponse) String() string + func (m *MsgRemoveAdminResponse) Unmarshal(dAtA []byte) error + func (m *MsgRemoveAdminResponse) XXX_DiscardUnknown() + func (m *MsgRemoveAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRemoveAdminResponse) XXX_Merge(src proto.Message) + func (m *MsgRemoveAdminResponse) XXX_Size() int + func (m *MsgRemoveAdminResponse) XXX_Unmarshal(b []byte) error + type MsgRemoveDistributor struct + DistributorAddress string + Sender string + func NewMsgRemoveDistributor(fromAddress sdk.AccAddress, address string) *MsgRemoveDistributor + func (*MsgRemoveDistributor) Descriptor() ([]byte, []int) + func (*MsgRemoveDistributor) ProtoMessage() + func (m *MsgRemoveDistributor) GetDistributorAddress() string + func (m *MsgRemoveDistributor) GetSender() string + func (m *MsgRemoveDistributor) Marshal() (dAtA []byte, err error) + func (m *MsgRemoveDistributor) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRemoveDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRemoveDistributor) Reset() + func (m *MsgRemoveDistributor) Size() (n int) + func (m *MsgRemoveDistributor) String() string + func (m *MsgRemoveDistributor) Unmarshal(dAtA []byte) error + func (m *MsgRemoveDistributor) XXX_DiscardUnknown() + func (m *MsgRemoveDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRemoveDistributor) XXX_Merge(src proto.Message) + func (m *MsgRemoveDistributor) XXX_Size() int + func (m *MsgRemoveDistributor) XXX_Unmarshal(b []byte) error + func (msg *MsgRemoveDistributor) GetSignBytes() []byte + func (msg *MsgRemoveDistributor) Route() string + func (msg *MsgRemoveDistributor) Type() string + func (msg *MsgRemoveDistributor) ValidateBasic() error + func (msg MsgRemoveDistributor) GetSigners() []sdk.AccAddress + type MsgRemoveDistributorResponse struct + func (*MsgRemoveDistributorResponse) Descriptor() ([]byte, []int) + func (*MsgRemoveDistributorResponse) ProtoMessage() + func (m *MsgRemoveDistributorResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRemoveDistributorResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRemoveDistributorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRemoveDistributorResponse) Reset() + func (m *MsgRemoveDistributorResponse) Size() (n int) + func (m *MsgRemoveDistributorResponse) String() string + func (m *MsgRemoveDistributorResponse) Unmarshal(dAtA []byte) error + func (m *MsgRemoveDistributorResponse) XXX_DiscardUnknown() + func (m *MsgRemoveDistributorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRemoveDistributorResponse) XXX_Merge(src proto.Message) + func (m *MsgRemoveDistributorResponse) XXX_Size() int + func (m *MsgRemoveDistributorResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + AddAdmin func(context.Context, *MsgAddAdmin) (*MsgAddAdminResponse, error) + AddDistributor func(context.Context, *MsgAddDistributor) (*MsgAddDistributorResponse, error) + RemoveAdmin func(context.Context, *MsgRemoveAdmin) (*MsgRemoveAdminResponse, error) + RemoveDistributor func(context.Context, *MsgRemoveDistributor) (*MsgRemoveDistributorResponse, error) + type QueryAdminRequest struct + AdminAddr string + func (*QueryAdminRequest) Descriptor() ([]byte, []int) + func (*QueryAdminRequest) ProtoMessage() + func (m *QueryAdminRequest) GetAdminAddr() string + func (m *QueryAdminRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAdminRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAdminRequest) Reset() + func (m *QueryAdminRequest) Size() (n int) + func (m *QueryAdminRequest) String() string + func (m *QueryAdminRequest) Unmarshal(dAtA []byte) error + func (m *QueryAdminRequest) XXX_DiscardUnknown() + func (m *QueryAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAdminRequest) XXX_Merge(src proto.Message) + func (m *QueryAdminRequest) XXX_Size() int + func (m *QueryAdminRequest) XXX_Unmarshal(b []byte) error + type QueryAdminResponse struct + Admin Admin + func (*QueryAdminResponse) Descriptor() ([]byte, []int) + func (*QueryAdminResponse) ProtoMessage() + func (m *QueryAdminResponse) GetAdmin() Admin + func (m *QueryAdminResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAdminResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAdminResponse) Reset() + func (m *QueryAdminResponse) Size() (n int) + func (m *QueryAdminResponse) String() string + func (m *QueryAdminResponse) Unmarshal(dAtA []byte) error + func (m *QueryAdminResponse) XXX_DiscardUnknown() + func (m *QueryAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAdminResponse) XXX_Merge(src proto.Message) + func (m *QueryAdminResponse) XXX_Size() int + func (m *QueryAdminResponse) XXX_Unmarshal(b []byte) error + type QueryAdminsRequest struct + func (*QueryAdminsRequest) Descriptor() ([]byte, []int) + func (*QueryAdminsRequest) ProtoMessage() + func (m *QueryAdminsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAdminsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAdminsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAdminsRequest) Reset() + func (m *QueryAdminsRequest) Size() (n int) + func (m *QueryAdminsRequest) String() string + func (m *QueryAdminsRequest) Unmarshal(dAtA []byte) error + func (m *QueryAdminsRequest) XXX_DiscardUnknown() + func (m *QueryAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAdminsRequest) XXX_Merge(src proto.Message) + func (m *QueryAdminsRequest) XXX_Size() int + func (m *QueryAdminsRequest) XXX_Unmarshal(b []byte) error + type QueryAdminsResponse struct + Admins []Admin + func (*QueryAdminsResponse) Descriptor() ([]byte, []int) + func (*QueryAdminsResponse) ProtoMessage() + func (m *QueryAdminsResponse) GetAdmins() []Admin + func (m *QueryAdminsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAdminsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAdminsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAdminsResponse) Reset() + func (m *QueryAdminsResponse) Size() (n int) + func (m *QueryAdminsResponse) String() string + func (m *QueryAdminsResponse) Unmarshal(dAtA []byte) error + func (m *QueryAdminsResponse) XXX_DiscardUnknown() + func (m *QueryAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAdminsResponse) XXX_Merge(src proto.Message) + func (m *QueryAdminsResponse) XXX_Size() int + func (m *QueryAdminsResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + Admin func(ctx context.Context, in *QueryAdminRequest, opts ...grpc.CallOption) (*QueryAdminResponse, error) + Admins func(ctx context.Context, in *QueryAdminsRequest, opts ...grpc.CallOption) (*QueryAdminsResponse, error) + Distributor func(ctx context.Context, in *QueryDistributorRequest, opts ...grpc.CallOption) (*QueryDistributorResponse, error) + Distributors func(ctx context.Context, in *QueryDistributorsRequest, opts ...grpc.CallOption) (*QueryDistributorsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryDistributorRequest struct + DistributorAddr string + func (*QueryDistributorRequest) Descriptor() ([]byte, []int) + func (*QueryDistributorRequest) ProtoMessage() + func (m *QueryDistributorRequest) GetDistributorAddr() string + func (m *QueryDistributorRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDistributorRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDistributorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDistributorRequest) Reset() + func (m *QueryDistributorRequest) Size() (n int) + func (m *QueryDistributorRequest) String() string + func (m *QueryDistributorRequest) Unmarshal(dAtA []byte) error + func (m *QueryDistributorRequest) XXX_DiscardUnknown() + func (m *QueryDistributorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDistributorRequest) XXX_Merge(src proto.Message) + func (m *QueryDistributorRequest) XXX_Size() int + func (m *QueryDistributorRequest) XXX_Unmarshal(b []byte) error + type QueryDistributorResponse struct + Distributor DistributorInfo + func (*QueryDistributorResponse) Descriptor() ([]byte, []int) + func (*QueryDistributorResponse) ProtoMessage() + func (m *QueryDistributorResponse) GetDistributor() DistributorInfo + func (m *QueryDistributorResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDistributorResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDistributorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDistributorResponse) Reset() + func (m *QueryDistributorResponse) Size() (n int) + func (m *QueryDistributorResponse) String() string + func (m *QueryDistributorResponse) Unmarshal(dAtA []byte) error + func (m *QueryDistributorResponse) XXX_DiscardUnknown() + func (m *QueryDistributorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDistributorResponse) XXX_Merge(src proto.Message) + func (m *QueryDistributorResponse) XXX_Size() int + func (m *QueryDistributorResponse) XXX_Unmarshal(b []byte) error + type QueryDistributorsRequest struct + func (*QueryDistributorsRequest) Descriptor() ([]byte, []int) + func (*QueryDistributorsRequest) ProtoMessage() + func (m *QueryDistributorsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDistributorsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDistributorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDistributorsRequest) Reset() + func (m *QueryDistributorsRequest) Size() (n int) + func (m *QueryDistributorsRequest) String() string + func (m *QueryDistributorsRequest) Unmarshal(dAtA []byte) error + func (m *QueryDistributorsRequest) XXX_DiscardUnknown() + func (m *QueryDistributorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDistributorsRequest) XXX_Merge(src proto.Message) + func (m *QueryDistributorsRequest) XXX_Size() int + func (m *QueryDistributorsRequest) XXX_Unmarshal(b []byte) error + type QueryDistributorsResponse struct + Distributors []DistributorInfo + func (*QueryDistributorsResponse) Descriptor() ([]byte, []int) + func (*QueryDistributorsResponse) ProtoMessage() + func (m *QueryDistributorsResponse) GetDistributors() []DistributorInfo + func (m *QueryDistributorsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDistributorsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDistributorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDistributorsResponse) Reset() + func (m *QueryDistributorsResponse) Size() (n int) + func (m *QueryDistributorsResponse) String() string + func (m *QueryDistributorsResponse) Unmarshal(dAtA []byte) error + func (m *QueryDistributorsResponse) XXX_DiscardUnknown() + func (m *QueryDistributorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDistributorsResponse) XXX_Merge(src proto.Message) + func (m *QueryDistributorsResponse) XXX_Size() int + func (m *QueryDistributorsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Admin func(context.Context, *QueryAdminRequest) (*QueryAdminResponse, error) + Admins func(context.Context, *QueryAdminsRequest) (*QueryAdminsResponse, error) + Distributor func(context.Context, *QueryDistributorRequest) (*QueryDistributorResponse, error) + Distributors func(context.Context, *QueryDistributorsRequest) (*QueryDistributorsResponse, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) AddAdmin(ctx context.Context, req *MsgAddAdmin) (*MsgAddAdminResponse, error) + func (*UnimplementedMsgServer) AddDistributor(ctx context.Context, req *MsgAddDistributor) (*MsgAddDistributorResponse, error) + func (*UnimplementedMsgServer) RemoveAdmin(ctx context.Context, req *MsgRemoveAdmin) (*MsgRemoveAdminResponse, error) + func (*UnimplementedMsgServer) RemoveDistributor(ctx context.Context, req *MsgRemoveDistributor) (*MsgRemoveDistributorResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Admin(ctx context.Context, req *QueryAdminRequest) (*QueryAdminResponse, error) + func (*UnimplementedQueryServer) Admins(ctx context.Context, req *QueryAdminsRequest) (*QueryAdminsResponse, error) + func (*UnimplementedQueryServer) Distributor(ctx context.Context, req *QueryDistributorRequest) (*QueryDistributorResponse, error) + func (*UnimplementedQueryServer) Distributors(ctx context.Context, req *QueryDistributorsRequest) (*QueryDistributorsResponse, error)