types

package
v0.32.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 31 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 = "project"

	// 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_project"

	// prefix for the projects fixation store
	ProjectsFixationPrefix = "prj-fs"

	// prefix for the developer keys fixation store
	DeveloperKeysFixationPrefix = "dev-fs"
)
View Source
const (
	AddProjectKeyEventName = "add_key_to_project_event"
	DelProjectKeyEventName = "del_key_from_project_event"
)
View Source
const (
	ADMIN_PROJECT_NAME = "admin"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	MAX_PROJECT_NAME_LEN = 50
)
View Source
const TypeMsgAddKeys = "add_keys"
View Source
const TypeMsgDelKeys = "del_keys"
View Source
const TypeMsgSetPolicy = "set_admin_policy"
View Source
const TypeMsgSetSubscriptionPolicy = "set_subscription_policy"

Variables

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 (
	ErrInvalidLengthProject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProject = 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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidKeyType = sdkerrors.Register(ModuleName, 1100, "invalid project key type")
)

x/projects module sentinel errors

View Source
var ProjectKey_Type_name = map[int32]string{
	0: "NONE",
	1: "ADMIN",
	2: "DEVELOPER",
}
View Source
var ProjectKey_Type_value = map[string]int32{
	"NONE":      0,
	"ADMIN":     1,
	"DEVELOPER": 2,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func ProjectIndex

func ProjectIndex(subscriptionAddress, projectName string) string

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)

func ValidateProjectName

func ValidateProjectName(name string) bool

Types

type EpochStorageKeeper

type EpochStorageKeeper interface {
	GetNextEpoch(ctx sdk.Context, block uint64) (nextEpoch uint64, erro error)
	GetEpochStartForBlock(ctx sdk.Context, block uint64) (epochStart, blockInEpoch uint64, err error)
	BlocksToSaveRaw(ctx sdk.Context) (res uint64)
}

type FixationStoreKeeper

type FixationStoreKeeper interface {
	NewFixationStore(storeKey storetypes.StoreKey, prefix string) *fixationstoretypes.FixationStore
}

type GenesisState

type GenesisState struct {
	Params      Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	ProjectsFS  types.GenesisState `protobuf:"bytes,2,opt,name=projectsFS,proto3" json:"projectsFS"`
	DeveloperFS types.GenesisState `protobuf:"bytes,3,opt,name=developerFS,proto3" json:"developerFS"`
}

GenesisState defines the projects 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) GetDeveloperFS

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetProjectsFS

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

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 MsgAddKeys

type MsgAddKeys struct {
	Creator     string       `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Project     string       `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	ProjectKeys []ProjectKey `protobuf:"bytes,3,rep,name=project_keys,json=projectKeys,proto3" json:"project_keys"`
}

func NewMsgAddKeys

func NewMsgAddKeys(creator, projectID string, projectKeys []ProjectKey) *MsgAddKeys

func (*MsgAddKeys) Descriptor

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

func (*MsgAddKeys) GetCreator

func (m *MsgAddKeys) GetCreator() string

func (*MsgAddKeys) GetProject

func (m *MsgAddKeys) GetProject() string

func (*MsgAddKeys) GetProjectKeys

func (m *MsgAddKeys) GetProjectKeys() []ProjectKey

func (*MsgAddKeys) GetSignBytes

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

func (*MsgAddKeys) GetSigners

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

func (*MsgAddKeys) Marshal

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

func (*MsgAddKeys) MarshalTo

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

func (*MsgAddKeys) MarshalToSizedBuffer

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

func (*MsgAddKeys) ProtoMessage

func (*MsgAddKeys) ProtoMessage()

func (*MsgAddKeys) Reset

func (m *MsgAddKeys) Reset()

func (*MsgAddKeys) Route

func (msg *MsgAddKeys) Route() string

func (*MsgAddKeys) Size

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

func (*MsgAddKeys) String

func (m *MsgAddKeys) String() string

func (*MsgAddKeys) Type

func (msg *MsgAddKeys) Type() string

func (*MsgAddKeys) Unmarshal

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

func (*MsgAddKeys) ValidateBasic

func (msg *MsgAddKeys) ValidateBasic() error

func (*MsgAddKeys) XXX_DiscardUnknown

func (m *MsgAddKeys) XXX_DiscardUnknown()

func (*MsgAddKeys) XXX_Marshal

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

func (*MsgAddKeys) XXX_Merge

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

func (*MsgAddKeys) XXX_Size

func (m *MsgAddKeys) XXX_Size() int

func (*MsgAddKeys) XXX_Unmarshal

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

type MsgAddKeysResponse

type MsgAddKeysResponse struct {
}

func (*MsgAddKeysResponse) Descriptor

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

func (*MsgAddKeysResponse) Marshal

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

func (*MsgAddKeysResponse) MarshalTo

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

func (*MsgAddKeysResponse) MarshalToSizedBuffer

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

func (*MsgAddKeysResponse) ProtoMessage

func (*MsgAddKeysResponse) ProtoMessage()

func (*MsgAddKeysResponse) Reset

func (m *MsgAddKeysResponse) Reset()

func (*MsgAddKeysResponse) Size

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

func (*MsgAddKeysResponse) String

func (m *MsgAddKeysResponse) String() string

func (*MsgAddKeysResponse) Unmarshal

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

func (*MsgAddKeysResponse) XXX_DiscardUnknown

func (m *MsgAddKeysResponse) XXX_DiscardUnknown()

func (*MsgAddKeysResponse) XXX_Marshal

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

func (*MsgAddKeysResponse) XXX_Merge

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

func (*MsgAddKeysResponse) XXX_Size

func (m *MsgAddKeysResponse) XXX_Size() int

func (*MsgAddKeysResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	AddKeys(ctx context.Context, in *MsgAddKeys, opts ...grpc.CallOption) (*MsgAddKeysResponse, error)
	DelKeys(ctx context.Context, in *MsgDelKeys, opts ...grpc.CallOption) (*MsgDelKeysResponse, error)
	SetPolicy(ctx context.Context, in *MsgSetPolicy, opts ...grpc.CallOption) (*MsgSetPolicyResponse, error)
	SetSubscriptionPolicy(ctx context.Context, in *MsgSetSubscriptionPolicy, opts ...grpc.CallOption) (*MsgSetSubscriptionPolicyResponse, 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 MsgDelKeys

type MsgDelKeys struct {
	Creator     string       `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Project     string       `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	ProjectKeys []ProjectKey `protobuf:"bytes,3,rep,name=project_keys,json=projectKeys,proto3" json:"project_keys"`
}

func NewMsgDelKeys

func NewMsgDelKeys(creator, projectID string, projectKeys []ProjectKey) *MsgDelKeys

func (*MsgDelKeys) Descriptor

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

func (*MsgDelKeys) GetCreator

func (m *MsgDelKeys) GetCreator() string

func (*MsgDelKeys) GetProject

func (m *MsgDelKeys) GetProject() string

func (*MsgDelKeys) GetProjectKeys

func (m *MsgDelKeys) GetProjectKeys() []ProjectKey

func (*MsgDelKeys) GetSignBytes

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

func (*MsgDelKeys) GetSigners

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

func (*MsgDelKeys) Marshal

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

func (*MsgDelKeys) MarshalTo

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

func (*MsgDelKeys) MarshalToSizedBuffer

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

func (*MsgDelKeys) ProtoMessage

func (*MsgDelKeys) ProtoMessage()

func (*MsgDelKeys) Reset

func (m *MsgDelKeys) Reset()

func (*MsgDelKeys) Route

func (msg *MsgDelKeys) Route() string

func (*MsgDelKeys) Size

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

func (*MsgDelKeys) String

func (m *MsgDelKeys) String() string

func (*MsgDelKeys) Type

func (msg *MsgDelKeys) Type() string

func (*MsgDelKeys) Unmarshal

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

func (*MsgDelKeys) ValidateBasic

func (msg *MsgDelKeys) ValidateBasic() error

func (*MsgDelKeys) XXX_DiscardUnknown

func (m *MsgDelKeys) XXX_DiscardUnknown()

func (*MsgDelKeys) XXX_Marshal

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

func (*MsgDelKeys) XXX_Merge

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

func (*MsgDelKeys) XXX_Size

func (m *MsgDelKeys) XXX_Size() int

func (*MsgDelKeys) XXX_Unmarshal

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

type MsgDelKeysResponse

type MsgDelKeysResponse struct {
}

func (*MsgDelKeysResponse) Descriptor

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

func (*MsgDelKeysResponse) Marshal

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

func (*MsgDelKeysResponse) MarshalTo

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

func (*MsgDelKeysResponse) MarshalToSizedBuffer

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

func (*MsgDelKeysResponse) ProtoMessage

func (*MsgDelKeysResponse) ProtoMessage()

func (*MsgDelKeysResponse) Reset

func (m *MsgDelKeysResponse) Reset()

func (*MsgDelKeysResponse) Size

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

func (*MsgDelKeysResponse) String

func (m *MsgDelKeysResponse) String() string

func (*MsgDelKeysResponse) Unmarshal

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

func (*MsgDelKeysResponse) XXX_DiscardUnknown

func (m *MsgDelKeysResponse) XXX_DiscardUnknown()

func (*MsgDelKeysResponse) XXX_Marshal

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

func (*MsgDelKeysResponse) XXX_Merge

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

func (*MsgDelKeysResponse) XXX_Size

func (m *MsgDelKeysResponse) XXX_Size() int

func (*MsgDelKeysResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetPolicy

type MsgSetPolicy struct {
	Creator string        `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Project string        `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Policy  *types.Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
}

func NewMsgSetPolicy

func NewMsgSetPolicy(creator, project string, policy *planstypes.Policy) *MsgSetPolicy

func (*MsgSetPolicy) Descriptor

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

func (*MsgSetPolicy) GetCreator

func (m *MsgSetPolicy) GetCreator() string

func (*MsgSetPolicy) GetPolicy

func (m *MsgSetPolicy) GetPolicy() *types.Policy

func (*MsgSetPolicy) GetProject

func (m *MsgSetPolicy) GetProject() string

func (*MsgSetPolicy) GetSignBytes

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

func (*MsgSetPolicy) GetSigners

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

func (*MsgSetPolicy) Marshal

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

func (*MsgSetPolicy) MarshalTo

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

func (*MsgSetPolicy) MarshalToSizedBuffer

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

func (*MsgSetPolicy) ProtoMessage

func (*MsgSetPolicy) ProtoMessage()

func (*MsgSetPolicy) Reset

func (m *MsgSetPolicy) Reset()

func (*MsgSetPolicy) Route

func (msg *MsgSetPolicy) Route() string

func (*MsgSetPolicy) Size

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

func (*MsgSetPolicy) String

func (m *MsgSetPolicy) String() string

func (*MsgSetPolicy) Type

func (msg *MsgSetPolicy) Type() string

func (*MsgSetPolicy) Unmarshal

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

func (*MsgSetPolicy) ValidateBasic

func (msg *MsgSetPolicy) ValidateBasic() error

func (*MsgSetPolicy) XXX_DiscardUnknown

func (m *MsgSetPolicy) XXX_DiscardUnknown()

func (*MsgSetPolicy) XXX_Marshal

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

func (*MsgSetPolicy) XXX_Merge

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

func (*MsgSetPolicy) XXX_Size

func (m *MsgSetPolicy) XXX_Size() int

func (*MsgSetPolicy) XXX_Unmarshal

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

type MsgSetPolicyResponse

type MsgSetPolicyResponse struct {
}

func (*MsgSetPolicyResponse) Descriptor

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

func (*MsgSetPolicyResponse) Marshal

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

func (*MsgSetPolicyResponse) MarshalTo

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

func (*MsgSetPolicyResponse) MarshalToSizedBuffer

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

func (*MsgSetPolicyResponse) ProtoMessage

func (*MsgSetPolicyResponse) ProtoMessage()

func (*MsgSetPolicyResponse) Reset

func (m *MsgSetPolicyResponse) Reset()

func (*MsgSetPolicyResponse) Size

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

func (*MsgSetPolicyResponse) String

func (m *MsgSetPolicyResponse) String() string

func (*MsgSetPolicyResponse) Unmarshal

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

func (*MsgSetPolicyResponse) XXX_DiscardUnknown

func (m *MsgSetPolicyResponse) XXX_DiscardUnknown()

func (*MsgSetPolicyResponse) XXX_Marshal

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

func (*MsgSetPolicyResponse) XXX_Merge

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

func (*MsgSetPolicyResponse) XXX_Size

func (m *MsgSetPolicyResponse) XXX_Size() int

func (*MsgSetPolicyResponse) XXX_Unmarshal

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

type MsgSetSubscriptionPolicy

type MsgSetSubscriptionPolicy struct {
	Creator  string        `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Projects []string      `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
	Policy   *types.Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
}

func NewMsgSetSubscriptionPolicy

func NewMsgSetSubscriptionPolicy(creator string, projects []string, policy *planstypes.Policy) *MsgSetSubscriptionPolicy

func (*MsgSetSubscriptionPolicy) Descriptor

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

func (*MsgSetSubscriptionPolicy) GetCreator

func (m *MsgSetSubscriptionPolicy) GetCreator() string

func (*MsgSetSubscriptionPolicy) GetPolicy

func (m *MsgSetSubscriptionPolicy) GetPolicy() *types.Policy

func (*MsgSetSubscriptionPolicy) GetProjects

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

func (*MsgSetSubscriptionPolicy) GetSignBytes

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

func (*MsgSetSubscriptionPolicy) GetSigners

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

func (*MsgSetSubscriptionPolicy) Marshal

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

func (*MsgSetSubscriptionPolicy) MarshalTo

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

func (*MsgSetSubscriptionPolicy) MarshalToSizedBuffer

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

func (*MsgSetSubscriptionPolicy) ProtoMessage

func (*MsgSetSubscriptionPolicy) ProtoMessage()

func (*MsgSetSubscriptionPolicy) Reset

func (m *MsgSetSubscriptionPolicy) Reset()

func (*MsgSetSubscriptionPolicy) Route

func (msg *MsgSetSubscriptionPolicy) Route() string

func (*MsgSetSubscriptionPolicy) Size

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

func (*MsgSetSubscriptionPolicy) String

func (m *MsgSetSubscriptionPolicy) String() string

func (*MsgSetSubscriptionPolicy) Type

func (msg *MsgSetSubscriptionPolicy) Type() string

func (*MsgSetSubscriptionPolicy) Unmarshal

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

func (*MsgSetSubscriptionPolicy) ValidateBasic

func (msg *MsgSetSubscriptionPolicy) ValidateBasic() error

func (*MsgSetSubscriptionPolicy) XXX_DiscardUnknown

func (m *MsgSetSubscriptionPolicy) XXX_DiscardUnknown()

func (*MsgSetSubscriptionPolicy) XXX_Marshal

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

func (*MsgSetSubscriptionPolicy) XXX_Merge

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

func (*MsgSetSubscriptionPolicy) XXX_Size

func (m *MsgSetSubscriptionPolicy) XXX_Size() int

func (*MsgSetSubscriptionPolicy) XXX_Unmarshal

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

type MsgSetSubscriptionPolicyResponse

type MsgSetSubscriptionPolicyResponse struct {
}

func (*MsgSetSubscriptionPolicyResponse) Descriptor

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

func (*MsgSetSubscriptionPolicyResponse) Marshal

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

func (*MsgSetSubscriptionPolicyResponse) MarshalTo

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

func (*MsgSetSubscriptionPolicyResponse) MarshalToSizedBuffer

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

func (*MsgSetSubscriptionPolicyResponse) ProtoMessage

func (*MsgSetSubscriptionPolicyResponse) ProtoMessage()

func (*MsgSetSubscriptionPolicyResponse) Reset

func (*MsgSetSubscriptionPolicyResponse) Size

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

func (*MsgSetSubscriptionPolicyResponse) String

func (*MsgSetSubscriptionPolicyResponse) Unmarshal

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

func (*MsgSetSubscriptionPolicyResponse) XXX_DiscardUnknown

func (m *MsgSetSubscriptionPolicyResponse) XXX_DiscardUnknown()

func (*MsgSetSubscriptionPolicyResponse) XXX_Marshal

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

func (*MsgSetSubscriptionPolicyResponse) XXX_Merge

func (*MsgSetSubscriptionPolicyResponse) XXX_Size

func (m *MsgSetSubscriptionPolicyResponse) XXX_Size() int

func (*MsgSetSubscriptionPolicyResponse) XXX_Unmarshal

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

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 Project

type Project struct {
	Index              string        `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Subscription       string        `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"`
	Enabled            bool          `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	ProjectKeys        []ProjectKey  `protobuf:"bytes,5,rep,name=project_keys,json=projectKeys,proto3" json:"project_keys"`
	AdminPolicy        *types.Policy `protobuf:"bytes,6,opt,name=admin_policy,json=adminPolicy,proto3" json:"admin_policy"`
	UsedCu             uint64        `protobuf:"varint,7,opt,name=used_cu,json=usedCu,proto3" json:"used_cu,omitempty"`
	SubscriptionPolicy *types.Policy `protobuf:"bytes,8,opt,name=subscription_policy,json=subscriptionPolicy,proto3" json:"subscription_policy"`
	Snapshot           uint64        `protobuf:"varint,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
}

func NewProject

func NewProject(subscriptionAddress, projectName string, enable bool) (Project, error)

func (*Project) AppendKey

func (project *Project) AppendKey(key ProjectKey) bool

func (*Project) DeleteKey

func (project *Project) DeleteKey(key ProjectKey) bool

func (*Project) Descriptor

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

func (*Project) Equal

func (this *Project) Equal(that interface{}) bool

func (*Project) GetAdminPolicy

func (m *Project) GetAdminPolicy() *types.Policy

func (*Project) GetEnabled

func (m *Project) GetEnabled() bool

func (*Project) GetIndex

func (m *Project) GetIndex() string

func (*Project) GetKey

func (project *Project) GetKey(key string) ProjectKey

func (*Project) GetProjectKeys

func (m *Project) GetProjectKeys() []ProjectKey

func (*Project) GetSnapshot

func (m *Project) GetSnapshot() uint64

func (*Project) GetSubscription

func (m *Project) GetSubscription() string

func (*Project) GetSubscriptionPolicy

func (m *Project) GetSubscriptionPolicy() *types.Policy

func (*Project) GetUsedCu

func (m *Project) GetUsedCu() uint64

func (*Project) IsAdminKey

func (project *Project) IsAdminKey(key string) bool

func (*Project) Marshal

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

func (*Project) MarshalTo

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

func (*Project) MarshalToSizedBuffer

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

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) Size

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

func (*Project) String

func (m *Project) String() string

func (*Project) Unmarshal

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

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

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

func (*Project) XXX_Merge

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

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

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

type ProjectData

type ProjectData struct {
	Name        string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Enabled     bool          `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	ProjectKeys []ProjectKey  `protobuf:"bytes,4,rep,name=projectKeys,proto3" json:"projectKeys"`
	Policy      *types.Policy `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`
}

used as a container struct for the subscription module

func (*ProjectData) Descriptor

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

func (*ProjectData) Equal

func (this *ProjectData) Equal(that interface{}) bool

func (*ProjectData) GetEnabled

func (m *ProjectData) GetEnabled() bool

func (*ProjectData) GetName

func (m *ProjectData) GetName() string

func (*ProjectData) GetPolicy

func (m *ProjectData) GetPolicy() *types.Policy

func (*ProjectData) GetProjectKeys

func (m *ProjectData) GetProjectKeys() []ProjectKey

func (*ProjectData) Marshal

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

func (*ProjectData) MarshalTo

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

func (*ProjectData) MarshalToSizedBuffer

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

func (*ProjectData) ProtoMessage

func (*ProjectData) ProtoMessage()

func (*ProjectData) Reset

func (m *ProjectData) Reset()

func (*ProjectData) Size

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

func (*ProjectData) String

func (m *ProjectData) String() string

func (*ProjectData) Unmarshal

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

func (*ProjectData) XXX_DiscardUnknown

func (m *ProjectData) XXX_DiscardUnknown()

func (*ProjectData) XXX_Marshal

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

func (*ProjectData) XXX_Merge

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

func (*ProjectData) XXX_Size

func (m *ProjectData) XXX_Size() int

func (*ProjectData) XXX_Unmarshal

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

type ProjectKey

type ProjectKey struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key"`
	Kinds uint32 `protobuf:"varint,4,opt,name=kinds,proto3" json:"kinds"`
}

func NewProjectKey

func NewProjectKey(key string) ProjectKey

func ProjectAdminKey

func ProjectAdminKey(key string) ProjectKey

func ProjectDeveloperKey

func ProjectDeveloperKey(key string) ProjectKey

func (ProjectKey) AddType

func (projectKey ProjectKey) AddType(kind ProjectKey_Type) ProjectKey

func (*ProjectKey) Descriptor

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

func (*ProjectKey) Equal

func (this *ProjectKey) Equal(that interface{}) bool

func (*ProjectKey) GetKey

func (m *ProjectKey) GetKey() string

func (*ProjectKey) GetKinds

func (m *ProjectKey) GetKinds() uint32

func (ProjectKey) IsType

func (projectKey ProjectKey) IsType(kind ProjectKey_Type) bool

func (ProjectKey) IsTypeValid

func (projectKey ProjectKey) IsTypeValid() bool

func (*ProjectKey) Marshal

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

func (*ProjectKey) MarshalTo

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

func (*ProjectKey) MarshalToSizedBuffer

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

func (*ProjectKey) ProtoMessage

func (*ProjectKey) ProtoMessage()

func (*ProjectKey) Reset

func (m *ProjectKey) Reset()

func (ProjectKey) SetType

func (projectKey ProjectKey) SetType(kind ProjectKey_Type) ProjectKey

func (*ProjectKey) Size

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

func (*ProjectKey) String

func (m *ProjectKey) String() string

func (*ProjectKey) Unmarshal

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

func (*ProjectKey) XXX_DiscardUnknown

func (m *ProjectKey) XXX_DiscardUnknown()

func (*ProjectKey) XXX_Marshal

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

func (*ProjectKey) XXX_Merge

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

func (*ProjectKey) XXX_Size

func (m *ProjectKey) XXX_Size() int

func (*ProjectKey) XXX_Unmarshal

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

type ProjectKey_Type

type ProjectKey_Type int32
const (
	ProjectKey_NONE      ProjectKey_Type = 0
	ProjectKey_ADMIN     ProjectKey_Type = 1
	ProjectKey_DEVELOPER ProjectKey_Type = 2
)

func (ProjectKey_Type) EnumDescriptor

func (ProjectKey_Type) EnumDescriptor() ([]byte, []int)

func (ProjectKey_Type) String

func (x ProjectKey_Type) String() string

type ProtoDeveloperData

type ProtoDeveloperData struct {
	ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
}

func (*ProtoDeveloperData) Descriptor

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

func (*ProtoDeveloperData) Equal

func (this *ProtoDeveloperData) Equal(that interface{}) bool

func (*ProtoDeveloperData) GetProjectID

func (m *ProtoDeveloperData) GetProjectID() string

func (*ProtoDeveloperData) Marshal

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

func (*ProtoDeveloperData) MarshalTo

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

func (*ProtoDeveloperData) MarshalToSizedBuffer

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

func (*ProtoDeveloperData) ProtoMessage

func (*ProtoDeveloperData) ProtoMessage()

func (*ProtoDeveloperData) Reset

func (m *ProtoDeveloperData) Reset()

func (*ProtoDeveloperData) Size

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

func (*ProtoDeveloperData) String

func (m *ProtoDeveloperData) String() string

func (*ProtoDeveloperData) Unmarshal

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

func (*ProtoDeveloperData) XXX_DiscardUnknown

func (m *ProtoDeveloperData) XXX_DiscardUnknown()

func (*ProtoDeveloperData) XXX_Marshal

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

func (*ProtoDeveloperData) XXX_Merge

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

func (*ProtoDeveloperData) XXX_Size

func (m *ProtoDeveloperData) XXX_Size() int

func (*ProtoDeveloperData) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of ShowProject items.
	Info(ctx context.Context, in *QueryInfoRequest, opts ...grpc.CallOption) (*QueryInfoResponse, error)
	// Queries a list of ShowDevelopersProject items.
	Developer(ctx context.Context, in *QueryDeveloperRequest, opts ...grpc.CallOption) (*QueryDeveloperResponse, 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 QueryDeveloperRequest

type QueryDeveloperRequest struct {
	Developer string `protobuf:"bytes,1,opt,name=developer,proto3" json:"developer,omitempty"`
}

func (*QueryDeveloperRequest) Descriptor

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

func (*QueryDeveloperRequest) GetDeveloper

func (m *QueryDeveloperRequest) GetDeveloper() string

func (*QueryDeveloperRequest) Marshal

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

func (*QueryDeveloperRequest) MarshalTo

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

func (*QueryDeveloperRequest) MarshalToSizedBuffer

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

func (*QueryDeveloperRequest) ProtoMessage

func (*QueryDeveloperRequest) ProtoMessage()

func (*QueryDeveloperRequest) Reset

func (m *QueryDeveloperRequest) Reset()

func (*QueryDeveloperRequest) Size

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

func (*QueryDeveloperRequest) String

func (m *QueryDeveloperRequest) String() string

func (*QueryDeveloperRequest) Unmarshal

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

func (*QueryDeveloperRequest) XXX_DiscardUnknown

func (m *QueryDeveloperRequest) XXX_DiscardUnknown()

func (*QueryDeveloperRequest) XXX_Marshal

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

func (*QueryDeveloperRequest) XXX_Merge

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

func (*QueryDeveloperRequest) XXX_Size

func (m *QueryDeveloperRequest) XXX_Size() int

func (*QueryDeveloperRequest) XXX_Unmarshal

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

type QueryDeveloperResponse

type QueryDeveloperResponse struct {
	Project        *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	PendingProject *Project `protobuf:"bytes,2,opt,name=pending_project,json=pendingProject,proto3" json:"pending_project,omitempty"`
}

func (*QueryDeveloperResponse) Descriptor

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

func (*QueryDeveloperResponse) GetPendingProject

func (m *QueryDeveloperResponse) GetPendingProject() *Project

func (*QueryDeveloperResponse) GetProject

func (m *QueryDeveloperResponse) GetProject() *Project

func (*QueryDeveloperResponse) Marshal

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

func (*QueryDeveloperResponse) MarshalTo

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

func (*QueryDeveloperResponse) MarshalToSizedBuffer

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

func (*QueryDeveloperResponse) ProtoMessage

func (*QueryDeveloperResponse) ProtoMessage()

func (*QueryDeveloperResponse) Reset

func (m *QueryDeveloperResponse) Reset()

func (*QueryDeveloperResponse) Size

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

func (*QueryDeveloperResponse) String

func (m *QueryDeveloperResponse) String() string

func (*QueryDeveloperResponse) Unmarshal

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

func (*QueryDeveloperResponse) XXX_DiscardUnknown

func (m *QueryDeveloperResponse) XXX_DiscardUnknown()

func (*QueryDeveloperResponse) XXX_Marshal

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

func (*QueryDeveloperResponse) XXX_Merge

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

func (*QueryDeveloperResponse) XXX_Size

func (m *QueryDeveloperResponse) XXX_Size() int

func (*QueryDeveloperResponse) XXX_Unmarshal

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

type QueryInfoRequest

type QueryInfoRequest struct {
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
}

func (*QueryInfoRequest) Descriptor

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

func (*QueryInfoRequest) GetProject

func (m *QueryInfoRequest) GetProject() string

func (*QueryInfoRequest) Marshal

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

func (*QueryInfoRequest) MarshalTo

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

func (*QueryInfoRequest) MarshalToSizedBuffer

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

func (*QueryInfoRequest) ProtoMessage

func (*QueryInfoRequest) ProtoMessage()

func (*QueryInfoRequest) Reset

func (m *QueryInfoRequest) Reset()

func (*QueryInfoRequest) Size

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

func (*QueryInfoRequest) String

func (m *QueryInfoRequest) String() string

func (*QueryInfoRequest) Unmarshal

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

func (*QueryInfoRequest) XXX_DiscardUnknown

func (m *QueryInfoRequest) XXX_DiscardUnknown()

func (*QueryInfoRequest) XXX_Marshal

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

func (*QueryInfoRequest) XXX_Merge

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

func (*QueryInfoRequest) XXX_Size

func (m *QueryInfoRequest) XXX_Size() int

func (*QueryInfoRequest) XXX_Unmarshal

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

type QueryInfoResponse

type QueryInfoResponse struct {
	Project        *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	PendingProject *Project `protobuf:"bytes,2,opt,name=pending_project,json=pendingProject,proto3" json:"pending_project,omitempty"`
}

func (*QueryInfoResponse) Descriptor

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

func (*QueryInfoResponse) GetPendingProject

func (m *QueryInfoResponse) GetPendingProject() *Project

func (*QueryInfoResponse) GetProject

func (m *QueryInfoResponse) GetProject() *Project

func (*QueryInfoResponse) Marshal

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

func (*QueryInfoResponse) MarshalTo

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

func (*QueryInfoResponse) MarshalToSizedBuffer

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

func (*QueryInfoResponse) ProtoMessage

func (*QueryInfoResponse) ProtoMessage()

func (*QueryInfoResponse) Reset

func (m *QueryInfoResponse) Reset()

func (*QueryInfoResponse) Size

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

func (*QueryInfoResponse) String

func (m *QueryInfoResponse) String() string

func (*QueryInfoResponse) Unmarshal

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

func (*QueryInfoResponse) XXX_DiscardUnknown

func (m *QueryInfoResponse) XXX_DiscardUnknown()

func (*QueryInfoResponse) XXX_Marshal

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

func (*QueryInfoResponse) XXX_Merge

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

func (*QueryInfoResponse) XXX_Size

func (m *QueryInfoResponse) XXX_Size() int

func (*QueryInfoResponse) XXX_Unmarshal

func (m *QueryInfoResponse) 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 ShowProject items.
	Info(context.Context, *QueryInfoRequest) (*QueryInfoResponse, error)
	// Queries a list of ShowDevelopersProject items.
	Developer(context.Context, *QueryDeveloperRequest) (*QueryDeveloperResponse, error)
}

QueryServer is the server API for Query service.

type SetPolicyEnum

type SetPolicyEnum int

set policy enum

const (
	SET_ADMIN_POLICY        SetPolicyEnum = 1
	SET_SUBSCRIPTION_POLICY SetPolicyEnum = 2
)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddKeys

func (*UnimplementedMsgServer) DelKeys

func (*UnimplementedMsgServer) SetPolicy

func (*UnimplementedMsgServer) SetSubscriptionPolicy

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Developer

func (*UnimplementedQueryServer) Info

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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