types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "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"
)
View Source
const (
	TypeMsgAddReferral = "add_referral"
	TypeMsgSetReferral = "set_referral"
)
View Source
const (
	//PoolReserveAddressPrefix  = "PoolReserveAddress"
	//PairEscrowAddressPrefix   = "PairEscrowAddress"
	ModuleAddressNameSplitter = "|"
	AddressType               = farmingtypes.AddressType32Bytes
)

General constants

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	LastReferralIDKey = []byte{0xdf} // key for the latest id

	ReferralKeyPrefix            = []byte{0xde}
	ReferralByAddrIndexKeyPrefix = []byte{0xdd}
	ReferralByCodeIndexKeyPrefix = []byte{0xdc}
	RevenueKeyPrefix             = []byte{0xdb}
)
View Source
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")
)
View Source
var (
	KeyMaxParentDepth           = []byte("MaxParentDepth")
	KeySwapFeeRate              = []byte("SwapFeeRate")
	KeySwapFeeReferralRate      = []byte("SwapFeeReferralRate")
	KeySwapFeeParentRate        = []byte("SwapFeeParentRate")
	KeyMinNumChildForTierSilver = []byte("MinNumChildForTierSilver")
	KeyFeeCollectorAddress      = []byte("FeeCollectorAddress")
)
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 (
	ErrInvalidLengthReferral        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowReferral          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupReferral = 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 (
	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 GetReferralByCodeIndexKey(code string) []byte

func GetReferralKey added in v0.0.4

func GetReferralKey(referralID uint64) []byte

func GetRevenueKey added in v0.0.4

func GetRevenueKey(revenueID uint64) []byte

func LengthPrefixString added in v0.0.4

func LengthPrefixString(s string) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.0.3

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 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) Descriptor() ([]byte, []int)

func (*Params) GetFeeCollectorAddress added in v0.0.4

func (m *Params) GetFeeCollectorAddress() string

func (*Params) Marshal added in v0.0.3

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

func (*Params) MarshalTo added in v0.0.3

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

func (*Params) MarshalToSizedBuffer added in v0.0.3

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

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) Reset added in v0.0.3

func (m *Params) Reset()

func (*Params) Size added in v0.0.3

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

func (*Params) String added in v0.0.3

func (params *Params) String() string

func (*Params) Unmarshal added in v0.0.3

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

func (*Params) Validate added in v0.0.3

func (params *Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v0.0.3

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.3

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

func (*Params) XXX_Merge added in v0.0.3

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

func (*Params) XXX_Size added in v0.0.3

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.3

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

type QueryClient added in v0.0.3

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 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 NewReferral(referralID uint64, addr, code string) Referral

func SetParent added in v0.0.4

func SetParent(referral Referral, parent string) Referral

func (*Referral) Descriptor added in v0.0.4

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

func (*Referral) Marshal added in v0.0.4

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

func (*Referral) MarshalTo added in v0.0.4

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

func (*Referral) MarshalToSizedBuffer added in v0.0.4

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

func (*Referral) ProtoMessage added in v0.0.4

func (*Referral) ProtoMessage()

func (*Referral) Reset added in v0.0.4

func (m *Referral) Reset()

func (*Referral) Size added in v0.0.4

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

func (*Referral) String added in v0.0.4

func (m *Referral) String() string

func (*Referral) Unmarshal added in v0.0.4

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

func (*Referral) XXX_DiscardUnknown added in v0.0.4

func (m *Referral) XXX_DiscardUnknown()

func (*Referral) XXX_Marshal added in v0.0.4

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

func (*Referral) XXX_Merge added in v0.0.4

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

func (*Referral) XXX_Size added in v0.0.4

func (m *Referral) XXX_Size() int

func (*Referral) XXX_Unmarshal added in v0.0.4

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

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 NewRevenue(revenueID uint64) Revenue

func (*Revenue) Descriptor added in v0.0.4

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

func (*Revenue) Marshal added in v0.0.4

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

func (*Revenue) MarshalTo added in v0.0.4

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

func (*Revenue) MarshalToSizedBuffer added in v0.0.4

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

func (*Revenue) ProtoMessage added in v0.0.4

func (*Revenue) ProtoMessage()

func (*Revenue) Reset added in v0.0.4

func (m *Revenue) Reset()

func (*Revenue) Size added in v0.0.4

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

func (*Revenue) String added in v0.0.4

func (m *Revenue) String() string

func (*Revenue) Unmarshal added in v0.0.4

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

func (*Revenue) XXX_DiscardUnknown added in v0.0.4

func (m *Revenue) XXX_DiscardUnknown()

func (*Revenue) XXX_Marshal added in v0.0.4

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

func (*Revenue) XXX_Merge added in v0.0.4

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

func (*Revenue) XXX_Size added in v0.0.4

func (m *Revenue) XXX_Size() int

func (*Revenue) XXX_Unmarshal added in v0.0.4

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

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) SetReferral added in v0.0.4

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) Referral added in v0.0.4

func (*UnimplementedQueryServer) ReferralByAddr added in v0.0.4

func (*UnimplementedQueryServer) ReferralByCode added in v0.0.4

func (*UnimplementedQueryServer) Referrals added in v0.0.4

func (*UnimplementedQueryServer) Revenues added in v0.0.4

Jump to

Keyboard shortcuts

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