Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- 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 VouchedKey(vouched sdk.AccAddress) []byte
- func VoucherKey(voucher, vouched sdk.AccAddress) []byte
- func VoucherPrefixKey(voucher sdk.AccAddress) []byte
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgVouch
- func (*MsgVouch) Descriptor() ([]byte, []int)
- func (m *MsgVouch) GetComment() string
- func (msg MsgVouch) GetSignBytes() []byte
- func (msg MsgVouch) GetSigners() []sdk.AccAddress
- func (m *MsgVouch) GetVouched() string
- func (m *MsgVouch) GetVoucher() string
- func (m *MsgVouch) Marshal() (dAtA []byte, err error)
- func (m *MsgVouch) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVouch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVouch) ProtoMessage()
- func (m *MsgVouch) Reset()
- func (msg MsgVouch) Route() string
- func (m *MsgVouch) Size() (n int)
- func (m *MsgVouch) String() string
- func (msg MsgVouch) Type() string
- func (m *MsgVouch) Unmarshal(dAtA []byte) error
- func (msg MsgVouch) ValidateBasic() error
- func (m *MsgVouch) XXX_DiscardUnknown()
- func (m *MsgVouch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVouch) XXX_Merge(src proto.Message)
- func (m *MsgVouch) XXX_Size() int
- func (m *MsgVouch) XXX_Unmarshal(b []byte) error
- type MsgVouchResponse
- func (*MsgVouchResponse) Descriptor() ([]byte, []int)
- func (m *MsgVouchResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVouchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVouchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVouchResponse) ProtoMessage()
- func (m *MsgVouchResponse) Reset()
- func (m *MsgVouchResponse) Size() (n int)
- func (m *MsgVouchResponse) String() string
- func (m *MsgVouchResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVouchResponse) XXX_DiscardUnknown()
- func (m *MsgVouchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVouchResponse) XXX_Merge(src proto.Message)
- func (m *MsgVouchResponse) XXX_Size() int
- func (m *MsgVouchResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetThresholdAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) GetVouchCount() uint32
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type Vouch
- func (*Vouch) Descriptor() ([]byte, []int)
- func (m *Vouch) GetComment() string
- func (m *Vouch) GetVouched() string
- func (m *Vouch) GetVoucher() string
- func (m *Vouch) Marshal() (dAtA []byte, err error)
- func (m *Vouch) MarshalTo(dAtA []byte) (int, error)
- func (m *Vouch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Vouch) ProtoMessage()
- func (m *Vouch) Reset()
- func (m *Vouch) Size() (n int)
- func (m *Vouch) String() string
- func (m *Vouch) Unmarshal(dAtA []byte) error
- func (m *Vouch) XXX_DiscardUnknown()
- func (m *Vouch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vouch) XXX_Merge(src proto.Message)
- func (m *Vouch) XXX_Size() int
- func (m *Vouch) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeVouch = "vouch" AttributeValueCategory = ModuleName )
user module event types
const ( // ModuleName is the name of the module ModuleName = "user" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierKey to be used for querierer msgs QuerierKey = ModuleName )
const ( DefaultParamspace string = ModuleName DefaultVouchCount uint32 = 3 )
Default parameter namespace
const (
TypeMsgVouch = "user_vouch"
)
msg types
Variables ¶
var ( ErrPostNotFound = sdkerrors.Register(ModuleName, 1, "Post not found") ErrAlreadyVoted = sdkerrors.Register(ModuleName, 2, "Already voted") )
You can see how they are constructed below:
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 ( // KeyPrefixVoucher 0x00 | voucher | vouched -> Vouch KeyPrefixVoucher = []byte{0x00} // KeyPrefixVouched 0x01 | vouched -> Vouch KeyPrefixVouched = []byte{0x01} )
var ( KeyThresholdAmount = []byte("ThresholdAmount") KeyVouchCount = []byte("VouchCount") )
Parameter store keys
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 ( ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUser = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group") )
var (
DefaultThresholdAmount sdk.Coins = sdk.NewCoins(sdk.NewInt64Coin(curatingtypes.DefaultStakeDenom, 1000000))
)
Default vars
var ( // ModuleCdc references the global x/curating module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func RegisterInterfaces ¶ added in v0.2.5
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the curating module interfaces to protobuf Any.
func RegisterMsgServer ¶ added in v0.2.5
func RegisterQueryHandler ¶ added in v0.2.5
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.2.5
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 ¶ added in v0.2.5
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 ¶ added in v0.2.5
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.2.5
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func VouchedKey ¶ added in v0.2.4
func VouchedKey(vouched sdk.AccAddress) []byte
VouchedKey gets the key for a vouched address
func VoucherKey ¶ added in v0.2.4
func VoucherKey(voucher, vouched sdk.AccAddress) []byte
VoucherKey gets the key four voucher | vouched
func VoucherPrefixKey ¶ added in v0.2.4
func VoucherPrefixKey(voucher sdk.AccAddress) []byte
VoucherPrefixKey gets the key for a voucher
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool)) GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, authtypes.ModuleAccountI) }
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SetBalances(ctx sdk.Context, addr sdk.AccAddress, balances sdk.Coins) error LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
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"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState - default GenesisState
func (*GenesisState) Descriptor ¶ added in v0.2.5
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v0.2.5
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶ added in v0.2.5
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.2.5
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.2.5
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.2.5
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.2.5
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.2.5
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.2.5
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.2.5
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v0.2.5
func (gs GenesisState) Validate() error
Validate validates the x/user genesis parameters
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.2.5
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.2.5
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.2.5
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.2.5
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.2.5
type MsgClient interface { // Vouch defines a method for vouching for a user. Vouch(ctx context.Context, in *MsgVouch, opts ...grpc.CallOption) (*MsgVouchResponse, 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 ¶ added in v0.2.5
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.2.5
type MsgServer interface { // Vouch defines a method for vouching for a user. Vouch(context.Context, *MsgVouch) (*MsgVouchResponse, error) }
MsgServer is the server API for Msg service.
type MsgVouch ¶ added in v0.2.4
type MsgVouch struct { Voucher string `protobuf:"bytes,1,opt,name=voucher,proto3" json:"voucher" yaml:"voucher"` Vouched string `protobuf:"bytes,2,opt,name=vouched,proto3" json:"vouched" yaml:"vouched"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty" yaml:"comment"` }
func NewMsgVouch ¶ added in v0.2.4
func NewMsgVouch( voucher sdk.AccAddress, vouched sdk.AccAddress, comment string, ) MsgVouch
NewMsgVouch returns a new instance of MsgVouch
func (*MsgVouch) Descriptor ¶ added in v0.2.4
func (*MsgVouch) GetComment ¶ added in v0.2.4
func (MsgVouch) GetSignBytes ¶ added in v0.2.4
GetSignBytes gets the bytes for the message signer to sign on
func (MsgVouch) GetSigners ¶ added in v0.2.4
func (msg MsgVouch) GetSigners() []sdk.AccAddress
GetSigners returns the signers need to sign the msg
func (*MsgVouch) GetVouched ¶ added in v0.2.4
func (*MsgVouch) GetVoucher ¶ added in v0.2.4
func (*MsgVouch) MarshalToSizedBuffer ¶ added in v0.2.4
func (*MsgVouch) ProtoMessage ¶ added in v0.2.4
func (*MsgVouch) ProtoMessage()
func (MsgVouch) ValidateBasic ¶ added in v0.2.4
ValidateBasic validity check for the AnteHandler
func (*MsgVouch) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *MsgVouch) XXX_DiscardUnknown()
func (*MsgVouch) XXX_Marshal ¶ added in v0.2.4
func (*MsgVouch) XXX_Unmarshal ¶ added in v0.2.4
type MsgVouchResponse ¶ added in v0.2.5
type MsgVouchResponse struct { }
func (*MsgVouchResponse) Descriptor ¶ added in v0.2.5
func (*MsgVouchResponse) Descriptor() ([]byte, []int)
func (*MsgVouchResponse) Marshal ¶ added in v0.2.5
func (m *MsgVouchResponse) Marshal() (dAtA []byte, err error)
func (*MsgVouchResponse) MarshalTo ¶ added in v0.2.5
func (m *MsgVouchResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgVouchResponse) MarshalToSizedBuffer ¶ added in v0.2.5
func (m *MsgVouchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVouchResponse) ProtoMessage ¶ added in v0.2.5
func (*MsgVouchResponse) ProtoMessage()
func (*MsgVouchResponse) Reset ¶ added in v0.2.5
func (m *MsgVouchResponse) Reset()
func (*MsgVouchResponse) Size ¶ added in v0.2.5
func (m *MsgVouchResponse) Size() (n int)
func (*MsgVouchResponse) String ¶ added in v0.2.5
func (m *MsgVouchResponse) String() string
func (*MsgVouchResponse) Unmarshal ¶ added in v0.2.5
func (m *MsgVouchResponse) Unmarshal(dAtA []byte) error
func (*MsgVouchResponse) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *MsgVouchResponse) XXX_DiscardUnknown()
func (*MsgVouchResponse) XXX_Marshal ¶ added in v0.2.5
func (m *MsgVouchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVouchResponse) XXX_Merge ¶ added in v0.2.5
func (m *MsgVouchResponse) XXX_Merge(src proto.Message)
func (*MsgVouchResponse) XXX_Size ¶ added in v0.2.5
func (m *MsgVouchResponse) XXX_Size() int
func (*MsgVouchResponse) XXX_Unmarshal ¶ added in v0.2.5
func (m *MsgVouchResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { ThresholdAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 174-byte string literal not displayed */ VouchCount uint32 `protobuf:"varint,2,opt,name=vouch_count,json=vouchCount,proto3" json:"vouch_count,omitempty" yaml:"vouch_count"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) Descriptor ¶ added in v0.2.5
func (*Params) GetThresholdAmount ¶ added in v0.2.5
func (m *Params) GetThresholdAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) GetVouchCount ¶ added in v0.2.5
func (*Params) MarshalToSizedBuffer ¶ added in v0.2.5
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.2.5
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.2.5
func (*Params) XXX_Unmarshal ¶ added in v0.2.5
type QueryClient ¶ added in v0.2.5
type QueryClient interface {
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 ¶ added in v0.2.5
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.2.5
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶ added in v0.2.5
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.2.5
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.2.5
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.2.5
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.2.5
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.2.5
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.2.5
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.2.5
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.2.5
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.2.5
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.2.5
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.2.5
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.2.5
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.2.5
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶ added in v0.2.5
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.2.5
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.2.5
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.2.5
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.2.5
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.2.5
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.2.5
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.2.5
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.2.5
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.2.5
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.2.5
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.2.5
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.2.5
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.2.5
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.2.5
type QueryServer interface {
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v0.2.5
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Vouch ¶ added in v0.2.5
func (*UnimplementedMsgServer) Vouch(ctx context.Context, req *MsgVouch) (*MsgVouchResponse, error)
type UnimplementedQueryServer ¶ added in v0.2.5
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.2.5
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type Vouch ¶ added in v0.2.4
type Vouch struct { Voucher string `protobuf:"bytes,1,opt,name=voucher,proto3" json:"voucher,omitempty" yaml:"voucher"` Vouched string `protobuf:"bytes,2,opt,name=vouched,proto3" json:"vouched,omitempty" yaml:"vouched"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty" yaml:"comment"` }
func NewVouch ¶ added in v0.2.4
func NewVouch(voucher, vouched sdk.AccAddress, comment string) Vouch
NewVouch returns a new instance of the Vouch object
func (*Vouch) Descriptor ¶ added in v0.2.4
func (*Vouch) GetComment ¶ added in v0.2.4
func (*Vouch) GetVouched ¶ added in v0.2.4
func (*Vouch) GetVoucher ¶ added in v0.2.4
func (*Vouch) MarshalToSizedBuffer ¶ added in v0.2.4
func (*Vouch) ProtoMessage ¶ added in v0.2.4
func (*Vouch) ProtoMessage()
func (*Vouch) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *Vouch) XXX_DiscardUnknown()