proof

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 19 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.

DO NOT DELETE this file. It is intentionally added and kept empty to ensure an empty package exists and can be referenced to prevent the ignite CLI from throwing errors during proto generation.

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

This section is empty.

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 (
	ClaimProofStatus_name = map[int32]string{
		0: "PENDING_VALIDATION",
		1: "VALIDATED",
		2: "INVALID",
	}
	ClaimProofStatus_value = map[string]int32{
		"PENDING_VALIDATION": 0,
		"VALIDATED":          1,
		"INVALID":            2,
	}
)

Enum value maps for ClaimProofStatus.

View Source
var File_pocket_proof_event_proto protoreflect.FileDescriptor
View Source
var File_pocket_proof_genesis_proto protoreflect.FileDescriptor
View Source
var File_pocket_proof_params_proto protoreflect.FileDescriptor
View Source
var File_pocket_proof_query_proto protoreflect.FileDescriptor
View Source
var File_pocket_proof_tx_proto protoreflect.FileDescriptor
View Source
var File_pocket_proof_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Claim

type Claim struct {

	// Address of the supplier's operator that submitted this claim.
	SupplierOperatorAddress string `` // the address of the supplier's operator that submitted this claim
	/* 132-byte string literal not displayed */
	// Session header this claim is for.
	SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	// Root hash from smt.SMST#Root().
	RootHash []byte `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// Important: This field MUST only be set by proofKeeper#EnsureValidProofSignaturesAndClosestPath
	ProofValidationStatus ClaimProofStatus `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

Claim is the serialized object stored onchain for claims pending to be proven

func (*Claim) Descriptor deprecated

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

Deprecated: Use Claim.ProtoReflect.Descriptor instead.

func (*Claim) GetProofValidationStatus

func (x *Claim) GetProofValidationStatus() ClaimProofStatus

func (*Claim) GetRootHash

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

func (*Claim) GetSessionHeader

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

func (*Claim) GetSupplierOperatorAddress

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

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

func (ClaimProofStage) Descriptor

func (ClaimProofStage) Enum

func (x ClaimProofStage) Enum() *ClaimProofStage

func (ClaimProofStage) EnumDescriptor deprecated

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

Deprecated: Use ClaimProofStage.Descriptor instead.

func (ClaimProofStage) Number

func (ClaimProofStage) String

func (x ClaimProofStage) String() string

func (ClaimProofStage) Type

type ClaimProofStatus

type ClaimProofStatus int32

Status of proof validation for a claim Default is PENDING_VALIDATION regardless of proof requirement

const (
	ClaimProofStatus_PENDING_VALIDATION ClaimProofStatus = 0
	ClaimProofStatus_VALIDATED          ClaimProofStatus = 1
	ClaimProofStatus_INVALID            ClaimProofStatus = 2
)

func (ClaimProofStatus) Descriptor

func (ClaimProofStatus) Enum

func (ClaimProofStatus) EnumDescriptor deprecated

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

Deprecated: Use ClaimProofStatus.Descriptor instead.

func (ClaimProofStatus) Number

func (ClaimProofStatus) String

func (x ClaimProofStatus) String() string

func (ClaimProofStatus) Type

type EventClaimCreated

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"`
	NumClaimedComputeUnits   uint64        `` /* 132-byte string literal not displayed */
	NumEstimatedComputeUnits uint64        `` /* 138-byte string literal not displayed */
	ClaimedUpokt             *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"`
	// contains filtered or unexported fields
}

func (*EventClaimCreated) Descriptor deprecated

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

Deprecated: Use EventClaimCreated.ProtoReflect.Descriptor instead.

func (*EventClaimCreated) GetClaim

func (x *EventClaimCreated) GetClaim() *Claim

func (*EventClaimCreated) GetClaimedUpokt

func (x *EventClaimCreated) GetClaimedUpokt() *v1beta1.Coin

func (*EventClaimCreated) GetNumClaimedComputeUnits

func (x *EventClaimCreated) GetNumClaimedComputeUnits() uint64

func (*EventClaimCreated) GetNumEstimatedComputeUnits

func (x *EventClaimCreated) GetNumEstimatedComputeUnits() uint64

func (*EventClaimCreated) GetNumRelays

func (x *EventClaimCreated) GetNumRelays() uint64

func (*EventClaimCreated) ProtoMessage

func (*EventClaimCreated) ProtoMessage()

func (*EventClaimCreated) ProtoReflect

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

func (*EventClaimCreated) Reset

func (x *EventClaimCreated) Reset()

func (*EventClaimCreated) String

func (x *EventClaimCreated) String() string

type EventClaimUpdated

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"`
	NumClaimedComputeUnits   uint64        `` /* 132-byte string literal not displayed */
	NumEstimatedComputeUnits uint64        `` /* 138-byte string literal not displayed */
	ClaimedUpokt             *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"`
	// contains filtered or unexported fields
}

TODO_TEST: Add coverage for claim updates.

func (*EventClaimUpdated) Descriptor deprecated

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

Deprecated: Use EventClaimUpdated.ProtoReflect.Descriptor instead.

func (*EventClaimUpdated) GetClaim

func (x *EventClaimUpdated) GetClaim() *Claim

func (*EventClaimUpdated) GetClaimedUpokt

func (x *EventClaimUpdated) GetClaimedUpokt() *v1beta1.Coin

func (*EventClaimUpdated) GetNumClaimedComputeUnits

func (x *EventClaimUpdated) GetNumClaimedComputeUnits() uint64

func (*EventClaimUpdated) GetNumEstimatedComputeUnits

func (x *EventClaimUpdated) GetNumEstimatedComputeUnits() uint64

func (*EventClaimUpdated) GetNumRelays

func (x *EventClaimUpdated) GetNumRelays() uint64

func (*EventClaimUpdated) ProtoMessage

func (*EventClaimUpdated) ProtoMessage()

func (*EventClaimUpdated) ProtoReflect

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

func (*EventClaimUpdated) Reset

func (x *EventClaimUpdated) Reset()

func (*EventClaimUpdated) String

func (x *EventClaimUpdated) String() string

type EventProofSubmitted

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"`
	NumClaimedComputeUnits   uint64        `` /* 132-byte string literal not displayed */
	NumEstimatedComputeUnits uint64        `` /* 138-byte string literal not displayed */
	ClaimedUpokt             *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"`
	// contains filtered or unexported fields
}

func (*EventProofSubmitted) Descriptor deprecated

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

Deprecated: Use EventProofSubmitted.ProtoReflect.Descriptor instead.

func (*EventProofSubmitted) GetClaim

func (x *EventProofSubmitted) GetClaim() *Claim

func (*EventProofSubmitted) GetClaimedUpokt

func (x *EventProofSubmitted) GetClaimedUpokt() *v1beta1.Coin

func (*EventProofSubmitted) GetNumClaimedComputeUnits

func (x *EventProofSubmitted) GetNumClaimedComputeUnits() uint64

func (*EventProofSubmitted) GetNumEstimatedComputeUnits

func (x *EventProofSubmitted) GetNumEstimatedComputeUnits() uint64

func (*EventProofSubmitted) GetNumRelays

func (x *EventProofSubmitted) GetNumRelays() uint64

func (*EventProofSubmitted) GetProof

func (x *EventProofSubmitted) GetProof() *Proof

func (*EventProofSubmitted) ProtoMessage

func (*EventProofSubmitted) ProtoMessage()

func (*EventProofSubmitted) ProtoReflect

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

func (*EventProofSubmitted) Reset

func (x *EventProofSubmitted) Reset()

func (*EventProofSubmitted) String

func (x *EventProofSubmitted) String() string

type EventProofUpdated

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"`
	NumClaimedComputeUnits   uint64        `` /* 132-byte string literal not displayed */
	NumEstimatedComputeUnits uint64        `` /* 138-byte string literal not displayed */
	ClaimedUpokt             *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"`
	// contains filtered or unexported fields
}

TODO_TEST: Add coverage for proof updates.

func (*EventProofUpdated) Descriptor deprecated

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

Deprecated: Use EventProofUpdated.ProtoReflect.Descriptor instead.

func (*EventProofUpdated) GetClaim

func (x *EventProofUpdated) GetClaim() *Claim

func (*EventProofUpdated) GetClaimedUpokt

func (x *EventProofUpdated) GetClaimedUpokt() *v1beta1.Coin

func (*EventProofUpdated) GetNumClaimedComputeUnits

func (x *EventProofUpdated) GetNumClaimedComputeUnits() uint64

func (*EventProofUpdated) GetNumEstimatedComputeUnits

func (x *EventProofUpdated) GetNumEstimatedComputeUnits() uint64

func (*EventProofUpdated) GetNumRelays

func (x *EventProofUpdated) GetNumRelays() uint64

func (*EventProofUpdated) GetProof

func (x *EventProofUpdated) GetProof() *Proof

func (*EventProofUpdated) ProtoMessage

func (*EventProofUpdated) ProtoMessage()

func (*EventProofUpdated) ProtoReflect

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

func (*EventProofUpdated) Reset

func (x *EventProofUpdated) Reset()

func (*EventProofUpdated) String

func (x *EventProofUpdated) String() string

type EventProofValidityChecked

type EventProofValidityChecked struct {
	Proof       *Proof           `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	BlockHeight uint64           `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	ProofStatus ClaimProofStatus `` /* 130-byte string literal not displayed */
	// reason is the string representation of the error that led to the proof being
	// marked as invalid (e.g. "invalid closest merkle proof", "invalid relay request signature")
	FailureReason string `protobuf:"bytes,4,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// contains filtered or unexported fields
}

Event emitted after a proof has been checked for validity in the proof module's EndBlocker.

func (*EventProofValidityChecked) Descriptor deprecated

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

Deprecated: Use EventProofValidityChecked.ProtoReflect.Descriptor instead.

func (*EventProofValidityChecked) GetBlockHeight

func (x *EventProofValidityChecked) GetBlockHeight() uint64

func (*EventProofValidityChecked) GetFailureReason

func (x *EventProofValidityChecked) GetFailureReason() string

func (*EventProofValidityChecked) GetProof

func (x *EventProofValidityChecked) GetProof() *Proof

func (*EventProofValidityChecked) GetProofStatus

func (x *EventProofValidityChecked) GetProofStatus() ClaimProofStatus

func (*EventProofValidityChecked) ProtoMessage

func (*EventProofValidityChecked) ProtoMessage()

func (*EventProofValidityChecked) ProtoReflect

func (*EventProofValidityChecked) Reset

func (x *EventProofValidityChecked) Reset()

func (*EventProofValidityChecked) String

func (x *EventProofValidityChecked) 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 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

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

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 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.SparseCompactMerkleClosestProof
	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

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

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

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_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

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

Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.

func (*MsgUpdateParam) GetAsBytes

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

func (*MsgUpdateParam) GetAsCoin

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

func (*MsgUpdateParam) GetAsFloat

func (x *MsgUpdateParam) GetAsFloat() float64

func (*MsgUpdateParam) GetAsType

func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAuthority

func (x *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName

func (x *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) ProtoMessage

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) ProtoReflect

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

func (*MsgUpdateParam) Reset

func (x *MsgUpdateParam) Reset()

func (*MsgUpdateParam) String

func (x *MsgUpdateParam) String() string

type MsgUpdateParamResponse

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

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

Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamResponse) GetParams

func (x *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) ProtoMessage

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) ProtoReflect

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

func (*MsgUpdateParamResponse) Reset

func (x *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) String

func (x *MsgUpdateParamResponse) String() string

type MsgUpdateParam_AsBytes

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

type MsgUpdateParam_AsCoin

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

type MsgUpdateParam_AsFloat

type MsgUpdateParam_AsFloat struct {
	AsFloat float64 `protobuf:"fixed64,8,opt,name=as_float,json=asFloat,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 {

	// 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 float64 `` /* 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_MIGRATION: Consider renaming this to `proof_requirement_threshold_upokt`.
	ProofRequirementThreshold *v1beta1.Coin `` /* 138-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.
	// TODO_MAINNET_MIGRATION: Consider renaming this to `proof_missing_penalty_upokt`.
	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 onchain and prevent
	// spamming (i.e. sybil bloat attacks) the network with non-required proofs.
	// TODO_MAINNET_MIGRATION: Consider renaming this to `proof_submission_fee_upokt`.
	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

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

func (*Params) GetProofRequestProbability

func (x *Params) GetProofRequestProbability() float64

func (*Params) GetProofRequirementThreshold

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

func (*Params) GetProofSubmissionFee

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

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 compacted 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

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

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

func (ProofRequirementReason) Descriptor

func (ProofRequirementReason) Enum

func (ProofRequirementReason) EnumDescriptor deprecated

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

Deprecated: Use ProofRequirementReason.Descriptor instead.

func (ProofRequirementReason) Number

func (ProofRequirementReason) String

func (x ProofRequirementReason) String() string

func (ProofRequirementReason) Type

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

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

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

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

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 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

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

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 SessionSMT added in v0.1.2

type SessionSMT struct {
	SessionHeader           *session.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
	SupplierOperatorAddress string                 `` /* 132-byte string literal not displayed */
	SmtRoot                 []byte                 `protobuf:"bytes,3,opt,name=smt_root,json=smtRoot,proto3" json:"smt_root,omitempty"`
	// contains filtered or unexported fields
}

SessionSMT is the serializable session's SMST used to persist the session's state offchain by the RelayMiner. It is not used for any onchain logic.

func (*SessionSMT) Descriptor deprecated added in v0.1.2

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

Deprecated: Use SessionSMT.ProtoReflect.Descriptor instead.

func (*SessionSMT) GetSessionHeader added in v0.1.2

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

func (*SessionSMT) GetSmtRoot added in v0.1.2

func (x *SessionSMT) GetSmtRoot() []byte

func (*SessionSMT) GetSupplierOperatorAddress added in v0.1.2

func (x *SessionSMT) GetSupplierOperatorAddress() string

func (*SessionSMT) ProtoMessage added in v0.1.2

func (*SessionSMT) ProtoMessage()

func (*SessionSMT) ProtoReflect added in v0.1.2

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

func (*SessionSMT) Reset added in v0.1.2

func (x *SessionSMT) Reset()

func (*SessionSMT) String added in v0.1.2

func (x *SessionSMT) String() string

Directories

Path Synopsis
DO NOT DELETE this file.
DO NOT DELETE this file.

Jump to

Keyboard shortcuts

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