Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckChainIdExistsInPolicies(chainID string, policies []*Policy) bool
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func ProjectIndex(subscriptionAddress string, projectName string) string
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 ValidateProjectNameAndDescription(name string, description string) bool
- func VerifyTotalCuUsage(policies []*Policy, cuUsage uint64) bool
- type ChainPolicy
- func (*ChainPolicy) Descriptor() ([]byte, []int)
- func (this *ChainPolicy) Equal(that interface{}) bool
- func (m *ChainPolicy) GetApis() []string
- func (m *ChainPolicy) GetChainId() string
- func (m *ChainPolicy) Marshal() (dAtA []byte, err error)
- func (m *ChainPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainPolicy) ProtoMessage()
- func (m *ChainPolicy) Reset()
- func (m *ChainPolicy) Size() (n int)
- func (m *ChainPolicy) String() string
- func (m *ChainPolicy) Unmarshal(dAtA []byte) error
- func (m *ChainPolicy) XXX_DiscardUnknown()
- func (m *ChainPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainPolicy) XXX_Merge(src proto.Message)
- func (m *ChainPolicy) XXX_Size() int
- func (m *ChainPolicy) XXX_Unmarshal(b []byte) error
- type EpochStorageKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAddProjectKeys
- func (*MsgAddProjectKeys) Descriptor() ([]byte, []int)
- func (m *MsgAddProjectKeys) GetCreator() string
- func (m *MsgAddProjectKeys) GetProject() string
- func (m *MsgAddProjectKeys) GetProjectKeys() []ProjectKey
- func (msg *MsgAddProjectKeys) GetSignBytes() []byte
- func (msg *MsgAddProjectKeys) GetSigners() []sdk.AccAddress
- func (m *MsgAddProjectKeys) Marshal() (dAtA []byte, err error)
- func (m *MsgAddProjectKeys) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddProjectKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddProjectKeys) ProtoMessage()
- func (m *MsgAddProjectKeys) Reset()
- func (msg *MsgAddProjectKeys) Route() string
- func (m *MsgAddProjectKeys) Size() (n int)
- func (m *MsgAddProjectKeys) String() string
- func (msg *MsgAddProjectKeys) Type() string
- func (m *MsgAddProjectKeys) Unmarshal(dAtA []byte) error
- func (msg *MsgAddProjectKeys) ValidateBasic() error
- func (m *MsgAddProjectKeys) XXX_DiscardUnknown()
- func (m *MsgAddProjectKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddProjectKeys) XXX_Merge(src proto.Message)
- func (m *MsgAddProjectKeys) XXX_Size() int
- func (m *MsgAddProjectKeys) XXX_Unmarshal(b []byte) error
- type MsgAddProjectKeysResponse
- func (*MsgAddProjectKeysResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddProjectKeysResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddProjectKeysResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddProjectKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddProjectKeysResponse) ProtoMessage()
- func (m *MsgAddProjectKeysResponse) Reset()
- func (m *MsgAddProjectKeysResponse) Size() (n int)
- func (m *MsgAddProjectKeysResponse) String() string
- func (m *MsgAddProjectKeysResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddProjectKeysResponse) XXX_DiscardUnknown()
- func (m *MsgAddProjectKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddProjectKeysResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddProjectKeysResponse) XXX_Size() int
- func (m *MsgAddProjectKeysResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgSetAdminPolicy
- func (*MsgSetAdminPolicy) Descriptor() ([]byte, []int)
- func (m *MsgSetAdminPolicy) GetCreator() string
- func (m *MsgSetAdminPolicy) GetPolicy() Policy
- func (m *MsgSetAdminPolicy) GetProject() string
- func (msg *MsgSetAdminPolicy) GetSignBytes() []byte
- func (msg *MsgSetAdminPolicy) GetSigners() []sdk.AccAddress
- func (m *MsgSetAdminPolicy) Marshal() (dAtA []byte, err error)
- func (m *MsgSetAdminPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetAdminPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetAdminPolicy) ProtoMessage()
- func (m *MsgSetAdminPolicy) Reset()
- func (msg *MsgSetAdminPolicy) Route() string
- func (m *MsgSetAdminPolicy) Size() (n int)
- func (m *MsgSetAdminPolicy) String() string
- func (msg *MsgSetAdminPolicy) Type() string
- func (m *MsgSetAdminPolicy) Unmarshal(dAtA []byte) error
- func (msg *MsgSetAdminPolicy) ValidateBasic() error
- func (m *MsgSetAdminPolicy) XXX_DiscardUnknown()
- func (m *MsgSetAdminPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetAdminPolicy) XXX_Merge(src proto.Message)
- func (m *MsgSetAdminPolicy) XXX_Size() int
- func (m *MsgSetAdminPolicy) XXX_Unmarshal(b []byte) error
- type MsgSetAdminPolicyResponse
- func (*MsgSetAdminPolicyResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetAdminPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetAdminPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetAdminPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetAdminPolicyResponse) ProtoMessage()
- func (m *MsgSetAdminPolicyResponse) Reset()
- func (m *MsgSetAdminPolicyResponse) Size() (n int)
- func (m *MsgSetAdminPolicyResponse) String() string
- func (m *MsgSetAdminPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetAdminPolicyResponse) XXX_DiscardUnknown()
- func (m *MsgSetAdminPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetAdminPolicyResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetAdminPolicyResponse) XXX_Size() int
- func (m *MsgSetAdminPolicyResponse) XXX_Unmarshal(b []byte) error
- type MsgSetSubscriptionPolicy
- func (*MsgSetSubscriptionPolicy) Descriptor() ([]byte, []int)
- func (m *MsgSetSubscriptionPolicy) GetCreator() string
- func (m *MsgSetSubscriptionPolicy) GetPolicy() Policy
- func (m *MsgSetSubscriptionPolicy) GetProjects() []string
- func (msg *MsgSetSubscriptionPolicy) GetSignBytes() []byte
- func (msg *MsgSetSubscriptionPolicy) GetSigners() []sdk.AccAddress
- func (m *MsgSetSubscriptionPolicy) Marshal() (dAtA []byte, err error)
- func (m *MsgSetSubscriptionPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetSubscriptionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetSubscriptionPolicy) ProtoMessage()
- func (m *MsgSetSubscriptionPolicy) Reset()
- func (msg *MsgSetSubscriptionPolicy) Route() string
- func (m *MsgSetSubscriptionPolicy) Size() (n int)
- func (m *MsgSetSubscriptionPolicy) String() string
- func (msg *MsgSetSubscriptionPolicy) Type() string
- func (m *MsgSetSubscriptionPolicy) Unmarshal(dAtA []byte) error
- func (msg *MsgSetSubscriptionPolicy) ValidateBasic() error
- func (m *MsgSetSubscriptionPolicy) XXX_DiscardUnknown()
- func (m *MsgSetSubscriptionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetSubscriptionPolicy) XXX_Merge(src proto.Message)
- func (m *MsgSetSubscriptionPolicy) XXX_Size() int
- func (m *MsgSetSubscriptionPolicy) XXX_Unmarshal(b []byte) error
- type MsgSetSubscriptionPolicyResponse
- func (*MsgSetSubscriptionPolicyResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetSubscriptionPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetSubscriptionPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetSubscriptionPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetSubscriptionPolicyResponse) ProtoMessage()
- func (m *MsgSetSubscriptionPolicyResponse) Reset()
- func (m *MsgSetSubscriptionPolicyResponse) Size() (n int)
- func (m *MsgSetSubscriptionPolicyResponse) String() string
- func (m *MsgSetSubscriptionPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetSubscriptionPolicyResponse) XXX_DiscardUnknown()
- func (m *MsgSetSubscriptionPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetSubscriptionPolicyResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetSubscriptionPolicyResponse) XXX_Size() int
- func (m *MsgSetSubscriptionPolicyResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Policy
- func (policy *Policy) ContainsChainID(chainID string) bool
- func (*Policy) Descriptor() ([]byte, []int)
- func (this *Policy) Equal(that interface{}) bool
- func (m *Policy) GetChainPolicies() []ChainPolicy
- func (m *Policy) GetEpochCuLimit() uint64
- func (m *Policy) GetGeolocationProfile() uint64
- func (m *Policy) GetMaxProvidersToPair() uint64
- func (m *Policy) GetTotalCuLimit() uint64
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (policy Policy) ValidateBasicPolicy() error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type Project
- func (project *Project) AppendKey(keyToAdd ProjectKey)
- func (*Project) Descriptor() ([]byte, []int)
- func (this *Project) Equal(that interface{}) bool
- func (m *Project) GetAdminPolicy() *Policy
- func (m *Project) GetDescription() string
- func (m *Project) GetEnabled() bool
- func (m *Project) GetIndex() string
- func (project *Project) GetKey(projectKey string) ProjectKey
- func (m *Project) GetProjectKeys() []ProjectKey
- func (m *Project) GetSubscription() string
- func (m *Project) GetSubscriptionPolicy() *Policy
- func (m *Project) GetUsedCu() uint64
- func (project *Project) HasKeyType(projectKey string, keyTypeToCheck ProjectKey_KEY_TYPE) bool
- func (project *Project) IsAdminKey(projectKey string) bool
- func (m *Project) Marshal() (dAtA []byte, err error)
- func (m *Project) MarshalTo(dAtA []byte) (int, error)
- func (m *Project) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Project) ProtoMessage()
- func (m *Project) Reset()
- func (m *Project) Size() (n int)
- func (m *Project) String() string
- func (m *Project) Unmarshal(dAtA []byte) error
- func (m *Project) XXX_DiscardUnknown()
- func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Project) XXX_Merge(src proto.Message)
- func (m *Project) XXX_Size() int
- func (m *Project) XXX_Unmarshal(b []byte) error
- type ProjectData
- func (*ProjectData) Descriptor() ([]byte, []int)
- func (this *ProjectData) Equal(that interface{}) bool
- func (m *ProjectData) GetDescription() string
- func (m *ProjectData) GetEnabled() bool
- func (m *ProjectData) GetName() string
- func (m *ProjectData) GetPolicy() *Policy
- func (m *ProjectData) GetProjectKeys() []ProjectKey
- func (m *ProjectData) Marshal() (dAtA []byte, err error)
- func (m *ProjectData) MarshalTo(dAtA []byte) (int, error)
- func (m *ProjectData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProjectData) ProtoMessage()
- func (m *ProjectData) Reset()
- func (m *ProjectData) Size() (n int)
- func (m *ProjectData) String() string
- func (m *ProjectData) Unmarshal(dAtA []byte) error
- func (m *ProjectData) XXX_DiscardUnknown()
- func (m *ProjectData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectData) XXX_Merge(src proto.Message)
- func (m *ProjectData) XXX_Size() int
- func (m *ProjectData) XXX_Unmarshal(b []byte) error
- type ProjectKey
- func (projectKey *ProjectKey) AppendKeyType(typesToAdd []ProjectKey_KEY_TYPE)
- func (*ProjectKey) Descriptor() ([]byte, []int)
- func (this *ProjectKey) Equal(that interface{}) bool
- func (m *ProjectKey) GetKey() string
- func (m *ProjectKey) GetTypes() []ProjectKey_KEY_TYPE
- func (m *ProjectKey) GetVrfpk() string
- func (projectKey ProjectKey) IsKeyType(keyTypeToCheck ProjectKey_KEY_TYPE) bool
- func (m *ProjectKey) Marshal() (dAtA []byte, err error)
- func (m *ProjectKey) MarshalTo(dAtA []byte) (int, error)
- func (m *ProjectKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProjectKey) ProtoMessage()
- func (m *ProjectKey) Reset()
- func (m *ProjectKey) Size() (n int)
- func (m *ProjectKey) String() string
- func (m *ProjectKey) Unmarshal(dAtA []byte) error
- func (m *ProjectKey) XXX_DiscardUnknown()
- func (m *ProjectKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectKey) XXX_Merge(src proto.Message)
- func (m *ProjectKey) XXX_Size() int
- func (m *ProjectKey) XXX_Unmarshal(b []byte) error
- type ProjectKey_KEY_TYPE
- type ProtoDeveloperData
- func (*ProtoDeveloperData) Descriptor() ([]byte, []int)
- func (this *ProtoDeveloperData) Equal(that interface{}) bool
- func (m *ProtoDeveloperData) GetProjectID() string
- func (m *ProtoDeveloperData) GetVrfpk() string
- func (m *ProtoDeveloperData) Marshal() (dAtA []byte, err error)
- func (m *ProtoDeveloperData) MarshalTo(dAtA []byte) (int, error)
- func (m *ProtoDeveloperData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProtoDeveloperData) ProtoMessage()
- func (m *ProtoDeveloperData) Reset()
- func (m *ProtoDeveloperData) Size() (n int)
- func (m *ProtoDeveloperData) String() string
- func (m *ProtoDeveloperData) Unmarshal(dAtA []byte) error
- func (m *ProtoDeveloperData) XXX_DiscardUnknown()
- func (m *ProtoDeveloperData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoDeveloperData) XXX_Merge(src proto.Message)
- func (m *ProtoDeveloperData) XXX_Size() int
- func (m *ProtoDeveloperData) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDeveloperRequest
- func (*QueryDeveloperRequest) Descriptor() ([]byte, []int)
- func (m *QueryDeveloperRequest) GetDeveloper() string
- func (m *QueryDeveloperRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDeveloperRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeveloperRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeveloperRequest) ProtoMessage()
- func (m *QueryDeveloperRequest) Reset()
- func (m *QueryDeveloperRequest) Size() (n int)
- func (m *QueryDeveloperRequest) String() string
- func (m *QueryDeveloperRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDeveloperRequest) XXX_DiscardUnknown()
- func (m *QueryDeveloperRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeveloperRequest) XXX_Merge(src proto.Message)
- func (m *QueryDeveloperRequest) XXX_Size() int
- func (m *QueryDeveloperRequest) XXX_Unmarshal(b []byte) error
- type QueryDeveloperResponse
- func (*QueryDeveloperResponse) Descriptor() ([]byte, []int)
- func (m *QueryDeveloperResponse) GetProject() *Project
- func (m *QueryDeveloperResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDeveloperResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeveloperResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeveloperResponse) ProtoMessage()
- func (m *QueryDeveloperResponse) Reset()
- func (m *QueryDeveloperResponse) Size() (n int)
- func (m *QueryDeveloperResponse) String() string
- func (m *QueryDeveloperResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDeveloperResponse) XXX_DiscardUnknown()
- func (m *QueryDeveloperResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeveloperResponse) XXX_Merge(src proto.Message)
- func (m *QueryDeveloperResponse) XXX_Size() int
- func (m *QueryDeveloperResponse) XXX_Unmarshal(b []byte) error
- type QueryInfoRequest
- func (*QueryInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryInfoRequest) GetProject() string
- func (m *QueryInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInfoRequest) ProtoMessage()
- func (m *QueryInfoRequest) Reset()
- func (m *QueryInfoRequest) Size() (n int)
- func (m *QueryInfoRequest) String() string
- func (m *QueryInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInfoRequest) XXX_DiscardUnknown()
- func (m *QueryInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryInfoRequest) XXX_Size() int
- func (m *QueryInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryInfoResponse
- func (*QueryInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryInfoResponse) GetProject() *Project
- func (m *QueryInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInfoResponse) ProtoMessage()
- func (m *QueryInfoResponse) Reset()
- func (m *QueryInfoResponse) Size() (n int)
- func (m *QueryInfoResponse) String() string
- func (m *QueryInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInfoResponse) XXX_DiscardUnknown()
- func (m *QueryInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryInfoResponse) XXX_Size() int
- func (m *QueryInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SetPolicyEnum
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddProjectKeys(ctx context.Context, req *MsgAddProjectKeys) (*MsgAddProjectKeysResponse, error)
- func (*UnimplementedMsgServer) SetAdminPolicy(ctx context.Context, req *MsgSetAdminPolicy) (*MsgSetAdminPolicyResponse, error)
- func (*UnimplementedMsgServer) SetSubscriptionPolicy(ctx context.Context, req *MsgSetSubscriptionPolicy) (*MsgSetSubscriptionPolicyResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Developer(ctx context.Context, req *QueryDeveloperRequest) (*QueryDeveloperResponse, error)
- func (*UnimplementedQueryServer) Info(ctx context.Context, req *QueryInfoRequest) (*QueryInfoResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
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" )
const ( ADMIN_PROJECT_NAME = "admin" ADMIN_PROJECT_DESCRIPTION = "default admin project" )
const ( MAX_PROJECT_NAME_LEN = 50 MAX_PROJECT_DESCRIPTION_LEN = 150 )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgAddProjectKeys = "add_project_keys"
const TypeMsgSetAdminPolicy = "set_admin_policy"
const TypeMsgSetSubscriptionPolicy = "set_subscription_policy"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidPolicyCuFields = sdkerrors.Register(ModuleName, 1099, "CU per epoch field can't be larger than Total CU field") ErrInvalidPolicyMaxProvidersToPair = sdkerrors.Register(ModuleName, 1101, "MaxProvidersToPair cannot be less than 2") ErrInvalidPolicy = sdkerrors.Register(ModuleName, 1102, "Invalid policy") ErrPolicyBasicValidation = sdkerrors.Register(ModuleName, 1100, "invalid policy") ErrInvalidKeyType = sdkerrors.Register(ModuleName, 1103, "invalid project key type") )
x/projects module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProject = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProject = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ProjectKey_KEY_TYPE_name = map[int32]string{
0: "NONE",
1: "ADMIN",
2: "DEVELOPER",
}
var ProjectKey_KEY_TYPE_value = map[string]int32{
"NONE": 0,
"ADMIN": 1,
"DEVELOPER": 2,
}
Functions ¶
func CheckChainIdExistsInPolicies ¶ added in v0.10.0
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func ProjectIndex ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 ValidateProjectNameAndDescription ¶ added in v0.10.0
func VerifyTotalCuUsage ¶ added in v0.10.0
Types ¶
type ChainPolicy ¶ added in v0.7.0
type ChainPolicy struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" mapstructure:"chain_id"` Apis []string `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis,omitempty" mapstructure:"apis"` }
func (*ChainPolicy) Descriptor ¶ added in v0.7.0
func (*ChainPolicy) Descriptor() ([]byte, []int)
func (*ChainPolicy) Equal ¶ added in v0.10.0
func (this *ChainPolicy) Equal(that interface{}) bool
func (*ChainPolicy) GetApis ¶ added in v0.7.0
func (m *ChainPolicy) GetApis() []string
func (*ChainPolicy) GetChainId ¶ added in v0.7.0
func (m *ChainPolicy) GetChainId() string
func (*ChainPolicy) Marshal ¶ added in v0.7.0
func (m *ChainPolicy) Marshal() (dAtA []byte, err error)
func (*ChainPolicy) MarshalTo ¶ added in v0.7.0
func (m *ChainPolicy) MarshalTo(dAtA []byte) (int, error)
func (*ChainPolicy) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *ChainPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChainPolicy) ProtoMessage ¶ added in v0.7.0
func (*ChainPolicy) ProtoMessage()
func (*ChainPolicy) Reset ¶ added in v0.7.0
func (m *ChainPolicy) Reset()
func (*ChainPolicy) Size ¶ added in v0.7.0
func (m *ChainPolicy) Size() (n int)
func (*ChainPolicy) String ¶ added in v0.7.0
func (m *ChainPolicy) String() string
func (*ChainPolicy) Unmarshal ¶ added in v0.7.0
func (m *ChainPolicy) Unmarshal(dAtA []byte) error
func (*ChainPolicy) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *ChainPolicy) XXX_DiscardUnknown()
func (*ChainPolicy) XXX_Marshal ¶ added in v0.7.0
func (m *ChainPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainPolicy) XXX_Merge ¶ added in v0.7.0
func (m *ChainPolicy) XXX_Merge(src proto.Message)
func (*ChainPolicy) XXX_Size ¶ added in v0.7.0
func (m *ChainPolicy) XXX_Size() int
func (*ChainPolicy) XXX_Unmarshal ¶ added in v0.7.0
func (m *ChainPolicy) XXX_Unmarshal(b []byte) error
type EpochStorageKeeper ¶
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
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) 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) 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 MsgAddProjectKeys ¶ added in v0.7.0
type MsgAddProjectKeys 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 NewMsgAddProjectKeys ¶ added in v0.7.0
func NewMsgAddProjectKeys(creator string, projectID string, projectKeys []ProjectKey) *MsgAddProjectKeys
func (*MsgAddProjectKeys) Descriptor ¶ added in v0.7.0
func (*MsgAddProjectKeys) Descriptor() ([]byte, []int)
func (*MsgAddProjectKeys) GetCreator ¶ added in v0.7.0
func (m *MsgAddProjectKeys) GetCreator() string
func (*MsgAddProjectKeys) GetProject ¶ added in v0.7.0
func (m *MsgAddProjectKeys) GetProject() string
func (*MsgAddProjectKeys) GetProjectKeys ¶ added in v0.7.0
func (m *MsgAddProjectKeys) GetProjectKeys() []ProjectKey
func (*MsgAddProjectKeys) GetSignBytes ¶ added in v0.7.0
func (msg *MsgAddProjectKeys) GetSignBytes() []byte
func (*MsgAddProjectKeys) GetSigners ¶ added in v0.7.0
func (msg *MsgAddProjectKeys) GetSigners() []sdk.AccAddress
func (*MsgAddProjectKeys) Marshal ¶ added in v0.7.0
func (m *MsgAddProjectKeys) Marshal() (dAtA []byte, err error)
func (*MsgAddProjectKeys) MarshalTo ¶ added in v0.7.0
func (m *MsgAddProjectKeys) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddProjectKeys) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *MsgAddProjectKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddProjectKeys) ProtoMessage ¶ added in v0.7.0
func (*MsgAddProjectKeys) ProtoMessage()
func (*MsgAddProjectKeys) Reset ¶ added in v0.7.0
func (m *MsgAddProjectKeys) Reset()
func (*MsgAddProjectKeys) Route ¶ added in v0.7.0
func (msg *MsgAddProjectKeys) Route() string
func (*MsgAddProjectKeys) Size ¶ added in v0.7.0
func (m *MsgAddProjectKeys) Size() (n int)
func (*MsgAddProjectKeys) String ¶ added in v0.7.0
func (m *MsgAddProjectKeys) String() string
func (*MsgAddProjectKeys) Type ¶ added in v0.7.0
func (msg *MsgAddProjectKeys) Type() string
func (*MsgAddProjectKeys) Unmarshal ¶ added in v0.7.0
func (m *MsgAddProjectKeys) Unmarshal(dAtA []byte) error
func (*MsgAddProjectKeys) ValidateBasic ¶ added in v0.7.0
func (msg *MsgAddProjectKeys) ValidateBasic() error
func (*MsgAddProjectKeys) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *MsgAddProjectKeys) XXX_DiscardUnknown()
func (*MsgAddProjectKeys) XXX_Marshal ¶ added in v0.7.0
func (m *MsgAddProjectKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddProjectKeys) XXX_Merge ¶ added in v0.7.0
func (m *MsgAddProjectKeys) XXX_Merge(src proto.Message)
func (*MsgAddProjectKeys) XXX_Size ¶ added in v0.7.0
func (m *MsgAddProjectKeys) XXX_Size() int
func (*MsgAddProjectKeys) XXX_Unmarshal ¶ added in v0.7.0
func (m *MsgAddProjectKeys) XXX_Unmarshal(b []byte) error
type MsgAddProjectKeysResponse ¶ added in v0.7.0
type MsgAddProjectKeysResponse struct { }
func (*MsgAddProjectKeysResponse) Descriptor ¶ added in v0.7.0
func (*MsgAddProjectKeysResponse) Descriptor() ([]byte, []int)
func (*MsgAddProjectKeysResponse) Marshal ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddProjectKeysResponse) MarshalTo ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddProjectKeysResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddProjectKeysResponse) ProtoMessage ¶ added in v0.7.0
func (*MsgAddProjectKeysResponse) ProtoMessage()
func (*MsgAddProjectKeysResponse) Reset ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) Reset()
func (*MsgAddProjectKeysResponse) Size ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) Size() (n int)
func (*MsgAddProjectKeysResponse) String ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) String() string
func (*MsgAddProjectKeysResponse) Unmarshal ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) Unmarshal(dAtA []byte) error
func (*MsgAddProjectKeysResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) XXX_DiscardUnknown()
func (*MsgAddProjectKeysResponse) XXX_Marshal ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddProjectKeysResponse) XXX_Merge ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) XXX_Merge(src proto.Message)
func (*MsgAddProjectKeysResponse) XXX_Size ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) XXX_Size() int
func (*MsgAddProjectKeysResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *MsgAddProjectKeysResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddProjectKeys(ctx context.Context, in *MsgAddProjectKeys, opts ...grpc.CallOption) (*MsgAddProjectKeysResponse, error) SetAdminPolicy(ctx context.Context, in *MsgSetAdminPolicy, opts ...grpc.CallOption) (*MsgSetAdminPolicyResponse, 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 MsgServer ¶
type MsgServer interface { AddProjectKeys(context.Context, *MsgAddProjectKeys) (*MsgAddProjectKeysResponse, error) SetAdminPolicy(context.Context, *MsgSetAdminPolicy) (*MsgSetAdminPolicyResponse, error) SetSubscriptionPolicy(context.Context, *MsgSetSubscriptionPolicy) (*MsgSetSubscriptionPolicyResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetAdminPolicy ¶ added in v0.10.0
type MsgSetAdminPolicy 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 Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy"` }
func NewMsgSetAdminPolicy ¶ added in v0.10.0
func NewMsgSetAdminPolicy(creator string, project string, policy Policy) *MsgSetAdminPolicy
func (*MsgSetAdminPolicy) Descriptor ¶ added in v0.10.0
func (*MsgSetAdminPolicy) Descriptor() ([]byte, []int)
func (*MsgSetAdminPolicy) GetCreator ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) GetCreator() string
func (*MsgSetAdminPolicy) GetPolicy ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) GetPolicy() Policy
func (*MsgSetAdminPolicy) GetProject ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) GetProject() string
func (*MsgSetAdminPolicy) GetSignBytes ¶ added in v0.10.0
func (msg *MsgSetAdminPolicy) GetSignBytes() []byte
func (*MsgSetAdminPolicy) GetSigners ¶ added in v0.10.0
func (msg *MsgSetAdminPolicy) GetSigners() []sdk.AccAddress
func (*MsgSetAdminPolicy) Marshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) Marshal() (dAtA []byte, err error)
func (*MsgSetAdminPolicy) MarshalTo ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetAdminPolicy) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetAdminPolicy) ProtoMessage ¶ added in v0.10.0
func (*MsgSetAdminPolicy) ProtoMessage()
func (*MsgSetAdminPolicy) Reset ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) Reset()
func (*MsgSetAdminPolicy) Route ¶ added in v0.10.0
func (msg *MsgSetAdminPolicy) Route() string
func (*MsgSetAdminPolicy) Size ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) Size() (n int)
func (*MsgSetAdminPolicy) String ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) String() string
func (*MsgSetAdminPolicy) Type ¶ added in v0.10.0
func (msg *MsgSetAdminPolicy) Type() string
func (*MsgSetAdminPolicy) Unmarshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) Unmarshal(dAtA []byte) error
func (*MsgSetAdminPolicy) ValidateBasic ¶ added in v0.10.0
func (msg *MsgSetAdminPolicy) ValidateBasic() error
func (*MsgSetAdminPolicy) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) XXX_DiscardUnknown()
func (*MsgSetAdminPolicy) XXX_Marshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetAdminPolicy) XXX_Merge ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) XXX_Merge(src proto.Message)
func (*MsgSetAdminPolicy) XXX_Size ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) XXX_Size() int
func (*MsgSetAdminPolicy) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicy) XXX_Unmarshal(b []byte) error
type MsgSetAdminPolicyResponse ¶ added in v0.10.0
type MsgSetAdminPolicyResponse struct { }
func (*MsgSetAdminPolicyResponse) Descriptor ¶ added in v0.10.0
func (*MsgSetAdminPolicyResponse) Descriptor() ([]byte, []int)
func (*MsgSetAdminPolicyResponse) Marshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetAdminPolicyResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetAdminPolicyResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetAdminPolicyResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgSetAdminPolicyResponse) ProtoMessage()
func (*MsgSetAdminPolicyResponse) Reset ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) Reset()
func (*MsgSetAdminPolicyResponse) Size ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) Size() (n int)
func (*MsgSetAdminPolicyResponse) String ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) String() string
func (*MsgSetAdminPolicyResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) Unmarshal(dAtA []byte) error
func (*MsgSetAdminPolicyResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) XXX_DiscardUnknown()
func (*MsgSetAdminPolicyResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetAdminPolicyResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) XXX_Merge(src proto.Message)
func (*MsgSetAdminPolicyResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) XXX_Size() int
func (*MsgSetAdminPolicyResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgSetAdminPolicyResponse) 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 Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy"` }
func NewMsgSetSubscriptionPolicy ¶
func NewMsgSetSubscriptionPolicy(creator string, projects []string, policy 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() 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 (m *MsgSetSubscriptionPolicyResponse) Reset()
func (*MsgSetSubscriptionPolicyResponse) Size ¶
func (m *MsgSetSubscriptionPolicyResponse) Size() (n int)
func (*MsgSetSubscriptionPolicyResponse) String ¶
func (m *MsgSetSubscriptionPolicyResponse) String() 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 (m *MsgSetSubscriptionPolicyResponse) XXX_Merge(src proto.Message)
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 (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Policy ¶ added in v0.7.0
type Policy struct { ChainPolicies []ChainPolicy `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies" mapstructure:"chain_policies"` GeolocationProfile uint64 `` /* 141-byte string literal not displayed */ TotalCuLimit uint64 `protobuf:"varint,3,opt,name=total_cu_limit,json=totalCuLimit,proto3" json:"total_cu_limit" mapstructure:"total_cu_limit"` EpochCuLimit uint64 `protobuf:"varint,4,opt,name=epoch_cu_limit,json=epochCuLimit,proto3" json:"epoch_cu_limit" mapstructure:"epoch_cu_limit"` MaxProvidersToPair uint64 `` /* 147-byte string literal not displayed */ }
protobuf expected in YAML format: used "moretags" to simplify parsing
func (*Policy) ContainsChainID ¶ added in v0.8.1
func (*Policy) Descriptor ¶ added in v0.7.0
func (*Policy) GetChainPolicies ¶ added in v0.7.0
func (m *Policy) GetChainPolicies() []ChainPolicy
func (*Policy) GetEpochCuLimit ¶ added in v0.7.0
func (*Policy) GetGeolocationProfile ¶ added in v0.7.0
func (*Policy) GetMaxProvidersToPair ¶ added in v0.8.1
func (*Policy) GetTotalCuLimit ¶ added in v0.7.0
func (*Policy) MarshalToSizedBuffer ¶ added in v0.7.0
func (*Policy) ProtoMessage ¶ added in v0.7.0
func (*Policy) ProtoMessage()
func (Policy) ValidateBasicPolicy ¶ added in v0.10.0
func (*Policy) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶ added in v0.7.0
func (*Policy) XXX_Unmarshal ¶ added in v0.7.0
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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,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 *Policy `protobuf:"bytes,6,opt,name=admin_policy,json=adminPolicy,proto3" json:"admin_policy,omitempty"` UsedCu uint64 `protobuf:"varint,7,opt,name=used_cu,json=usedCu,proto3" json:"used_cu,omitempty"` SubscriptionPolicy *Policy `protobuf:"bytes,8,opt,name=subscription_policy,json=subscriptionPolicy,proto3" json:"subscription_policy,omitempty"` }
func NewProject ¶
func (*Project) AppendKey ¶
func (project *Project) AppendKey(keyToAdd ProjectKey)
func (*Project) Descriptor ¶
func (*Project) GetAdminPolicy ¶
func (*Project) GetDescription ¶ added in v0.7.0
func (*Project) GetEnabled ¶
func (*Project) GetKey ¶
func (project *Project) GetKey(projectKey string) ProjectKey
func (*Project) GetProjectKeys ¶
func (m *Project) GetProjectKeys() []ProjectKey
func (*Project) GetSubscription ¶
func (*Project) GetSubscriptionPolicy ¶
func (*Project) HasKeyType ¶ added in v0.7.0
func (project *Project) HasKeyType(projectKey string, keyTypeToCheck ProjectKey_KEY_TYPE) bool
func (*Project) IsAdminKey ¶
func (*Project) MarshalToSizedBuffer ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) XXX_DiscardUnknown ¶
func (m *Project) XXX_DiscardUnknown()
func (*Project) XXX_Marshal ¶
func (*Project) XXX_Unmarshal ¶
type ProjectData ¶
type ProjectData 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"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` ProjectKeys []ProjectKey `protobuf:"bytes,4,rep,name=projectKeys,proto3" json:"projectKeys"` Policy *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) GetDescription ¶ added in v0.10.0
func (m *ProjectData) GetDescription() string
func (*ProjectData) GetEnabled ¶
func (m *ProjectData) GetEnabled() bool
func (*ProjectData) GetName ¶
func (m *ProjectData) GetName() string
func (*ProjectData) GetPolicy ¶
func (m *ProjectData) GetPolicy() *Policy
func (*ProjectData) GetProjectKeys ¶
func (m *ProjectData) GetProjectKeys() []ProjectKey
func (*ProjectData) Marshal ¶
func (m *ProjectData) Marshal() (dAtA []byte, err 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,omitempty"` Types []ProjectKey_KEY_TYPE `protobuf:"varint,2,rep,packed,name=types,proto3,enum=lavanet.lava.projects.ProjectKey_KEY_TYPE" json:"types,omitempty"` Vrfpk string `protobuf:"bytes,3,opt,name=vrfpk,proto3" json:"vrfpk,omitempty"` }
func (*ProjectKey) AppendKeyType ¶ added in v0.7.0
func (projectKey *ProjectKey) AppendKeyType(typesToAdd []ProjectKey_KEY_TYPE)
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) GetTypes ¶ added in v0.7.0
func (m *ProjectKey) GetTypes() []ProjectKey_KEY_TYPE
func (*ProjectKey) GetVrfpk ¶ added in v0.8.1
func (m *ProjectKey) GetVrfpk() string
func (ProjectKey) IsKeyType ¶ added in v0.7.0
func (projectKey ProjectKey) IsKeyType(keyTypeToCheck ProjectKey_KEY_TYPE) bool
func (*ProjectKey) Marshal ¶
func (m *ProjectKey) Marshal() (dAtA []byte, err 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) 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_KEY_TYPE ¶ added in v0.7.0
type ProjectKey_KEY_TYPE int32
const ( ProjectKey_NONE ProjectKey_KEY_TYPE = 0 ProjectKey_ADMIN ProjectKey_KEY_TYPE = 1 ProjectKey_DEVELOPER ProjectKey_KEY_TYPE = 2 )
func (ProjectKey_KEY_TYPE) EnumDescriptor ¶ added in v0.7.0
func (ProjectKey_KEY_TYPE) EnumDescriptor() ([]byte, []int)
func (ProjectKey_KEY_TYPE) String ¶ added in v0.7.0
func (x ProjectKey_KEY_TYPE) String() string
type ProtoDeveloperData ¶
type ProtoDeveloperData struct { ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"` Vrfpk string `protobuf:"bytes,2,opt,name=vrfpk,proto3" json:"vrfpk,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) GetVrfpk ¶ added in v0.8.1
func (m *ProtoDeveloperData) GetVrfpk() 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"`
}
func (*QueryDeveloperResponse) Descriptor ¶
func (*QueryDeveloperResponse) Descriptor() ([]byte, []int)
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) 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"`
}
func (*QueryInfoResponse) Descriptor ¶
func (*QueryInfoResponse) Descriptor() ([]byte, []int)
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) AddProjectKeys ¶ added in v0.7.0
func (*UnimplementedMsgServer) AddProjectKeys(ctx context.Context, req *MsgAddProjectKeys) (*MsgAddProjectKeysResponse, error)
func (*UnimplementedMsgServer) SetAdminPolicy ¶ added in v0.10.0
func (*UnimplementedMsgServer) SetAdminPolicy(ctx context.Context, req *MsgSetAdminPolicy) (*MsgSetAdminPolicyResponse, error)
func (*UnimplementedMsgServer) SetSubscriptionPolicy ¶
func (*UnimplementedMsgServer) SetSubscriptionPolicy(ctx context.Context, req *MsgSetSubscriptionPolicy) (*MsgSetSubscriptionPolicyResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Developer ¶
func (*UnimplementedQueryServer) Developer(ctx context.Context, req *QueryDeveloperRequest) (*QueryDeveloperResponse, error)
func (*UnimplementedQueryServer) Info ¶
func (*UnimplementedQueryServer) Info(ctx context.Context, req *QueryInfoRequest) (*QueryInfoResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)