types

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "subscription"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_subscription"

	// prefix for the subscription fixation store
	SubsFixationPrefix = "subs-fs"

	// prefix for the subscription fixation store
	SubsTimerPrefix = "subs-ts"
)
View Source
const (
	BuySubscriptionEventName    = "buy_subscription_event"
	ExpireSubscriptionEventName = "expire_subscription_event"
	AddProjectEventName         = "add_project_to_subscription_event"
	DelProjectEventName         = "del_project_to_subscription_event"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const FREE_PLAN = "free" // gets its own const because it's treated differently
View Source
const (
	MAX_SUBSCRIPTION_DURATION = 12 // max duration of subscription in months
)
View Source
const TypeMsgAddProject = "add_project"
View Source
const TypeMsgBuy = "buy"
View Source
const TypeMsgDelProject = "del_project"

Variables

View Source
var (
	ErrSample           = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrBlankParameter   = sdkerrors.New(ModuleName, 101, "required parameter is empty")
	ErrInvalidParameter = sdkerrors.New(ModuleName, 102, "required parameter is invalid")
)

x/subscription module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubscription        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubscription          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetClusterKey

func GetClusterKey(sub Subscription) string

GetClusterKey returns the subscription's best-fit cluster

func GetSubUsageCriterion

func GetSubUsageCriterion(sub Subscription) uint64

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

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
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type EpochstorageKeeper

type EpochstorageKeeper interface {
	BlocksToSave(ctx sdk.Context, block uint64) (uint64, error)
	GetEpochStart(ctx sdk.Context) uint64
	IsEpochStart(ctx sdk.Context) bool
}

type GenesisState

type GenesisState struct {
	Params Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SubsFS types.GenesisState `protobuf:"bytes,2,opt,name=subsFS,proto3" json:"subsFS"`
	SubsTS []types.RawMessage `protobuf:"bytes,3,rep,name=subsTS,proto3" json:"subsTS"`
}

GenesisState defines the subscription module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSubsFS

func (m *GenesisState) GetSubsFS() types.GenesisState

func (*GenesisState) GetSubsTS

func (m *GenesisState) GetSubsTS() []types.RawMessage

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 ListInfoStruct

type ListInfoStruct struct {
	Consumer       string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Plan           string `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`
	DurationBought uint64 `protobuf:"varint,3,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft   uint64 `protobuf:"varint,4,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiry    uint64 `protobuf:"varint,5,opt,name=month_expiry,json=monthExpiry,proto3" json:"month_expiry,omitempty"`
	MonthCuTotal   uint64 `protobuf:"varint,6,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft    uint64 `protobuf:"varint,7,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster        string `protobuf:"bytes,8,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal  uint64 `protobuf:"varint,9,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
}

func (*ListInfoStruct) Descriptor

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

func (*ListInfoStruct) GetCluster

func (m *ListInfoStruct) GetCluster() string

func (*ListInfoStruct) GetConsumer

func (m *ListInfoStruct) GetConsumer() string

func (*ListInfoStruct) GetDurationBought

func (m *ListInfoStruct) GetDurationBought() uint64

func (*ListInfoStruct) GetDurationLeft

func (m *ListInfoStruct) GetDurationLeft() uint64

func (*ListInfoStruct) GetDurationTotal

func (m *ListInfoStruct) GetDurationTotal() uint64

func (*ListInfoStruct) GetMonthCuLeft

func (m *ListInfoStruct) GetMonthCuLeft() uint64

func (*ListInfoStruct) GetMonthCuTotal

func (m *ListInfoStruct) GetMonthCuTotal() uint64

func (*ListInfoStruct) GetMonthExpiry

func (m *ListInfoStruct) GetMonthExpiry() uint64

func (*ListInfoStruct) GetPlan

func (m *ListInfoStruct) GetPlan() string

func (*ListInfoStruct) Marshal

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

func (*ListInfoStruct) MarshalTo

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

func (*ListInfoStruct) MarshalToSizedBuffer

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

func (*ListInfoStruct) ProtoMessage

func (*ListInfoStruct) ProtoMessage()

func (*ListInfoStruct) Reset

func (m *ListInfoStruct) Reset()

func (*ListInfoStruct) Size

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

func (*ListInfoStruct) String

func (m *ListInfoStruct) String() string

func (*ListInfoStruct) Unmarshal

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

func (*ListInfoStruct) XXX_DiscardUnknown

func (m *ListInfoStruct) XXX_DiscardUnknown()

func (*ListInfoStruct) XXX_Marshal

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

func (*ListInfoStruct) XXX_Merge

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

func (*ListInfoStruct) XXX_Size

func (m *ListInfoStruct) XXX_Size() int

func (*ListInfoStruct) XXX_Unmarshal

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

type MsgAddProject

type MsgAddProject struct {
	Creator     string            `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ProjectData types.ProjectData `protobuf:"bytes,2,opt,name=project_data,json=projectData,proto3" json:"project_data"`
}

func NewMsgAddProject

func NewMsgAddProject(creator string, projectData projectstypes.ProjectData) *MsgAddProject

func (*MsgAddProject) Descriptor

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

func (*MsgAddProject) GetCreator

func (m *MsgAddProject) GetCreator() string

func (*MsgAddProject) GetProjectData

func (m *MsgAddProject) GetProjectData() types.ProjectData

func (*MsgAddProject) GetSignBytes

func (msg *MsgAddProject) GetSignBytes() []byte

func (*MsgAddProject) GetSigners

func (msg *MsgAddProject) GetSigners() []sdk.AccAddress

func (*MsgAddProject) Marshal

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

func (*MsgAddProject) MarshalTo

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

func (*MsgAddProject) MarshalToSizedBuffer

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

func (*MsgAddProject) ProtoMessage

func (*MsgAddProject) ProtoMessage()

func (*MsgAddProject) Reset

func (m *MsgAddProject) Reset()

func (*MsgAddProject) Route

func (msg *MsgAddProject) Route() string

func (*MsgAddProject) Size

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

func (*MsgAddProject) String

func (m *MsgAddProject) String() string

func (*MsgAddProject) Type

func (msg *MsgAddProject) Type() string

func (*MsgAddProject) Unmarshal

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

func (*MsgAddProject) ValidateBasic

func (msg *MsgAddProject) ValidateBasic() error

func (*MsgAddProject) XXX_DiscardUnknown

func (m *MsgAddProject) XXX_DiscardUnknown()

func (*MsgAddProject) XXX_Marshal

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

func (*MsgAddProject) XXX_Merge

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

func (*MsgAddProject) XXX_Size

func (m *MsgAddProject) XXX_Size() int

func (*MsgAddProject) XXX_Unmarshal

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

type MsgAddProjectResponse

type MsgAddProjectResponse struct {
}

func (*MsgAddProjectResponse) Descriptor

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

func (*MsgAddProjectResponse) Marshal

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

func (*MsgAddProjectResponse) MarshalTo

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

func (*MsgAddProjectResponse) MarshalToSizedBuffer

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

func (*MsgAddProjectResponse) ProtoMessage

func (*MsgAddProjectResponse) ProtoMessage()

func (*MsgAddProjectResponse) Reset

func (m *MsgAddProjectResponse) Reset()

func (*MsgAddProjectResponse) Size

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

func (*MsgAddProjectResponse) String

func (m *MsgAddProjectResponse) String() string

func (*MsgAddProjectResponse) Unmarshal

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

func (*MsgAddProjectResponse) XXX_DiscardUnknown

func (m *MsgAddProjectResponse) XXX_DiscardUnknown()

func (*MsgAddProjectResponse) XXX_Marshal

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

func (*MsgAddProjectResponse) XXX_Merge

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

func (*MsgAddProjectResponse) XXX_Size

func (m *MsgAddProjectResponse) XXX_Size() int

func (*MsgAddProjectResponse) XXX_Unmarshal

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

type MsgBuy

type MsgBuy struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Index    string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"`
	Duration uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
}

func NewMsgBuy

func NewMsgBuy(creator, consumer, index string, duration uint64) *MsgBuy

func (*MsgBuy) Descriptor

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

func (*MsgBuy) GetConsumer

func (m *MsgBuy) GetConsumer() string

func (*MsgBuy) GetCreator

func (m *MsgBuy) GetCreator() string

func (*MsgBuy) GetDuration

func (m *MsgBuy) GetDuration() uint64

func (*MsgBuy) GetIndex

func (m *MsgBuy) GetIndex() string

func (*MsgBuy) GetSignBytes

func (msg *MsgBuy) GetSignBytes() []byte

func (*MsgBuy) GetSigners

func (msg *MsgBuy) GetSigners() []sdk.AccAddress

func (*MsgBuy) Marshal

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

func (*MsgBuy) MarshalTo

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

func (*MsgBuy) MarshalToSizedBuffer

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

func (*MsgBuy) ProtoMessage

func (*MsgBuy) ProtoMessage()

func (*MsgBuy) Reset

func (m *MsgBuy) Reset()

func (*MsgBuy) Route

func (msg *MsgBuy) Route() string

func (*MsgBuy) Size

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

func (*MsgBuy) String

func (m *MsgBuy) String() string

func (*MsgBuy) Type

func (msg *MsgBuy) Type() string

func (*MsgBuy) Unmarshal

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

func (*MsgBuy) ValidateBasic

func (msg *MsgBuy) ValidateBasic() error

func (*MsgBuy) XXX_DiscardUnknown

func (m *MsgBuy) XXX_DiscardUnknown()

func (*MsgBuy) XXX_Marshal

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

func (*MsgBuy) XXX_Merge

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

func (*MsgBuy) XXX_Size

func (m *MsgBuy) XXX_Size() int

func (*MsgBuy) XXX_Unmarshal

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

type MsgBuyResponse

type MsgBuyResponse struct {
}

func (*MsgBuyResponse) Descriptor

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

func (*MsgBuyResponse) Marshal

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

func (*MsgBuyResponse) MarshalTo

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

func (*MsgBuyResponse) MarshalToSizedBuffer

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

func (*MsgBuyResponse) ProtoMessage

func (*MsgBuyResponse) ProtoMessage()

func (*MsgBuyResponse) Reset

func (m *MsgBuyResponse) Reset()

func (*MsgBuyResponse) Size

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

func (*MsgBuyResponse) String

func (m *MsgBuyResponse) String() string

func (*MsgBuyResponse) Unmarshal

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

func (*MsgBuyResponse) XXX_DiscardUnknown

func (m *MsgBuyResponse) XXX_DiscardUnknown()

func (*MsgBuyResponse) XXX_Marshal

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

func (*MsgBuyResponse) XXX_Merge

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

func (*MsgBuyResponse) XXX_Size

func (m *MsgBuyResponse) XXX_Size() int

func (*MsgBuyResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Buy(ctx context.Context, in *MsgBuy, opts ...grpc.CallOption) (*MsgBuyResponse, error)
	AddProject(ctx context.Context, in *MsgAddProject, opts ...grpc.CallOption) (*MsgAddProjectResponse, error)
	DelProject(ctx context.Context, in *MsgDelProject, opts ...grpc.CallOption) (*MsgDelProjectResponse, 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 MsgDelProject

type MsgDelProject struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func NewMsgDelProject

func NewMsgDelProject(creator, name string) *MsgDelProject

func (*MsgDelProject) Descriptor

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

func (*MsgDelProject) GetCreator

func (m *MsgDelProject) GetCreator() string

func (*MsgDelProject) GetName

func (m *MsgDelProject) GetName() string

func (*MsgDelProject) GetSignBytes

func (msg *MsgDelProject) GetSignBytes() []byte

func (*MsgDelProject) GetSigners

func (msg *MsgDelProject) GetSigners() []sdk.AccAddress

func (*MsgDelProject) Marshal

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

func (*MsgDelProject) MarshalTo

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

func (*MsgDelProject) MarshalToSizedBuffer

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

func (*MsgDelProject) ProtoMessage

func (*MsgDelProject) ProtoMessage()

func (*MsgDelProject) Reset

func (m *MsgDelProject) Reset()

func (*MsgDelProject) Route

func (msg *MsgDelProject) Route() string

func (*MsgDelProject) Size

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

func (*MsgDelProject) String

func (m *MsgDelProject) String() string

func (*MsgDelProject) Type

func (msg *MsgDelProject) Type() string

func (*MsgDelProject) Unmarshal

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

func (*MsgDelProject) ValidateBasic

func (msg *MsgDelProject) ValidateBasic() error

func (*MsgDelProject) XXX_DiscardUnknown

func (m *MsgDelProject) XXX_DiscardUnknown()

func (*MsgDelProject) XXX_Marshal

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

func (*MsgDelProject) XXX_Merge

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

func (*MsgDelProject) XXX_Size

func (m *MsgDelProject) XXX_Size() int

func (*MsgDelProject) XXX_Unmarshal

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

type MsgDelProjectResponse

type MsgDelProjectResponse struct {
}

func (*MsgDelProjectResponse) Descriptor

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

func (*MsgDelProjectResponse) Marshal

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

func (*MsgDelProjectResponse) MarshalTo

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

func (*MsgDelProjectResponse) MarshalToSizedBuffer

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

func (*MsgDelProjectResponse) ProtoMessage

func (*MsgDelProjectResponse) ProtoMessage()

func (*MsgDelProjectResponse) Reset

func (m *MsgDelProjectResponse) Reset()

func (*MsgDelProjectResponse) Size

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

func (*MsgDelProjectResponse) String

func (m *MsgDelProjectResponse) String() string

func (*MsgDelProjectResponse) Unmarshal

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

func (*MsgDelProjectResponse) XXX_DiscardUnknown

func (m *MsgDelProjectResponse) XXX_DiscardUnknown()

func (*MsgDelProjectResponse) XXX_Marshal

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

func (*MsgDelProjectResponse) XXX_Merge

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

func (*MsgDelProjectResponse) XXX_Size

func (m *MsgDelProjectResponse) XXX_Size() int

func (*MsgDelProjectResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PlansKeeper

type PlansKeeper interface {
	GetPlan(ctx sdk.Context, index string) (planstypes.Plan, bool)
	DelPlan(ctx sdk.Context, index string) error
	FindPlan(ctx sdk.Context, index string, block uint64) (val planstypes.Plan, found bool)
	PutPlan(ctx sdk.Context, index string, block uint64)
	GetAllPlanIndices(ctx sdk.Context) []string
}

type ProjectsKeeper

type ProjectsKeeper interface {
	CreateAdminProject(ctx sdk.Context, subscriptionAddress string, plan planstypes.Plan) error
	CreateProject(ctx sdk.Context, subscriptionAddress string, projectData projectstypes.ProjectData, plan planstypes.Plan) error
	DeleteProject(ctx sdk.Context, creator, index string) error
	SnapshotSubscriptionProjects(ctx sdk.Context, subscriptionAddr string)
	GetAllProjectsForSubscription(ctx sdk.Context, subscription string) []string
}

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 list of Current items.
	Current(ctx context.Context, in *QueryCurrentRequest, opts ...grpc.CallOption) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(ctx context.Context, in *QueryListProjectsRequest, opts ...grpc.CallOption) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(ctx context.Context, in *QueryListRequest, opts ...grpc.CallOption) (*QueryListResponse, 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 QueryCurrentRequest

type QueryCurrentRequest struct {
	Consumer string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
}

func (*QueryCurrentRequest) Descriptor

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

func (*QueryCurrentRequest) GetConsumer

func (m *QueryCurrentRequest) GetConsumer() string

func (*QueryCurrentRequest) Marshal

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

func (*QueryCurrentRequest) MarshalTo

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

func (*QueryCurrentRequest) MarshalToSizedBuffer

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

func (*QueryCurrentRequest) ProtoMessage

func (*QueryCurrentRequest) ProtoMessage()

func (*QueryCurrentRequest) Reset

func (m *QueryCurrentRequest) Reset()

func (*QueryCurrentRequest) Size

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

func (*QueryCurrentRequest) String

func (m *QueryCurrentRequest) String() string

func (*QueryCurrentRequest) Unmarshal

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

func (*QueryCurrentRequest) XXX_DiscardUnknown

func (m *QueryCurrentRequest) XXX_DiscardUnknown()

func (*QueryCurrentRequest) XXX_Marshal

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

func (*QueryCurrentRequest) XXX_Merge

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

func (*QueryCurrentRequest) XXX_Size

func (m *QueryCurrentRequest) XXX_Size() int

func (*QueryCurrentRequest) XXX_Unmarshal

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

type QueryCurrentResponse

type QueryCurrentResponse struct {
	Sub *Subscription `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
}

func (*QueryCurrentResponse) Descriptor

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

func (*QueryCurrentResponse) GetSub

func (m *QueryCurrentResponse) GetSub() *Subscription

func (*QueryCurrentResponse) Marshal

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

func (*QueryCurrentResponse) MarshalTo

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

func (*QueryCurrentResponse) MarshalToSizedBuffer

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

func (*QueryCurrentResponse) ProtoMessage

func (*QueryCurrentResponse) ProtoMessage()

func (*QueryCurrentResponse) Reset

func (m *QueryCurrentResponse) Reset()

func (*QueryCurrentResponse) Size

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

func (*QueryCurrentResponse) String

func (m *QueryCurrentResponse) String() string

func (*QueryCurrentResponse) Unmarshal

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

func (*QueryCurrentResponse) XXX_DiscardUnknown

func (m *QueryCurrentResponse) XXX_DiscardUnknown()

func (*QueryCurrentResponse) XXX_Marshal

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

func (*QueryCurrentResponse) XXX_Merge

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

func (*QueryCurrentResponse) XXX_Size

func (m *QueryCurrentResponse) XXX_Size() int

func (*QueryCurrentResponse) XXX_Unmarshal

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

type QueryListProjectsRequest

type QueryListProjectsRequest struct {
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
}

func (*QueryListProjectsRequest) Descriptor

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

func (*QueryListProjectsRequest) GetSubscription

func (m *QueryListProjectsRequest) GetSubscription() string

func (*QueryListProjectsRequest) Marshal

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

func (*QueryListProjectsRequest) MarshalTo

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

func (*QueryListProjectsRequest) MarshalToSizedBuffer

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

func (*QueryListProjectsRequest) ProtoMessage

func (*QueryListProjectsRequest) ProtoMessage()

func (*QueryListProjectsRequest) Reset

func (m *QueryListProjectsRequest) Reset()

func (*QueryListProjectsRequest) Size

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

func (*QueryListProjectsRequest) String

func (m *QueryListProjectsRequest) String() string

func (*QueryListProjectsRequest) Unmarshal

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

func (*QueryListProjectsRequest) XXX_DiscardUnknown

func (m *QueryListProjectsRequest) XXX_DiscardUnknown()

func (*QueryListProjectsRequest) XXX_Marshal

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

func (*QueryListProjectsRequest) XXX_Merge

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

func (*QueryListProjectsRequest) XXX_Size

func (m *QueryListProjectsRequest) XXX_Size() int

func (*QueryListProjectsRequest) XXX_Unmarshal

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

type QueryListProjectsResponse

type QueryListProjectsResponse struct {
	Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
}

func (*QueryListProjectsResponse) Descriptor

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

func (*QueryListProjectsResponse) GetProjects

func (m *QueryListProjectsResponse) GetProjects() []string

func (*QueryListProjectsResponse) Marshal

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

func (*QueryListProjectsResponse) MarshalTo

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

func (*QueryListProjectsResponse) MarshalToSizedBuffer

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

func (*QueryListProjectsResponse) ProtoMessage

func (*QueryListProjectsResponse) ProtoMessage()

func (*QueryListProjectsResponse) Reset

func (m *QueryListProjectsResponse) Reset()

func (*QueryListProjectsResponse) Size

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

func (*QueryListProjectsResponse) String

func (m *QueryListProjectsResponse) String() string

func (*QueryListProjectsResponse) Unmarshal

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

func (*QueryListProjectsResponse) XXX_DiscardUnknown

func (m *QueryListProjectsResponse) XXX_DiscardUnknown()

func (*QueryListProjectsResponse) XXX_Marshal

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

func (*QueryListProjectsResponse) XXX_Merge

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

func (*QueryListProjectsResponse) XXX_Size

func (m *QueryListProjectsResponse) XXX_Size() int

func (*QueryListProjectsResponse) XXX_Unmarshal

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

type QueryListRequest

type QueryListRequest struct {
}

func (*QueryListRequest) Descriptor

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

func (*QueryListRequest) Marshal

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

func (*QueryListRequest) MarshalTo

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

func (*QueryListRequest) MarshalToSizedBuffer

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

func (*QueryListRequest) ProtoMessage

func (*QueryListRequest) ProtoMessage()

func (*QueryListRequest) Reset

func (m *QueryListRequest) Reset()

func (*QueryListRequest) Size

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

func (*QueryListRequest) String

func (m *QueryListRequest) String() string

func (*QueryListRequest) Unmarshal

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

func (*QueryListRequest) XXX_DiscardUnknown

func (m *QueryListRequest) XXX_DiscardUnknown()

func (*QueryListRequest) XXX_Marshal

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

func (*QueryListRequest) XXX_Merge

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

func (*QueryListRequest) XXX_Size

func (m *QueryListRequest) XXX_Size() int

func (*QueryListRequest) XXX_Unmarshal

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

type QueryListResponse

type QueryListResponse struct {
	SubsInfo []ListInfoStruct `protobuf:"bytes,1,rep,name=subs_info,json=subsInfo,proto3" json:"subs_info"`
}

func (*QueryListResponse) Descriptor

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

func (*QueryListResponse) GetSubsInfo

func (m *QueryListResponse) GetSubsInfo() []ListInfoStruct

func (*QueryListResponse) Marshal

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

func (*QueryListResponse) MarshalTo

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

func (*QueryListResponse) MarshalToSizedBuffer

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

func (*QueryListResponse) ProtoMessage

func (*QueryListResponse) ProtoMessage()

func (*QueryListResponse) Reset

func (m *QueryListResponse) Reset()

func (*QueryListResponse) Size

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

func (*QueryListResponse) String

func (m *QueryListResponse) String() string

func (*QueryListResponse) Unmarshal

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

func (*QueryListResponse) XXX_DiscardUnknown

func (m *QueryListResponse) XXX_DiscardUnknown()

func (*QueryListResponse) XXX_Marshal

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

func (*QueryListResponse) XXX_Merge

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

func (*QueryListResponse) XXX_Size

func (m *QueryListResponse) XXX_Size() int

func (*QueryListResponse) XXX_Unmarshal

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

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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Current items.
	Current(context.Context, *QueryCurrentRequest) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(context.Context, *QueryListProjectsRequest) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(context.Context, *QueryListRequest) (*QueryListResponse, error)
}

QueryServer is the server API for Query service.

type Subscription

type Subscription struct {
	Creator         string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Consumer        string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Block           uint64 `protobuf:"varint,3,opt,name=block,proto3" json:"block,omitempty"`
	PlanIndex       string `protobuf:"bytes,4,opt,name=plan_index,json=planIndex,proto3" json:"plan_index,omitempty"`
	PlanBlock       uint64 `protobuf:"varint,5,opt,name=plan_block,json=planBlock,proto3" json:"plan_block,omitempty"`
	DurationBought  uint64 `protobuf:"varint,6,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft    uint64 `protobuf:"varint,7,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiryTime uint64 `protobuf:"varint,8,opt,name=month_expiry_time,json=monthExpiryTime,proto3" json:"month_expiry_time,omitempty"`
	MonthCuTotal    uint64 `protobuf:"varint,10,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft     uint64 `protobuf:"varint,11,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster         string `protobuf:"bytes,13,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal   uint64 `protobuf:"varint,14,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
}

func (*Subscription) Descriptor

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

func (*Subscription) GetBlock

func (m *Subscription) GetBlock() uint64

func (*Subscription) GetCluster

func (m *Subscription) GetCluster() string

func (*Subscription) GetConsumer

func (m *Subscription) GetConsumer() string

func (*Subscription) GetCreator

func (m *Subscription) GetCreator() string

func (*Subscription) GetDurationBought

func (m *Subscription) GetDurationBought() uint64

func (*Subscription) GetDurationLeft

func (m *Subscription) GetDurationLeft() uint64

func (*Subscription) GetDurationTotal

func (m *Subscription) GetDurationTotal() uint64

func (*Subscription) GetMonthCuLeft

func (m *Subscription) GetMonthCuLeft() uint64

func (*Subscription) GetMonthCuTotal

func (m *Subscription) GetMonthCuTotal() uint64

func (*Subscription) GetMonthExpiryTime

func (m *Subscription) GetMonthExpiryTime() uint64

func (*Subscription) GetPlanBlock

func (m *Subscription) GetPlanBlock() uint64

func (*Subscription) GetPlanIndex

func (m *Subscription) GetPlanIndex() string

func (*Subscription) Marshal

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

func (*Subscription) MarshalTo

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

func (*Subscription) MarshalToSizedBuffer

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

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) Reset

func (m *Subscription) Reset()

func (*Subscription) Size

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

func (*Subscription) String

func (m *Subscription) String() string

func (*Subscription) Unmarshal

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

func (Subscription) ValidateSubscription

func (sub Subscription) ValidateSubscription() error

ValidateSubscription validates a subscription object fields

func (*Subscription) XXX_DiscardUnknown

func (m *Subscription) XXX_DiscardUnknown()

func (*Subscription) XXX_Marshal

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

func (*Subscription) XXX_Merge

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

func (*Subscription) XXX_Size

func (m *Subscription) XXX_Size() int

func (*Subscription) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddProject

func (*UnimplementedMsgServer) Buy

func (*UnimplementedMsgServer) DelProject

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Current

func (*UnimplementedQueryServer) List

func (*UnimplementedQueryServer) ListProjects

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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