Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetCampaignKey(uid string) []byte
- func GetRewardKey(uid string) []byte
- func GetRewardsByAccPrefix(receiverAcc string) []byte
- func GetRewardsByCampaignKey(campaignUID, uid string) []byte
- func GetRewardsByCampaignPrefix(campaignUID string) []byte
- func GetRewardsByCategoryKey(receiverAcc string, rewardCategory RewardCategory, uid string) []byte
- func GetRewardsByCategoryPrefix(receiverAcc string, rewardCategory RewardCategory) []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 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) GetClaimsPerCategory() uint64
- 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 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) GetCategory() RewardCategory
- func (m *CreateCampaignPayload) GetClaimsPerCategory() uint64
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCampaignList() []Campaign
- func (m *GenesisState) GetParams() Params
- 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 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 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 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 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 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) 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 (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- 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 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 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) 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) 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 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) GrantReward(ctx context.Context, req *MsgGrantReward) (*MsgGrantRewardResponse, error)
- func (*UnimplementedMsgServer) UpdateCampaign(ctx context.Context, req *MsgUpdateCampaign) (*MsgUpdateCampaignResponse, 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) 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 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") ErrUnlockTSIsSubaccountOnly = 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") )
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 ( // 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} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( 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 GetRewardKey ¶
GetRewardKey returns the store key to retrieve a certain reward.
func GetRewardsByAccPrefix ¶
GetRewardsByAccPrefix returns the store key to retrieve list of all applied rewards of a certain campaign this should be used with RewardByReceiverKeyPrefix
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 GetRewardsByCategoryKey ¶
func GetRewardsByCategoryKey(receiverAcc string, rewardCategory RewardCategory, uid string) []byte
GetRewardsByCategoryKey returns the store key to retrieve list of applied reward of certain address and category
func GetRewardsByCategoryPrefix ¶
func GetRewardsByCategoryPrefix(receiverAcc string, rewardCategory RewardCategory) []byte
GetRewardsByCategoryPrefix returns the store key to retrieve list of all applied rewards of certain address and category
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 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"` // claims_per_category is the number of times a user can claim a // reward for category of this campaign. ClaimsPerCategory uint64 `protobuf:"varint,12,opt,name=claims_per_category,json=claimsPerCategory,proto3" json:"claims_per_category,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"` }
Campaign is type for defining the campaign properties.
func NewCampaign ¶
func NewCampaign( creator, promoter, uID string, startTS, endTS, claimsPerCategory uint64, rewardType RewardType, rewardCategory RewardCategory, rewardAmountType RewardAmountType, rewardAmount *RewardAmount, isActive bool, meta string, pool Pool, ) 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) GetClaimsPerCategory ¶
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 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"` // claims_per_category is the number of times a user can claim a reward for // category of this campaign. ClaimsPerCategory uint64 `protobuf:"varint,9,opt,name=claims_per_category,json=claimsPerCategory,proto3" json:"claims_per_category,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"` }
CreateCampaignPayload is the type for campaign creation payload.
func (*CreateCampaignPayload) Descriptor ¶
func (*CreateCampaignPayload) Descriptor() ([]byte, []int)
func (*CreateCampaignPayload) GetCategory ¶
func (m *CreateCampaignPayload) GetCategory() RewardCategory
func (*CreateCampaignPayload) GetClaimsPerCategory ¶
func (m *CreateCampaignPayload) GetClaimsPerCategory() uint64
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 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"` }
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) 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 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 MsgClient ¶
type MsgClient interface { // 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) }
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 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, rewardAmount RewardAmount, 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 { // 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) }
MsgServer is the server API for Msg service.
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 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"` }
MsgWithdrawFunds is withdraw funds message type.
func NewMsgWithdrawFunds ¶
func NewMsgWithdrawFunds( creator string, uid string, ticket string, ) *MsgWithdrawFunds
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"` }
Pool tracks funds assigned and spent to/for a campaign.
func (*Pool) Descriptor ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
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) // 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 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"` }
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) 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"` }
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) 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) // 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 SubaccountAmount sdkmath.Int UnlockPeriod uint64 MainAccountAddr string MainAccountAmount sdkmath.Int }
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 NewReward ¶
func NewReward( uid, creator, receiver string, campaignUID string, rewardAmount *RewardAmount, sourceUID, meta string, ) Reward
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_reward amount transferred to main account address MainAccountAmount cosmossdk_io_math.Int `` /* 164-byte string literal not displayed */ // sub_account reward 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"` }
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 {
HasRewardByReceiver(ctx sdk.Context, addr string, category RewardCategory) 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 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) GrantReward ¶
func (*UnimplementedMsgServer) GrantReward(ctx context.Context, req *MsgGrantReward) (*MsgGrantRewardResponse, error)
func (*UnimplementedMsgServer) UpdateCampaign ¶
func (*UnimplementedMsgServer) UpdateCampaign(ctx context.Context, req *MsgUpdateCampaign) (*MsgUpdateCampaignResponse, 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) 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 { }
WithdrawCampaignAuthorization allows the grantee to withdraw remaining pool balance of the campaign from the granter's account.
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_reward.go
- keys.go
- messages_campaign.go
- messages_reward.go
- params.go
- params.pb.go
- pool.go
- query.pb.go
- query.pb.gw.go
- reward.go
- reward.pb.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