types

package
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2025 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "sanction"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_sanction"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey               = collections.NewPrefix("p_sanction")
	PrefixBlackListAccounts = []byte{0x01}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrAccountBlacklisted = errorsmod.Register(ModuleName, 500, "Account blacklisted")
)

x/sanction module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 {
	// params defines all the parameters of the module.
	Params            Params   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	BlacklistAccounts []string `protobuf:"bytes,2,rep,name=blacklist_accounts,json=blacklistAccounts,proto3" json:"blacklist_accounts,omitempty"`
}

GenesisState defines the sanction module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetBlacklistAccounts

func (m *GenesisState) GetBlacklistAccounts() []string

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 MsgAddBlacklistAccounts

type MsgAddBlacklistAccounts struct {
	Authority         string   `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	BlacklistAccounts []string `protobuf:"bytes,2,rep,name=blacklist_accounts,json=blacklistAccounts,proto3" json:"blacklist_accounts,omitempty"`
}

MsgAddBlacklistAccounts is the message type for adding an account to the blacklist.

func NewMsgAddBlacklistAccounts

func NewMsgAddBlacklistAccounts(creator string, blacklistAccounts []string) *MsgAddBlacklistAccounts

func (*MsgAddBlacklistAccounts) Descriptor

func (*MsgAddBlacklistAccounts) Descriptor() ([]byte, []int)

func (*MsgAddBlacklistAccounts) GetAuthority

func (m *MsgAddBlacklistAccounts) GetAuthority() string

func (*MsgAddBlacklistAccounts) GetBlacklistAccounts

func (m *MsgAddBlacklistAccounts) GetBlacklistAccounts() []string

func (*MsgAddBlacklistAccounts) Marshal

func (m *MsgAddBlacklistAccounts) Marshal() (dAtA []byte, err error)

func (*MsgAddBlacklistAccounts) MarshalTo

func (m *MsgAddBlacklistAccounts) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddBlacklistAccounts) MarshalToSizedBuffer

func (m *MsgAddBlacklistAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddBlacklistAccounts) ProtoMessage

func (*MsgAddBlacklistAccounts) ProtoMessage()

func (*MsgAddBlacklistAccounts) Reset

func (m *MsgAddBlacklistAccounts) Reset()

func (*MsgAddBlacklistAccounts) Size

func (m *MsgAddBlacklistAccounts) Size() (n int)

func (*MsgAddBlacklistAccounts) String

func (m *MsgAddBlacklistAccounts) String() string

func (*MsgAddBlacklistAccounts) Unmarshal

func (m *MsgAddBlacklistAccounts) Unmarshal(dAtA []byte) error

func (MsgAddBlacklistAccounts) Validate

func (m MsgAddBlacklistAccounts) Validate() error

func (*MsgAddBlacklistAccounts) XXX_DiscardUnknown

func (m *MsgAddBlacklistAccounts) XXX_DiscardUnknown()

func (*MsgAddBlacklistAccounts) XXX_Marshal

func (m *MsgAddBlacklistAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddBlacklistAccounts) XXX_Merge

func (m *MsgAddBlacklistAccounts) XXX_Merge(src proto.Message)

func (*MsgAddBlacklistAccounts) XXX_Size

func (m *MsgAddBlacklistAccounts) XXX_Size() int

func (*MsgAddBlacklistAccounts) XXX_Unmarshal

func (m *MsgAddBlacklistAccounts) XXX_Unmarshal(b []byte) error

type MsgAddBlacklistAccountsResponse

type MsgAddBlacklistAccountsResponse struct {
}

MsgAddBlacklistAccountsResponse defines the response type for adding an account to the blacklist.

func (*MsgAddBlacklistAccountsResponse) Descriptor

func (*MsgAddBlacklistAccountsResponse) Descriptor() ([]byte, []int)

func (*MsgAddBlacklistAccountsResponse) Marshal

func (m *MsgAddBlacklistAccountsResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddBlacklistAccountsResponse) MarshalTo

func (m *MsgAddBlacklistAccountsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddBlacklistAccountsResponse) MarshalToSizedBuffer

func (m *MsgAddBlacklistAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddBlacklistAccountsResponse) ProtoMessage

func (*MsgAddBlacklistAccountsResponse) ProtoMessage()

func (*MsgAddBlacklistAccountsResponse) Reset

func (*MsgAddBlacklistAccountsResponse) Size

func (m *MsgAddBlacklistAccountsResponse) Size() (n int)

func (*MsgAddBlacklistAccountsResponse) String

func (*MsgAddBlacklistAccountsResponse) Unmarshal

func (m *MsgAddBlacklistAccountsResponse) Unmarshal(dAtA []byte) error

func (*MsgAddBlacklistAccountsResponse) XXX_DiscardUnknown

func (m *MsgAddBlacklistAccountsResponse) XXX_DiscardUnknown()

func (*MsgAddBlacklistAccountsResponse) XXX_Marshal

func (m *MsgAddBlacklistAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddBlacklistAccountsResponse) XXX_Merge

func (m *MsgAddBlacklistAccountsResponse) XXX_Merge(src proto.Message)

func (*MsgAddBlacklistAccountsResponse) XXX_Size

func (m *MsgAddBlacklistAccountsResponse) XXX_Size() int

func (*MsgAddBlacklistAccountsResponse) XXX_Unmarshal

func (m *MsgAddBlacklistAccountsResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// AddBlacklistAccount defines a (governance) operation for adding an account
	// to the blacklist.
	AddBlacklistAccounts(ctx context.Context, in *MsgAddBlacklistAccounts, opts ...grpc.CallOption) (*MsgAddBlacklistAccountsResponse, error)
	// RemoveBlacklistAccount defines a (governance) operation for removing an
	// account from the blacklist.
	RemoveBlacklistAccounts(ctx context.Context, in *MsgRemoveBlacklistAccounts, opts ...grpc.CallOption) (*MsgRemoveBlacklistAccountsResponse, 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 MsgRemoveBlacklistAccounts

type MsgRemoveBlacklistAccounts struct {
	Authority         string   `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	BlacklistAccounts []string `protobuf:"bytes,2,rep,name=blacklist_accounts,json=blacklistAccounts,proto3" json:"blacklist_accounts,omitempty"`
}

MsgRemoveBlacklistAccounts is the message type for removing an account from the blacklist.

func NewMsgRemoveBlacklistAccounts

func NewMsgRemoveBlacklistAccounts(creator string, blacklistAccounts []string) *MsgRemoveBlacklistAccounts

func (*MsgRemoveBlacklistAccounts) Descriptor

func (*MsgRemoveBlacklistAccounts) Descriptor() ([]byte, []int)

func (*MsgRemoveBlacklistAccounts) GetAuthority

func (m *MsgRemoveBlacklistAccounts) GetAuthority() string

func (*MsgRemoveBlacklistAccounts) GetBlacklistAccounts

func (m *MsgRemoveBlacklistAccounts) GetBlacklistAccounts() []string

func (*MsgRemoveBlacklistAccounts) Marshal

func (m *MsgRemoveBlacklistAccounts) Marshal() (dAtA []byte, err error)

func (*MsgRemoveBlacklistAccounts) MarshalTo

func (m *MsgRemoveBlacklistAccounts) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveBlacklistAccounts) MarshalToSizedBuffer

func (m *MsgRemoveBlacklistAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveBlacklistAccounts) ProtoMessage

func (*MsgRemoveBlacklistAccounts) ProtoMessage()

func (*MsgRemoveBlacklistAccounts) Reset

func (m *MsgRemoveBlacklistAccounts) Reset()

func (*MsgRemoveBlacklistAccounts) Size

func (m *MsgRemoveBlacklistAccounts) Size() (n int)

func (*MsgRemoveBlacklistAccounts) String

func (m *MsgRemoveBlacklistAccounts) String() string

func (*MsgRemoveBlacklistAccounts) Unmarshal

func (m *MsgRemoveBlacklistAccounts) Unmarshal(dAtA []byte) error

func (MsgRemoveBlacklistAccounts) Validate

func (m MsgRemoveBlacklistAccounts) Validate() error

func (*MsgRemoveBlacklistAccounts) XXX_DiscardUnknown

func (m *MsgRemoveBlacklistAccounts) XXX_DiscardUnknown()

func (*MsgRemoveBlacklistAccounts) XXX_Marshal

func (m *MsgRemoveBlacklistAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveBlacklistAccounts) XXX_Merge

func (m *MsgRemoveBlacklistAccounts) XXX_Merge(src proto.Message)

func (*MsgRemoveBlacklistAccounts) XXX_Size

func (m *MsgRemoveBlacklistAccounts) XXX_Size() int

func (*MsgRemoveBlacklistAccounts) XXX_Unmarshal

func (m *MsgRemoveBlacklistAccounts) XXX_Unmarshal(b []byte) error

type MsgRemoveBlacklistAccountsResponse

type MsgRemoveBlacklistAccountsResponse struct {
}

MsgRemoveBlacklistAccountsResponse defines the response type for removing an account from the blacklist.

func (*MsgRemoveBlacklistAccountsResponse) Descriptor

func (*MsgRemoveBlacklistAccountsResponse) Descriptor() ([]byte, []int)

func (*MsgRemoveBlacklistAccountsResponse) Marshal

func (m *MsgRemoveBlacklistAccountsResponse) Marshal() (dAtA []byte, err error)

func (*MsgRemoveBlacklistAccountsResponse) MarshalTo

func (m *MsgRemoveBlacklistAccountsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveBlacklistAccountsResponse) MarshalToSizedBuffer

func (m *MsgRemoveBlacklistAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveBlacklistAccountsResponse) ProtoMessage

func (*MsgRemoveBlacklistAccountsResponse) ProtoMessage()

func (*MsgRemoveBlacklistAccountsResponse) Reset

func (*MsgRemoveBlacklistAccountsResponse) Size

func (*MsgRemoveBlacklistAccountsResponse) String

func (*MsgRemoveBlacklistAccountsResponse) Unmarshal

func (m *MsgRemoveBlacklistAccountsResponse) Unmarshal(dAtA []byte) error

func (*MsgRemoveBlacklistAccountsResponse) XXX_DiscardUnknown

func (m *MsgRemoveBlacklistAccountsResponse) XXX_DiscardUnknown()

func (*MsgRemoveBlacklistAccountsResponse) XXX_Marshal

func (m *MsgRemoveBlacklistAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveBlacklistAccountsResponse) XXX_Merge

func (*MsgRemoveBlacklistAccountsResponse) XXX_Size

func (*MsgRemoveBlacklistAccountsResponse) XXX_Unmarshal

func (m *MsgRemoveBlacklistAccountsResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// AddBlacklistAccount defines a (governance) operation for adding an account
	// to the blacklist.
	AddBlacklistAccounts(context.Context, *MsgAddBlacklistAccounts) (*MsgAddBlacklistAccountsResponse, error)
	// RemoveBlacklistAccount defines a (governance) operation for removing an
	// account from the blacklist.
	RemoveBlacklistAccounts(context.Context, *MsgRemoveBlacklistAccounts) (*MsgRemoveBlacklistAccountsResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams() Params

NewParams creates a new Params instance.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryBlacklistRequest

type QueryBlacklistRequest struct {
}

QueryBlacklistRequest is request type for the Query/Blacklist RPC method.

func (*QueryBlacklistRequest) Descriptor

func (*QueryBlacklistRequest) Descriptor() ([]byte, []int)

func (*QueryBlacklistRequest) Marshal

func (m *QueryBlacklistRequest) Marshal() (dAtA []byte, err error)

func (*QueryBlacklistRequest) MarshalTo

func (m *QueryBlacklistRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlacklistRequest) MarshalToSizedBuffer

func (m *QueryBlacklistRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlacklistRequest) ProtoMessage

func (*QueryBlacklistRequest) ProtoMessage()

func (*QueryBlacklistRequest) Reset

func (m *QueryBlacklistRequest) Reset()

func (*QueryBlacklistRequest) Size

func (m *QueryBlacklistRequest) Size() (n int)

func (*QueryBlacklistRequest) String

func (m *QueryBlacklistRequest) String() string

func (*QueryBlacklistRequest) Unmarshal

func (m *QueryBlacklistRequest) Unmarshal(dAtA []byte) error

func (*QueryBlacklistRequest) XXX_DiscardUnknown

func (m *QueryBlacklistRequest) XXX_DiscardUnknown()

func (*QueryBlacklistRequest) XXX_Marshal

func (m *QueryBlacklistRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlacklistRequest) XXX_Merge

func (m *QueryBlacklistRequest) XXX_Merge(src proto.Message)

func (*QueryBlacklistRequest) XXX_Size

func (m *QueryBlacklistRequest) XXX_Size() int

func (*QueryBlacklistRequest) XXX_Unmarshal

func (m *QueryBlacklistRequest) XXX_Unmarshal(b []byte) error

type QueryBlacklistResponse

type QueryBlacklistResponse struct {
	// blacklisted_accounts defines the list of blacklisted accounts.
	BlacklistedAccounts []string `protobuf:"bytes,1,rep,name=blacklisted_accounts,json=blacklistedAccounts,proto3" json:"blacklisted_accounts,omitempty"`
}

QueryBlacklistResponse is response type for the Query/Blacklist RPC method.

func (*QueryBlacklistResponse) Descriptor

func (*QueryBlacklistResponse) Descriptor() ([]byte, []int)

func (*QueryBlacklistResponse) GetBlacklistedAccounts

func (m *QueryBlacklistResponse) GetBlacklistedAccounts() []string

func (*QueryBlacklistResponse) Marshal

func (m *QueryBlacklistResponse) Marshal() (dAtA []byte, err error)

func (*QueryBlacklistResponse) MarshalTo

func (m *QueryBlacklistResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlacklistResponse) MarshalToSizedBuffer

func (m *QueryBlacklistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlacklistResponse) ProtoMessage

func (*QueryBlacklistResponse) ProtoMessage()

func (*QueryBlacklistResponse) Reset

func (m *QueryBlacklistResponse) Reset()

func (*QueryBlacklistResponse) Size

func (m *QueryBlacklistResponse) Size() (n int)

func (*QueryBlacklistResponse) String

func (m *QueryBlacklistResponse) String() string

func (*QueryBlacklistResponse) Unmarshal

func (m *QueryBlacklistResponse) Unmarshal(dAtA []byte) error

func (*QueryBlacklistResponse) XXX_DiscardUnknown

func (m *QueryBlacklistResponse) XXX_DiscardUnknown()

func (*QueryBlacklistResponse) XXX_Marshal

func (m *QueryBlacklistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlacklistResponse) XXX_Merge

func (m *QueryBlacklistResponse) XXX_Merge(src proto.Message)

func (*QueryBlacklistResponse) XXX_Size

func (m *QueryBlacklistResponse) XXX_Size() int

func (*QueryBlacklistResponse) XXX_Unmarshal

func (m *QueryBlacklistResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Blacklist queries the blacklisted accounts.
	Blacklist(ctx context.Context, in *QueryBlacklistRequest, opts ...grpc.CallOption) (*QueryBlacklistResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Blacklist queries the blacklisted accounts.
	Blacklist(context.Context, *QueryBlacklistRequest) (*QueryBlacklistResponse, 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) AddBlacklistAccounts

func (*UnimplementedMsgServer) RemoveBlacklistAccounts

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Blacklist

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL