types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 28 Imported by: 3

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 = "rbank"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

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

DefaultIndex is the default capability global index

View Source
const TypeMsgAddDenom = "add_denom"

Variables

View Source
var (
	ErrDenomAlreadyExist     = sdkerrors.Register(ModuleName, 1, "denom already exist error")
	ErrAccAddrPrefixNotExist = sdkerrors.Register(ModuleName, 2, "acc addr prefix not exist error")
	ErrDenomNotMatched       = sdkerrors.Register(ModuleName, 3, "denom not matched error")
	ErrAddrPrefixNotMatched  = sdkerrors.Register(ModuleName, 4, "addr prefix not matched error")
	ErrValAddrPrefixNotExist = sdkerrors.Register(ModuleName, 5, "val addr prefix not exist error")
)

x/rbank module sentinel errors

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 (
	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 AccAddressPrefix = []byte{0x01}
View Source
var ValAddressPrefix = []byte{0x02}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

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 AddressPrefix

type AddressPrefix struct {
	Denom            string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	AccAddressPrefix string `protobuf:"bytes,2,opt,name=accAddressPrefix,proto3" json:"accAddressPrefix,omitempty"`
	ValAddressPrefix string `protobuf:"bytes,3,opt,name=valAddressPrefix,proto3" json:"valAddressPrefix,omitempty"`
}

func (*AddressPrefix) Descriptor

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

func (*AddressPrefix) GetAccAddressPrefix

func (m *AddressPrefix) GetAccAddressPrefix() string

func (*AddressPrefix) GetDenom

func (m *AddressPrefix) GetDenom() string

func (*AddressPrefix) GetValAddressPrefix

func (m *AddressPrefix) GetValAddressPrefix() string

func (*AddressPrefix) Marshal

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

func (*AddressPrefix) MarshalTo

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

func (*AddressPrefix) MarshalToSizedBuffer

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

func (*AddressPrefix) ProtoMessage

func (*AddressPrefix) ProtoMessage()

func (*AddressPrefix) Reset

func (m *AddressPrefix) Reset()

func (*AddressPrefix) Size

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

func (*AddressPrefix) String

func (m *AddressPrefix) String() string

func (*AddressPrefix) Unmarshal

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

func (*AddressPrefix) XXX_DiscardUnknown

func (m *AddressPrefix) XXX_DiscardUnknown()

func (*AddressPrefix) XXX_Marshal

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

func (*AddressPrefix) XXX_Merge

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

func (*AddressPrefix) XXX_Size

func (m *AddressPrefix) XXX_Size() int

func (*AddressPrefix) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
}

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState

type GenesisState struct {
	Params        Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AddressPrefix []*AddressPrefix `protobuf:"bytes,2,rep,name=addressPrefix,proto3" json:"addressPrefix,omitempty"`
}

GenesisState defines the rbank module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAddressPrefix

func (m *GenesisState) GetAddressPrefix() []*AddressPrefix

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 MsgAddDenom

type MsgAddDenom struct {
	Creator          string         `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AccAddressPrefix string         `protobuf:"bytes,2,opt,name=accAddressPrefix,proto3" json:"accAddressPrefix,omitempty"`
	ValAddressPrefix string         `protobuf:"bytes,3,opt,name=valAddressPrefix,proto3" json:"valAddressPrefix,omitempty"`
	Metadata         types.Metadata `protobuf:"bytes,4,opt,name=Metadata,proto3" json:"Metadata"`
}

func NewMsgAddDenom

func NewMsgAddDenom(creator string, accAddressPrefix, valAddressPrefix string, metadata xBankTypes.Metadata) *MsgAddDenom

func (*MsgAddDenom) Descriptor

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

func (*MsgAddDenom) GetAccAddressPrefix

func (m *MsgAddDenom) GetAccAddressPrefix() string

func (*MsgAddDenom) GetCreator

func (m *MsgAddDenom) GetCreator() string

func (*MsgAddDenom) GetMetadata

func (m *MsgAddDenom) GetMetadata() types.Metadata

func (*MsgAddDenom) GetSignBytes

func (msg *MsgAddDenom) GetSignBytes() []byte

func (*MsgAddDenom) GetSigners

func (msg *MsgAddDenom) GetSigners() []sdk.AccAddress

func (*MsgAddDenom) GetValAddressPrefix

func (m *MsgAddDenom) GetValAddressPrefix() string

func (*MsgAddDenom) Marshal

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

func (*MsgAddDenom) MarshalTo

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

func (*MsgAddDenom) MarshalToSizedBuffer

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

func (*MsgAddDenom) ProtoMessage

func (*MsgAddDenom) ProtoMessage()

func (*MsgAddDenom) Reset

func (m *MsgAddDenom) Reset()

func (*MsgAddDenom) Route

func (msg *MsgAddDenom) Route() string

func (*MsgAddDenom) Size

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

func (*MsgAddDenom) String

func (m *MsgAddDenom) String() string

func (*MsgAddDenom) Type

func (msg *MsgAddDenom) Type() string

func (*MsgAddDenom) Unmarshal

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

func (*MsgAddDenom) ValidateBasic

func (msg *MsgAddDenom) ValidateBasic() error

func (*MsgAddDenom) XXX_DiscardUnknown

func (m *MsgAddDenom) XXX_DiscardUnknown()

func (*MsgAddDenom) XXX_Marshal

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

func (*MsgAddDenom) XXX_Merge

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

func (*MsgAddDenom) XXX_Size

func (m *MsgAddDenom) XXX_Size() int

func (*MsgAddDenom) XXX_Unmarshal

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

type MsgAddDenomResponse

type MsgAddDenomResponse struct {
}

func (*MsgAddDenomResponse) Descriptor

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

func (*MsgAddDenomResponse) Marshal

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

func (*MsgAddDenomResponse) MarshalTo

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

func (*MsgAddDenomResponse) MarshalToSizedBuffer

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

func (*MsgAddDenomResponse) ProtoMessage

func (*MsgAddDenomResponse) ProtoMessage()

func (*MsgAddDenomResponse) Reset

func (m *MsgAddDenomResponse) Reset()

func (*MsgAddDenomResponse) Size

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

func (*MsgAddDenomResponse) String

func (m *MsgAddDenomResponse) String() string

func (*MsgAddDenomResponse) Unmarshal

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

func (*MsgAddDenomResponse) XXX_DiscardUnknown

func (m *MsgAddDenomResponse) XXX_DiscardUnknown()

func (*MsgAddDenomResponse) XXX_Marshal

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

func (*MsgAddDenomResponse) XXX_Merge

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

func (*MsgAddDenomResponse) XXX_Size

func (m *MsgAddDenomResponse) XXX_Size() int

func (*MsgAddDenomResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	AddDenom(ctx context.Context, in *MsgAddDenom, opts ...grpc.CallOption) (*MsgAddDenomResponse, 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 MsgServer

type MsgServer interface {
	AddDenom(context.Context, *MsgAddDenom) (*MsgAddDenomResponse, 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) 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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

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 QueryAddressPrefixRequest

type QueryAddressPrefixRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryAddressPrefixRequest) Descriptor

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

func (*QueryAddressPrefixRequest) GetDenom

func (m *QueryAddressPrefixRequest) GetDenom() string

func (*QueryAddressPrefixRequest) Marshal

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

func (*QueryAddressPrefixRequest) MarshalTo

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

func (*QueryAddressPrefixRequest) MarshalToSizedBuffer

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

func (*QueryAddressPrefixRequest) ProtoMessage

func (*QueryAddressPrefixRequest) ProtoMessage()

func (*QueryAddressPrefixRequest) Reset

func (m *QueryAddressPrefixRequest) Reset()

func (*QueryAddressPrefixRequest) Size

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

func (*QueryAddressPrefixRequest) String

func (m *QueryAddressPrefixRequest) String() string

func (*QueryAddressPrefixRequest) Unmarshal

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

func (*QueryAddressPrefixRequest) XXX_DiscardUnknown

func (m *QueryAddressPrefixRequest) XXX_DiscardUnknown()

func (*QueryAddressPrefixRequest) XXX_Marshal

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

func (*QueryAddressPrefixRequest) XXX_Merge

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

func (*QueryAddressPrefixRequest) XXX_Size

func (m *QueryAddressPrefixRequest) XXX_Size() int

func (*QueryAddressPrefixRequest) XXX_Unmarshal

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

type QueryAddressPrefixResponse

type QueryAddressPrefixResponse struct {
	AccAddressPrefix string `protobuf:"bytes,1,opt,name=accAddressPrefix,proto3" json:"accAddressPrefix,omitempty"`
	ValAddressPrefix string `protobuf:"bytes,2,opt,name=valAddressPrefix,proto3" json:"valAddressPrefix,omitempty"`
}

func (*QueryAddressPrefixResponse) Descriptor

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

func (*QueryAddressPrefixResponse) GetAccAddressPrefix

func (m *QueryAddressPrefixResponse) GetAccAddressPrefix() string

func (*QueryAddressPrefixResponse) GetValAddressPrefix

func (m *QueryAddressPrefixResponse) GetValAddressPrefix() string

func (*QueryAddressPrefixResponse) Marshal

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

func (*QueryAddressPrefixResponse) MarshalTo

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

func (*QueryAddressPrefixResponse) MarshalToSizedBuffer

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

func (*QueryAddressPrefixResponse) ProtoMessage

func (*QueryAddressPrefixResponse) ProtoMessage()

func (*QueryAddressPrefixResponse) Reset

func (m *QueryAddressPrefixResponse) Reset()

func (*QueryAddressPrefixResponse) Size

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

func (*QueryAddressPrefixResponse) String

func (m *QueryAddressPrefixResponse) String() string

func (*QueryAddressPrefixResponse) Unmarshal

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

func (*QueryAddressPrefixResponse) XXX_DiscardUnknown

func (m *QueryAddressPrefixResponse) XXX_DiscardUnknown()

func (*QueryAddressPrefixResponse) XXX_Marshal

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

func (*QueryAddressPrefixResponse) XXX_Merge

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

func (*QueryAddressPrefixResponse) XXX_Size

func (m *QueryAddressPrefixResponse) XXX_Size() int

func (*QueryAddressPrefixResponse) XXX_Unmarshal

func (m *QueryAddressPrefixResponse) 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)
	// Queries a list of AddressPrefix items.
	AddressPrefix(ctx context.Context, in *QueryAddressPrefixRequest, opts ...grpc.CallOption) (*QueryAddressPrefixResponse, 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)
	// Queries a list of AddressPrefix items.
	AddressPrefix(context.Context, *QueryAddressPrefixRequest) (*QueryAddressPrefixResponse, error)
}

QueryServer is the server API for Query service.

type SudoKeeper

type SudoKeeper interface {
	IsAdmin(ctx sdk.Context, address string) bool
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddDenom

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AddressPrefix

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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