Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyCampaignCreatorPrefix(creator sdk.AccAddress, id uint64) []byte
- func KeyCampaignIdPrefix(id uint64) []byte
- func KeyClaimByNftIdPrefix(id uint64, nftId string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.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)
- func ValidCampaignStatus(status CampaignStatus) bool
- func ValidateCampaign(campaign Campaign) error
- func ValidateClaim(claim Claim) error
- func ValidateClaimType(claimType ClaimType) error
- func ValidateDistribution(distribution *Distribution) error
- func ValidateDuration(t interface{}) error
- func ValidateInteractionType(interaction InteractionType) error
- func ValidateTimestamp(t interface{}) error
- func ValidateTokens(tokensA, tokensB sdk.Coin) error
- type AccountKeeper
- type BankKeeper
- type Campaign
- func (*Campaign) Descriptor() ([]byte, []int)
- func (c Campaign) GetAvailableTokens() sdk.Coin
- func (c Campaign) GetClaimType() string
- func (c Campaign) GetCreator() sdk.AccAddress
- func (c Campaign) GetDescription() string
- func (c Campaign) GetDistribution() interface{}
- func (c Campaign) GetEndTime() time.Time
- func (c Campaign) GetId() uint64
- func (c Campaign) GetInteraction() string
- func (c Campaign) GetMaxAllowedClaims() uint64
- func (c Campaign) GetName() string
- func (c Campaign) GetNftDenomId() string
- func (c Campaign) GetNftMintDetails() interface{}
- func (c Campaign) GetReceivedNftIds() []string
- func (c Campaign) GetStartTime() time.Time
- func (c Campaign) GetTokensPerClaim() sdk.Coin
- func (c Campaign) GetTotalTokens() sdk.Coin
- 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 CampaignStatus
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (c Claim) GetAddress() sdk.AccAddress
- func (c Claim) GetCampaignId() uint64
- func (c Claim) GetInteractionType() string
- func (c Claim) GetNftId() string
- func (m *Claim) Marshal() (dAtA []byte, err error)
- func (m *Claim) MarshalTo(dAtA []byte) (int, error)
- func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) Size() (n int)
- func (m *Claim) String() string
- func (m *Claim) Unmarshal(dAtA []byte) error
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type ClaimType
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)
- func (m *Distribution) Marshal() (dAtA []byte, err error)
- func (m *Distribution) MarshalTo(dAtA []byte) (int, error)
- func (m *Distribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Distribution) ProtoMessage()
- func (m *Distribution) Reset()
- func (m *Distribution) Size() (n int)
- func (m *Distribution) String() string
- func (m *Distribution) Unmarshal(dAtA []byte) error
- func (m *Distribution) XXX_DiscardUnknown()
- func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Distribution) XXX_Merge(src proto.Message)
- func (m *Distribution) XXX_Size() int
- func (m *Distribution) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type DistributionType
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCampaigns() []Campaign
- func (m *GenesisState) GetClaims() []Claim
- func (m *GenesisState) GetNextCampaignNumber() uint64
- func (m *GenesisState) GetParams() Params
- 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 (m *GenesisState) ValidateGenesis() 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 InteractionType
- type MsgCancelCampaign
- func (*MsgCancelCampaign) Descriptor() ([]byte, []int)
- func (msg *MsgCancelCampaign) GetSignBytes() []byte
- func (msg MsgCancelCampaign) GetSigners() []sdk.AccAddress
- func (m *MsgCancelCampaign) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelCampaign) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelCampaign) ProtoMessage()
- func (m *MsgCancelCampaign) Reset()
- func (msg MsgCancelCampaign) Route() string
- func (m *MsgCancelCampaign) Size() (n int)
- func (m *MsgCancelCampaign) String() string
- func (msg MsgCancelCampaign) Type() string
- func (m *MsgCancelCampaign) Unmarshal(dAtA []byte) error
- func (msg MsgCancelCampaign) ValidateBasic() error
- func (m *MsgCancelCampaign) XXX_DiscardUnknown()
- func (m *MsgCancelCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelCampaign) XXX_Merge(src proto.Message)
- func (m *MsgCancelCampaign) XXX_Size() int
- func (m *MsgCancelCampaign) XXX_Unmarshal(b []byte) error
- type MsgCancelCampaignResponse
- func (*MsgCancelCampaignResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelCampaignResponse) ProtoMessage()
- func (m *MsgCancelCampaignResponse) Reset()
- func (m *MsgCancelCampaignResponse) Size() (n int)
- func (m *MsgCancelCampaignResponse) String() string
- func (m *MsgCancelCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelCampaignResponse) XXX_DiscardUnknown()
- func (m *MsgCancelCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelCampaignResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelCampaignResponse) XXX_Size() int
- func (m *MsgCancelCampaignResponse) XXX_Unmarshal(b []byte) error
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- func (msg *MsgClaim) GetSignBytes() []byte
- func (msg MsgClaim) GetSigners() []sdk.AccAddress
- func (m *MsgClaim) Marshal() (dAtA []byte, err error)
- func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaim) ProtoMessage()
- func (m *MsgClaim) Reset()
- func (msg MsgClaim) Route() string
- func (m *MsgClaim) Size() (n int)
- func (m *MsgClaim) String() string
- func (msg MsgClaim) Type() string
- func (m *MsgClaim) Unmarshal(dAtA []byte) error
- func (msg MsgClaim) ValidateBasic() error
- func (m *MsgClaim) XXX_DiscardUnknown()
- func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaim) XXX_Merge(src proto.Message)
- func (m *MsgClaim) XXX_Size() int
- func (m *MsgClaim) XXX_Unmarshal(b []byte) error
- type MsgClaimResponse
- func (*MsgClaimResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimResponse) ProtoMessage()
- func (m *MsgClaimResponse) Reset()
- func (m *MsgClaimResponse) Size() (n int)
- func (m *MsgClaimResponse) String() string
- func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimResponse) XXX_DiscardUnknown()
- func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimResponse) XXX_Size() int
- func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateCampaign
- func (*MsgCreateCampaign) Descriptor() ([]byte, []int)
- func (msg *MsgCreateCampaign) GetSignBytes() []byte
- func (msg MsgCreateCampaign) GetSigners() []sdk.AccAddress
- 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 MsgDepositCampaign
- func (*MsgDepositCampaign) Descriptor() ([]byte, []int)
- func (msg *MsgDepositCampaign) GetSignBytes() []byte
- func (msg MsgDepositCampaign) GetSigners() []sdk.AccAddress
- func (m *MsgDepositCampaign) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositCampaign) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositCampaign) ProtoMessage()
- func (m *MsgDepositCampaign) Reset()
- func (msg MsgDepositCampaign) Route() string
- func (m *MsgDepositCampaign) Size() (n int)
- func (m *MsgDepositCampaign) String() string
- func (msg MsgDepositCampaign) Type() string
- func (m *MsgDepositCampaign) Unmarshal(dAtA []byte) error
- func (msg MsgDepositCampaign) ValidateBasic() error
- func (m *MsgDepositCampaign) XXX_DiscardUnknown()
- func (m *MsgDepositCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositCampaign) XXX_Merge(src proto.Message)
- func (m *MsgDepositCampaign) XXX_Size() int
- func (m *MsgDepositCampaign) XXX_Unmarshal(b []byte) error
- type MsgDepositCampaignResponse
- func (*MsgDepositCampaignResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositCampaignResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositCampaignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositCampaignResponse) ProtoMessage()
- func (m *MsgDepositCampaignResponse) Reset()
- func (m *MsgDepositCampaignResponse) Size() (n int)
- func (m *MsgDepositCampaignResponse) String() string
- func (m *MsgDepositCampaignResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositCampaignResponse) XXX_DiscardUnknown()
- func (m *MsgDepositCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositCampaignResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositCampaignResponse) XXX_Size() int
- func (m *MsgDepositCampaignResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type NFTDetails
- func (*NFTDetails) Descriptor() ([]byte, []int)
- func (m *NFTDetails) Marshal() (dAtA []byte, err error)
- func (m *NFTDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *NFTDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NFTDetails) ProtoMessage()
- func (m *NFTDetails) Reset()
- func (m *NFTDetails) Size() (n int)
- func (m *NFTDetails) String() string
- func (m *NFTDetails) Unmarshal(dAtA []byte) error
- func (m *NFTDetails) XXX_DiscardUnknown()
- func (m *NFTDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NFTDetails) XXX_Merge(src proto.Message)
- func (m *NFTDetails) XXX_Size() int
- func (m *NFTDetails) XXX_Unmarshal(b []byte) error
- type NftKeeper
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) ValidateBasic() 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 QueryCampaignRequest
- func (*QueryCampaignRequest) Descriptor() ([]byte, []int)
- 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) 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) 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) 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 QueryClaimsRequest
- func (*QueryClaimsRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsRequest) ProtoMessage()
- func (m *QueryClaimsRequest) Reset()
- func (m *QueryClaimsRequest) Size() (n int)
- func (m *QueryClaimsRequest) String() string
- func (m *QueryClaimsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsRequest) XXX_DiscardUnknown()
- func (m *QueryClaimsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimsRequest) XXX_Size() int
- func (m *QueryClaimsRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimsResponse
- func (*QueryClaimsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsResponse) ProtoMessage()
- func (m *QueryClaimsResponse) Reset()
- func (m *QueryClaimsResponse) Size() (n int)
- func (m *QueryClaimsResponse) String() string
- func (m *QueryClaimsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsResponse) XXX_DiscardUnknown()
- func (m *QueryClaimsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimsResponse) XXX_Size() int
- func (m *QueryClaimsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StreamPayKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelCampaign(ctx context.Context, req *MsgCancelCampaign) (*MsgCancelCampaignResponse, error)
- func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
- func (*UnimplementedMsgServer) CreateCampaign(ctx context.Context, req *MsgCreateCampaign) (*MsgCreateCampaignResponse, error)
- func (*UnimplementedMsgServer) DepositCampaign(ctx context.Context, req *MsgDepositCampaign) (*MsgDepositCampaignResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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) Claims(ctx context.Context, req *QueryClaimsRequest) (*QueryClaimsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeCreateCampaign = "create_campaign" EventTypeCancelCampaign = "cancel_campaign" EventTypeClaim = "claim" EventTypeEndCampaign = "end_campaign" EventTypeDepositCampaign = "deposit_campaign" AttributeValueCategory = ModuleName AttributeKeyCampaignId = "campaign-id" AttributeKeyNftDenomId = "nft-denom-id" AttributeKeyNftId = "nft-id" AttributeKeyClaimType = "claim-type" AttributeKeyInteractionType = "interaction-type" AttributeKeyStartTime = "start-time" AttributeKeyEndTime = "end-time" AttributeKeyClaimer = "claimer" AttributeKeyCreator = "creator" AttributeKeySender = "sender" AttributeKeyDepositor = "depositor" AttributeKeyAmount = "amount" )
const ( ModuleName = "itc" StoreKey string = ModuleName QuerierRoute string = ModuleName RouterKey string = ModuleName )
const ( MsgRoute = "itc" TypeMsgCreateCampaign = "create_campaign" TypeMsgCancelCampaign = "cancel_campaign" TypeMsgDepositCampaign = "deposit_campaign" TypeMsgClaim = "claim" )
const (
DefaultMaxCampaignDuration = time.Hour * 24 * 90 // 90 days
)
Variables ¶
var ( ErrInvalidTokens = errorsmod.Register(ModuleName, 2, "invalid tokens") ErrInvalidDuration = errorsmod.Register(ModuleName, 3, "invalid duration") ErrInvalidTimestamp = errorsmod.Register(ModuleName, 4, "invalid time") ErrNonPositiveNumber = errorsmod.Register(ModuleName, 5, "non positive number") ErrCampaignDoesNotExists = errorsmod.Register(ModuleName, 6, "campaign does not exists") ErrInactiveCampaign = errorsmod.Register(ModuleName, 7, "campaign is not active") ErrInvalidNFTMintDetails = errorsmod.Register(ModuleName, 8, "invalid nft mint details") ErrInValidMaxAllowedClaims = errorsmod.Register(ModuleName, 9, "invalid max allowed claims") ErrInvalidClaimType = errorsmod.Register(ModuleName, 10, "invalid claim type") ErrInteractionMismatch = errorsmod.Register(ModuleName, 11, "interaction mismatch") ErrClaimExists = errorsmod.Register(ModuleName, 12, "claim exists") ErrClaimNotAllowed = errorsmod.Register(ModuleName, 13, "claim not allowed") ErrTokenDenomMismatch = errorsmod.Register(ModuleName, 14, "invalid token denom") ErrClaimingNFT = errorsmod.Register(ModuleName, 15, "claim nft failed") ErrDepositNotAllowed = errorsmod.Register(ModuleName, 16, "deposit not allowed") ErrInvalidCreationFee = errorsmod.Register(ModuleName, 17, "invalid fee") ErrInvalidFeeDenom = errorsmod.Register(ModuleName, 18, "invalid fee denom") ErrNotEnoughFeeAmount = errorsmod.Register(ModuleName, 19, "not enough fee") ErrInvalidDistribution = errorsmod.Register(ModuleName, 20, "invalid distribution") ErrInvalidNftDenomId = errorsmod.Register(ModuleName, 21, "invalid nft denom id") )
itc module 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 ( ErrInvalidLengthItc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowItc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupItc = fmt.Errorf("proto: unexpected end of group") )
var ( PrefixCampaignId = []byte{0x01} PrefixCampaignCreator = []byte{0x02} PrefixNextCampaignNumber = []byte{0x03} PrefixClaimByNftId = []byte{0x11} ParamsKey = []byte{0x12} )
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 ( ParamStoreKeyMaxCampaignDuration = []byte("MaxCampaignDuration") ParamStoreKeyCampaignCreationFee = []byte("CampaignCreationFee") )
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var CampaignStatus_name = map[int32]string{
0: "CAMPAIGN_STATUS_UNSPECIFIED",
1: "CAMPAIGN_STATUS_INACTIVE",
2: "CAMPAIGN_STATUS_ACTIVE",
}
var CampaignStatus_value = map[string]int32{
"CAMPAIGN_STATUS_UNSPECIFIED": 0,
"CAMPAIGN_STATUS_INACTIVE": 1,
"CAMPAIGN_STATUS_ACTIVE": 2,
}
var ClaimType_name = map[int32]string{
0: "CLAIM_TYPE_FT",
1: "CLAIM_TYPE_NFT",
2: "CLAIM_TYPE_FT_AND_NFT",
}
var ClaimType_value = map[string]int32{
"CLAIM_TYPE_FT": 0,
"CLAIM_TYPE_NFT": 1,
"CLAIM_TYPE_FT_AND_NFT": 2,
}
var DefaultCampaignCreationFee = sdk.NewInt64Coin("uflix", 10_000_000)
var DistributionType_name = map[int32]string{
0: "DISTRIBUTION_TYPE_INSTANT",
1: "DISTRIBUTION_TYPE_STREAM",
}
var DistributionType_value = map[string]int32{
"DISTRIBUTION_TYPE_INSTANT": 0,
"DISTRIBUTION_TYPE_STREAM": 1,
}
var InteractionType_name = map[int32]string{
0: "INTERACTION_TYPE_BURN",
1: "INTERACTION_TYPE_TRANSFER",
2: "INTERACTION_TYPE_HOLD",
}
var InteractionType_value = map[string]int32{
"INTERACTION_TYPE_BURN": 0,
"INTERACTION_TYPE_TRANSFER": 1,
"INTERACTION_TYPE_HOLD": 2,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func KeyCampaignCreatorPrefix ¶
func KeyCampaignCreatorPrefix(creator sdk.AccAddress, id uint64) []byte
func KeyCampaignIdPrefix ¶
func KeyClaimByNftIdPrefix ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.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)
func ValidCampaignStatus ¶
func ValidCampaignStatus(status CampaignStatus) bool
func ValidateCampaign ¶
ValidateCampaign checks campaign is valid or not
func ValidateClaim ¶
func ValidateClaimType ¶
func ValidateDistribution ¶
func ValidateDistribution(distribution *Distribution) error
func ValidateDuration ¶
func ValidateDuration(t interface{}) error
func ValidateInteractionType ¶
func ValidateInteractionType(interaction InteractionType) error
func ValidateTimestamp ¶
func ValidateTimestamp(t interface{}) error
func ValidateTokens ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI GetModuleAddress(module string) sdk.AccAddress }
AccountKeeper defines the expected account keeper
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoins(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, amount sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, formModule string, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, formModule string, toModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, fromAddr sdk.AccAddress, toModule string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper
type Campaign ¶
type Campaign struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` StartTime time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` EndTime time.Time `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"` Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` NftDenomId string `protobuf:"bytes,7,opt,name=nft_denom_id,json=nftDenomId,proto3" json:"nft_denom_id,omitempty" yaml:"nft_denom_id"` MaxAllowedClaims uint64 `` /* 138-byte string literal not displayed */ Interaction InteractionType `protobuf:"varint,9,opt,name=interaction,proto3,enum=OmniFlix.itc.v1.InteractionType" json:"interaction,omitempty"` ClaimType ClaimType `protobuf:"varint,10,opt,name=claim_type,json=claimType,proto3,enum=OmniFlix.itc.v1.ClaimType" json:"claim_type,omitempty"` TokensPerClaim types.Coin `protobuf:"bytes,11,opt,name=tokens_per_claim,json=tokensPerClaim,proto3" json:"tokens_per_claim" yaml:"tokens_per_claim"` TotalTokens types.Coin `protobuf:"bytes,12,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens" yaml:"total_tokens"` AvailableTokens types.Coin `protobuf:"bytes,13,opt,name=available_tokens,json=availableTokens,proto3" json:"available_tokens" yaml:"available_tokens"` ReceivedNftIds []string `` /* 130-byte string literal not displayed */ NftMintDetails *NFTDetails `` /* 130-byte string literal not displayed */ Distribution *Distribution `protobuf:"bytes,16,opt,name=distribution,proto3" json:"distribution,omitempty" yaml:"distribution"` MintCount uint64 `protobuf:"varint,17,opt,name=mint_count,json=mintCount,proto3" json:"mint_count,omitempty" yaml:"mint_count"` ClaimCount uint64 `protobuf:"varint,18,opt,name=claim_count,json=claimCount,proto3" json:"claim_count,omitempty" yaml:"claim_count"` }
func NewCampaign ¶
func NewCampaign( id uint64, name, description string, startTime, endTime time.Time, creator, nftDenomId string, maxAllowedClaims uint64, interaction InteractionType, claimType ClaimType, tokensPerClaim, totalTokens, availableTokens sdk.Coin, nftMintDetails *NFTDetails, distribution *Distribution, ) Campaign
func (*Campaign) Descriptor ¶
func (Campaign) GetAvailableTokens ¶
func (Campaign) GetClaimType ¶
func (Campaign) GetCreator ¶
func (c Campaign) GetCreator() sdk.AccAddress
func (Campaign) GetDescription ¶
func (Campaign) GetDistribution ¶
func (c Campaign) GetDistribution() interface{}
func (Campaign) GetEndTime ¶
func (Campaign) GetInteraction ¶
func (Campaign) GetMaxAllowedClaims ¶
func (Campaign) GetNftDenomId ¶
func (Campaign) GetNftMintDetails ¶
func (c Campaign) GetNftMintDetails() interface{}
func (Campaign) GetReceivedNftIds ¶
func (Campaign) GetStartTime ¶
func (Campaign) GetTokensPerClaim ¶
func (Campaign) GetTotalTokens ¶
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 CampaignStatus ¶
type CampaignStatus int32
const ( CAMPAIGN_STATUS_UNSPECIFIED CampaignStatus = 0 CAMPAIGN_STATUS_INACTIVE CampaignStatus = 1 CAMPAIGN_STATUS_ACTIVE CampaignStatus = 2 )
func (CampaignStatus) EnumDescriptor ¶
func (CampaignStatus) EnumDescriptor() ([]byte, []int)
func (CampaignStatus) String ¶
func (x CampaignStatus) String() string
type Claim ¶
type Claim struct { CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` NftId string `protobuf:"bytes,3,opt,name=nft_id,json=nftId,proto3" json:"nft_id,omitempty"` Interaction InteractionType `protobuf:"varint,4,opt,name=interaction,proto3,enum=OmniFlix.itc.v1.InteractionType" json:"interaction,omitempty"` }
func NewClaim ¶
func NewClaim(campaignId uint64, address, nftId string, interactionType InteractionType) Claim
func (*Claim) Descriptor ¶
func (Claim) GetAddress ¶
func (c Claim) GetAddress() sdk.AccAddress
func (Claim) GetCampaignId ¶
func (Claim) GetInteractionType ¶
func (*Claim) ProtoMessage ¶
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶
func (*Claim) XXX_Unmarshal ¶
type Distribution ¶
type Distribution struct { Type DistributionType `protobuf:"varint,1,opt,name=type,proto3,enum=OmniFlix.itc.v1.DistributionType" json:"type,omitempty"` StreamDuration time.Duration `protobuf:"bytes,2,opt,name=stream_duration,json=streamDuration,proto3,stdduration" json:"stream_duration"` }
func (*Distribution) Descriptor ¶
func (*Distribution) Descriptor() ([]byte, []int)
func (*Distribution) Marshal ¶
func (m *Distribution) Marshal() (dAtA []byte, err error)
func (*Distribution) MarshalToSizedBuffer ¶
func (m *Distribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) Reset ¶
func (m *Distribution) Reset()
func (*Distribution) Size ¶
func (m *Distribution) Size() (n int)
func (*Distribution) String ¶
func (m *Distribution) String() string
func (*Distribution) Unmarshal ¶
func (m *Distribution) Unmarshal(dAtA []byte) error
func (*Distribution) XXX_DiscardUnknown ¶
func (m *Distribution) XXX_DiscardUnknown()
func (*Distribution) XXX_Marshal ¶
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Distribution) XXX_Merge ¶
func (m *Distribution) XXX_Merge(src proto.Message)
func (*Distribution) XXX_Size ¶
func (m *Distribution) XXX_Size() int
func (*Distribution) XXX_Unmarshal ¶
func (m *Distribution) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶
type DistributionKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistributionKeeper defines the expected distribution keeper
type DistributionType ¶
type DistributionType int32
const ( DISTRIBUTION_TYPE_INSTANT DistributionType = 0 DISTRIBUTION_TYPE_STREAM DistributionType = 1 )
func (DistributionType) EnumDescriptor ¶
func (DistributionType) EnumDescriptor() ([]byte, []int)
func (DistributionType) String ¶
func (x DistributionType) String() string
type GenesisState ¶
type GenesisState struct { Campaigns []Campaign `protobuf:"bytes,1,rep,name=campaigns,proto3" json:"campaigns"` NextCampaignNumber uint64 `protobuf:"varint,2,opt,name=next_campaign_number,json=nextCampaignNumber,proto3" json:"next_campaign_number,omitempty"` Claims []Claim `protobuf:"bytes,3,rep,name=claims,proto3" json:"claims"` Params Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params"` }
GenesisState defines the itc module's genesis state.
func NewGenesisState ¶
func NewGenesisState(campaigns []Campaign, claims []Claim, nextCampaignNumber uint64, params Params, ) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCampaigns ¶
func (m *GenesisState) GetCampaigns() []Campaign
func (*GenesisState) GetClaims ¶
func (m *GenesisState) GetClaims() []Claim
func (*GenesisState) GetNextCampaignNumber ¶
func (m *GenesisState) GetNextCampaignNumber() uint64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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) ValidateGenesis ¶
func (m *GenesisState) ValidateGenesis() error
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 InteractionType ¶
type InteractionType int32
const ( INTERACTION_TYPE_BURN InteractionType = 0 INTERACTION_TYPE_TRANSFER InteractionType = 1 INTERACTION_TYPE_HOLD InteractionType = 2 )
func (InteractionType) EnumDescriptor ¶
func (InteractionType) EnumDescriptor() ([]byte, []int)
func (InteractionType) String ¶
func (x InteractionType) String() string
type MsgCancelCampaign ¶
type MsgCancelCampaign struct { CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` }
func NewMsgCancelCampaign ¶
func NewMsgCancelCampaign(id uint64, creator string) *MsgCancelCampaign
func (*MsgCancelCampaign) Descriptor ¶
func (*MsgCancelCampaign) Descriptor() ([]byte, []int)
func (*MsgCancelCampaign) GetSignBytes ¶
func (msg *MsgCancelCampaign) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgCancelCampaign) GetSigners ¶
func (msg MsgCancelCampaign) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgCancelCampaign) Marshal ¶
func (m *MsgCancelCampaign) Marshal() (dAtA []byte, err error)
func (*MsgCancelCampaign) MarshalTo ¶
func (m *MsgCancelCampaign) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelCampaign) MarshalToSizedBuffer ¶
func (m *MsgCancelCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelCampaign) ProtoMessage ¶
func (*MsgCancelCampaign) ProtoMessage()
func (*MsgCancelCampaign) Reset ¶
func (m *MsgCancelCampaign) Reset()
func (MsgCancelCampaign) Route ¶
func (msg MsgCancelCampaign) Route() string
func (*MsgCancelCampaign) Size ¶
func (m *MsgCancelCampaign) Size() (n int)
func (*MsgCancelCampaign) String ¶
func (m *MsgCancelCampaign) String() string
func (MsgCancelCampaign) Type ¶
func (msg MsgCancelCampaign) Type() string
func (*MsgCancelCampaign) Unmarshal ¶
func (m *MsgCancelCampaign) Unmarshal(dAtA []byte) error
func (MsgCancelCampaign) ValidateBasic ¶
func (msg MsgCancelCampaign) ValidateBasic() error
func (*MsgCancelCampaign) XXX_DiscardUnknown ¶
func (m *MsgCancelCampaign) XXX_DiscardUnknown()
func (*MsgCancelCampaign) XXX_Marshal ¶
func (m *MsgCancelCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelCampaign) XXX_Merge ¶
func (m *MsgCancelCampaign) XXX_Merge(src proto.Message)
func (*MsgCancelCampaign) XXX_Size ¶
func (m *MsgCancelCampaign) XXX_Size() int
func (*MsgCancelCampaign) XXX_Unmarshal ¶
func (m *MsgCancelCampaign) XXX_Unmarshal(b []byte) error
type MsgCancelCampaignResponse ¶
type MsgCancelCampaignResponse struct { }
func (*MsgCancelCampaignResponse) Descriptor ¶
func (*MsgCancelCampaignResponse) Descriptor() ([]byte, []int)
func (*MsgCancelCampaignResponse) Marshal ¶
func (m *MsgCancelCampaignResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelCampaignResponse) MarshalTo ¶
func (m *MsgCancelCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelCampaignResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelCampaignResponse) ProtoMessage ¶
func (*MsgCancelCampaignResponse) ProtoMessage()
func (*MsgCancelCampaignResponse) Reset ¶
func (m *MsgCancelCampaignResponse) Reset()
func (*MsgCancelCampaignResponse) Size ¶
func (m *MsgCancelCampaignResponse) Size() (n int)
func (*MsgCancelCampaignResponse) String ¶
func (m *MsgCancelCampaignResponse) String() string
func (*MsgCancelCampaignResponse) Unmarshal ¶
func (m *MsgCancelCampaignResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelCampaignResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelCampaignResponse) XXX_DiscardUnknown()
func (*MsgCancelCampaignResponse) XXX_Marshal ¶
func (m *MsgCancelCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelCampaignResponse) XXX_Merge ¶
func (m *MsgCancelCampaignResponse) XXX_Merge(src proto.Message)
func (*MsgCancelCampaignResponse) XXX_Size ¶
func (m *MsgCancelCampaignResponse) XXX_Size() int
func (*MsgCancelCampaignResponse) XXX_Unmarshal ¶
func (m *MsgCancelCampaignResponse) XXX_Unmarshal(b []byte) error
type MsgClaim ¶
type MsgClaim struct { CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` NftId string `protobuf:"bytes,2,opt,name=nft_id,json=nftId,proto3" json:"nft_id,omitempty"` Interaction InteractionType `protobuf:"varint,3,opt,name=interaction,proto3,enum=OmniFlix.itc.v1.InteractionType" json:"interaction,omitempty"` Claimer string `protobuf:"bytes,4,opt,name=claimer,proto3" json:"claimer,omitempty"` }
func NewMsgClaim ¶
func NewMsgClaim(id uint64, nftId string, interaction InteractionType, claimer string, ) *MsgClaim
func (*MsgClaim) Descriptor ¶
func (*MsgClaim) GetSignBytes ¶
GetSignBytes Implements Msg.
func (MsgClaim) GetSigners ¶
func (msg MsgClaim) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
type MsgClaimResponse ¶
type MsgClaimResponse struct { }
func (*MsgClaimResponse) Descriptor ¶
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
func (*MsgClaimResponse) Marshal ¶
func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimResponse) ProtoMessage ¶
func (*MsgClaimResponse) ProtoMessage()
func (*MsgClaimResponse) Reset ¶
func (m *MsgClaimResponse) Reset()
func (*MsgClaimResponse) Size ¶
func (m *MsgClaimResponse) Size() (n int)
func (*MsgClaimResponse) String ¶
func (m *MsgClaimResponse) String() string
func (*MsgClaimResponse) Unmarshal ¶
func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimResponse) XXX_DiscardUnknown()
func (*MsgClaimResponse) XXX_Marshal ¶
func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimResponse) XXX_Merge ¶
func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
func (*MsgClaimResponse) XXX_Size ¶
func (m *MsgClaimResponse) XXX_Size() int
func (*MsgClaimResponse) XXX_Unmarshal ¶
func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateCampaign(ctx context.Context, in *MsgCreateCampaign, opts ...grpc.CallOption) (*MsgCreateCampaignResponse, error) CancelCampaign(ctx context.Context, in *MsgCancelCampaign, opts ...grpc.CallOption) (*MsgCancelCampaignResponse, error) Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error) DepositCampaign(ctx context.Context, in *MsgDepositCampaign, opts ...grpc.CallOption) (*MsgDepositCampaignResponse, error) // UpdateParams defines a governance operation for updating the x/itc module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateCampaign ¶
type MsgCreateCampaign struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Interaction InteractionType `protobuf:"varint,3,opt,name=interaction,proto3,enum=OmniFlix.itc.v1.InteractionType" json:"interaction,omitempty"` ClaimType ClaimType `` /* 138-byte string literal not displayed */ NftDenomId string `protobuf:"bytes,5,opt,name=nft_denom_id,json=nftDenomId,proto3" json:"nft_denom_id,omitempty" yaml:"nft_denom_id"` TokensPerClaim types.Coin `protobuf:"bytes,6,opt,name=tokens_per_claim,json=tokensPerClaim,proto3" json:"tokens_per_claim" yaml:"tokens_per_claim"` MaxAllowedClaims uint64 `` /* 138-byte string literal not displayed */ Deposit types.Coin `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit" yaml:"deposit"` NftMintDetails *NFTDetails `protobuf:"bytes,9,opt,name=nft_mint_details,json=nftMintDetails,proto3" json:"nft_mint_details,omitempty" yaml:"nft_details"` StartTime time.Time `protobuf:"bytes,10,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` Duration time.Duration `protobuf:"bytes,11,opt,name=duration,proto3,stdduration" json:"duration"` Distribution *Distribution `protobuf:"bytes,12,opt,name=distribution,proto3" json:"distribution,omitempty"` Creator string `protobuf:"bytes,13,opt,name=creator,proto3" json:"creator,omitempty"` CreationFee types.Coin `protobuf:"bytes,14,opt,name=creation_fee,json=creationFee,proto3" json:"creation_fee" yaml:"creation_fee"` }
func NewMsgCreateCampaign ¶
func NewMsgCreateCampaign(name, description string, interaction InteractionType, claimType ClaimType, nftDenomId string, maxAllowedClaims uint64, tokensPerClaim, tokenDeposit sdk.Coin, nftMintDetails *NFTDetails, distribution *Distribution, startTime time.Time, duration time.Duration, creator string, creationFee sdk.Coin, ) *MsgCreateCampaign
func (*MsgCreateCampaign) Descriptor ¶
func (*MsgCreateCampaign) Descriptor() ([]byte, []int)
func (*MsgCreateCampaign) GetSignBytes ¶
func (msg *MsgCreateCampaign) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgCreateCampaign) GetSigners ¶
func (msg MsgCreateCampaign) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
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 { }
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 MsgDepositCampaign ¶
type MsgDepositCampaign struct { CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` Depositor string `protobuf:"bytes,3,opt,name=depositor,proto3" json:"depositor,omitempty"` }
func NewMsgDepositCampaign ¶
func NewMsgDepositCampaign(id uint64, amount sdk.Coin, depositor string) *MsgDepositCampaign
func (*MsgDepositCampaign) Descriptor ¶
func (*MsgDepositCampaign) Descriptor() ([]byte, []int)
func (*MsgDepositCampaign) GetSignBytes ¶
func (msg *MsgDepositCampaign) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgDepositCampaign) GetSigners ¶
func (msg MsgDepositCampaign) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgDepositCampaign) Marshal ¶
func (m *MsgDepositCampaign) Marshal() (dAtA []byte, err error)
func (*MsgDepositCampaign) MarshalTo ¶
func (m *MsgDepositCampaign) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositCampaign) MarshalToSizedBuffer ¶
func (m *MsgDepositCampaign) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositCampaign) ProtoMessage ¶
func (*MsgDepositCampaign) ProtoMessage()
func (*MsgDepositCampaign) Reset ¶
func (m *MsgDepositCampaign) Reset()
func (MsgDepositCampaign) Route ¶
func (msg MsgDepositCampaign) Route() string
func (*MsgDepositCampaign) Size ¶
func (m *MsgDepositCampaign) Size() (n int)
func (*MsgDepositCampaign) String ¶
func (m *MsgDepositCampaign) String() string
func (MsgDepositCampaign) Type ¶
func (msg MsgDepositCampaign) Type() string
func (*MsgDepositCampaign) Unmarshal ¶
func (m *MsgDepositCampaign) Unmarshal(dAtA []byte) error
func (MsgDepositCampaign) ValidateBasic ¶
func (msg MsgDepositCampaign) ValidateBasic() error
func (*MsgDepositCampaign) XXX_DiscardUnknown ¶
func (m *MsgDepositCampaign) XXX_DiscardUnknown()
func (*MsgDepositCampaign) XXX_Marshal ¶
func (m *MsgDepositCampaign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositCampaign) XXX_Merge ¶
func (m *MsgDepositCampaign) XXX_Merge(src proto.Message)
func (*MsgDepositCampaign) XXX_Size ¶
func (m *MsgDepositCampaign) XXX_Size() int
func (*MsgDepositCampaign) XXX_Unmarshal ¶
func (m *MsgDepositCampaign) XXX_Unmarshal(b []byte) error
type MsgDepositCampaignResponse ¶
type MsgDepositCampaignResponse struct { }
func (*MsgDepositCampaignResponse) Descriptor ¶
func (*MsgDepositCampaignResponse) Descriptor() ([]byte, []int)
func (*MsgDepositCampaignResponse) Marshal ¶
func (m *MsgDepositCampaignResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositCampaignResponse) MarshalTo ¶
func (m *MsgDepositCampaignResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositCampaignResponse) MarshalToSizedBuffer ¶
func (m *MsgDepositCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositCampaignResponse) ProtoMessage ¶
func (*MsgDepositCampaignResponse) ProtoMessage()
func (*MsgDepositCampaignResponse) Reset ¶
func (m *MsgDepositCampaignResponse) Reset()
func (*MsgDepositCampaignResponse) Size ¶
func (m *MsgDepositCampaignResponse) Size() (n int)
func (*MsgDepositCampaignResponse) String ¶
func (m *MsgDepositCampaignResponse) String() string
func (*MsgDepositCampaignResponse) Unmarshal ¶
func (m *MsgDepositCampaignResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositCampaignResponse) XXX_DiscardUnknown ¶
func (m *MsgDepositCampaignResponse) XXX_DiscardUnknown()
func (*MsgDepositCampaignResponse) XXX_Marshal ¶
func (m *MsgDepositCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositCampaignResponse) XXX_Merge ¶
func (m *MsgDepositCampaignResponse) XXX_Merge(src proto.Message)
func (*MsgDepositCampaignResponse) XXX_Size ¶
func (m *MsgDepositCampaignResponse) XXX_Size() int
func (*MsgDepositCampaignResponse) XXX_Unmarshal ¶
func (m *MsgDepositCampaignResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateCampaign(context.Context, *MsgCreateCampaign) (*MsgCreateCampaignResponse, error) CancelCampaign(context.Context, *MsgCancelCampaign) (*MsgCancelCampaignResponse, error) Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error) DepositCampaign(context.Context, *MsgDepositCampaign) (*MsgDepositCampaignResponse, error) // UpdateParams defines a governance operation for updating the x/itc module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/itc parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (MsgUpdateParams) GetSignBytes ¶
func (m MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type NFTDetails ¶
type NFTDetails struct { DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` MediaUri string `protobuf:"bytes,4,opt,name=media_uri,json=mediaUri,proto3" json:"media_uri,omitempty"` PreviewUri string `protobuf:"bytes,5,opt,name=preview_uri,json=previewUri,proto3" json:"preview_uri,omitempty"` Transferable bool `protobuf:"varint,7,opt,name=transferable,proto3" json:"transferable,omitempty"` Extensible bool `protobuf:"varint,8,opt,name=extensible,proto3" json:"extensible,omitempty"` Nsfw bool `protobuf:"varint,9,opt,name=nsfw,proto3" json:"nsfw,omitempty"` Data string `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` UriHash string `protobuf:"bytes,11,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` }
func (*NFTDetails) Descriptor ¶
func (*NFTDetails) Descriptor() ([]byte, []int)
func (*NFTDetails) Marshal ¶
func (m *NFTDetails) Marshal() (dAtA []byte, err error)
func (*NFTDetails) MarshalToSizedBuffer ¶
func (m *NFTDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NFTDetails) ProtoMessage ¶
func (*NFTDetails) ProtoMessage()
func (*NFTDetails) Reset ¶
func (m *NFTDetails) Reset()
func (*NFTDetails) Size ¶
func (m *NFTDetails) Size() (n int)
func (*NFTDetails) String ¶
func (m *NFTDetails) String() string
func (*NFTDetails) Unmarshal ¶
func (m *NFTDetails) Unmarshal(dAtA []byte) error
func (*NFTDetails) XXX_DiscardUnknown ¶
func (m *NFTDetails) XXX_DiscardUnknown()
func (*NFTDetails) XXX_Marshal ¶
func (m *NFTDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NFTDetails) XXX_Merge ¶
func (m *NFTDetails) XXX_Merge(src proto.Message)
func (*NFTDetails) XXX_Size ¶
func (m *NFTDetails) XXX_Size() int
func (*NFTDetails) XXX_Unmarshal ¶
func (m *NFTDetails) XXX_Unmarshal(b []byte) error
type NftKeeper ¶
type NftKeeper interface { GetONFT(ctx sdk.Context, denomId, onftId string) (nft nft.ONFTI, err error) GetDenomInfo(ctx sdk.Context, denomId string) (*nfttypes.Denom, error) MintONFT( ctx sdk.Context, denomID, nftID, name, description, mediaURI, uriHash, previewURI, nftData string, createdAt time.Time, transferable, extensible, nsfw bool, royaltyShare sdk.Dec, receiver sdk.AccAddress, ) error TransferOwnership(ctx sdk.Context, denomId, nftId string, srcOwner, dstOwner sdk.AccAddress) error BurnONFT(ctx sdk.Context, denomId, nftId string, owner sdk.AccAddress) error }
NftKeeper defines the expected nft keeper
type Params ¶
type Params struct { MaxCampaignDuration time.Duration `` /* 151-byte string literal not displayed */ CreationFee types.Coin `protobuf:"bytes,2,opt,name=creation_fee,json=creationFee,proto3" json:"creation_fee" yaml:"creation_fee"` }
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic performs basic validation on itc parameters.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryCampaignRequest ¶
type QueryCampaignRequest struct {
CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty" yaml:"campaign_id"`
}
QueryCampaignRequest is the request type for the Query/Campaign RPC method.
func (*QueryCampaignRequest) Descriptor ¶
func (*QueryCampaignRequest) Descriptor() ([]byte, []int)
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"`
}
QueryCampaignResponse is the response type for the Query/Campaign RPC method.
func (*QueryCampaignResponse) Descriptor ¶
func (*QueryCampaignResponse) Descriptor() ([]byte, []int)
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 { Status CampaignStatus `protobuf:"varint,1,opt,name=status,proto3,enum=OmniFlix.itc.v1.CampaignStatus" json:"status,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCampaignsRequest is the request type for the Query/Campaigns RPC method.
func (*QueryCampaignsRequest) Descriptor ¶
func (*QueryCampaignsRequest) Descriptor() ([]byte, []int)
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 { Campaigns []Campaign `protobuf:"bytes,1,rep,name=campaigns,proto3" json:"campaigns"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCampaignsResponse is the response type for the Query/Campaigns RPC method.
func (*QueryCampaignsResponse) Descriptor ¶
func (*QueryCampaignsResponse) Descriptor() ([]byte, []int)
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 QueryClaimsRequest ¶
type QueryClaimsRequest struct { CampaignId uint64 `protobuf:"varint,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClaimsRequest is the request type for the Query/Claims RPC method.
func (*QueryClaimsRequest) Descriptor ¶
func (*QueryClaimsRequest) Descriptor() ([]byte, []int)
func (*QueryClaimsRequest) Marshal ¶
func (m *QueryClaimsRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimsRequest) MarshalTo ¶
func (m *QueryClaimsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsRequest) ProtoMessage ¶
func (*QueryClaimsRequest) ProtoMessage()
func (*QueryClaimsRequest) Reset ¶
func (m *QueryClaimsRequest) Reset()
func (*QueryClaimsRequest) Size ¶
func (m *QueryClaimsRequest) Size() (n int)
func (*QueryClaimsRequest) String ¶
func (m *QueryClaimsRequest) String() string
func (*QueryClaimsRequest) Unmarshal ¶
func (m *QueryClaimsRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimsRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimsRequest) XXX_DiscardUnknown()
func (*QueryClaimsRequest) XXX_Marshal ¶
func (m *QueryClaimsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsRequest) XXX_Merge ¶
func (m *QueryClaimsRequest) XXX_Merge(src proto.Message)
func (*QueryClaimsRequest) XXX_Size ¶
func (m *QueryClaimsRequest) XXX_Size() int
func (*QueryClaimsRequest) XXX_Unmarshal ¶
func (m *QueryClaimsRequest) XXX_Unmarshal(b []byte) error
type QueryClaimsResponse ¶
type QueryClaimsResponse struct { Claims []Claim `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryClaimsResponse) Descriptor ¶
func (*QueryClaimsResponse) Descriptor() ([]byte, []int)
func (*QueryClaimsResponse) Marshal ¶
func (m *QueryClaimsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimsResponse) MarshalTo ¶
func (m *QueryClaimsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsResponse) ProtoMessage ¶
func (*QueryClaimsResponse) ProtoMessage()
func (*QueryClaimsResponse) Reset ¶
func (m *QueryClaimsResponse) Reset()
func (*QueryClaimsResponse) Size ¶
func (m *QueryClaimsResponse) Size() (n int)
func (*QueryClaimsResponse) String ¶
func (m *QueryClaimsResponse) String() string
func (*QueryClaimsResponse) Unmarshal ¶
func (m *QueryClaimsResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimsResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimsResponse) XXX_DiscardUnknown()
func (*QueryClaimsResponse) XXX_Marshal ¶
func (m *QueryClaimsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsResponse) XXX_Merge ¶
func (m *QueryClaimsResponse) XXX_Merge(src proto.Message)
func (*QueryClaimsResponse) XXX_Size ¶
func (m *QueryClaimsResponse) XXX_Size() int
func (*QueryClaimsResponse) XXX_Unmarshal ¶
func (m *QueryClaimsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Campaigns(ctx context.Context, in *QueryCampaignsRequest, opts ...grpc.CallOption) (*QueryCampaignsResponse, error) Campaign(ctx context.Context, in *QueryCampaignRequest, opts ...grpc.CallOption) (*QueryCampaignResponse, error) Claims(ctx context.Context, in *QueryClaimsRequest, opts ...grpc.CallOption) (*QueryClaimsResponse, 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 the 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 defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
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 QueryServer ¶
type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Campaigns(context.Context, *QueryCampaignsRequest) (*QueryCampaignsResponse, error) Campaign(context.Context, *QueryCampaignRequest) (*QueryCampaignResponse, error) Claims(context.Context, *QueryClaimsRequest) (*QueryClaimsResponse, error) }
QueryServer is the server API for Query service.
type StreamPayKeeper ¶
type StreamPayKeeper interface { CreateStreamPayment( ctx sdk.Context, sender, recipient sdk.AccAddress, amount sdk.Coin, paymentType streampaytypes.StreamType, duration time.Duration, periods []*streampaytypes.Period, cancellable bool, ) (string, error) }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelCampaign ¶
func (*UnimplementedMsgServer) CancelCampaign(ctx context.Context, req *MsgCancelCampaign) (*MsgCancelCampaignResponse, error)
func (*UnimplementedMsgServer) Claim ¶
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
func (*UnimplementedMsgServer) CreateCampaign ¶
func (*UnimplementedMsgServer) CreateCampaign(ctx context.Context, req *MsgCreateCampaign) (*MsgCreateCampaignResponse, error)
func (*UnimplementedMsgServer) DepositCampaign ¶
func (*UnimplementedMsgServer) DepositCampaign(ctx context.Context, req *MsgDepositCampaign) (*MsgDepositCampaignResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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) Claims ¶
func (*UnimplementedQueryServer) Claims(ctx context.Context, req *QueryClaimsRequest) (*QueryClaimsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)