Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type ActiveAggregations
- func (*ActiveAggregations) Descriptor() ([]byte, []int)deprecated
- func (x *ActiveAggregations) GetFirstLine() int32
- func (x *ActiveAggregations) GetFirstLineBy3() int32
- func (x *ActiveAggregations) GetTeam0() int32
- func (x *ActiveAggregations) GetTeam100() int32
- func (x *ActiveAggregations) GetTeam15() int32
- func (x *ActiveAggregations) GetTeam300() int32
- func (x *ActiveAggregations) GetTeam50() int32
- func (*ActiveAggregations) ProtoMessage()
- func (x *ActiveAggregations) ProtoReflect() protoreflect.Message
- func (x *ActiveAggregations) Reset()
- func (x *ActiveAggregations) String() string
- type CheckStatusRequest
- func (*CheckStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckStatusRequest) GetAccAddress() string
- func (x *CheckStatusRequest) GetStatus() Status
- func (*CheckStatusRequest) ProtoMessage()
- func (x *CheckStatusRequest) ProtoReflect() protoreflect.Message
- func (x *CheckStatusRequest) Reset()
- func (x *CheckStatusRequest) String() string
- type CheckStatusResponse
- func (*CheckStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckStatusResponse) GetResult() *StatusCheckResult
- func (*CheckStatusResponse) ProtoMessage()
- func (x *CheckStatusResponse) ProtoReflect() protoreflect.Message
- func (x *CheckStatusResponse) Reset()
- func (x *CheckStatusResponse) String() string
- type ChildrenRequest
- type ChildrenResponse
- type CoinsRequest
- func (*CoinsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CoinsRequest) GetAccAddress() string
- func (x *CoinsRequest) GetMaxDepth() uint32
- func (*CoinsRequest) ProtoMessage()
- func (x *CoinsRequest) ProtoReflect() protoreflect.Message
- func (x *CoinsRequest) Reset()
- func (x *CoinsRequest) String() string
- type CoinsResponse
- type Downgrade
- func (*Downgrade) Descriptor() ([]byte, []int)deprecated
- func (x *Downgrade) GetAccount() string
- func (x *Downgrade) GetCurrent() Status
- func (x *Downgrade) GetTime() *timestamppb.Timestamp
- func (*Downgrade) ProtoMessage()
- func (x *Downgrade) ProtoReflect() protoreflect.Message
- func (x *Downgrade) Reset()
- func (x *Downgrade) String() string
- type EventStatusDowngradeCanceled
- func (*EventStatusDowngradeCanceled) Descriptor() ([]byte, []int)deprecated
- func (x *EventStatusDowngradeCanceled) GetAddress() string
- func (*EventStatusDowngradeCanceled) ProtoMessage()
- func (x *EventStatusDowngradeCanceled) ProtoReflect() protoreflect.Message
- func (x *EventStatusDowngradeCanceled) Reset()
- func (x *EventStatusDowngradeCanceled) String() string
- type EventStatusUpdated
- func (*EventStatusUpdated) Descriptor() ([]byte, []int)deprecated
- func (x *EventStatusUpdated) GetAddress() string
- func (x *EventStatusUpdated) GetAfter() Status
- func (x *EventStatusUpdated) GetBefore() Status
- func (*EventStatusUpdated) ProtoMessage()
- func (x *EventStatusUpdated) ProtoReflect() protoreflect.Message
- func (x *EventStatusUpdated) Reset()
- func (x *EventStatusUpdated) String() string
- type EventStatusWillBeDowngraded
- func (*EventStatusWillBeDowngraded) Descriptor() ([]byte, []int)deprecated
- func (x *EventStatusWillBeDowngraded) GetAddress() string
- func (x *EventStatusWillBeDowngraded) GetTime() *timestamppb.Timestamp
- func (*EventStatusWillBeDowngraded) ProtoMessage()
- func (x *EventStatusWillBeDowngraded) ProtoReflect() protoreflect.Message
- func (x *EventStatusWillBeDowngraded) Reset()
- func (x *EventStatusWillBeDowngraded) String() string
- type ExistsRequest
- type ExistsResponse
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDowngrades() []*Downgrade
- func (x *GenesisState) GetOtherAccounts() []*Refs
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetTopLevelAccounts() []*RefInfo
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type GetRequest
- type GetResponse
- type Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetActive() bool
- func (x *Info) GetActiveCount() *ActiveAggregations
- func (x *Info) GetActiveRefCounts() []uint64
- func (x *Info) GetReferrer() string
- func (x *Info) GetSelfDelegated() string
- func (x *Info) GetStatus() Status
- func (x *Info) GetStatusDowngradeAt() *timestamppb.Timestamp
- func (x *Info) GetTeamDelegated() string
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type MsgBurnPartnerFee
- func (*MsgBurnPartnerFee) Descriptor() ([]byte, []int)deprecated
- func (x *MsgBurnPartnerFee) GetAmount() []*v1beta1.Coin
- func (x *MsgBurnPartnerFee) GetFromAddress() string
- func (*MsgBurnPartnerFee) ProtoMessage()
- func (x *MsgBurnPartnerFee) ProtoReflect() protoreflect.Message
- func (x *MsgBurnPartnerFee) Reset()
- func (x *MsgBurnPartnerFee) String() string
- type MsgBurnPartnerFeeResponse
- type MsgClient
- type MsgRegisterReferral
- func (*MsgRegisterReferral) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterReferral) GetReferralAddress() string
- func (x *MsgRegisterReferral) GetReferrerAddress() string
- func (*MsgRegisterReferral) ProtoMessage()
- func (x *MsgRegisterReferral) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterReferral) Reset()
- func (x *MsgRegisterReferral) String() string
- type MsgRegisterReferralResponse
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type NetworkAward
- type Params
- type ParamsRequest
- type ParamsResponse
- type QueryClient
- type QueryServer
- type RefInfo
- type Refs
- type Status
- type StatusCheckResult
- func (*StatusCheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *StatusCheckResult) GetCriteria() []*StatusCheckResult_Criterion
- func (x *StatusCheckResult) GetOverall() bool
- func (*StatusCheckResult) ProtoMessage()
- func (x *StatusCheckResult) ProtoReflect() protoreflect.Message
- func (x *StatusCheckResult) Reset()
- func (x *StatusCheckResult) String() string
- type StatusCheckResult_Criterion
- func (*StatusCheckResult_Criterion) Descriptor() ([]byte, []int)deprecated
- func (x *StatusCheckResult_Criterion) GetActualValue() uint64
- func (x *StatusCheckResult_Criterion) GetMet() bool
- func (x *StatusCheckResult_Criterion) GetParameterX() uint64
- func (x *StatusCheckResult_Criterion) GetRule() StatusCheckResult_Criterion_Rule
- func (x *StatusCheckResult_Criterion) GetTargetValue() uint64
- func (*StatusCheckResult_Criterion) ProtoMessage()
- func (x *StatusCheckResult_Criterion) ProtoReflect() protoreflect.Message
- func (x *StatusCheckResult_Criterion) Reset()
- func (x *StatusCheckResult_Criterion) String() string
- type StatusCheckResult_Criterion_Rule
- func (StatusCheckResult_Criterion_Rule) Descriptor() protoreflect.EnumDescriptor
- func (x StatusCheckResult_Criterion_Rule) Enum() *StatusCheckResult_Criterion_Rule
- func (StatusCheckResult_Criterion_Rule) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatusCheckResult_Criterion_Rule) Number() protoreflect.EnumNumber
- func (x StatusCheckResult_Criterion_Rule) String() string
- func (StatusCheckResult_Criterion_Rule) Type() protoreflect.EnumType
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) BurnPartnerFee(context.Context, *MsgBurnPartnerFee) (*MsgBurnPartnerFeeResponse, error)
- func (UnimplementedMsgServer) RegisterReferral(context.Context, *MsgRegisterReferral) (*MsgRegisterReferralResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) CheckStatus(context.Context, *CheckStatusRequest) (*CheckStatusResponse, error)
- func (UnimplementedQueryServer) Children(context.Context, *ChildrenRequest) (*ChildrenResponse, error)
- func (UnimplementedQueryServer) Coins(context.Context, *CoinsRequest) (*CoinsResponse, error)
- func (UnimplementedQueryServer) Exists(context.Context, *ExistsRequest) (*ExistsResponse, error)
- func (UnimplementedQueryServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Get_FullMethodName = "/axiome.referral.v1beta1.Query/Get" Query_Coins_FullMethodName = "/axiome.referral.v1beta1.Query/Coins" Query_CheckStatus_FullMethodName = "/axiome.referral.v1beta1.Query/CheckStatus" Query_Params_FullMethodName = "/axiome.referral.v1beta1.Query/Params" Query_Children_FullMethodName = "/axiome.referral.v1beta1.Query/Children" Query_Exists_FullMethodName = "/axiome.referral.v1beta1.Query/Exists" )
const ( Msg_RegisterReferral_FullMethodName = "/axiome.referral.v1beta1.Msg/RegisterReferral" Msg_UpdateParams_FullMethodName = "/axiome.referral.v1beta1.Msg/UpdateParams" Msg_BurnPartnerFee_FullMethodName = "/axiome.referral.v1beta1.Msg/BurnPartnerFee" )
Variables ¶
var ( Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_NEW", 2: "STATUS_STARTER", 3: "STATUS_LEADER", 4: "STATUS_GURU", 5: "STATUS_BOSS", 6: "STATUS_PRO", 7: "STATUS_TOP", 8: "STATUS_MEGA", 9: "STATUS_DEPRECATED", } Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_NEW": 1, "STATUS_STARTER": 2, "STATUS_LEADER": 3, "STATUS_GURU": 4, "STATUS_BOSS": 5, "STATUS_PRO": 6, "STATUS_TOP": 7, "STATUS_MEGA": 8, "STATUS_DEPRECATED": 9, } )
Enum value maps for Status.
var ( StatusCheckResult_Criterion_Rule_name = map[int32]string{ 0: "RULE_UNSPECIFIED", 1: "RULE_N_REFERRALS_WITH_X_REFERRALS_EACH", 2: "RULE_N_COINS_IN_STRUCTURE", 3: "RULE_N_TEAMS_OF_X_PEOPLE_EACH", 4: "RULE_PARTICIPATE_IN_REFERRAL_PROGRAM", 5: "RULE_SELF_STAKE", } StatusCheckResult_Criterion_Rule_value = map[string]int32{ "RULE_UNSPECIFIED": 0, "RULE_N_REFERRALS_WITH_X_REFERRALS_EACH": 1, "RULE_N_COINS_IN_STRUCTURE": 2, "RULE_N_TEAMS_OF_X_PEOPLE_EACH": 3, "RULE_PARTICIPATE_IN_REFERRAL_PROGRAM": 4, "RULE_SELF_STAKE": 5, } )
Enum value maps for StatusCheckResult_Criterion_Rule.
var File_axiome_referral_v1beta1_events_proto protoreflect.FileDescriptor
var File_axiome_referral_v1beta1_genesis_proto protoreflect.FileDescriptor
var File_axiome_referral_v1beta1_params_proto protoreflect.FileDescriptor
var File_axiome_referral_v1beta1_query_proto protoreflect.FileDescriptor
var File_axiome_referral_v1beta1_tx_proto protoreflect.FileDescriptor
var File_axiome_referral_v1beta1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "axiome.referral.v1beta1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterReferral", Handler: _Msg_RegisterReferral_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "BurnPartnerFee", Handler: _Msg_BurnPartnerFee_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "axiome/referral/v1beta1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "axiome.referral.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Query_Get_Handler, }, { MethodName: "Coins", Handler: _Query_Coins_Handler, }, { MethodName: "CheckStatus", Handler: _Query_CheckStatus_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Children", Handler: _Query_Children_Handler, }, { MethodName: "Exists", Handler: _Query_Exists_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "axiome/referral/v1beta1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type ActiveAggregations ¶
type ActiveAggregations struct { FirstLine int32 `protobuf:"varint,1,opt,name=first_line,json=firstLine,proto3" json:"first_line,omitempty"` FirstLineBy3 int32 `protobuf:"varint,2,opt,name=first_line_by3,json=firstLineBy3,proto3" json:"first_line_by3,omitempty"` Team0 int32 `protobuf:"varint,3,opt,name=team0,proto3" json:"team0,omitempty"` Team15 int32 `protobuf:"varint,4,opt,name=team15,proto3" json:"team15,omitempty"` Team50 int32 `protobuf:"varint,5,opt,name=team50,proto3" json:"team50,omitempty"` Team100 int32 `protobuf:"varint,6,opt,name=team100,proto3" json:"team100,omitempty"` Team300 int32 `protobuf:"varint,7,opt,name=team300,proto3" json:"team300,omitempty"` // contains filtered or unexported fields }
func (*ActiveAggregations) Descriptor
deprecated
func (*ActiveAggregations) Descriptor() ([]byte, []int)
Deprecated: Use ActiveAggregations.ProtoReflect.Descriptor instead.
func (*ActiveAggregations) GetFirstLine ¶
func (x *ActiveAggregations) GetFirstLine() int32
func (*ActiveAggregations) GetFirstLineBy3 ¶
func (x *ActiveAggregations) GetFirstLineBy3() int32
func (*ActiveAggregations) GetTeam0 ¶
func (x *ActiveAggregations) GetTeam0() int32
func (*ActiveAggregations) GetTeam100 ¶
func (x *ActiveAggregations) GetTeam100() int32
func (*ActiveAggregations) GetTeam15 ¶
func (x *ActiveAggregations) GetTeam15() int32
func (*ActiveAggregations) GetTeam300 ¶
func (x *ActiveAggregations) GetTeam300() int32
func (*ActiveAggregations) GetTeam50 ¶
func (x *ActiveAggregations) GetTeam50() int32
func (*ActiveAggregations) ProtoMessage ¶
func (*ActiveAggregations) ProtoMessage()
func (*ActiveAggregations) ProtoReflect ¶
func (x *ActiveAggregations) ProtoReflect() protoreflect.Message
func (*ActiveAggregations) Reset ¶
func (x *ActiveAggregations) Reset()
func (*ActiveAggregations) String ¶
func (x *ActiveAggregations) String() string
type CheckStatusRequest ¶
type CheckStatusRequest struct { AccAddress string `protobuf:"bytes,1,opt,name=acc_address,json=accAddress,proto3" json:"acc_address,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=axiome.referral.v1beta1.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CheckStatusRequest) Descriptor
deprecated
func (*CheckStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckStatusRequest.ProtoReflect.Descriptor instead.
func (*CheckStatusRequest) GetAccAddress ¶
func (x *CheckStatusRequest) GetAccAddress() string
func (*CheckStatusRequest) GetStatus ¶
func (x *CheckStatusRequest) GetStatus() Status
func (*CheckStatusRequest) ProtoMessage ¶
func (*CheckStatusRequest) ProtoMessage()
func (*CheckStatusRequest) ProtoReflect ¶
func (x *CheckStatusRequest) ProtoReflect() protoreflect.Message
func (*CheckStatusRequest) Reset ¶
func (x *CheckStatusRequest) Reset()
func (*CheckStatusRequest) String ¶
func (x *CheckStatusRequest) String() string
type CheckStatusResponse ¶
type CheckStatusResponse struct { Result *StatusCheckResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*CheckStatusResponse) Descriptor
deprecated
func (*CheckStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckStatusResponse.ProtoReflect.Descriptor instead.
func (*CheckStatusResponse) GetResult ¶
func (x *CheckStatusResponse) GetResult() *StatusCheckResult
func (*CheckStatusResponse) ProtoMessage ¶
func (*CheckStatusResponse) ProtoMessage()
func (*CheckStatusResponse) ProtoReflect ¶
func (x *CheckStatusResponse) ProtoReflect() protoreflect.Message
func (*CheckStatusResponse) Reset ¶
func (x *CheckStatusResponse) Reset()
func (*CheckStatusResponse) String ¶
func (x *CheckStatusResponse) String() string
type ChildrenRequest ¶
type ChildrenRequest struct { AccAddress string `protobuf:"bytes,1,opt,name=acc_address,json=accAddress,proto3" json:"acc_address,omitempty"` // contains filtered or unexported fields }
func (*ChildrenRequest) Descriptor
deprecated
func (*ChildrenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChildrenRequest.ProtoReflect.Descriptor instead.
func (*ChildrenRequest) GetAccAddress ¶
func (x *ChildrenRequest) GetAccAddress() string
func (*ChildrenRequest) ProtoMessage ¶
func (*ChildrenRequest) ProtoMessage()
func (*ChildrenRequest) ProtoReflect ¶
func (x *ChildrenRequest) ProtoReflect() protoreflect.Message
func (*ChildrenRequest) Reset ¶
func (x *ChildrenRequest) Reset()
func (*ChildrenRequest) String ¶
func (x *ChildrenRequest) String() string
type ChildrenResponse ¶
type ChildrenResponse struct { Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ChildrenResponse) Descriptor
deprecated
func (*ChildrenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChildrenResponse.ProtoReflect.Descriptor instead.
func (*ChildrenResponse) GetChildren ¶
func (x *ChildrenResponse) GetChildren() []string
func (*ChildrenResponse) ProtoMessage ¶
func (*ChildrenResponse) ProtoMessage()
func (*ChildrenResponse) ProtoReflect ¶
func (x *ChildrenResponse) ProtoReflect() protoreflect.Message
func (*ChildrenResponse) Reset ¶
func (x *ChildrenResponse) Reset()
func (*ChildrenResponse) String ¶
func (x *ChildrenResponse) String() string
type CoinsRequest ¶
type CoinsRequest struct { AccAddress string `protobuf:"bytes,1,opt,name=acc_address,json=accAddress,proto3" json:"acc_address,omitempty"` MaxDepth uint32 `protobuf:"varint,2,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` // contains filtered or unexported fields }
CoinsRequest defines the request type for coins total in the accounts' referral structure.
func (*CoinsRequest) Descriptor
deprecated
func (*CoinsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CoinsRequest.ProtoReflect.Descriptor instead.
func (*CoinsRequest) GetAccAddress ¶
func (x *CoinsRequest) GetAccAddress() string
func (*CoinsRequest) GetMaxDepth ¶
func (x *CoinsRequest) GetMaxDepth() uint32
func (*CoinsRequest) ProtoMessage ¶
func (*CoinsRequest) ProtoMessage()
func (*CoinsRequest) ProtoReflect ¶
func (x *CoinsRequest) ProtoReflect() protoreflect.Message
func (*CoinsRequest) Reset ¶
func (x *CoinsRequest) Reset()
func (*CoinsRequest) String ¶
func (x *CoinsRequest) String() string
type CoinsResponse ¶
type CoinsResponse struct { Delegated string `protobuf:"bytes,1,opt,name=delegated,proto3" json:"delegated,omitempty"` // contains filtered or unexported fields }
CoinsResponse defines the response type for coins total in the accounts' referral structure.
func (*CoinsResponse) Descriptor
deprecated
func (*CoinsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CoinsResponse.ProtoReflect.Descriptor instead.
func (*CoinsResponse) GetDelegated ¶
func (x *CoinsResponse) GetDelegated() string
func (*CoinsResponse) ProtoMessage ¶
func (*CoinsResponse) ProtoMessage()
func (*CoinsResponse) ProtoReflect ¶
func (x *CoinsResponse) ProtoReflect() protoreflect.Message
func (*CoinsResponse) Reset ¶
func (x *CoinsResponse) Reset()
func (*CoinsResponse) String ¶
func (x *CoinsResponse) String() string
type Downgrade ¶
type Downgrade struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Current Status `protobuf:"varint,2,opt,name=current,proto3,enum=axiome.referral.v1beta1.Status" json:"current,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Downgrade) Descriptor
deprecated
func (*Downgrade) GetAccount ¶
func (*Downgrade) GetCurrent ¶
func (*Downgrade) GetTime ¶
func (x *Downgrade) GetTime() *timestamppb.Timestamp
func (*Downgrade) ProtoMessage ¶
func (*Downgrade) ProtoMessage()
func (*Downgrade) ProtoReflect ¶
func (x *Downgrade) ProtoReflect() protoreflect.Message
type EventStatusDowngradeCanceled ¶
type EventStatusDowngradeCanceled struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*EventStatusDowngradeCanceled) Descriptor
deprecated
func (*EventStatusDowngradeCanceled) Descriptor() ([]byte, []int)
Deprecated: Use EventStatusDowngradeCanceled.ProtoReflect.Descriptor instead.
func (*EventStatusDowngradeCanceled) GetAddress ¶
func (x *EventStatusDowngradeCanceled) GetAddress() string
func (*EventStatusDowngradeCanceled) ProtoMessage ¶
func (*EventStatusDowngradeCanceled) ProtoMessage()
func (*EventStatusDowngradeCanceled) ProtoReflect ¶
func (x *EventStatusDowngradeCanceled) ProtoReflect() protoreflect.Message
func (*EventStatusDowngradeCanceled) Reset ¶
func (x *EventStatusDowngradeCanceled) Reset()
func (*EventStatusDowngradeCanceled) String ¶
func (x *EventStatusDowngradeCanceled) String() string
type EventStatusUpdated ¶
type EventStatusUpdated struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Before Status `protobuf:"varint,2,opt,name=before,proto3,enum=axiome.referral.v1beta1.Status" json:"before,omitempty"` After Status `protobuf:"varint,3,opt,name=after,proto3,enum=axiome.referral.v1beta1.Status" json:"after,omitempty"` // contains filtered or unexported fields }
func (*EventStatusUpdated) Descriptor
deprecated
func (*EventStatusUpdated) Descriptor() ([]byte, []int)
Deprecated: Use EventStatusUpdated.ProtoReflect.Descriptor instead.
func (*EventStatusUpdated) GetAddress ¶
func (x *EventStatusUpdated) GetAddress() string
func (*EventStatusUpdated) GetAfter ¶
func (x *EventStatusUpdated) GetAfter() Status
func (*EventStatusUpdated) GetBefore ¶
func (x *EventStatusUpdated) GetBefore() Status
func (*EventStatusUpdated) ProtoMessage ¶
func (*EventStatusUpdated) ProtoMessage()
func (*EventStatusUpdated) ProtoReflect ¶
func (x *EventStatusUpdated) ProtoReflect() protoreflect.Message
func (*EventStatusUpdated) Reset ¶
func (x *EventStatusUpdated) Reset()
func (*EventStatusUpdated) String ¶
func (x *EventStatusUpdated) String() string
type EventStatusWillBeDowngraded ¶
type EventStatusWillBeDowngraded struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EventStatusWillBeDowngraded) Descriptor
deprecated
func (*EventStatusWillBeDowngraded) Descriptor() ([]byte, []int)
Deprecated: Use EventStatusWillBeDowngraded.ProtoReflect.Descriptor instead.
func (*EventStatusWillBeDowngraded) GetAddress ¶
func (x *EventStatusWillBeDowngraded) GetAddress() string
func (*EventStatusWillBeDowngraded) GetTime ¶
func (x *EventStatusWillBeDowngraded) GetTime() *timestamppb.Timestamp
func (*EventStatusWillBeDowngraded) ProtoMessage ¶
func (*EventStatusWillBeDowngraded) ProtoMessage()
func (*EventStatusWillBeDowngraded) ProtoReflect ¶
func (x *EventStatusWillBeDowngraded) ProtoReflect() protoreflect.Message
func (*EventStatusWillBeDowngraded) Reset ¶
func (x *EventStatusWillBeDowngraded) Reset()
func (*EventStatusWillBeDowngraded) String ¶
func (x *EventStatusWillBeDowngraded) String() string
type ExistsRequest ¶
type ExistsRequest struct { AccAddress string `protobuf:"bytes,1,opt,name=acc_address,json=accAddress,proto3" json:"acc_address,omitempty"` // contains filtered or unexported fields }
func (*ExistsRequest) Descriptor
deprecated
func (*ExistsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExistsRequest.ProtoReflect.Descriptor instead.
func (*ExistsRequest) GetAccAddress ¶
func (x *ExistsRequest) GetAccAddress() string
func (*ExistsRequest) ProtoMessage ¶
func (*ExistsRequest) ProtoMessage()
func (*ExistsRequest) ProtoReflect ¶
func (x *ExistsRequest) ProtoReflect() protoreflect.Message
func (*ExistsRequest) Reset ¶
func (x *ExistsRequest) Reset()
func (*ExistsRequest) String ¶
func (x *ExistsRequest) String() string
type ExistsResponse ¶
type ExistsResponse struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
func (*ExistsResponse) Descriptor
deprecated
func (*ExistsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExistsResponse.ProtoReflect.Descriptor instead.
func (*ExistsResponse) GetExists ¶
func (x *ExistsResponse) GetExists() bool
func (*ExistsResponse) ProtoMessage ¶
func (*ExistsResponse) ProtoMessage()
func (*ExistsResponse) ProtoReflect ¶
func (x *ExistsResponse) ProtoReflect() protoreflect.Message
func (*ExistsResponse) Reset ¶
func (x *ExistsResponse) Reset()
func (*ExistsResponse) String ¶
func (x *ExistsResponse) String() string
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` TopLevelAccounts []*RefInfo `protobuf:"bytes,2,rep,name=top_level_accounts,json=topLevelAccounts,proto3" json:"top_level_accounts,omitempty"` OtherAccounts []*Refs `protobuf:"bytes,3,rep,name=other_accounts,json=otherAccounts,proto3" json:"other_accounts,omitempty"` Downgrades []*Downgrade `protobuf:"bytes,4,rep,name=downgrades,proto3" json:"downgrades,omitempty"` // contains filtered or unexported fields }
GenesisState - all referral state that must be provided at genesis
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDowngrades ¶
func (x *GenesisState) GetDowngrades() []*Downgrade
func (*GenesisState) GetOtherAccounts ¶
func (x *GenesisState) GetOtherAccounts() []*Refs
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetTopLevelAccounts ¶
func (x *GenesisState) GetTopLevelAccounts() []*RefInfo
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type GetRequest ¶
type GetRequest struct { AccAddress string `protobuf:"bytes,1,opt,name=acc_address,json=accAddress,proto3" json:"acc_address,omitempty"` // contains filtered or unexported fields }
GetRequest defines the request type for x/referral data.
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetAccAddress ¶
func (x *GetRequest) GetAccAddress() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Info *Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
GetResponse defines the response type for x/referral data.
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetInfo ¶
func (x *GetResponse) GetInfo() *Info
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Info ¶
type Info struct { // Status - account status Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=axiome.referral.v1beta1.Status" json:"status,omitempty"` // Referrer - parent, account just above this one. Referrer string `protobuf:"bytes,2,opt,name=referrer,proto3" json:"referrer,omitempty"` // Active - does the account keeper have a paid subscription. Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` // ActiveRefCounts - count of active referrals per level (up to 14 levels // deep). And so on. ActiveReferrals[0] represents an account itself. It must // be equal 1 if account is active, and 0 if it's not. ActiveRefCounts []uint64 `protobuf:"varint,7,rep,packed,name=active_ref_counts,json=activeRefCounts,proto3" json:"active_ref_counts,omitempty"` StatusDowngradeAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=status_downgrade_at,json=statusDowngradeAt,proto3" json:"status_downgrade_at,omitempty"` SelfDelegated string `protobuf:"bytes,9,opt,name=self_delegated,json=selfDelegated,proto3" json:"self_delegated,omitempty"` TeamDelegated string `protobuf:"bytes,10,opt,name=team_delegated,json=teamDelegated,proto3" json:"team_delegated,omitempty"` ActiveCount *ActiveAggregations `protobuf:"bytes,11,opt,name=active_count,json=activeCount,proto3" json:"active_count,omitempty"` // contains filtered or unexported fields }
func (*Info) Descriptor
deprecated
func (*Info) GetActiveCount ¶
func (x *Info) GetActiveCount() *ActiveAggregations
func (*Info) GetActiveRefCounts ¶
func (*Info) GetReferrer ¶
func (*Info) GetSelfDelegated ¶
func (*Info) GetStatusDowngradeAt ¶
func (x *Info) GetStatusDowngradeAt() *timestamppb.Timestamp
func (*Info) GetTeamDelegated ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type MsgBurnPartnerFee ¶ added in v1.0.1
type MsgBurnPartnerFee struct { // Account is a sender's SDK address. FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgBurnPartnerFee is a message to burn coins on sender's account, meanwhile for burning partner fees or etc.
func (*MsgBurnPartnerFee) Descriptor
deprecated
added in
v1.0.1
func (*MsgBurnPartnerFee) Descriptor() ([]byte, []int)
Deprecated: Use MsgBurnPartnerFee.ProtoReflect.Descriptor instead.
func (*MsgBurnPartnerFee) GetAmount ¶ added in v1.0.1
func (x *MsgBurnPartnerFee) GetAmount() []*v1beta1.Coin
func (*MsgBurnPartnerFee) GetFromAddress ¶ added in v1.0.1
func (x *MsgBurnPartnerFee) GetFromAddress() string
func (*MsgBurnPartnerFee) ProtoMessage ¶ added in v1.0.1
func (*MsgBurnPartnerFee) ProtoMessage()
func (*MsgBurnPartnerFee) ProtoReflect ¶ added in v1.0.1
func (x *MsgBurnPartnerFee) ProtoReflect() protoreflect.Message
func (*MsgBurnPartnerFee) Reset ¶ added in v1.0.1
func (x *MsgBurnPartnerFee) Reset()
func (*MsgBurnPartnerFee) String ¶ added in v1.0.1
func (x *MsgBurnPartnerFee) String() string
type MsgBurnPartnerFeeResponse ¶ added in v1.0.1
type MsgBurnPartnerFeeResponse struct {
// contains filtered or unexported fields
}
MsgBurnPartnerFeeResponse defines response type for MsgBurnPartnerFee messages.
func (*MsgBurnPartnerFeeResponse) Descriptor
deprecated
added in
v1.0.1
func (*MsgBurnPartnerFeeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgBurnPartnerFeeResponse.ProtoReflect.Descriptor instead.
func (*MsgBurnPartnerFeeResponse) ProtoMessage ¶ added in v1.0.1
func (*MsgBurnPartnerFeeResponse) ProtoMessage()
func (*MsgBurnPartnerFeeResponse) ProtoReflect ¶ added in v1.0.1
func (x *MsgBurnPartnerFeeResponse) ProtoReflect() protoreflect.Message
func (*MsgBurnPartnerFeeResponse) Reset ¶ added in v1.0.1
func (x *MsgBurnPartnerFeeResponse) Reset()
func (*MsgBurnPartnerFeeResponse) String ¶ added in v1.0.1
func (x *MsgBurnPartnerFeeResponse) String() string
type MsgClient ¶
type MsgClient interface { RegisterReferral(ctx context.Context, in *MsgRegisterReferral, opts ...grpc.CallOption) (*MsgRegisterReferralResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) BurnPartnerFee(ctx context.Context, in *MsgBurnPartnerFee, opts ...grpc.CallOption) (*MsgBurnPartnerFeeResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgRegisterReferral ¶
type MsgRegisterReferral struct { ReferralAddress string `protobuf:"bytes,1,opt,name=referral_address,json=referralAddress,proto3" json:"referral_address,omitempty"` ReferrerAddress string `protobuf:"bytes,2,opt,name=referrer_address,json=referrerAddress,proto3" json:"referrer_address,omitempty"` // contains filtered or unexported fields }
MsgRegisterReferral place referral to it's referrer in Referral marketing module
func (*MsgRegisterReferral) Descriptor
deprecated
func (*MsgRegisterReferral) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterReferral.ProtoReflect.Descriptor instead.
func (*MsgRegisterReferral) GetReferralAddress ¶
func (x *MsgRegisterReferral) GetReferralAddress() string
func (*MsgRegisterReferral) GetReferrerAddress ¶
func (x *MsgRegisterReferral) GetReferrerAddress() string
func (*MsgRegisterReferral) ProtoMessage ¶
func (*MsgRegisterReferral) ProtoMessage()
func (*MsgRegisterReferral) ProtoReflect ¶
func (x *MsgRegisterReferral) ProtoReflect() protoreflect.Message
func (*MsgRegisterReferral) Reset ¶
func (x *MsgRegisterReferral) Reset()
func (*MsgRegisterReferral) String ¶
func (x *MsgRegisterReferral) String() string
type MsgRegisterReferralResponse ¶
type MsgRegisterReferralResponse struct {
// contains filtered or unexported fields
}
MsgRegisterReferralResponse defines the Msg/RegisterReferral response type.
func (*MsgRegisterReferralResponse) Descriptor
deprecated
func (*MsgRegisterReferralResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterReferralResponse.ProtoReflect.Descriptor instead.
func (*MsgRegisterReferralResponse) ProtoMessage ¶
func (*MsgRegisterReferralResponse) ProtoMessage()
func (*MsgRegisterReferralResponse) ProtoReflect ¶
func (x *MsgRegisterReferralResponse) ProtoReflect() protoreflect.Message
func (*MsgRegisterReferralResponse) Reset ¶
func (x *MsgRegisterReferralResponse) Reset()
func (*MsgRegisterReferralResponse) String ¶
func (x *MsgRegisterReferralResponse) String() string
type MsgServer ¶
type MsgServer interface { RegisterReferral(context.Context, *MsgRegisterReferral) (*MsgRegisterReferralResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) BurnPartnerFee(context.Context, *MsgBurnPartnerFee) (*MsgBurnPartnerFeeResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type NetworkAward ¶
type NetworkAward struct { Network []string `protobuf:"bytes,1,rep,name=network,proto3" json:"network,omitempty"` // contains filtered or unexported fields }
func (*NetworkAward) Descriptor
deprecated
func (*NetworkAward) Descriptor() ([]byte, []int)
Deprecated: Use NetworkAward.ProtoReflect.Descriptor instead.
func (*NetworkAward) GetNetwork ¶
func (x *NetworkAward) GetNetwork() []string
func (*NetworkAward) ProtoMessage ¶
func (*NetworkAward) ProtoMessage()
func (*NetworkAward) ProtoReflect ¶
func (x *NetworkAward) ProtoReflect() protoreflect.Message
func (*NetworkAward) Reset ¶
func (x *NetworkAward) Reset()
func (*NetworkAward) String ¶
func (x *NetworkAward) String() string
type Params ¶
type Params struct { DelegatingAward *NetworkAward `protobuf:"bytes,1,opt,name=delegating_award,json=delegatingAward,proto3" json:"delegating_award,omitempty"` StatusDowngradePeriod int32 `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
Params - used for initializing default parameter for x/referral at genesis
func (*Params) Descriptor
deprecated
func (*Params) GetDelegatingAward ¶
func (x *Params) GetDelegatingAward() *NetworkAward
func (*Params) GetStatusDowngradePeriod ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type ParamsRequest ¶
type ParamsRequest struct {
// contains filtered or unexported fields
}
func (*ParamsRequest) Descriptor
deprecated
func (*ParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) ProtoReflect ¶
func (x *ParamsRequest) ProtoReflect() protoreflect.Message
func (*ParamsRequest) Reset ¶
func (x *ParamsRequest) Reset()
func (*ParamsRequest) String ¶
func (x *ParamsRequest) String() string
type ParamsResponse ¶
type ParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*ParamsResponse) Descriptor
deprecated
func (*ParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.
func (*ParamsResponse) GetParams ¶
func (x *ParamsResponse) GetParams() *Params
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) ProtoReflect ¶
func (x *ParamsResponse) ProtoReflect() protoreflect.Message
func (*ParamsResponse) Reset ¶
func (x *ParamsResponse) Reset()
func (*ParamsResponse) String ¶
func (x *ParamsResponse) String() string
type QueryClient ¶
type QueryClient interface { // Get queries all the data for account. If `light=true`, `Referrals` and // `ActiveReferrals` fields will be omitted. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Coins queries coins total in the accounts' referral structure. Coins(ctx context.Context, in *CoinsRequest, opts ...grpc.CallOption) (*CoinsResponse, error) CheckStatus(ctx context.Context, in *CheckStatusRequest, opts ...grpc.CallOption) (*CheckStatusResponse, error) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) Children(ctx context.Context, in *ChildrenRequest, opts ...grpc.CallOption) (*ChildrenResponse, error) Exists(ctx context.Context, in *ExistsRequest, opts ...grpc.CallOption) (*ExistsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryServer ¶
type QueryServer interface { // Get queries all the data for account. If `light=true`, `Referrals` and // `ActiveReferrals` fields will be omitted. Get(context.Context, *GetRequest) (*GetResponse, error) // Coins queries coins total in the accounts' referral structure. Coins(context.Context, *CoinsRequest) (*CoinsResponse, error) CheckStatus(context.Context, *CheckStatusRequest) (*CheckStatusResponse, error) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) Children(context.Context, *ChildrenRequest) (*ChildrenResponse, error) Exists(context.Context, *ExistsRequest) (*ExistsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type RefInfo ¶
type RefInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=axiome.referral.v1beta1.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*RefInfo) Descriptor
deprecated
func (*RefInfo) GetAddress ¶
func (*RefInfo) ProtoMessage ¶
func (*RefInfo) ProtoMessage()
func (*RefInfo) ProtoReflect ¶
func (x *RefInfo) ProtoReflect() protoreflect.Message
type Refs ¶
type Refs struct { Referrer string `protobuf:"bytes,1,opt,name=referrer,proto3" json:"referrer,omitempty"` Referrals []*RefInfo `protobuf:"bytes,2,rep,name=referrals,proto3" json:"referrals,omitempty"` // contains filtered or unexported fields }
func (*Refs) Descriptor
deprecated
func (*Refs) GetReferrals ¶
func (*Refs) GetReferrer ¶
func (*Refs) ProtoMessage ¶
func (*Refs) ProtoMessage()
func (*Refs) ProtoReflect ¶
func (x *Refs) ProtoReflect() protoreflect.Message
type Status ¶
type Status int32
const ( Status_STATUS_UNSPECIFIED Status = 0 Status_STATUS_NEW Status = 1 Status_STATUS_STARTER Status = 2 Status_STATUS_LEADER Status = 3 Status_STATUS_GURU Status = 4 Status_STATUS_BOSS Status = 5 Status_STATUS_PRO Status = 6 Status_STATUS_TOP Status = 7 Status_STATUS_MEGA Status = 8 Status_STATUS_DEPRECATED Status = 9 )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StatusCheckResult ¶
type StatusCheckResult struct { Overall bool `protobuf:"varint,1,opt,name=overall,proto3" json:"overall,omitempty"` Criteria []*StatusCheckResult_Criterion `protobuf:"bytes,2,rep,name=criteria,proto3" json:"criteria,omitempty"` // contains filtered or unexported fields }
func (*StatusCheckResult) Descriptor
deprecated
func (*StatusCheckResult) Descriptor() ([]byte, []int)
Deprecated: Use StatusCheckResult.ProtoReflect.Descriptor instead.
func (*StatusCheckResult) GetCriteria ¶
func (x *StatusCheckResult) GetCriteria() []*StatusCheckResult_Criterion
func (*StatusCheckResult) GetOverall ¶
func (x *StatusCheckResult) GetOverall() bool
func (*StatusCheckResult) ProtoMessage ¶
func (*StatusCheckResult) ProtoMessage()
func (*StatusCheckResult) ProtoReflect ¶
func (x *StatusCheckResult) ProtoReflect() protoreflect.Message
func (*StatusCheckResult) Reset ¶
func (x *StatusCheckResult) Reset()
func (*StatusCheckResult) String ¶
func (x *StatusCheckResult) String() string
type StatusCheckResult_Criterion ¶
type StatusCheckResult_Criterion struct { Met bool `protobuf:"varint,1,opt,name=met,proto3" json:"met,omitempty"` Rule StatusCheckResult_Criterion_Rule `protobuf:"varint,2,opt,name=rule,proto3,enum=axiome.referral.v1beta1.StatusCheckResult_Criterion_Rule" json:"rule,omitempty"` TargetValue uint64 `protobuf:"varint,3,opt,name=target_value,json=targetValue,proto3" json:"target_value,omitempty"` ActualValue uint64 `protobuf:"varint,4,opt,name=actual_value,json=actualValue,proto3" json:"actual_value,omitempty"` ParameterX uint64 `protobuf:"varint,5,opt,name=parameter_x,json=parameterX,proto3" json:"parameter_x,omitempty"` // contains filtered or unexported fields }
func (*StatusCheckResult_Criterion) Descriptor
deprecated
func (*StatusCheckResult_Criterion) Descriptor() ([]byte, []int)
Deprecated: Use StatusCheckResult_Criterion.ProtoReflect.Descriptor instead.
func (*StatusCheckResult_Criterion) GetActualValue ¶
func (x *StatusCheckResult_Criterion) GetActualValue() uint64
func (*StatusCheckResult_Criterion) GetMet ¶
func (x *StatusCheckResult_Criterion) GetMet() bool
func (*StatusCheckResult_Criterion) GetParameterX ¶
func (x *StatusCheckResult_Criterion) GetParameterX() uint64
func (*StatusCheckResult_Criterion) GetRule ¶
func (x *StatusCheckResult_Criterion) GetRule() StatusCheckResult_Criterion_Rule
func (*StatusCheckResult_Criterion) GetTargetValue ¶
func (x *StatusCheckResult_Criterion) GetTargetValue() uint64
func (*StatusCheckResult_Criterion) ProtoMessage ¶
func (*StatusCheckResult_Criterion) ProtoMessage()
func (*StatusCheckResult_Criterion) ProtoReflect ¶
func (x *StatusCheckResult_Criterion) ProtoReflect() protoreflect.Message
func (*StatusCheckResult_Criterion) Reset ¶
func (x *StatusCheckResult_Criterion) Reset()
func (*StatusCheckResult_Criterion) String ¶
func (x *StatusCheckResult_Criterion) String() string
type StatusCheckResult_Criterion_Rule ¶
type StatusCheckResult_Criterion_Rule int32
const ( StatusCheckResult_Criterion_RULE_UNSPECIFIED StatusCheckResult_Criterion_Rule = 0 StatusCheckResult_Criterion_RULE_N_REFERRALS_WITH_X_REFERRALS_EACH StatusCheckResult_Criterion_Rule = 1 StatusCheckResult_Criterion_RULE_N_COINS_IN_STRUCTURE StatusCheckResult_Criterion_Rule = 2 StatusCheckResult_Criterion_RULE_N_TEAMS_OF_X_PEOPLE_EACH StatusCheckResult_Criterion_Rule = 3 StatusCheckResult_Criterion_RULE_PARTICIPATE_IN_REFERRAL_PROGRAM StatusCheckResult_Criterion_Rule = 4 StatusCheckResult_Criterion_RULE_SELF_STAKE StatusCheckResult_Criterion_Rule = 5 )
func (StatusCheckResult_Criterion_Rule) Descriptor ¶
func (StatusCheckResult_Criterion_Rule) Descriptor() protoreflect.EnumDescriptor
func (StatusCheckResult_Criterion_Rule) Enum ¶
func (x StatusCheckResult_Criterion_Rule) Enum() *StatusCheckResult_Criterion_Rule
func (StatusCheckResult_Criterion_Rule) EnumDescriptor
deprecated
func (StatusCheckResult_Criterion_Rule) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusCheckResult_Criterion_Rule.Descriptor instead.
func (StatusCheckResult_Criterion_Rule) Number ¶
func (x StatusCheckResult_Criterion_Rule) Number() protoreflect.EnumNumber
func (StatusCheckResult_Criterion_Rule) String ¶
func (x StatusCheckResult_Criterion_Rule) String() string
func (StatusCheckResult_Criterion_Rule) Type ¶
func (StatusCheckResult_Criterion_Rule) Type() protoreflect.EnumType
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) BurnPartnerFee ¶ added in v1.0.1
func (UnimplementedMsgServer) BurnPartnerFee(context.Context, *MsgBurnPartnerFee) (*MsgBurnPartnerFeeResponse, error)
func (UnimplementedMsgServer) RegisterReferral ¶
func (UnimplementedMsgServer) RegisterReferral(context.Context, *MsgRegisterReferral) (*MsgRegisterReferralResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) CheckStatus ¶
func (UnimplementedQueryServer) CheckStatus(context.Context, *CheckStatusRequest) (*CheckStatusResponse, error)
func (UnimplementedQueryServer) Children ¶
func (UnimplementedQueryServer) Children(context.Context, *ChildrenRequest) (*ChildrenResponse, error)
func (UnimplementedQueryServer) Coins ¶
func (UnimplementedQueryServer) Coins(context.Context, *CoinsRequest) (*CoinsResponse, error)
func (UnimplementedQueryServer) Exists ¶
func (UnimplementedQueryServer) Exists(context.Context, *ExistsRequest) (*ExistsResponse, error)
func (UnimplementedQueryServer) Get ¶
func (UnimplementedQueryServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.