Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetReferralByAddrIndexKey(addr sdk.AccAddress) []byte
- func GetReferralByCodeIndexKey(code string) []byte
- func GetReferralKey(referralID uint64) []byte
- func GetRevenueKey(revenueID uint64) []byte
- func LengthPrefixString(s string) []byte
- func ParamKeyTable() paramstypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLastReferralId() uint64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetReferrals() []Referral
- func (m *GenesisState) GetRevenues() []Revenue
- 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 MsgAddReferral
- func (*MsgAddReferral) Descriptor() ([]byte, []int)
- func (m *MsgAddReferral) GetCode() string
- func (m *MsgAddReferral) GetSender() string
- func (msg *MsgAddReferral) GetSignBytes() []byte
- func (msg *MsgAddReferral) GetSigners() []sdk.AccAddress
- func (m *MsgAddReferral) Marshal() (dAtA []byte, err error)
- func (m *MsgAddReferral) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddReferral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddReferral) ProtoMessage()
- func (m *MsgAddReferral) Reset()
- func (msg *MsgAddReferral) Route() string
- func (m *MsgAddReferral) Size() (n int)
- func (m *MsgAddReferral) String() string
- func (msg *MsgAddReferral) Type() string
- func (m *MsgAddReferral) Unmarshal(dAtA []byte) error
- func (msg *MsgAddReferral) ValidateBasic() error
- func (m *MsgAddReferral) XXX_DiscardUnknown()
- func (m *MsgAddReferral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddReferral) XXX_Merge(src proto.Message)
- func (m *MsgAddReferral) XXX_Size() int
- func (m *MsgAddReferral) XXX_Unmarshal(b []byte) error
- type MsgAddReferralResponse
- func (*MsgAddReferralResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddReferralResponse) GetReferral() Referral
- func (m *MsgAddReferralResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddReferralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddReferralResponse) ProtoMessage()
- func (m *MsgAddReferralResponse) Reset()
- func (m *MsgAddReferralResponse) Size() (n int)
- func (m *MsgAddReferralResponse) String() string
- func (m *MsgAddReferralResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddReferralResponse) XXX_DiscardUnknown()
- func (m *MsgAddReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddReferralResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddReferralResponse) XXX_Size() int
- func (m *MsgAddReferralResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgSetReferral
- func (*MsgSetReferral) Descriptor() ([]byte, []int)
- func (m *MsgSetReferral) GetParent() string
- func (m *MsgSetReferral) GetSender() string
- func (msg *MsgSetReferral) GetSignBytes() []byte
- func (msg *MsgSetReferral) GetSigners() []sdk.AccAddress
- func (m *MsgSetReferral) Marshal() (dAtA []byte, err error)
- func (m *MsgSetReferral) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetReferral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetReferral) ProtoMessage()
- func (m *MsgSetReferral) Reset()
- func (msg *MsgSetReferral) Route() string
- func (m *MsgSetReferral) Size() (n int)
- func (m *MsgSetReferral) String() string
- func (msg *MsgSetReferral) Type() string
- func (m *MsgSetReferral) Unmarshal(dAtA []byte) error
- func (msg *MsgSetReferral) ValidateBasic() error
- func (m *MsgSetReferral) XXX_DiscardUnknown()
- func (m *MsgSetReferral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetReferral) XXX_Merge(src proto.Message)
- func (m *MsgSetReferral) XXX_Size() int
- func (m *MsgSetReferral) XXX_Unmarshal(b []byte) error
- type MsgSetReferralResponse
- func (*MsgSetReferralResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetReferralResponse) GetReferral() Referral
- func (m *MsgSetReferralResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetReferralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetReferralResponse) ProtoMessage()
- func (m *MsgSetReferralResponse) Reset()
- func (m *MsgSetReferralResponse) Size() (n int)
- func (m *MsgSetReferralResponse) String() string
- func (m *MsgSetReferralResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetReferralResponse) XXX_DiscardUnknown()
- func (m *MsgSetReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetReferralResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetReferralResponse) XXX_Size() int
- func (m *MsgSetReferralResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetFeeCollectorAddress() string
- 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 (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (params *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (params *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) 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 QueryReferralByAddrRequest
- func (*QueryReferralByAddrRequest) Descriptor() ([]byte, []int)
- func (m *QueryReferralByAddrRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralByAddrRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralByAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralByAddrRequest) ProtoMessage()
- func (m *QueryReferralByAddrRequest) Reset()
- func (m *QueryReferralByAddrRequest) Size() (n int)
- func (m *QueryReferralByAddrRequest) String() string
- func (m *QueryReferralByAddrRequest) Unmarshal(dAtA []byte) error
- func (m *QueryReferralByAddrRequest) XXX_DiscardUnknown()
- func (m *QueryReferralByAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralByAddrRequest) XXX_Merge(src proto.Message)
- func (m *QueryReferralByAddrRequest) XXX_Size() int
- func (m *QueryReferralByAddrRequest) XXX_Unmarshal(b []byte) error
- type QueryReferralByCodeRequest
- func (*QueryReferralByCodeRequest) Descriptor() ([]byte, []int)
- func (m *QueryReferralByCodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralByCodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralByCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralByCodeRequest) ProtoMessage()
- func (m *QueryReferralByCodeRequest) Reset()
- func (m *QueryReferralByCodeRequest) Size() (n int)
- func (m *QueryReferralByCodeRequest) String() string
- func (m *QueryReferralByCodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryReferralByCodeRequest) XXX_DiscardUnknown()
- func (m *QueryReferralByCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralByCodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryReferralByCodeRequest) XXX_Size() int
- func (m *QueryReferralByCodeRequest) XXX_Unmarshal(b []byte) error
- type QueryReferralRequest
- func (*QueryReferralRequest) Descriptor() ([]byte, []int)
- func (m *QueryReferralRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralRequest) ProtoMessage()
- func (m *QueryReferralRequest) Reset()
- func (m *QueryReferralRequest) Size() (n int)
- func (m *QueryReferralRequest) String() string
- func (m *QueryReferralRequest) Unmarshal(dAtA []byte) error
- func (m *QueryReferralRequest) XXX_DiscardUnknown()
- func (m *QueryReferralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralRequest) XXX_Merge(src proto.Message)
- func (m *QueryReferralRequest) XXX_Size() int
- func (m *QueryReferralRequest) XXX_Unmarshal(b []byte) error
- type QueryReferralResponse
- func (*QueryReferralResponse) Descriptor() ([]byte, []int)
- func (m *QueryReferralResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralResponse) ProtoMessage()
- func (m *QueryReferralResponse) Reset()
- func (m *QueryReferralResponse) Size() (n int)
- func (m *QueryReferralResponse) String() string
- func (m *QueryReferralResponse) Unmarshal(dAtA []byte) error
- func (m *QueryReferralResponse) XXX_DiscardUnknown()
- func (m *QueryReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralResponse) XXX_Merge(src proto.Message)
- func (m *QueryReferralResponse) XXX_Size() int
- func (m *QueryReferralResponse) XXX_Unmarshal(b []byte) error
- type QueryReferralsRequest
- func (*QueryReferralsRequest) Descriptor() ([]byte, []int)
- func (m *QueryReferralsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralsRequest) ProtoMessage()
- func (m *QueryReferralsRequest) Reset()
- func (m *QueryReferralsRequest) Size() (n int)
- func (m *QueryReferralsRequest) String() string
- func (m *QueryReferralsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryReferralsRequest) XXX_DiscardUnknown()
- func (m *QueryReferralsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralsRequest) XXX_Merge(src proto.Message)
- func (m *QueryReferralsRequest) XXX_Size() int
- func (m *QueryReferralsRequest) XXX_Unmarshal(b []byte) error
- type QueryReferralsResponse
- func (*QueryReferralsResponse) Descriptor() ([]byte, []int)
- func (m *QueryReferralsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryReferralsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReferralsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReferralsResponse) ProtoMessage()
- func (m *QueryReferralsResponse) Reset()
- func (m *QueryReferralsResponse) Size() (n int)
- func (m *QueryReferralsResponse) String() string
- func (m *QueryReferralsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryReferralsResponse) XXX_DiscardUnknown()
- func (m *QueryReferralsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReferralsResponse) XXX_Merge(src proto.Message)
- func (m *QueryReferralsResponse) XXX_Size() int
- func (m *QueryReferralsResponse) XXX_Unmarshal(b []byte) error
- type QueryRevenuesRequest
- func (*QueryRevenuesRequest) Descriptor() ([]byte, []int)
- func (m *QueryRevenuesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRevenuesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRevenuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRevenuesRequest) ProtoMessage()
- func (m *QueryRevenuesRequest) Reset()
- func (m *QueryRevenuesRequest) Size() (n int)
- func (m *QueryRevenuesRequest) String() string
- func (m *QueryRevenuesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRevenuesRequest) XXX_DiscardUnknown()
- func (m *QueryRevenuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRevenuesRequest) XXX_Merge(src proto.Message)
- func (m *QueryRevenuesRequest) XXX_Size() int
- func (m *QueryRevenuesRequest) XXX_Unmarshal(b []byte) error
- type QueryRevenuesResponse
- func (*QueryRevenuesResponse) Descriptor() ([]byte, []int)
- func (m *QueryRevenuesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRevenuesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRevenuesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRevenuesResponse) ProtoMessage()
- func (m *QueryRevenuesResponse) Reset()
- func (m *QueryRevenuesResponse) Size() (n int)
- func (m *QueryRevenuesResponse) String() string
- func (m *QueryRevenuesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRevenuesResponse) XXX_DiscardUnknown()
- func (m *QueryRevenuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRevenuesResponse) XXX_Merge(src proto.Message)
- func (m *QueryRevenuesResponse) XXX_Size() int
- func (m *QueryRevenuesResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Referral
- func (*Referral) Descriptor() ([]byte, []int)
- func (m *Referral) Marshal() (dAtA []byte, err error)
- func (m *Referral) MarshalTo(dAtA []byte) (int, error)
- func (m *Referral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Referral) ProtoMessage()
- func (m *Referral) Reset()
- func (m *Referral) Size() (n int)
- func (m *Referral) String() string
- func (m *Referral) Unmarshal(dAtA []byte) error
- func (m *Referral) XXX_DiscardUnknown()
- func (m *Referral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Referral) XXX_Merge(src proto.Message)
- func (m *Referral) XXX_Size() int
- func (m *Referral) XXX_Unmarshal(b []byte) error
- type Revenue
- func (*Revenue) Descriptor() ([]byte, []int)
- func (m *Revenue) Marshal() (dAtA []byte, err error)
- func (m *Revenue) MarshalTo(dAtA []byte) (int, error)
- func (m *Revenue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Revenue) ProtoMessage()
- func (m *Revenue) Reset()
- func (m *Revenue) Size() (n int)
- func (m *Revenue) String() string
- func (m *Revenue) Unmarshal(dAtA []byte) error
- func (m *Revenue) XXX_DiscardUnknown()
- func (m *Revenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Revenue) XXX_Merge(src proto.Message)
- func (m *Revenue) XXX_Size() int
- func (m *Revenue) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Referral(ctx context.Context, req *QueryReferralRequest) (*QueryReferralResponse, error)
- func (*UnimplementedQueryServer) ReferralByAddr(ctx context.Context, req *QueryReferralByAddrRequest) (*QueryReferralResponse, error)
- func (*UnimplementedQueryServer) ReferralByCode(ctx context.Context, req *QueryReferralByCodeRequest) (*QueryReferralResponse, error)
- func (*UnimplementedQueryServer) Referrals(ctx context.Context, req *QueryReferralsRequest) (*QueryReferralsResponse, error)
- func (*UnimplementedQueryServer) Revenues(ctx context.Context, req *QueryRevenuesRequest) (*QueryRevenuesResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "referral" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_referral" )
const ( TypeMsgAddReferral = "add_referral" TypeMsgSetReferral = "set_referral" )
const ( //PoolReserveAddressPrefix = "PoolReserveAddress" //PairEscrowAddressPrefix = "PairEscrowAddress" ModuleAddressNameSplitter = "|" AddressType = farmingtypes.AddressType32Bytes )
General constants
Variables ¶
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 ( LastReferralIDKey = []byte{0xdf} // key for the latest id ReferralKeyPrefix = []byte{0xde} ReferralByAddrIndexKeyPrefix = []byte{0xdd} ReferralByCodeIndexKeyPrefix = []byte{0xdc} RevenueKeyPrefix = []byte{0xdb} )
var ( DefaultMaxParentDepth = sdk.NewInt(3) DefaultSwapFeeRate = sdk.ZeroDec() DefaultSwapFeeReferralRate = sdk.NewDecWithPrec(3, 1) // 30% DefaultSwapFeeParentRate = sdk.NewDecWithPrec(3, 1) // 30% DefaultMinNumChildForTierSilver = sdk.NewInt(15) DefaultFeeCollectorAddress = farmingtypes.DeriveAddress(AddressType, ModuleName, "FeeCollector") )
var ( KeyMaxParentDepth = []byte("MaxParentDepth") KeySwapFeeRate = []byte("SwapFeeRate") KeySwapFeeReferralRate = []byte("SwapFeeReferralRate") KeySwapFeeParentRate = []byte("SwapFeeParentRate") KeyMinNumChildForTierSilver = []byte("MinNumChildForTierSilver") KeyFeeCollectorAddress = []byte("FeeCollectorAddress") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthReferral = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReferral = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupReferral = 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 (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetReferralByAddrIndexKey ¶ added in v0.0.4
func GetReferralByAddrIndexKey(addr sdk.AccAddress) []byte
func GetReferralByCodeIndexKey ¶ added in v0.0.4
func GetReferralKey ¶ added in v0.0.4
func GetRevenueKey ¶ added in v0.0.4
func LengthPrefixString ¶ added in v0.0.4
LengthPrefixString returns length-prefixed bytes representation of a string.
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶ added in v0.0.3
func RegisterQueryHandler ¶ added in v0.0.3
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.0.3
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.0.3
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.0.3
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.0.3
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, 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 MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶ added in v0.0.3
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` LastReferralId uint64 `protobuf:"varint,2,opt,name=last_referral_id,json=lastReferralId,proto3" json:"last_referral_id,omitempty"` Referrals []Referral `protobuf:"bytes,3,rep,name=referrals,proto3" json:"referrals"` Revenues []Revenue `protobuf:"bytes,4,rep,name=revenues,proto3" json:"revenues"` }
func DefaultGenesis ¶ added in v0.0.3
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func NewGenesisState ¶ added in v0.0.3
func NewGenesisState(params Params, lastReferralId uint64, referrals []Referral, revenues []Revenue) *GenesisState
func (*GenesisState) Descriptor ¶ added in v0.0.3
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetLastReferralId ¶ added in v0.0.4
func (m *GenesisState) GetLastReferralId() uint64
func (*GenesisState) GetParams ¶ added in v0.0.3
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetReferrals ¶ added in v0.0.4
func (m *GenesisState) GetReferrals() []Referral
func (*GenesisState) GetRevenues ¶ added in v0.0.4
func (m *GenesisState) GetRevenues() []Revenue
func (*GenesisState) Marshal ¶ added in v0.0.3
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.0.3
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.0.3
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.0.3
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.0.3
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.0.3
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.0.3
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v0.0.3
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.0.3
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.0.3
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAddReferral ¶ added in v0.0.4
type MsgAddReferral struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` }
func NewMsgAddReferral ¶ added in v0.0.4
func NewMsgAddReferral(creator sdk.AccAddress, code string) *MsgAddReferral
func (*MsgAddReferral) Descriptor ¶ added in v0.0.4
func (*MsgAddReferral) Descriptor() ([]byte, []int)
func (*MsgAddReferral) GetCode ¶ added in v0.0.4
func (m *MsgAddReferral) GetCode() string
func (*MsgAddReferral) GetSender ¶ added in v0.0.4
func (m *MsgAddReferral) GetSender() string
func (*MsgAddReferral) GetSignBytes ¶ added in v0.0.4
func (msg *MsgAddReferral) GetSignBytes() []byte
func (*MsgAddReferral) GetSigners ¶ added in v0.0.4
func (msg *MsgAddReferral) GetSigners() []sdk.AccAddress
func (*MsgAddReferral) Marshal ¶ added in v0.0.4
func (m *MsgAddReferral) Marshal() (dAtA []byte, err error)
func (*MsgAddReferral) MarshalTo ¶ added in v0.0.4
func (m *MsgAddReferral) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddReferral) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *MsgAddReferral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddReferral) ProtoMessage ¶ added in v0.0.4
func (*MsgAddReferral) ProtoMessage()
func (*MsgAddReferral) Reset ¶ added in v0.0.4
func (m *MsgAddReferral) Reset()
func (*MsgAddReferral) Route ¶ added in v0.0.4
func (msg *MsgAddReferral) Route() string
func (*MsgAddReferral) Size ¶ added in v0.0.4
func (m *MsgAddReferral) Size() (n int)
func (*MsgAddReferral) String ¶ added in v0.0.4
func (m *MsgAddReferral) String() string
func (*MsgAddReferral) Type ¶ added in v0.0.4
func (msg *MsgAddReferral) Type() string
func (*MsgAddReferral) Unmarshal ¶ added in v0.0.4
func (m *MsgAddReferral) Unmarshal(dAtA []byte) error
func (*MsgAddReferral) ValidateBasic ¶ added in v0.0.4
func (msg *MsgAddReferral) ValidateBasic() error
func (*MsgAddReferral) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *MsgAddReferral) XXX_DiscardUnknown()
func (*MsgAddReferral) XXX_Marshal ¶ added in v0.0.4
func (m *MsgAddReferral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddReferral) XXX_Merge ¶ added in v0.0.4
func (m *MsgAddReferral) XXX_Merge(src proto.Message)
func (*MsgAddReferral) XXX_Size ¶ added in v0.0.4
func (m *MsgAddReferral) XXX_Size() int
func (*MsgAddReferral) XXX_Unmarshal ¶ added in v0.0.4
func (m *MsgAddReferral) XXX_Unmarshal(b []byte) error
type MsgAddReferralResponse ¶ added in v0.0.4
type MsgAddReferralResponse struct {
Referral Referral `protobuf:"bytes,1,opt,name=referral,proto3" json:"referral"`
}
func (*MsgAddReferralResponse) Descriptor ¶ added in v0.0.4
func (*MsgAddReferralResponse) Descriptor() ([]byte, []int)
func (*MsgAddReferralResponse) GetReferral ¶ added in v0.0.4
func (m *MsgAddReferralResponse) GetReferral() Referral
func (*MsgAddReferralResponse) Marshal ¶ added in v0.0.4
func (m *MsgAddReferralResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddReferralResponse) MarshalTo ¶ added in v0.0.4
func (m *MsgAddReferralResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddReferralResponse) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *MsgAddReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddReferralResponse) ProtoMessage ¶ added in v0.0.4
func (*MsgAddReferralResponse) ProtoMessage()
func (*MsgAddReferralResponse) Reset ¶ added in v0.0.4
func (m *MsgAddReferralResponse) Reset()
func (*MsgAddReferralResponse) Size ¶ added in v0.0.4
func (m *MsgAddReferralResponse) Size() (n int)
func (*MsgAddReferralResponse) String ¶ added in v0.0.4
func (m *MsgAddReferralResponse) String() string
func (*MsgAddReferralResponse) Unmarshal ¶ added in v0.0.4
func (m *MsgAddReferralResponse) Unmarshal(dAtA []byte) error
func (*MsgAddReferralResponse) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *MsgAddReferralResponse) XXX_DiscardUnknown()
func (*MsgAddReferralResponse) XXX_Marshal ¶ added in v0.0.4
func (m *MsgAddReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddReferralResponse) XXX_Merge ¶ added in v0.0.4
func (m *MsgAddReferralResponse) XXX_Merge(src proto.Message)
func (*MsgAddReferralResponse) XXX_Size ¶ added in v0.0.4
func (m *MsgAddReferralResponse) XXX_Size() int
func (*MsgAddReferralResponse) XXX_Unmarshal ¶ added in v0.0.4
func (m *MsgAddReferralResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.0.3
type MsgClient interface { AddReferral(ctx context.Context, in *MsgAddReferral, opts ...grpc.CallOption) (*MsgAddReferralResponse, error) SetReferral(ctx context.Context, in *MsgSetReferral, opts ...grpc.CallOption) (*MsgSetReferralResponse, 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.0.3
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.0.3
type MsgServer interface { AddReferral(context.Context, *MsgAddReferral) (*MsgAddReferralResponse, error) SetReferral(context.Context, *MsgSetReferral) (*MsgSetReferralResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetReferral ¶ added in v0.0.4
type MsgSetReferral struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` }
func NewMsgSetReferral ¶ added in v0.0.4
func NewMsgSetReferral(sender sdk.AccAddress, parent string) *MsgSetReferral
func (*MsgSetReferral) Descriptor ¶ added in v0.0.4
func (*MsgSetReferral) Descriptor() ([]byte, []int)
func (*MsgSetReferral) GetParent ¶ added in v0.0.4
func (m *MsgSetReferral) GetParent() string
func (*MsgSetReferral) GetSender ¶ added in v0.0.4
func (m *MsgSetReferral) GetSender() string
func (*MsgSetReferral) GetSignBytes ¶ added in v0.0.4
func (msg *MsgSetReferral) GetSignBytes() []byte
func (*MsgSetReferral) GetSigners ¶ added in v0.0.4
func (msg *MsgSetReferral) GetSigners() []sdk.AccAddress
func (*MsgSetReferral) Marshal ¶ added in v0.0.4
func (m *MsgSetReferral) Marshal() (dAtA []byte, err error)
func (*MsgSetReferral) MarshalTo ¶ added in v0.0.4
func (m *MsgSetReferral) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetReferral) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *MsgSetReferral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetReferral) ProtoMessage ¶ added in v0.0.4
func (*MsgSetReferral) ProtoMessage()
func (*MsgSetReferral) Reset ¶ added in v0.0.4
func (m *MsgSetReferral) Reset()
func (*MsgSetReferral) Route ¶ added in v0.0.4
func (msg *MsgSetReferral) Route() string
func (*MsgSetReferral) Size ¶ added in v0.0.4
func (m *MsgSetReferral) Size() (n int)
func (*MsgSetReferral) String ¶ added in v0.0.4
func (m *MsgSetReferral) String() string
func (*MsgSetReferral) Type ¶ added in v0.0.4
func (msg *MsgSetReferral) Type() string
func (*MsgSetReferral) Unmarshal ¶ added in v0.0.4
func (m *MsgSetReferral) Unmarshal(dAtA []byte) error
func (*MsgSetReferral) ValidateBasic ¶ added in v0.0.4
func (msg *MsgSetReferral) ValidateBasic() error
func (*MsgSetReferral) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *MsgSetReferral) XXX_DiscardUnknown()
func (*MsgSetReferral) XXX_Marshal ¶ added in v0.0.4
func (m *MsgSetReferral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetReferral) XXX_Merge ¶ added in v0.0.4
func (m *MsgSetReferral) XXX_Merge(src proto.Message)
func (*MsgSetReferral) XXX_Size ¶ added in v0.0.4
func (m *MsgSetReferral) XXX_Size() int
func (*MsgSetReferral) XXX_Unmarshal ¶ added in v0.0.4
func (m *MsgSetReferral) XXX_Unmarshal(b []byte) error
type MsgSetReferralResponse ¶ added in v0.0.4
type MsgSetReferralResponse struct {
Referral Referral `protobuf:"bytes,1,opt,name=referral,proto3" json:"referral"`
}
func (*MsgSetReferralResponse) Descriptor ¶ added in v0.0.4
func (*MsgSetReferralResponse) Descriptor() ([]byte, []int)
func (*MsgSetReferralResponse) GetReferral ¶ added in v0.0.4
func (m *MsgSetReferralResponse) GetReferral() Referral
func (*MsgSetReferralResponse) Marshal ¶ added in v0.0.4
func (m *MsgSetReferralResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetReferralResponse) MarshalTo ¶ added in v0.0.4
func (m *MsgSetReferralResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetReferralResponse) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *MsgSetReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetReferralResponse) ProtoMessage ¶ added in v0.0.4
func (*MsgSetReferralResponse) ProtoMessage()
func (*MsgSetReferralResponse) Reset ¶ added in v0.0.4
func (m *MsgSetReferralResponse) Reset()
func (*MsgSetReferralResponse) Size ¶ added in v0.0.4
func (m *MsgSetReferralResponse) Size() (n int)
func (*MsgSetReferralResponse) String ¶ added in v0.0.4
func (m *MsgSetReferralResponse) String() string
func (*MsgSetReferralResponse) Unmarshal ¶ added in v0.0.4
func (m *MsgSetReferralResponse) Unmarshal(dAtA []byte) error
func (*MsgSetReferralResponse) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *MsgSetReferralResponse) XXX_DiscardUnknown()
func (*MsgSetReferralResponse) XXX_Marshal ¶ added in v0.0.4
func (m *MsgSetReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetReferralResponse) XXX_Merge ¶ added in v0.0.4
func (m *MsgSetReferralResponse) XXX_Merge(src proto.Message)
func (*MsgSetReferralResponse) XXX_Size ¶ added in v0.0.4
func (m *MsgSetReferralResponse) XXX_Size() int
func (*MsgSetReferralResponse) XXX_Unmarshal ¶ added in v0.0.4
func (m *MsgSetReferralResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.0.3
type Params struct { // uint32 max_parent_depth = 1; MaxParentDepth github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ SwapFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */ SwapFeeReferralRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ SwapFeeParentRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */ MinNumChildForTierSilver github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */ FeeCollectorAddress string `protobuf:"bytes,6,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` }
func DefaultParams ¶ added in v0.0.3
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.0.3
func (*Params) GetFeeCollectorAddress ¶ added in v0.0.4
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Params) ParamSetPairs ¶ added in v0.0.3
func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v0.0.3
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.3
func (*Params) XXX_Unmarshal ¶ added in v0.0.3
type QueryClient ¶ added in v0.0.3
type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Referrals(ctx context.Context, in *QueryReferralsRequest, opts ...grpc.CallOption) (*QueryReferralsResponse, error) Referral(ctx context.Context, in *QueryReferralRequest, opts ...grpc.CallOption) (*QueryReferralResponse, error) ReferralByAddr(ctx context.Context, in *QueryReferralByAddrRequest, opts ...grpc.CallOption) (*QueryReferralResponse, error) ReferralByCode(ctx context.Context, in *QueryReferralByCodeRequest, opts ...grpc.CallOption) (*QueryReferralResponse, error) Revenues(ctx context.Context, in *QueryRevenuesRequest, opts ...grpc.CallOption) (*QueryRevenuesResponse, 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.0.3
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.0.3
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶ added in v0.0.3
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.0.3
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.0.3
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.0.3
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.0.3
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶ added in v0.0.3
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.0.3
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.0.3
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.0.3
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryReferralByAddrRequest ¶ added in v0.0.4
type QueryReferralByAddrRequest struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
}
func (*QueryReferralByAddrRequest) Descriptor ¶ added in v0.0.4
func (*QueryReferralByAddrRequest) Descriptor() ([]byte, []int)
func (*QueryReferralByAddrRequest) Marshal ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) Marshal() (dAtA []byte, err error)
func (*QueryReferralByAddrRequest) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralByAddrRequest) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralByAddrRequest) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralByAddrRequest) ProtoMessage()
func (*QueryReferralByAddrRequest) Reset ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) Reset()
func (*QueryReferralByAddrRequest) Size ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) Size() (n int)
func (*QueryReferralByAddrRequest) String ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) String() string
func (*QueryReferralByAddrRequest) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) Unmarshal(dAtA []byte) error
func (*QueryReferralByAddrRequest) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) XXX_DiscardUnknown()
func (*QueryReferralByAddrRequest) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralByAddrRequest) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) XXX_Merge(src proto.Message)
func (*QueryReferralByAddrRequest) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) XXX_Size() int
func (*QueryReferralByAddrRequest) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralByAddrRequest) XXX_Unmarshal(b []byte) error
type QueryReferralByCodeRequest ¶ added in v0.0.4
type QueryReferralByCodeRequest struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (*QueryReferralByCodeRequest) Descriptor ¶ added in v0.0.4
func (*QueryReferralByCodeRequest) Descriptor() ([]byte, []int)
func (*QueryReferralByCodeRequest) Marshal ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryReferralByCodeRequest) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralByCodeRequest) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralByCodeRequest) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralByCodeRequest) ProtoMessage()
func (*QueryReferralByCodeRequest) Reset ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) Reset()
func (*QueryReferralByCodeRequest) Size ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) Size() (n int)
func (*QueryReferralByCodeRequest) String ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) String() string
func (*QueryReferralByCodeRequest) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryReferralByCodeRequest) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) XXX_DiscardUnknown()
func (*QueryReferralByCodeRequest) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralByCodeRequest) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) XXX_Merge(src proto.Message)
func (*QueryReferralByCodeRequest) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) XXX_Size() int
func (*QueryReferralByCodeRequest) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralByCodeRequest) XXX_Unmarshal(b []byte) error
type QueryReferralRequest ¶ added in v0.0.4
type QueryReferralRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryReferralRequest) Descriptor ¶ added in v0.0.4
func (*QueryReferralRequest) Descriptor() ([]byte, []int)
func (*QueryReferralRequest) Marshal ¶ added in v0.0.4
func (m *QueryReferralRequest) Marshal() (dAtA []byte, err error)
func (*QueryReferralRequest) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralRequest) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralRequest) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralRequest) ProtoMessage()
func (*QueryReferralRequest) Reset ¶ added in v0.0.4
func (m *QueryReferralRequest) Reset()
func (*QueryReferralRequest) Size ¶ added in v0.0.4
func (m *QueryReferralRequest) Size() (n int)
func (*QueryReferralRequest) String ¶ added in v0.0.4
func (m *QueryReferralRequest) String() string
func (*QueryReferralRequest) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralRequest) Unmarshal(dAtA []byte) error
func (*QueryReferralRequest) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralRequest) XXX_DiscardUnknown()
func (*QueryReferralRequest) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralRequest) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralRequest) XXX_Merge(src proto.Message)
func (*QueryReferralRequest) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralRequest) XXX_Size() int
func (*QueryReferralRequest) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralRequest) XXX_Unmarshal(b []byte) error
type QueryReferralResponse ¶ added in v0.0.4
type QueryReferralResponse struct {
Referral Referral `protobuf:"bytes,1,opt,name=referral,proto3" json:"referral"`
}
func (*QueryReferralResponse) Descriptor ¶ added in v0.0.4
func (*QueryReferralResponse) Descriptor() ([]byte, []int)
func (*QueryReferralResponse) Marshal ¶ added in v0.0.4
func (m *QueryReferralResponse) Marshal() (dAtA []byte, err error)
func (*QueryReferralResponse) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralResponse) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralResponse) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralResponse) ProtoMessage()
func (*QueryReferralResponse) Reset ¶ added in v0.0.4
func (m *QueryReferralResponse) Reset()
func (*QueryReferralResponse) Size ¶ added in v0.0.4
func (m *QueryReferralResponse) Size() (n int)
func (*QueryReferralResponse) String ¶ added in v0.0.4
func (m *QueryReferralResponse) String() string
func (*QueryReferralResponse) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralResponse) Unmarshal(dAtA []byte) error
func (*QueryReferralResponse) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralResponse) XXX_DiscardUnknown()
func (*QueryReferralResponse) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralResponse) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralResponse) XXX_Merge(src proto.Message)
func (*QueryReferralResponse) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralResponse) XXX_Size() int
func (*QueryReferralResponse) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralResponse) XXX_Unmarshal(b []byte) error
type QueryReferralsRequest ¶ added in v0.0.4
type QueryReferralsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryReferralsRequest) Descriptor ¶ added in v0.0.4
func (*QueryReferralsRequest) Descriptor() ([]byte, []int)
func (*QueryReferralsRequest) Marshal ¶ added in v0.0.4
func (m *QueryReferralsRequest) Marshal() (dAtA []byte, err error)
func (*QueryReferralsRequest) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralsRequest) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralsRequest) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralsRequest) ProtoMessage()
func (*QueryReferralsRequest) Reset ¶ added in v0.0.4
func (m *QueryReferralsRequest) Reset()
func (*QueryReferralsRequest) Size ¶ added in v0.0.4
func (m *QueryReferralsRequest) Size() (n int)
func (*QueryReferralsRequest) String ¶ added in v0.0.4
func (m *QueryReferralsRequest) String() string
func (*QueryReferralsRequest) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralsRequest) Unmarshal(dAtA []byte) error
func (*QueryReferralsRequest) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralsRequest) XXX_DiscardUnknown()
func (*QueryReferralsRequest) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralsRequest) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralsRequest) XXX_Merge(src proto.Message)
func (*QueryReferralsRequest) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralsRequest) XXX_Size() int
func (*QueryReferralsRequest) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralsRequest) XXX_Unmarshal(b []byte) error
type QueryReferralsResponse ¶ added in v0.0.4
type QueryReferralsResponse struct { Referrals []Referral `protobuf:"bytes,1,rep,name=referrals,proto3" json:"referrals"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryReferralsResponse) Descriptor ¶ added in v0.0.4
func (*QueryReferralsResponse) Descriptor() ([]byte, []int)
func (*QueryReferralsResponse) Marshal ¶ added in v0.0.4
func (m *QueryReferralsResponse) Marshal() (dAtA []byte, err error)
func (*QueryReferralsResponse) MarshalTo ¶ added in v0.0.4
func (m *QueryReferralsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryReferralsResponse) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryReferralsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReferralsResponse) ProtoMessage ¶ added in v0.0.4
func (*QueryReferralsResponse) ProtoMessage()
func (*QueryReferralsResponse) Reset ¶ added in v0.0.4
func (m *QueryReferralsResponse) Reset()
func (*QueryReferralsResponse) Size ¶ added in v0.0.4
func (m *QueryReferralsResponse) Size() (n int)
func (*QueryReferralsResponse) String ¶ added in v0.0.4
func (m *QueryReferralsResponse) String() string
func (*QueryReferralsResponse) Unmarshal ¶ added in v0.0.4
func (m *QueryReferralsResponse) Unmarshal(dAtA []byte) error
func (*QueryReferralsResponse) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryReferralsResponse) XXX_DiscardUnknown()
func (*QueryReferralsResponse) XXX_Marshal ¶ added in v0.0.4
func (m *QueryReferralsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReferralsResponse) XXX_Merge ¶ added in v0.0.4
func (m *QueryReferralsResponse) XXX_Merge(src proto.Message)
func (*QueryReferralsResponse) XXX_Size ¶ added in v0.0.4
func (m *QueryReferralsResponse) XXX_Size() int
func (*QueryReferralsResponse) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryReferralsResponse) XXX_Unmarshal(b []byte) error
type QueryRevenuesRequest ¶ added in v0.0.4
type QueryRevenuesRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryRevenuesRequest) Descriptor ¶ added in v0.0.4
func (*QueryRevenuesRequest) Descriptor() ([]byte, []int)
func (*QueryRevenuesRequest) Marshal ¶ added in v0.0.4
func (m *QueryRevenuesRequest) Marshal() (dAtA []byte, err error)
func (*QueryRevenuesRequest) MarshalTo ¶ added in v0.0.4
func (m *QueryRevenuesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRevenuesRequest) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryRevenuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRevenuesRequest) ProtoMessage ¶ added in v0.0.4
func (*QueryRevenuesRequest) ProtoMessage()
func (*QueryRevenuesRequest) Reset ¶ added in v0.0.4
func (m *QueryRevenuesRequest) Reset()
func (*QueryRevenuesRequest) Size ¶ added in v0.0.4
func (m *QueryRevenuesRequest) Size() (n int)
func (*QueryRevenuesRequest) String ¶ added in v0.0.4
func (m *QueryRevenuesRequest) String() string
func (*QueryRevenuesRequest) Unmarshal ¶ added in v0.0.4
func (m *QueryRevenuesRequest) Unmarshal(dAtA []byte) error
func (*QueryRevenuesRequest) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryRevenuesRequest) XXX_DiscardUnknown()
func (*QueryRevenuesRequest) XXX_Marshal ¶ added in v0.0.4
func (m *QueryRevenuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRevenuesRequest) XXX_Merge ¶ added in v0.0.4
func (m *QueryRevenuesRequest) XXX_Merge(src proto.Message)
func (*QueryRevenuesRequest) XXX_Size ¶ added in v0.0.4
func (m *QueryRevenuesRequest) XXX_Size() int
func (*QueryRevenuesRequest) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryRevenuesRequest) XXX_Unmarshal(b []byte) error
type QueryRevenuesResponse ¶ added in v0.0.4
type QueryRevenuesResponse struct { Revenues []Revenue `protobuf:"bytes,1,rep,name=revenues,proto3" json:"revenues"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryRevenuesResponse) Descriptor ¶ added in v0.0.4
func (*QueryRevenuesResponse) Descriptor() ([]byte, []int)
func (*QueryRevenuesResponse) Marshal ¶ added in v0.0.4
func (m *QueryRevenuesResponse) Marshal() (dAtA []byte, err error)
func (*QueryRevenuesResponse) MarshalTo ¶ added in v0.0.4
func (m *QueryRevenuesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRevenuesResponse) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *QueryRevenuesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRevenuesResponse) ProtoMessage ¶ added in v0.0.4
func (*QueryRevenuesResponse) ProtoMessage()
func (*QueryRevenuesResponse) Reset ¶ added in v0.0.4
func (m *QueryRevenuesResponse) Reset()
func (*QueryRevenuesResponse) Size ¶ added in v0.0.4
func (m *QueryRevenuesResponse) Size() (n int)
func (*QueryRevenuesResponse) String ¶ added in v0.0.4
func (m *QueryRevenuesResponse) String() string
func (*QueryRevenuesResponse) Unmarshal ¶ added in v0.0.4
func (m *QueryRevenuesResponse) Unmarshal(dAtA []byte) error
func (*QueryRevenuesResponse) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *QueryRevenuesResponse) XXX_DiscardUnknown()
func (*QueryRevenuesResponse) XXX_Marshal ¶ added in v0.0.4
func (m *QueryRevenuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRevenuesResponse) XXX_Merge ¶ added in v0.0.4
func (m *QueryRevenuesResponse) XXX_Merge(src proto.Message)
func (*QueryRevenuesResponse) XXX_Size ¶ added in v0.0.4
func (m *QueryRevenuesResponse) XXX_Size() int
func (*QueryRevenuesResponse) XXX_Unmarshal ¶ added in v0.0.4
func (m *QueryRevenuesResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.0.3
type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Referrals(context.Context, *QueryReferralsRequest) (*QueryReferralsResponse, error) Referral(context.Context, *QueryReferralRequest) (*QueryReferralResponse, error) ReferralByAddr(context.Context, *QueryReferralByAddrRequest) (*QueryReferralResponse, error) ReferralByCode(context.Context, *QueryReferralByCodeRequest) (*QueryReferralResponse, error) Revenues(context.Context, *QueryRevenuesRequest) (*QueryRevenuesResponse, error) }
QueryServer is the server API for Query service.
type Referral ¶ added in v0.0.4
type Referral struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"` Tier uint64 `protobuf:"varint,5,opt,name=tier,proto3" json:"tier,omitempty"` }
func NewReferral ¶ added in v0.0.4
func (*Referral) Descriptor ¶ added in v0.0.4
func (*Referral) MarshalToSizedBuffer ¶ added in v0.0.4
func (*Referral) ProtoMessage ¶ added in v0.0.4
func (*Referral) ProtoMessage()
func (*Referral) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *Referral) XXX_DiscardUnknown()
func (*Referral) XXX_Marshal ¶ added in v0.0.4
func (*Referral) XXX_Unmarshal ¶ added in v0.0.4
type Revenue ¶ added in v0.0.4
type Revenue struct { ReferralId uint64 `protobuf:"varint,1,opt,name=referral_id,json=referralId,proto3" json:"referral_id,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
func NewRevenue ¶ added in v0.0.4
func (*Revenue) Descriptor ¶ added in v0.0.4
func (*Revenue) MarshalToSizedBuffer ¶ added in v0.0.4
func (*Revenue) ProtoMessage ¶ added in v0.0.4
func (*Revenue) ProtoMessage()
func (*Revenue) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *Revenue) XXX_DiscardUnknown()
func (*Revenue) XXX_Marshal ¶ added in v0.0.4
func (*Revenue) XXX_Unmarshal ¶ added in v0.0.4
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddReferral ¶ added in v0.0.4
func (*UnimplementedMsgServer) AddReferral(ctx context.Context, req *MsgAddReferral) (*MsgAddReferralResponse, error)
func (*UnimplementedMsgServer) SetReferral ¶ added in v0.0.4
func (*UnimplementedMsgServer) SetReferral(ctx context.Context, req *MsgSetReferral) (*MsgSetReferralResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.0.3
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Referral ¶ added in v0.0.4
func (*UnimplementedQueryServer) Referral(ctx context.Context, req *QueryReferralRequest) (*QueryReferralResponse, error)
func (*UnimplementedQueryServer) ReferralByAddr ¶ added in v0.0.4
func (*UnimplementedQueryServer) ReferralByAddr(ctx context.Context, req *QueryReferralByAddrRequest) (*QueryReferralResponse, error)
func (*UnimplementedQueryServer) ReferralByCode ¶ added in v0.0.4
func (*UnimplementedQueryServer) ReferralByCode(ctx context.Context, req *QueryReferralByCodeRequest) (*QueryReferralResponse, error)
func (*UnimplementedQueryServer) Referrals ¶ added in v0.0.4
func (*UnimplementedQueryServer) Referrals(ctx context.Context, req *QueryReferralsRequest) (*QueryReferralsResponse, error)
func (*UnimplementedQueryServer) Revenues ¶ added in v0.0.4
func (*UnimplementedQueryServer) Revenues(ctx context.Context, req *QueryRevenuesRequest) (*QueryRevenuesResponse, error)