Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 ValidateClaimWindowCloseOffsetBlocks(v interface{}) error
- func ValidateClaimWindowOpenOffsetBlocks(v interface{}) error
- func ValidateGracePeriodEndOffsetBlocks(v interface{}) error
- func ValidateNumBlocksPerSession(v interface{}) error
- func ValidateProofWindowCloseOffsetBlocks(v interface{}) error
- func ValidateProofWindowOpenOffsetBlocks(v interface{}) error
- type AccountKeeper
- type ApplicationServiceConfig
- func (*ApplicationServiceConfig) Descriptor() ([]byte, []int)
- func (m *ApplicationServiceConfig) GetService() *Service
- func (m *ApplicationServiceConfig) Marshal() (dAtA []byte, err error)
- func (m *ApplicationServiceConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ApplicationServiceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApplicationServiceConfig) ProtoMessage()
- func (m *ApplicationServiceConfig) Reset()
- func (m *ApplicationServiceConfig) Size() (n int)
- func (m *ApplicationServiceConfig) String() string
- func (m *ApplicationServiceConfig) Unmarshal(dAtA []byte) error
- func (m *ApplicationServiceConfig) XXX_DiscardUnknown()
- func (m *ApplicationServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplicationServiceConfig) XXX_Merge(src proto.Message)
- func (m *ApplicationServiceConfig) XXX_Size() int
- func (m *ApplicationServiceConfig) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type ConfigOption
- func (*ConfigOption) Descriptor() ([]byte, []int)
- func (m *ConfigOption) GetKey() ConfigOptions
- func (m *ConfigOption) GetValue() string
- func (m *ConfigOption) Marshal() (dAtA []byte, err error)
- func (m *ConfigOption) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigOption) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigOption) ProtoMessage()
- func (m *ConfigOption) Reset()
- func (m *ConfigOption) Size() (n int)
- func (m *ConfigOption) String() string
- func (m *ConfigOption) Unmarshal(dAtA []byte) error
- func (m *ConfigOption) XXX_DiscardUnknown()
- func (m *ConfigOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigOption) XXX_Merge(src proto.Message)
- func (m *ConfigOption) XXX_Size() int
- func (m *ConfigOption) XXX_Unmarshal(b []byte) error
- type ConfigOptions
- 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 MsgClient
- type MsgServer
- type MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParam) GetAsBytes() []byte
- func (m *MsgUpdateParam) GetAsInt64() int64
- func (m *MsgUpdateParam) GetAsString() string
- func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
- func (m *MsgUpdateParam) GetAuthority() string
- func (m *MsgUpdateParam) GetName() string
- func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParam) ProtoMessage()
- func (m *MsgUpdateParam) Reset()
- func (m *MsgUpdateParam) Size() (n int)
- func (m *MsgUpdateParam) String() string
- func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParam) ValidateBasic() error
- func (m *MsgUpdateParam) XXX_DiscardUnknown()
- func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
- func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
- func (m *MsgUpdateParam) XXX_Size() int
- func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamResponse
- func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamResponse) GetParams() *Params
- func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamResponse) ProtoMessage()
- func (m *MsgUpdateParamResponse) Reset()
- func (m *MsgUpdateParamResponse) Size() (n int)
- func (m *MsgUpdateParamResponse) String() string
- func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamResponse) XXX_Size() int
- func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParam_AsBytes
- type MsgUpdateParam_AsInt64
- type MsgUpdateParam_AsString
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetClaimWindowCloseOffsetBlocks() uint64
- func (m *Params) GetClaimWindowOpenOffsetBlocks() uint64
- func (m *Params) GetGracePeriodEndOffsetBlocks() uint64
- func (m *Params) GetNumBlocksPerSession() uint64
- func (m *Params) GetProofWindowCloseOffsetBlocks() uint64
- func (m *Params) GetProofWindowOpenOffsetBlocks() uint64
- 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 (params *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (params *Params) ValidateBasic() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) 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 RPCType
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetId() string
- func (m *Service) GetName() string
- func (m *Service) Marshal() (dAtA []byte, err error)
- func (m *Service) MarshalTo(dAtA []byte) (int, error)
- func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Service) ProtoMessage()
- func (m *Service) Reset()
- func (m *Service) Size() (n int)
- func (m *Service) String() string
- func (m *Service) Unmarshal(dAtA []byte) error
- func (m *Service) XXX_DiscardUnknown()
- func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Service) XXX_Merge(src proto.Message)
- func (m *Service) XXX_Size() int
- func (m *Service) XXX_Unmarshal(b []byte) error
- type Supplier
- func (*Supplier) Descriptor() ([]byte, []int)
- func (m *Supplier) GetAddress() string
- func (m *Supplier) GetServices() []*SupplierServiceConfig
- func (m *Supplier) GetStake() *types.Coin
- func (m *Supplier) Marshal() (dAtA []byte, err error)
- func (m *Supplier) MarshalTo(dAtA []byte) (int, error)
- func (m *Supplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Supplier) ProtoMessage()
- func (m *Supplier) Reset()
- func (m *Supplier) Size() (n int)
- func (m *Supplier) String() string
- func (m *Supplier) Unmarshal(dAtA []byte) error
- func (m *Supplier) XXX_DiscardUnknown()
- func (m *Supplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Supplier) XXX_Merge(src proto.Message)
- func (m *Supplier) XXX_Size() int
- func (m *Supplier) XXX_Unmarshal(b []byte) error
- type SupplierEndpoint
- func (*SupplierEndpoint) Descriptor() ([]byte, []int)
- func (m *SupplierEndpoint) GetConfigs() []*ConfigOption
- func (m *SupplierEndpoint) GetRpcType() RPCType
- func (m *SupplierEndpoint) GetUrl() string
- func (m *SupplierEndpoint) Marshal() (dAtA []byte, err error)
- func (m *SupplierEndpoint) MarshalTo(dAtA []byte) (int, error)
- func (m *SupplierEndpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SupplierEndpoint) ProtoMessage()
- func (m *SupplierEndpoint) Reset()
- func (m *SupplierEndpoint) Size() (n int)
- func (m *SupplierEndpoint) String() string
- func (m *SupplierEndpoint) Unmarshal(dAtA []byte) error
- func (m *SupplierEndpoint) XXX_DiscardUnknown()
- func (m *SupplierEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SupplierEndpoint) XXX_Merge(src proto.Message)
- func (m *SupplierEndpoint) XXX_Size() int
- func (m *SupplierEndpoint) XXX_Unmarshal(b []byte) error
- type SupplierServiceConfig
- func (*SupplierServiceConfig) Descriptor() ([]byte, []int)
- func (m *SupplierServiceConfig) GetEndpoints() []*SupplierEndpoint
- func (m *SupplierServiceConfig) GetService() *Service
- func (m *SupplierServiceConfig) Marshal() (dAtA []byte, err error)
- func (m *SupplierServiceConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *SupplierServiceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SupplierServiceConfig) ProtoMessage()
- func (m *SupplierServiceConfig) Reset()
- func (m *SupplierServiceConfig) Size() (n int)
- func (m *SupplierServiceConfig) String() string
- func (m *SupplierServiceConfig) Unmarshal(dAtA []byte) error
- func (m *SupplierServiceConfig) XXX_DiscardUnknown()
- func (m *SupplierServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SupplierServiceConfig) XXX_Merge(src proto.Message)
- func (m *SupplierServiceConfig) XXX_Size() int
- func (m *SupplierServiceConfig) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "shared" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_shared" )
const ( DefaultNumBlocksPerSession = 4 ParamNumBlocksPerSession = "num_blocks_per_session" DefaultGracePeriodEndOffsetBlocks = 1 ParamGracePeriodEndOffsetBlocks = "grace_period_end_offset_blocks" DefaultClaimWindowOpenOffsetBlocks = 1 ParamClaimWindowOpenOffsetBlocks = "claim_window_open_offset_blocks" DefaultClaimWindowCloseOffsetBlocks = 4 ParamClaimWindowCloseOffsetBlocks = "claim_window_close_offset_blocks" DefaultProofWindowOpenOffsetBlocks = 0 ParamProofWindowOpenOffsetBlocks = "proof_window_open_offset_blocks" DefaultProofWindowCloseOffsetBlocks = 4 ParamProofWindowCloseOffsetBlocks = "proof_window_close_offset_blocks" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ()
x/shared 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 ( KeyNumBlocksPerSession = []byte("NumBlocksPerSession") KeyGracePeriodEndOffsetBlocks = []byte("GracePeriodEndOffsetBlocks") KeyClaimWindowOpenOffsetBlocks = []byte("ClaimWindowOpenOffsetBlocks") KeyClaimWindowCloseOffsetBlocks = []byte("ClaimWindowCloseOffsetBlocks") KeyProofWindowOpenOffsetBlocks = []byte("ProofWindowOpenOffsetBlocks") KeyProofWindowCloseOffsetBlocks = []byte("ProofWindowCloseOffsetBlocks") )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowService = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSupplier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSupplier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSupplier = 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 ConfigOptions_name = map[int32]string{
0: "UNKNOWN_CONFIG",
1: "TIMEOUT",
}
var ConfigOptions_value = map[string]int32{
"UNKNOWN_CONFIG": 0,
"TIMEOUT": 1,
}
var (
ParamsKey = []byte("p_shared")
)
var RPCType_name = map[int32]string{
0: "UNKNOWN_RPC",
1: "GRPC",
2: "WEBSOCKET",
3: "JSON_RPC",
4: "REST",
}
var RPCType_value = map[string]int32{
"UNKNOWN_RPC": 0,
"GRPC": 1,
"WEBSOCKET": 2,
"JSON_RPC": 3,
"REST": 4,
}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
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 ValidateClaimWindowCloseOffsetBlocks ¶
func ValidateClaimWindowCloseOffsetBlocks(v interface{}) error
ValidateClaimWindowCloseOffsetBlocks validates the ClaimWindowCloseOffsetBlocks param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
func ValidateClaimWindowOpenOffsetBlocks ¶
func ValidateClaimWindowOpenOffsetBlocks(v interface{}) error
ValidateClaimWindowOpenOffsetBlocks validates the ClaimWindowOpenOffsetBlocks param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
func ValidateGracePeriodEndOffsetBlocks ¶
func ValidateGracePeriodEndOffsetBlocks(v interface{}) error
ValidateGracePeriodEndOffsetBlocks validates the GracePeriodEndOffsetBlocks param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
func ValidateNumBlocksPerSession ¶
func ValidateNumBlocksPerSession(v interface{}) error
ValidateNumBlocksPerSession validates the NumBlocksPerSession param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
func ValidateProofWindowCloseOffsetBlocks ¶
func ValidateProofWindowCloseOffsetBlocks(v interface{}) error
ValidateProofWindowCloseOffsetBlocks validates the ProofWindowCloseOffsetBlocks param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
func ValidateProofWindowOpenOffsetBlocks ¶
func ValidateProofWindowOpenOffsetBlocks(v interface{}) error
ValidateProofWindowOpenOffsetBlocks validates the ProofWindowOpenOffsetBlocks param NB: The argument is an interface type to satisfy the ParamSetPair function signature.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type ApplicationServiceConfig ¶
type ApplicationServiceConfig struct {
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
}
ApplicationServiceConfig holds the service configuration the application stakes for
func (*ApplicationServiceConfig) Descriptor ¶
func (*ApplicationServiceConfig) Descriptor() ([]byte, []int)
func (*ApplicationServiceConfig) GetService ¶
func (m *ApplicationServiceConfig) GetService() *Service
func (*ApplicationServiceConfig) Marshal ¶
func (m *ApplicationServiceConfig) Marshal() (dAtA []byte, err error)
func (*ApplicationServiceConfig) MarshalTo ¶
func (m *ApplicationServiceConfig) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationServiceConfig) MarshalToSizedBuffer ¶
func (m *ApplicationServiceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ApplicationServiceConfig) ProtoMessage ¶
func (*ApplicationServiceConfig) ProtoMessage()
func (*ApplicationServiceConfig) Reset ¶
func (m *ApplicationServiceConfig) Reset()
func (*ApplicationServiceConfig) Size ¶
func (m *ApplicationServiceConfig) Size() (n int)
func (*ApplicationServiceConfig) String ¶
func (m *ApplicationServiceConfig) String() string
func (*ApplicationServiceConfig) Unmarshal ¶
func (m *ApplicationServiceConfig) Unmarshal(dAtA []byte) error
func (*ApplicationServiceConfig) XXX_DiscardUnknown ¶
func (m *ApplicationServiceConfig) XXX_DiscardUnknown()
func (*ApplicationServiceConfig) XXX_Marshal ¶
func (m *ApplicationServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplicationServiceConfig) XXX_Merge ¶
func (m *ApplicationServiceConfig) XXX_Merge(src proto.Message)
func (*ApplicationServiceConfig) XXX_Size ¶
func (m *ApplicationServiceConfig) XXX_Size() int
func (*ApplicationServiceConfig) XXX_Unmarshal ¶
func (m *ApplicationServiceConfig) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
type ConfigOption ¶
type ConfigOption struct { Key ConfigOptions `protobuf:"varint,1,opt,name=key,proto3,enum=poktroll.shared.ConfigOptions" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
Key-value wrapper for config options, as proto maps can't be keyed by enums
func (*ConfigOption) Descriptor ¶
func (*ConfigOption) Descriptor() ([]byte, []int)
func (*ConfigOption) GetKey ¶
func (m *ConfigOption) GetKey() ConfigOptions
func (*ConfigOption) GetValue ¶
func (m *ConfigOption) GetValue() string
func (*ConfigOption) Marshal ¶
func (m *ConfigOption) Marshal() (dAtA []byte, err error)
func (*ConfigOption) MarshalToSizedBuffer ¶
func (m *ConfigOption) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigOption) ProtoMessage ¶
func (*ConfigOption) ProtoMessage()
func (*ConfigOption) Reset ¶
func (m *ConfigOption) Reset()
func (*ConfigOption) Size ¶
func (m *ConfigOption) Size() (n int)
func (*ConfigOption) String ¶
func (m *ConfigOption) String() string
func (*ConfigOption) Unmarshal ¶
func (m *ConfigOption) Unmarshal(dAtA []byte) error
func (*ConfigOption) XXX_DiscardUnknown ¶
func (m *ConfigOption) XXX_DiscardUnknown()
func (*ConfigOption) XXX_Marshal ¶
func (m *ConfigOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigOption) XXX_Merge ¶
func (m *ConfigOption) XXX_Merge(src proto.Message)
func (*ConfigOption) XXX_Size ¶
func (m *ConfigOption) XXX_Size() int
func (*ConfigOption) XXX_Unmarshal ¶
func (m *ConfigOption) XXX_Unmarshal(b []byte) error
type ConfigOptions ¶
type ConfigOptions int32
Enum to define configuration options TODO_RESEARCH: Should these be configs, SLAs or something else? There will be more discussion once we get closer to implementing on-chain QoS.
const ( ConfigOptions_UNKNOWN_CONFIG ConfigOptions = 0 ConfigOptions_TIMEOUT ConfigOptions = 1 )
func (ConfigOptions) EnumDescriptor ¶
func (ConfigOptions) EnumDescriptor() ([]byte, []int)
func (ConfigOptions) String ¶
func (x ConfigOptions) String() string
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the shared module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default 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 MsgClient ¶
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, 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 { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParam ¶
type MsgUpdateParam struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to AsType: // *MsgUpdateParam_AsString // *MsgUpdateParam_AsInt64 // *MsgUpdateParam_AsBytes AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"` }
MsgUpdateParam is the Msg/UpdateParam request type to update a single param.
func NewMsgUpdateParam ¶
func NewMsgUpdateParam(authority string, name string, value any) (*MsgUpdateParam, error)
NewMsgUpdateParam creates a new MsgUpdateParam instance for a single governance parameter update.
func (*MsgUpdateParam) Descriptor ¶
func (*MsgUpdateParam) Descriptor() ([]byte, []int)
func (*MsgUpdateParam) GetAsBytes ¶
func (m *MsgUpdateParam) GetAsBytes() []byte
func (*MsgUpdateParam) GetAsInt64 ¶
func (m *MsgUpdateParam) GetAsInt64() int64
func (*MsgUpdateParam) GetAsString ¶
func (m *MsgUpdateParam) GetAsString() string
func (*MsgUpdateParam) GetAsType ¶
func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
func (*MsgUpdateParam) GetAuthority ¶
func (m *MsgUpdateParam) GetAuthority() string
func (*MsgUpdateParam) GetName ¶
func (m *MsgUpdateParam) GetName() string
func (*MsgUpdateParam) Marshal ¶
func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParam) MarshalToSizedBuffer ¶
func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam) ProtoMessage ¶
func (*MsgUpdateParam) ProtoMessage()
func (*MsgUpdateParam) Reset ¶
func (m *MsgUpdateParam) Reset()
func (*MsgUpdateParam) Size ¶
func (m *MsgUpdateParam) Size() (n int)
func (*MsgUpdateParam) String ¶
func (m *MsgUpdateParam) String() string
func (*MsgUpdateParam) Unmarshal ¶
func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateParam) ValidateBasic ¶
func (msg *MsgUpdateParam) ValidateBasic() error
ValidateBasic performs a basic validation of the MsgUpdateParam fields. It ensures the parameter name is supported and the parameter type matches the expected type for a given parameter name.
func (*MsgUpdateParam) XXX_DiscardUnknown ¶
func (m *MsgUpdateParam) XXX_DiscardUnknown()
func (*MsgUpdateParam) XXX_Marshal ¶
func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParam) XXX_Merge ¶
func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
func (*MsgUpdateParam) XXX_OneofWrappers ¶
func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MsgUpdateParam) XXX_Size ¶
func (m *MsgUpdateParam) XXX_Size() int
func (*MsgUpdateParam) XXX_Unmarshal ¶
func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
type MsgUpdateParamResponse ¶
type MsgUpdateParamResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.
func (*MsgUpdateParamResponse) Descriptor ¶
func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamResponse) GetParams ¶
func (m *MsgUpdateParamResponse) GetParams() *Params
func (*MsgUpdateParamResponse) Marshal ¶
func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamResponse) MarshalTo ¶
func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) ProtoMessage ¶
func (*MsgUpdateParamResponse) ProtoMessage()
func (*MsgUpdateParamResponse) Reset ¶
func (m *MsgUpdateParamResponse) Reset()
func (*MsgUpdateParamResponse) Size ¶
func (m *MsgUpdateParamResponse) Size() (n int)
func (*MsgUpdateParamResponse) String ¶
func (m *MsgUpdateParamResponse) String() string
func (*MsgUpdateParamResponse) Unmarshal ¶
func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamResponse) XXX_Marshal ¶
func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamResponse) XXX_Merge ¶
func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamResponse) XXX_Size ¶
func (m *MsgUpdateParamResponse) XXX_Size() int
func (*MsgUpdateParamResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParam_AsBytes ¶
type MsgUpdateParam_AsBytes struct {
AsBytes []byte `protobuf:"bytes,7,opt,name=as_bytes,json=asBytes,proto3,oneof" json:"as_bytes"`
}
func (*MsgUpdateParam_AsBytes) MarshalTo ¶
func (m *MsgUpdateParam_AsBytes) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsBytes) MarshalToSizedBuffer ¶
func (m *MsgUpdateParam_AsBytes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsBytes) Size ¶
func (m *MsgUpdateParam_AsBytes) Size() (n int)
type MsgUpdateParam_AsInt64 ¶
type MsgUpdateParam_AsInt64 struct {
AsInt64 int64 `protobuf:"varint,6,opt,name=as_int64,json=asInt64,proto3,oneof" json:"as_int64"`
}
func (*MsgUpdateParam_AsInt64) MarshalTo ¶
func (m *MsgUpdateParam_AsInt64) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsInt64) MarshalToSizedBuffer ¶
func (m *MsgUpdateParam_AsInt64) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsInt64) Size ¶
func (m *MsgUpdateParam_AsInt64) Size() (n int)
type MsgUpdateParam_AsString ¶
type MsgUpdateParam_AsString struct {
AsString string `protobuf:"bytes,3,opt,name=as_string,json=asString,proto3,oneof" json:"as_string"`
}
func (*MsgUpdateParam_AsString) MarshalTo ¶
func (m *MsgUpdateParam_AsString) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsString) MarshalToSizedBuffer ¶
func (m *MsgUpdateParam_AsString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsString) Size ¶
func (m *MsgUpdateParam_AsString) Size() (n int)
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { // num_blocks_per_session is the number of blocks between the session start & end heights. NumBlocksPerSession uint64 `protobuf:"varint,1,opt,name=num_blocks_per_session,json=numBlocksPerSession,proto3" json:"num_blocks_per_session"` // grace_period_end_offset_blocks is the number of blocks after the session end height, // at which the grace period ends. // Suppliers will get paid for relays serviced during the grace period but will need to recreate a claim if // a previous one was already submitted. GracePeriodEndOffsetBlocks uint64 `` /* 136-byte string literal not displayed */ // claim_window_open_offset_blocks is the number of blocks after the session grace // period height, at which the claim window opens. ClaimWindowOpenOffsetBlocks uint64 `` /* 139-byte string literal not displayed */ // claim_window_close_offset_blocks is the number of blocks after the claim window // open height, at which the claim window closes. ClaimWindowCloseOffsetBlocks uint64 `` /* 142-byte string literal not displayed */ // proof_window_open_offset_blocks is the number of blocks after the claim window // close height, at which the proof window opens. ProofWindowOpenOffsetBlocks uint64 `` /* 139-byte string literal not displayed */ // proof_window_close_offset_blocks is the number of blocks after the proof window // open height, at which the proof window closes. ProofWindowCloseOffsetBlocks uint64 `` /* 142-byte string literal not displayed */ }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetClaimWindowCloseOffsetBlocks ¶
func (*Params) GetClaimWindowOpenOffsetBlocks ¶
func (*Params) GetGracePeriodEndOffsetBlocks ¶
func (*Params) GetNumBlocksPerSession ¶
func (*Params) GetProofWindowCloseOffsetBlocks ¶
func (*Params) GetProofWindowOpenOffsetBlocks ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (params *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ValidateBasic ¶
Validate validates the set of params
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is 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) }
QueryServer is the server API for Query service.
type Service ¶
type Service struct { // For example, what if we want to request a session for a certain service but with some additional configs that identify it? Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // TODO_BETA: Name is currently unused but acts as a reminder that an optional onchain representation of the service is necessary Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` }
Service message to encapsulate unique and semantic identifiers for a service on the network
func (*Service) Descriptor ¶
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
type Supplier ¶
type Supplier struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Stake *types.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` Services []*SupplierServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` }
Supplier is the type defining the actor in Pocket Network that provides RPC services.
func (*Supplier) Descriptor ¶
func (*Supplier) GetAddress ¶
func (*Supplier) GetServices ¶
func (m *Supplier) GetServices() []*SupplierServiceConfig
func (*Supplier) MarshalToSizedBuffer ¶
func (*Supplier) ProtoMessage ¶
func (*Supplier) ProtoMessage()
func (*Supplier) XXX_DiscardUnknown ¶
func (m *Supplier) XXX_DiscardUnknown()
func (*Supplier) XXX_Marshal ¶
func (*Supplier) XXX_Unmarshal ¶
type SupplierEndpoint ¶
type SupplierEndpoint struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` RpcType RPCType `protobuf:"varint,2,opt,name=rpc_type,json=rpcType,proto3,enum=poktroll.shared.RPCType" json:"rpc_type,omitempty"` Configs []*ConfigOption `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"` }
SupplierEndpoint message to hold service configuration details
func (*SupplierEndpoint) Descriptor ¶
func (*SupplierEndpoint) Descriptor() ([]byte, []int)
func (*SupplierEndpoint) GetConfigs ¶
func (m *SupplierEndpoint) GetConfigs() []*ConfigOption
func (*SupplierEndpoint) GetRpcType ¶
func (m *SupplierEndpoint) GetRpcType() RPCType
func (*SupplierEndpoint) GetUrl ¶
func (m *SupplierEndpoint) GetUrl() string
func (*SupplierEndpoint) Marshal ¶
func (m *SupplierEndpoint) Marshal() (dAtA []byte, err error)
func (*SupplierEndpoint) MarshalToSizedBuffer ¶
func (m *SupplierEndpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SupplierEndpoint) ProtoMessage ¶
func (*SupplierEndpoint) ProtoMessage()
func (*SupplierEndpoint) Reset ¶
func (m *SupplierEndpoint) Reset()
func (*SupplierEndpoint) Size ¶
func (m *SupplierEndpoint) Size() (n int)
func (*SupplierEndpoint) String ¶
func (m *SupplierEndpoint) String() string
func (*SupplierEndpoint) Unmarshal ¶
func (m *SupplierEndpoint) Unmarshal(dAtA []byte) error
func (*SupplierEndpoint) XXX_DiscardUnknown ¶
func (m *SupplierEndpoint) XXX_DiscardUnknown()
func (*SupplierEndpoint) XXX_Marshal ¶
func (m *SupplierEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SupplierEndpoint) XXX_Merge ¶
func (m *SupplierEndpoint) XXX_Merge(src proto.Message)
func (*SupplierEndpoint) XXX_Size ¶
func (m *SupplierEndpoint) XXX_Size() int
func (*SupplierEndpoint) XXX_Unmarshal ¶
func (m *SupplierEndpoint) XXX_Unmarshal(b []byte) error
type SupplierServiceConfig ¶
type SupplierServiceConfig struct { Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Endpoints []*SupplierEndpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` }
SupplierServiceConfig holds the service configuration the supplier stakes for
func (*SupplierServiceConfig) Descriptor ¶
func (*SupplierServiceConfig) Descriptor() ([]byte, []int)
func (*SupplierServiceConfig) GetEndpoints ¶
func (m *SupplierServiceConfig) GetEndpoints() []*SupplierEndpoint
func (*SupplierServiceConfig) GetService ¶
func (m *SupplierServiceConfig) GetService() *Service
func (*SupplierServiceConfig) Marshal ¶
func (m *SupplierServiceConfig) Marshal() (dAtA []byte, err error)
func (*SupplierServiceConfig) MarshalTo ¶
func (m *SupplierServiceConfig) MarshalTo(dAtA []byte) (int, error)
func (*SupplierServiceConfig) MarshalToSizedBuffer ¶
func (m *SupplierServiceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SupplierServiceConfig) ProtoMessage ¶
func (*SupplierServiceConfig) ProtoMessage()
func (*SupplierServiceConfig) Reset ¶
func (m *SupplierServiceConfig) Reset()
func (*SupplierServiceConfig) Size ¶
func (m *SupplierServiceConfig) Size() (n int)
func (*SupplierServiceConfig) String ¶
func (m *SupplierServiceConfig) String() string
func (*SupplierServiceConfig) Unmarshal ¶
func (m *SupplierServiceConfig) Unmarshal(dAtA []byte) error
func (*SupplierServiceConfig) XXX_DiscardUnknown ¶
func (m *SupplierServiceConfig) XXX_DiscardUnknown()
func (*SupplierServiceConfig) XXX_Marshal ¶
func (m *SupplierServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SupplierServiceConfig) XXX_Merge ¶
func (m *SupplierServiceConfig) XXX_Merge(src proto.Message)
func (*SupplierServiceConfig) XXX_Size ¶
func (m *SupplierServiceConfig) XXX_Size() int
func (*SupplierServiceConfig) XXX_Unmarshal ¶
func (m *SupplierServiceConfig) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParam ¶
func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)