types

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 27 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 projects fixation store
	DeveloperKeysFixationPrefix = "dev-fs"
)
View Source
const ADMIN_PROJECT_NAME = "admin"
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAddProjectKeys = "add_project_keys"
View Source
const TypeMsgSetProjectPolicy = "set_project_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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/projects module sentinel errors

View Source
var ProjectKey_KEY_TYPE_name = map[int32]string{
	0: "NONE",
	1: "ADMIN",
	2: "DEVELOPER",
}
View Source
var ProjectKey_KEY_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 string, 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)

Types

type AccountKeeper added in v0.7.0

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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

type BankKeeper added in v0.7.0

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

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"`
	Apis    []string `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis,omitempty"`
}

func (*ChainPolicy) Descriptor added in v0.7.0

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

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 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) 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 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)
	SetProjectPolicy(ctx context.Context, in *MsgSetProjectPolicy, opts ...grpc.CallOption) (*MsgSetProjectPolicyResponse, 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)
	SetProjectPolicy(context.Context, *MsgSetProjectPolicy) (*MsgSetProjectPolicyResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetProjectPolicy added in v0.7.0

type MsgSetProjectPolicy 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,omitempty"`
}

func NewMsgSetProjectPolicy added in v0.7.0

func NewMsgSetProjectPolicy(creator string) *MsgSetProjectPolicy

func (*MsgSetProjectPolicy) Descriptor added in v0.7.0

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

func (*MsgSetProjectPolicy) GetCreator added in v0.7.0

func (m *MsgSetProjectPolicy) GetCreator() string

func (*MsgSetProjectPolicy) GetPolicy added in v0.7.0

func (m *MsgSetProjectPolicy) GetPolicy() *Policy

func (*MsgSetProjectPolicy) GetProject added in v0.7.0

func (m *MsgSetProjectPolicy) GetProject() string

func (*MsgSetProjectPolicy) GetSignBytes added in v0.7.0

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

func (*MsgSetProjectPolicy) GetSigners added in v0.7.0

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

func (*MsgSetProjectPolicy) Marshal added in v0.7.0

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

func (*MsgSetProjectPolicy) MarshalTo added in v0.7.0

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

func (*MsgSetProjectPolicy) MarshalToSizedBuffer added in v0.7.0

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

func (*MsgSetProjectPolicy) ProtoMessage added in v0.7.0

func (*MsgSetProjectPolicy) ProtoMessage()

func (*MsgSetProjectPolicy) Reset added in v0.7.0

func (m *MsgSetProjectPolicy) Reset()

func (*MsgSetProjectPolicy) Route added in v0.7.0

func (msg *MsgSetProjectPolicy) Route() string

func (*MsgSetProjectPolicy) Size added in v0.7.0

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

func (*MsgSetProjectPolicy) String added in v0.7.0

func (m *MsgSetProjectPolicy) String() string

func (*MsgSetProjectPolicy) Type added in v0.7.0

func (msg *MsgSetProjectPolicy) Type() string

func (*MsgSetProjectPolicy) Unmarshal added in v0.7.0

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

func (*MsgSetProjectPolicy) ValidateBasic added in v0.7.0

func (msg *MsgSetProjectPolicy) ValidateBasic() error

func (*MsgSetProjectPolicy) XXX_DiscardUnknown added in v0.7.0

func (m *MsgSetProjectPolicy) XXX_DiscardUnknown()

func (*MsgSetProjectPolicy) XXX_Marshal added in v0.7.0

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

func (*MsgSetProjectPolicy) XXX_Merge added in v0.7.0

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

func (*MsgSetProjectPolicy) XXX_Size added in v0.7.0

func (m *MsgSetProjectPolicy) XXX_Size() int

func (*MsgSetProjectPolicy) XXX_Unmarshal added in v0.7.0

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

type MsgSetProjectPolicyResponse added in v0.7.0

type MsgSetProjectPolicyResponse struct {
}

func (*MsgSetProjectPolicyResponse) Descriptor added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) Marshal added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) MarshalTo added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) ProtoMessage added in v0.7.0

func (*MsgSetProjectPolicyResponse) ProtoMessage()

func (*MsgSetProjectPolicyResponse) Reset added in v0.7.0

func (m *MsgSetProjectPolicyResponse) Reset()

func (*MsgSetProjectPolicyResponse) Size added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) String added in v0.7.0

func (m *MsgSetProjectPolicyResponse) String() string

func (*MsgSetProjectPolicyResponse) Unmarshal added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) XXX_DiscardUnknown added in v0.7.0

func (m *MsgSetProjectPolicyResponse) XXX_DiscardUnknown()

func (*MsgSetProjectPolicyResponse) XXX_Marshal added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) XXX_Merge added in v0.7.0

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

func (*MsgSetProjectPolicyResponse) XXX_Size added in v0.7.0

func (m *MsgSetProjectPolicyResponse) XXX_Size() int

func (*MsgSetProjectPolicyResponse) XXX_Unmarshal added in v0.7.0

func (m *MsgSetProjectPolicyResponse) 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 Policy added in v0.7.0

type Policy struct {
	ChainPolicies      []ChainPolicy `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies"`
	GeolocationProfile uint64        `protobuf:"varint,2,opt,name=geolocation_profile,json=geolocationProfile,proto3" json:"geolocation_profile,omitempty"`
	TotalCuLimit       uint64        `protobuf:"varint,3,opt,name=total_cu_limit,json=totalCuLimit,proto3" json:"total_cu_limit,omitempty"`
	EpochCuLimit       uint64        `protobuf:"varint,4,opt,name=epoch_cu_limit,json=epochCuLimit,proto3" json:"epoch_cu_limit,omitempty"`
	MaxProvidersToPair uint64        `protobuf:"varint,5,opt,name=max_providers_to_pair,json=maxProvidersToPair,proto3" json:"max_providers_to_pair,omitempty"`
}

func (*Policy) ContainsChainID added in v0.8.1

func (policy *Policy) ContainsChainID(chainID string) bool

func (*Policy) Descriptor added in v0.7.0

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

func (*Policy) GetChainPolicies added in v0.7.0

func (m *Policy) GetChainPolicies() []ChainPolicy

func (*Policy) GetEpochCuLimit added in v0.7.0

func (m *Policy) GetEpochCuLimit() uint64

func (*Policy) GetGeolocationProfile added in v0.7.0

func (m *Policy) GetGeolocationProfile() uint64

func (*Policy) GetMaxProvidersToPair added in v0.8.1

func (m *Policy) GetMaxProvidersToPair() uint64

func (*Policy) GetTotalCuLimit added in v0.7.0

func (m *Policy) GetTotalCuLimit() uint64

func (*Policy) Marshal added in v0.7.0

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

func (*Policy) MarshalTo added in v0.7.0

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

func (*Policy) MarshalToSizedBuffer added in v0.7.0

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

func (*Policy) ProtoMessage added in v0.7.0

func (*Policy) ProtoMessage()

func (*Policy) Reset added in v0.7.0

func (m *Policy) Reset()

func (*Policy) Size added in v0.7.0

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

func (*Policy) String added in v0.7.0

func (m *Policy) String() string

func (*Policy) Unmarshal added in v0.7.0

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

func (*Policy) XXX_DiscardUnknown added in v0.7.0

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal added in v0.7.0

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

func (*Policy) XXX_Merge added in v0.7.0

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

func (*Policy) XXX_Size added in v0.7.0

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal added in v0.7.0

func (m *Policy) 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"`
	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"`
	Policy       Policy       `protobuf:"bytes,6,opt,name=policy,proto3" json:"policy"`
	UsedCu       uint64       `protobuf:"varint,7,opt,name=used_cu,json=usedCu,proto3" json:"used_cu,omitempty"`
}

func CreateProject added in v0.7.0

func CreateProject(subscriptionAddress string, projectName string) Project

func (*Project) AppendKey

func (project *Project) AppendKey(keyToAdd ProjectKey)

func (*Project) Descriptor

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

func (*Project) GetDescription added in v0.7.0

func (m *Project) GetDescription() string

func (*Project) GetEnabled

func (m *Project) GetEnabled() bool

func (*Project) GetIndex

func (m *Project) GetIndex() string

func (*Project) GetKey

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

func (*Project) GetPolicy added in v0.7.0

func (m *Project) GetPolicy() Policy

func (*Project) GetProjectKeys

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

func (*Project) GetSubscription

func (m *Project) GetSubscription() string

func (*Project) GetUsedCu

func (m *Project) GetUsedCu() uint64

func (*Project) HasKeyType added in v0.7.0

func (project *Project) HasKeyType(projectKey string, keyTypeToCheck ProjectKey_KEY_TYPE) bool

func (*Project) IsAdminKey

func (project *Project) IsAdminKey(projectKey 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) VerifyCuUsage added in v0.8.1

func (project *Project) VerifyCuUsage() error

func (*Project) VerifyProject added in v0.8.1

func (project *Project) VerifyProject(chainID string) 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 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) 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) 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) 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) 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) 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"`
}

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 UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddProjectKeys added in v0.7.0

func (*UnimplementedMsgServer) SetProjectPolicy added in v0.7.0

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