Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetCampaignKey(uid string) []byte
- func GetPromoterByAddressKey(accAddr string) []byte
- func GetPromoterKey(uid string) []byte
- func GetRewardGrantStatKey(campaignUID, addr string) []byte
- func GetRewardKey(uid string) []byte
- func GetRewardsByCampaignKey(campaignUID, uid string) []byte
- func GetRewardsByCampaignPrefix(campaignUID string) []byte
- func GetRewardsOfReceiverByPromoterAndCategoryKey(promoterUID, receiverAcc string, rewardCategory RewardCategory, uid string) []byte
- func GetRewardsOfReceiverByPromoterAndCategoryPrefix(promoterUID, receiverAcc string, rewardCategory RewardCategory) []byte
- func GetRewardsOfReceiverByPromoterPrefix(promoterUID, receiverAcc string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AuthzKeeper
- type BankKeeper
- type BetBonusReward
- type BetKeeper
- type Campaign
- func (c *Campaign) CheckPoolBalance(rewardAmount sdkmath.Int) error
- func (c *Campaign) CheckTS(blockTime uint64) error
- func (*Campaign) Descriptor() ([]byte, []int)
- func (m *Campaign) GetCapCount() uint64
- func (m *Campaign) GetConstraints() *CampaignConstraints
- func (m *Campaign) GetCreator() string
- func (m *Campaign) GetEndTS() uint64
- func (m *Campaign) GetIsActive() bool
- func (m *Campaign) GetMeta() string
- func (m *Campaign) GetPool() Pool
- func (m *Campaign) GetPromoter() string
- func (m *Campaign) GetRewardAmount() *RewardAmount
- func (m *Campaign) GetRewardAmountType() RewardAmountType
- func (m *Campaign) GetRewardCategory() RewardCategory
- func (m *Campaign) GetRewardType() RewardType
- func (c *Campaign) GetRewardsFactory() (IRewardFactory, error)
- func (m *Campaign) GetStartTS() uint64
- func (m *Campaign) GetUID() string
- func (m *Campaign) Marshal() (dAtA []byte, err error)
- func (m *Campaign) MarshalTo(dAtA []byte) (int, error)
- func (m *Campaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Campaign) ProtoMessage()
- func (m *Campaign) Reset()
- func (m *Campaign) Size() (n int)
- func (m *Campaign) String() string
- func (m *Campaign) Unmarshal(dAtA []byte) error
- func (m *Campaign) XXX_DiscardUnknown()
- func (m *Campaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Campaign) XXX_Merge(src proto.Message)
- func (m *Campaign) XXX_Size() int
- func (m *Campaign) XXX_Unmarshal(b []byte) error
- type CampaignConstraints
- func (*CampaignConstraints) Descriptor() ([]byte, []int)
- func (m *CampaignConstraints) Marshal() (dAtA []byte, err error)
- func (m *CampaignConstraints) MarshalTo(dAtA []byte) (int, error)
- func (m *CampaignConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CampaignConstraints) ProtoMessage()
- func (m *CampaignConstraints) Reset()
- func (m *CampaignConstraints) Size() (n int)
- func (m *CampaignConstraints) String() string
- func (m *CampaignConstraints) Unmarshal(dAtA []byte) error
- func (m *CampaignConstraints) XXX_DiscardUnknown()
- func (m *CampaignConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CampaignConstraints) XXX_Merge(src proto.Message)
- func (m *CampaignConstraints) XXX_Size() int
- func (m *CampaignConstraints) XXX_Unmarshal(b []byte) error
- type CategoryCap
- func (*CategoryCap) Descriptor() ([]byte, []int)
- func (m *CategoryCap) GetCapPerAcc() int32
- func (m *CategoryCap) GetCategory() RewardCategory
- func (m *CategoryCap) Marshal() (dAtA []byte, err error)
- func (m *CategoryCap) MarshalTo(dAtA []byte) (int, error)
- func (m *CategoryCap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CategoryCap) ProtoMessage()
- func (m *CategoryCap) Reset()
- func (m *CategoryCap) Size() (n int)
- func (m *CategoryCap) String() string
- func (m *CategoryCap) Unmarshal(dAtA []byte) error
- func (m *CategoryCap) XXX_DiscardUnknown()
- func (m *CategoryCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CategoryCap) XXX_Merge(src proto.Message)
- func (m *CategoryCap) XXX_Size() int
- func (m *CategoryCap) XXX_Unmarshal(b []byte) error
- type CreateCampaignAuthorization
- func (a CreateCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
- func (*CreateCampaignAuthorization) Descriptor() ([]byte, []int)
- func (m *CreateCampaignAuthorization) Marshal() (dAtA []byte, err error)
- func (m *CreateCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (CreateCampaignAuthorization) MsgTypeURL() string
- func (*CreateCampaignAuthorization) ProtoMessage()
- func (m *CreateCampaignAuthorization) Reset()
- func (m *CreateCampaignAuthorization) Size() (n int)
- func (m *CreateCampaignAuthorization) String() string
- func (m *CreateCampaignAuthorization) Unmarshal(dAtA []byte) error
- func (a CreateCampaignAuthorization) ValidateBasic() error
- func (m *CreateCampaignAuthorization) XXX_DiscardUnknown()
- func (m *CreateCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCampaignAuthorization) XXX_Merge(src proto.Message)
- func (m *CreateCampaignAuthorization) XXX_Size() int
- func (m *CreateCampaignAuthorization) XXX_Unmarshal(b []byte) error
- type CreateCampaignPayload
- func (*CreateCampaignPayload) Descriptor() ([]byte, []int)
- func (m *CreateCampaignPayload) GetCapCount() uint64
- func (m *CreateCampaignPayload) GetCategory() RewardCategory
- func (m *CreateCampaignPayload) GetConstraints() *CampaignConstraints
- func (m *CreateCampaignPayload) GetEndTs() uint64
- func (m *CreateCampaignPayload) GetIsActive() bool
- func (m *CreateCampaignPayload) GetMeta() string
- func (m *CreateCampaignPayload) GetPromoter() string
- func (m *CreateCampaignPayload) GetRewardAmount() *RewardAmount
- func (m *CreateCampaignPayload) GetRewardAmountType() RewardAmountType
- func (m *CreateCampaignPayload) GetRewardType() RewardType
- func (m *CreateCampaignPayload) GetStartTs() uint64
- func (m *CreateCampaignPayload) Marshal() (dAtA []byte, err error)
- func (m *CreateCampaignPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateCampaignPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateCampaignPayload) ProtoMessage()
- func (m *CreateCampaignPayload) Reset()
- func (m *CreateCampaignPayload) Size() (n int)
- func (m *CreateCampaignPayload) String() string
- func (m *CreateCampaignPayload) Unmarshal(dAtA []byte) error
- func (payload *CreateCampaignPayload) Validate(blockTime uint64) error
- func (m *CreateCampaignPayload) XXX_DiscardUnknown()
- func (m *CreateCampaignPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCampaignPayload) XXX_Merge(src proto.Message)
- func (m *CreateCampaignPayload) XXX_Size() int
- func (m *CreateCampaignPayload) XXX_Unmarshal(b []byte) error
- type CreatePromoterPayload
- func (*CreatePromoterPayload) Descriptor() ([]byte, []int)
- func (m *CreatePromoterPayload) GetConf() PromoterConf
- func (m *CreatePromoterPayload) GetUID() string
- func (m *CreatePromoterPayload) Marshal() (dAtA []byte, err error)
- func (m *CreatePromoterPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *CreatePromoterPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreatePromoterPayload) ProtoMessage()
- func (m *CreatePromoterPayload) Reset()
- func (m *CreatePromoterPayload) Size() (n int)
- func (m *CreatePromoterPayload) String() string
- func (m *CreatePromoterPayload) Unmarshal(dAtA []byte) error
- func (payload *CreatePromoterPayload) Validate() error
- func (m *CreatePromoterPayload) XXX_DiscardUnknown()
- func (m *CreatePromoterPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreatePromoterPayload) XXX_Merge(src proto.Message)
- func (m *CreatePromoterPayload) XXX_Size() int
- func (m *CreatePromoterPayload) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCampaignList() []Campaign
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPromoterByAddressList() []PromoterByAddress
- func (m *GenesisState) GetPromoterList() []Promoter
- func (m *GenesisState) GetRewardByCampaignList() []RewardByCampaign
- func (m *GenesisState) GetRewardByCategoryList() []RewardByCategory
- func (m *GenesisState) GetRewardList() []Reward
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GrantBetBonusRewardPayload
- func (*GrantBetBonusRewardPayload) Descriptor() ([]byte, []int)
- func (m *GrantBetBonusRewardPayload) GetBetUID() string
- func (m *GrantBetBonusRewardPayload) GetCommon() RewardPayloadCommon
- func (m *GrantBetBonusRewardPayload) Marshal() (dAtA []byte, err error)
- func (m *GrantBetBonusRewardPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantBetBonusRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantBetBonusRewardPayload) ProtoMessage()
- func (m *GrantBetBonusRewardPayload) Reset()
- func (m *GrantBetBonusRewardPayload) Size() (n int)
- func (m *GrantBetBonusRewardPayload) String() string
- func (m *GrantBetBonusRewardPayload) Unmarshal(dAtA []byte) error
- func (m *GrantBetBonusRewardPayload) XXX_DiscardUnknown()
- func (m *GrantBetBonusRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantBetBonusRewardPayload) XXX_Merge(src proto.Message)
- func (m *GrantBetBonusRewardPayload) XXX_Size() int
- func (m *GrantBetBonusRewardPayload) XXX_Unmarshal(b []byte) error
- type GrantSignupAffiliatorRewardPayload
- func (*GrantSignupAffiliatorRewardPayload) Descriptor() ([]byte, []int)
- func (m *GrantSignupAffiliatorRewardPayload) GetAffiliatee() string
- func (m *GrantSignupAffiliatorRewardPayload) GetCommon() RewardPayloadCommon
- func (m *GrantSignupAffiliatorRewardPayload) Marshal() (dAtA []byte, err error)
- func (m *GrantSignupAffiliatorRewardPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantSignupAffiliatorRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantSignupAffiliatorRewardPayload) ProtoMessage()
- func (m *GrantSignupAffiliatorRewardPayload) Reset()
- func (m *GrantSignupAffiliatorRewardPayload) Size() (n int)
- func (m *GrantSignupAffiliatorRewardPayload) String() string
- func (m *GrantSignupAffiliatorRewardPayload) Unmarshal(dAtA []byte) error
- func (m *GrantSignupAffiliatorRewardPayload) XXX_DiscardUnknown()
- func (m *GrantSignupAffiliatorRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantSignupAffiliatorRewardPayload) XXX_Merge(src proto.Message)
- func (m *GrantSignupAffiliatorRewardPayload) XXX_Size() int
- func (m *GrantSignupAffiliatorRewardPayload) XXX_Unmarshal(b []byte) error
- type GrantSignupReferrerRewardPayload
- func (*GrantSignupReferrerRewardPayload) Descriptor() ([]byte, []int)
- func (m *GrantSignupReferrerRewardPayload) GetCommon() RewardPayloadCommon
- func (m *GrantSignupReferrerRewardPayload) GetReferee() string
- func (m *GrantSignupReferrerRewardPayload) Marshal() (dAtA []byte, err error)
- func (m *GrantSignupReferrerRewardPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantSignupReferrerRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantSignupReferrerRewardPayload) ProtoMessage()
- func (m *GrantSignupReferrerRewardPayload) Reset()
- func (m *GrantSignupReferrerRewardPayload) Size() (n int)
- func (m *GrantSignupReferrerRewardPayload) String() string
- func (m *GrantSignupReferrerRewardPayload) Unmarshal(dAtA []byte) error
- func (m *GrantSignupReferrerRewardPayload) XXX_DiscardUnknown()
- func (m *GrantSignupReferrerRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantSignupReferrerRewardPayload) XXX_Merge(src proto.Message)
- func (m *GrantSignupReferrerRewardPayload) XXX_Size() int
- func (m *GrantSignupReferrerRewardPayload) XXX_Unmarshal(b []byte) error
- type GrantSignupRewardPayload
- func (*GrantSignupRewardPayload) Descriptor() ([]byte, []int)
- func (m *GrantSignupRewardPayload) GetCommon() RewardPayloadCommon
- func (m *GrantSignupRewardPayload) Marshal() (dAtA []byte, err error)
- func (m *GrantSignupRewardPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantSignupRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantSignupRewardPayload) ProtoMessage()
- func (m *GrantSignupRewardPayload) Reset()
- func (m *GrantSignupRewardPayload) Size() (n int)
- func (m *GrantSignupRewardPayload) String() string
- func (m *GrantSignupRewardPayload) Unmarshal(dAtA []byte) error
- func (m *GrantSignupRewardPayload) XXX_DiscardUnknown()
- func (m *GrantSignupRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantSignupRewardPayload) XXX_Merge(src proto.Message)
- func (m *GrantSignupRewardPayload) XXX_Size() int
- func (m *GrantSignupRewardPayload) XXX_Unmarshal(b []byte) error
- type IRewardFactory
- type MarketKeeper
- type MsgClient
- type MsgCreateCampaign
- func (*MsgCreateCampaign) Descriptor() ([]byte, []int)
- func (msg *MsgCreateCampaign) EmitEvent(ctx *sdk.Context, uid string)
- func (m *MsgCreateCampaign) GetCreator() string
- func (msg *MsgCreateCampaign) GetSignBytes() []byte
- func (msg *MsgCreateCampaign) GetSigners() []sdk.AccAddress
- func (m *MsgCreateCampaign) GetTicket() string
- func (m *MsgCreateCampaign) GetUid() string
- func (m *MsgCreateCampaign) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCampaign) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCampaign) ProtoMessage()
- func (m *MsgCreateCampaign) Reset()
- func (msg *MsgCreateCampaign) Route() string
- func (m *MsgCreateCampaign) Size() (n int)
- func (m *MsgCreateCampaign) String() string
- func (msg *MsgCreateCampaign) Type() string
- func (m *MsgCreateCampaign) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateCampaign) ValidateBasic() error
- func (m *MsgCreateCampaign) XXX_DiscardUnknown()
- func (m *MsgCreateCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCampaign) XXX_Merge(src proto.Message)
- func (m *MsgCreateCampaign) XXX_Size() int
- func (m *MsgCreateCampaign) XXX_Unmarshal(b []byte) error
- type MsgCreateCampaignResponse
- func (*MsgCreateCampaignResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCampaignResponse) ProtoMessage()
- func (m *MsgCreateCampaignResponse) Reset()
- func (m *MsgCreateCampaignResponse) Size() (n int)
- func (m *MsgCreateCampaignResponse) String() string
- func (m *MsgCreateCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateCampaignResponse) XXX_DiscardUnknown()
- func (m *MsgCreateCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCampaignResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateCampaignResponse) XXX_Size() int
- func (m *MsgCreateCampaignResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePromoter
- func (*MsgCreatePromoter) Descriptor() ([]byte, []int)
- func (msg *MsgCreatePromoter) EmitEvent(ctx *sdk.Context, uid string, conf PromoterConf)
- func (m *MsgCreatePromoter) GetCreator() string
- func (msg *MsgCreatePromoter) GetSignBytes() []byte
- func (msg *MsgCreatePromoter) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePromoter) GetTicket() string
- func (m *MsgCreatePromoter) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePromoter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePromoter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePromoter) ProtoMessage()
- func (m *MsgCreatePromoter) Reset()
- func (msg *MsgCreatePromoter) Route() string
- func (m *MsgCreatePromoter) Size() (n int)
- func (m *MsgCreatePromoter) String() string
- func (msg *MsgCreatePromoter) Type() string
- func (m *MsgCreatePromoter) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePromoter) ValidateBasic() error
- func (m *MsgCreatePromoter) XXX_DiscardUnknown()
- func (m *MsgCreatePromoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePromoter) XXX_Merge(src proto.Message)
- func (m *MsgCreatePromoter) XXX_Size() int
- func (m *MsgCreatePromoter) XXX_Unmarshal(b []byte) error
- type MsgCreatePromoterResponse
- func (*MsgCreatePromoterResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePromoterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePromoterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePromoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePromoterResponse) ProtoMessage()
- func (m *MsgCreatePromoterResponse) Reset()
- func (m *MsgCreatePromoterResponse) Size() (n int)
- func (m *MsgCreatePromoterResponse) String() string
- func (m *MsgCreatePromoterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePromoterResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePromoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePromoterResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePromoterResponse) XXX_Size() int
- func (m *MsgCreatePromoterResponse) XXX_Unmarshal(b []byte) error
- type MsgGrantReward
- func (*MsgGrantReward) Descriptor() ([]byte, []int)
- func (msg *MsgGrantReward) EmitEvent(ctx *sdk.Context, campaignUID string, rewardUID, promoterAddr string, ...)
- func (m *MsgGrantReward) GetCampaignUid() string
- func (m *MsgGrantReward) GetCreator() string
- func (msg *MsgGrantReward) GetSignBytes() []byte
- func (msg *MsgGrantReward) GetSigners() []sdk.AccAddress
- func (m *MsgGrantReward) GetTicket() string
- func (m *MsgGrantReward) GetUid() string
- func (m *MsgGrantReward) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantReward) ProtoMessage()
- func (m *MsgGrantReward) Reset()
- func (msg *MsgGrantReward) Route() string
- func (m *MsgGrantReward) Size() (n int)
- func (m *MsgGrantReward) String() string
- func (msg *MsgGrantReward) Type() string
- func (m *MsgGrantReward) Unmarshal(dAtA []byte) error
- func (msg *MsgGrantReward) ValidateBasic() error
- func (m *MsgGrantReward) XXX_DiscardUnknown()
- func (m *MsgGrantReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantReward) XXX_Merge(src proto.Message)
- func (m *MsgGrantReward) XXX_Size() int
- func (m *MsgGrantReward) XXX_Unmarshal(b []byte) error
- type MsgGrantRewardResponse
- func (*MsgGrantRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgGrantRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantRewardResponse) ProtoMessage()
- func (m *MsgGrantRewardResponse) Reset()
- func (m *MsgGrantRewardResponse) Size() (n int)
- func (m *MsgGrantRewardResponse) String() string
- func (m *MsgGrantRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGrantRewardResponse) XXX_DiscardUnknown()
- func (m *MsgGrantRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgGrantRewardResponse) XXX_Size() int
- func (m *MsgGrantRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetPromoterConf
- func (*MsgSetPromoterConf) Descriptor() ([]byte, []int)
- func (msg *MsgSetPromoterConf) EmitEvent(ctx *sdk.Context, conf PromoterConf)
- func (m *MsgSetPromoterConf) GetCreator() string
- func (msg *MsgSetPromoterConf) GetSignBytes() []byte
- func (msg *MsgSetPromoterConf) GetSigners() []sdk.AccAddress
- func (m *MsgSetPromoterConf) GetTicket() string
- func (m *MsgSetPromoterConf) GetUid() string
- func (m *MsgSetPromoterConf) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPromoterConf) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPromoterConf) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPromoterConf) ProtoMessage()
- func (m *MsgSetPromoterConf) Reset()
- func (msg *MsgSetPromoterConf) Route() string
- func (m *MsgSetPromoterConf) Size() (n int)
- func (m *MsgSetPromoterConf) String() string
- func (msg *MsgSetPromoterConf) Type() string
- func (m *MsgSetPromoterConf) Unmarshal(dAtA []byte) error
- func (msg *MsgSetPromoterConf) ValidateBasic() error
- func (m *MsgSetPromoterConf) XXX_DiscardUnknown()
- func (m *MsgSetPromoterConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPromoterConf) XXX_Merge(src proto.Message)
- func (m *MsgSetPromoterConf) XXX_Size() int
- func (m *MsgSetPromoterConf) XXX_Unmarshal(b []byte) error
- type MsgSetPromoterConfResponse
- func (*MsgSetPromoterConfResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetPromoterConfResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPromoterConfResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPromoterConfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPromoterConfResponse) ProtoMessage()
- func (m *MsgSetPromoterConfResponse) Reset()
- func (m *MsgSetPromoterConfResponse) Size() (n int)
- func (m *MsgSetPromoterConfResponse) String() string
- func (m *MsgSetPromoterConfResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetPromoterConfResponse) XXX_DiscardUnknown()
- func (m *MsgSetPromoterConfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPromoterConfResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetPromoterConfResponse) XXX_Size() int
- func (m *MsgSetPromoterConfResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateCampaign
- func (*MsgUpdateCampaign) Descriptor() ([]byte, []int)
- func (msg *MsgUpdateCampaign) EmitEvent(ctx *sdk.Context, uid string)
- func (m *MsgUpdateCampaign) GetCreator() string
- func (msg *MsgUpdateCampaign) GetSignBytes() []byte
- func (msg *MsgUpdateCampaign) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateCampaign) GetTicket() string
- func (m *MsgUpdateCampaign) GetUid() string
- func (m *MsgUpdateCampaign) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCampaign) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCampaign) ProtoMessage()
- func (m *MsgUpdateCampaign) Reset()
- func (msg *MsgUpdateCampaign) Route() string
- func (m *MsgUpdateCampaign) Size() (n int)
- func (m *MsgUpdateCampaign) String() string
- func (msg *MsgUpdateCampaign) Type() string
- func (m *MsgUpdateCampaign) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateCampaign) ValidateBasic() error
- func (m *MsgUpdateCampaign) XXX_DiscardUnknown()
- func (m *MsgUpdateCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCampaign) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCampaign) XXX_Size() int
- func (m *MsgUpdateCampaign) XXX_Unmarshal(b []byte) error
- type MsgUpdateCampaignResponse
- func (*MsgUpdateCampaignResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCampaignResponse) ProtoMessage()
- func (m *MsgUpdateCampaignResponse) Reset()
- func (m *MsgUpdateCampaignResponse) Size() (n int)
- func (m *MsgUpdateCampaignResponse) String() string
- func (m *MsgUpdateCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateCampaignResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCampaignResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCampaignResponse) XXX_Size() int
- func (m *MsgUpdateCampaignResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (*MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (*MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawFunds
- func (*MsgWithdrawFunds) Descriptor() ([]byte, []int)
- func (msg *MsgWithdrawFunds) EmitEvent(ctx *sdk.Context, uid string)
- func (m *MsgWithdrawFunds) GetCreator() string
- func (msg *MsgWithdrawFunds) GetSignBytes() []byte
- func (msg *MsgWithdrawFunds) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawFunds) GetTicket() string
- func (m *MsgWithdrawFunds) GetUid() string
- func (m *MsgWithdrawFunds) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFunds) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFunds) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFunds) ProtoMessage()
- func (m *MsgWithdrawFunds) Reset()
- func (msg *MsgWithdrawFunds) Route() string
- func (m *MsgWithdrawFunds) Size() (n int)
- func (m *MsgWithdrawFunds) String() string
- func (msg *MsgWithdrawFunds) Type() string
- func (m *MsgWithdrawFunds) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawFunds) ValidateBasic() error
- func (m *MsgWithdrawFunds) XXX_DiscardUnknown()
- func (m *MsgWithdrawFunds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFunds) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFunds) XXX_Size() int
- func (m *MsgWithdrawFunds) XXX_Unmarshal(b []byte) error
- type MsgWithdrawFundsResponse
- func (*MsgWithdrawFundsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawFundsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFundsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFundsResponse) ProtoMessage()
- func (m *MsgWithdrawFundsResponse) Reset()
- func (m *MsgWithdrawFundsResponse) Size() (n int)
- func (m *MsgWithdrawFundsResponse) String() string
- func (m *MsgWithdrawFundsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawFundsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFundsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFundsResponse) XXX_Size() int
- func (m *MsgWithdrawFundsResponse) XXX_Unmarshal(b []byte) error
- type OVMKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Pool
- func (p *Pool) AvailableAmount() sdkmath.Int
- func (p *Pool) CheckBalance(toSpend sdkmath.Int) error
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (p *Pool) Spend(amount sdkmath.Int)
- func (m *Pool) String() string
- func (p *Pool) TopUp(amount sdkmath.Int)
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (p *Pool) Withdraw(amount sdkmath.Int)
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type Promoter
- func (*Promoter) Descriptor() ([]byte, []int)
- func (m *Promoter) GetAddresses() []string
- func (m *Promoter) GetConf() PromoterConf
- func (m *Promoter) GetCreator() string
- func (m *Promoter) GetUID() string
- func (m *Promoter) Marshal() (dAtA []byte, err error)
- func (m *Promoter) MarshalTo(dAtA []byte) (int, error)
- func (m *Promoter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Promoter) ProtoMessage()
- func (m *Promoter) Reset()
- func (m *Promoter) Size() (n int)
- func (m *Promoter) String() string
- func (m *Promoter) Unmarshal(dAtA []byte) error
- func (m *Promoter) XXX_DiscardUnknown()
- func (m *Promoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Promoter) XXX_Merge(src proto.Message)
- func (m *Promoter) XXX_Size() int
- func (m *Promoter) XXX_Unmarshal(b []byte) error
- type PromoterByAddress
- func (*PromoterByAddress) Descriptor() ([]byte, []int)
- func (m *PromoterByAddress) GetAddress() string
- func (m *PromoterByAddress) GetPromoterUID() string
- func (m *PromoterByAddress) Marshal() (dAtA []byte, err error)
- func (m *PromoterByAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *PromoterByAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PromoterByAddress) ProtoMessage()
- func (m *PromoterByAddress) Reset()
- func (m *PromoterByAddress) Size() (n int)
- func (m *PromoterByAddress) String() string
- func (m *PromoterByAddress) Unmarshal(dAtA []byte) error
- func (m *PromoterByAddress) XXX_DiscardUnknown()
- func (m *PromoterByAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PromoterByAddress) XXX_Merge(src proto.Message)
- func (m *PromoterByAddress) XXX_Size() int
- func (m *PromoterByAddress) XXX_Unmarshal(b []byte) error
- type PromoterConf
- func (*PromoterConf) Descriptor() ([]byte, []int)
- func (m *PromoterConf) GetCategoryCap() []CategoryCap
- func (m *PromoterConf) Marshal() (dAtA []byte, err error)
- func (m *PromoterConf) MarshalTo(dAtA []byte) (int, error)
- func (m *PromoterConf) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PromoterConf) ProtoMessage()
- func (m *PromoterConf) Reset()
- func (m *PromoterConf) Size() (n int)
- func (m *PromoterConf) String() string
- func (m *PromoterConf) Unmarshal(dAtA []byte) error
- func (cf *PromoterConf) Validate() error
- func (m *PromoterConf) XXX_DiscardUnknown()
- func (m *PromoterConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PromoterConf) XXX_Merge(src proto.Message)
- func (m *PromoterConf) XXX_Size() int
- func (m *PromoterConf) XXX_Unmarshal(b []byte) error
- type QueryCampaignRequest
- func (*QueryCampaignRequest) Descriptor() ([]byte, []int)
- func (m *QueryCampaignRequest) GetUid() string
- func (m *QueryCampaignRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCampaignRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCampaignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCampaignRequest) ProtoMessage()
- func (m *QueryCampaignRequest) Reset()
- func (m *QueryCampaignRequest) Size() (n int)
- func (m *QueryCampaignRequest) String() string
- func (m *QueryCampaignRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCampaignRequest) XXX_DiscardUnknown()
- func (m *QueryCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCampaignRequest) XXX_Merge(src proto.Message)
- func (m *QueryCampaignRequest) XXX_Size() int
- func (m *QueryCampaignRequest) XXX_Unmarshal(b []byte) error
- type QueryCampaignResponse
- func (*QueryCampaignResponse) Descriptor() ([]byte, []int)
- func (m *QueryCampaignResponse) GetCampaign() Campaign
- func (m *QueryCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCampaignResponse) ProtoMessage()
- func (m *QueryCampaignResponse) Reset()
- func (m *QueryCampaignResponse) Size() (n int)
- func (m *QueryCampaignResponse) String() string
- func (m *QueryCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCampaignResponse) XXX_DiscardUnknown()
- func (m *QueryCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCampaignResponse) XXX_Merge(src proto.Message)
- func (m *QueryCampaignResponse) XXX_Size() int
- func (m *QueryCampaignResponse) XXX_Unmarshal(b []byte) error
- type QueryCampaignsRequest
- func (*QueryCampaignsRequest) Descriptor() ([]byte, []int)
- func (m *QueryCampaignsRequest) GetPagination() *query.PageRequest
- func (m *QueryCampaignsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCampaignsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCampaignsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCampaignsRequest) ProtoMessage()
- func (m *QueryCampaignsRequest) Reset()
- func (m *QueryCampaignsRequest) Size() (n int)
- func (m *QueryCampaignsRequest) String() string
- func (m *QueryCampaignsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCampaignsRequest) XXX_DiscardUnknown()
- func (m *QueryCampaignsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCampaignsRequest) XXX_Merge(src proto.Message)
- func (m *QueryCampaignsRequest) XXX_Size() int
- func (m *QueryCampaignsRequest) XXX_Unmarshal(b []byte) error
- type QueryCampaignsResponse
- func (*QueryCampaignsResponse) Descriptor() ([]byte, []int)
- func (m *QueryCampaignsResponse) GetCampaign() []Campaign
- func (m *QueryCampaignsResponse) GetPagination() *query.PageResponse
- func (m *QueryCampaignsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCampaignsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCampaignsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCampaignsResponse) ProtoMessage()
- func (m *QueryCampaignsResponse) Reset()
- func (m *QueryCampaignsResponse) Size() (n int)
- func (m *QueryCampaignsResponse) String() string
- func (m *QueryCampaignsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCampaignsResponse) XXX_DiscardUnknown()
- func (m *QueryCampaignsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCampaignsResponse) XXX_Merge(src proto.Message)
- func (m *QueryCampaignsResponse) XXX_Size() int
- func (m *QueryCampaignsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPromoterByAddressRequest
- func (*QueryPromoterByAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryPromoterByAddressRequest) GetAddr() string
- func (m *QueryPromoterByAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPromoterByAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPromoterByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPromoterByAddressRequest) ProtoMessage()
- func (m *QueryPromoterByAddressRequest) Reset()
- func (m *QueryPromoterByAddressRequest) Size() (n int)
- func (m *QueryPromoterByAddressRequest) String() string
- func (m *QueryPromoterByAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPromoterByAddressRequest) XXX_DiscardUnknown()
- func (m *QueryPromoterByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPromoterByAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryPromoterByAddressRequest) XXX_Size() int
- func (m *QueryPromoterByAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryPromoterByAddressResponse
- func (*QueryPromoterByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryPromoterByAddressResponse) GetPromoter() Promoter
- func (m *QueryPromoterByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPromoterByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPromoterByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPromoterByAddressResponse) ProtoMessage()
- func (m *QueryPromoterByAddressResponse) Reset()
- func (m *QueryPromoterByAddressResponse) Size() (n int)
- func (m *QueryPromoterByAddressResponse) String() string
- func (m *QueryPromoterByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPromoterByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryPromoterByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPromoterByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryPromoterByAddressResponse) XXX_Size() int
- func (m *QueryPromoterByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryPromotersRequest
- func (*QueryPromotersRequest) Descriptor() ([]byte, []int)
- func (m *QueryPromotersRequest) GetPagination() *query.PageRequest
- func (m *QueryPromotersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPromotersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPromotersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPromotersRequest) ProtoMessage()
- func (m *QueryPromotersRequest) Reset()
- func (m *QueryPromotersRequest) Size() (n int)
- func (m *QueryPromotersRequest) String() string
- func (m *QueryPromotersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPromotersRequest) XXX_DiscardUnknown()
- func (m *QueryPromotersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPromotersRequest) XXX_Merge(src proto.Message)
- func (m *QueryPromotersRequest) XXX_Size() int
- func (m *QueryPromotersRequest) XXX_Unmarshal(b []byte) error
- type QueryPromotersResponse
- func (*QueryPromotersResponse) Descriptor() ([]byte, []int)
- func (m *QueryPromotersResponse) GetPagination() *query.PageResponse
- func (m *QueryPromotersResponse) GetPromoter() []Promoter
- func (m *QueryPromotersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPromotersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPromotersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPromotersResponse) ProtoMessage()
- func (m *QueryPromotersResponse) Reset()
- func (m *QueryPromotersResponse) Size() (n int)
- func (m *QueryPromotersResponse) String() string
- func (m *QueryPromotersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPromotersResponse) XXX_DiscardUnknown()
- func (m *QueryPromotersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPromotersResponse) XXX_Merge(src proto.Message)
- func (m *QueryPromotersResponse) XXX_Size() int
- func (m *QueryPromotersResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardRequest
- func (*QueryRewardRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardRequest) GetUid() string
- func (m *QueryRewardRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardRequest) ProtoMessage()
- func (m *QueryRewardRequest) Reset()
- func (m *QueryRewardRequest) Size() (n int)
- func (m *QueryRewardRequest) String() string
- func (m *QueryRewardRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardRequest) XXX_DiscardUnknown()
- func (m *QueryRewardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardRequest) XXX_Size() int
- func (m *QueryRewardRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardResponse
- func (*QueryRewardResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardResponse) GetReward() Reward
- func (m *QueryRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardResponse) ProtoMessage()
- func (m *QueryRewardResponse) Reset()
- func (m *QueryRewardResponse) Size() (n int)
- func (m *QueryRewardResponse) String() string
- func (m *QueryRewardResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardResponse) XXX_DiscardUnknown()
- func (m *QueryRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardResponse) XXX_Size() int
- func (m *QueryRewardResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByAddressAndCategoryRequest
- func (*QueryRewardsByAddressAndCategoryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByAddressAndCategoryRequest) GetAddress() string
- func (m *QueryRewardsByAddressAndCategoryRequest) GetCategory() RewardCategory
- func (m *QueryRewardsByAddressAndCategoryRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsByAddressAndCategoryRequest) GetPromoterUid() string
- func (m *QueryRewardsByAddressAndCategoryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByAddressAndCategoryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByAddressAndCategoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByAddressAndCategoryRequest) ProtoMessage()
- func (m *QueryRewardsByAddressAndCategoryRequest) Reset()
- func (m *QueryRewardsByAddressAndCategoryRequest) Size() (n int)
- func (m *QueryRewardsByAddressAndCategoryRequest) String() string
- func (m *QueryRewardsByAddressAndCategoryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByAddressAndCategoryRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Size() int
- func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByAddressAndCategoryResponse
- func (*QueryRewardsByAddressAndCategoryResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByAddressAndCategoryResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsByAddressAndCategoryResponse) GetRewards() []RewardByCategory
- func (m *QueryRewardsByAddressAndCategoryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByAddressAndCategoryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByAddressAndCategoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByAddressAndCategoryResponse) ProtoMessage()
- func (m *QueryRewardsByAddressAndCategoryResponse) Reset()
- func (m *QueryRewardsByAddressAndCategoryResponse) Size() (n int)
- func (m *QueryRewardsByAddressAndCategoryResponse) String() string
- func (m *QueryRewardsByAddressAndCategoryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByAddressAndCategoryResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Size() int
- func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByAddressRequest
- func (*QueryRewardsByAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByAddressRequest) GetAddress() string
- func (m *QueryRewardsByAddressRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsByAddressRequest) GetPromoterUid() string
- func (m *QueryRewardsByAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByAddressRequest) ProtoMessage()
- func (m *QueryRewardsByAddressRequest) Reset()
- func (m *QueryRewardsByAddressRequest) Size() (n int)
- func (m *QueryRewardsByAddressRequest) String() string
- func (m *QueryRewardsByAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByAddressRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByAddressRequest) XXX_Size() int
- func (m *QueryRewardsByAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByAddressResponse
- func (*QueryRewardsByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByAddressResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsByAddressResponse) GetRewards() []RewardByCategory
- func (m *QueryRewardsByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByAddressResponse) ProtoMessage()
- func (m *QueryRewardsByAddressResponse) Reset()
- func (m *QueryRewardsByAddressResponse) Size() (n int)
- func (m *QueryRewardsByAddressResponse) String() string
- func (m *QueryRewardsByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByAddressResponse) XXX_Size() int
- func (m *QueryRewardsByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByCampaignRequest
- func (*QueryRewardsByCampaignRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByCampaignRequest) GetCampaignUid() string
- func (m *QueryRewardsByCampaignRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsByCampaignRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByCampaignRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByCampaignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByCampaignRequest) ProtoMessage()
- func (m *QueryRewardsByCampaignRequest) Reset()
- func (m *QueryRewardsByCampaignRequest) Size() (n int)
- func (m *QueryRewardsByCampaignRequest) String() string
- func (m *QueryRewardsByCampaignRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByCampaignRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByCampaignRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByCampaignRequest) XXX_Size() int
- func (m *QueryRewardsByCampaignRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByCampaignResponse
- func (*QueryRewardsByCampaignResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByCampaignResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsByCampaignResponse) GetRewards() []RewardByCampaign
- func (m *QueryRewardsByCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByCampaignResponse) ProtoMessage()
- func (m *QueryRewardsByCampaignResponse) Reset()
- func (m *QueryRewardsByCampaignResponse) Size() (n int)
- func (m *QueryRewardsByCampaignResponse) String() string
- func (m *QueryRewardsByCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByCampaignResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByCampaignResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByCampaignResponse) XXX_Size() int
- func (m *QueryRewardsByCampaignResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsRequest
- func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsRequest) ProtoMessage()
- func (m *QueryRewardsRequest) Reset()
- func (m *QueryRewardsRequest) Size() (n int)
- func (m *QueryRewardsRequest) String() string
- func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsRequest) XXX_Size() int
- func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsResponse
- func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsResponse) GetRewards() []Reward
- func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsResponse) ProtoMessage()
- func (m *QueryRewardsResponse) Reset()
- func (m *QueryRewardsResponse) Size() (n int)
- func (m *QueryRewardsResponse) String() string
- func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsResponse) XXX_Size() int
- func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Receiver
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)
- func (m *Reward) GetCampaignUID() string
- func (m *Reward) GetCreator() string
- func (m *Reward) GetMeta() string
- func (m *Reward) GetReceiver() string
- func (m *Reward) GetRewardAmount() *RewardAmount
- func (m *Reward) GetSourceUID() string
- func (m *Reward) GetUID() string
- func (m *Reward) Marshal() (dAtA []byte, err error)
- func (m *Reward) MarshalTo(dAtA []byte) (int, error)
- func (m *Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Reward) ProtoMessage()
- func (m *Reward) Reset()
- func (m *Reward) Size() (n int)
- func (m *Reward) String() string
- func (m *Reward) Unmarshal(dAtA []byte) error
- func (m *Reward) XXX_DiscardUnknown()
- func (m *Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reward) XXX_Merge(src proto.Message)
- func (m *Reward) XXX_Size() int
- func (m *Reward) XXX_Unmarshal(b []byte) error
- type RewardAmount
- func (*RewardAmount) Descriptor() ([]byte, []int)
- func (m *RewardAmount) GetUnlockPeriod() uint64
- func (m *RewardAmount) Marshal() (dAtA []byte, err error)
- func (m *RewardAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardAmount) ProtoMessage()
- func (m *RewardAmount) Reset()
- func (m *RewardAmount) Size() (n int)
- func (m *RewardAmount) String() string
- func (m *RewardAmount) Unmarshal(dAtA []byte) error
- func (m *RewardAmount) XXX_DiscardUnknown()
- func (m *RewardAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardAmount) XXX_Merge(src proto.Message)
- func (m *RewardAmount) XXX_Size() int
- func (m *RewardAmount) XXX_Unmarshal(b []byte) error
- type RewardAmountType
- type RewardByCampaign
- func (*RewardByCampaign) Descriptor() ([]byte, []int)
- func (m *RewardByCampaign) GetCampaignUID() string
- func (m *RewardByCampaign) GetUID() string
- func (m *RewardByCampaign) Marshal() (dAtA []byte, err error)
- func (m *RewardByCampaign) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardByCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardByCampaign) ProtoMessage()
- func (m *RewardByCampaign) Reset()
- func (m *RewardByCampaign) Size() (n int)
- func (m *RewardByCampaign) String() string
- func (m *RewardByCampaign) Unmarshal(dAtA []byte) error
- func (m *RewardByCampaign) XXX_DiscardUnknown()
- func (m *RewardByCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardByCampaign) XXX_Merge(src proto.Message)
- func (m *RewardByCampaign) XXX_Size() int
- func (m *RewardByCampaign) XXX_Unmarshal(b []byte) error
- type RewardByCategory
- func (*RewardByCategory) Descriptor() ([]byte, []int)
- func (m *RewardByCategory) GetAddr() string
- func (m *RewardByCategory) GetRewardCategory() RewardCategory
- func (m *RewardByCategory) GetUID() string
- func (m *RewardByCategory) Marshal() (dAtA []byte, err error)
- func (m *RewardByCategory) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardByCategory) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardByCategory) ProtoMessage()
- func (m *RewardByCategory) Reset()
- func (m *RewardByCategory) Size() (n int)
- func (m *RewardByCategory) String() string
- func (m *RewardByCategory) Unmarshal(dAtA []byte) error
- func (m *RewardByCategory) XXX_DiscardUnknown()
- func (m *RewardByCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardByCategory) XXX_Merge(src proto.Message)
- func (m *RewardByCategory) XXX_Size() int
- func (m *RewardByCategory) XXX_Unmarshal(b []byte) error
- type RewardCategory
- type RewardFactoryData
- type RewardFactoryKeepers
- type RewardKeeper
- type RewardPayloadCommon
- func (*RewardPayloadCommon) Descriptor() ([]byte, []int)
- func (m *RewardPayloadCommon) GetKycData() *types.KycDataPayload
- func (m *RewardPayloadCommon) GetMeta() string
- func (m *RewardPayloadCommon) GetReceiver() string
- func (m *RewardPayloadCommon) GetSourceUID() string
- func (m *RewardPayloadCommon) Marshal() (dAtA []byte, err error)
- func (m *RewardPayloadCommon) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardPayloadCommon) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardPayloadCommon) ProtoMessage()
- func (m *RewardPayloadCommon) Reset()
- func (m *RewardPayloadCommon) Size() (n int)
- func (m *RewardPayloadCommon) String() string
- func (m *RewardPayloadCommon) Unmarshal(dAtA []byte) error
- func (payload *RewardPayloadCommon) Validate() error
- func (m *RewardPayloadCommon) XXX_DiscardUnknown()
- func (m *RewardPayloadCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardPayloadCommon) XXX_Merge(src proto.Message)
- func (m *RewardPayloadCommon) XXX_Size() int
- func (m *RewardPayloadCommon) XXX_Unmarshal(b []byte) error
- type RewardPoolFunder
- type RewardType
- type SetPromoterConfPayload
- func (*SetPromoterConfPayload) Descriptor() ([]byte, []int)
- func (m *SetPromoterConfPayload) GetConf() PromoterConf
- func (m *SetPromoterConfPayload) Marshal() (dAtA []byte, err error)
- func (m *SetPromoterConfPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SetPromoterConfPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetPromoterConfPayload) ProtoMessage()
- func (m *SetPromoterConfPayload) Reset()
- func (m *SetPromoterConfPayload) Size() (n int)
- func (m *SetPromoterConfPayload) String() string
- func (m *SetPromoterConfPayload) Unmarshal(dAtA []byte) error
- func (payload *SetPromoterConfPayload) Validate() error
- func (m *SetPromoterConfPayload) XXX_DiscardUnknown()
- func (m *SetPromoterConfPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetPromoterConfPayload) XXX_Merge(src proto.Message)
- func (m *SetPromoterConfPayload) XXX_Size() int
- func (m *SetPromoterConfPayload) XXX_Unmarshal(b []byte) error
- type SignUpAffiliateeReward
- type SignUpAffiliatorReward
- type SignUpRefereelReward
- type SignUpReferrerReward
- type SignUpReward
- type SubaccountKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateCampaign(ctx context.Context, req *MsgCreateCampaign) (*MsgCreateCampaignResponse, error)
- func (*UnimplementedMsgServer) CreatePromoter(ctx context.Context, req *MsgCreatePromoter) (*MsgCreatePromoterResponse, error)
- func (*UnimplementedMsgServer) GrantReward(ctx context.Context, req *MsgGrantReward) (*MsgGrantRewardResponse, error)
- func (*UnimplementedMsgServer) SetPromoterConf(ctx context.Context, req *MsgSetPromoterConf) (*MsgSetPromoterConfResponse, error)
- func (*UnimplementedMsgServer) UpdateCampaign(ctx context.Context, req *MsgUpdateCampaign) (*MsgUpdateCampaignResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) WithdrawFunds(ctx context.Context, req *MsgWithdrawFunds) (*MsgWithdrawFundsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Campaign(ctx context.Context, req *QueryCampaignRequest) (*QueryCampaignResponse, error)
- func (*UnimplementedQueryServer) Campaigns(ctx context.Context, req *QueryCampaignsRequest) (*QueryCampaignsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PromoterByAddress(ctx context.Context, req *QueryPromoterByAddressRequest) (*QueryPromoterByAddressResponse, error)
- func (*UnimplementedQueryServer) Promoters(ctx context.Context, req *QueryPromotersRequest) (*QueryPromotersResponse, error)
- func (*UnimplementedQueryServer) Reward(ctx context.Context, req *QueryRewardRequest) (*QueryRewardResponse, error)
- func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)
- func (*UnimplementedQueryServer) RewardsByAddress(ctx context.Context, req *QueryRewardsByAddressRequest) (*QueryRewardsByAddressResponse, error)
- func (*UnimplementedQueryServer) RewardsByAddressAndCategory(ctx context.Context, req *QueryRewardsByAddressAndCategoryRequest) (*QueryRewardsByAddressAndCategoryResponse, error)
- func (*UnimplementedQueryServer) RewardsByCampaign(ctx context.Context, req *QueryRewardsByCampaignRequest) (*QueryRewardsByCampaignResponse, error)
- type UpdateCampaignAuthorization
- func (a UpdateCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
- func (*UpdateCampaignAuthorization) Descriptor() ([]byte, []int)
- func (m *UpdateCampaignAuthorization) Marshal() (dAtA []byte, err error)
- func (m *UpdateCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (UpdateCampaignAuthorization) MsgTypeURL() string
- func (*UpdateCampaignAuthorization) ProtoMessage()
- func (m *UpdateCampaignAuthorization) Reset()
- func (m *UpdateCampaignAuthorization) Size() (n int)
- func (m *UpdateCampaignAuthorization) String() string
- func (m *UpdateCampaignAuthorization) Unmarshal(dAtA []byte) error
- func (a UpdateCampaignAuthorization) ValidateBasic() error
- func (m *UpdateCampaignAuthorization) XXX_DiscardUnknown()
- func (m *UpdateCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateCampaignAuthorization) XXX_Merge(src proto.Message)
- func (m *UpdateCampaignAuthorization) XXX_Size() int
- func (m *UpdateCampaignAuthorization) XXX_Unmarshal(b []byte) error
- type UpdateCampaignPayload
- func (*UpdateCampaignPayload) Descriptor() ([]byte, []int)
- func (m *UpdateCampaignPayload) GetEndTs() uint64
- func (m *UpdateCampaignPayload) GetIsActive() bool
- func (m *UpdateCampaignPayload) Marshal() (dAtA []byte, err error)
- func (m *UpdateCampaignPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateCampaignPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateCampaignPayload) ProtoMessage()
- func (m *UpdateCampaignPayload) Reset()
- func (m *UpdateCampaignPayload) Size() (n int)
- func (m *UpdateCampaignPayload) String() string
- func (m *UpdateCampaignPayload) Unmarshal(dAtA []byte) error
- func (payload *UpdateCampaignPayload) Validate(blockTime uint64) error
- func (m *UpdateCampaignPayload) XXX_DiscardUnknown()
- func (m *UpdateCampaignPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateCampaignPayload) XXX_Merge(src proto.Message)
- func (m *UpdateCampaignPayload) XXX_Size() int
- func (m *UpdateCampaignPayload) XXX_Unmarshal(b []byte) error
- type WithdrawCampaignAuthorization
- func (a WithdrawCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
- func (*WithdrawCampaignAuthorization) Descriptor() ([]byte, []int)
- func (m *WithdrawCampaignAuthorization) Marshal() (dAtA []byte, err error)
- func (m *WithdrawCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (WithdrawCampaignAuthorization) MsgTypeURL() string
- func (*WithdrawCampaignAuthorization) ProtoMessage()
- func (m *WithdrawCampaignAuthorization) Reset()
- func (m *WithdrawCampaignAuthorization) Size() (n int)
- func (m *WithdrawCampaignAuthorization) String() string
- func (m *WithdrawCampaignAuthorization) Unmarshal(dAtA []byte) error
- func (a WithdrawCampaignAuthorization) ValidateBasic() error
- func (m *WithdrawCampaignAuthorization) XXX_DiscardUnknown()
- func (m *WithdrawCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawCampaignAuthorization) XXX_Merge(src proto.Message)
- func (m *WithdrawCampaignAuthorization) XXX_Size() int
- func (m *WithdrawCampaignAuthorization) XXX_Unmarshal(b []byte) error
- type WithdrawFundsPayload
- func (*WithdrawFundsPayload) Descriptor() ([]byte, []int)
- func (m *WithdrawFundsPayload) GetPromoter() string
- func (m *WithdrawFundsPayload) Marshal() (dAtA []byte, err error)
- func (m *WithdrawFundsPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawFundsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WithdrawFundsPayload) ProtoMessage()
- func (m *WithdrawFundsPayload) Reset()
- func (m *WithdrawFundsPayload) Size() (n int)
- func (m *WithdrawFundsPayload) String() string
- func (m *WithdrawFundsPayload) Unmarshal(dAtA []byte) error
- func (payload *WithdrawFundsPayload) Validate() error
- func (m *WithdrawFundsPayload) XXX_DiscardUnknown()
- func (m *WithdrawFundsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawFundsPayload) XXX_Merge(src proto.Message)
- func (m *WithdrawFundsPayload) XXX_Size() int
- func (m *WithdrawFundsPayload) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "reward" // 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_reward" )
const ( TypeMsgCreateCampaign = "create_campaign" TypeMsgUpdateCampaign = "update_campaign" TypeMsgWithdrawFunds = "withdraw_funds" )
const ( TypeMsgSetPromoterConf = "set_promoter_conf" TypeMsgCreatePromoter = "create_promoter" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
TypeMsgGrantReward = "apply_reward"
)
Variables ¶
var ( ErrInvalidLengthAuthz = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuthz = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthCampaign = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCampaign = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCampaign = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInTicketVerification = sdkerrors.Register(ModuleName, 7100, "ticket verification failed") ErrInTicketValidation = sdkerrors.Register(ModuleName, 7101, "ticket validation failed") ErrAuthorizationNotFound = sdkerrors.Register(ModuleName, 7102, "no authorization found") ErrAuthorizationNotAccepted = sdkerrors.Register(ModuleName, 7103, "authorization not accepted") ErrorBank = sdkerrors.Register(ModuleName, 7104, "bank error") ErrExpiredCampaign = sdkerrors.Register(ModuleName, 7105, "campaign is expired") ErrCampaignPoolBalance = sdkerrors.Register(ModuleName, 7106, "not enough campaign pool balance") ErrUnknownRewardType = sdkerrors.Register(ModuleName, 7107, "unknown reward type") ErrInFundingCampaignPool = sdkerrors.Register(ModuleName, 7108, "error in funding the campaign pool") ErrWithdrawFromCampaignPool = sdkerrors.Register(ModuleName, 7109, "error in withdrawing from the campaign pool") ErrCampaignEnded = sdkerrors.Register(ModuleName, 7110, "campaign validity period is ended") ErrInsufficientPoolBalance = sdkerrors.Register(ModuleName, 7111, "insufficient campaign pool balance") ErrInDistributionOfRewards = sdkerrors.Register(ModuleName, 7112, "reward distribution failed") ErrInvalidGranteeType = sdkerrors.Register(ModuleName, 7113, "inappropriate reward grantee account type") ErrWrongRewardCategory = sdkerrors.Register(ModuleName, 7114, "wrong reward category") ErrMissingDefinition = sdkerrors.Register(ModuleName, 7115, "missing reward definition") ErrSubaccountRewardTopUp = sdkerrors.Register(ModuleName, 7116, "subaccount reward topup failed") ErrUnlockTSIsSubAccOnly = sdkerrors.Register(ModuleName, 7117, "unlock timestamp is allowed for subaccount only") ErrUnlockTSDefBeforeBlockTime = sdkerrors.Register(ModuleName, 7118, "unlock timestamp should not be before the current block time") ErrInvalidNoLossBetUID = sdkerrors.Register(ModuleName, 7120, "invalid no loss bet uid") ErrWrongAmountForType = sdkerrors.Register(ModuleName, 7121, "wrong amount for account type") ErrSubaccountCreationFailed = sdkerrors.Register(ModuleName, 7122, "subaccount creation failed") ErrWrongRewardAmountType = sdkerrors.Register(ModuleName, 7123, "wrong reward amount type") ErrUnknownAccType = sdkerrors.Register(ModuleName, 7124, "unknown account type") ErrReceiverAddrCanNotBeSubaccount = sdkerrors.Register(ModuleName, 7125, "receiver account can not be sub account address") ErrInvalidFunds = sdkerrors.Register(ModuleName, 7126, "invalid funds") ErrCampaignHasNotStarted = sdkerrors.Register(ModuleName, 7127, "campaign validity period is not started yet") ErrUserKycFailed = sdkerrors.Register(ModuleName, 7128, "KYC Validation failed for receiver account address") ErrUserKycNotProvided = sdkerrors.Register(ModuleName, 7129, "KYC data not provided") ErrDuplicateCategoryInConf = sdkerrors.Register(ModuleName, 7130, "duplicate category in promoter configurations") ErrCategoryCapShouldBePos = sdkerrors.Register(ModuleName, 7131, "category cap should be a positive number") ErrMissingConstraintForCampaign = sdkerrors.Register(ModuleName, 7132, "missing constraints in the campaign") )
x/reward module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // PromoterKeyPrefix is the prefix to retrieve all promoter PromoterKeyPrefix = []byte{0x04} // PromoterAddressKeyPrefix is the prefix to retrieve all addresses promoter PromoterAddressKeyPrefix = []byte{0x05} )
var ( // RewardKeyPrefix is the prefix to retrieve all applied rewards RewardKeyPrefix = []byte{0x01} // RewardByReceiverAndCategoryKeyPrefix is the prefix to retrieve all applied rewards for a certain receiver account. RewardByReceiverAndCategoryKeyPrefix = []byte{0x02} // RewardByCampaignKeyPrefix is the prefix to retrieve all applied rewards for a certain campaign. RewardByCampaignKeyPrefix = []byte{0x03} // RewardGrantStatKeyPrefix is the prefix to retrieve count of reward grants for a certain account. RewardGrantStatKeyPrefix = []byte{0x06} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPromoter = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPromoter = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPromoter = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthReward = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReward = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupReward = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTicket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTicket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTicket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var CampaignKeyPrefix = []byte{0x00}
CampaignKeyPrefix is the prefix to retrieve all Campaign
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var RewardAmountType_name = map[int32]string{
0: "REWARD_AMOUNT_TYPE_UNSPECIFIED",
1: "REWARD_AMOUNT_TYPE_FIXED",
2: "REWARD_AMOUNT_TYPE_LOGIC",
3: "REWARD_AMOUNT_TYPE_PERCENTAGE",
}
var RewardAmountType_value = map[string]int32{
"REWARD_AMOUNT_TYPE_UNSPECIFIED": 0,
"REWARD_AMOUNT_TYPE_FIXED": 1,
"REWARD_AMOUNT_TYPE_LOGIC": 2,
"REWARD_AMOUNT_TYPE_PERCENTAGE": 3,
}
var RewardCategory_name = map[int32]string{
0: "REWARD_CATEGORY_UNSPECIFIED",
1: "REWARD_CATEGORY_SIGNUP",
2: "REWARD_CATEGORY_REFERRAL",
3: "REWARD_CATEGORY_AFFILIATE",
4: "REWARD_CATEGORY_BET_REFUND",
5: "REWARD_CATEGORY_MILESTONE",
6: "REWARD_CATEGORY_BET_DISCOUNT",
7: "REWARD_CATEGORY_OTHER",
}
var RewardCategory_value = map[string]int32{
"REWARD_CATEGORY_UNSPECIFIED": 0,
"REWARD_CATEGORY_SIGNUP": 1,
"REWARD_CATEGORY_REFERRAL": 2,
"REWARD_CATEGORY_AFFILIATE": 3,
"REWARD_CATEGORY_BET_REFUND": 4,
"REWARD_CATEGORY_MILESTONE": 5,
"REWARD_CATEGORY_BET_DISCOUNT": 6,
"REWARD_CATEGORY_OTHER": 7,
}
var RewardType_name = map[int32]string{
0: "REWARD_TYPE_UNSPECIFIED",
1: "REWARD_TYPE_SIGNUP",
2: "REWARD_TYPE_REFERRAL_SIGNUP",
3: "REWARD_TYPE_AFFILIATE_SIGNUP",
4: "REWARD_TYPE_REFERRAL",
5: "REWARD_TYPE_AFFILIATE",
6: "REWARD_TYPE_BET_REFUND",
7: "REWARD_TYPE_MILESTONE",
8: "REWARD_TYPE_BET_DISCOUNT",
9: "REWARD_TYPE_OTHER",
}
var RewardType_value = map[string]int32{
"REWARD_TYPE_UNSPECIFIED": 0,
"REWARD_TYPE_SIGNUP": 1,
"REWARD_TYPE_REFERRAL_SIGNUP": 2,
"REWARD_TYPE_AFFILIATE_SIGNUP": 3,
"REWARD_TYPE_REFERRAL": 4,
"REWARD_TYPE_AFFILIATE": 5,
"REWARD_TYPE_BET_REFUND": 6,
"REWARD_TYPE_MILESTONE": 7,
"REWARD_TYPE_BET_DISCOUNT": 8,
"REWARD_TYPE_OTHER": 9,
}
Functions ¶
func GetCampaignKey ¶
GetCampaignKey returns the store key to retrieve a Campaign from the index fields
func GetPromoterByAddressKey ¶ added in v1.4.5
GetPromoterByAddressKey returns the promoter of a certain promoter address.
func GetPromoterKey ¶ added in v1.4.5
GetPromoterKey returns the store key to retrieve a promoter
func GetRewardGrantStatKey ¶ added in v1.4.5
GetRewardGrantStatKey returns the store key to retrieve a certain account.
func GetRewardKey ¶
GetRewardKey returns the store key to retrieve a certain reward.
func GetRewardsByCampaignKey ¶
GetRewardsByCampaignKey returns the store key to retrieve applied reward of a certain campaign this should be used with RewardKeyPrefix
func GetRewardsByCampaignPrefix ¶
GetRewardsByCampaignPrefix returns the store key to retrieve list of all applied rewards of a certain campaign this should be used with RewardKeyPrefix
func GetRewardsOfReceiverByPromoterAndCategoryKey ¶ added in v1.4.5
func GetRewardsOfReceiverByPromoterAndCategoryKey(promoterUID, receiverAcc string, rewardCategory RewardCategory, uid string) []byte
GetRewardsOfReceiverByPromoterAndCategoryKey returns the store key to retrieve list of applied reward of certain address and category
func GetRewardsOfReceiverByPromoterAndCategoryPrefix ¶ added in v1.4.5
func GetRewardsOfReceiverByPromoterAndCategoryPrefix(promoterUID, receiverAcc string, rewardCategory RewardCategory) []byte
GetRewardsOfReceiverByPromoterAndCategoryPrefix returns the store key to retrieve list of all applied rewards of certain address and category
func GetRewardsOfReceiverByPromoterPrefix ¶ added in v1.4.5
GetRewardsOfReceiverByPromoterPrefix returns the store key to retrieve list of all applied rewards of a certain campaign this should be used with RewardByReceiverKeyPrefix
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetModuleAddress(moduleName string) sdk.AccAddress }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AuthzKeeper ¶
type AuthzKeeper interface { GetAuthorization( ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string, ) (authz.Authorization, *time.Time) SaveGrant( ctx sdk.Context, grantee, granter sdk.AccAddress, authorization authz.Authorization, expiration *time.Time, ) error DeleteGrant( ctx sdk.Context, grantee, granter sdk.AccAddress, msgType string, ) error }
AuthzKeeper defines the expected authz keeper.
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, ecipientModule string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type BetBonusReward ¶ added in v1.4.5
type BetBonusReward struct{}
BetBonusReward is the type for bet bonus rewards calculations
func NewBetBonusReward ¶ added in v1.4.5
func NewBetBonusReward() BetBonusReward
NewBetBonusReward create new object of bet bonus reward calculator type.
func (BetBonusReward) Calculate ¶ added in v1.4.5
func (sur BetBonusReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of bet bonus reward.
func (BetBonusReward) ValidateCampaign ¶ added in v1.4.5
func (sur BetBonusReward) ValidateCampaign(campaign Campaign) error
ValidateCampaign validates campaign definitions.
type BetKeeper ¶
type BetKeeper interface { GetBet(ctx sdk.Context, creator string, id uint64) (val bettypes.Bet, found bool) GetBetID(ctx sdk.Context, uid string) (val bettypes.UID2ID, found bool) }
BetKeeper defines the expected interface needed to access bet state.
type Campaign ¶
type Campaign struct { // creator is the address of campaign creator. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of a campaign. UID string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` // promoter is the address of campaign promoter. // Funds for the campaign would be deducted from this account. Promoter string `protobuf:"bytes,3,opt,name=promoter,proto3" json:"promoter,omitempty"` // start_ts is the start timestamp of a campaign. StartTS uint64 `protobuf:"varint,4,opt,name=start_ts,proto3" json:"start_ts"` // end_ts is the end timestamp of a campaign. EndTS uint64 `protobuf:"varint,5,opt,name=end_ts,proto3" json:"end_ts"` // reward_category is the category of reward. RewardCategory RewardCategory `` /* 146-byte string literal not displayed */ // reward_type is the type of reward. RewardType RewardType `` /* 130-byte string literal not displayed */ // amount_type is the type of reward amount. RewardAmountType RewardAmountType `` /* 156-byte string literal not displayed */ // reward_amount is the amount defined for a reward. RewardAmount *RewardAmount `protobuf:"bytes,9,opt,name=reward_amount,json=rewardAmount,proto3" json:"reward_amount,omitempty"` // pool is the tracker of campaign funds. Pool Pool `protobuf:"bytes,10,opt,name=pool,proto3" json:"pool"` // is_active is the flag to check if the campaign is active or not. IsActive bool `protobuf:"varint,11,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // meta is the metadata of the campaign. // It is a stringified base64 encoded json. Meta string `protobuf:"bytes,13,opt,name=meta,proto3" json:"meta,omitempty"` // cap_count is the maximum allowed grant for a certain account. CapCount uint64 `protobuf:"varint,14,opt,name=cap_count,json=capCount,proto3" json:"cap_count,omitempty"` // constraints is the constrains of a campaign. Constraints *CampaignConstraints `protobuf:"bytes,15,opt,name=constraints,proto3" json:"constraints,omitempty"` }
Campaign is type for defining the campaign properties.
func NewCampaign ¶
func NewCampaign( creator, promoter, uID string, startTS, endTS uint64, rewardType RewardType, rewardCategory RewardCategory, rewardAmountType RewardAmountType, rewardAmount *RewardAmount, isActive bool, meta string, pool Pool, capCount uint64, constraint *CampaignConstraints, ) Campaign
func (*Campaign) CheckPoolBalance ¶
CheckPoolBalance checks if a pool balance of a capaign has enough fund to pay the rewards.
func (*Campaign) Descriptor ¶
func (*Campaign) GetCapCount ¶ added in v1.4.5
func (*Campaign) GetConstraints ¶ added in v1.4.5
func (m *Campaign) GetConstraints() *CampaignConstraints
func (*Campaign) GetCreator ¶
func (*Campaign) GetIsActive ¶
func (*Campaign) GetPromoter ¶
func (*Campaign) GetRewardAmount ¶
func (m *Campaign) GetRewardAmount() *RewardAmount
func (*Campaign) GetRewardAmountType ¶
func (m *Campaign) GetRewardAmountType() RewardAmountType
func (*Campaign) GetRewardCategory ¶
func (m *Campaign) GetRewardCategory() RewardCategory
func (*Campaign) GetRewardType ¶
func (m *Campaign) GetRewardType() RewardType
func (*Campaign) GetRewardsFactory ¶
func (c *Campaign) GetRewardsFactory() (IRewardFactory, error)
GetRewardsFactory returns reward factory according to the campaign.
func (*Campaign) GetStartTS ¶
func (*Campaign) MarshalToSizedBuffer ¶
func (*Campaign) ProtoMessage ¶
func (*Campaign) ProtoMessage()
func (*Campaign) XXX_DiscardUnknown ¶
func (m *Campaign) XXX_DiscardUnknown()
func (*Campaign) XXX_Marshal ¶
func (*Campaign) XXX_Unmarshal ¶
type CampaignConstraints ¶ added in v1.4.5
type CampaignConstraints struct {
MaxBetAmount cosmossdk_io_math.Int `` /* 144-byte string literal not displayed */
}
CampaignConstraints contains campaign constraints and criteria.
func (*CampaignConstraints) Descriptor ¶ added in v1.4.5
func (*CampaignConstraints) Descriptor() ([]byte, []int)
func (*CampaignConstraints) Marshal ¶ added in v1.4.5
func (m *CampaignConstraints) Marshal() (dAtA []byte, err error)
func (*CampaignConstraints) MarshalTo ¶ added in v1.4.5
func (m *CampaignConstraints) MarshalTo(dAtA []byte) (int, error)
func (*CampaignConstraints) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *CampaignConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CampaignConstraints) ProtoMessage ¶ added in v1.4.5
func (*CampaignConstraints) ProtoMessage()
func (*CampaignConstraints) Reset ¶ added in v1.4.5
func (m *CampaignConstraints) Reset()
func (*CampaignConstraints) Size ¶ added in v1.4.5
func (m *CampaignConstraints) Size() (n int)
func (*CampaignConstraints) String ¶ added in v1.4.5
func (m *CampaignConstraints) String() string
func (*CampaignConstraints) Unmarshal ¶ added in v1.4.5
func (m *CampaignConstraints) Unmarshal(dAtA []byte) error
func (*CampaignConstraints) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *CampaignConstraints) XXX_DiscardUnknown()
func (*CampaignConstraints) XXX_Marshal ¶ added in v1.4.5
func (m *CampaignConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CampaignConstraints) XXX_Merge ¶ added in v1.4.5
func (m *CampaignConstraints) XXX_Merge(src proto.Message)
func (*CampaignConstraints) XXX_Size ¶ added in v1.4.5
func (m *CampaignConstraints) XXX_Size() int
func (*CampaignConstraints) XXX_Unmarshal ¶ added in v1.4.5
func (m *CampaignConstraints) XXX_Unmarshal(b []byte) error
type CategoryCap ¶ added in v1.4.5
type CategoryCap struct { Category RewardCategory `protobuf:"varint,1,opt,name=category,proto3,enum=sgenetwork.sge.reward.RewardCategory" json:"category,omitempty"` CapPerAcc int32 `protobuf:"varint,2,opt,name=cap_per_acc,json=capPerAcc,proto3" json:"cap_per_acc,omitempty"` }
CategoryCap is type to define category and its maximum cap.
func (*CategoryCap) Descriptor ¶ added in v1.4.5
func (*CategoryCap) Descriptor() ([]byte, []int)
func (*CategoryCap) GetCapPerAcc ¶ added in v1.4.5
func (m *CategoryCap) GetCapPerAcc() int32
func (*CategoryCap) GetCategory ¶ added in v1.4.5
func (m *CategoryCap) GetCategory() RewardCategory
func (*CategoryCap) Marshal ¶ added in v1.4.5
func (m *CategoryCap) Marshal() (dAtA []byte, err error)
func (*CategoryCap) MarshalTo ¶ added in v1.4.5
func (m *CategoryCap) MarshalTo(dAtA []byte) (int, error)
func (*CategoryCap) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *CategoryCap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CategoryCap) ProtoMessage ¶ added in v1.4.5
func (*CategoryCap) ProtoMessage()
func (*CategoryCap) Reset ¶ added in v1.4.5
func (m *CategoryCap) Reset()
func (*CategoryCap) Size ¶ added in v1.4.5
func (m *CategoryCap) Size() (n int)
func (*CategoryCap) String ¶ added in v1.4.5
func (m *CategoryCap) String() string
func (*CategoryCap) Unmarshal ¶ added in v1.4.5
func (m *CategoryCap) Unmarshal(dAtA []byte) error
func (*CategoryCap) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *CategoryCap) XXX_DiscardUnknown()
func (*CategoryCap) XXX_Marshal ¶ added in v1.4.5
func (m *CategoryCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CategoryCap) XXX_Merge ¶ added in v1.4.5
func (m *CategoryCap) XXX_Merge(src proto.Message)
func (*CategoryCap) XXX_Size ¶ added in v1.4.5
func (m *CategoryCap) XXX_Size() int
func (*CategoryCap) XXX_Unmarshal ¶ added in v1.4.5
func (m *CategoryCap) XXX_Unmarshal(b []byte) error
type CreateCampaignAuthorization ¶
type CreateCampaignAuthorization struct {
SpendLimit cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=spend_limit,json=spendLimit,proto3,customtype=cosmossdk.io/math.Int" json:"spend_limit"`
}
CreateCampaignAuthorization allows the grantee to spend up to spend_limit from the granter's account for create campaign.
func NewCreateCampaignAuthorization ¶
func NewCreateCampaignAuthorization(spendLimit sdkmath.Int) *CreateCampaignAuthorization
NewCreateCampaignAuthorization creates a new CreateCampaignAuthorization object.
func (CreateCampaignAuthorization) Accept ¶
func (a CreateCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*CreateCampaignAuthorization) Descriptor ¶
func (*CreateCampaignAuthorization) Descriptor() ([]byte, []int)
func (*CreateCampaignAuthorization) Marshal ¶
func (m *CreateCampaignAuthorization) Marshal() (dAtA []byte, err error)
func (*CreateCampaignAuthorization) MarshalTo ¶
func (m *CreateCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*CreateCampaignAuthorization) MarshalToSizedBuffer ¶
func (m *CreateCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (CreateCampaignAuthorization) MsgTypeURL ¶
func (CreateCampaignAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*CreateCampaignAuthorization) ProtoMessage ¶
func (*CreateCampaignAuthorization) ProtoMessage()
func (*CreateCampaignAuthorization) Reset ¶
func (m *CreateCampaignAuthorization) Reset()
func (*CreateCampaignAuthorization) Size ¶
func (m *CreateCampaignAuthorization) Size() (n int)
func (*CreateCampaignAuthorization) String ¶
func (m *CreateCampaignAuthorization) String() string
func (*CreateCampaignAuthorization) Unmarshal ¶
func (m *CreateCampaignAuthorization) Unmarshal(dAtA []byte) error
func (CreateCampaignAuthorization) ValidateBasic ¶
func (a CreateCampaignAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*CreateCampaignAuthorization) XXX_DiscardUnknown ¶
func (m *CreateCampaignAuthorization) XXX_DiscardUnknown()
func (*CreateCampaignAuthorization) XXX_Marshal ¶
func (m *CreateCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCampaignAuthorization) XXX_Merge ¶
func (m *CreateCampaignAuthorization) XXX_Merge(src proto.Message)
func (*CreateCampaignAuthorization) XXX_Size ¶
func (m *CreateCampaignAuthorization) XXX_Size() int
func (*CreateCampaignAuthorization) XXX_Unmarshal ¶
func (m *CreateCampaignAuthorization) XXX_Unmarshal(b []byte) error
type CreateCampaignPayload ¶
type CreateCampaignPayload struct { // promoter is the address of campaign promoter. // Funds for the campaign would be deducted from this account. Promoter string `protobuf:"bytes,1,opt,name=promoter,proto3" json:"promoter,omitempty"` // start_ts is the start timestamp of the campaign. StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // end_ts is the end timestamp of the campaign. EndTs uint64 `protobuf:"varint,3,opt,name=end_ts,json=endTs,proto3" json:"end_ts,omitempty"` // category is the category of the campaign. Category RewardCategory `protobuf:"varint,4,opt,name=category,proto3,enum=sgenetwork.sge.reward.RewardCategory" json:"category,omitempty"` // reward_type is the type of reward. RewardType RewardType `` /* 130-byte string literal not displayed */ // Reward amount RewardAmountType RewardAmountType `` /* 156-byte string literal not displayed */ // reward_amount is the amount of reward. RewardAmount *RewardAmount `protobuf:"bytes,7,opt,name=reward_amount,json=rewardAmount,proto3" json:"reward_amount,omitempty"` // is_active is the flag to check if the campaign is active or not. IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // meta is the metadata of the campaign. // It is a stringified base64 encoded json. Meta string `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"` // cap_count is the maximum allowed grant for a certain account. CapCount uint64 `protobuf:"varint,11,opt,name=cap_count,json=capCount,proto3" json:"cap_count,omitempty"` // constraints is the constrains of a campaign. Constraints *CampaignConstraints `protobuf:"bytes,12,opt,name=constraints,proto3" json:"constraints,omitempty"` }
CreateCampaignPayload is the type for campaign creation payload.
func (*CreateCampaignPayload) Descriptor ¶
func (*CreateCampaignPayload) Descriptor() ([]byte, []int)
func (*CreateCampaignPayload) GetCapCount ¶ added in v1.4.5
func (m *CreateCampaignPayload) GetCapCount() uint64
func (*CreateCampaignPayload) GetCategory ¶
func (m *CreateCampaignPayload) GetCategory() RewardCategory
func (*CreateCampaignPayload) GetConstraints ¶ added in v1.4.5
func (m *CreateCampaignPayload) GetConstraints() *CampaignConstraints
func (*CreateCampaignPayload) GetEndTs ¶
func (m *CreateCampaignPayload) GetEndTs() uint64
func (*CreateCampaignPayload) GetIsActive ¶
func (m *CreateCampaignPayload) GetIsActive() bool
func (*CreateCampaignPayload) GetMeta ¶
func (m *CreateCampaignPayload) GetMeta() string
func (*CreateCampaignPayload) GetPromoter ¶
func (m *CreateCampaignPayload) GetPromoter() string
func (*CreateCampaignPayload) GetRewardAmount ¶
func (m *CreateCampaignPayload) GetRewardAmount() *RewardAmount
func (*CreateCampaignPayload) GetRewardAmountType ¶
func (m *CreateCampaignPayload) GetRewardAmountType() RewardAmountType
func (*CreateCampaignPayload) GetRewardType ¶
func (m *CreateCampaignPayload) GetRewardType() RewardType
func (*CreateCampaignPayload) GetStartTs ¶
func (m *CreateCampaignPayload) GetStartTs() uint64
func (*CreateCampaignPayload) Marshal ¶
func (m *CreateCampaignPayload) Marshal() (dAtA []byte, err error)
func (*CreateCampaignPayload) MarshalTo ¶
func (m *CreateCampaignPayload) MarshalTo(dAtA []byte) (int, error)
func (*CreateCampaignPayload) MarshalToSizedBuffer ¶
func (m *CreateCampaignPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateCampaignPayload) ProtoMessage ¶
func (*CreateCampaignPayload) ProtoMessage()
func (*CreateCampaignPayload) Reset ¶
func (m *CreateCampaignPayload) Reset()
func (*CreateCampaignPayload) Size ¶
func (m *CreateCampaignPayload) Size() (n int)
func (*CreateCampaignPayload) String ¶
func (m *CreateCampaignPayload) String() string
func (*CreateCampaignPayload) Unmarshal ¶
func (m *CreateCampaignPayload) Unmarshal(dAtA []byte) error
func (*CreateCampaignPayload) Validate ¶
func (payload *CreateCampaignPayload) Validate(blockTime uint64) error
Validate validates campaign creation ticket payload.
func (*CreateCampaignPayload) XXX_DiscardUnknown ¶
func (m *CreateCampaignPayload) XXX_DiscardUnknown()
func (*CreateCampaignPayload) XXX_Marshal ¶
func (m *CreateCampaignPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCampaignPayload) XXX_Merge ¶
func (m *CreateCampaignPayload) XXX_Merge(src proto.Message)
func (*CreateCampaignPayload) XXX_Size ¶
func (m *CreateCampaignPayload) XXX_Size() int
func (*CreateCampaignPayload) XXX_Unmarshal ¶
func (m *CreateCampaignPayload) XXX_Unmarshal(b []byte) error
type CreatePromoterPayload ¶ added in v1.4.5
type CreatePromoterPayload struct { // uid is the uid of the promoter to be created UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` Conf PromoterConf `protobuf:"bytes,2,opt,name=conf,proto3" json:"conf"` }
CreatePromoterPayload is the payload for the promoter create.
func (*CreatePromoterPayload) Descriptor ¶ added in v1.4.5
func (*CreatePromoterPayload) Descriptor() ([]byte, []int)
func (*CreatePromoterPayload) GetConf ¶ added in v1.4.5
func (m *CreatePromoterPayload) GetConf() PromoterConf
func (*CreatePromoterPayload) GetUID ¶ added in v1.4.5
func (m *CreatePromoterPayload) GetUID() string
func (*CreatePromoterPayload) Marshal ¶ added in v1.4.5
func (m *CreatePromoterPayload) Marshal() (dAtA []byte, err error)
func (*CreatePromoterPayload) MarshalTo ¶ added in v1.4.5
func (m *CreatePromoterPayload) MarshalTo(dAtA []byte) (int, error)
func (*CreatePromoterPayload) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *CreatePromoterPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreatePromoterPayload) ProtoMessage ¶ added in v1.4.5
func (*CreatePromoterPayload) ProtoMessage()
func (*CreatePromoterPayload) Reset ¶ added in v1.4.5
func (m *CreatePromoterPayload) Reset()
func (*CreatePromoterPayload) Size ¶ added in v1.4.5
func (m *CreatePromoterPayload) Size() (n int)
func (*CreatePromoterPayload) String ¶ added in v1.4.5
func (m *CreatePromoterPayload) String() string
func (*CreatePromoterPayload) Unmarshal ¶ added in v1.4.5
func (m *CreatePromoterPayload) Unmarshal(dAtA []byte) error
func (*CreatePromoterPayload) Validate ¶ added in v1.4.5
func (payload *CreatePromoterPayload) Validate() error
Validate validates promoter config set ticket payload.
func (*CreatePromoterPayload) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *CreatePromoterPayload) XXX_DiscardUnknown()
func (*CreatePromoterPayload) XXX_Marshal ¶ added in v1.4.5
func (m *CreatePromoterPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreatePromoterPayload) XXX_Merge ¶ added in v1.4.5
func (m *CreatePromoterPayload) XXX_Merge(src proto.Message)
func (*CreatePromoterPayload) XXX_Size ¶ added in v1.4.5
func (m *CreatePromoterPayload) XXX_Size() int
func (*CreatePromoterPayload) XXX_Unmarshal ¶ added in v1.4.5
func (m *CreatePromoterPayload) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` CampaignList []Campaign `protobuf:"bytes,2,rep,name=campaign_list,json=campaignList,proto3" json:"campaign_list"` RewardList []Reward `protobuf:"bytes,3,rep,name=reward_list,json=rewardList,proto3" json:"reward_list"` RewardByCategoryList []RewardByCategory `protobuf:"bytes,4,rep,name=reward_by_category_list,json=rewardByCategoryList,proto3" json:"reward_by_category_list"` RewardByCampaignList []RewardByCampaign `protobuf:"bytes,5,rep,name=reward_by_campaign_list,json=rewardByCampaignList,proto3" json:"reward_by_campaign_list"` PromoterList []Promoter `protobuf:"bytes,6,rep,name=promoter_list,json=promoterList,proto3" json:"promoter_list"` PromoterByAddressList []PromoterByAddress `protobuf:"bytes,7,rep,name=promoter_by_address_list,json=promoterByAddressList,proto3" json:"promoter_by_address_list"` }
GenesisState defines the reward module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCampaignList ¶
func (m *GenesisState) GetCampaignList() []Campaign
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPromoterByAddressList ¶ added in v1.4.5
func (m *GenesisState) GetPromoterByAddressList() []PromoterByAddress
func (*GenesisState) GetPromoterList ¶ added in v1.4.5
func (m *GenesisState) GetPromoterList() []Promoter
func (*GenesisState) GetRewardByCampaignList ¶
func (m *GenesisState) GetRewardByCampaignList() []RewardByCampaign
func (*GenesisState) GetRewardByCategoryList ¶
func (m *GenesisState) GetRewardByCategoryList() []RewardByCategory
func (*GenesisState) GetRewardList ¶
func (m *GenesisState) GetRewardList() []Reward
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GrantBetBonusRewardPayload ¶ added in v1.4.5
type GrantBetBonusRewardPayload struct { // common is the common properties of a reward Common RewardPayloadCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common"` // bet_uid is the list of uids BetUID string `protobuf:"bytes,2,opt,name=bet_uid,proto3" json:"bet_uid"` }
GrantBetBonusRewardPayload is the type for bet bonus reward grant payload.
func (*GrantBetBonusRewardPayload) Descriptor ¶ added in v1.4.5
func (*GrantBetBonusRewardPayload) Descriptor() ([]byte, []int)
func (*GrantBetBonusRewardPayload) GetBetUID ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) GetBetUID() string
func (*GrantBetBonusRewardPayload) GetCommon ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) GetCommon() RewardPayloadCommon
func (*GrantBetBonusRewardPayload) Marshal ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) Marshal() (dAtA []byte, err error)
func (*GrantBetBonusRewardPayload) MarshalTo ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) MarshalTo(dAtA []byte) (int, error)
func (*GrantBetBonusRewardPayload) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantBetBonusRewardPayload) ProtoMessage ¶ added in v1.4.5
func (*GrantBetBonusRewardPayload) ProtoMessage()
func (*GrantBetBonusRewardPayload) Reset ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) Reset()
func (*GrantBetBonusRewardPayload) Size ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) Size() (n int)
func (*GrantBetBonusRewardPayload) String ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) String() string
func (*GrantBetBonusRewardPayload) Unmarshal ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) Unmarshal(dAtA []byte) error
func (*GrantBetBonusRewardPayload) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) XXX_DiscardUnknown()
func (*GrantBetBonusRewardPayload) XXX_Marshal ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantBetBonusRewardPayload) XXX_Merge ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) XXX_Merge(src proto.Message)
func (*GrantBetBonusRewardPayload) XXX_Size ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) XXX_Size() int
func (*GrantBetBonusRewardPayload) XXX_Unmarshal ¶ added in v1.4.5
func (m *GrantBetBonusRewardPayload) XXX_Unmarshal(b []byte) error
type GrantSignupAffiliatorRewardPayload ¶ added in v1.4.5
type GrantSignupAffiliatorRewardPayload struct { // common is the common properties of a reward Common RewardPayloadCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common"` // affiliatee is the address of the account that used this affiliator's // address as source_uid Affiliatee string `protobuf:"bytes,2,opt,name=affiliatee,proto3" json:"affiliatee,omitempty"` }
GrantSignupAffiliatorRewardPayload is the type for signup affiliator reward grant payload.
func (*GrantSignupAffiliatorRewardPayload) Descriptor ¶ added in v1.4.5
func (*GrantSignupAffiliatorRewardPayload) Descriptor() ([]byte, []int)
func (*GrantSignupAffiliatorRewardPayload) GetAffiliatee ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) GetAffiliatee() string
func (*GrantSignupAffiliatorRewardPayload) GetCommon ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) GetCommon() RewardPayloadCommon
func (*GrantSignupAffiliatorRewardPayload) Marshal ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) Marshal() (dAtA []byte, err error)
func (*GrantSignupAffiliatorRewardPayload) MarshalTo ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) MarshalTo(dAtA []byte) (int, error)
func (*GrantSignupAffiliatorRewardPayload) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantSignupAffiliatorRewardPayload) ProtoMessage ¶ added in v1.4.5
func (*GrantSignupAffiliatorRewardPayload) ProtoMessage()
func (*GrantSignupAffiliatorRewardPayload) Reset ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) Reset()
func (*GrantSignupAffiliatorRewardPayload) Size ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) Size() (n int)
func (*GrantSignupAffiliatorRewardPayload) String ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) String() string
func (*GrantSignupAffiliatorRewardPayload) Unmarshal ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) Unmarshal(dAtA []byte) error
func (*GrantSignupAffiliatorRewardPayload) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) XXX_DiscardUnknown()
func (*GrantSignupAffiliatorRewardPayload) XXX_Marshal ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantSignupAffiliatorRewardPayload) XXX_Merge ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) XXX_Merge(src proto.Message)
func (*GrantSignupAffiliatorRewardPayload) XXX_Size ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) XXX_Size() int
func (*GrantSignupAffiliatorRewardPayload) XXX_Unmarshal ¶ added in v1.4.5
func (m *GrantSignupAffiliatorRewardPayload) XXX_Unmarshal(b []byte) error
type GrantSignupReferrerRewardPayload ¶ added in v1.4.0
type GrantSignupReferrerRewardPayload struct { // common is the common properties of a reward Common RewardPayloadCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common"` // referee is the address of the account that used this referrer address as // source_uid Referee string `protobuf:"bytes,2,opt,name=referee,proto3" json:"referee,omitempty"` }
GrantSignupReferrerRewardPayload is the type for signup referrer reward grant payload.
func (*GrantSignupReferrerRewardPayload) Descriptor ¶ added in v1.4.0
func (*GrantSignupReferrerRewardPayload) Descriptor() ([]byte, []int)
func (*GrantSignupReferrerRewardPayload) GetCommon ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) GetCommon() RewardPayloadCommon
func (*GrantSignupReferrerRewardPayload) GetReferee ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) GetReferee() string
func (*GrantSignupReferrerRewardPayload) Marshal ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) Marshal() (dAtA []byte, err error)
func (*GrantSignupReferrerRewardPayload) MarshalTo ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) MarshalTo(dAtA []byte) (int, error)
func (*GrantSignupReferrerRewardPayload) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantSignupReferrerRewardPayload) ProtoMessage ¶ added in v1.4.0
func (*GrantSignupReferrerRewardPayload) ProtoMessage()
func (*GrantSignupReferrerRewardPayload) Reset ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) Reset()
func (*GrantSignupReferrerRewardPayload) Size ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) Size() (n int)
func (*GrantSignupReferrerRewardPayload) String ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) String() string
func (*GrantSignupReferrerRewardPayload) Unmarshal ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) Unmarshal(dAtA []byte) error
func (*GrantSignupReferrerRewardPayload) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) XXX_DiscardUnknown()
func (*GrantSignupReferrerRewardPayload) XXX_Marshal ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantSignupReferrerRewardPayload) XXX_Merge ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) XXX_Merge(src proto.Message)
func (*GrantSignupReferrerRewardPayload) XXX_Size ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) XXX_Size() int
func (*GrantSignupReferrerRewardPayload) XXX_Unmarshal ¶ added in v1.4.0
func (m *GrantSignupReferrerRewardPayload) XXX_Unmarshal(b []byte) error
type GrantSignupRewardPayload ¶
type GrantSignupRewardPayload struct { // common is the common properties of a reward Common RewardPayloadCommon `protobuf:"bytes,2,opt,name=common,proto3" json:"common"` }
GrantSignupRewardPayload is the type for signup reward grant payload.
func (*GrantSignupRewardPayload) Descriptor ¶
func (*GrantSignupRewardPayload) Descriptor() ([]byte, []int)
func (*GrantSignupRewardPayload) GetCommon ¶
func (m *GrantSignupRewardPayload) GetCommon() RewardPayloadCommon
func (*GrantSignupRewardPayload) Marshal ¶
func (m *GrantSignupRewardPayload) Marshal() (dAtA []byte, err error)
func (*GrantSignupRewardPayload) MarshalTo ¶
func (m *GrantSignupRewardPayload) MarshalTo(dAtA []byte) (int, error)
func (*GrantSignupRewardPayload) MarshalToSizedBuffer ¶
func (m *GrantSignupRewardPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantSignupRewardPayload) ProtoMessage ¶
func (*GrantSignupRewardPayload) ProtoMessage()
func (*GrantSignupRewardPayload) Reset ¶
func (m *GrantSignupRewardPayload) Reset()
func (*GrantSignupRewardPayload) Size ¶
func (m *GrantSignupRewardPayload) Size() (n int)
func (*GrantSignupRewardPayload) String ¶
func (m *GrantSignupRewardPayload) String() string
func (*GrantSignupRewardPayload) Unmarshal ¶
func (m *GrantSignupRewardPayload) Unmarshal(dAtA []byte) error
func (*GrantSignupRewardPayload) XXX_DiscardUnknown ¶
func (m *GrantSignupRewardPayload) XXX_DiscardUnknown()
func (*GrantSignupRewardPayload) XXX_Marshal ¶
func (m *GrantSignupRewardPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantSignupRewardPayload) XXX_Merge ¶
func (m *GrantSignupRewardPayload) XXX_Merge(src proto.Message)
func (*GrantSignupRewardPayload) XXX_Size ¶
func (m *GrantSignupRewardPayload) XXX_Size() int
func (*GrantSignupRewardPayload) XXX_Unmarshal ¶
func (m *GrantSignupRewardPayload) XXX_Unmarshal(b []byte) error
type IRewardFactory ¶
type IRewardFactory interface { ValidateCampaign(campaign Campaign) error Calculate( goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error) }
IRewardFactory defines the methods that should be implemented for all reward types.
type MarketKeeper ¶ added in v1.4.5
type MarketKeeper interface {
GetMarket(ctx sdk.Context, marketUID string) (markettypes.Market, bool)
}
BetKeeper defines the expected interface needed to access market state.
type MsgClient ¶
type MsgClient interface { // SetPromoterConf is a method to set the configurations of a promoter. SetPromoterConf(ctx context.Context, in *MsgSetPromoterConf, opts ...grpc.CallOption) (*MsgSetPromoterConfResponse, error) // CreatePromoter is a method to create a promoter CreatePromoter(ctx context.Context, in *MsgCreatePromoter, opts ...grpc.CallOption) (*MsgCreatePromoterResponse, error) // CreateCampaign is a method to create a campaign CreateCampaign(ctx context.Context, in *MsgCreateCampaign, opts ...grpc.CallOption) (*MsgCreateCampaignResponse, error) // UpdateCampaign is a method to update campaign UpdateCampaign(ctx context.Context, in *MsgUpdateCampaign, opts ...grpc.CallOption) (*MsgUpdateCampaignResponse, error) // WithdrawCampaignFunds is method to withdraw funds from the campaign WithdrawFunds(ctx context.Context, in *MsgWithdrawFunds, opts ...grpc.CallOption) (*MsgWithdrawFundsResponse, error) // GrantReward is method to allocate rewards GrantReward(ctx context.Context, in *MsgGrantReward, opts ...grpc.CallOption) (*MsgGrantRewardResponse, error) // UpdateParams defines a governance operation for updating the x/ovm module // parameters. The authority is defined in the keeper. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateCampaign ¶
type MsgCreateCampaign struct { // creator is the address of campaign creator account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of the campaign. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // total_funds is the total funds allocated to the campaign. TotalFunds cosmossdk_io_math.Int `` /* 133-byte string literal not displayed */ // ticket is the payload data. Ticket string `protobuf:"bytes,4,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgCreateCampaign is msg to create a reward campaign
func NewMsgCreateCampaign ¶
func (*MsgCreateCampaign) Descriptor ¶
func (*MsgCreateCampaign) Descriptor() ([]byte, []int)
func (*MsgCreateCampaign) EmitEvent ¶
func (msg *MsgCreateCampaign) EmitEvent(ctx *sdk.Context, uid string)
EmitEvent emits the event for the message success.
func (*MsgCreateCampaign) GetCreator ¶
func (m *MsgCreateCampaign) GetCreator() string
func (*MsgCreateCampaign) GetSignBytes ¶
func (msg *MsgCreateCampaign) GetSignBytes() []byte
func (*MsgCreateCampaign) GetSigners ¶
func (msg *MsgCreateCampaign) GetSigners() []sdk.AccAddress
func (*MsgCreateCampaign) GetTicket ¶
func (m *MsgCreateCampaign) GetTicket() string
func (*MsgCreateCampaign) GetUid ¶
func (m *MsgCreateCampaign) GetUid() string
func (*MsgCreateCampaign) Marshal ¶
func (m *MsgCreateCampaign) Marshal() (dAtA []byte, err error)
func (*MsgCreateCampaign) MarshalTo ¶
func (m *MsgCreateCampaign) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCampaign) MarshalToSizedBuffer ¶
func (m *MsgCreateCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCampaign) ProtoMessage ¶
func (*MsgCreateCampaign) ProtoMessage()
func (*MsgCreateCampaign) Reset ¶
func (m *MsgCreateCampaign) Reset()
func (*MsgCreateCampaign) Route ¶
func (msg *MsgCreateCampaign) Route() string
func (*MsgCreateCampaign) Size ¶
func (m *MsgCreateCampaign) Size() (n int)
func (*MsgCreateCampaign) String ¶
func (m *MsgCreateCampaign) String() string
func (*MsgCreateCampaign) Type ¶
func (msg *MsgCreateCampaign) Type() string
func (*MsgCreateCampaign) Unmarshal ¶
func (m *MsgCreateCampaign) Unmarshal(dAtA []byte) error
func (*MsgCreateCampaign) ValidateBasic ¶
func (msg *MsgCreateCampaign) ValidateBasic() error
func (*MsgCreateCampaign) XXX_DiscardUnknown ¶
func (m *MsgCreateCampaign) XXX_DiscardUnknown()
func (*MsgCreateCampaign) XXX_Marshal ¶
func (m *MsgCreateCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCampaign) XXX_Merge ¶
func (m *MsgCreateCampaign) XXX_Merge(src proto.Message)
func (*MsgCreateCampaign) XXX_Size ¶
func (m *MsgCreateCampaign) XXX_Size() int
func (*MsgCreateCampaign) XXX_Unmarshal ¶
func (m *MsgCreateCampaign) XXX_Unmarshal(b []byte) error
type MsgCreateCampaignResponse ¶
type MsgCreateCampaignResponse struct { }
MsgCreateCampaignResponse campaign create message response type.
func (*MsgCreateCampaignResponse) Descriptor ¶
func (*MsgCreateCampaignResponse) Descriptor() ([]byte, []int)
func (*MsgCreateCampaignResponse) Marshal ¶
func (m *MsgCreateCampaignResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateCampaignResponse) MarshalTo ¶
func (m *MsgCreateCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCampaignResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCampaignResponse) ProtoMessage ¶
func (*MsgCreateCampaignResponse) ProtoMessage()
func (*MsgCreateCampaignResponse) Reset ¶
func (m *MsgCreateCampaignResponse) Reset()
func (*MsgCreateCampaignResponse) Size ¶
func (m *MsgCreateCampaignResponse) Size() (n int)
func (*MsgCreateCampaignResponse) String ¶
func (m *MsgCreateCampaignResponse) String() string
func (*MsgCreateCampaignResponse) Unmarshal ¶
func (m *MsgCreateCampaignResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateCampaignResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateCampaignResponse) XXX_DiscardUnknown()
func (*MsgCreateCampaignResponse) XXX_Marshal ¶
func (m *MsgCreateCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCampaignResponse) XXX_Merge ¶
func (m *MsgCreateCampaignResponse) XXX_Merge(src proto.Message)
func (*MsgCreateCampaignResponse) XXX_Size ¶
func (m *MsgCreateCampaignResponse) XXX_Size() int
func (*MsgCreateCampaignResponse) XXX_Unmarshal ¶
func (m *MsgCreateCampaignResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePromoter ¶ added in v1.4.5
type MsgCreatePromoter struct { // creator is the address of message signer account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the payload data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgCreatePromoter is msg to create a promoter.
func NewMsgCreatePromoter ¶ added in v1.4.5
func NewMsgCreatePromoter( creator string, ticket string, ) *MsgCreatePromoter
func (*MsgCreatePromoter) Descriptor ¶ added in v1.4.5
func (*MsgCreatePromoter) Descriptor() ([]byte, []int)
func (*MsgCreatePromoter) EmitEvent ¶ added in v1.4.5
func (msg *MsgCreatePromoter) EmitEvent(ctx *sdk.Context, uid string, conf PromoterConf)
EmitEvent emits the event for the message success.
func (*MsgCreatePromoter) GetCreator ¶ added in v1.4.5
func (m *MsgCreatePromoter) GetCreator() string
func (*MsgCreatePromoter) GetSignBytes ¶ added in v1.4.5
func (msg *MsgCreatePromoter) GetSignBytes() []byte
func (*MsgCreatePromoter) GetSigners ¶ added in v1.4.5
func (msg *MsgCreatePromoter) GetSigners() []sdk.AccAddress
func (*MsgCreatePromoter) GetTicket ¶ added in v1.4.5
func (m *MsgCreatePromoter) GetTicket() string
func (*MsgCreatePromoter) Marshal ¶ added in v1.4.5
func (m *MsgCreatePromoter) Marshal() (dAtA []byte, err error)
func (*MsgCreatePromoter) MarshalTo ¶ added in v1.4.5
func (m *MsgCreatePromoter) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePromoter) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgCreatePromoter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePromoter) ProtoMessage ¶ added in v1.4.5
func (*MsgCreatePromoter) ProtoMessage()
func (*MsgCreatePromoter) Reset ¶ added in v1.4.5
func (m *MsgCreatePromoter) Reset()
func (*MsgCreatePromoter) Route ¶ added in v1.4.5
func (msg *MsgCreatePromoter) Route() string
func (*MsgCreatePromoter) Size ¶ added in v1.4.5
func (m *MsgCreatePromoter) Size() (n int)
func (*MsgCreatePromoter) String ¶ added in v1.4.5
func (m *MsgCreatePromoter) String() string
func (*MsgCreatePromoter) Type ¶ added in v1.4.5
func (msg *MsgCreatePromoter) Type() string
func (*MsgCreatePromoter) Unmarshal ¶ added in v1.4.5
func (m *MsgCreatePromoter) Unmarshal(dAtA []byte) error
func (*MsgCreatePromoter) ValidateBasic ¶ added in v1.4.5
func (msg *MsgCreatePromoter) ValidateBasic() error
func (*MsgCreatePromoter) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgCreatePromoter) XXX_DiscardUnknown()
func (*MsgCreatePromoter) XXX_Marshal ¶ added in v1.4.5
func (m *MsgCreatePromoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePromoter) XXX_Merge ¶ added in v1.4.5
func (m *MsgCreatePromoter) XXX_Merge(src proto.Message)
func (*MsgCreatePromoter) XXX_Size ¶ added in v1.4.5
func (m *MsgCreatePromoter) XXX_Size() int
func (*MsgCreatePromoter) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgCreatePromoter) XXX_Unmarshal(b []byte) error
type MsgCreatePromoterResponse ¶ added in v1.4.5
type MsgCreatePromoterResponse struct { }
MsgCreatePromoterResponse promoter create message response type.
func (*MsgCreatePromoterResponse) Descriptor ¶ added in v1.4.5
func (*MsgCreatePromoterResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePromoterResponse) Marshal ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePromoterResponse) MarshalTo ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePromoterResponse) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePromoterResponse) ProtoMessage ¶ added in v1.4.5
func (*MsgCreatePromoterResponse) ProtoMessage()
func (*MsgCreatePromoterResponse) Reset ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) Reset()
func (*MsgCreatePromoterResponse) Size ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) Size() (n int)
func (*MsgCreatePromoterResponse) String ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) String() string
func (*MsgCreatePromoterResponse) Unmarshal ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePromoterResponse) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) XXX_DiscardUnknown()
func (*MsgCreatePromoterResponse) XXX_Marshal ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePromoterResponse) XXX_Merge ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePromoterResponse) XXX_Size ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) XXX_Size() int
func (*MsgCreatePromoterResponse) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgCreatePromoterResponse) XXX_Unmarshal(b []byte) error
type MsgGrantReward ¶
type MsgGrantReward struct { // creator is the address of creator account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of the reward. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // campaign_uid is the unique identifier of the reward campaign. CampaignUid string `protobuf:"bytes,3,opt,name=campaign_uid,json=campaignUid,proto3" json:"campaign_uid,omitempty"` // ticket is the payload data. Ticket string `protobuf:"bytes,4,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgGrantReward is execute reward message type.
func NewMsgGrantReward ¶
func NewMsgGrantReward( creator string, uid string, campaignUID string, ticket string, ) *MsgGrantReward
func (*MsgGrantReward) Descriptor ¶
func (*MsgGrantReward) Descriptor() ([]byte, []int)
func (*MsgGrantReward) EmitEvent ¶
func (msg *MsgGrantReward) EmitEvent(ctx *sdk.Context, campaignUID string, rewardUID, promoterAddr string, receiver Receiver, subAccUnlockTS uint64, )
EmitEvent emits the event for the message success.
func (*MsgGrantReward) GetCampaignUid ¶
func (m *MsgGrantReward) GetCampaignUid() string
func (*MsgGrantReward) GetCreator ¶
func (m *MsgGrantReward) GetCreator() string
func (*MsgGrantReward) GetSignBytes ¶
func (msg *MsgGrantReward) GetSignBytes() []byte
func (*MsgGrantReward) GetSigners ¶
func (msg *MsgGrantReward) GetSigners() []sdk.AccAddress
func (*MsgGrantReward) GetTicket ¶
func (m *MsgGrantReward) GetTicket() string
func (*MsgGrantReward) GetUid ¶
func (m *MsgGrantReward) GetUid() string
func (*MsgGrantReward) Marshal ¶
func (m *MsgGrantReward) Marshal() (dAtA []byte, err error)
func (*MsgGrantReward) MarshalToSizedBuffer ¶
func (m *MsgGrantReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantReward) ProtoMessage ¶
func (*MsgGrantReward) ProtoMessage()
func (*MsgGrantReward) Reset ¶
func (m *MsgGrantReward) Reset()
func (*MsgGrantReward) Route ¶
func (msg *MsgGrantReward) Route() string
func (*MsgGrantReward) Size ¶
func (m *MsgGrantReward) Size() (n int)
func (*MsgGrantReward) String ¶
func (m *MsgGrantReward) String() string
func (*MsgGrantReward) Type ¶
func (msg *MsgGrantReward) Type() string
func (*MsgGrantReward) Unmarshal ¶
func (m *MsgGrantReward) Unmarshal(dAtA []byte) error
func (*MsgGrantReward) ValidateBasic ¶
func (msg *MsgGrantReward) ValidateBasic() error
func (*MsgGrantReward) XXX_DiscardUnknown ¶
func (m *MsgGrantReward) XXX_DiscardUnknown()
func (*MsgGrantReward) XXX_Marshal ¶
func (m *MsgGrantReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantReward) XXX_Merge ¶
func (m *MsgGrantReward) XXX_Merge(src proto.Message)
func (*MsgGrantReward) XXX_Size ¶
func (m *MsgGrantReward) XXX_Size() int
func (*MsgGrantReward) XXX_Unmarshal ¶
func (m *MsgGrantReward) XXX_Unmarshal(b []byte) error
type MsgGrantRewardResponse ¶
type MsgGrantRewardResponse struct { }
MsgGrantSignupRewardResponse execute signup reward message response type.
func (*MsgGrantRewardResponse) Descriptor ¶
func (*MsgGrantRewardResponse) Descriptor() ([]byte, []int)
func (*MsgGrantRewardResponse) Marshal ¶
func (m *MsgGrantRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgGrantRewardResponse) MarshalTo ¶
func (m *MsgGrantRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGrantRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgGrantRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantRewardResponse) ProtoMessage ¶
func (*MsgGrantRewardResponse) ProtoMessage()
func (*MsgGrantRewardResponse) Reset ¶
func (m *MsgGrantRewardResponse) Reset()
func (*MsgGrantRewardResponse) Size ¶
func (m *MsgGrantRewardResponse) Size() (n int)
func (*MsgGrantRewardResponse) String ¶
func (m *MsgGrantRewardResponse) String() string
func (*MsgGrantRewardResponse) Unmarshal ¶
func (m *MsgGrantRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgGrantRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgGrantRewardResponse) XXX_DiscardUnknown()
func (*MsgGrantRewardResponse) XXX_Marshal ¶
func (m *MsgGrantRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantRewardResponse) XXX_Merge ¶
func (m *MsgGrantRewardResponse) XXX_Merge(src proto.Message)
func (*MsgGrantRewardResponse) XXX_Size ¶
func (m *MsgGrantRewardResponse) XXX_Size() int
func (*MsgGrantRewardResponse) XXX_Unmarshal ¶
func (m *MsgGrantRewardResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // SetPromoterConf is a method to set the configurations of a promoter. SetPromoterConf(context.Context, *MsgSetPromoterConf) (*MsgSetPromoterConfResponse, error) // CreatePromoter is a method to create a promoter CreatePromoter(context.Context, *MsgCreatePromoter) (*MsgCreatePromoterResponse, error) // CreateCampaign is a method to create a campaign CreateCampaign(context.Context, *MsgCreateCampaign) (*MsgCreateCampaignResponse, error) // UpdateCampaign is a method to update campaign UpdateCampaign(context.Context, *MsgUpdateCampaign) (*MsgUpdateCampaignResponse, error) // WithdrawCampaignFunds is method to withdraw funds from the campaign WithdrawFunds(context.Context, *MsgWithdrawFunds) (*MsgWithdrawFundsResponse, error) // GrantReward is method to allocate rewards GrantReward(context.Context, *MsgGrantReward) (*MsgGrantRewardResponse, error) // UpdateParams defines a governance operation for updating the x/ovm module // parameters. The authority is defined in the keeper. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetPromoterConf ¶ added in v1.4.5
type MsgSetPromoterConf struct { // creator is the address of message signer account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of the promoter. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // ticket is the payload data. Ticket string `protobuf:"bytes,3,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgSetPromoterConf is msg to set promoter configuration.
func NewMsgSetPromoterConfig ¶ added in v1.4.5
func NewMsgSetPromoterConfig( creator string, uid string, ticket string, ) *MsgSetPromoterConf
func (*MsgSetPromoterConf) Descriptor ¶ added in v1.4.5
func (*MsgSetPromoterConf) Descriptor() ([]byte, []int)
func (*MsgSetPromoterConf) EmitEvent ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) EmitEvent(ctx *sdk.Context, conf PromoterConf)
EmitEvent emits the event for the message success.
func (*MsgSetPromoterConf) GetCreator ¶ added in v1.4.5
func (m *MsgSetPromoterConf) GetCreator() string
func (*MsgSetPromoterConf) GetSignBytes ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) GetSignBytes() []byte
func (*MsgSetPromoterConf) GetSigners ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) GetSigners() []sdk.AccAddress
func (*MsgSetPromoterConf) GetTicket ¶ added in v1.4.5
func (m *MsgSetPromoterConf) GetTicket() string
func (*MsgSetPromoterConf) GetUid ¶ added in v1.4.5
func (m *MsgSetPromoterConf) GetUid() string
func (*MsgSetPromoterConf) Marshal ¶ added in v1.4.5
func (m *MsgSetPromoterConf) Marshal() (dAtA []byte, err error)
func (*MsgSetPromoterConf) MarshalTo ¶ added in v1.4.5
func (m *MsgSetPromoterConf) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPromoterConf) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgSetPromoterConf) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPromoterConf) ProtoMessage ¶ added in v1.4.5
func (*MsgSetPromoterConf) ProtoMessage()
func (*MsgSetPromoterConf) Reset ¶ added in v1.4.5
func (m *MsgSetPromoterConf) Reset()
func (*MsgSetPromoterConf) Route ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) Route() string
func (*MsgSetPromoterConf) Size ¶ added in v1.4.5
func (m *MsgSetPromoterConf) Size() (n int)
func (*MsgSetPromoterConf) String ¶ added in v1.4.5
func (m *MsgSetPromoterConf) String() string
func (*MsgSetPromoterConf) Type ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) Type() string
func (*MsgSetPromoterConf) Unmarshal ¶ added in v1.4.5
func (m *MsgSetPromoterConf) Unmarshal(dAtA []byte) error
func (*MsgSetPromoterConf) ValidateBasic ¶ added in v1.4.5
func (msg *MsgSetPromoterConf) ValidateBasic() error
func (*MsgSetPromoterConf) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgSetPromoterConf) XXX_DiscardUnknown()
func (*MsgSetPromoterConf) XXX_Marshal ¶ added in v1.4.5
func (m *MsgSetPromoterConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPromoterConf) XXX_Merge ¶ added in v1.4.5
func (m *MsgSetPromoterConf) XXX_Merge(src proto.Message)
func (*MsgSetPromoterConf) XXX_Size ¶ added in v1.4.5
func (m *MsgSetPromoterConf) XXX_Size() int
func (*MsgSetPromoterConf) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgSetPromoterConf) XXX_Unmarshal(b []byte) error
type MsgSetPromoterConfResponse ¶ added in v1.4.5
type MsgSetPromoterConfResponse struct { }
MsgCreateCampaignResponse campaign create message response type.
func (*MsgSetPromoterConfResponse) Descriptor ¶ added in v1.4.5
func (*MsgSetPromoterConfResponse) Descriptor() ([]byte, []int)
func (*MsgSetPromoterConfResponse) Marshal ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetPromoterConfResponse) MarshalTo ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPromoterConfResponse) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPromoterConfResponse) ProtoMessage ¶ added in v1.4.5
func (*MsgSetPromoterConfResponse) ProtoMessage()
func (*MsgSetPromoterConfResponse) Reset ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) Reset()
func (*MsgSetPromoterConfResponse) Size ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) Size() (n int)
func (*MsgSetPromoterConfResponse) String ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) String() string
func (*MsgSetPromoterConfResponse) Unmarshal ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) Unmarshal(dAtA []byte) error
func (*MsgSetPromoterConfResponse) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) XXX_DiscardUnknown()
func (*MsgSetPromoterConfResponse) XXX_Marshal ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPromoterConfResponse) XXX_Merge ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) XXX_Merge(src proto.Message)
func (*MsgSetPromoterConfResponse) XXX_Size ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) XXX_Size() int
func (*MsgSetPromoterConfResponse) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgSetPromoterConfResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateCampaign ¶
type MsgUpdateCampaign struct { // creator is the address of creator account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of the campaign. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // topup_funds is the topup funds to increase the pool balance of the // campaign. TopupFunds cosmossdk_io_math.Int `` /* 133-byte string literal not displayed */ // ticket is the payload data. Ticket string `protobuf:"bytes,4,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgUpdateCampaign is campaign update message type.
func NewMsgUpdateCampaign ¶
func (*MsgUpdateCampaign) Descriptor ¶
func (*MsgUpdateCampaign) Descriptor() ([]byte, []int)
func (*MsgUpdateCampaign) EmitEvent ¶
func (msg *MsgUpdateCampaign) EmitEvent(ctx *sdk.Context, uid string)
EmitEvent emits the event for the message success.
func (*MsgUpdateCampaign) GetCreator ¶
func (m *MsgUpdateCampaign) GetCreator() string
func (*MsgUpdateCampaign) GetSignBytes ¶
func (msg *MsgUpdateCampaign) GetSignBytes() []byte
func (*MsgUpdateCampaign) GetSigners ¶
func (msg *MsgUpdateCampaign) GetSigners() []sdk.AccAddress
func (*MsgUpdateCampaign) GetTicket ¶
func (m *MsgUpdateCampaign) GetTicket() string
func (*MsgUpdateCampaign) GetUid ¶
func (m *MsgUpdateCampaign) GetUid() string
func (*MsgUpdateCampaign) Marshal ¶
func (m *MsgUpdateCampaign) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCampaign) MarshalTo ¶
func (m *MsgUpdateCampaign) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCampaign) MarshalToSizedBuffer ¶
func (m *MsgUpdateCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCampaign) ProtoMessage ¶
func (*MsgUpdateCampaign) ProtoMessage()
func (*MsgUpdateCampaign) Reset ¶
func (m *MsgUpdateCampaign) Reset()
func (*MsgUpdateCampaign) Route ¶
func (msg *MsgUpdateCampaign) Route() string
func (*MsgUpdateCampaign) Size ¶
func (m *MsgUpdateCampaign) Size() (n int)
func (*MsgUpdateCampaign) String ¶
func (m *MsgUpdateCampaign) String() string
func (*MsgUpdateCampaign) Type ¶
func (msg *MsgUpdateCampaign) Type() string
func (*MsgUpdateCampaign) Unmarshal ¶
func (m *MsgUpdateCampaign) Unmarshal(dAtA []byte) error
func (*MsgUpdateCampaign) ValidateBasic ¶
func (msg *MsgUpdateCampaign) ValidateBasic() error
func (*MsgUpdateCampaign) XXX_DiscardUnknown ¶
func (m *MsgUpdateCampaign) XXX_DiscardUnknown()
func (*MsgUpdateCampaign) XXX_Marshal ¶
func (m *MsgUpdateCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCampaign) XXX_Merge ¶
func (m *MsgUpdateCampaign) XXX_Merge(src proto.Message)
func (*MsgUpdateCampaign) XXX_Size ¶
func (m *MsgUpdateCampaign) XXX_Size() int
func (*MsgUpdateCampaign) XXX_Unmarshal ¶
func (m *MsgUpdateCampaign) XXX_Unmarshal(b []byte) error
type MsgUpdateCampaignResponse ¶
type MsgUpdateCampaignResponse struct { }
MsgUpdateCampaignResponse campaign update message response type.
func (*MsgUpdateCampaignResponse) Descriptor ¶
func (*MsgUpdateCampaignResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateCampaignResponse) Marshal ¶
func (m *MsgUpdateCampaignResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCampaignResponse) MarshalTo ¶
func (m *MsgUpdateCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCampaignResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCampaignResponse) ProtoMessage ¶
func (*MsgUpdateCampaignResponse) ProtoMessage()
func (*MsgUpdateCampaignResponse) Reset ¶
func (m *MsgUpdateCampaignResponse) Reset()
func (*MsgUpdateCampaignResponse) Size ¶
func (m *MsgUpdateCampaignResponse) Size() (n int)
func (*MsgUpdateCampaignResponse) String ¶
func (m *MsgUpdateCampaignResponse) String() string
func (*MsgUpdateCampaignResponse) Unmarshal ¶
func (m *MsgUpdateCampaignResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateCampaignResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateCampaignResponse) XXX_DiscardUnknown()
func (*MsgUpdateCampaignResponse) XXX_Marshal ¶
func (m *MsgUpdateCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCampaignResponse) XXX_Merge ¶
func (m *MsgUpdateCampaignResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateCampaignResponse) XXX_Size ¶
func (m *MsgUpdateCampaignResponse) XXX_Size() int
func (*MsgUpdateCampaignResponse) XXX_Unmarshal ¶
func (m *MsgUpdateCampaignResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v1.4.5
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 defines the x/bet parameters. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶ added in v1.4.5
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v1.4.5
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v1.4.5
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶ added in v1.4.5
func (msg MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶ added in v1.4.5
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶ added in v1.4.5
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.4.5
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.4.5
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.4.5
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶ added in v1.4.5
func (*MsgUpdateParams) Route() string
Route returns the module's message router key.
func (*MsgUpdateParams) Size ¶ added in v1.4.5
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.4.5
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶ added in v1.4.5
func (*MsgUpdateParams) Type() string
Type returns type of its message
func (*MsgUpdateParams) Unmarshal ¶ added in v1.4.5
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.4.5
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.4.5
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.4.5
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.4.5
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.4.5
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.4.5
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.4.5
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.4.5
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawFunds ¶
type MsgWithdrawFunds struct { // creator is the address of creator account. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of the reward campaign. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // ticket is the payload data. Ticket string `protobuf:"bytes,3,opt,name=ticket,proto3" json:"ticket,omitempty"` // amount is the requested withdrawal amount Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` }
MsgWithdrawFunds is withdraw funds message type.
func NewMsgWithdrawFunds ¶
func (*MsgWithdrawFunds) Descriptor ¶
func (*MsgWithdrawFunds) Descriptor() ([]byte, []int)
func (*MsgWithdrawFunds) EmitEvent ¶
func (msg *MsgWithdrawFunds) EmitEvent(ctx *sdk.Context, uid string)
EmitEvent emits the event for the message success.
func (*MsgWithdrawFunds) GetCreator ¶
func (m *MsgWithdrawFunds) GetCreator() string
func (*MsgWithdrawFunds) GetSignBytes ¶
func (msg *MsgWithdrawFunds) GetSignBytes() []byte
func (*MsgWithdrawFunds) GetSigners ¶
func (msg *MsgWithdrawFunds) GetSigners() []sdk.AccAddress
func (*MsgWithdrawFunds) GetTicket ¶
func (m *MsgWithdrawFunds) GetTicket() string
func (*MsgWithdrawFunds) GetUid ¶
func (m *MsgWithdrawFunds) GetUid() string
func (*MsgWithdrawFunds) Marshal ¶
func (m *MsgWithdrawFunds) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFunds) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFunds) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFunds) ProtoMessage ¶
func (*MsgWithdrawFunds) ProtoMessage()
func (*MsgWithdrawFunds) Reset ¶
func (m *MsgWithdrawFunds) Reset()
func (*MsgWithdrawFunds) Route ¶
func (msg *MsgWithdrawFunds) Route() string
func (*MsgWithdrawFunds) Size ¶
func (m *MsgWithdrawFunds) Size() (n int)
func (*MsgWithdrawFunds) String ¶
func (m *MsgWithdrawFunds) String() string
func (*MsgWithdrawFunds) Type ¶
func (msg *MsgWithdrawFunds) Type() string
func (*MsgWithdrawFunds) Unmarshal ¶
func (m *MsgWithdrawFunds) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFunds) ValidateBasic ¶
func (msg *MsgWithdrawFunds) ValidateBasic() error
func (*MsgWithdrawFunds) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFunds) XXX_DiscardUnknown()
func (*MsgWithdrawFunds) XXX_Marshal ¶
func (m *MsgWithdrawFunds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFunds) XXX_Merge ¶
func (m *MsgWithdrawFunds) XXX_Merge(src proto.Message)
func (*MsgWithdrawFunds) XXX_Size ¶
func (m *MsgWithdrawFunds) XXX_Size() int
func (*MsgWithdrawFunds) XXX_Unmarshal ¶
func (m *MsgWithdrawFunds) XXX_Unmarshal(b []byte) error
type MsgWithdrawFundsResponse ¶
type MsgWithdrawFundsResponse struct { }
MsgWithdrawFundsResponse withdraw funds message response type.
func (*MsgWithdrawFundsResponse) Descriptor ¶
func (*MsgWithdrawFundsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawFundsResponse) Marshal ¶
func (m *MsgWithdrawFundsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFundsResponse) MarshalTo ¶
func (m *MsgWithdrawFundsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawFundsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFundsResponse) ProtoMessage ¶
func (*MsgWithdrawFundsResponse) ProtoMessage()
func (*MsgWithdrawFundsResponse) Reset ¶
func (m *MsgWithdrawFundsResponse) Reset()
func (*MsgWithdrawFundsResponse) Size ¶
func (m *MsgWithdrawFundsResponse) Size() (n int)
func (*MsgWithdrawFundsResponse) String ¶
func (m *MsgWithdrawFundsResponse) String() string
func (*MsgWithdrawFundsResponse) Unmarshal ¶
func (m *MsgWithdrawFundsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFundsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFundsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawFundsResponse) XXX_Marshal ¶
func (m *MsgWithdrawFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFundsResponse) XXX_Merge ¶
func (m *MsgWithdrawFundsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawFundsResponse) XXX_Size ¶
func (m *MsgWithdrawFundsResponse) XXX_Size() int
func (*MsgWithdrawFundsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawFundsResponse) XXX_Unmarshal(b []byte) error
type OVMKeeper ¶
type OVMKeeper interface {
VerifyTicketUnmarshal(goCtx context.Context, ticket string, clm interface{}) error
}
OVMKeeper defines the expected interface needed to verify ticket and unmarshal it
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Pool ¶
type Pool struct { Total cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total,proto3,customtype=cosmossdk.io/math.Int" json:"total" yaml:"total"` Spent cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=spent,proto3,customtype=cosmossdk.io/math.Int" json:"spent" yaml:"spent"` Withdrawn cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=withdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"withdrawn" yaml:"spent"` }
Pool tracks funds assigned and spent to/for a campaign.
func (*Pool) AvailableAmount ¶ added in v1.4.5
func (*Pool) Descriptor ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type Promoter ¶ added in v1.4.5
type Promoter struct { // creator is the address of promoter. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // uid is the unique identifier of a promoter. UID string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` // addresses is the list of account addresses of promoter. Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"` // conf is the configurations of the current promoter for the reward grant. Conf PromoterConf `protobuf:"bytes,4,opt,name=conf,proto3" json:"conf"` }
Promoter is type for defining the reward promoter properties and configuration.
func (*Promoter) Descriptor ¶ added in v1.4.5
func (*Promoter) GetAddresses ¶ added in v1.4.5
func (*Promoter) GetConf ¶ added in v1.4.5
func (m *Promoter) GetConf() PromoterConf
func (*Promoter) GetCreator ¶ added in v1.4.5
func (*Promoter) MarshalToSizedBuffer ¶ added in v1.4.5
func (*Promoter) ProtoMessage ¶ added in v1.4.5
func (*Promoter) ProtoMessage()
func (*Promoter) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *Promoter) XXX_DiscardUnknown()
func (*Promoter) XXX_Marshal ¶ added in v1.4.5
func (*Promoter) XXX_Unmarshal ¶ added in v1.4.5
type PromoterByAddress ¶ added in v1.4.5
type PromoterByAddress struct { // promoter_uid is the unique identifier of a certain promoter. PromoterUID string `protobuf:"bytes,1,opt,name=promoter_uid,proto3" json:"promoter_uid"` // address is the address of the promoter account. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
PromoterByAddress is type for defining the promoter by address.
func (*PromoterByAddress) Descriptor ¶ added in v1.4.5
func (*PromoterByAddress) Descriptor() ([]byte, []int)
func (*PromoterByAddress) GetAddress ¶ added in v1.4.5
func (m *PromoterByAddress) GetAddress() string
func (*PromoterByAddress) GetPromoterUID ¶ added in v1.4.5
func (m *PromoterByAddress) GetPromoterUID() string
func (*PromoterByAddress) Marshal ¶ added in v1.4.5
func (m *PromoterByAddress) Marshal() (dAtA []byte, err error)
func (*PromoterByAddress) MarshalTo ¶ added in v1.4.5
func (m *PromoterByAddress) MarshalTo(dAtA []byte) (int, error)
func (*PromoterByAddress) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *PromoterByAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PromoterByAddress) ProtoMessage ¶ added in v1.4.5
func (*PromoterByAddress) ProtoMessage()
func (*PromoterByAddress) Reset ¶ added in v1.4.5
func (m *PromoterByAddress) Reset()
func (*PromoterByAddress) Size ¶ added in v1.4.5
func (m *PromoterByAddress) Size() (n int)
func (*PromoterByAddress) String ¶ added in v1.4.5
func (m *PromoterByAddress) String() string
func (*PromoterByAddress) Unmarshal ¶ added in v1.4.5
func (m *PromoterByAddress) Unmarshal(dAtA []byte) error
func (*PromoterByAddress) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *PromoterByAddress) XXX_DiscardUnknown()
func (*PromoterByAddress) XXX_Marshal ¶ added in v1.4.5
func (m *PromoterByAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PromoterByAddress) XXX_Merge ¶ added in v1.4.5
func (m *PromoterByAddress) XXX_Merge(src proto.Message)
func (*PromoterByAddress) XXX_Size ¶ added in v1.4.5
func (m *PromoterByAddress) XXX_Size() int
func (*PromoterByAddress) XXX_Unmarshal ¶ added in v1.4.5
func (m *PromoterByAddress) XXX_Unmarshal(b []byte) error
type PromoterConf ¶ added in v1.4.5
type PromoterConf struct { // category_cap is the maximium allowed cap for each category. CategoryCap []CategoryCap `protobuf:"bytes,1,rep,name=category_cap,json=categoryCap,proto3" json:"category_cap"` }
PromoterConf is type for defining the promoter specific configurations.
func (*PromoterConf) Descriptor ¶ added in v1.4.5
func (*PromoterConf) Descriptor() ([]byte, []int)
func (*PromoterConf) GetCategoryCap ¶ added in v1.4.5
func (m *PromoterConf) GetCategoryCap() []CategoryCap
func (*PromoterConf) Marshal ¶ added in v1.4.5
func (m *PromoterConf) Marshal() (dAtA []byte, err error)
func (*PromoterConf) MarshalTo ¶ added in v1.4.5
func (m *PromoterConf) MarshalTo(dAtA []byte) (int, error)
func (*PromoterConf) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *PromoterConf) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PromoterConf) ProtoMessage ¶ added in v1.4.5
func (*PromoterConf) ProtoMessage()
func (*PromoterConf) Reset ¶ added in v1.4.5
func (m *PromoterConf) Reset()
func (*PromoterConf) Size ¶ added in v1.4.5
func (m *PromoterConf) Size() (n int)
func (*PromoterConf) String ¶ added in v1.4.5
func (m *PromoterConf) String() string
func (*PromoterConf) Unmarshal ¶ added in v1.4.5
func (m *PromoterConf) Unmarshal(dAtA []byte) error
func (*PromoterConf) Validate ¶ added in v1.4.5
func (cf *PromoterConf) Validate() error
func (*PromoterConf) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *PromoterConf) XXX_DiscardUnknown()
func (*PromoterConf) XXX_Marshal ¶ added in v1.4.5
func (m *PromoterConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PromoterConf) XXX_Merge ¶ added in v1.4.5
func (m *PromoterConf) XXX_Merge(src proto.Message)
func (*PromoterConf) XXX_Size ¶ added in v1.4.5
func (m *PromoterConf) XXX_Size() int
func (*PromoterConf) XXX_Unmarshal ¶ added in v1.4.5
func (m *PromoterConf) XXX_Unmarshal(b []byte) error
type QueryCampaignRequest ¶
type QueryCampaignRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
}
QueryCampaignRequest is request body of the query campaign endpoint.
func (*QueryCampaignRequest) Descriptor ¶
func (*QueryCampaignRequest) Descriptor() ([]byte, []int)
func (*QueryCampaignRequest) GetUid ¶
func (m *QueryCampaignRequest) GetUid() string
func (*QueryCampaignRequest) Marshal ¶
func (m *QueryCampaignRequest) Marshal() (dAtA []byte, err error)
func (*QueryCampaignRequest) MarshalTo ¶
func (m *QueryCampaignRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCampaignRequest) MarshalToSizedBuffer ¶
func (m *QueryCampaignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCampaignRequest) ProtoMessage ¶
func (*QueryCampaignRequest) ProtoMessage()
func (*QueryCampaignRequest) Reset ¶
func (m *QueryCampaignRequest) Reset()
func (*QueryCampaignRequest) Size ¶
func (m *QueryCampaignRequest) Size() (n int)
func (*QueryCampaignRequest) String ¶
func (m *QueryCampaignRequest) String() string
func (*QueryCampaignRequest) Unmarshal ¶
func (m *QueryCampaignRequest) Unmarshal(dAtA []byte) error
func (*QueryCampaignRequest) XXX_DiscardUnknown ¶
func (m *QueryCampaignRequest) XXX_DiscardUnknown()
func (*QueryCampaignRequest) XXX_Marshal ¶
func (m *QueryCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCampaignRequest) XXX_Merge ¶
func (m *QueryCampaignRequest) XXX_Merge(src proto.Message)
func (*QueryCampaignRequest) XXX_Size ¶
func (m *QueryCampaignRequest) XXX_Size() int
func (*QueryCampaignRequest) XXX_Unmarshal ¶
func (m *QueryCampaignRequest) XXX_Unmarshal(b []byte) error
type QueryCampaignResponse ¶
type QueryCampaignResponse struct {
Campaign Campaign `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign"`
}
QueryCampaignRequest is response body of the query campaign endpoint.
func (*QueryCampaignResponse) Descriptor ¶
func (*QueryCampaignResponse) Descriptor() ([]byte, []int)
func (*QueryCampaignResponse) GetCampaign ¶
func (m *QueryCampaignResponse) GetCampaign() Campaign
func (*QueryCampaignResponse) Marshal ¶
func (m *QueryCampaignResponse) Marshal() (dAtA []byte, err error)
func (*QueryCampaignResponse) MarshalTo ¶
func (m *QueryCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCampaignResponse) MarshalToSizedBuffer ¶
func (m *QueryCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCampaignResponse) ProtoMessage ¶
func (*QueryCampaignResponse) ProtoMessage()
func (*QueryCampaignResponse) Reset ¶
func (m *QueryCampaignResponse) Reset()
func (*QueryCampaignResponse) Size ¶
func (m *QueryCampaignResponse) Size() (n int)
func (*QueryCampaignResponse) String ¶
func (m *QueryCampaignResponse) String() string
func (*QueryCampaignResponse) Unmarshal ¶
func (m *QueryCampaignResponse) Unmarshal(dAtA []byte) error
func (*QueryCampaignResponse) XXX_DiscardUnknown ¶
func (m *QueryCampaignResponse) XXX_DiscardUnknown()
func (*QueryCampaignResponse) XXX_Marshal ¶
func (m *QueryCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCampaignResponse) XXX_Merge ¶
func (m *QueryCampaignResponse) XXX_Merge(src proto.Message)
func (*QueryCampaignResponse) XXX_Size ¶
func (m *QueryCampaignResponse) XXX_Size() int
func (*QueryCampaignResponse) XXX_Unmarshal ¶
func (m *QueryCampaignResponse) XXX_Unmarshal(b []byte) error
type QueryCampaignsRequest ¶
type QueryCampaignsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryCampaignsRequest is request body for the query all campaigns endpoint.
func (*QueryCampaignsRequest) Descriptor ¶
func (*QueryCampaignsRequest) Descriptor() ([]byte, []int)
func (*QueryCampaignsRequest) GetPagination ¶
func (m *QueryCampaignsRequest) GetPagination() *query.PageRequest
func (*QueryCampaignsRequest) Marshal ¶
func (m *QueryCampaignsRequest) Marshal() (dAtA []byte, err error)
func (*QueryCampaignsRequest) MarshalTo ¶
func (m *QueryCampaignsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCampaignsRequest) MarshalToSizedBuffer ¶
func (m *QueryCampaignsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCampaignsRequest) ProtoMessage ¶
func (*QueryCampaignsRequest) ProtoMessage()
func (*QueryCampaignsRequest) Reset ¶
func (m *QueryCampaignsRequest) Reset()
func (*QueryCampaignsRequest) Size ¶
func (m *QueryCampaignsRequest) Size() (n int)
func (*QueryCampaignsRequest) String ¶
func (m *QueryCampaignsRequest) String() string
func (*QueryCampaignsRequest) Unmarshal ¶
func (m *QueryCampaignsRequest) Unmarshal(dAtA []byte) error
func (*QueryCampaignsRequest) XXX_DiscardUnknown ¶
func (m *QueryCampaignsRequest) XXX_DiscardUnknown()
func (*QueryCampaignsRequest) XXX_Marshal ¶
func (m *QueryCampaignsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCampaignsRequest) XXX_Merge ¶
func (m *QueryCampaignsRequest) XXX_Merge(src proto.Message)
func (*QueryCampaignsRequest) XXX_Size ¶
func (m *QueryCampaignsRequest) XXX_Size() int
func (*QueryCampaignsRequest) XXX_Unmarshal ¶
func (m *QueryCampaignsRequest) XXX_Unmarshal(b []byte) error
type QueryCampaignsResponse ¶
type QueryCampaignsResponse struct { Campaign []Campaign `protobuf:"bytes,1,rep,name=campaign,proto3" json:"campaign"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCampaignsResponse is response body of the query all campaigns endpoint.
func (*QueryCampaignsResponse) Descriptor ¶
func (*QueryCampaignsResponse) Descriptor() ([]byte, []int)
func (*QueryCampaignsResponse) GetCampaign ¶
func (m *QueryCampaignsResponse) GetCampaign() []Campaign
func (*QueryCampaignsResponse) GetPagination ¶
func (m *QueryCampaignsResponse) GetPagination() *query.PageResponse
func (*QueryCampaignsResponse) Marshal ¶
func (m *QueryCampaignsResponse) Marshal() (dAtA []byte, err error)
func (*QueryCampaignsResponse) MarshalTo ¶
func (m *QueryCampaignsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCampaignsResponse) MarshalToSizedBuffer ¶
func (m *QueryCampaignsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCampaignsResponse) ProtoMessage ¶
func (*QueryCampaignsResponse) ProtoMessage()
func (*QueryCampaignsResponse) Reset ¶
func (m *QueryCampaignsResponse) Reset()
func (*QueryCampaignsResponse) Size ¶
func (m *QueryCampaignsResponse) Size() (n int)
func (*QueryCampaignsResponse) String ¶
func (m *QueryCampaignsResponse) String() string
func (*QueryCampaignsResponse) Unmarshal ¶
func (m *QueryCampaignsResponse) Unmarshal(dAtA []byte) error
func (*QueryCampaignsResponse) XXX_DiscardUnknown ¶
func (m *QueryCampaignsResponse) XXX_DiscardUnknown()
func (*QueryCampaignsResponse) XXX_Marshal ¶
func (m *QueryCampaignsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCampaignsResponse) XXX_Merge ¶
func (m *QueryCampaignsResponse) XXX_Merge(src proto.Message)
func (*QueryCampaignsResponse) XXX_Size ¶
func (m *QueryCampaignsResponse) XXX_Size() int
func (*QueryCampaignsResponse) XXX_Unmarshal ¶
func (m *QueryCampaignsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // PromoterByAddress queries a certain promoter. PromoterByAddress(ctx context.Context, in *QueryPromoterByAddressRequest, opts ...grpc.CallOption) (*QueryPromoterByAddressResponse, error) // Queries list of all Promoter items. Promoters(ctx context.Context, in *QueryPromotersRequest, opts ...grpc.CallOption) (*QueryPromotersResponse, error) // Queries a specific Campaign item. Campaign(ctx context.Context, in *QueryCampaignRequest, opts ...grpc.CallOption) (*QueryCampaignResponse, error) // Queries list of all Campaign items. Campaigns(ctx context.Context, in *QueryCampaignsRequest, opts ...grpc.CallOption) (*QueryCampaignsResponse, error) // Queries a specific Reward item Reward(ctx context.Context, in *QueryRewardRequest, opts ...grpc.CallOption) (*QueryRewardResponse, error) // Queries list of all Reward items. Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error) // Queries list of all Reward items by user address. RewardsByAddress(ctx context.Context, in *QueryRewardsByAddressRequest, opts ...grpc.CallOption) (*QueryRewardsByAddressResponse, error) // Queries list of all Reward items by user address and reward type // endpoint. RewardsByAddressAndCategory(ctx context.Context, in *QueryRewardsByAddressAndCategoryRequest, opts ...grpc.CallOption) (*QueryRewardsByAddressAndCategoryResponse, error) // Queries list of all Reward items by campaign endpoint. RewardsByCampaign(ctx context.Context, in *QueryRewardsByCampaignRequest, opts ...grpc.CallOption) (*QueryRewardsByCampaignResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPromoterByAddressRequest ¶ added in v1.4.5
type QueryPromoterByAddressRequest struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
}
QueryPromoterByAddressRequest is request type for the Query/GetPromoterByAddress RPC method.
func (*QueryPromoterByAddressRequest) Descriptor ¶ added in v1.4.5
func (*QueryPromoterByAddressRequest) Descriptor() ([]byte, []int)
func (*QueryPromoterByAddressRequest) GetAddr ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) GetAddr() string
func (*QueryPromoterByAddressRequest) Marshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryPromoterByAddressRequest) MarshalTo ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPromoterByAddressRequest) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPromoterByAddressRequest) ProtoMessage ¶ added in v1.4.5
func (*QueryPromoterByAddressRequest) ProtoMessage()
func (*QueryPromoterByAddressRequest) Reset ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) Reset()
func (*QueryPromoterByAddressRequest) Size ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) Size() (n int)
func (*QueryPromoterByAddressRequest) String ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) String() string
func (*QueryPromoterByAddressRequest) Unmarshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryPromoterByAddressRequest) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) XXX_DiscardUnknown()
func (*QueryPromoterByAddressRequest) XXX_Marshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPromoterByAddressRequest) XXX_Merge ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) XXX_Merge(src proto.Message)
func (*QueryPromoterByAddressRequest) XXX_Size ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) XXX_Size() int
func (*QueryPromoterByAddressRequest) XXX_Unmarshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressRequest) XXX_Unmarshal(b []byte) error
type QueryPromoterByAddressResponse ¶ added in v1.4.5
type QueryPromoterByAddressResponse struct { // promoter holds the queries promoter. Promoter Promoter `protobuf:"bytes,1,opt,name=promoter,proto3" json:"promoter"` }
QueryPromoterByAddressResponse is response type for the Query/GetPromoterByAddress RPC method.
func (*QueryPromoterByAddressResponse) Descriptor ¶ added in v1.4.5
func (*QueryPromoterByAddressResponse) Descriptor() ([]byte, []int)
func (*QueryPromoterByAddressResponse) GetPromoter ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) GetPromoter() Promoter
func (*QueryPromoterByAddressResponse) Marshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryPromoterByAddressResponse) MarshalTo ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPromoterByAddressResponse) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPromoterByAddressResponse) ProtoMessage ¶ added in v1.4.5
func (*QueryPromoterByAddressResponse) ProtoMessage()
func (*QueryPromoterByAddressResponse) Reset ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) Reset()
func (*QueryPromoterByAddressResponse) Size ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) Size() (n int)
func (*QueryPromoterByAddressResponse) String ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) String() string
func (*QueryPromoterByAddressResponse) Unmarshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryPromoterByAddressResponse) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) XXX_DiscardUnknown()
func (*QueryPromoterByAddressResponse) XXX_Marshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPromoterByAddressResponse) XXX_Merge ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryPromoterByAddressResponse) XXX_Size ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) XXX_Size() int
func (*QueryPromoterByAddressResponse) XXX_Unmarshal ¶ added in v1.4.5
func (m *QueryPromoterByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryPromotersRequest ¶ added in v1.4.5
type QueryPromotersRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryPromotersRequest is request body for the query all promoters endpoint.
func (*QueryPromotersRequest) Descriptor ¶ added in v1.4.5
func (*QueryPromotersRequest) Descriptor() ([]byte, []int)
func (*QueryPromotersRequest) GetPagination ¶ added in v1.4.5
func (m *QueryPromotersRequest) GetPagination() *query.PageRequest
func (*QueryPromotersRequest) Marshal ¶ added in v1.4.5
func (m *QueryPromotersRequest) Marshal() (dAtA []byte, err error)
func (*QueryPromotersRequest) MarshalTo ¶ added in v1.4.5
func (m *QueryPromotersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPromotersRequest) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *QueryPromotersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPromotersRequest) ProtoMessage ¶ added in v1.4.5
func (*QueryPromotersRequest) ProtoMessage()
func (*QueryPromotersRequest) Reset ¶ added in v1.4.5
func (m *QueryPromotersRequest) Reset()
func (*QueryPromotersRequest) Size ¶ added in v1.4.5
func (m *QueryPromotersRequest) Size() (n int)
func (*QueryPromotersRequest) String ¶ added in v1.4.5
func (m *QueryPromotersRequest) String() string
func (*QueryPromotersRequest) Unmarshal ¶ added in v1.4.5
func (m *QueryPromotersRequest) Unmarshal(dAtA []byte) error
func (*QueryPromotersRequest) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *QueryPromotersRequest) XXX_DiscardUnknown()
func (*QueryPromotersRequest) XXX_Marshal ¶ added in v1.4.5
func (m *QueryPromotersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPromotersRequest) XXX_Merge ¶ added in v1.4.5
func (m *QueryPromotersRequest) XXX_Merge(src proto.Message)
func (*QueryPromotersRequest) XXX_Size ¶ added in v1.4.5
func (m *QueryPromotersRequest) XXX_Size() int
func (*QueryPromotersRequest) XXX_Unmarshal ¶ added in v1.4.5
func (m *QueryPromotersRequest) XXX_Unmarshal(b []byte) error
type QueryPromotersResponse ¶ added in v1.4.5
type QueryPromotersResponse struct { Promoter []Promoter `protobuf:"bytes,1,rep,name=promoter,proto3" json:"promoter"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPromotersResponse is response body of the query all promoters endpoint.
func (*QueryPromotersResponse) Descriptor ¶ added in v1.4.5
func (*QueryPromotersResponse) Descriptor() ([]byte, []int)
func (*QueryPromotersResponse) GetPagination ¶ added in v1.4.5
func (m *QueryPromotersResponse) GetPagination() *query.PageResponse
func (*QueryPromotersResponse) GetPromoter ¶ added in v1.4.5
func (m *QueryPromotersResponse) GetPromoter() []Promoter
func (*QueryPromotersResponse) Marshal ¶ added in v1.4.5
func (m *QueryPromotersResponse) Marshal() (dAtA []byte, err error)
func (*QueryPromotersResponse) MarshalTo ¶ added in v1.4.5
func (m *QueryPromotersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPromotersResponse) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *QueryPromotersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPromotersResponse) ProtoMessage ¶ added in v1.4.5
func (*QueryPromotersResponse) ProtoMessage()
func (*QueryPromotersResponse) Reset ¶ added in v1.4.5
func (m *QueryPromotersResponse) Reset()
func (*QueryPromotersResponse) Size ¶ added in v1.4.5
func (m *QueryPromotersResponse) Size() (n int)
func (*QueryPromotersResponse) String ¶ added in v1.4.5
func (m *QueryPromotersResponse) String() string
func (*QueryPromotersResponse) Unmarshal ¶ added in v1.4.5
func (m *QueryPromotersResponse) Unmarshal(dAtA []byte) error
func (*QueryPromotersResponse) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *QueryPromotersResponse) XXX_DiscardUnknown()
func (*QueryPromotersResponse) XXX_Marshal ¶ added in v1.4.5
func (m *QueryPromotersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPromotersResponse) XXX_Merge ¶ added in v1.4.5
func (m *QueryPromotersResponse) XXX_Merge(src proto.Message)
func (*QueryPromotersResponse) XXX_Size ¶ added in v1.4.5
func (m *QueryPromotersResponse) XXX_Size() int
func (*QueryPromotersResponse) XXX_Unmarshal ¶ added in v1.4.5
func (m *QueryPromotersResponse) XXX_Unmarshal(b []byte) error
type QueryRewardRequest ¶
type QueryRewardRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
}
QueryRewardRequest is request body of the query reward endpoint.
func (*QueryRewardRequest) Descriptor ¶
func (*QueryRewardRequest) Descriptor() ([]byte, []int)
func (*QueryRewardRequest) GetUid ¶
func (m *QueryRewardRequest) GetUid() string
func (*QueryRewardRequest) Marshal ¶
func (m *QueryRewardRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardRequest) MarshalTo ¶
func (m *QueryRewardRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardRequest) ProtoMessage ¶
func (*QueryRewardRequest) ProtoMessage()
func (*QueryRewardRequest) Reset ¶
func (m *QueryRewardRequest) Reset()
func (*QueryRewardRequest) Size ¶
func (m *QueryRewardRequest) Size() (n int)
func (*QueryRewardRequest) String ¶
func (m *QueryRewardRequest) String() string
func (*QueryRewardRequest) Unmarshal ¶
func (m *QueryRewardRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardRequest) XXX_DiscardUnknown()
func (*QueryRewardRequest) XXX_Marshal ¶
func (m *QueryRewardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardRequest) XXX_Merge ¶
func (m *QueryRewardRequest) XXX_Merge(src proto.Message)
func (*QueryRewardRequest) XXX_Size ¶
func (m *QueryRewardRequest) XXX_Size() int
func (*QueryRewardRequest) XXX_Unmarshal ¶
func (m *QueryRewardRequest) XXX_Unmarshal(b []byte) error
type QueryRewardResponse ¶
type QueryRewardResponse struct {
Reward Reward `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward"`
}
QueryRewardResponse is response body of the query reward endpoint.
func (*QueryRewardResponse) Descriptor ¶
func (*QueryRewardResponse) Descriptor() ([]byte, []int)
func (*QueryRewardResponse) GetReward ¶
func (m *QueryRewardResponse) GetReward() Reward
func (*QueryRewardResponse) Marshal ¶
func (m *QueryRewardResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardResponse) MarshalTo ¶
func (m *QueryRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardResponse) ProtoMessage ¶
func (*QueryRewardResponse) ProtoMessage()
func (*QueryRewardResponse) Reset ¶
func (m *QueryRewardResponse) Reset()
func (*QueryRewardResponse) Size ¶
func (m *QueryRewardResponse) Size() (n int)
func (*QueryRewardResponse) String ¶
func (m *QueryRewardResponse) String() string
func (*QueryRewardResponse) Unmarshal ¶
func (m *QueryRewardResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardResponse) XXX_DiscardUnknown()
func (*QueryRewardResponse) XXX_Marshal ¶
func (m *QueryRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardResponse) XXX_Merge ¶
func (m *QueryRewardResponse) XXX_Merge(src proto.Message)
func (*QueryRewardResponse) XXX_Size ¶
func (m *QueryRewardResponse) XXX_Size() int
func (*QueryRewardResponse) XXX_Unmarshal ¶
func (m *QueryRewardResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByAddressAndCategoryRequest ¶
type QueryRewardsByAddressAndCategoryRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Category RewardCategory `protobuf:"varint,3,opt,name=category,proto3,enum=sgenetwork.sge.reward.RewardCategory" json:"category,omitempty"` PromoterUid string `protobuf:"bytes,4,opt,name=promoter_uid,json=promoterUid,proto3" json:"promoter_uid,omitempty"` }
QueryRewardsByAddressAndCategoryRequest is request body for the query all rewards by address and category endpoint.
func (*QueryRewardsByAddressAndCategoryRequest) Descriptor ¶
func (*QueryRewardsByAddressAndCategoryRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByAddressAndCategoryRequest) GetAddress ¶
func (m *QueryRewardsByAddressAndCategoryRequest) GetAddress() string
func (*QueryRewardsByAddressAndCategoryRequest) GetCategory ¶
func (m *QueryRewardsByAddressAndCategoryRequest) GetCategory() RewardCategory
func (*QueryRewardsByAddressAndCategoryRequest) GetPagination ¶
func (m *QueryRewardsByAddressAndCategoryRequest) GetPagination() *query.PageRequest
func (*QueryRewardsByAddressAndCategoryRequest) GetPromoterUid ¶ added in v1.4.5
func (m *QueryRewardsByAddressAndCategoryRequest) GetPromoterUid() string
func (*QueryRewardsByAddressAndCategoryRequest) Marshal ¶
func (m *QueryRewardsByAddressAndCategoryRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByAddressAndCategoryRequest) MarshalTo ¶
func (m *QueryRewardsByAddressAndCategoryRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByAddressAndCategoryRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardsByAddressAndCategoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByAddressAndCategoryRequest) ProtoMessage ¶
func (*QueryRewardsByAddressAndCategoryRequest) ProtoMessage()
func (*QueryRewardsByAddressAndCategoryRequest) Reset ¶
func (m *QueryRewardsByAddressAndCategoryRequest) Reset()
func (*QueryRewardsByAddressAndCategoryRequest) Size ¶
func (m *QueryRewardsByAddressAndCategoryRequest) Size() (n int)
func (*QueryRewardsByAddressAndCategoryRequest) String ¶
func (m *QueryRewardsByAddressAndCategoryRequest) String() string
func (*QueryRewardsByAddressAndCategoryRequest) Unmarshal ¶
func (m *QueryRewardsByAddressAndCategoryRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByAddressAndCategoryRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardsByAddressAndCategoryRequest) XXX_DiscardUnknown()
func (*QueryRewardsByAddressAndCategoryRequest) XXX_Marshal ¶
func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByAddressAndCategoryRequest) XXX_Merge ¶
func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByAddressAndCategoryRequest) XXX_Size ¶
func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Size() int
func (*QueryRewardsByAddressAndCategoryRequest) XXX_Unmarshal ¶
func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByAddressAndCategoryResponse ¶
type QueryRewardsByAddressAndCategoryResponse struct { Rewards []RewardByCategory `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsByAddressAndCategoryResponse is response body of the query all rewards by address and category endpoint.
func (*QueryRewardsByAddressAndCategoryResponse) Descriptor ¶
func (*QueryRewardsByAddressAndCategoryResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByAddressAndCategoryResponse) GetPagination ¶
func (m *QueryRewardsByAddressAndCategoryResponse) GetPagination() *query.PageResponse
func (*QueryRewardsByAddressAndCategoryResponse) GetRewards ¶
func (m *QueryRewardsByAddressAndCategoryResponse) GetRewards() []RewardByCategory
func (*QueryRewardsByAddressAndCategoryResponse) Marshal ¶
func (m *QueryRewardsByAddressAndCategoryResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByAddressAndCategoryResponse) MarshalTo ¶
func (m *QueryRewardsByAddressAndCategoryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByAddressAndCategoryResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsByAddressAndCategoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByAddressAndCategoryResponse) ProtoMessage ¶
func (*QueryRewardsByAddressAndCategoryResponse) ProtoMessage()
func (*QueryRewardsByAddressAndCategoryResponse) Reset ¶
func (m *QueryRewardsByAddressAndCategoryResponse) Reset()
func (*QueryRewardsByAddressAndCategoryResponse) Size ¶
func (m *QueryRewardsByAddressAndCategoryResponse) Size() (n int)
func (*QueryRewardsByAddressAndCategoryResponse) String ¶
func (m *QueryRewardsByAddressAndCategoryResponse) String() string
func (*QueryRewardsByAddressAndCategoryResponse) Unmarshal ¶
func (m *QueryRewardsByAddressAndCategoryResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByAddressAndCategoryResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsByAddressAndCategoryResponse) XXX_DiscardUnknown()
func (*QueryRewardsByAddressAndCategoryResponse) XXX_Marshal ¶
func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByAddressAndCategoryResponse) XXX_Merge ¶
func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByAddressAndCategoryResponse) XXX_Size ¶
func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Size() int
func (*QueryRewardsByAddressAndCategoryResponse) XXX_Unmarshal ¶
func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByAddressRequest ¶
type QueryRewardsByAddressRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` PromoterUid string `protobuf:"bytes,3,opt,name=promoter_uid,json=promoterUid,proto3" json:"promoter_uid,omitempty"` }
QueryRewardsByAddressRequest is request body for the query all rewards by address endpoint.
func (*QueryRewardsByAddressRequest) Descriptor ¶
func (*QueryRewardsByAddressRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByAddressRequest) GetAddress ¶
func (m *QueryRewardsByAddressRequest) GetAddress() string
func (*QueryRewardsByAddressRequest) GetPagination ¶
func (m *QueryRewardsByAddressRequest) GetPagination() *query.PageRequest
func (*QueryRewardsByAddressRequest) GetPromoterUid ¶ added in v1.4.5
func (m *QueryRewardsByAddressRequest) GetPromoterUid() string
func (*QueryRewardsByAddressRequest) Marshal ¶
func (m *QueryRewardsByAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByAddressRequest) MarshalTo ¶
func (m *QueryRewardsByAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardsByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByAddressRequest) ProtoMessage ¶
func (*QueryRewardsByAddressRequest) ProtoMessage()
func (*QueryRewardsByAddressRequest) Reset ¶
func (m *QueryRewardsByAddressRequest) Reset()
func (*QueryRewardsByAddressRequest) Size ¶
func (m *QueryRewardsByAddressRequest) Size() (n int)
func (*QueryRewardsByAddressRequest) String ¶
func (m *QueryRewardsByAddressRequest) String() string
func (*QueryRewardsByAddressRequest) Unmarshal ¶
func (m *QueryRewardsByAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardsByAddressRequest) XXX_DiscardUnknown()
func (*QueryRewardsByAddressRequest) XXX_Marshal ¶
func (m *QueryRewardsByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByAddressRequest) XXX_Merge ¶
func (m *QueryRewardsByAddressRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByAddressRequest) XXX_Size ¶
func (m *QueryRewardsByAddressRequest) XXX_Size() int
func (*QueryRewardsByAddressRequest) XXX_Unmarshal ¶
func (m *QueryRewardsByAddressRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByAddressResponse ¶
type QueryRewardsByAddressResponse struct { Rewards []RewardByCategory `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsByAddressResponse is response body of the query all rewards by address endpoint.
func (*QueryRewardsByAddressResponse) Descriptor ¶
func (*QueryRewardsByAddressResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByAddressResponse) GetPagination ¶
func (m *QueryRewardsByAddressResponse) GetPagination() *query.PageResponse
func (*QueryRewardsByAddressResponse) GetRewards ¶
func (m *QueryRewardsByAddressResponse) GetRewards() []RewardByCategory
func (*QueryRewardsByAddressResponse) Marshal ¶
func (m *QueryRewardsByAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByAddressResponse) MarshalTo ¶
func (m *QueryRewardsByAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByAddressResponse) ProtoMessage ¶
func (*QueryRewardsByAddressResponse) ProtoMessage()
func (*QueryRewardsByAddressResponse) Reset ¶
func (m *QueryRewardsByAddressResponse) Reset()
func (*QueryRewardsByAddressResponse) Size ¶
func (m *QueryRewardsByAddressResponse) Size() (n int)
func (*QueryRewardsByAddressResponse) String ¶
func (m *QueryRewardsByAddressResponse) String() string
func (*QueryRewardsByAddressResponse) Unmarshal ¶
func (m *QueryRewardsByAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsByAddressResponse) XXX_DiscardUnknown()
func (*QueryRewardsByAddressResponse) XXX_Marshal ¶
func (m *QueryRewardsByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByAddressResponse) XXX_Merge ¶
func (m *QueryRewardsByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByAddressResponse) XXX_Size ¶
func (m *QueryRewardsByAddressResponse) XXX_Size() int
func (*QueryRewardsByAddressResponse) XXX_Unmarshal ¶
func (m *QueryRewardsByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByCampaignRequest ¶
type QueryRewardsByCampaignRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` CampaignUid string `protobuf:"bytes,2,opt,name=campaign_uid,json=campaignUid,proto3" json:"campaign_uid,omitempty"` }
QueryRewardsByCampaignRequest is request body for the query all rewards by campaign endpoint.
func (*QueryRewardsByCampaignRequest) Descriptor ¶
func (*QueryRewardsByCampaignRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByCampaignRequest) GetCampaignUid ¶
func (m *QueryRewardsByCampaignRequest) GetCampaignUid() string
func (*QueryRewardsByCampaignRequest) GetPagination ¶
func (m *QueryRewardsByCampaignRequest) GetPagination() *query.PageRequest
func (*QueryRewardsByCampaignRequest) Marshal ¶
func (m *QueryRewardsByCampaignRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByCampaignRequest) MarshalTo ¶
func (m *QueryRewardsByCampaignRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByCampaignRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardsByCampaignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByCampaignRequest) ProtoMessage ¶
func (*QueryRewardsByCampaignRequest) ProtoMessage()
func (*QueryRewardsByCampaignRequest) Reset ¶
func (m *QueryRewardsByCampaignRequest) Reset()
func (*QueryRewardsByCampaignRequest) Size ¶
func (m *QueryRewardsByCampaignRequest) Size() (n int)
func (*QueryRewardsByCampaignRequest) String ¶
func (m *QueryRewardsByCampaignRequest) String() string
func (*QueryRewardsByCampaignRequest) Unmarshal ¶
func (m *QueryRewardsByCampaignRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByCampaignRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardsByCampaignRequest) XXX_DiscardUnknown()
func (*QueryRewardsByCampaignRequest) XXX_Marshal ¶
func (m *QueryRewardsByCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByCampaignRequest) XXX_Merge ¶
func (m *QueryRewardsByCampaignRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByCampaignRequest) XXX_Size ¶
func (m *QueryRewardsByCampaignRequest) XXX_Size() int
func (*QueryRewardsByCampaignRequest) XXX_Unmarshal ¶
func (m *QueryRewardsByCampaignRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByCampaignResponse ¶
type QueryRewardsByCampaignResponse struct { Rewards []RewardByCampaign `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsByCampaignResponse is response body of the query all rewards by campaign endpoint.
func (*QueryRewardsByCampaignResponse) Descriptor ¶
func (*QueryRewardsByCampaignResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByCampaignResponse) GetPagination ¶
func (m *QueryRewardsByCampaignResponse) GetPagination() *query.PageResponse
func (*QueryRewardsByCampaignResponse) GetRewards ¶
func (m *QueryRewardsByCampaignResponse) GetRewards() []RewardByCampaign
func (*QueryRewardsByCampaignResponse) Marshal ¶
func (m *QueryRewardsByCampaignResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByCampaignResponse) MarshalTo ¶
func (m *QueryRewardsByCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByCampaignResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsByCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByCampaignResponse) ProtoMessage ¶
func (*QueryRewardsByCampaignResponse) ProtoMessage()
func (*QueryRewardsByCampaignResponse) Reset ¶
func (m *QueryRewardsByCampaignResponse) Reset()
func (*QueryRewardsByCampaignResponse) Size ¶
func (m *QueryRewardsByCampaignResponse) Size() (n int)
func (*QueryRewardsByCampaignResponse) String ¶
func (m *QueryRewardsByCampaignResponse) String() string
func (*QueryRewardsByCampaignResponse) Unmarshal ¶
func (m *QueryRewardsByCampaignResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByCampaignResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsByCampaignResponse) XXX_DiscardUnknown()
func (*QueryRewardsByCampaignResponse) XXX_Marshal ¶
func (m *QueryRewardsByCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByCampaignResponse) XXX_Merge ¶
func (m *QueryRewardsByCampaignResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByCampaignResponse) XXX_Size ¶
func (m *QueryRewardsByCampaignResponse) XXX_Size() int
func (*QueryRewardsByCampaignResponse) XXX_Unmarshal ¶
func (m *QueryRewardsByCampaignResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsRequest ¶
type QueryRewardsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryRewardsRequest is request body for the query all rewards endpoint.
func (*QueryRewardsRequest) Descriptor ¶
func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsRequest) GetPagination ¶
func (m *QueryRewardsRequest) GetPagination() *query.PageRequest
func (*QueryRewardsRequest) Marshal ¶
func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsRequest) MarshalTo ¶
func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsRequest) ProtoMessage ¶
func (*QueryRewardsRequest) ProtoMessage()
func (*QueryRewardsRequest) Reset ¶
func (m *QueryRewardsRequest) Reset()
func (*QueryRewardsRequest) Size ¶
func (m *QueryRewardsRequest) Size() (n int)
func (*QueryRewardsRequest) String ¶
func (m *QueryRewardsRequest) String() string
func (*QueryRewardsRequest) Unmarshal ¶
func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardsRequest) XXX_DiscardUnknown()
func (*QueryRewardsRequest) XXX_Marshal ¶
func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsRequest) XXX_Merge ¶
func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsRequest) XXX_Size ¶
func (m *QueryRewardsRequest) XXX_Size() int
func (*QueryRewardsRequest) XXX_Unmarshal ¶
func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsResponse ¶
type QueryRewardsResponse struct { Rewards []Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsResponse is response body of the query all rewards endpoint.
func (*QueryRewardsResponse) Descriptor ¶
func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsResponse) GetPagination ¶
func (m *QueryRewardsResponse) GetPagination() *query.PageResponse
func (*QueryRewardsResponse) GetRewards ¶
func (m *QueryRewardsResponse) GetRewards() []Reward
func (*QueryRewardsResponse) Marshal ¶
func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsResponse) MarshalTo ¶
func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsResponse) ProtoMessage ¶
func (*QueryRewardsResponse) ProtoMessage()
func (*QueryRewardsResponse) Reset ¶
func (m *QueryRewardsResponse) Reset()
func (*QueryRewardsResponse) Size ¶
func (m *QueryRewardsResponse) Size() (n int)
func (*QueryRewardsResponse) String ¶
func (m *QueryRewardsResponse) String() string
func (*QueryRewardsResponse) Unmarshal ¶
func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsResponse) XXX_DiscardUnknown()
func (*QueryRewardsResponse) XXX_Marshal ¶
func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsResponse) XXX_Merge ¶
func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsResponse) XXX_Size ¶
func (m *QueryRewardsResponse) XXX_Size() int
func (*QueryRewardsResponse) XXX_Unmarshal ¶
func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // PromoterByAddress queries a certain promoter. PromoterByAddress(context.Context, *QueryPromoterByAddressRequest) (*QueryPromoterByAddressResponse, error) // Queries list of all Promoter items. Promoters(context.Context, *QueryPromotersRequest) (*QueryPromotersResponse, error) // Queries a specific Campaign item. Campaign(context.Context, *QueryCampaignRequest) (*QueryCampaignResponse, error) // Queries list of all Campaign items. Campaigns(context.Context, *QueryCampaignsRequest) (*QueryCampaignsResponse, error) // Queries a specific Reward item Reward(context.Context, *QueryRewardRequest) (*QueryRewardResponse, error) // Queries list of all Reward items. Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error) // Queries list of all Reward items by user address. RewardsByAddress(context.Context, *QueryRewardsByAddressRequest) (*QueryRewardsByAddressResponse, error) // Queries list of all Reward items by user address and reward type // endpoint. RewardsByAddressAndCategory(context.Context, *QueryRewardsByAddressAndCategoryRequest) (*QueryRewardsByAddressAndCategoryResponse, error) // Queries list of all Reward items by campaign endpoint. RewardsByCampaign(context.Context, *QueryRewardsByCampaignRequest) (*QueryRewardsByCampaignResponse, error) }
QueryServer is the server API for Query service.
type Receiver ¶
type Receiver struct { SubaccountAddr string MainAccountAddr string RewardAmount RewardAmount }
func NewReceiver ¶
func NewReceiver(maAddr, saAddr string, maAmount, saAmount sdkmath.Int, maPercentage, saPercentage sdk.Dec, unlockPeriod uint64, ) Receiver
NewReceiver creates receiver object.
func (Receiver) TotalAmount ¶ added in v1.4.5
type Reward ¶
type Reward struct { // uid is the unique identifier for a reward. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // creator is the address of the account that invokes the reward transaction. Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // receiver is the address of the account that receives the reward. Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` // campaign_uid is the unique identifier of the campaign. CampaignUID string `protobuf:"bytes,4,opt,name=campaign_uid,proto3" json:"campaign_uid"` // reward_amount is the amount of the reward. RewardAmount *RewardAmount `protobuf:"bytes,7,opt,name=reward_amount,proto3" json:"reward_amount"` // source_uid is the address of the source. // It is used to identify the source of the reward. // For example, the source uid of a referral signup // reward is the address of the referer. SourceUID string `protobuf:"bytes,8,opt,name=source_uid,proto3" json:"source_uid"` // meta is the metadata of the campaign. // It is a stringified base64 encoded json. Meta string `protobuf:"bytes,12,opt,name=meta,proto3" json:"meta,omitempty"` }
Reward is the type for transaction made to reward a user based on users eligibility.
func (*Reward) Descriptor ¶
func (*Reward) GetCampaignUID ¶
func (*Reward) GetCreator ¶
func (*Reward) GetReceiver ¶
func (*Reward) GetRewardAmount ¶
func (m *Reward) GetRewardAmount() *RewardAmount
func (*Reward) GetSourceUID ¶
func (*Reward) MarshalToSizedBuffer ¶
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) XXX_DiscardUnknown ¶
func (m *Reward) XXX_DiscardUnknown()
func (*Reward) XXX_Marshal ¶
func (*Reward) XXX_Unmarshal ¶
type RewardAmount ¶
type RewardAmount struct { // main_account_amount transferred to main account address MainAccountAmount cosmossdk_io_math.Int `` /* 164-byte string literal not displayed */ // subaccount_amount transferred to subaccount address SubaccountAmount cosmossdk_io_math.Int `` /* 157-byte string literal not displayed */ // unlock_period is the period after which the reward is unlocked. UnlockPeriod uint64 `protobuf:"varint,3,opt,name=unlock_period,proto3" json:"unlock_period"` // main_account_percentage transferred to main account address MainAccountPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 197-byte string literal not displayed */ // subaccount_percentage amount transferred to subaccount address SubaccountPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ }
RewardAmount
func (*RewardAmount) Descriptor ¶
func (*RewardAmount) Descriptor() ([]byte, []int)
func (*RewardAmount) GetUnlockPeriod ¶
func (m *RewardAmount) GetUnlockPeriod() uint64
func (*RewardAmount) Marshal ¶
func (m *RewardAmount) Marshal() (dAtA []byte, err error)
func (*RewardAmount) MarshalToSizedBuffer ¶
func (m *RewardAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardAmount) ProtoMessage ¶
func (*RewardAmount) ProtoMessage()
func (*RewardAmount) Reset ¶
func (m *RewardAmount) Reset()
func (*RewardAmount) Size ¶
func (m *RewardAmount) Size() (n int)
func (*RewardAmount) String ¶
func (m *RewardAmount) String() string
func (*RewardAmount) Unmarshal ¶
func (m *RewardAmount) Unmarshal(dAtA []byte) error
func (*RewardAmount) XXX_DiscardUnknown ¶
func (m *RewardAmount) XXX_DiscardUnknown()
func (*RewardAmount) XXX_Marshal ¶
func (m *RewardAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardAmount) XXX_Merge ¶
func (m *RewardAmount) XXX_Merge(src proto.Message)
func (*RewardAmount) XXX_Size ¶
func (m *RewardAmount) XXX_Size() int
func (*RewardAmount) XXX_Unmarshal ¶
func (m *RewardAmount) XXX_Unmarshal(b []byte) error
type RewardAmountType ¶
type RewardAmountType int32
RewardType defines supported types of rewards of reward module.
const ( // the invalid or unknown RewardAmountType_REWARD_AMOUNT_TYPE_UNSPECIFIED RewardAmountType = 0 // Fixed amount RewardAmountType_REWARD_AMOUNT_TYPE_FIXED RewardAmountType = 1 // Business logic defined amount RewardAmountType_REWARD_AMOUNT_TYPE_LOGIC RewardAmountType = 2 // Percentage of bet amount RewardAmountType_REWARD_AMOUNT_TYPE_PERCENTAGE RewardAmountType = 3 )
func (RewardAmountType) EnumDescriptor ¶
func (RewardAmountType) EnumDescriptor() ([]byte, []int)
func (RewardAmountType) String ¶
func (x RewardAmountType) String() string
type RewardByCampaign ¶
type RewardByCampaign struct { // uid is the unique identifier for a reward. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // campaign_uid is the unique identifier of the campaign. CampaignUID string `protobuf:"bytes,2,opt,name=campaign_uid,proto3" json:"campaign_uid"` }
RewardByCampaign
func NewRewardByCampaign ¶
func NewRewardByCampaign(uid, campaignUID string) RewardByCampaign
func (*RewardByCampaign) Descriptor ¶
func (*RewardByCampaign) Descriptor() ([]byte, []int)
func (*RewardByCampaign) GetCampaignUID ¶
func (m *RewardByCampaign) GetCampaignUID() string
func (*RewardByCampaign) GetUID ¶
func (m *RewardByCampaign) GetUID() string
func (*RewardByCampaign) Marshal ¶
func (m *RewardByCampaign) Marshal() (dAtA []byte, err error)
func (*RewardByCampaign) MarshalToSizedBuffer ¶
func (m *RewardByCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardByCampaign) ProtoMessage ¶
func (*RewardByCampaign) ProtoMessage()
func (*RewardByCampaign) Reset ¶
func (m *RewardByCampaign) Reset()
func (*RewardByCampaign) Size ¶
func (m *RewardByCampaign) Size() (n int)
func (*RewardByCampaign) String ¶
func (m *RewardByCampaign) String() string
func (*RewardByCampaign) Unmarshal ¶
func (m *RewardByCampaign) Unmarshal(dAtA []byte) error
func (*RewardByCampaign) XXX_DiscardUnknown ¶
func (m *RewardByCampaign) XXX_DiscardUnknown()
func (*RewardByCampaign) XXX_Marshal ¶
func (m *RewardByCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardByCampaign) XXX_Merge ¶
func (m *RewardByCampaign) XXX_Merge(src proto.Message)
func (*RewardByCampaign) XXX_Size ¶
func (m *RewardByCampaign) XXX_Size() int
func (*RewardByCampaign) XXX_Unmarshal ¶
func (m *RewardByCampaign) XXX_Unmarshal(b []byte) error
type RewardByCategory ¶
type RewardByCategory struct { // uid is the unique identifier for a reward. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // addr is the address of the reward receiver. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // reward_category is the category of the reward. RewardCategory RewardCategory `` /* 146-byte string literal not displayed */ }
RewardByCategory
func NewRewardByCategory ¶
func NewRewardByCategory(uid, addr string, rewardCategory RewardCategory) RewardByCategory
func (*RewardByCategory) Descriptor ¶
func (*RewardByCategory) Descriptor() ([]byte, []int)
func (*RewardByCategory) GetAddr ¶
func (m *RewardByCategory) GetAddr() string
func (*RewardByCategory) GetRewardCategory ¶
func (m *RewardByCategory) GetRewardCategory() RewardCategory
func (*RewardByCategory) GetUID ¶
func (m *RewardByCategory) GetUID() string
func (*RewardByCategory) Marshal ¶
func (m *RewardByCategory) Marshal() (dAtA []byte, err error)
func (*RewardByCategory) MarshalToSizedBuffer ¶
func (m *RewardByCategory) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardByCategory) ProtoMessage ¶
func (*RewardByCategory) ProtoMessage()
func (*RewardByCategory) Reset ¶
func (m *RewardByCategory) Reset()
func (*RewardByCategory) Size ¶
func (m *RewardByCategory) Size() (n int)
func (*RewardByCategory) String ¶
func (m *RewardByCategory) String() string
func (*RewardByCategory) Unmarshal ¶
func (m *RewardByCategory) Unmarshal(dAtA []byte) error
func (*RewardByCategory) XXX_DiscardUnknown ¶
func (m *RewardByCategory) XXX_DiscardUnknown()
func (*RewardByCategory) XXX_Marshal ¶
func (m *RewardByCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardByCategory) XXX_Merge ¶
func (m *RewardByCategory) XXX_Merge(src proto.Message)
func (*RewardByCategory) XXX_Size ¶
func (m *RewardByCategory) XXX_Size() int
func (*RewardByCategory) XXX_Unmarshal ¶
func (m *RewardByCategory) XXX_Unmarshal(b []byte) error
type RewardCategory ¶
type RewardCategory int32
RewardType defines supported types of rewards in reward module.
const ( // the invalid or unknown RewardCategory_REWARD_CATEGORY_UNSPECIFIED RewardCategory = 0 // signup reward RewardCategory_REWARD_CATEGORY_SIGNUP RewardCategory = 1 // referral reward RewardCategory_REWARD_CATEGORY_REFERRAL RewardCategory = 2 // affiliate reward RewardCategory_REWARD_CATEGORY_AFFILIATE RewardCategory = 3 // bet refunds RewardCategory_REWARD_CATEGORY_BET_REFUND RewardCategory = 4 // milestone reward RewardCategory_REWARD_CATEGORY_MILESTONE RewardCategory = 5 // bet discounts RewardCategory_REWARD_CATEGORY_BET_DISCOUNT RewardCategory = 6 // other rewards RewardCategory_REWARD_CATEGORY_OTHER RewardCategory = 7 )
func (RewardCategory) EnumDescriptor ¶
func (RewardCategory) EnumDescriptor() ([]byte, []int)
func (RewardCategory) String ¶
func (x RewardCategory) String() string
type RewardFactoryData ¶ added in v1.4.0
type RewardFactoryData struct { Receiver Receiver Common RewardPayloadCommon }
RewardFactoryData holds the data usable by reward types methods.
func NewRewardFactoryData ¶ added in v1.4.0
func NewRewardFactoryData(receiver Receiver, common RewardPayloadCommon) RewardFactoryData
type RewardFactoryKeepers ¶
type RewardFactoryKeepers struct { OVMKeeper BetKeeper SubaccountKeeper RewardKeeper AccountKeeper }
RewardFactoryKeepers holds the keeper objects usable by reward types methods.
type RewardKeeper ¶ added in v1.4.0
type RewardKeeper interface { HasRewardOfReceiverByPromoter(ctx sdk.Context, promoterUID, addr string, category RewardCategory) bool GetPromoterByAddress(ctx sdk.Context, address string) (val PromoterByAddress, found bool) }
RewardKeeper defines the expected interface needed to get and filter the rewards.
type RewardPayloadCommon ¶
type RewardPayloadCommon struct { // receiver is the address of the account that receives the reward. Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` // source_uid is the address of the source. // It is used to identify the source of the reward. // For example, the source uid of a referral signup reward is the address of // the referer. SourceUID string `protobuf:"bytes,2,opt,name=source_uid,proto3" json:"source_uid"` // meta is the metadata of the campaign. // It is a stringified base64 encoded json. Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` // kyc_data contains the details of user kyc. KycData *types.KycDataPayload `protobuf:"bytes,4,opt,name=kyc_data,json=kycData,proto3" json:"kyc_data,omitempty"` }
RewardPayloadCommon
func (*RewardPayloadCommon) Descriptor ¶
func (*RewardPayloadCommon) Descriptor() ([]byte, []int)
func (*RewardPayloadCommon) GetKycData ¶ added in v1.3.1
func (m *RewardPayloadCommon) GetKycData() *types.KycDataPayload
func (*RewardPayloadCommon) GetMeta ¶
func (m *RewardPayloadCommon) GetMeta() string
func (*RewardPayloadCommon) GetReceiver ¶
func (m *RewardPayloadCommon) GetReceiver() string
func (*RewardPayloadCommon) GetSourceUID ¶
func (m *RewardPayloadCommon) GetSourceUID() string
func (*RewardPayloadCommon) Marshal ¶
func (m *RewardPayloadCommon) Marshal() (dAtA []byte, err error)
func (*RewardPayloadCommon) MarshalTo ¶
func (m *RewardPayloadCommon) MarshalTo(dAtA []byte) (int, error)
func (*RewardPayloadCommon) MarshalToSizedBuffer ¶
func (m *RewardPayloadCommon) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardPayloadCommon) ProtoMessage ¶
func (*RewardPayloadCommon) ProtoMessage()
func (*RewardPayloadCommon) Reset ¶
func (m *RewardPayloadCommon) Reset()
func (*RewardPayloadCommon) Size ¶
func (m *RewardPayloadCommon) Size() (n int)
func (*RewardPayloadCommon) String ¶
func (m *RewardPayloadCommon) String() string
func (*RewardPayloadCommon) Unmarshal ¶
func (m *RewardPayloadCommon) Unmarshal(dAtA []byte) error
func (*RewardPayloadCommon) Validate ¶ added in v1.3.1
func (payload *RewardPayloadCommon) Validate() error
Validate validates common reward ticket payload.
func (*RewardPayloadCommon) XXX_DiscardUnknown ¶
func (m *RewardPayloadCommon) XXX_DiscardUnknown()
func (*RewardPayloadCommon) XXX_Marshal ¶
func (m *RewardPayloadCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardPayloadCommon) XXX_Merge ¶
func (m *RewardPayloadCommon) XXX_Merge(src proto.Message)
func (*RewardPayloadCommon) XXX_Size ¶
func (m *RewardPayloadCommon) XXX_Size() int
func (*RewardPayloadCommon) XXX_Unmarshal ¶
func (m *RewardPayloadCommon) XXX_Unmarshal(b []byte) error
type RewardPoolFunder ¶
type RewardPoolFunder struct{}
func (RewardPoolFunder) GetModuleAcc ¶
func (RewardPoolFunder) GetModuleAcc() string
type RewardType ¶
type RewardType int32
RewardType defines supported types of rewards of reward module.
const ( // the invalid or unknown RewardType_REWARD_TYPE_UNSPECIFIED RewardType = 0 // signup reward RewardType_REWARD_TYPE_SIGNUP RewardType = 1 // referral signup reward RewardType_REWARD_TYPE_REFERRAL_SIGNUP RewardType = 2 // affiliate signup reward RewardType_REWARD_TYPE_AFFILIATE_SIGNUP RewardType = 3 // referral reward RewardType_REWARD_TYPE_REFERRAL RewardType = 4 // affiliate reward RewardType_REWARD_TYPE_AFFILIATE RewardType = 5 // bet refunds RewardType_REWARD_TYPE_BET_REFUND RewardType = 6 // milestone reward RewardType_REWARD_TYPE_MILESTONE RewardType = 7 // bet discounts RewardType_REWARD_TYPE_BET_DISCOUNT RewardType = 8 // other rewards RewardType_REWARD_TYPE_OTHER RewardType = 9 )
func (RewardType) EnumDescriptor ¶
func (RewardType) EnumDescriptor() ([]byte, []int)
func (RewardType) String ¶
func (x RewardType) String() string
type SetPromoterConfPayload ¶ added in v1.4.5
type SetPromoterConfPayload struct {
Conf PromoterConf `protobuf:"bytes,1,opt,name=conf,proto3" json:"conf"`
}
SetPromoterConfPayload is the payload for the promoter configuration change.
func (*SetPromoterConfPayload) Descriptor ¶ added in v1.4.5
func (*SetPromoterConfPayload) Descriptor() ([]byte, []int)
func (*SetPromoterConfPayload) GetConf ¶ added in v1.4.5
func (m *SetPromoterConfPayload) GetConf() PromoterConf
func (*SetPromoterConfPayload) Marshal ¶ added in v1.4.5
func (m *SetPromoterConfPayload) Marshal() (dAtA []byte, err error)
func (*SetPromoterConfPayload) MarshalTo ¶ added in v1.4.5
func (m *SetPromoterConfPayload) MarshalTo(dAtA []byte) (int, error)
func (*SetPromoterConfPayload) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *SetPromoterConfPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetPromoterConfPayload) ProtoMessage ¶ added in v1.4.5
func (*SetPromoterConfPayload) ProtoMessage()
func (*SetPromoterConfPayload) Reset ¶ added in v1.4.5
func (m *SetPromoterConfPayload) Reset()
func (*SetPromoterConfPayload) Size ¶ added in v1.4.5
func (m *SetPromoterConfPayload) Size() (n int)
func (*SetPromoterConfPayload) String ¶ added in v1.4.5
func (m *SetPromoterConfPayload) String() string
func (*SetPromoterConfPayload) Unmarshal ¶ added in v1.4.5
func (m *SetPromoterConfPayload) Unmarshal(dAtA []byte) error
func (*SetPromoterConfPayload) Validate ¶ added in v1.4.5
func (payload *SetPromoterConfPayload) Validate() error
Validate validates promoter config set ticket payload.
func (*SetPromoterConfPayload) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *SetPromoterConfPayload) XXX_DiscardUnknown()
func (*SetPromoterConfPayload) XXX_Marshal ¶ added in v1.4.5
func (m *SetPromoterConfPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetPromoterConfPayload) XXX_Merge ¶ added in v1.4.5
func (m *SetPromoterConfPayload) XXX_Merge(src proto.Message)
func (*SetPromoterConfPayload) XXX_Size ¶ added in v1.4.5
func (m *SetPromoterConfPayload) XXX_Size() int
func (*SetPromoterConfPayload) XXX_Unmarshal ¶ added in v1.4.5
func (m *SetPromoterConfPayload) XXX_Unmarshal(b []byte) error
type SignUpAffiliateeReward ¶ added in v1.4.5
type SignUpAffiliateeReward struct{}
SignUpAffiliateeReward is the type for signup affiliate rewards calculations
func NewSignUpAffiliateeReward ¶ added in v1.4.5
func NewSignUpAffiliateeReward() SignUpAffiliateeReward
NewSignUpAffiliateeReward create new object of signup affiliate reward calculator type.
func (SignUpAffiliateeReward) Calculate ¶ added in v1.4.5
func (sur SignUpAffiliateeReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of signup reward.
func (SignUpAffiliateeReward) ValidateCampaign ¶ added in v1.4.5
func (sur SignUpAffiliateeReward) ValidateCampaign(campaign Campaign) error
ValidateCampaign validates campaign definitions.
type SignUpAffiliatorReward ¶ added in v1.4.5
type SignUpAffiliatorReward struct{}
SignUpAffiliatorReward is the type for signup Affiliator rewards calculations
func NewSignUpAffiliatorReward ¶ added in v1.4.5
func NewSignUpAffiliatorReward() SignUpAffiliatorReward
NewSignUpAffiliatorlReward create new object of signup Affiliator reward calculator type.
func (SignUpAffiliatorReward) Calculate ¶ added in v1.4.5
func (sur SignUpAffiliatorReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of signup reward.
func (SignUpAffiliatorReward) ValidateCampaign ¶ added in v1.4.5
func (sur SignUpAffiliatorReward) ValidateCampaign(campaign Campaign) error
ValidateCampaign validates campaign definitions.
type SignUpRefereelReward ¶ added in v1.4.0
type SignUpRefereelReward struct{}
SignUpRefereelReward is the type for signup referral rewards calculations
func NewSignUpRefereelReward ¶ added in v1.4.0
func NewSignUpRefereelReward() SignUpRefereelReward
NewSignUpRefereelReward create new object of signup referral reward calculator type.
func (SignUpRefereelReward) Calculate ¶ added in v1.4.0
func (sur SignUpRefereelReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of signup reward.
func (SignUpRefereelReward) ValidateCampaign ¶ added in v1.4.0
func (sur SignUpRefereelReward) ValidateCampaign(campaign Campaign) error
ValidateCampaign validates campaign definitions.
type SignUpReferrerReward ¶ added in v1.4.0
type SignUpReferrerReward struct{}
SignUpReferrerReward is the type for signup referrer rewards calculations
func NewSignUpReferrerReward ¶ added in v1.4.0
func NewSignUpReferrerReward() SignUpReferrerReward
NewSignUpReferrerlReward create new object of signup referrer reward calculator type.
func (SignUpReferrerReward) Calculate ¶ added in v1.4.0
func (sur SignUpReferrerReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of signup reward.
func (SignUpReferrerReward) ValidateCampaign ¶ added in v1.4.0
func (sur SignUpReferrerReward) ValidateCampaign(campaign Campaign) error
ValidateCampaign validates campaign definitions.
type SignUpReward ¶
type SignUpReward struct{}
SignUpReward is the type for signup rewards calculations
func NewSignUpReward ¶
func NewSignUpReward() SignUpReward
NewSignUpReward create new object of signup reward calculator type.
func (SignUpReward) Calculate ¶
func (sur SignUpReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers, campaign Campaign, ticket, creator string, ) (RewardFactoryData, error)
Calculate parses ticket payload and returns the distribution list of signup reward.
func (SignUpReward) ValidateCampaign ¶
func (sur SignUpReward) ValidateCampaign(campaign Campaign) error
VaidateCampaign validates campaign definitions.
type SubaccountKeeper ¶ added in v1.4.5
type SubaccountKeeper interface { TopUp(ctx sdk.Context, creator, subAccOwnerAddr string, lockedBalance []subaccounttypes.LockedBalance) (string, error) GetSubaccountByOwner(ctx sdk.Context, mainAccountAddress sdk.AccAddress) (sdk.AccAddress, bool) CreateSubaccount(ctx sdk.Context, creator, owner string, lockedBalances []subaccounttypes.LockedBalance) (string, error) IsSubaccount(ctx sdk.Context, subAccAddr sdk.AccAddress) bool }
SubaccountKeeper defines the expected interface needed to get/create/topup a subaccount.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateCampaign ¶
func (*UnimplementedMsgServer) CreateCampaign(ctx context.Context, req *MsgCreateCampaign) (*MsgCreateCampaignResponse, error)
func (*UnimplementedMsgServer) CreatePromoter ¶ added in v1.4.5
func (*UnimplementedMsgServer) CreatePromoter(ctx context.Context, req *MsgCreatePromoter) (*MsgCreatePromoterResponse, error)
func (*UnimplementedMsgServer) GrantReward ¶
func (*UnimplementedMsgServer) GrantReward(ctx context.Context, req *MsgGrantReward) (*MsgGrantRewardResponse, error)
func (*UnimplementedMsgServer) SetPromoterConf ¶ added in v1.4.5
func (*UnimplementedMsgServer) SetPromoterConf(ctx context.Context, req *MsgSetPromoterConf) (*MsgSetPromoterConfResponse, error)
func (*UnimplementedMsgServer) UpdateCampaign ¶
func (*UnimplementedMsgServer) UpdateCampaign(ctx context.Context, req *MsgUpdateCampaign) (*MsgUpdateCampaignResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.4.5
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) WithdrawFunds ¶
func (*UnimplementedMsgServer) WithdrawFunds(ctx context.Context, req *MsgWithdrawFunds) (*MsgWithdrawFundsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Campaign ¶
func (*UnimplementedQueryServer) Campaign(ctx context.Context, req *QueryCampaignRequest) (*QueryCampaignResponse, error)
func (*UnimplementedQueryServer) Campaigns ¶
func (*UnimplementedQueryServer) Campaigns(ctx context.Context, req *QueryCampaignsRequest) (*QueryCampaignsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PromoterByAddress ¶ added in v1.4.5
func (*UnimplementedQueryServer) PromoterByAddress(ctx context.Context, req *QueryPromoterByAddressRequest) (*QueryPromoterByAddressResponse, error)
func (*UnimplementedQueryServer) Promoters ¶ added in v1.4.5
func (*UnimplementedQueryServer) Promoters(ctx context.Context, req *QueryPromotersRequest) (*QueryPromotersResponse, error)
func (*UnimplementedQueryServer) Reward ¶
func (*UnimplementedQueryServer) Reward(ctx context.Context, req *QueryRewardRequest) (*QueryRewardResponse, error)
func (*UnimplementedQueryServer) Rewards ¶
func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)
func (*UnimplementedQueryServer) RewardsByAddress ¶
func (*UnimplementedQueryServer) RewardsByAddress(ctx context.Context, req *QueryRewardsByAddressRequest) (*QueryRewardsByAddressResponse, error)
func (*UnimplementedQueryServer) RewardsByAddressAndCategory ¶
func (*UnimplementedQueryServer) RewardsByAddressAndCategory(ctx context.Context, req *QueryRewardsByAddressAndCategoryRequest) (*QueryRewardsByAddressAndCategoryResponse, error)
func (*UnimplementedQueryServer) RewardsByCampaign ¶
func (*UnimplementedQueryServer) RewardsByCampaign(ctx context.Context, req *QueryRewardsByCampaignRequest) (*QueryRewardsByCampaignResponse, error)
type UpdateCampaignAuthorization ¶
type UpdateCampaignAuthorization struct {
SpendLimit cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=spend_limit,json=spendLimit,proto3,customtype=cosmossdk.io/math.Int" json:"spend_limit"`
}
UpdateCampaignAuthorization allows the grantee to spend up to spend_limit from the granter's account for update campaign.
func NewUpdateCampaignAuthorization ¶
func NewUpdateCampaignAuthorization(spendLimit sdkmath.Int) *UpdateCampaignAuthorization
NewUpdateCampaignAuthorization creates a new UpdateCampaignAuthorization object.
func (UpdateCampaignAuthorization) Accept ¶
func (a UpdateCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*UpdateCampaignAuthorization) Descriptor ¶
func (*UpdateCampaignAuthorization) Descriptor() ([]byte, []int)
func (*UpdateCampaignAuthorization) Marshal ¶
func (m *UpdateCampaignAuthorization) Marshal() (dAtA []byte, err error)
func (*UpdateCampaignAuthorization) MarshalTo ¶
func (m *UpdateCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*UpdateCampaignAuthorization) MarshalToSizedBuffer ¶
func (m *UpdateCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (UpdateCampaignAuthorization) MsgTypeURL ¶
func (UpdateCampaignAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*UpdateCampaignAuthorization) ProtoMessage ¶
func (*UpdateCampaignAuthorization) ProtoMessage()
func (*UpdateCampaignAuthorization) Reset ¶
func (m *UpdateCampaignAuthorization) Reset()
func (*UpdateCampaignAuthorization) Size ¶
func (m *UpdateCampaignAuthorization) Size() (n int)
func (*UpdateCampaignAuthorization) String ¶
func (m *UpdateCampaignAuthorization) String() string
func (*UpdateCampaignAuthorization) Unmarshal ¶
func (m *UpdateCampaignAuthorization) Unmarshal(dAtA []byte) error
func (UpdateCampaignAuthorization) ValidateBasic ¶
func (a UpdateCampaignAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*UpdateCampaignAuthorization) XXX_DiscardUnknown ¶
func (m *UpdateCampaignAuthorization) XXX_DiscardUnknown()
func (*UpdateCampaignAuthorization) XXX_Marshal ¶
func (m *UpdateCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateCampaignAuthorization) XXX_Merge ¶
func (m *UpdateCampaignAuthorization) XXX_Merge(src proto.Message)
func (*UpdateCampaignAuthorization) XXX_Size ¶
func (m *UpdateCampaignAuthorization) XXX_Size() int
func (*UpdateCampaignAuthorization) XXX_Unmarshal ¶
func (m *UpdateCampaignAuthorization) XXX_Unmarshal(b []byte) error
type UpdateCampaignPayload ¶
type UpdateCampaignPayload struct { // end_ts is the end timestamp of the campaign. EndTs uint64 `protobuf:"varint,1,opt,name=end_ts,json=endTs,proto3" json:"end_ts,omitempty"` // is_active is the flag to check if the campaign is active or not. IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` }
UpdateCampaignPayload is the type for campaign update payload.
func (*UpdateCampaignPayload) Descriptor ¶
func (*UpdateCampaignPayload) Descriptor() ([]byte, []int)
func (*UpdateCampaignPayload) GetEndTs ¶
func (m *UpdateCampaignPayload) GetEndTs() uint64
func (*UpdateCampaignPayload) GetIsActive ¶
func (m *UpdateCampaignPayload) GetIsActive() bool
func (*UpdateCampaignPayload) Marshal ¶
func (m *UpdateCampaignPayload) Marshal() (dAtA []byte, err error)
func (*UpdateCampaignPayload) MarshalTo ¶
func (m *UpdateCampaignPayload) MarshalTo(dAtA []byte) (int, error)
func (*UpdateCampaignPayload) MarshalToSizedBuffer ¶
func (m *UpdateCampaignPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateCampaignPayload) ProtoMessage ¶
func (*UpdateCampaignPayload) ProtoMessage()
func (*UpdateCampaignPayload) Reset ¶
func (m *UpdateCampaignPayload) Reset()
func (*UpdateCampaignPayload) Size ¶
func (m *UpdateCampaignPayload) Size() (n int)
func (*UpdateCampaignPayload) String ¶
func (m *UpdateCampaignPayload) String() string
func (*UpdateCampaignPayload) Unmarshal ¶
func (m *UpdateCampaignPayload) Unmarshal(dAtA []byte) error
func (*UpdateCampaignPayload) Validate ¶
func (payload *UpdateCampaignPayload) Validate(blockTime uint64) error
Validate validates campaign update ticket payload.
func (*UpdateCampaignPayload) XXX_DiscardUnknown ¶
func (m *UpdateCampaignPayload) XXX_DiscardUnknown()
func (*UpdateCampaignPayload) XXX_Marshal ¶
func (m *UpdateCampaignPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateCampaignPayload) XXX_Merge ¶
func (m *UpdateCampaignPayload) XXX_Merge(src proto.Message)
func (*UpdateCampaignPayload) XXX_Size ¶
func (m *UpdateCampaignPayload) XXX_Size() int
func (*UpdateCampaignPayload) XXX_Unmarshal ¶
func (m *UpdateCampaignPayload) XXX_Unmarshal(b []byte) error
type WithdrawCampaignAuthorization ¶ added in v1.4.5
type WithdrawCampaignAuthorization struct { // withdraw_limit is the maximum limit of the withdrawal by authorization. WithdrawLimit cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=withdraw_limit,json=withdrawLimit,proto3,customtype=cosmossdk.io/math.Int" json:"withdraw_limit"` }
WithdrawCampaignAuthorization allows the grantee to withdraw remaining pool balance of the campaign from the granter's account.
func NewWithdrawAuthorization ¶ added in v1.4.5
func NewWithdrawAuthorization(withdrawLimit sdkmath.Int) *WithdrawCampaignAuthorization
NewWithdrawAuthorization creates a new WithdrawAuthorization object.
func (WithdrawCampaignAuthorization) Accept ¶ added in v1.4.5
func (a WithdrawCampaignAuthorization) Accept(_ sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*WithdrawCampaignAuthorization) Descriptor ¶ added in v1.4.5
func (*WithdrawCampaignAuthorization) Descriptor() ([]byte, []int)
func (*WithdrawCampaignAuthorization) Marshal ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) Marshal() (dAtA []byte, err error)
func (*WithdrawCampaignAuthorization) MarshalTo ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawCampaignAuthorization) MarshalToSizedBuffer ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (WithdrawCampaignAuthorization) MsgTypeURL ¶ added in v1.4.5
func (WithdrawCampaignAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*WithdrawCampaignAuthorization) ProtoMessage ¶ added in v1.4.5
func (*WithdrawCampaignAuthorization) ProtoMessage()
func (*WithdrawCampaignAuthorization) Reset ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) Reset()
func (*WithdrawCampaignAuthorization) Size ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) Size() (n int)
func (*WithdrawCampaignAuthorization) String ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) String() string
func (*WithdrawCampaignAuthorization) Unmarshal ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) Unmarshal(dAtA []byte) error
func (WithdrawCampaignAuthorization) ValidateBasic ¶ added in v1.4.5
func (a WithdrawCampaignAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*WithdrawCampaignAuthorization) XXX_DiscardUnknown ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) XXX_DiscardUnknown()
func (*WithdrawCampaignAuthorization) XXX_Marshal ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawCampaignAuthorization) XXX_Merge ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) XXX_Merge(src proto.Message)
func (*WithdrawCampaignAuthorization) XXX_Size ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) XXX_Size() int
func (*WithdrawCampaignAuthorization) XXX_Unmarshal ¶ added in v1.4.5
func (m *WithdrawCampaignAuthorization) XXX_Unmarshal(b []byte) error
type WithdrawFundsPayload ¶
type WithdrawFundsPayload struct { // promoter is the address of campaign promoter. // Funds would be transferred to this account. Promoter string `protobuf:"bytes,1,opt,name=promoter,proto3" json:"promoter,omitempty"` }
WithdrawFundsPayload is the type for campaign withdraw funds payload.
func (*WithdrawFundsPayload) Descriptor ¶
func (*WithdrawFundsPayload) Descriptor() ([]byte, []int)
func (*WithdrawFundsPayload) GetPromoter ¶
func (m *WithdrawFundsPayload) GetPromoter() string
func (*WithdrawFundsPayload) Marshal ¶
func (m *WithdrawFundsPayload) Marshal() (dAtA []byte, err error)
func (*WithdrawFundsPayload) MarshalTo ¶
func (m *WithdrawFundsPayload) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawFundsPayload) MarshalToSizedBuffer ¶
func (m *WithdrawFundsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WithdrawFundsPayload) ProtoMessage ¶
func (*WithdrawFundsPayload) ProtoMessage()
func (*WithdrawFundsPayload) Reset ¶
func (m *WithdrawFundsPayload) Reset()
func (*WithdrawFundsPayload) Size ¶
func (m *WithdrawFundsPayload) Size() (n int)
func (*WithdrawFundsPayload) String ¶
func (m *WithdrawFundsPayload) String() string
func (*WithdrawFundsPayload) Unmarshal ¶
func (m *WithdrawFundsPayload) Unmarshal(dAtA []byte) error
func (*WithdrawFundsPayload) Validate ¶
func (payload *WithdrawFundsPayload) Validate() error
Validate validates campaign withdraw funds ticket payload.
func (*WithdrawFundsPayload) XXX_DiscardUnknown ¶
func (m *WithdrawFundsPayload) XXX_DiscardUnknown()
func (*WithdrawFundsPayload) XXX_Marshal ¶
func (m *WithdrawFundsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawFundsPayload) XXX_Merge ¶
func (m *WithdrawFundsPayload) XXX_Merge(src proto.Message)
func (*WithdrawFundsPayload) XXX_Size ¶
func (m *WithdrawFundsPayload) XXX_Size() int
func (*WithdrawFundsPayload) XXX_Unmarshal ¶
func (m *WithdrawFundsPayload) XXX_Unmarshal(b []byte) error
Source Files ¶
- authz.pb.go
- campaign.go
- campaign.pb.go
- campaign_authorizaton.go
- codec.go
- consts.go
- errors.go
- events.go
- expected_keepers.go
- funder.go
- genesis.go
- genesis.pb.go
- key_campaign.go
- key_promoter.go
- key_reward.go
- keys.go
- messages_campaign.go
- messages_params.go
- messages_promoter.go
- messages_reward.go
- params.go
- params.pb.go
- pool.go
- promoter.go
- promoter.pb.go
- query.pb.go
- query.pb.gw.go
- reward.go
- reward.pb.go
- reward_bet_bonus.go
- reward_signup.go
- reward_signup_affiliatee.go
- reward_signup_affiliator.go
- reward_signup_referee.go
- reward_signup_referrer.go
- ticket.go
- ticket.pb.go
- tx.pb.go