proof

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName    = "/poktroll.proof.Query/Params"
	Query_Claim_FullMethodName     = "/poktroll.proof.Query/Claim"
	Query_AllClaims_FullMethodName = "/poktroll.proof.Query/AllClaims"
	Query_Proof_FullMethodName     = "/poktroll.proof.Query/Proof"
	Query_AllProofs_FullMethodName = "/poktroll.proof.Query/AllProofs"
)
View Source
const (
	Msg_UpdateParams_FullMethodName = "/poktroll.proof.Msg/UpdateParams"
	Msg_CreateClaim_FullMethodName  = "/poktroll.proof.Msg/CreateClaim"
	Msg_SubmitProof_FullMethodName  = "/poktroll.proof.Msg/SubmitProof"
	Msg_UpdateParam_FullMethodName  = "/poktroll.proof.Msg/UpdateParam"
)

Variables

View Source
var (
	ProofRequirementReason_name = map[int32]string{
		0: "NOT_REQUIRED",
		1: "PROBABILISTIC",
		2: "THRESHOLD",
	}
	ProofRequirementReason_value = map[string]int32{
		"NOT_REQUIRED":  0,
		"PROBABILISTIC": 1,
		"THRESHOLD":     2,
	}
)

Enum value maps for ProofRequirementReason.

View Source
var (
	ClaimProofStage_name = map[int32]string{
		0: "CLAIMED",
		1: "PROVEN",
		2: "SETTLED",
		3: "EXPIRED",
	}
	ClaimProofStage_value = map[string]int32{
		"CLAIMED": 0,
		"PROVEN":  1,
		"SETTLED": 2,
		"EXPIRED": 3,
	}
)

Enum value maps for ClaimProofStage.

View Source
var File_poktroll_proof_event_proto protoreflect.FileDescriptor
View Source
var File_poktroll_proof_genesis_proto protoreflect.FileDescriptor
View Source
var File_poktroll_proof_params_proto protoreflect.FileDescriptor
View Source
var File_poktroll_proof_query_proto protoreflect.FileDescriptor
View Source
var File_poktroll_proof_tx_proto protoreflect.FileDescriptor
View Source
var File_poktroll_proof_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.proof.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "CreateClaim",
			Handler:    _Msg_CreateClaim_Handler,
		},
		{
			MethodName: "SubmitProof",
			Handler:    _Msg_SubmitProof_Handler,
		},
		{
			MethodName: "UpdateParam",
			Handler:    _Msg_UpdateParam_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/proof/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.proof.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Claim",
			Handler:    _Query_Claim_Handler,
		},
		{
			MethodName: "AllClaims",
			Handler:    _Query_AllClaims_Handler,
		},
		{
			MethodName: "Proof",
			Handler:    _Query_Proof_Handler,
		},
		{
			MethodName: "AllProofs",
			Handler:    _Query_AllProofs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/proof/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer added in v0.0.3

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer added in v0.0.3

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Claim

type Claim struct {
	SupplierOperatorAddress string `` // the address of the supplier's operator that submitted this claim
	/* 132-byte string literal not displayed */
	// The session header of the session that this claim is for.
	SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	// Root hash returned from smt.SMST#Root().
	RootHash []byte `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// contains filtered or unexported fields
}

Claim is the serialized object stored on-chain for claims pending to be proven

func (*Claim) Descriptor deprecated

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

Deprecated: Use Claim.ProtoReflect.Descriptor instead.

func (*Claim) GetRootHash

func (x *Claim) GetRootHash() []byte

func (*Claim) GetSessionHeader

func (x *Claim) GetSessionHeader() *session.SessionHeader

func (*Claim) GetSupplierOperatorAddress added in v0.0.6

func (x *Claim) GetSupplierOperatorAddress() string

func (*Claim) ProtoMessage

func (*Claim) ProtoMessage()

func (*Claim) ProtoReflect

func (x *Claim) ProtoReflect() protoreflect.Message

func (*Claim) Reset

func (x *Claim) Reset()

func (*Claim) String

func (x *Claim) String() string

type ClaimProofStage added in v0.0.3

type ClaimProofStage int32
const (
	ClaimProofStage_CLAIMED ClaimProofStage = 0
	ClaimProofStage_PROVEN  ClaimProofStage = 1
	ClaimProofStage_SETTLED ClaimProofStage = 2
	ClaimProofStage_EXPIRED ClaimProofStage = 3
)

func (ClaimProofStage) Descriptor added in v0.0.3

func (ClaimProofStage) Enum added in v0.0.3

func (x ClaimProofStage) Enum() *ClaimProofStage

func (ClaimProofStage) EnumDescriptor deprecated added in v0.0.3

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

Deprecated: Use ClaimProofStage.Descriptor instead.

func (ClaimProofStage) Number added in v0.0.3

func (ClaimProofStage) String added in v0.0.3

func (x ClaimProofStage) String() string

func (ClaimProofStage) Type added in v0.0.3

type EventClaimCreated added in v0.0.3

type EventClaimCreated struct {
	Claim           *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	NumRelays       uint64 `protobuf:"varint,2,opt,name=num_relays,json=numRelays,proto3" json:"num_relays,omitempty"`
	NumComputeUnits uint64 `protobuf:"varint,3,opt,name=num_compute_units,json=numComputeUnits,proto3" json:"num_compute_units,omitempty"`
	// contains filtered or unexported fields
}

func (*EventClaimCreated) Descriptor deprecated added in v0.0.3

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

Deprecated: Use EventClaimCreated.ProtoReflect.Descriptor instead.

func (*EventClaimCreated) GetClaim added in v0.0.3

func (x *EventClaimCreated) GetClaim() *Claim

func (*EventClaimCreated) GetNumComputeUnits added in v0.0.3

func (x *EventClaimCreated) GetNumComputeUnits() uint64

func (*EventClaimCreated) GetNumRelays added in v0.0.3

func (x *EventClaimCreated) GetNumRelays() uint64

func (*EventClaimCreated) ProtoMessage added in v0.0.3

func (*EventClaimCreated) ProtoMessage()

func (*EventClaimCreated) ProtoReflect added in v0.0.3

func (x *EventClaimCreated) ProtoReflect() protoreflect.Message

func (*EventClaimCreated) Reset added in v0.0.3

func (x *EventClaimCreated) Reset()

func (*EventClaimCreated) String added in v0.0.3

func (x *EventClaimCreated) String() string

type EventClaimUpdated added in v0.0.3

type EventClaimUpdated struct {
	Claim           *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	NumRelays       uint64 `protobuf:"varint,2,opt,name=num_relays,json=numRelays,proto3" json:"num_relays,omitempty"`
	NumComputeUnits uint64 `protobuf:"varint,3,opt,name=num_compute_units,json=numComputeUnits,proto3" json:"num_compute_units,omitempty"`
	// contains filtered or unexported fields
}

TODO_TEST: Add coverage for claim updates.

func (*EventClaimUpdated) Descriptor deprecated added in v0.0.3

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

Deprecated: Use EventClaimUpdated.ProtoReflect.Descriptor instead.

func (*EventClaimUpdated) GetClaim added in v0.0.3

func (x *EventClaimUpdated) GetClaim() *Claim

func (*EventClaimUpdated) GetNumComputeUnits added in v0.0.3

func (x *EventClaimUpdated) GetNumComputeUnits() uint64

func (*EventClaimUpdated) GetNumRelays added in v0.0.3

func (x *EventClaimUpdated) GetNumRelays() uint64

func (*EventClaimUpdated) ProtoMessage added in v0.0.3

func (*EventClaimUpdated) ProtoMessage()

func (*EventClaimUpdated) ProtoReflect added in v0.0.3

func (x *EventClaimUpdated) ProtoReflect() protoreflect.Message

func (*EventClaimUpdated) Reset added in v0.0.3

func (x *EventClaimUpdated) Reset()

func (*EventClaimUpdated) String added in v0.0.3

func (x *EventClaimUpdated) String() string

type EventProofSubmitted added in v0.0.3

type EventProofSubmitted struct {
	Claim           *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	Proof           *Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	NumRelays       uint64 `protobuf:"varint,3,opt,name=num_relays,json=numRelays,proto3" json:"num_relays,omitempty"`
	NumComputeUnits uint64 `protobuf:"varint,4,opt,name=num_compute_units,json=numComputeUnits,proto3" json:"num_compute_units,omitempty"`
	// contains filtered or unexported fields
}

func (*EventProofSubmitted) Descriptor deprecated added in v0.0.3

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

Deprecated: Use EventProofSubmitted.ProtoReflect.Descriptor instead.

func (*EventProofSubmitted) GetClaim added in v0.0.3

func (x *EventProofSubmitted) GetClaim() *Claim

func (*EventProofSubmitted) GetNumComputeUnits added in v0.0.3

func (x *EventProofSubmitted) GetNumComputeUnits() uint64

func (*EventProofSubmitted) GetNumRelays added in v0.0.3

func (x *EventProofSubmitted) GetNumRelays() uint64

func (*EventProofSubmitted) GetProof added in v0.0.3

func (x *EventProofSubmitted) GetProof() *Proof

func (*EventProofSubmitted) ProtoMessage added in v0.0.3

func (*EventProofSubmitted) ProtoMessage()

func (*EventProofSubmitted) ProtoReflect added in v0.0.3

func (x *EventProofSubmitted) ProtoReflect() protoreflect.Message

func (*EventProofSubmitted) Reset added in v0.0.3

func (x *EventProofSubmitted) Reset()

func (*EventProofSubmitted) String added in v0.0.3

func (x *EventProofSubmitted) String() string

type EventProofUpdated added in v0.0.3

type EventProofUpdated struct {
	Claim           *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	Proof           *Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	NumRelays       uint64 `protobuf:"varint,3,opt,name=num_relays,json=numRelays,proto3" json:"num_relays,omitempty"`
	NumComputeUnits uint64 `protobuf:"varint,4,opt,name=num_compute_units,json=numComputeUnits,proto3" json:"num_compute_units,omitempty"`
	// contains filtered or unexported fields
}

TODO_TEST: Add coverage for proof updates.

func (*EventProofUpdated) Descriptor deprecated added in v0.0.3

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

Deprecated: Use EventProofUpdated.ProtoReflect.Descriptor instead.

func (*EventProofUpdated) GetClaim added in v0.0.3

func (x *EventProofUpdated) GetClaim() *Claim

func (*EventProofUpdated) GetNumComputeUnits added in v0.0.3

func (x *EventProofUpdated) GetNumComputeUnits() uint64

func (*EventProofUpdated) GetNumRelays added in v0.0.3

func (x *EventProofUpdated) GetNumRelays() uint64

func (*EventProofUpdated) GetProof added in v0.0.3

func (x *EventProofUpdated) GetProof() *Proof

func (*EventProofUpdated) ProtoMessage added in v0.0.3

func (*EventProofUpdated) ProtoMessage()

func (*EventProofUpdated) ProtoReflect added in v0.0.3

func (x *EventProofUpdated) ProtoReflect() protoreflect.Message

func (*EventProofUpdated) Reset added in v0.0.3

func (x *EventProofUpdated) Reset()

func (*EventProofUpdated) String added in v0.0.3

func (x *EventProofUpdated) 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,omitempty"`
	ClaimList []*Claim `protobuf:"bytes,2,rep,name=claim_list,json=claimList,proto3" json:"claim_list,omitempty"`
	ProofList []*Proof `protobuf:"bytes,3,rep,name=proof_list,json=proofList,proto3" json:"proof_list,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the proof module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetClaimList

func (x *GenesisState) GetClaimList() []*Claim

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetProofList

func (x *GenesisState) GetProofList() []*Proof

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient added in v0.0.3

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)
	CreateClaim(ctx context.Context, in *MsgCreateClaim, opts ...grpc.CallOption) (*MsgCreateClaimResponse, error)
	SubmitProof(ctx context.Context, in *MsgSubmitProof, opts ...grpc.CallOption) (*MsgSubmitProofResponse, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Msg defines the Msg service.

func NewMsgClient added in v0.0.3

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateClaim

type MsgCreateClaim struct {
	SupplierOperatorAddress string                 `` /* 132-byte string literal not displayed */
	SessionHeader           *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	// root returned from smt.SMST#Root()
	RootHash []byte `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCreateClaim) Descriptor deprecated

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

Deprecated: Use MsgCreateClaim.ProtoReflect.Descriptor instead.

func (*MsgCreateClaim) GetRootHash

func (x *MsgCreateClaim) GetRootHash() []byte

func (*MsgCreateClaim) GetSessionHeader

func (x *MsgCreateClaim) GetSessionHeader() *session.SessionHeader

func (*MsgCreateClaim) GetSupplierOperatorAddress added in v0.0.6

func (x *MsgCreateClaim) GetSupplierOperatorAddress() string

func (*MsgCreateClaim) ProtoMessage

func (*MsgCreateClaim) ProtoMessage()

func (*MsgCreateClaim) ProtoReflect

func (x *MsgCreateClaim) ProtoReflect() protoreflect.Message

func (*MsgCreateClaim) Reset

func (x *MsgCreateClaim) Reset()

func (*MsgCreateClaim) String

func (x *MsgCreateClaim) String() string

type MsgCreateClaimResponse

type MsgCreateClaimResponse struct {
	Claim *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCreateClaimResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateClaimResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateClaimResponse) GetClaim added in v0.0.3

func (x *MsgCreateClaimResponse) GetClaim() *Claim

func (*MsgCreateClaimResponse) ProtoMessage

func (*MsgCreateClaimResponse) ProtoMessage()

func (*MsgCreateClaimResponse) ProtoReflect

func (x *MsgCreateClaimResponse) ProtoReflect() protoreflect.Message

func (*MsgCreateClaimResponse) Reset

func (x *MsgCreateClaimResponse) Reset()

func (*MsgCreateClaimResponse) String

func (x *MsgCreateClaimResponse) String() string

type MsgServer added in v0.0.3

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)
	CreateClaim(context.Context, *MsgCreateClaim) (*MsgCreateClaimResponse, error)
	SubmitProof(context.Context, *MsgSubmitProof) (*MsgSubmitProofResponse, error)
	UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

Msg defines the Msg service.

type MsgSubmitProof

type MsgSubmitProof struct {
	SupplierOperatorAddress string                 `` /* 132-byte string literal not displayed */
	SessionHeader           *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	// serialized version of *smt.SparseMerkleClosestProof
	Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgSubmitProof) Descriptor deprecated

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

Deprecated: Use MsgSubmitProof.ProtoReflect.Descriptor instead.

func (*MsgSubmitProof) GetProof

func (x *MsgSubmitProof) GetProof() []byte

func (*MsgSubmitProof) GetSessionHeader

func (x *MsgSubmitProof) GetSessionHeader() *session.SessionHeader

func (*MsgSubmitProof) GetSupplierOperatorAddress added in v0.0.6

func (x *MsgSubmitProof) GetSupplierOperatorAddress() string

func (*MsgSubmitProof) ProtoMessage

func (*MsgSubmitProof) ProtoMessage()

func (*MsgSubmitProof) ProtoReflect

func (x *MsgSubmitProof) ProtoReflect() protoreflect.Message

func (*MsgSubmitProof) Reset

func (x *MsgSubmitProof) Reset()

func (*MsgSubmitProof) String

func (x *MsgSubmitProof) String() string

type MsgSubmitProofResponse

type MsgSubmitProofResponse struct {
	Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgSubmitProofResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitProofResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitProofResponse) GetProof added in v0.0.3

func (x *MsgSubmitProofResponse) GetProof() *Proof

func (*MsgSubmitProofResponse) ProtoMessage

func (*MsgSubmitProofResponse) ProtoMessage()

func (*MsgSubmitProofResponse) ProtoReflect

func (x *MsgSubmitProofResponse) ProtoReflect() protoreflect.Message

func (*MsgSubmitProofResponse) Reset

func (x *MsgSubmitProofResponse) Reset()

func (*MsgSubmitProofResponse) String

func (x *MsgSubmitProofResponse) String() string

type MsgUpdateParam added in v0.0.2

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"`
	// The (name, as_type) tuple must match the corresponding name and type as
	// specified in the `Params“ message in `proof/params.proto.`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to AsType:
	//
	//	*MsgUpdateParam_AsString
	//	*MsgUpdateParam_AsInt64
	//	*MsgUpdateParam_AsBytes
	//	*MsgUpdateParam_AsFloat
	//	*MsgUpdateParam_AsCoin
	AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"`
	// contains filtered or unexported fields
}

MsgUpdateParam is the Msg/UpdateParam request type to update a single param.

func (*MsgUpdateParam) Descriptor deprecated added in v0.0.2

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

Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.

func (*MsgUpdateParam) GetAsBytes added in v0.0.2

func (x *MsgUpdateParam) GetAsBytes() []byte

func (*MsgUpdateParam) GetAsCoin added in v0.0.3

func (x *MsgUpdateParam) GetAsCoin() *v1beta1.Coin

func (*MsgUpdateParam) GetAsFloat added in v0.0.3

func (x *MsgUpdateParam) GetAsFloat() float32

func (*MsgUpdateParam) GetAsInt64 added in v0.0.2

func (x *MsgUpdateParam) GetAsInt64() int64

func (*MsgUpdateParam) GetAsString added in v0.0.2

func (x *MsgUpdateParam) GetAsString() string

func (*MsgUpdateParam) GetAsType added in v0.0.2

func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAuthority added in v0.0.2

func (x *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName added in v0.0.2

func (x *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) ProtoMessage added in v0.0.2

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) ProtoReflect added in v0.0.2

func (x *MsgUpdateParam) ProtoReflect() protoreflect.Message

func (*MsgUpdateParam) Reset added in v0.0.2

func (x *MsgUpdateParam) Reset()

func (*MsgUpdateParam) String added in v0.0.2

func (x *MsgUpdateParam) String() string

type MsgUpdateParamResponse added in v0.0.2

type MsgUpdateParamResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.

func (*MsgUpdateParamResponse) Descriptor deprecated added in v0.0.2

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

Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamResponse) GetParams added in v0.0.2

func (x *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) ProtoMessage added in v0.0.2

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) ProtoReflect added in v0.0.2

func (x *MsgUpdateParamResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamResponse) Reset added in v0.0.2

func (x *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) String added in v0.0.2

func (x *MsgUpdateParamResponse) String() string

type MsgUpdateParam_AsBytes added in v0.0.2

type MsgUpdateParam_AsBytes struct {
	AsBytes []byte `protobuf:"bytes,7,opt,name=as_bytes,json=asBytes,proto3,oneof"`
}

type MsgUpdateParam_AsCoin added in v0.0.3

type MsgUpdateParam_AsCoin struct {
	AsCoin *v1beta1.Coin `protobuf:"bytes,9,opt,name=as_coin,json=asCoin,proto3,oneof"`
}

type MsgUpdateParam_AsFloat added in v0.0.3

type MsgUpdateParam_AsFloat struct {
	AsFloat float32 `protobuf:"fixed32,8,opt,name=as_float,json=asFloat,proto3,oneof"`
}

type MsgUpdateParam_AsInt64 added in v0.0.2

type MsgUpdateParam_AsInt64 struct {
	AsInt64 int64 `protobuf:"varint,6,opt,name=as_int64,json=asInt64,proto3,oneof"`
}

type MsgUpdateParam_AsString added in v0.0.2

type MsgUpdateParam_AsString struct {
	AsString string `protobuf:"bytes,3,opt,name=as_string,json=asString,proto3,oneof"`
}

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"`
	// params defines the x/proof parameters to update.
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type to update all params at once.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {

	// TODO_FOLLOWUP(@olshansk, #690): Either delete this or change it to be named "minimum"
	// relay_difficulty_target_hash is the maximum value a relay hash must be less than to be volume/reward applicable.
	RelayDifficultyTargetHash []byte `` /* 140-byte string literal not displayed */
	// proof_request_probability is the probability of a session requiring a proof
	// if it's cost (i.e. compute unit consumption) is below the ProofRequirementThreshold.
	ProofRequestProbability float32 `` /* 134-byte string literal not displayed */
	// proof_requirement_threshold is the session cost (i.e. compute unit consumption)
	// threshold which asserts that a session MUST have a corresponding proof when its cost
	// is equal to or above the threshold. This is in contrast to the this requirement
	// being determined probabilistically via ProofRequestProbability.
	//
	// TODO_MAINNET: Consider renaming this to `proof_requirement_threshold_compute_units`.
	ProofRequirementThreshold uint64 `` /* 139-byte string literal not displayed */
	// proof_missing_penalty is the number of tokens (uPOKT) which should be slashed from a supplier
	// when a proof is required (either via proof_requirement_threshold or proof_missing_penalty)
	// but is not provided.
	ProofMissingPenalty *v1beta1.Coin `protobuf:"bytes,4,opt,name=proof_missing_penalty,json=proofMissingPenalty,proto3" json:"proof_missing_penalty,omitempty"`
	// proof_submission_fee is the number of tokens (uPOKT) which should be paid by
	// the supplier operator when submitting a proof.
	// This is needed to account for the cost of storing proofs on-chain and prevent
	// spamming (i.e. sybil bloat attacks) the network with non-required proofs.
	ProofSubmissionFee *v1beta1.Coin `protobuf:"bytes,5,opt,name=proof_submission_fee,json=proofSubmissionFee,proto3" json:"proof_submission_fee,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetProofMissingPenalty added in v0.0.3

func (x *Params) GetProofMissingPenalty() *v1beta1.Coin

func (*Params) GetProofRequestProbability added in v0.0.3

func (x *Params) GetProofRequestProbability() float32

func (*Params) GetProofRequirementThreshold added in v0.0.3

func (x *Params) GetProofRequirementThreshold() uint64

func (*Params) GetProofSubmissionFee added in v0.0.8

func (x *Params) GetProofSubmissionFee() *v1beta1.Coin

func (*Params) GetRelayDifficultyTargetHash added in v0.0.5

func (x *Params) GetRelayDifficultyTargetHash() []byte

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Proof

type Proof struct {

	// Address of the supplier's operator that submitted this proof.
	SupplierOperatorAddress string `` /* 132-byte string literal not displayed */
	// The session header of the session that this claim is for.
	SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	// The serialized SMST proof from the `#ClosestProof()` method.
	ClosestMerkleProof []byte `protobuf:"bytes,3,opt,name=closest_merkle_proof,json=closestMerkleProof,proto3" json:"closest_merkle_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*Proof) Descriptor deprecated

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetClosestMerkleProof

func (x *Proof) GetClosestMerkleProof() []byte

func (*Proof) GetSessionHeader

func (x *Proof) GetSessionHeader() *session.SessionHeader

func (*Proof) GetSupplierOperatorAddress added in v0.0.6

func (x *Proof) GetSupplierOperatorAddress() string

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

func (x *Proof) ProtoReflect() protoreflect.Message

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

type ProofRequirementReason added in v0.0.3

type ProofRequirementReason int32
const (
	ProofRequirementReason_NOT_REQUIRED  ProofRequirementReason = 0
	ProofRequirementReason_PROBABILISTIC ProofRequirementReason = 1
	ProofRequirementReason_THRESHOLD     ProofRequirementReason = 2
)

func (ProofRequirementReason) Descriptor added in v0.0.3

func (ProofRequirementReason) Enum added in v0.0.3

func (ProofRequirementReason) EnumDescriptor deprecated added in v0.0.3

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

Deprecated: Use ProofRequirementReason.Descriptor instead.

func (ProofRequirementReason) Number added in v0.0.3

func (ProofRequirementReason) String added in v0.0.3

func (x ProofRequirementReason) String() string

func (ProofRequirementReason) Type added in v0.0.3

type QueryAllClaimsRequest

type QueryAllClaimsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// Types that are assignable to Filter:
	//
	//	*QueryAllClaimsRequest_SupplierOperatorAddress
	//	*QueryAllClaimsRequest_SessionId
	//	*QueryAllClaimsRequest_SessionEndHeight
	Filter isQueryAllClaimsRequest_Filter `protobuf_oneof:"filter"`
	// contains filtered or unexported fields
}

func (*QueryAllClaimsRequest) Descriptor deprecated

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

Deprecated: Use QueryAllClaimsRequest.ProtoReflect.Descriptor instead.

func (*QueryAllClaimsRequest) GetFilter

func (x *QueryAllClaimsRequest) GetFilter() isQueryAllClaimsRequest_Filter

func (*QueryAllClaimsRequest) GetPagination

func (x *QueryAllClaimsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllClaimsRequest) GetSessionEndHeight

func (x *QueryAllClaimsRequest) GetSessionEndHeight() uint64

func (*QueryAllClaimsRequest) GetSessionId

func (x *QueryAllClaimsRequest) GetSessionId() string

func (*QueryAllClaimsRequest) GetSupplierOperatorAddress added in v0.0.6

func (x *QueryAllClaimsRequest) GetSupplierOperatorAddress() string

func (*QueryAllClaimsRequest) ProtoMessage

func (*QueryAllClaimsRequest) ProtoMessage()

func (*QueryAllClaimsRequest) ProtoReflect

func (x *QueryAllClaimsRequest) ProtoReflect() protoreflect.Message

func (*QueryAllClaimsRequest) Reset

func (x *QueryAllClaimsRequest) Reset()

func (*QueryAllClaimsRequest) String

func (x *QueryAllClaimsRequest) String() string

type QueryAllClaimsRequest_SessionEndHeight

type QueryAllClaimsRequest_SessionEndHeight struct {
	SessionEndHeight uint64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3,oneof"`
}

type QueryAllClaimsRequest_SessionId

type QueryAllClaimsRequest_SessionId struct {
	SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3,oneof"`
}

type QueryAllClaimsRequest_SupplierOperatorAddress added in v0.0.6

type QueryAllClaimsRequest_SupplierOperatorAddress struct {
	SupplierOperatorAddress string `protobuf:"bytes,2,opt,name=supplier_operator_address,json=supplierOperatorAddress,proto3,oneof"`
}

type QueryAllClaimsResponse

type QueryAllClaimsResponse struct {
	Claims     []*Claim              `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllClaimsResponse) Descriptor deprecated

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

Deprecated: Use QueryAllClaimsResponse.ProtoReflect.Descriptor instead.

func (*QueryAllClaimsResponse) GetClaims

func (x *QueryAllClaimsResponse) GetClaims() []*Claim

func (*QueryAllClaimsResponse) GetPagination

func (x *QueryAllClaimsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllClaimsResponse) ProtoMessage

func (*QueryAllClaimsResponse) ProtoMessage()

func (*QueryAllClaimsResponse) ProtoReflect

func (x *QueryAllClaimsResponse) ProtoReflect() protoreflect.Message

func (*QueryAllClaimsResponse) Reset

func (x *QueryAllClaimsResponse) Reset()

func (*QueryAllClaimsResponse) String

func (x *QueryAllClaimsResponse) String() string

type QueryAllProofsRequest

type QueryAllProofsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// Types that are assignable to Filter:
	//
	//	*QueryAllProofsRequest_SupplierOperatorAddress
	//	*QueryAllProofsRequest_SessionId
	//	*QueryAllProofsRequest_SessionEndHeight
	Filter isQueryAllProofsRequest_Filter `protobuf_oneof:"filter"`
	// contains filtered or unexported fields
}

func (*QueryAllProofsRequest) Descriptor deprecated

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

Deprecated: Use QueryAllProofsRequest.ProtoReflect.Descriptor instead.

func (*QueryAllProofsRequest) GetFilter

func (x *QueryAllProofsRequest) GetFilter() isQueryAllProofsRequest_Filter

func (*QueryAllProofsRequest) GetPagination

func (x *QueryAllProofsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllProofsRequest) GetSessionEndHeight

func (x *QueryAllProofsRequest) GetSessionEndHeight() uint64

func (*QueryAllProofsRequest) GetSessionId

func (x *QueryAllProofsRequest) GetSessionId() string

func (*QueryAllProofsRequest) GetSupplierOperatorAddress added in v0.0.6

func (x *QueryAllProofsRequest) GetSupplierOperatorAddress() string

func (*QueryAllProofsRequest) ProtoMessage

func (*QueryAllProofsRequest) ProtoMessage()

func (*QueryAllProofsRequest) ProtoReflect

func (x *QueryAllProofsRequest) ProtoReflect() protoreflect.Message

func (*QueryAllProofsRequest) Reset

func (x *QueryAllProofsRequest) Reset()

func (*QueryAllProofsRequest) String

func (x *QueryAllProofsRequest) String() string

type QueryAllProofsRequest_SessionEndHeight

type QueryAllProofsRequest_SessionEndHeight struct {
	SessionEndHeight uint64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3,oneof"`
}

type QueryAllProofsRequest_SessionId

type QueryAllProofsRequest_SessionId struct {
	SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3,oneof"`
}

type QueryAllProofsRequest_SupplierOperatorAddress added in v0.0.6

type QueryAllProofsRequest_SupplierOperatorAddress struct {
	SupplierOperatorAddress string `protobuf:"bytes,2,opt,name=supplier_operator_address,json=supplierOperatorAddress,proto3,oneof"`
}

type QueryAllProofsResponse

type QueryAllProofsResponse struct {
	Proofs     []*Proof              `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllProofsResponse) Descriptor deprecated

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

Deprecated: Use QueryAllProofsResponse.ProtoReflect.Descriptor instead.

func (*QueryAllProofsResponse) GetPagination

func (x *QueryAllProofsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllProofsResponse) GetProofs

func (x *QueryAllProofsResponse) GetProofs() []*Proof

func (*QueryAllProofsResponse) ProtoMessage

func (*QueryAllProofsResponse) ProtoMessage()

func (*QueryAllProofsResponse) ProtoReflect

func (x *QueryAllProofsResponse) ProtoReflect() protoreflect.Message

func (*QueryAllProofsResponse) Reset

func (x *QueryAllProofsResponse) Reset()

func (*QueryAllProofsResponse) String

func (x *QueryAllProofsResponse) String() string

type QueryClient added in v0.0.3

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 Claim items.
	Claim(ctx context.Context, in *QueryGetClaimRequest, opts ...grpc.CallOption) (*QueryGetClaimResponse, error)
	AllClaims(ctx context.Context, in *QueryAllClaimsRequest, opts ...grpc.CallOption) (*QueryAllClaimsResponse, error)
	// Queries a list of Proof items.
	Proof(ctx context.Context, in *QueryGetProofRequest, opts ...grpc.CallOption) (*QueryGetProofResponse, error)
	AllProofs(ctx context.Context, in *QueryAllProofsRequest, opts ...grpc.CallOption) (*QueryAllProofsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Query defines the gRPC querier service.

func NewQueryClient added in v0.0.3

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGetClaimRequest

type QueryGetClaimRequest struct {
	SessionId               string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SupplierOperatorAddress string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryGetClaimRequest) Descriptor deprecated

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

Deprecated: Use QueryGetClaimRequest.ProtoReflect.Descriptor instead.

func (*QueryGetClaimRequest) GetSessionId

func (x *QueryGetClaimRequest) GetSessionId() string

func (*QueryGetClaimRequest) GetSupplierOperatorAddress added in v0.0.6

func (x *QueryGetClaimRequest) GetSupplierOperatorAddress() string

func (*QueryGetClaimRequest) ProtoMessage

func (*QueryGetClaimRequest) ProtoMessage()

func (*QueryGetClaimRequest) ProtoReflect

func (x *QueryGetClaimRequest) ProtoReflect() protoreflect.Message

func (*QueryGetClaimRequest) Reset

func (x *QueryGetClaimRequest) Reset()

func (*QueryGetClaimRequest) String

func (x *QueryGetClaimRequest) String() string

type QueryGetClaimResponse

type QueryGetClaimResponse struct {
	Claim *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGetClaimResponse) Descriptor deprecated

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

Deprecated: Use QueryGetClaimResponse.ProtoReflect.Descriptor instead.

func (*QueryGetClaimResponse) GetClaim

func (x *QueryGetClaimResponse) GetClaim() *Claim

func (*QueryGetClaimResponse) ProtoMessage

func (*QueryGetClaimResponse) ProtoMessage()

func (*QueryGetClaimResponse) ProtoReflect

func (x *QueryGetClaimResponse) ProtoReflect() protoreflect.Message

func (*QueryGetClaimResponse) Reset

func (x *QueryGetClaimResponse) Reset()

func (*QueryGetClaimResponse) String

func (x *QueryGetClaimResponse) String() string

type QueryGetProofRequest

type QueryGetProofRequest struct {
	SessionId               string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SupplierOperatorAddress string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryGetProofRequest) Descriptor deprecated

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

Deprecated: Use QueryGetProofRequest.ProtoReflect.Descriptor instead.

func (*QueryGetProofRequest) GetSessionId

func (x *QueryGetProofRequest) GetSessionId() string

func (*QueryGetProofRequest) GetSupplierOperatorAddress added in v0.0.6

func (x *QueryGetProofRequest) GetSupplierOperatorAddress() string

func (*QueryGetProofRequest) ProtoMessage

func (*QueryGetProofRequest) ProtoMessage()

func (*QueryGetProofRequest) ProtoReflect

func (x *QueryGetProofRequest) ProtoReflect() protoreflect.Message

func (*QueryGetProofRequest) Reset

func (x *QueryGetProofRequest) Reset()

func (*QueryGetProofRequest) String

func (x *QueryGetProofRequest) String() string

type QueryGetProofResponse

type QueryGetProofResponse struct {
	Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGetProofResponse) Descriptor deprecated

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

Deprecated: Use QueryGetProofResponse.ProtoReflect.Descriptor instead.

func (*QueryGetProofResponse) GetProof

func (x *QueryGetProofResponse) GetProof() *Proof

func (*QueryGetProofResponse) ProtoMessage

func (*QueryGetProofResponse) ProtoMessage()

func (*QueryGetProofResponse) ProtoReflect

func (x *QueryGetProofResponse) ProtoReflect() protoreflect.Message

func (*QueryGetProofResponse) Reset

func (x *QueryGetProofResponse) Reset()

func (*QueryGetProofResponse) String

func (x *QueryGetProofResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer added in v0.0.3

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Claim items.
	Claim(context.Context, *QueryGetClaimRequest) (*QueryGetClaimResponse, error)
	AllClaims(context.Context, *QueryAllClaimsRequest) (*QueryAllClaimsResponse, error)
	// Queries a list of Proof items.
	Proof(context.Context, *QueryGetProofRequest) (*QueryGetProofResponse, error)
	AllProofs(context.Context, *QueryAllProofsRequest) (*QueryAllProofsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

Query defines the gRPC querier service.

type UnimplementedMsgServer added in v0.0.3

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CreateClaim added in v0.0.3

func (UnimplementedMsgServer) SubmitProof added in v0.0.3

func (UnimplementedMsgServer) UpdateParam added in v0.0.3

func (UnimplementedMsgServer) UpdateParams added in v0.0.3

type UnimplementedQueryServer added in v0.0.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) AllClaims added in v0.0.3

func (UnimplementedQueryServer) AllProofs added in v0.0.3

func (UnimplementedQueryServer) Claim added in v0.0.3

func (UnimplementedQueryServer) Params added in v0.0.3

func (UnimplementedQueryServer) Proof added in v0.0.3

type UnsafeMsgServer added in v0.0.3

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer added in v0.0.3

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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