types

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// Module name as value category
	AttributeValueCategory = ModuleName

	// Program related events
	EventTypeCreateProgram   = "create_program"
	EventTypeEditProgram     = "edit_program"
	EventTypeActivateProgram = "activate_program"
	EventTypeCloseProgram    = "close_program"

	// Finding related events
	EventTypeSubmitFinding          = "submit_finding"
	EventTypeEditFinding            = "edit_finding"
	EventTypeEditFindingPaymentHash = "edit_finding_payment_hash"
	EventTypeActivateFinding        = "activate_finding"
	EventTypeConfirmFinding         = "confirm_finding"
	EventTypeConfirmFindingPaid     = "confirm_finding_paid"
	EventTypeCloseFinding           = "close_finding"
	EventTypePublishFinding         = "publish_finding"

	// Program/Finding attributes
	AttributeKeyProgramID = "program_id"
	AttributeKeyFindingID = "finding_id"

	// Theorem related events
	EventTypeCreateTheorem           = "create_theorem"
	EventTypeGrantTheorem            = "grant_theorem"
	EventTypeDeleteTheorem           = "delete_theorem"
	EventTypeDistributeReward        = "distribute_theorem_reward"
	EventTypeImportedReward          = "imported_reward"
	EventTypeUpdateTheoremComplexity = "update_theorem_complexity"

	// Proof related events
	EventTypeSubmitProofHash         = "submit_proof_hash"
	EventTypeSubmitProofDetail       = "submit_proof_detail"
	EventTypeSubmitProofVerification = "submit_proof_verification"
	EventTypeDepositProof            = "deposit_proof"
	EventTypeDeleteProof             = "delete_proof"
	EventTypeWithdrawReward          = "withdraw_reward"
	EventTypeProofPassed             = "proof_passed"
	EventTypeProofFailed             = "proof_failed"

	// Theorem/Proof attributes
	AttributeKeyTheoremID      = "theorem_id"
	AttributeKeyProofID        = "proof_id"
	AttributeKeyProposer       = "proposer"
	AttributeKeyTheoremGrantor = "grantor"
	AttributeKeyProofDepositor = "depositor"
	AttributeKeyChecker        = "checker"
	AttributeKeyProofStatus    = "proof_status"
	AttributeKeyReward         = "reward"
	AttributeKeyAddress        = "address"
	AttributeKeyComplexity     = "complexity"
)
View Source
const (
	ModuleName = "bounty"

	RouterKey = ModuleName

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const (
	// FundTypeGrant is used for grant operations
	FundTypeGrant = "grant"

	// FundTypeDeposit is used for deposit operations
	FundTypeDeposit = "deposit"
)

Fund types

View Source
const (
	// DefaultStartingTheoremID is 1
	DefaultStartingTheoremID uint64 = 1
)

Variables

View Source
var (
	ErrInvalidLengthBounty        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBounty          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBounty = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrProgramAlreadyExists      = errors.Register(ModuleName, errProgramAlreadyExists, "program already exists")
	ErrProgramNotExists          = errors.Register(ModuleName, errProgramNotExists, "program does not exists")
	ErrProgramAlreadyActive      = errors.Register(ModuleName, errProgramAlreadyActive, "program already active")
	ErrProgramAlreadyClosed      = errors.Register(ModuleName, errProgramAlreadyClosed, "program already closed")
	ErrProgramNotActive          = errors.Register(ModuleName, errProgramInactive, "program status is not active")
	ErrProgramStatusInvalid      = errors.Register(ModuleName, errProgramStatusInvalid, "program status invalid")
	ErrProgramOperatorNotAllowed = errors.Register(ModuleName, errProgramOperatorNotAllowed, "program access denied")
	ErrProgramCloseNotAllowed    = errors.Register(ModuleName, errProgramCloseNotAllowed, "cannot close the program")
	ErrProgramID                 = errors.Register(ModuleName, errProgramID, "invalid program id")
)

[1xx] Program

View Source
var (
	ErrFindingAlreadyExists        = errors.Register(ModuleName, errFindingAlreadyExists, "finding already exists")
	ErrFindingNotExists            = errors.Register(ModuleName, errFindingNotExists, "finding does not exist")
	ErrFindingStatusInvalid        = errors.Register(ModuleName, errFindingStatusInvalid, "invalid finding status")
	ErrFindingHashInvalid          = errors.Register(ModuleName, errFindingHashInvalid, "invalid finding hash")
	ErrFindingSeverityLevelInvalid = errors.Register(ModuleName, errFindingSeverityLevelInvalid, "invalid finding severity level")
	ErrFindingOperatorNotAllowed   = errors.Register(ModuleName, errFindingOperatorNotAllowed, "finding access denied")
	ErrFindingID                   = errors.Register(ModuleName, errFindingID, "invalid finding id")
)

[2xx] Finding

View Source
var (
	ErrInvalidContent            = errors.Register(ModuleName, 301, "invalid content")
	ErrTheoremProposal           = errors.Register(ModuleName, 302, "inactive theorem")
	ErrTheoremProofStatusInvalid = errors.Register(ModuleName, 303, "theorem is not in proof period")
)

[3xx] Theorem

View Source
var (
	ErrProofStatusInvalid      = errors.Register(ModuleName, 401, "proof status not hash locked")
	ErrProofOperatorNotAllowed = errors.Register(ModuleName, 402, "proof access denied")
	ErrProofAlreadyExists      = errors.Register(ModuleName, 403, "proof already exists")
	ErrProofHashInvalid        = errors.Register(ModuleName, 404, "invalid proof hash")
)

[4xx] Proof

View Source
var (
	ErrMinGrantTooSmall         = errors.Register(ModuleName, 501, "minimum grant is too small")
	ErrMinDepositTooSmall       = errors.Register(ModuleName, 502, "minimum deposit is too small")
	ErrInvalidDepositDenom      = errors.Register(ModuleName, 503, "invalid deposit denom")
	ErrInsufficientGrantChecker = errors.Register(ModuleName, 504, "insufficient grant for checker rewards")
	ErrInsufficientGrantTotal   = errors.Register(ModuleName, 505, "insufficient grant for total distribution")
)

[5xx] Deposit & Distribution

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Program related keys
	ProgramKeyPrefix      = collections.NewPrefix(1)
	FindingKeyPrefix      = collections.NewPrefix(2)
	ProgramFindingListKey = collections.NewPrefix(10)

	// Theorem related keys
	TheoremIDKey          = collections.NewPrefix(21)
	TheoremKeyPrefix      = collections.NewPrefix(22)
	ActiveTheoremQueueKey = collections.NewPrefix(23)

	// Proof related keys
	ProofKeyPrefix      = collections.NewPrefix(31)
	ActiveProofQueueKey = collections.NewPrefix(32)

	// Grant and deposit related keys
	GrantKeyPrefix          = collections.NewPrefix(41)
	DepositKeyPrefix        = collections.NewPrefix(42)
	RewardKeyPrefix         = collections.NewPrefix(43)
	ImportedRewardKeyPrefix = collections.NewPrefix(45)

	// Relationship keys
	TheoremProofPrefix   = collections.NewPrefix(51)
	ProofByTheoremPrefix = collections.NewPrefix(52)
	GrantByTheoremPrefix = collections.NewPrefix(53)

	// Parameter key
	ParamsKey = collections.NewPrefix(61)
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var FindingStatus_name = map[int32]string{
	0: "FINDING_STATUS_SUBMITTED",
	1: "FINDING_STATUS_ACTIVE",
	2: "FINDING_STATUS_CONFIRMED",
	3: "FINDING_STATUS_PAID",
	4: "FINDING_STATUS_CLOSED",
}
View Source
var FindingStatus_value = map[string]int32{
	"FINDING_STATUS_SUBMITTED": 0,
	"FINDING_STATUS_ACTIVE":    1,
	"FINDING_STATUS_CONFIRMED": 2,
	"FINDING_STATUS_PAID":      3,
	"FINDING_STATUS_CLOSED":    4,
}
View Source
var ProgramStatus_name = map[int32]string{
	0: "PROGRAM_STATUS_INACTIVE",
	1: "PROGRAM_STATUS_ACTIVE",
	2: "PROGRAM_STATUS_CLOSED",
}
View Source
var ProgramStatus_value = map[string]int32{
	"PROGRAM_STATUS_INACTIVE": 0,
	"PROGRAM_STATUS_ACTIVE":   1,
	"PROGRAM_STATUS_CLOSED":   2,
}
View Source
var ProofStatus_name = map[int32]string{
	0: "PROOF_STATUS_UNSPECIFIED",
	1: "PROOF_STATUS_HASH_LOCK_PERIOD",
	2: "PROOF_STATUS_HASH_LOCK_TIMEOUT",
	3: "PROOF_STATUS_HASH_DETAIL_PERIOD",
	4: "PROOF_STATUS_PASSED",
	5: "PROOF_STATUS_FAILED",
}
View Source
var ProofStatus_value = map[string]int32{
	"PROOF_STATUS_UNSPECIFIED":        0,
	"PROOF_STATUS_HASH_LOCK_PERIOD":   1,
	"PROOF_STATUS_HASH_LOCK_TIMEOUT":  2,
	"PROOF_STATUS_HASH_DETAIL_PERIOD": 3,
	"PROOF_STATUS_PASSED":             4,
	"PROOF_STATUS_FAILED":             5,
}
View Source
var SeverityLevel_name = map[int32]string{
	0: "SEVERITY_LEVEL_UNSPECIFIED",
	1: "SEVERITY_LEVEL_CRITICAL",
	2: "SEVERITY_LEVEL_HIGH",
	3: "SEVERITY_LEVEL_MEDIUM",
	4: "SEVERITY_LEVEL_LOW",
	5: "SEVERITY_LEVEL_INFORMATIONAL",
}
View Source
var SeverityLevel_value = map[string]int32{
	"SEVERITY_LEVEL_UNSPECIFIED":   0,
	"SEVERITY_LEVEL_CRITICAL":      1,
	"SEVERITY_LEVEL_HIGH":          2,
	"SEVERITY_LEVEL_MEDIUM":        3,
	"SEVERITY_LEVEL_LOW":           4,
	"SEVERITY_LEVEL_INFORMATIONAL": 5,
}
View Source
var TheoremStatus_name = map[int32]string{
	0: "THEOREM_STATUS_UNSPECIFIED",
	1: "THEOREM_STATUS_PROOF_PERIOD",
	2: "THEOREM_STATUS_PASSED",
	3: "THEOREM_STATUS_CLOSED",
}
View Source
var TheoremStatus_value = map[string]int32{
	"THEOREM_STATUS_UNSPECIFIED":  0,
	"THEOREM_STATUS_PROOF_PERIOD": 1,
	"THEOREM_STATUS_PASSED":       2,
	"THEOREM_STATUS_CLOSED":       3,
}

Functions

func NormalizeSeverityLevel

func NormalizeSeverityLevel(level string) string

NormalizeSeverityLevel - normalize user specified severity level

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/bounty interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidFindingSeverityLevel

func ValidFindingSeverityLevel(level SeverityLevel) bool

ValidFindingSeverityLevel returns true if the finding level is valid and false otherwise.

func ValidFindingStatus

func ValidFindingStatus(status FindingStatus) bool

ValidFindingStatus returns true if the finding status is valid and false otherwise.

func ValidateComplexity added in v2.16.0

func ValidateComplexity(complexity int64, maxComplexity int64) error

ValidateComplexity validates that complexity is non-negative and within allowed range

func ValidateDeposit added in v2.15.0

func ValidateDeposit(deposit *Deposit) error

ValidateDeposit validates a deposit

func ValidateFinding added in v2.15.0

func ValidateFinding(finding *Finding) error

ValidateFinding validates a finding

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis - validate bounty genesis data

func ValidateGrant added in v2.15.0

func ValidateGrant(grant *Grant) error

ValidateGrant validates a grant

func ValidateProgram added in v2.15.0

func ValidateProgram(program *Program) error

ValidateProgram validates a program

func ValidateProof added in v2.15.0

func ValidateProof(proof *Proof) error

ValidateProof validates a proof

func ValidateReward added in v2.15.0

func ValidateReward(reward *Reward) error

ValidateReward validates a reward

func ValidateTheorem added in v2.15.0

func ValidateTheorem(theorem *Theorem, maxComplexity int64) error

ValidateTheorem validates a theorem

Types

type AccountKeeper added in v2.15.0

type AccountKeeper interface {
	AddressCodec() address.Codec
}

type BankKeeper added in v2.15.0

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CertKeeper

type CertKeeper interface {
	IsBountyAdmin(ctx context.Context, addr sdk.AccAddress) bool
}

type Deposit added in v2.15.0

type Deposit struct {
	// proof_id defines the unique id of the proof.
	ProofId string `protobuf:"bytes,1,opt,name=proof_id,json=proofId,proto3" json:"proof_id,omitempty"`
	// depositor defines the deposit addresses.
	Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// amount to be deposited by the depositor.
	Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"`
}

Deposit defines an amount deposited by a depositor for a proof.

func NewDeposit added in v2.15.0

func NewDeposit(proofID string, depositor sdk.AccAddress, amount sdk.Coins) Deposit

func (*Deposit) Descriptor added in v2.15.0

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

func (*Deposit) GetAmount added in v2.15.0

func (m *Deposit) GetAmount() []types1.Coin

func (*Deposit) GetDepositor added in v2.15.0

func (m *Deposit) GetDepositor() string

func (*Deposit) GetProofId added in v2.15.0

func (m *Deposit) GetProofId() string

func (*Deposit) Marshal added in v2.15.0

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

func (*Deposit) MarshalTo added in v2.15.0

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

func (*Deposit) MarshalToSizedBuffer added in v2.15.0

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

func (*Deposit) ProtoMessage added in v2.15.0

func (*Deposit) ProtoMessage()

func (*Deposit) Reset added in v2.15.0

func (m *Deposit) Reset()

func (*Deposit) Size added in v2.15.0

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

func (*Deposit) String added in v2.15.0

func (m *Deposit) String() string

func (*Deposit) Unmarshal added in v2.15.0

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

func (*Deposit) XXX_DiscardUnknown added in v2.15.0

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal added in v2.15.0

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

func (*Deposit) XXX_Merge added in v2.15.0

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

func (*Deposit) XXX_Size added in v2.15.0

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal added in v2.15.0

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

type Finding

type Finding struct {
	ProgramId      string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	FindingId      string `protobuf:"bytes,2,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	Title          string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description    string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	ProofOfConcept string `` /* 129-byte string literal not displayed */
	// hash(description + proof_of_concept + submitter)
	FindingHash      string        `protobuf:"bytes,6,opt,name=finding_hash,json=findingHash,proto3" json:"finding_hash,omitempty" yaml:"finding_hash"`
	SubmitterAddress string        `` /* 134-byte string literal not displayed */
	SeverityLevel    SeverityLevel `` /* 159-byte string literal not displayed */
	Status           FindingStatus `protobuf:"varint,9,opt,name=status,proto3,enum=shentu.bounty.v1.FindingStatus" json:"status,omitempty" yaml:"status"`
	// JSON by FindingDetail
	Detail      string    `protobuf:"bytes,10,opt,name=detail,proto3" json:"detail,omitempty" yaml:"detail"`
	PaymentHash string    `protobuf:"bytes,11,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty" yaml:"payment_hash"`
	CreateTime  time.Time `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3,stdtime" json:"create_time" yaml:"create_time"`
}

func NewFinding

func NewFinding(pid, fid, title, detail, hash string, operator sdk.AccAddress, createTime time.Time, level SeverityLevel) Finding

func (*Finding) Descriptor

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

func (*Finding) Marshal

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

func (*Finding) MarshalTo

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

func (*Finding) MarshalToSizedBuffer

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

func (*Finding) ProtoMessage

func (*Finding) ProtoMessage()

func (*Finding) Reset

func (m *Finding) Reset()

func (*Finding) Size

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

func (*Finding) String

func (m *Finding) String() string

func (*Finding) Unmarshal

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

func (*Finding) XXX_DiscardUnknown

func (m *Finding) XXX_DiscardUnknown()

func (*Finding) XXX_Marshal

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

func (*Finding) XXX_Merge

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

func (*Finding) XXX_Size

func (m *Finding) XXX_Size() int

func (*Finding) XXX_Unmarshal

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

type FindingFingerprint

type FindingFingerprint struct {
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	FindingId string `protobuf:"bytes,2,opt,name=finding_id,json=findingId,proto3" json:"id" yaml:"id"`
	Title     string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// hash(description + proof_of_concept + submitter)
	FindingHash   string        `protobuf:"bytes,4,opt,name=finding_hash,json=findingHash,proto3" json:"finding_hash,omitempty" yaml:"finding_hash"`
	SeverityLevel SeverityLevel `` /* 159-byte string literal not displayed */
	Status        FindingStatus `protobuf:"varint,6,opt,name=status,proto3,enum=shentu.bounty.v1.FindingStatus" json:"status,omitempty" yaml:"status"`
	// JSON by FindingDetail
	Detail      string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty" yaml:"detail"`
	PaymentHash string `protobuf:"bytes,8,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty" yaml:"payment_hash"`
}

func (*FindingFingerprint) Descriptor

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

func (*FindingFingerprint) Marshal

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

func (*FindingFingerprint) MarshalTo

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

func (*FindingFingerprint) MarshalToSizedBuffer

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

func (*FindingFingerprint) ProtoMessage

func (*FindingFingerprint) ProtoMessage()

func (*FindingFingerprint) Reset

func (m *FindingFingerprint) Reset()

func (*FindingFingerprint) Size

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

func (*FindingFingerprint) String

func (m *FindingFingerprint) String() string

func (*FindingFingerprint) Unmarshal

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

func (*FindingFingerprint) XXX_DiscardUnknown

func (m *FindingFingerprint) XXX_DiscardUnknown()

func (*FindingFingerprint) XXX_Marshal

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

func (*FindingFingerprint) XXX_Merge

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

func (*FindingFingerprint) XXX_Size

func (m *FindingFingerprint) XXX_Size() int

func (*FindingFingerprint) XXX_Unmarshal

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

type FindingStatus

type FindingStatus int32
const (
	FindingStatusSubmitted FindingStatus = 0
	FindingStatusActive    FindingStatus = 1
	FindingStatusConfirmed FindingStatus = 2
	FindingStatusPaid      FindingStatus = 3
	FindingStatusClosed    FindingStatus = 4
)

func (FindingStatus) EnumDescriptor

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

func (FindingStatus) String

func (x FindingStatus) String() string

type GenesisState

type GenesisState struct {
	Programs []*Program `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs,omitempty"`
	Findings []*Finding `protobuf:"bytes,2,rep,name=findings,proto3" json:"findings,omitempty"`
	// starting_theorem_id is the ID of the starting theorem
	StartingTheoremId uint64 `protobuf:"varint,3,opt,name=starting_theorem_id,json=startingTheoremId,proto3" json:"starting_theorem_id,omitempty"`
	// theorems defines all the theorems present at genesis.
	Theorems []*Theorem `protobuf:"bytes,4,rep,name=theorems,proto3" json:"theorems,omitempty"`
	// proofs defines all the proofs present at genesis.
	Proofs []*Proof `protobuf:"bytes,5,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// grants defines all the grants present at genesis.
	Grants   []*Grant   `protobuf:"bytes,6,rep,name=grants,proto3" json:"grants,omitempty"`
	Deposits []*Deposit `protobuf:"bytes,7,rep,name=deposits,proto3" json:"deposits,omitempty"`
	Rewards  []*Reward  `protobuf:"bytes,8,rep,name=rewards,proto3" json:"rewards,omitempty"`
	Params   *Params    `protobuf:"bytes,9,opt,name=params,proto3" json:"params,omitempty"`
}

GenesisState defines the bounty module's genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(
	startingTheoremID uint64,
	params Params,
) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDeposits added in v2.15.0

func (m *GenesisState) GetDeposits() []*Deposit

func (*GenesisState) GetFindings added in v2.15.0

func (m *GenesisState) GetFindings() []*Finding

func (*GenesisState) GetGrants added in v2.15.0

func (m *GenesisState) GetGrants() []*Grant

func (*GenesisState) GetParams added in v2.15.0

func (m *GenesisState) GetParams() *Params

func (*GenesisState) GetPrograms added in v2.15.0

func (m *GenesisState) GetPrograms() []*Program

func (*GenesisState) GetProofs added in v2.15.0

func (m *GenesisState) GetProofs() []*Proof

func (*GenesisState) GetRewards added in v2.15.0

func (m *GenesisState) GetRewards() []*Reward

func (*GenesisState) GetStartingTheoremId added in v2.15.0

func (m *GenesisState) GetStartingTheoremId() uint64

func (*GenesisState) GetTheorems added in v2.15.0

func (m *GenesisState) GetTheorems() []*Theorem

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) 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 Grant added in v2.15.0

type Grant struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
	// grantor defines the grant addresses.
	Grantor string `protobuf:"bytes,2,opt,name=grantor,proto3" json:"grantor,omitempty"`
	// amount to be deposited by the grantor.
	Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"`
}

Grant defines an amount granted by a grantor to an active theorem.

func NewGrant added in v2.15.0

func NewGrant(theoremID uint64, grantor sdk.AccAddress, amount sdk.Coins) Grant

func (*Grant) Descriptor added in v2.15.0

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

func (*Grant) GetAmount added in v2.15.0

func (m *Grant) GetAmount() []types1.Coin

func (*Grant) GetGrantor added in v2.15.0

func (m *Grant) GetGrantor() string

func (*Grant) GetTheoremId added in v2.15.0

func (m *Grant) GetTheoremId() uint64

func (*Grant) Marshal added in v2.15.0

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

func (*Grant) MarshalTo added in v2.15.0

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

func (*Grant) MarshalToSizedBuffer added in v2.15.0

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

func (*Grant) ProtoMessage added in v2.15.0

func (*Grant) ProtoMessage()

func (*Grant) Reset added in v2.15.0

func (m *Grant) Reset()

func (*Grant) Size added in v2.15.0

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

func (*Grant) String added in v2.15.0

func (m *Grant) String() string

func (*Grant) Unmarshal added in v2.15.0

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

func (*Grant) XXX_DiscardUnknown added in v2.15.0

func (m *Grant) XXX_DiscardUnknown()

func (*Grant) XXX_Marshal added in v2.15.0

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

func (*Grant) XXX_Merge added in v2.15.0

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

func (*Grant) XXX_Size added in v2.15.0

func (m *Grant) XXX_Size() int

func (*Grant) XXX_Unmarshal added in v2.15.0

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

type MsgActivateFinding

type MsgActivateFinding struct {
	FindingId       string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgActivateFinding defines a message to activate a finding to an existing finding.

func NewMsgActivateFinding

func NewMsgActivateFinding(findingID string, hostAddr sdk.AccAddress) *MsgActivateFinding

func (*MsgActivateFinding) Descriptor

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

func (*MsgActivateFinding) Marshal

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

func (*MsgActivateFinding) MarshalTo

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

func (*MsgActivateFinding) MarshalToSizedBuffer

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

func (*MsgActivateFinding) ProtoMessage

func (*MsgActivateFinding) ProtoMessage()

func (*MsgActivateFinding) Reset

func (m *MsgActivateFinding) Reset()

func (*MsgActivateFinding) Size

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

func (*MsgActivateFinding) String

func (m *MsgActivateFinding) String() string

func (*MsgActivateFinding) Unmarshal

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

func (*MsgActivateFinding) XXX_DiscardUnknown

func (m *MsgActivateFinding) XXX_DiscardUnknown()

func (*MsgActivateFinding) XXX_Marshal

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

func (*MsgActivateFinding) XXX_Merge

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

func (*MsgActivateFinding) XXX_Size

func (m *MsgActivateFinding) XXX_Size() int

func (*MsgActivateFinding) XXX_Unmarshal

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

type MsgActivateFindingResponse

type MsgActivateFindingResponse struct {
}

MsgActivateFindingResponse defines the Msg/AcceptFinding response type.

func (*MsgActivateFindingResponse) Descriptor

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

func (*MsgActivateFindingResponse) Marshal

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

func (*MsgActivateFindingResponse) MarshalTo

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

func (*MsgActivateFindingResponse) MarshalToSizedBuffer

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

func (*MsgActivateFindingResponse) ProtoMessage

func (*MsgActivateFindingResponse) ProtoMessage()

func (*MsgActivateFindingResponse) Reset

func (m *MsgActivateFindingResponse) Reset()

func (*MsgActivateFindingResponse) Size

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

func (*MsgActivateFindingResponse) String

func (m *MsgActivateFindingResponse) String() string

func (*MsgActivateFindingResponse) Unmarshal

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

func (*MsgActivateFindingResponse) XXX_DiscardUnknown

func (m *MsgActivateFindingResponse) XXX_DiscardUnknown()

func (*MsgActivateFindingResponse) XXX_Marshal

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

func (*MsgActivateFindingResponse) XXX_Merge

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

func (*MsgActivateFindingResponse) XXX_Size

func (m *MsgActivateFindingResponse) XXX_Size() int

func (*MsgActivateFindingResponse) XXX_Unmarshal

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

type MsgActivateProgram

type MsgActivateProgram struct {
	ProgramId       string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

func NewMsgActivateProgram

func NewMsgActivateProgram(pid string, accAddr sdk.AccAddress) *MsgActivateProgram

func (*MsgActivateProgram) Descriptor

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

func (*MsgActivateProgram) Marshal

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

func (*MsgActivateProgram) MarshalTo

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

func (*MsgActivateProgram) MarshalToSizedBuffer

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

func (*MsgActivateProgram) ProtoMessage

func (*MsgActivateProgram) ProtoMessage()

func (*MsgActivateProgram) Reset

func (m *MsgActivateProgram) Reset()

func (*MsgActivateProgram) Size

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

func (*MsgActivateProgram) String

func (m *MsgActivateProgram) String() string

func (*MsgActivateProgram) Unmarshal

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

func (*MsgActivateProgram) XXX_DiscardUnknown

func (m *MsgActivateProgram) XXX_DiscardUnknown()

func (*MsgActivateProgram) XXX_Marshal

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

func (*MsgActivateProgram) XXX_Merge

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

func (*MsgActivateProgram) XXX_Size

func (m *MsgActivateProgram) XXX_Size() int

func (*MsgActivateProgram) XXX_Unmarshal

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

type MsgActivateProgramResponse

type MsgActivateProgramResponse struct {
}

func (*MsgActivateProgramResponse) Descriptor

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

func (*MsgActivateProgramResponse) Marshal

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

func (*MsgActivateProgramResponse) MarshalTo

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

func (*MsgActivateProgramResponse) MarshalToSizedBuffer

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

func (*MsgActivateProgramResponse) ProtoMessage

func (*MsgActivateProgramResponse) ProtoMessage()

func (*MsgActivateProgramResponse) Reset

func (m *MsgActivateProgramResponse) Reset()

func (*MsgActivateProgramResponse) Size

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

func (*MsgActivateProgramResponse) String

func (m *MsgActivateProgramResponse) String() string

func (*MsgActivateProgramResponse) Unmarshal

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

func (*MsgActivateProgramResponse) XXX_DiscardUnknown

func (m *MsgActivateProgramResponse) XXX_DiscardUnknown()

func (*MsgActivateProgramResponse) XXX_Marshal

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

func (*MsgActivateProgramResponse) XXX_Merge

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

func (*MsgActivateProgramResponse) XXX_Size

func (m *MsgActivateProgramResponse) XXX_Size() int

func (*MsgActivateProgramResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateProgram defines a method for creating a new program.
	CreateProgram(ctx context.Context, in *MsgCreateProgram, opts ...grpc.CallOption) (*MsgCreateProgramResponse, error)
	// EditProgram defines a method for modifying a program.
	EditProgram(ctx context.Context, in *MsgEditProgram, opts ...grpc.CallOption) (*MsgEditProgramResponse, error)
	// Activate a program status by program_id
	ActivateProgram(ctx context.Context, in *MsgActivateProgram, opts ...grpc.CallOption) (*MsgActivateProgramResponse, error)
	// Closed a program status by program_id
	CloseProgram(ctx context.Context, in *MsgCloseProgram, opts ...grpc.CallOption) (*MsgCloseProgramResponse, error)
	// SubmitFinding defines a method for submitting a new finding.
	SubmitFinding(ctx context.Context, in *MsgSubmitFinding, opts ...grpc.CallOption) (*MsgSubmitFindingResponse, error)
	// EditFinding defines a method for editing a new finding.
	EditFinding(ctx context.Context, in *MsgEditFinding, opts ...grpc.CallOption) (*MsgEditFindingResponse, error)
	// ActivateFinding defines a method for activate a new finding.
	ActivateFinding(ctx context.Context, in *MsgActivateFinding, opts ...grpc.CallOption) (*MsgActivateFindingResponse, error)
	// ConfirmFinding defines a method for host confirm a finding.
	ConfirmFinding(ctx context.Context, in *MsgConfirmFinding, opts ...grpc.CallOption) (*MsgConfirmFindingResponse, error)
	// ConfirmFindingPaid defines a method for submitter confirm a finding paid
	ConfirmFindingPaid(ctx context.Context, in *MsgConfirmFindingPaid, opts ...grpc.CallOption) (*MsgConfirmFindingPaidResponse, error)
	// CloseFinding defines a method for submitter or certifier close a finding
	CloseFinding(ctx context.Context, in *MsgCloseFinding, opts ...grpc.CallOption) (*MsgCloseFindingResponse, error)
	// PublishFinding defines a method for publish a finding.
	PublishFinding(ctx context.Context, in *MsgPublishFinding, opts ...grpc.CallOption) (*MsgPublishFindingResponse, error)
	// CreateTheorem defines a method to create new theorem given the messages.
	CreateTheorem(ctx context.Context, in *MsgCreateTheorem, opts ...grpc.CallOption) (*MsgCreateTheoremResponse, error)
	// SubmitProofHash defines a method to submit a proof with hash.
	SubmitProofHash(ctx context.Context, in *MsgSubmitProofHash, opts ...grpc.CallOption) (*MsgSubmitProofHashResponse, error)
	// SubmitProofDetail defines a method to submit a proof with detail.
	SubmitProofDetail(ctx context.Context, in *MsgSubmitProofDetail, opts ...grpc.CallOption) (*MsgSubmitProofDetailResponse, error)
	// SubmitProofVerification defines a method to submit a proof result.
	SubmitProofVerification(ctx context.Context, in *MsgSubmitProofVerification, opts ...grpc.CallOption) (*MsgSubmitProofVerificationResponse, error)
	// UpdateTheoremComplexity defines a method for checker to update theorem complexity.
	UpdateTheoremComplexity(ctx context.Context, in *MsgUpdateTheoremComplexity, opts ...grpc.CallOption) (*MsgUpdateTheoremComplexityResponse, error)
	// Grant defines a method to grant theorem given the messages.
	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
	// WithdrawReward defines a method to withdraw reward given the messages.
	WithdrawReward(ctx context.Context, in *MsgWithdrawReward, opts ...grpc.CallOption) (*MsgWithdrawRewardResponse, error)
	// UpdateParams defines a governance operation for updating the x/bounty module parameters.
	// The authority is defined in the keeper.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgCloseFinding

type MsgCloseFinding struct {
	FindingId       string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgCloseFinding defines a message to close a finding.

func NewMsgCloseFinding

func NewMsgCloseFinding(findingID string, hostAddr sdk.AccAddress) *MsgCloseFinding

func (*MsgCloseFinding) Descriptor

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

func (*MsgCloseFinding) Marshal

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

func (*MsgCloseFinding) MarshalTo

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

func (*MsgCloseFinding) MarshalToSizedBuffer

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

func (*MsgCloseFinding) ProtoMessage

func (*MsgCloseFinding) ProtoMessage()

func (*MsgCloseFinding) Reset

func (m *MsgCloseFinding) Reset()

func (*MsgCloseFinding) Size

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

func (*MsgCloseFinding) String

func (m *MsgCloseFinding) String() string

func (*MsgCloseFinding) Unmarshal

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

func (*MsgCloseFinding) XXX_DiscardUnknown

func (m *MsgCloseFinding) XXX_DiscardUnknown()

func (*MsgCloseFinding) XXX_Marshal

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

func (*MsgCloseFinding) XXX_Merge

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

func (*MsgCloseFinding) XXX_Size

func (m *MsgCloseFinding) XXX_Size() int

func (*MsgCloseFinding) XXX_Unmarshal

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

type MsgCloseFindingResponse

type MsgCloseFindingResponse struct {
}

MsgCloseFindingResponse defines the Msg/CloseFinding response type.

func (*MsgCloseFindingResponse) Descriptor

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

func (*MsgCloseFindingResponse) Marshal

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

func (*MsgCloseFindingResponse) MarshalTo

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

func (*MsgCloseFindingResponse) MarshalToSizedBuffer

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

func (*MsgCloseFindingResponse) ProtoMessage

func (*MsgCloseFindingResponse) ProtoMessage()

func (*MsgCloseFindingResponse) Reset

func (m *MsgCloseFindingResponse) Reset()

func (*MsgCloseFindingResponse) Size

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

func (*MsgCloseFindingResponse) String

func (m *MsgCloseFindingResponse) String() string

func (*MsgCloseFindingResponse) Unmarshal

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

func (*MsgCloseFindingResponse) XXX_DiscardUnknown

func (m *MsgCloseFindingResponse) XXX_DiscardUnknown()

func (*MsgCloseFindingResponse) XXX_Marshal

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

func (*MsgCloseFindingResponse) XXX_Merge

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

func (*MsgCloseFindingResponse) XXX_Size

func (m *MsgCloseFindingResponse) XXX_Size() int

func (*MsgCloseFindingResponse) XXX_Unmarshal

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

type MsgCloseProgram

type MsgCloseProgram struct {
	ProgramId       string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

func NewMsgCloseProgram

func NewMsgCloseProgram(pid string, accAddr sdk.AccAddress) *MsgCloseProgram

func (*MsgCloseProgram) Descriptor

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

func (*MsgCloseProgram) Marshal

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

func (*MsgCloseProgram) MarshalTo

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

func (*MsgCloseProgram) MarshalToSizedBuffer

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

func (*MsgCloseProgram) ProtoMessage

func (*MsgCloseProgram) ProtoMessage()

func (*MsgCloseProgram) Reset

func (m *MsgCloseProgram) Reset()

func (*MsgCloseProgram) Size

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

func (*MsgCloseProgram) String

func (m *MsgCloseProgram) String() string

func (*MsgCloseProgram) Unmarshal

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

func (*MsgCloseProgram) XXX_DiscardUnknown

func (m *MsgCloseProgram) XXX_DiscardUnknown()

func (*MsgCloseProgram) XXX_Marshal

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

func (*MsgCloseProgram) XXX_Merge

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

func (*MsgCloseProgram) XXX_Size

func (m *MsgCloseProgram) XXX_Size() int

func (*MsgCloseProgram) XXX_Unmarshal

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

type MsgCloseProgramResponse

type MsgCloseProgramResponse struct {
}

func (*MsgCloseProgramResponse) Descriptor

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

func (*MsgCloseProgramResponse) Marshal

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

func (*MsgCloseProgramResponse) MarshalTo

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

func (*MsgCloseProgramResponse) MarshalToSizedBuffer

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

func (*MsgCloseProgramResponse) ProtoMessage

func (*MsgCloseProgramResponse) ProtoMessage()

func (*MsgCloseProgramResponse) Reset

func (m *MsgCloseProgramResponse) Reset()

func (*MsgCloseProgramResponse) Size

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

func (*MsgCloseProgramResponse) String

func (m *MsgCloseProgramResponse) String() string

func (*MsgCloseProgramResponse) Unmarshal

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

func (*MsgCloseProgramResponse) XXX_DiscardUnknown

func (m *MsgCloseProgramResponse) XXX_DiscardUnknown()

func (*MsgCloseProgramResponse) XXX_Marshal

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

func (*MsgCloseProgramResponse) XXX_Merge

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

func (*MsgCloseProgramResponse) XXX_Size

func (m *MsgCloseProgramResponse) XXX_Size() int

func (*MsgCloseProgramResponse) XXX_Unmarshal

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

type MsgConfirmFinding

type MsgConfirmFinding struct {
	FindingId       string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
	Fingerprint     string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
}

MsgConfirmFinding defines a message to confirm a finding to an existing finding.

func NewMsgConfirmFinding

func NewMsgConfirmFinding(findingID, fingerprint string, hostAddr sdk.AccAddress) *MsgConfirmFinding

func (*MsgConfirmFinding) Descriptor

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

func (*MsgConfirmFinding) Marshal

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

func (*MsgConfirmFinding) MarshalTo

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

func (*MsgConfirmFinding) MarshalToSizedBuffer

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

func (*MsgConfirmFinding) ProtoMessage

func (*MsgConfirmFinding) ProtoMessage()

func (*MsgConfirmFinding) Reset

func (m *MsgConfirmFinding) Reset()

func (*MsgConfirmFinding) Size

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

func (*MsgConfirmFinding) String

func (m *MsgConfirmFinding) String() string

func (*MsgConfirmFinding) Unmarshal

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

func (*MsgConfirmFinding) XXX_DiscardUnknown

func (m *MsgConfirmFinding) XXX_DiscardUnknown()

func (*MsgConfirmFinding) XXX_Marshal

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

func (*MsgConfirmFinding) XXX_Merge

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

func (*MsgConfirmFinding) XXX_Size

func (m *MsgConfirmFinding) XXX_Size() int

func (*MsgConfirmFinding) XXX_Unmarshal

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

type MsgConfirmFindingPaid

type MsgConfirmFindingPaid struct {
	FindingId       string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgConfirmFindingPaid defines a message to confirm a finding has been paid.

func NewMsgConfirmFindingPaid

func NewMsgConfirmFindingPaid(findingID string, hostAddr sdk.AccAddress) *MsgConfirmFindingPaid

func (*MsgConfirmFindingPaid) Descriptor

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

func (*MsgConfirmFindingPaid) Marshal

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

func (*MsgConfirmFindingPaid) MarshalTo

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

func (*MsgConfirmFindingPaid) MarshalToSizedBuffer

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

func (*MsgConfirmFindingPaid) ProtoMessage

func (*MsgConfirmFindingPaid) ProtoMessage()

func (*MsgConfirmFindingPaid) Reset

func (m *MsgConfirmFindingPaid) Reset()

func (*MsgConfirmFindingPaid) Size

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

func (*MsgConfirmFindingPaid) String

func (m *MsgConfirmFindingPaid) String() string

func (*MsgConfirmFindingPaid) Unmarshal

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

func (*MsgConfirmFindingPaid) XXX_DiscardUnknown

func (m *MsgConfirmFindingPaid) XXX_DiscardUnknown()

func (*MsgConfirmFindingPaid) XXX_Marshal

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

func (*MsgConfirmFindingPaid) XXX_Merge

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

func (*MsgConfirmFindingPaid) XXX_Size

func (m *MsgConfirmFindingPaid) XXX_Size() int

func (*MsgConfirmFindingPaid) XXX_Unmarshal

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

type MsgConfirmFindingPaidResponse

type MsgConfirmFindingPaidResponse struct {
}

MsgConfirmFindingPaidResponse defines the Msg/ConfirmFindingPaid response type.

func (*MsgConfirmFindingPaidResponse) Descriptor

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

func (*MsgConfirmFindingPaidResponse) Marshal

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

func (*MsgConfirmFindingPaidResponse) MarshalTo

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

func (*MsgConfirmFindingPaidResponse) MarshalToSizedBuffer

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

func (*MsgConfirmFindingPaidResponse) ProtoMessage

func (*MsgConfirmFindingPaidResponse) ProtoMessage()

func (*MsgConfirmFindingPaidResponse) Reset

func (m *MsgConfirmFindingPaidResponse) Reset()

func (*MsgConfirmFindingPaidResponse) Size

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

func (*MsgConfirmFindingPaidResponse) String

func (*MsgConfirmFindingPaidResponse) Unmarshal

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

func (*MsgConfirmFindingPaidResponse) XXX_DiscardUnknown

func (m *MsgConfirmFindingPaidResponse) XXX_DiscardUnknown()

func (*MsgConfirmFindingPaidResponse) XXX_Marshal

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

func (*MsgConfirmFindingPaidResponse) XXX_Merge

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

func (*MsgConfirmFindingPaidResponse) XXX_Size

func (m *MsgConfirmFindingPaidResponse) XXX_Size() int

func (*MsgConfirmFindingPaidResponse) XXX_Unmarshal

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

type MsgConfirmFindingResponse

type MsgConfirmFindingResponse struct {
}

MsgConfirmFindingResponse defines the Msg/AcceptFinding response type.

func (*MsgConfirmFindingResponse) Descriptor

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

func (*MsgConfirmFindingResponse) Marshal

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

func (*MsgConfirmFindingResponse) MarshalTo

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

func (*MsgConfirmFindingResponse) MarshalToSizedBuffer

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

func (*MsgConfirmFindingResponse) ProtoMessage

func (*MsgConfirmFindingResponse) ProtoMessage()

func (*MsgConfirmFindingResponse) Reset

func (m *MsgConfirmFindingResponse) Reset()

func (*MsgConfirmFindingResponse) Size

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

func (*MsgConfirmFindingResponse) String

func (m *MsgConfirmFindingResponse) String() string

func (*MsgConfirmFindingResponse) Unmarshal

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

func (*MsgConfirmFindingResponse) XXX_DiscardUnknown

func (m *MsgConfirmFindingResponse) XXX_DiscardUnknown()

func (*MsgConfirmFindingResponse) XXX_Marshal

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

func (*MsgConfirmFindingResponse) XXX_Merge

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

func (*MsgConfirmFindingResponse) XXX_Size

func (m *MsgConfirmFindingResponse) XXX_Size() int

func (*MsgConfirmFindingResponse) XXX_Unmarshal

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

type MsgCreateProgram

type MsgCreateProgram struct {
	ProgramId       string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Detail          string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgCreateProgram defines a SDK message for creating a new program.

func NewMsgCreateProgram

func NewMsgCreateProgram(pid, name, detail string, operator sdk.AccAddress) *MsgCreateProgram

NewMsgCreateProgram creates a new NewMsgCreateProgram instance. Delegator address and validator address are the same.

func (*MsgCreateProgram) Descriptor

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

func (*MsgCreateProgram) Marshal

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

func (*MsgCreateProgram) MarshalTo

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

func (*MsgCreateProgram) MarshalToSizedBuffer

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

func (*MsgCreateProgram) ProtoMessage

func (*MsgCreateProgram) ProtoMessage()

func (*MsgCreateProgram) Reset

func (m *MsgCreateProgram) Reset()

func (*MsgCreateProgram) Size

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

func (*MsgCreateProgram) String

func (m *MsgCreateProgram) String() string

func (*MsgCreateProgram) Unmarshal

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

func (*MsgCreateProgram) XXX_DiscardUnknown

func (m *MsgCreateProgram) XXX_DiscardUnknown()

func (*MsgCreateProgram) XXX_Marshal

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

func (*MsgCreateProgram) XXX_Merge

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

func (*MsgCreateProgram) XXX_Size

func (m *MsgCreateProgram) XXX_Size() int

func (*MsgCreateProgram) XXX_Unmarshal

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

type MsgCreateProgramResponse

type MsgCreateProgramResponse struct {
}

MsgCreateProgramResponse defines the Msg/CreateProgram response type.

func (*MsgCreateProgramResponse) Descriptor

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

func (*MsgCreateProgramResponse) Marshal

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

func (*MsgCreateProgramResponse) MarshalTo

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

func (*MsgCreateProgramResponse) MarshalToSizedBuffer

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

func (*MsgCreateProgramResponse) ProtoMessage

func (*MsgCreateProgramResponse) ProtoMessage()

func (*MsgCreateProgramResponse) Reset

func (m *MsgCreateProgramResponse) Reset()

func (*MsgCreateProgramResponse) Size

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

func (*MsgCreateProgramResponse) String

func (m *MsgCreateProgramResponse) String() string

func (*MsgCreateProgramResponse) Unmarshal

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

func (*MsgCreateProgramResponse) XXX_DiscardUnknown

func (m *MsgCreateProgramResponse) XXX_DiscardUnknown()

func (*MsgCreateProgramResponse) XXX_Marshal

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

func (*MsgCreateProgramResponse) XXX_Merge

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

func (*MsgCreateProgramResponse) XXX_Size

func (m *MsgCreateProgramResponse) XXX_Size() int

func (*MsgCreateProgramResponse) XXX_Unmarshal

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

type MsgCreateTheorem added in v2.15.0

type MsgCreateTheorem struct {
	Title        string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description  string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Code         string       `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	InitialGrant []types.Coin `protobuf:"bytes,4,rep,name=initial_grant,json=initialGrant,proto3" json:"initial_grant"`
	Proposer     string       `protobuf:"bytes,5,opt,name=proposer,proto3" json:"proposer,omitempty"`
}

MsgCreateTheorem defines a message to create a new theorem.

func NewMsgCreateTheorem added in v2.15.0

func NewMsgCreateTheorem(title, desc, code, proposer string, initialGrant sdk.Coins) *MsgCreateTheorem

func (*MsgCreateTheorem) Descriptor added in v2.15.0

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

func (*MsgCreateTheorem) Marshal added in v2.15.0

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

func (*MsgCreateTheorem) MarshalTo added in v2.15.0

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

func (*MsgCreateTheorem) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgCreateTheorem) ProtoMessage added in v2.15.0

func (*MsgCreateTheorem) ProtoMessage()

func (*MsgCreateTheorem) Reset added in v2.15.0

func (m *MsgCreateTheorem) Reset()

func (*MsgCreateTheorem) Size added in v2.15.0

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

func (*MsgCreateTheorem) String added in v2.15.0

func (m *MsgCreateTheorem) String() string

func (*MsgCreateTheorem) Unmarshal added in v2.15.0

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

func (*MsgCreateTheorem) XXX_DiscardUnknown added in v2.15.0

func (m *MsgCreateTheorem) XXX_DiscardUnknown()

func (*MsgCreateTheorem) XXX_Marshal added in v2.15.0

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

func (*MsgCreateTheorem) XXX_Merge added in v2.15.0

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

func (*MsgCreateTheorem) XXX_Size added in v2.15.0

func (m *MsgCreateTheorem) XXX_Size() int

func (*MsgCreateTheorem) XXX_Unmarshal added in v2.15.0

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

type MsgCreateTheoremResponse added in v2.15.0

type MsgCreateTheoremResponse struct {
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
}

MsgCreateTheoremResponse defines the Msg/CreateTheorem response type.

func (*MsgCreateTheoremResponse) Descriptor added in v2.15.0

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

func (*MsgCreateTheoremResponse) GetTheoremId added in v2.15.0

func (m *MsgCreateTheoremResponse) GetTheoremId() uint64

func (*MsgCreateTheoremResponse) Marshal added in v2.15.0

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

func (*MsgCreateTheoremResponse) MarshalTo added in v2.15.0

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

func (*MsgCreateTheoremResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgCreateTheoremResponse) ProtoMessage added in v2.15.0

func (*MsgCreateTheoremResponse) ProtoMessage()

func (*MsgCreateTheoremResponse) Reset added in v2.15.0

func (m *MsgCreateTheoremResponse) Reset()

func (*MsgCreateTheoremResponse) Size added in v2.15.0

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

func (*MsgCreateTheoremResponse) String added in v2.15.0

func (m *MsgCreateTheoremResponse) String() string

func (*MsgCreateTheoremResponse) Unmarshal added in v2.15.0

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

func (*MsgCreateTheoremResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgCreateTheoremResponse) XXX_DiscardUnknown()

func (*MsgCreateTheoremResponse) XXX_Marshal added in v2.15.0

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

func (*MsgCreateTheoremResponse) XXX_Merge added in v2.15.0

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

func (*MsgCreateTheoremResponse) XXX_Size added in v2.15.0

func (m *MsgCreateTheoremResponse) XXX_Size() int

func (*MsgCreateTheoremResponse) XXX_Unmarshal added in v2.15.0

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

type MsgEditFinding

type MsgEditFinding struct {
	FindingId       string        `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	FindingHash     string        `protobuf:"bytes,2,opt,name=finding_hash,json=findingHash,proto3" json:"finding_hash,omitempty" yaml:"finding_hash"`
	OperatorAddress string        `` /* 130-byte string literal not displayed */
	SeverityLevel   SeverityLevel `` /* 159-byte string literal not displayed */
	PaymentHash     string        `protobuf:"bytes,5,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty" yaml:"payment_hash"`
}

MsgEditFinding defines a message to edit a finding.

func NewMsgEditFinding

func NewMsgEditFinding(fid, hash, paymentHash string, operator sdk.AccAddress, level SeverityLevel) *MsgEditFinding

NewMsgEditFinding submit a new finding.

func (*MsgEditFinding) Descriptor

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

func (*MsgEditFinding) Marshal

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

func (*MsgEditFinding) MarshalTo

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

func (*MsgEditFinding) MarshalToSizedBuffer

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

func (*MsgEditFinding) ProtoMessage

func (*MsgEditFinding) ProtoMessage()

func (*MsgEditFinding) Reset

func (m *MsgEditFinding) Reset()

func (*MsgEditFinding) Size

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

func (*MsgEditFinding) String

func (m *MsgEditFinding) String() string

func (*MsgEditFinding) Unmarshal

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

func (*MsgEditFinding) XXX_DiscardUnknown

func (m *MsgEditFinding) XXX_DiscardUnknown()

func (*MsgEditFinding) XXX_Marshal

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

func (*MsgEditFinding) XXX_Merge

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

func (*MsgEditFinding) XXX_Size

func (m *MsgEditFinding) XXX_Size() int

func (*MsgEditFinding) XXX_Unmarshal

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

type MsgEditFindingResponse

type MsgEditFindingResponse struct {
}

MsgEditFindingResponse defines the MsgEditFinding response type.

func (*MsgEditFindingResponse) Descriptor

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

func (*MsgEditFindingResponse) Marshal

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

func (*MsgEditFindingResponse) MarshalTo

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

func (*MsgEditFindingResponse) MarshalToSizedBuffer

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

func (*MsgEditFindingResponse) ProtoMessage

func (*MsgEditFindingResponse) ProtoMessage()

func (*MsgEditFindingResponse) Reset

func (m *MsgEditFindingResponse) Reset()

func (*MsgEditFindingResponse) Size

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

func (*MsgEditFindingResponse) String

func (m *MsgEditFindingResponse) String() string

func (*MsgEditFindingResponse) Unmarshal

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

func (*MsgEditFindingResponse) XXX_DiscardUnknown

func (m *MsgEditFindingResponse) XXX_DiscardUnknown()

func (*MsgEditFindingResponse) XXX_Marshal

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

func (*MsgEditFindingResponse) XXX_Merge

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

func (*MsgEditFindingResponse) XXX_Size

func (m *MsgEditFindingResponse) XXX_Size() int

func (*MsgEditFindingResponse) XXX_Unmarshal

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

type MsgEditProgram

type MsgEditProgram struct {
	ProgramId       string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Detail          string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgEditProgram defines a SDK message for editing a program.

func NewMsgEditProgram

func NewMsgEditProgram(pid, name, detail string, operator sdk.AccAddress) *MsgEditProgram

NewMsgEditProgram edit a program.

func (*MsgEditProgram) Descriptor

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

func (*MsgEditProgram) Marshal

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

func (*MsgEditProgram) MarshalTo

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

func (*MsgEditProgram) MarshalToSizedBuffer

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

func (*MsgEditProgram) ProtoMessage

func (*MsgEditProgram) ProtoMessage()

func (*MsgEditProgram) Reset

func (m *MsgEditProgram) Reset()

func (*MsgEditProgram) Size

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

func (*MsgEditProgram) String

func (m *MsgEditProgram) String() string

func (*MsgEditProgram) Unmarshal

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

func (*MsgEditProgram) XXX_DiscardUnknown

func (m *MsgEditProgram) XXX_DiscardUnknown()

func (*MsgEditProgram) XXX_Marshal

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

func (*MsgEditProgram) XXX_Merge

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

func (*MsgEditProgram) XXX_Size

func (m *MsgEditProgram) XXX_Size() int

func (*MsgEditProgram) XXX_Unmarshal

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

type MsgEditProgramResponse

type MsgEditProgramResponse struct {
}

MsgEditProgramResponse defines the Msg/EditProgram response type.

func (*MsgEditProgramResponse) Descriptor

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

func (*MsgEditProgramResponse) Marshal

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

func (*MsgEditProgramResponse) MarshalTo

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

func (*MsgEditProgramResponse) MarshalToSizedBuffer

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

func (*MsgEditProgramResponse) ProtoMessage

func (*MsgEditProgramResponse) ProtoMessage()

func (*MsgEditProgramResponse) Reset

func (m *MsgEditProgramResponse) Reset()

func (*MsgEditProgramResponse) Size

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

func (*MsgEditProgramResponse) String

func (m *MsgEditProgramResponse) String() string

func (*MsgEditProgramResponse) Unmarshal

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

func (*MsgEditProgramResponse) XXX_DiscardUnknown

func (m *MsgEditProgramResponse) XXX_DiscardUnknown()

func (*MsgEditProgramResponse) XXX_Marshal

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

func (*MsgEditProgramResponse) XXX_Merge

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

func (*MsgEditProgramResponse) XXX_Size

func (m *MsgEditProgramResponse) XXX_Size() int

func (*MsgEditProgramResponse) XXX_Unmarshal

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

type MsgGrant added in v2.15.0

type MsgGrant struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId uint64       `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id"`
	Grantor   string       `protobuf:"bytes,2,opt,name=grantor,proto3" json:"grantor,omitempty"`
	Amount    []types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"`
}

MsgGrant defines a message to grant funds to a theorem.

func NewMsgGrant added in v2.15.0

func NewMsgGrant(theoremID uint64, grantor string, amount sdk.Coins) *MsgGrant

func (*MsgGrant) Descriptor added in v2.15.0

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

func (*MsgGrant) Marshal added in v2.15.0

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

func (*MsgGrant) MarshalTo added in v2.15.0

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

func (*MsgGrant) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgGrant) ProtoMessage added in v2.15.0

func (*MsgGrant) ProtoMessage()

func (*MsgGrant) Reset added in v2.15.0

func (m *MsgGrant) Reset()

func (*MsgGrant) Size added in v2.15.0

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

func (*MsgGrant) String added in v2.15.0

func (m *MsgGrant) String() string

func (*MsgGrant) Unmarshal added in v2.15.0

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

func (*MsgGrant) XXX_DiscardUnknown added in v2.15.0

func (m *MsgGrant) XXX_DiscardUnknown()

func (*MsgGrant) XXX_Marshal added in v2.15.0

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

func (*MsgGrant) XXX_Merge added in v2.15.0

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

func (*MsgGrant) XXX_Size added in v2.15.0

func (m *MsgGrant) XXX_Size() int

func (*MsgGrant) XXX_Unmarshal added in v2.15.0

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

type MsgGrantResponse added in v2.15.0

type MsgGrantResponse struct {
}

MsgGrantResponse defines the Msg/Grant response type.

func (*MsgGrantResponse) Descriptor added in v2.15.0

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

func (*MsgGrantResponse) Marshal added in v2.15.0

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

func (*MsgGrantResponse) MarshalTo added in v2.15.0

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

func (*MsgGrantResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgGrantResponse) ProtoMessage added in v2.15.0

func (*MsgGrantResponse) ProtoMessage()

func (*MsgGrantResponse) Reset added in v2.15.0

func (m *MsgGrantResponse) Reset()

func (*MsgGrantResponse) Size added in v2.15.0

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

func (*MsgGrantResponse) String added in v2.15.0

func (m *MsgGrantResponse) String() string

func (*MsgGrantResponse) Unmarshal added in v2.15.0

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

func (*MsgGrantResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgGrantResponse) XXX_DiscardUnknown()

func (*MsgGrantResponse) XXX_Marshal added in v2.15.0

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

func (*MsgGrantResponse) XXX_Merge added in v2.15.0

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

func (*MsgGrantResponse) XXX_Size added in v2.15.0

func (m *MsgGrantResponse) XXX_Size() int

func (*MsgGrantResponse) XXX_Unmarshal added in v2.15.0

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

type MsgPublishFinding

type MsgPublishFinding struct {
	FindingId       string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	Title           string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Detail          string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	Description     string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	ProofOfConcept  string `` /* 129-byte string literal not displayed */
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgPublishFinding defines a message to publish a finding.

func NewMsgPublishFinding

func NewMsgPublishFinding(fid, desc, poc string, operator sdk.AccAddress) *MsgPublishFinding

NewMsgPublishFinding publish finding.

func (*MsgPublishFinding) Descriptor

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

func (*MsgPublishFinding) Marshal

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

func (*MsgPublishFinding) MarshalTo

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

func (*MsgPublishFinding) MarshalToSizedBuffer

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

func (*MsgPublishFinding) ProtoMessage

func (*MsgPublishFinding) ProtoMessage()

func (*MsgPublishFinding) Reset

func (m *MsgPublishFinding) Reset()

func (*MsgPublishFinding) Size

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

func (*MsgPublishFinding) String

func (m *MsgPublishFinding) String() string

func (*MsgPublishFinding) Unmarshal

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

func (*MsgPublishFinding) XXX_DiscardUnknown

func (m *MsgPublishFinding) XXX_DiscardUnknown()

func (*MsgPublishFinding) XXX_Marshal

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

func (*MsgPublishFinding) XXX_Merge

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

func (*MsgPublishFinding) XXX_Size

func (m *MsgPublishFinding) XXX_Size() int

func (*MsgPublishFinding) XXX_Unmarshal

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

type MsgPublishFindingResponse

type MsgPublishFindingResponse struct {
}

MsgPublishFindingResponse defines the MsgPublishFinding response type.

func (*MsgPublishFindingResponse) Descriptor

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

func (*MsgPublishFindingResponse) Marshal

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

func (*MsgPublishFindingResponse) MarshalTo

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

func (*MsgPublishFindingResponse) MarshalToSizedBuffer

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

func (*MsgPublishFindingResponse) ProtoMessage

func (*MsgPublishFindingResponse) ProtoMessage()

func (*MsgPublishFindingResponse) Reset

func (m *MsgPublishFindingResponse) Reset()

func (*MsgPublishFindingResponse) Size

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

func (*MsgPublishFindingResponse) String

func (m *MsgPublishFindingResponse) String() string

func (*MsgPublishFindingResponse) Unmarshal

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

func (*MsgPublishFindingResponse) XXX_DiscardUnknown

func (m *MsgPublishFindingResponse) XXX_DiscardUnknown()

func (*MsgPublishFindingResponse) XXX_Marshal

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

func (*MsgPublishFindingResponse) XXX_Merge

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

func (*MsgPublishFindingResponse) XXX_Size

func (m *MsgPublishFindingResponse) XXX_Size() int

func (*MsgPublishFindingResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateProgram defines a method for creating a new program.
	CreateProgram(context.Context, *MsgCreateProgram) (*MsgCreateProgramResponse, error)
	// EditProgram defines a method for modifying a program.
	EditProgram(context.Context, *MsgEditProgram) (*MsgEditProgramResponse, error)
	// Activate a program status by program_id
	ActivateProgram(context.Context, *MsgActivateProgram) (*MsgActivateProgramResponse, error)
	// Closed a program status by program_id
	CloseProgram(context.Context, *MsgCloseProgram) (*MsgCloseProgramResponse, error)
	// SubmitFinding defines a method for submitting a new finding.
	SubmitFinding(context.Context, *MsgSubmitFinding) (*MsgSubmitFindingResponse, error)
	// EditFinding defines a method for editing a new finding.
	EditFinding(context.Context, *MsgEditFinding) (*MsgEditFindingResponse, error)
	// ActivateFinding defines a method for activate a new finding.
	ActivateFinding(context.Context, *MsgActivateFinding) (*MsgActivateFindingResponse, error)
	// ConfirmFinding defines a method for host confirm a finding.
	ConfirmFinding(context.Context, *MsgConfirmFinding) (*MsgConfirmFindingResponse, error)
	// ConfirmFindingPaid defines a method for submitter confirm a finding paid
	ConfirmFindingPaid(context.Context, *MsgConfirmFindingPaid) (*MsgConfirmFindingPaidResponse, error)
	// CloseFinding defines a method for submitter or certifier close a finding
	CloseFinding(context.Context, *MsgCloseFinding) (*MsgCloseFindingResponse, error)
	// PublishFinding defines a method for publish a finding.
	PublishFinding(context.Context, *MsgPublishFinding) (*MsgPublishFindingResponse, error)
	// CreateTheorem defines a method to create new theorem given the messages.
	CreateTheorem(context.Context, *MsgCreateTheorem) (*MsgCreateTheoremResponse, error)
	// SubmitProofHash defines a method to submit a proof with hash.
	SubmitProofHash(context.Context, *MsgSubmitProofHash) (*MsgSubmitProofHashResponse, error)
	// SubmitProofDetail defines a method to submit a proof with detail.
	SubmitProofDetail(context.Context, *MsgSubmitProofDetail) (*MsgSubmitProofDetailResponse, error)
	// SubmitProofVerification defines a method to submit a proof result.
	SubmitProofVerification(context.Context, *MsgSubmitProofVerification) (*MsgSubmitProofVerificationResponse, error)
	// UpdateTheoremComplexity defines a method for checker to update theorem complexity.
	UpdateTheoremComplexity(context.Context, *MsgUpdateTheoremComplexity) (*MsgUpdateTheoremComplexityResponse, error)
	// Grant defines a method to grant theorem given the messages.
	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
	// WithdrawReward defines a method to withdraw reward given the messages.
	WithdrawReward(context.Context, *MsgWithdrawReward) (*MsgWithdrawRewardResponse, error)
	// UpdateParams defines a governance operation for updating the x/bounty module parameters.
	// The authority is defined in the keeper.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitFinding

type MsgSubmitFinding struct {
	ProgramId       string        `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	FindingId       string        `protobuf:"bytes,2,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty" yaml:"finding_id"`
	FindingHash     string        `protobuf:"bytes,3,opt,name=finding_hash,json=findingHash,proto3" json:"finding_hash,omitempty" yaml:"finding_hash"`
	OperatorAddress string        `` /* 130-byte string literal not displayed */
	SeverityLevel   SeverityLevel `` /* 159-byte string literal not displayed */
}

MsgSubmitFinding defines a message to submit a finding.

func NewMsgSubmitFinding

func NewMsgSubmitFinding(pid, fid, hash string, operator sdk.AccAddress, level SeverityLevel) *MsgSubmitFinding

NewMsgSubmitFinding submit a new finding.

func (*MsgSubmitFinding) Descriptor

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

func (*MsgSubmitFinding) Marshal

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

func (*MsgSubmitFinding) MarshalTo

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

func (*MsgSubmitFinding) MarshalToSizedBuffer

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

func (*MsgSubmitFinding) ProtoMessage

func (*MsgSubmitFinding) ProtoMessage()

func (*MsgSubmitFinding) Reset

func (m *MsgSubmitFinding) Reset()

func (*MsgSubmitFinding) Size

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

func (*MsgSubmitFinding) String

func (m *MsgSubmitFinding) String() string

func (*MsgSubmitFinding) Unmarshal

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

func (*MsgSubmitFinding) XXX_DiscardUnknown

func (m *MsgSubmitFinding) XXX_DiscardUnknown()

func (*MsgSubmitFinding) XXX_Marshal

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

func (*MsgSubmitFinding) XXX_Merge

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

func (*MsgSubmitFinding) XXX_Size

func (m *MsgSubmitFinding) XXX_Size() int

func (*MsgSubmitFinding) XXX_Unmarshal

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

type MsgSubmitFindingResponse

type MsgSubmitFindingResponse struct {
}

MsgSubmitFindingResponse defines the MsgSubmitFinding response type.

func (*MsgSubmitFindingResponse) Descriptor

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

func (*MsgSubmitFindingResponse) Marshal

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

func (*MsgSubmitFindingResponse) MarshalTo

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

func (*MsgSubmitFindingResponse) MarshalToSizedBuffer

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

func (*MsgSubmitFindingResponse) ProtoMessage

func (*MsgSubmitFindingResponse) ProtoMessage()

func (*MsgSubmitFindingResponse) Reset

func (m *MsgSubmitFindingResponse) Reset()

func (*MsgSubmitFindingResponse) Size

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

func (*MsgSubmitFindingResponse) String

func (m *MsgSubmitFindingResponse) String() string

func (*MsgSubmitFindingResponse) Unmarshal

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

func (*MsgSubmitFindingResponse) XXX_DiscardUnknown

func (m *MsgSubmitFindingResponse) XXX_DiscardUnknown()

func (*MsgSubmitFindingResponse) XXX_Marshal

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

func (*MsgSubmitFindingResponse) XXX_Merge

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

func (*MsgSubmitFindingResponse) XXX_Size

func (m *MsgSubmitFindingResponse) XXX_Size() int

func (*MsgSubmitFindingResponse) XXX_Unmarshal

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

type MsgSubmitProofDetail added in v2.15.0

type MsgSubmitProofDetail struct {
	ProofId string `protobuf:"bytes,1,opt,name=proof_id,json=proofId,proto3" json:"proof_id"`
	Prover  string `protobuf:"bytes,2,opt,name=prover,proto3" json:"prover,omitempty"`
	Detail  string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
}

MsgSubmitProofDetail defines a message to submit proof details.

func NewMsgSubmitProofDetail added in v2.15.0

func NewMsgSubmitProofDetail(proofID, prover, detail string) *MsgSubmitProofDetail

func (*MsgSubmitProofDetail) Descriptor added in v2.15.0

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

func (*MsgSubmitProofDetail) Marshal added in v2.15.0

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

func (*MsgSubmitProofDetail) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofDetail) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofDetail) ProtoMessage added in v2.15.0

func (*MsgSubmitProofDetail) ProtoMessage()

func (*MsgSubmitProofDetail) Reset added in v2.15.0

func (m *MsgSubmitProofDetail) Reset()

func (*MsgSubmitProofDetail) Size added in v2.15.0

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

func (*MsgSubmitProofDetail) String added in v2.15.0

func (m *MsgSubmitProofDetail) String() string

func (*MsgSubmitProofDetail) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofDetail) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofDetail) XXX_DiscardUnknown()

func (*MsgSubmitProofDetail) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofDetail) XXX_Merge added in v2.15.0

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

func (*MsgSubmitProofDetail) XXX_Size added in v2.15.0

func (m *MsgSubmitProofDetail) XXX_Size() int

func (*MsgSubmitProofDetail) XXX_Unmarshal added in v2.15.0

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

type MsgSubmitProofDetailResponse added in v2.15.0

type MsgSubmitProofDetailResponse struct {
}

MsgSubmitProofDetailResponse defines the Msg/SubmitProofDetail response type.

func (*MsgSubmitProofDetailResponse) Descriptor added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) Marshal added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) ProtoMessage added in v2.15.0

func (*MsgSubmitProofDetailResponse) ProtoMessage()

func (*MsgSubmitProofDetailResponse) Reset added in v2.15.0

func (m *MsgSubmitProofDetailResponse) Reset()

func (*MsgSubmitProofDetailResponse) Size added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) String added in v2.15.0

func (*MsgSubmitProofDetailResponse) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofDetailResponse) XXX_DiscardUnknown()

func (*MsgSubmitProofDetailResponse) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) XXX_Merge added in v2.15.0

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

func (*MsgSubmitProofDetailResponse) XXX_Size added in v2.15.0

func (m *MsgSubmitProofDetailResponse) XXX_Size() int

func (*MsgSubmitProofDetailResponse) XXX_Unmarshal added in v2.15.0

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

type MsgSubmitProofHash added in v2.15.0

type MsgSubmitProofHash struct {
	TheoremId uint64       `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id"`
	Prover    string       `protobuf:"bytes,2,opt,name=prover,proto3" json:"prover,omitempty"`
	ProofHash string       `protobuf:"bytes,3,opt,name=proof_hash,json=proofHash,proto3" json:"proof_hash,omitempty"`
	Deposit   []types.Coin `protobuf:"bytes,4,rep,name=deposit,proto3" json:"deposit"`
}

MsgSubmitProofHash defines a message to submit a proof hash.

func NewMsgSubmitProofHash added in v2.15.0

func NewMsgSubmitProofHash(theoremID uint64, prover, hash string, amount sdk.Coins) *MsgSubmitProofHash

func (*MsgSubmitProofHash) Descriptor added in v2.15.0

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

func (*MsgSubmitProofHash) Marshal added in v2.15.0

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

func (*MsgSubmitProofHash) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofHash) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofHash) ProtoMessage added in v2.15.0

func (*MsgSubmitProofHash) ProtoMessage()

func (*MsgSubmitProofHash) Reset added in v2.15.0

func (m *MsgSubmitProofHash) Reset()

func (*MsgSubmitProofHash) Size added in v2.15.0

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

func (*MsgSubmitProofHash) String added in v2.15.0

func (m *MsgSubmitProofHash) String() string

func (*MsgSubmitProofHash) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofHash) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofHash) XXX_DiscardUnknown()

func (*MsgSubmitProofHash) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofHash) XXX_Merge added in v2.15.0

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

func (*MsgSubmitProofHash) XXX_Size added in v2.15.0

func (m *MsgSubmitProofHash) XXX_Size() int

func (*MsgSubmitProofHash) XXX_Unmarshal added in v2.15.0

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

type MsgSubmitProofHashResponse added in v2.15.0

type MsgSubmitProofHashResponse struct {
}

MsgSubmitProofHashResponse defines the Msg/SubmitProofHash response type.

func (*MsgSubmitProofHashResponse) Descriptor added in v2.15.0

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

func (*MsgSubmitProofHashResponse) Marshal added in v2.15.0

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

func (*MsgSubmitProofHashResponse) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofHashResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofHashResponse) ProtoMessage added in v2.15.0

func (*MsgSubmitProofHashResponse) ProtoMessage()

func (*MsgSubmitProofHashResponse) Reset added in v2.15.0

func (m *MsgSubmitProofHashResponse) Reset()

func (*MsgSubmitProofHashResponse) Size added in v2.15.0

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

func (*MsgSubmitProofHashResponse) String added in v2.15.0

func (m *MsgSubmitProofHashResponse) String() string

func (*MsgSubmitProofHashResponse) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofHashResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofHashResponse) XXX_DiscardUnknown()

func (*MsgSubmitProofHashResponse) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofHashResponse) XXX_Merge added in v2.15.0

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

func (*MsgSubmitProofHashResponse) XXX_Size added in v2.15.0

func (m *MsgSubmitProofHashResponse) XXX_Size() int

func (*MsgSubmitProofHashResponse) XXX_Unmarshal added in v2.15.0

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

type MsgSubmitProofVerification added in v2.15.0

type MsgSubmitProofVerification struct {
	ProofId    string      `protobuf:"bytes,1,opt,name=proof_id,json=proofId,proto3" json:"proof_id,omitempty"`
	Status     ProofStatus `protobuf:"varint,2,opt,name=status,proto3,enum=shentu.bounty.v1.ProofStatus" json:"status,omitempty"`
	Checker    string      `protobuf:"bytes,3,opt,name=checker,proto3" json:"checker,omitempty"`
	Complexity int64       `protobuf:"varint,4,opt,name=complexity,proto3" json:"complexity,omitempty"`
	Imports    []uint64    `protobuf:"varint,5,rep,packed,name=imports,proto3" json:"imports,omitempty"`
}

MsgSubmitProofVerification defines a message to submit proof verification.

func NewMsgSubmitProofVerification added in v2.15.0

func NewMsgSubmitProofVerification(proofID string, status ProofStatus, checker string, complexity int64, imports []uint64) *MsgSubmitProofVerification

func (*MsgSubmitProofVerification) Descriptor added in v2.15.0

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

func (*MsgSubmitProofVerification) Marshal added in v2.15.0

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

func (*MsgSubmitProofVerification) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofVerification) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofVerification) ProtoMessage added in v2.15.0

func (*MsgSubmitProofVerification) ProtoMessage()

func (*MsgSubmitProofVerification) Reset added in v2.15.0

func (m *MsgSubmitProofVerification) Reset()

func (*MsgSubmitProofVerification) Size added in v2.15.0

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

func (*MsgSubmitProofVerification) String added in v2.15.0

func (m *MsgSubmitProofVerification) String() string

func (*MsgSubmitProofVerification) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofVerification) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofVerification) XXX_DiscardUnknown()

func (*MsgSubmitProofVerification) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofVerification) XXX_Merge added in v2.15.0

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

func (*MsgSubmitProofVerification) XXX_Size added in v2.15.0

func (m *MsgSubmitProofVerification) XXX_Size() int

func (*MsgSubmitProofVerification) XXX_Unmarshal added in v2.15.0

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

type MsgSubmitProofVerificationResponse added in v2.15.0

type MsgSubmitProofVerificationResponse struct {
}

MsgSubmitProofVerificationResponse defines the Msg/SubmitProofVerification response type.

func (*MsgSubmitProofVerificationResponse) Descriptor added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) Marshal added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) MarshalTo added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) ProtoMessage added in v2.15.0

func (*MsgSubmitProofVerificationResponse) ProtoMessage()

func (*MsgSubmitProofVerificationResponse) Reset added in v2.15.0

func (*MsgSubmitProofVerificationResponse) Size added in v2.15.0

func (*MsgSubmitProofVerificationResponse) String added in v2.15.0

func (*MsgSubmitProofVerificationResponse) Unmarshal added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgSubmitProofVerificationResponse) XXX_DiscardUnknown()

func (*MsgSubmitProofVerificationResponse) XXX_Marshal added in v2.15.0

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

func (*MsgSubmitProofVerificationResponse) XXX_Merge added in v2.15.0

func (*MsgSubmitProofVerificationResponse) XXX_Size added in v2.15.0

func (*MsgSubmitProofVerificationResponse) XXX_Unmarshal added in v2.15.0

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

type MsgUpdateParams added in v2.16.0

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/bounty parameters to update.
	//
	// 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 added in v2.16.0

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

func (*MsgUpdateParams) GetAuthority added in v2.16.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v2.16.0

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v2.16.0

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

func (*MsgUpdateParams) MarshalTo added in v2.16.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v2.16.0

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

func (*MsgUpdateParams) ProtoMessage added in v2.16.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v2.16.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v2.16.0

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

func (*MsgUpdateParams) String added in v2.16.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v2.16.0

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

func (*MsgUpdateParams) XXX_DiscardUnknown added in v2.16.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v2.16.0

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

func (*MsgUpdateParams) XXX_Merge added in v2.16.0

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

func (*MsgUpdateParams) XXX_Size added in v2.16.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v2.16.0

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

type MsgUpdateParamsResponse added in v2.16.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v2.16.0

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

func (*MsgUpdateParamsResponse) Marshal added in v2.16.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v2.16.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v2.16.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v2.16.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v2.16.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v2.16.0

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

func (*MsgUpdateParamsResponse) String added in v2.16.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v2.16.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v2.16.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v2.16.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v2.16.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v2.16.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v2.16.0

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

type MsgUpdateTheoremComplexity added in v2.16.0

type MsgUpdateTheoremComplexity struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId  uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id"`
	Checker    string `protobuf:"bytes,2,opt,name=checker,proto3" json:"checker,omitempty"`
	Complexity int64  `protobuf:"varint,3,opt,name=complexity,proto3" json:"complexity,omitempty"`
}

MsgUpdateTheoremComplexity defines a message to update theorem complexity.

func (*MsgUpdateTheoremComplexity) Descriptor added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) Marshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) MarshalTo added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) MarshalToSizedBuffer added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) ProtoMessage added in v2.16.0

func (*MsgUpdateTheoremComplexity) ProtoMessage()

func (*MsgUpdateTheoremComplexity) Reset added in v2.16.0

func (m *MsgUpdateTheoremComplexity) Reset()

func (*MsgUpdateTheoremComplexity) Size added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) String added in v2.16.0

func (m *MsgUpdateTheoremComplexity) String() string

func (*MsgUpdateTheoremComplexity) Unmarshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) XXX_DiscardUnknown added in v2.16.0

func (m *MsgUpdateTheoremComplexity) XXX_DiscardUnknown()

func (*MsgUpdateTheoremComplexity) XXX_Marshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) XXX_Merge added in v2.16.0

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

func (*MsgUpdateTheoremComplexity) XXX_Size added in v2.16.0

func (m *MsgUpdateTheoremComplexity) XXX_Size() int

func (*MsgUpdateTheoremComplexity) XXX_Unmarshal added in v2.16.0

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

type MsgUpdateTheoremComplexityResponse added in v2.16.0

type MsgUpdateTheoremComplexityResponse struct {
}

MsgUpdateTheoremComplexityResponse defines the Msg/UpdateTheoremComplexity response type.

func (*MsgUpdateTheoremComplexityResponse) Descriptor added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) Marshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) MarshalTo added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) MarshalToSizedBuffer added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) ProtoMessage added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) ProtoMessage()

func (*MsgUpdateTheoremComplexityResponse) Reset added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) Size added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) String added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) Unmarshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) XXX_DiscardUnknown added in v2.16.0

func (m *MsgUpdateTheoremComplexityResponse) XXX_DiscardUnknown()

func (*MsgUpdateTheoremComplexityResponse) XXX_Marshal added in v2.16.0

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

func (*MsgUpdateTheoremComplexityResponse) XXX_Merge added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) XXX_Size added in v2.16.0

func (*MsgUpdateTheoremComplexityResponse) XXX_Unmarshal added in v2.16.0

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

type MsgWithdrawReward added in v2.15.0

type MsgWithdrawReward struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgWithdrawReward defines a message to withdraw rewards.

func NewMsgWithdrawReward added in v2.15.0

func NewMsgWithdrawReward(address string) *MsgWithdrawReward

func (*MsgWithdrawReward) Descriptor added in v2.15.0

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

func (*MsgWithdrawReward) Marshal added in v2.15.0

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

func (*MsgWithdrawReward) MarshalTo added in v2.15.0

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

func (*MsgWithdrawReward) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgWithdrawReward) ProtoMessage added in v2.15.0

func (*MsgWithdrawReward) ProtoMessage()

func (*MsgWithdrawReward) Reset added in v2.15.0

func (m *MsgWithdrawReward) Reset()

func (*MsgWithdrawReward) Size added in v2.15.0

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

func (*MsgWithdrawReward) String added in v2.15.0

func (m *MsgWithdrawReward) String() string

func (*MsgWithdrawReward) Unmarshal added in v2.15.0

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

func (*MsgWithdrawReward) XXX_DiscardUnknown added in v2.15.0

func (m *MsgWithdrawReward) XXX_DiscardUnknown()

func (*MsgWithdrawReward) XXX_Marshal added in v2.15.0

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

func (*MsgWithdrawReward) XXX_Merge added in v2.15.0

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

func (*MsgWithdrawReward) XXX_Size added in v2.15.0

func (m *MsgWithdrawReward) XXX_Size() int

func (*MsgWithdrawReward) XXX_Unmarshal added in v2.15.0

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

type MsgWithdrawRewardResponse added in v2.15.0

type MsgWithdrawRewardResponse struct {
}

func (*MsgWithdrawRewardResponse) Descriptor added in v2.15.0

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

func (*MsgWithdrawRewardResponse) Marshal added in v2.15.0

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

func (*MsgWithdrawRewardResponse) MarshalTo added in v2.15.0

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

func (*MsgWithdrawRewardResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*MsgWithdrawRewardResponse) ProtoMessage added in v2.15.0

func (*MsgWithdrawRewardResponse) ProtoMessage()

func (*MsgWithdrawRewardResponse) Reset added in v2.15.0

func (m *MsgWithdrawRewardResponse) Reset()

func (*MsgWithdrawRewardResponse) Size added in v2.15.0

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

func (*MsgWithdrawRewardResponse) String added in v2.15.0

func (m *MsgWithdrawRewardResponse) String() string

func (*MsgWithdrawRewardResponse) Unmarshal added in v2.15.0

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

func (*MsgWithdrawRewardResponse) XXX_DiscardUnknown added in v2.15.0

func (m *MsgWithdrawRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawRewardResponse) XXX_Marshal added in v2.15.0

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

func (*MsgWithdrawRewardResponse) XXX_Merge added in v2.15.0

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

func (*MsgWithdrawRewardResponse) XXX_Size added in v2.15.0

func (m *MsgWithdrawRewardResponse) XXX_Size() int

func (*MsgWithdrawRewardResponse) XXX_Unmarshal added in v2.15.0

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

type Params added in v2.15.0

type Params struct {
	// Minimum grant for a theorem to enter the proof period.
	MinGrant []types1.Coin `protobuf:"bytes,1,rep,name=min_grant,json=minGrant,proto3" json:"min_grant"`
	// Minimum deposit for a proof to enter the proof_hash_lock period.
	MinDeposit []types1.Coin `protobuf:"bytes,2,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit"`
	// Duration of the theorem proof period. Initial value: 2 weeks.
	TheoremMaxProofPeriod *time.Duration `` /* 140-byte string literal not displayed */
	// Duration of the proof max lock period. 10min
	ProofMaxLockPeriod *time.Duration `` /* 131-byte string literal not displayed */
	// Minimum fee for a complexity.
	ComplexityFee types1.Coin `protobuf:"bytes,5,opt,name=complexity_fee,json=complexityFee,proto3" json:"complexity_fee"`
	// Maximum allowed complexity to prevent overflow and ensure reasonable reward calculations.
	MaxComplexity int64 `protobuf:"varint,6,opt,name=max_complexity,json=maxComplexity,proto3" json:"max_complexity,omitempty"`
}

func DefaultParams added in v2.15.0

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams added in v2.15.0

func NewParams(minGrant, minDeposit []sdk.Coin, theoremMaxProofPeriod, proofMaxLockPeriod time.Duration, complexityFee sdk.Coin, maxComplexity int64) Params

NewParams creates a new Params instance

func (*Params) Descriptor added in v2.15.0

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

func (*Params) GetComplexityFee added in v2.16.0

func (m *Params) GetComplexityFee() types1.Coin

func (*Params) GetMaxComplexity added in v2.16.0

func (m *Params) GetMaxComplexity() int64

func (*Params) GetMinDeposit added in v2.15.0

func (m *Params) GetMinDeposit() []types1.Coin

func (*Params) GetMinGrant added in v2.15.0

func (m *Params) GetMinGrant() []types1.Coin

func (*Params) GetProofMaxLockPeriod added in v2.15.0

func (m *Params) GetProofMaxLockPeriod() *time.Duration

func (*Params) GetTheoremMaxProofPeriod added in v2.15.0

func (m *Params) GetTheoremMaxProofPeriod() *time.Duration

func (*Params) Marshal added in v2.15.0

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

func (*Params) MarshalTo added in v2.15.0

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

func (*Params) MarshalToSizedBuffer added in v2.15.0

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

func (*Params) ProtoMessage added in v2.15.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v2.15.0

func (m *Params) Reset()

func (*Params) Size added in v2.15.0

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

func (*Params) String added in v2.15.0

func (m *Params) String() string

func (*Params) Unmarshal added in v2.15.0

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

func (Params) Validate added in v2.15.0

func (p Params) Validate() error

Validate performs validation on params

func (*Params) XXX_DiscardUnknown added in v2.15.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v2.15.0

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

func (*Params) XXX_Merge added in v2.15.0

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

func (*Params) XXX_Size added in v2.15.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v2.15.0

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

type Program

type Program struct {
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty" yaml:"program_id"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// JSON by ProgramDetail
	Detail       string        `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty" yaml:"detail"`
	AdminAddress string        `protobuf:"bytes,4,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty" yaml:"admin_address"`
	Status       ProgramStatus `protobuf:"varint,5,opt,name=status,proto3,enum=shentu.bounty.v1.ProgramStatus" json:"status,omitempty" yaml:"status"`
	CreateTime   time.Time     `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3,stdtime" json:"create_time" yaml:"create_time"`
}

func NewProgram

func NewProgram(
	pid, name, detail string,
	admin sdk.AccAddress,
	status ProgramStatus,
	createTime time.Time,
) Program

func (*Program) Descriptor

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

func (*Program) Marshal

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

func (*Program) MarshalTo

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

func (*Program) MarshalToSizedBuffer

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

func (*Program) ProtoMessage

func (*Program) ProtoMessage()

func (*Program) Reset

func (m *Program) Reset()

func (*Program) Size

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

func (*Program) String

func (m *Program) String() string

func (*Program) Unmarshal

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

func (*Program) XXX_DiscardUnknown

func (m *Program) XXX_DiscardUnknown()

func (*Program) XXX_Marshal

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

func (*Program) XXX_Merge

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

func (*Program) XXX_Size

func (m *Program) XXX_Size() int

func (*Program) XXX_Unmarshal

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

type ProgramFingerprint

type ProgramFingerprint struct {
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"id" yaml:"id"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// JSON by ProgramDetail
	Detail       string        `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty" yaml:"detail"`
	AdminAddress string        `protobuf:"bytes,4,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty" yaml:"admin_address"`
	Status       ProgramStatus `protobuf:"varint,5,opt,name=status,proto3,enum=shentu.bounty.v1.ProgramStatus" json:"status,omitempty" yaml:"status"`
}

func (*ProgramFingerprint) Descriptor

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

func (*ProgramFingerprint) Marshal

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

func (*ProgramFingerprint) MarshalTo

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

func (*ProgramFingerprint) MarshalToSizedBuffer

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

func (*ProgramFingerprint) ProtoMessage

func (*ProgramFingerprint) ProtoMessage()

func (*ProgramFingerprint) Reset

func (m *ProgramFingerprint) Reset()

func (*ProgramFingerprint) Size

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

func (*ProgramFingerprint) String

func (m *ProgramFingerprint) String() string

func (*ProgramFingerprint) Unmarshal

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

func (*ProgramFingerprint) XXX_DiscardUnknown

func (m *ProgramFingerprint) XXX_DiscardUnknown()

func (*ProgramFingerprint) XXX_Marshal

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

func (*ProgramFingerprint) XXX_Merge

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

func (*ProgramFingerprint) XXX_Size

func (m *ProgramFingerprint) XXX_Size() int

func (*ProgramFingerprint) XXX_Unmarshal

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

type ProgramStatus

type ProgramStatus int32
const (
	ProgramStatusInactive ProgramStatus = 0
	ProgramStatusActive   ProgramStatus = 1
	ProgramStatusClosed   ProgramStatus = 2
)

func (ProgramStatus) EnumDescriptor

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

func (ProgramStatus) String

func (x ProgramStatus) String() string

type Proof added in v2.15.0

type Proof struct {
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
	// id defines the unique id of the proof.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// detail is the proof data attached to the theorem stored in ipfs
	Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	// status defines the theorem status.
	Status ProofStatus `protobuf:"varint,4,opt,name=status,proto3,enum=shentu.bounty.v1.ProofStatus" json:"status,omitempty"`
	// submit_time is the time of proof submission.
	SubmitTime *time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time,omitempty"`
	// end_time is the time of proof timeout.
	EndTime *time.Time `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time,omitempty"`
	// prover is the address of the proof submitter
	Prover string `protobuf:"bytes,7,opt,name=prover,proto3" json:"prover,omitempty"`
	// deposit is the amount deposited by the prover
	Deposit []types1.Coin `protobuf:"bytes,8,rep,name=Deposit,proto3" json:"Deposit"`
}

func NewProof added in v2.15.0

func NewProof(theoremID uint64, proofHash, prover string, submitTime, endTime time.Time, deposit sdk.Coins) Proof

func (*Proof) Descriptor added in v2.15.0

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

func (*Proof) GetDeposit added in v2.15.0

func (m *Proof) GetDeposit() []types1.Coin

func (*Proof) GetDetail added in v2.15.0

func (m *Proof) GetDetail() string

func (*Proof) GetEndTime added in v2.15.0

func (m *Proof) GetEndTime() *time.Time

func (*Proof) GetId added in v2.15.0

func (m *Proof) GetId() string

func (*Proof) GetProver added in v2.15.0

func (m *Proof) GetProver() string

func (*Proof) GetStatus added in v2.15.0

func (m *Proof) GetStatus() ProofStatus

func (*Proof) GetSubmitTime added in v2.15.0

func (m *Proof) GetSubmitTime() *time.Time

func (*Proof) GetTheoremId added in v2.15.0

func (m *Proof) GetTheoremId() uint64

func (*Proof) Marshal added in v2.15.0

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

func (*Proof) MarshalTo added in v2.15.0

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

func (*Proof) MarshalToSizedBuffer added in v2.15.0

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

func (*Proof) ProtoMessage added in v2.15.0

func (*Proof) ProtoMessage()

func (*Proof) Reset added in v2.15.0

func (m *Proof) Reset()

func (*Proof) Size added in v2.15.0

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

func (*Proof) String added in v2.15.0

func (m *Proof) String() string

func (*Proof) Unmarshal added in v2.15.0

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

func (*Proof) XXX_DiscardUnknown added in v2.15.0

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal added in v2.15.0

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

func (*Proof) XXX_Merge added in v2.15.0

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

func (*Proof) XXX_Size added in v2.15.0

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal added in v2.15.0

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

type ProofHash added in v2.15.0

type ProofHash struct {
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
	Detail    string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	Prover    string `protobuf:"bytes,3,opt,name=prover,proto3" json:"prover,omitempty"`
}

func (*ProofHash) Descriptor added in v2.15.0

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

func (*ProofHash) GetDetail added in v2.15.0

func (m *ProofHash) GetDetail() string

func (*ProofHash) GetProver added in v2.15.0

func (m *ProofHash) GetProver() string

func (*ProofHash) GetTheoremId added in v2.15.0

func (m *ProofHash) GetTheoremId() uint64

func (*ProofHash) Marshal added in v2.15.0

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

func (*ProofHash) MarshalTo added in v2.15.0

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

func (*ProofHash) MarshalToSizedBuffer added in v2.15.0

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

func (*ProofHash) ProtoMessage added in v2.15.0

func (*ProofHash) ProtoMessage()

func (*ProofHash) Reset added in v2.15.0

func (m *ProofHash) Reset()

func (*ProofHash) Size added in v2.15.0

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

func (*ProofHash) String added in v2.15.0

func (m *ProofHash) String() string

func (*ProofHash) Unmarshal added in v2.15.0

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

func (*ProofHash) XXX_DiscardUnknown added in v2.15.0

func (m *ProofHash) XXX_DiscardUnknown()

func (*ProofHash) XXX_Marshal added in v2.15.0

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

func (*ProofHash) XXX_Merge added in v2.15.0

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

func (*ProofHash) XXX_Size added in v2.15.0

func (m *ProofHash) XXX_Size() int

func (*ProofHash) XXX_Unmarshal added in v2.15.0

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

type ProofStatus added in v2.15.0

type ProofStatus int32
const (
	// default proof status.
	ProofStatus_PROOF_STATUS_UNSPECIFIED ProofStatus = 0
	// proof status during the creation period.
	ProofStatus_PROOF_STATUS_HASH_LOCK_PERIOD ProofStatus = 1
	// proof status during the upload proof detail period timeout.
	ProofStatus_PROOF_STATUS_HASH_LOCK_TIMEOUT ProofStatus = 2
	// proof status during the upload proof detail period.
	ProofStatus_PROOF_STATUS_HASH_DETAIL_PERIOD ProofStatus = 3
	// theorem that has passed.
	ProofStatus_PROOF_STATUS_PASSED ProofStatus = 4
	// theorem that has failed.
	ProofStatus_PROOF_STATUS_FAILED ProofStatus = 5
)

func (ProofStatus) EnumDescriptor added in v2.15.0

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

func (ProofStatus) String added in v2.15.0

func (x ProofStatus) String() string

type QueryClient

type QueryClient interface {
	// Programs queries all programs based on given status.
	Programs(ctx context.Context, in *QueryProgramsRequest, opts ...grpc.CallOption) (*QueryProgramsResponse, error)
	// Program queries program details based on ProgramId.
	Program(ctx context.Context, in *QueryProgramRequest, opts ...grpc.CallOption) (*QueryProgramResponse, error)
	// Findings queries findings of a given program.
	Findings(ctx context.Context, in *QueryFindingsRequest, opts ...grpc.CallOption) (*QueryFindingsResponse, error)
	// Finding queries Finding information based on programID, FindingId.
	Finding(ctx context.Context, in *QueryFindingRequest, opts ...grpc.CallOption) (*QueryFindingResponse, error)
	// FindingFingerprint queries finding fingerprint based on findingId.
	FindingFingerprint(ctx context.Context, in *QueryFindingFingerprintRequest, opts ...grpc.CallOption) (*QueryFindingFingerprintResponse, error)
	// ProgramFingerprint queries program fingerprint based on programId.
	ProgramFingerprint(ctx context.Context, in *QueryProgramFingerprintRequest, opts ...grpc.CallOption) (*QueryProgramFingerprintResponse, error)
	// Theorems queries all theorems based on given status.
	Theorems(ctx context.Context, in *QueryTheoremsRequest, opts ...grpc.CallOption) (*QueryTheoremsResponse, error)
	// Theorem queries theorem details based on theoremID.
	Theorem(ctx context.Context, in *QueryTheoremRequest, opts ...grpc.CallOption) (*QueryTheoremResponse, error)
	// Proofs queries all proofs based on theorem id.
	Proofs(ctx context.Context, in *QueryProofsRequest, opts ...grpc.CallOption) (*QueryProofsResponse, error)
	// Proof queries proof details based on proofID.
	Proof(ctx context.Context, in *QueryProofRequest, opts ...grpc.CallOption) (*QueryProofResponse, error)
	// AllRewards queries all reward details (including imported rewards) based on address.
	AllRewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// Params queries the bounty module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Grants queries theorem details based on theoremID.
	Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, 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 QueryFindingFingerprintRequest

type QueryFindingFingerprintRequest struct {
	// finding_id defines the unique id of the finding.
	FindingId string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"`
}

QueryFindingFingerPrint is the request type for the Query/Finding RPC method.

func (*QueryFindingFingerprintRequest) Descriptor

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

func (*QueryFindingFingerprintRequest) GetFindingId

func (m *QueryFindingFingerprintRequest) GetFindingId() string

func (*QueryFindingFingerprintRequest) Marshal

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

func (*QueryFindingFingerprintRequest) MarshalTo

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

func (*QueryFindingFingerprintRequest) MarshalToSizedBuffer

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

func (*QueryFindingFingerprintRequest) ProtoMessage

func (*QueryFindingFingerprintRequest) ProtoMessage()

func (*QueryFindingFingerprintRequest) Reset

func (m *QueryFindingFingerprintRequest) Reset()

func (*QueryFindingFingerprintRequest) Size

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

func (*QueryFindingFingerprintRequest) String

func (*QueryFindingFingerprintRequest) Unmarshal

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

func (*QueryFindingFingerprintRequest) XXX_DiscardUnknown

func (m *QueryFindingFingerprintRequest) XXX_DiscardUnknown()

func (*QueryFindingFingerprintRequest) XXX_Marshal

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

func (*QueryFindingFingerprintRequest) XXX_Merge

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

func (*QueryFindingFingerprintRequest) XXX_Size

func (m *QueryFindingFingerprintRequest) XXX_Size() int

func (*QueryFindingFingerprintRequest) XXX_Unmarshal

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

type QueryFindingFingerprintResponse

type QueryFindingFingerprintResponse struct {
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
}

QueryFindingFingerPrintResponse is the response type for the Query/Finding RPC method.

func (*QueryFindingFingerprintResponse) Descriptor

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

func (*QueryFindingFingerprintResponse) GetFingerprint

func (m *QueryFindingFingerprintResponse) GetFingerprint() string

func (*QueryFindingFingerprintResponse) Marshal

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

func (*QueryFindingFingerprintResponse) MarshalTo

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

func (*QueryFindingFingerprintResponse) MarshalToSizedBuffer

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

func (*QueryFindingFingerprintResponse) ProtoMessage

func (*QueryFindingFingerprintResponse) ProtoMessage()

func (*QueryFindingFingerprintResponse) Reset

func (*QueryFindingFingerprintResponse) Size

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

func (*QueryFindingFingerprintResponse) String

func (*QueryFindingFingerprintResponse) Unmarshal

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

func (*QueryFindingFingerprintResponse) XXX_DiscardUnknown

func (m *QueryFindingFingerprintResponse) XXX_DiscardUnknown()

func (*QueryFindingFingerprintResponse) XXX_Marshal

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

func (*QueryFindingFingerprintResponse) XXX_Merge

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

func (*QueryFindingFingerprintResponse) XXX_Size

func (m *QueryFindingFingerprintResponse) XXX_Size() int

func (*QueryFindingFingerprintResponse) XXX_Unmarshal

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

type QueryFindingRequest

type QueryFindingRequest struct {
	// finding_id defines the unique id of the finding.
	FindingId string `protobuf:"bytes,1,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"`
}

QueryFindingRequest is the request type for the Query/Finding RPC method.

func (*QueryFindingRequest) Descriptor

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

func (*QueryFindingRequest) GetFindingId

func (m *QueryFindingRequest) GetFindingId() string

func (*QueryFindingRequest) Marshal

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

func (*QueryFindingRequest) MarshalTo

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

func (*QueryFindingRequest) MarshalToSizedBuffer

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

func (*QueryFindingRequest) ProtoMessage

func (*QueryFindingRequest) ProtoMessage()

func (*QueryFindingRequest) Reset

func (m *QueryFindingRequest) Reset()

func (*QueryFindingRequest) Size

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

func (*QueryFindingRequest) String

func (m *QueryFindingRequest) String() string

func (*QueryFindingRequest) Unmarshal

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

func (*QueryFindingRequest) XXX_DiscardUnknown

func (m *QueryFindingRequest) XXX_DiscardUnknown()

func (*QueryFindingRequest) XXX_Marshal

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

func (*QueryFindingRequest) XXX_Merge

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

func (*QueryFindingRequest) XXX_Size

func (m *QueryFindingRequest) XXX_Size() int

func (*QueryFindingRequest) XXX_Unmarshal

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

type QueryFindingResponse

type QueryFindingResponse struct {
	Finding *Finding `protobuf:"bytes,1,opt,name=finding,proto3" json:"finding,omitempty"`
}

QueryFindingResponse is the response type for the Query/Finding RPC method.

func (*QueryFindingResponse) Descriptor

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

func (*QueryFindingResponse) GetFinding

func (m *QueryFindingResponse) GetFinding() *Finding

func (*QueryFindingResponse) Marshal

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

func (*QueryFindingResponse) MarshalTo

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

func (*QueryFindingResponse) MarshalToSizedBuffer

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

func (*QueryFindingResponse) ProtoMessage

func (*QueryFindingResponse) ProtoMessage()

func (*QueryFindingResponse) Reset

func (m *QueryFindingResponse) Reset()

func (*QueryFindingResponse) Size

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

func (*QueryFindingResponse) String

func (m *QueryFindingResponse) String() string

func (*QueryFindingResponse) Unmarshal

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

func (*QueryFindingResponse) XXX_DiscardUnknown

func (m *QueryFindingResponse) XXX_DiscardUnknown()

func (*QueryFindingResponse) XXX_Marshal

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

func (*QueryFindingResponse) XXX_Merge

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

func (*QueryFindingResponse) XXX_Size

func (m *QueryFindingResponse) XXX_Size() int

func (*QueryFindingResponse) XXX_Unmarshal

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

type QueryFindingsRequest

type QueryFindingsRequest struct {
	// program_id defines the unique id of the program.
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"`
	// submitter_address defines the find address for the finding.
	SubmitterAddress string `protobuf:"bytes,2,opt,name=submitter_address,json=submitterAddress,proto3" json:"submitter_address,omitempty"`
	// pagination defines the pagination in the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFindingRequests is the request type for the Query/Findings RPC method.

func (*QueryFindingsRequest) Descriptor

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

func (*QueryFindingsRequest) GetPagination

func (m *QueryFindingsRequest) GetPagination() *query.PageRequest

func (*QueryFindingsRequest) GetProgramId

func (m *QueryFindingsRequest) GetProgramId() string

func (*QueryFindingsRequest) GetSubmitterAddress

func (m *QueryFindingsRequest) GetSubmitterAddress() string

func (*QueryFindingsRequest) Marshal

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

func (*QueryFindingsRequest) MarshalTo

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

func (*QueryFindingsRequest) MarshalToSizedBuffer

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

func (*QueryFindingsRequest) ProtoMessage

func (*QueryFindingsRequest) ProtoMessage()

func (*QueryFindingsRequest) Reset

func (m *QueryFindingsRequest) Reset()

func (*QueryFindingsRequest) Size

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

func (*QueryFindingsRequest) String

func (m *QueryFindingsRequest) String() string

func (*QueryFindingsRequest) Unmarshal

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

func (*QueryFindingsRequest) XXX_DiscardUnknown

func (m *QueryFindingsRequest) XXX_DiscardUnknown()

func (*QueryFindingsRequest) XXX_Marshal

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

func (*QueryFindingsRequest) XXX_Merge

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

func (*QueryFindingsRequest) XXX_Size

func (m *QueryFindingsRequest) XXX_Size() int

func (*QueryFindingsRequest) XXX_Unmarshal

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

type QueryFindingsResponse

type QueryFindingsResponse struct {
	Findings []*Finding `protobuf:"bytes,1,rep,name=findings,proto3" json:"findings,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFindingsResponse is the response type for the Query/Findings RPC method.

func (*QueryFindingsResponse) Descriptor

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

func (*QueryFindingsResponse) GetFindings

func (m *QueryFindingsResponse) GetFindings() []*Finding

func (*QueryFindingsResponse) GetPagination

func (m *QueryFindingsResponse) GetPagination() *query.PageResponse

func (*QueryFindingsResponse) Marshal

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

func (*QueryFindingsResponse) MarshalTo

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

func (*QueryFindingsResponse) MarshalToSizedBuffer

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

func (*QueryFindingsResponse) ProtoMessage

func (*QueryFindingsResponse) ProtoMessage()

func (*QueryFindingsResponse) Reset

func (m *QueryFindingsResponse) Reset()

func (*QueryFindingsResponse) Size

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

func (*QueryFindingsResponse) String

func (m *QueryFindingsResponse) String() string

func (*QueryFindingsResponse) Unmarshal

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

func (*QueryFindingsResponse) XXX_DiscardUnknown

func (m *QueryFindingsResponse) XXX_DiscardUnknown()

func (*QueryFindingsResponse) XXX_Marshal

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

func (*QueryFindingsResponse) XXX_Merge

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

func (*QueryFindingsResponse) XXX_Size

func (m *QueryFindingsResponse) XXX_Size() int

func (*QueryFindingsResponse) XXX_Unmarshal

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

type QueryGrantsRequest added in v2.15.0

type QueryGrantsRequest struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGrantsRequest is the request type for the Query/Grants RPC method.

func (*QueryGrantsRequest) Descriptor added in v2.15.0

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

func (*QueryGrantsRequest) GetPagination added in v2.15.0

func (m *QueryGrantsRequest) GetPagination() *query.PageRequest

func (*QueryGrantsRequest) GetTheoremId added in v2.15.0

func (m *QueryGrantsRequest) GetTheoremId() uint64

func (*QueryGrantsRequest) Marshal added in v2.15.0

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

func (*QueryGrantsRequest) MarshalTo added in v2.15.0

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

func (*QueryGrantsRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryGrantsRequest) ProtoMessage added in v2.15.0

func (*QueryGrantsRequest) ProtoMessage()

func (*QueryGrantsRequest) Reset added in v2.15.0

func (m *QueryGrantsRequest) Reset()

func (*QueryGrantsRequest) Size added in v2.15.0

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

func (*QueryGrantsRequest) String added in v2.15.0

func (m *QueryGrantsRequest) String() string

func (*QueryGrantsRequest) Unmarshal added in v2.15.0

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

func (*QueryGrantsRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryGrantsRequest) XXX_DiscardUnknown()

func (*QueryGrantsRequest) XXX_Marshal added in v2.15.0

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

func (*QueryGrantsRequest) XXX_Merge added in v2.15.0

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

func (*QueryGrantsRequest) XXX_Size added in v2.15.0

func (m *QueryGrantsRequest) XXX_Size() int

func (*QueryGrantsRequest) XXX_Unmarshal added in v2.15.0

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

type QueryGrantsResponse added in v2.15.0

type QueryGrantsResponse struct {
	Grants []*Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGrantsResponse defines the response type for querying x/bounty grants.

func (*QueryGrantsResponse) Descriptor added in v2.15.0

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

func (*QueryGrantsResponse) GetGrants added in v2.15.0

func (m *QueryGrantsResponse) GetGrants() []*Grant

func (*QueryGrantsResponse) GetPagination added in v2.15.0

func (m *QueryGrantsResponse) GetPagination() *query.PageResponse

func (*QueryGrantsResponse) Marshal added in v2.15.0

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

func (*QueryGrantsResponse) MarshalTo added in v2.15.0

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

func (*QueryGrantsResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryGrantsResponse) ProtoMessage added in v2.15.0

func (*QueryGrantsResponse) ProtoMessage()

func (*QueryGrantsResponse) Reset added in v2.15.0

func (m *QueryGrantsResponse) Reset()

func (*QueryGrantsResponse) Size added in v2.15.0

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

func (*QueryGrantsResponse) String added in v2.15.0

func (m *QueryGrantsResponse) String() string

func (*QueryGrantsResponse) Unmarshal added in v2.15.0

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

func (*QueryGrantsResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryGrantsResponse) XXX_DiscardUnknown()

func (*QueryGrantsResponse) XXX_Marshal added in v2.15.0

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

func (*QueryGrantsResponse) XXX_Merge added in v2.15.0

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

func (*QueryGrantsResponse) XXX_Size added in v2.15.0

func (m *QueryGrantsResponse) XXX_Size() int

func (*QueryGrantsResponse) XXX_Unmarshal added in v2.15.0

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

type QueryHostRequest

type QueryHostRequest struct {
	// host_addr defines the host address to query for.
	HostAddr string `protobuf:"bytes,1,opt,name=host_addr,json=hostAddr,proto3" json:"host_addr,omitempty"`
}

QueryHostRequest is the request type for the Query/Host RPC method.

func (*QueryHostRequest) Descriptor

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

func (*QueryHostRequest) GetHostAddr

func (m *QueryHostRequest) GetHostAddr() string

func (*QueryHostRequest) Marshal

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

func (*QueryHostRequest) MarshalTo

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

func (*QueryHostRequest) MarshalToSizedBuffer

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

func (*QueryHostRequest) ProtoMessage

func (*QueryHostRequest) ProtoMessage()

func (*QueryHostRequest) Reset

func (m *QueryHostRequest) Reset()

func (*QueryHostRequest) Size

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

func (*QueryHostRequest) String

func (m *QueryHostRequest) String() string

func (*QueryHostRequest) Unmarshal

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

func (*QueryHostRequest) XXX_DiscardUnknown

func (m *QueryHostRequest) XXX_DiscardUnknown()

func (*QueryHostRequest) XXX_Marshal

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

func (*QueryHostRequest) XXX_Merge

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

func (*QueryHostRequest) XXX_Size

func (m *QueryHostRequest) XXX_Size() int

func (*QueryHostRequest) XXX_Unmarshal

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

type QueryHostResponse

type QueryHostResponse struct {
}

QueryHostResponse is the response type for the Query/Host RPC method.

func (*QueryHostResponse) Descriptor

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

func (*QueryHostResponse) Marshal

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

func (*QueryHostResponse) MarshalTo

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

func (*QueryHostResponse) MarshalToSizedBuffer

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

func (*QueryHostResponse) ProtoMessage

func (*QueryHostResponse) ProtoMessage()

func (*QueryHostResponse) Reset

func (m *QueryHostResponse) Reset()

func (*QueryHostResponse) Size

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

func (*QueryHostResponse) String

func (m *QueryHostResponse) String() string

func (*QueryHostResponse) Unmarshal

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

func (*QueryHostResponse) XXX_DiscardUnknown

func (m *QueryHostResponse) XXX_DiscardUnknown()

func (*QueryHostResponse) XXX_Marshal

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

func (*QueryHostResponse) XXX_Merge

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

func (*QueryHostResponse) XXX_Size

func (m *QueryHostResponse) XXX_Size() int

func (*QueryHostResponse) XXX_Unmarshal

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

type QueryHostsRequest

type QueryHostsRequest struct {
}

QueryHostsRequest is the request type for the Query/Hosts RPC method.

func (*QueryHostsRequest) Descriptor

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

func (*QueryHostsRequest) Marshal

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

func (*QueryHostsRequest) MarshalTo

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

func (*QueryHostsRequest) MarshalToSizedBuffer

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

func (*QueryHostsRequest) ProtoMessage

func (*QueryHostsRequest) ProtoMessage()

func (*QueryHostsRequest) Reset

func (m *QueryHostsRequest) Reset()

func (*QueryHostsRequest) Size

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

func (*QueryHostsRequest) String

func (m *QueryHostsRequest) String() string

func (*QueryHostsRequest) Unmarshal

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

func (*QueryHostsRequest) XXX_DiscardUnknown

func (m *QueryHostsRequest) XXX_DiscardUnknown()

func (*QueryHostsRequest) XXX_Marshal

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

func (*QueryHostsRequest) XXX_Merge

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

func (*QueryHostsRequest) XXX_Size

func (m *QueryHostsRequest) XXX_Size() int

func (*QueryHostsRequest) XXX_Unmarshal

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

type QueryHostsResponse

type QueryHostsResponse struct {
}

QueryHostsResponse is the response type for the Query/Hosts RPC method.

func (*QueryHostsResponse) Descriptor

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

func (*QueryHostsResponse) Marshal

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

func (*QueryHostsResponse) MarshalTo

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

func (*QueryHostsResponse) MarshalToSizedBuffer

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

func (*QueryHostsResponse) ProtoMessage

func (*QueryHostsResponse) ProtoMessage()

func (*QueryHostsResponse) Reset

func (m *QueryHostsResponse) Reset()

func (*QueryHostsResponse) Size

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

func (*QueryHostsResponse) String

func (m *QueryHostsResponse) String() string

func (*QueryHostsResponse) Unmarshal

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

func (*QueryHostsResponse) XXX_DiscardUnknown

func (m *QueryHostsResponse) XXX_DiscardUnknown()

func (*QueryHostsResponse) XXX_Marshal

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

func (*QueryHostsResponse) XXX_Merge

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

func (*QueryHostsResponse) XXX_Size

func (m *QueryHostsResponse) XXX_Size() int

func (*QueryHostsResponse) XXX_Unmarshal

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

type QueryParamsRequest added in v2.15.0

type QueryParamsRequest struct {
}

QueryParamsRequest defines the request type for querying x/bounty parameters.

func (*QueryParamsRequest) Descriptor added in v2.15.0

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

func (*QueryParamsRequest) Marshal added in v2.15.0

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

func (*QueryParamsRequest) MarshalTo added in v2.15.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryParamsRequest) ProtoMessage added in v2.15.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v2.15.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v2.15.0

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

func (*QueryParamsRequest) String added in v2.15.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v2.15.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v2.15.0

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

func (*QueryParamsRequest) XXX_Merge added in v2.15.0

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

func (*QueryParamsRequest) XXX_Size added in v2.15.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v2.15.0

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

type QueryParamsResponse added in v2.15.0

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

QueryParamsResponse defines the response type for querying x/bounty parameters.

func (*QueryParamsResponse) Descriptor added in v2.15.0

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

func (*QueryParamsResponse) GetParams added in v2.15.0

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal added in v2.15.0

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

func (*QueryParamsResponse) MarshalTo added in v2.15.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryParamsResponse) ProtoMessage added in v2.15.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v2.15.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v2.15.0

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

func (*QueryParamsResponse) String added in v2.15.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v2.15.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v2.15.0

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

func (*QueryParamsResponse) XXX_Merge added in v2.15.0

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

func (*QueryParamsResponse) XXX_Size added in v2.15.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v2.15.0

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

type QueryProgramFingerprintRequest

type QueryProgramFingerprintRequest struct {
	// program_id defines the unique id of the finding.
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"`
}

QueryProgramFingerprintRequest is the request type for the Query/Finding RPC method.

func (*QueryProgramFingerprintRequest) Descriptor

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

func (*QueryProgramFingerprintRequest) GetProgramId

func (m *QueryProgramFingerprintRequest) GetProgramId() string

func (*QueryProgramFingerprintRequest) Marshal

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

func (*QueryProgramFingerprintRequest) MarshalTo

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

func (*QueryProgramFingerprintRequest) MarshalToSizedBuffer

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

func (*QueryProgramFingerprintRequest) ProtoMessage

func (*QueryProgramFingerprintRequest) ProtoMessage()

func (*QueryProgramFingerprintRequest) Reset

func (m *QueryProgramFingerprintRequest) Reset()

func (*QueryProgramFingerprintRequest) Size

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

func (*QueryProgramFingerprintRequest) String

func (*QueryProgramFingerprintRequest) Unmarshal

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

func (*QueryProgramFingerprintRequest) XXX_DiscardUnknown

func (m *QueryProgramFingerprintRequest) XXX_DiscardUnknown()

func (*QueryProgramFingerprintRequest) XXX_Marshal

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

func (*QueryProgramFingerprintRequest) XXX_Merge

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

func (*QueryProgramFingerprintRequest) XXX_Size

func (m *QueryProgramFingerprintRequest) XXX_Size() int

func (*QueryProgramFingerprintRequest) XXX_Unmarshal

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

type QueryProgramFingerprintResponse

type QueryProgramFingerprintResponse struct {
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
}

QueryProgramFingerprintResponse is the response type for the Query/Finding RPC method.

func (*QueryProgramFingerprintResponse) Descriptor

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

func (*QueryProgramFingerprintResponse) GetFingerprint

func (m *QueryProgramFingerprintResponse) GetFingerprint() string

func (*QueryProgramFingerprintResponse) Marshal

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

func (*QueryProgramFingerprintResponse) MarshalTo

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

func (*QueryProgramFingerprintResponse) MarshalToSizedBuffer

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

func (*QueryProgramFingerprintResponse) ProtoMessage

func (*QueryProgramFingerprintResponse) ProtoMessage()

func (*QueryProgramFingerprintResponse) Reset

func (*QueryProgramFingerprintResponse) Size

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

func (*QueryProgramFingerprintResponse) String

func (*QueryProgramFingerprintResponse) Unmarshal

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

func (*QueryProgramFingerprintResponse) XXX_DiscardUnknown

func (m *QueryProgramFingerprintResponse) XXX_DiscardUnknown()

func (*QueryProgramFingerprintResponse) XXX_Marshal

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

func (*QueryProgramFingerprintResponse) XXX_Merge

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

func (*QueryProgramFingerprintResponse) XXX_Size

func (m *QueryProgramFingerprintResponse) XXX_Size() int

func (*QueryProgramFingerprintResponse) XXX_Unmarshal

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

type QueryProgramRequest

type QueryProgramRequest struct {
	// program_id defines the unique id of the bounty program.
	ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"`
}

QueryProgramRequest is the request type for the Query/Program RPC method.

func (*QueryProgramRequest) Descriptor

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

func (*QueryProgramRequest) GetProgramId

func (m *QueryProgramRequest) GetProgramId() string

func (*QueryProgramRequest) Marshal

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

func (*QueryProgramRequest) MarshalTo

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

func (*QueryProgramRequest) MarshalToSizedBuffer

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

func (*QueryProgramRequest) ProtoMessage

func (*QueryProgramRequest) ProtoMessage()

func (*QueryProgramRequest) Reset

func (m *QueryProgramRequest) Reset()

func (*QueryProgramRequest) Size

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

func (*QueryProgramRequest) String

func (m *QueryProgramRequest) String() string

func (*QueryProgramRequest) Unmarshal

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

func (*QueryProgramRequest) XXX_DiscardUnknown

func (m *QueryProgramRequest) XXX_DiscardUnknown()

func (*QueryProgramRequest) XXX_Marshal

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

func (*QueryProgramRequest) XXX_Merge

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

func (*QueryProgramRequest) XXX_Size

func (m *QueryProgramRequest) XXX_Size() int

func (*QueryProgramRequest) XXX_Unmarshal

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

type QueryProgramResponse

type QueryProgramResponse struct {
	Program *Program `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty"`
}

QueryProgramResponse is the response type for the Query/Program RPC method.

func (*QueryProgramResponse) Descriptor

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

func (*QueryProgramResponse) GetProgram

func (m *QueryProgramResponse) GetProgram() *Program

func (*QueryProgramResponse) Marshal

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

func (*QueryProgramResponse) MarshalTo

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

func (*QueryProgramResponse) MarshalToSizedBuffer

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

func (*QueryProgramResponse) ProtoMessage

func (*QueryProgramResponse) ProtoMessage()

func (*QueryProgramResponse) Reset

func (m *QueryProgramResponse) Reset()

func (*QueryProgramResponse) Size

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

func (*QueryProgramResponse) String

func (m *QueryProgramResponse) String() string

func (*QueryProgramResponse) Unmarshal

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

func (*QueryProgramResponse) XXX_DiscardUnknown

func (m *QueryProgramResponse) XXX_DiscardUnknown()

func (*QueryProgramResponse) XXX_Marshal

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

func (*QueryProgramResponse) XXX_Merge

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

func (*QueryProgramResponse) XXX_Size

func (m *QueryProgramResponse) XXX_Size() int

func (*QueryProgramResponse) XXX_Unmarshal

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

type QueryProgramsRequest

type QueryProgramsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProgramsRequest is the request type for the Query/Programs RPC method.

func (*QueryProgramsRequest) Descriptor

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

func (*QueryProgramsRequest) GetPagination

func (m *QueryProgramsRequest) GetPagination() *query.PageRequest

func (*QueryProgramsRequest) Marshal

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

func (*QueryProgramsRequest) MarshalTo

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

func (*QueryProgramsRequest) MarshalToSizedBuffer

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

func (*QueryProgramsRequest) ProtoMessage

func (*QueryProgramsRequest) ProtoMessage()

func (*QueryProgramsRequest) Reset

func (m *QueryProgramsRequest) Reset()

func (*QueryProgramsRequest) Size

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

func (*QueryProgramsRequest) String

func (m *QueryProgramsRequest) String() string

func (*QueryProgramsRequest) Unmarshal

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

func (*QueryProgramsRequest) XXX_DiscardUnknown

func (m *QueryProgramsRequest) XXX_DiscardUnknown()

func (*QueryProgramsRequest) XXX_Marshal

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

func (*QueryProgramsRequest) XXX_Merge

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

func (*QueryProgramsRequest) XXX_Size

func (m *QueryProgramsRequest) XXX_Size() int

func (*QueryProgramsRequest) XXX_Unmarshal

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

type QueryProgramsResponse

type QueryProgramsResponse struct {
	Programs []*Program `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProgramsResponse is the response type for the Query/Programs RPC method.

func (*QueryProgramsResponse) Descriptor

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

func (*QueryProgramsResponse) GetPagination

func (m *QueryProgramsResponse) GetPagination() *query.PageResponse

func (*QueryProgramsResponse) GetPrograms

func (m *QueryProgramsResponse) GetPrograms() []*Program

func (*QueryProgramsResponse) Marshal

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

func (*QueryProgramsResponse) MarshalTo

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

func (*QueryProgramsResponse) MarshalToSizedBuffer

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

func (*QueryProgramsResponse) ProtoMessage

func (*QueryProgramsResponse) ProtoMessage()

func (*QueryProgramsResponse) Reset

func (m *QueryProgramsResponse) Reset()

func (*QueryProgramsResponse) Size

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

func (*QueryProgramsResponse) String

func (m *QueryProgramsResponse) String() string

func (*QueryProgramsResponse) Unmarshal

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

func (*QueryProgramsResponse) XXX_DiscardUnknown

func (m *QueryProgramsResponse) XXX_DiscardUnknown()

func (*QueryProgramsResponse) XXX_Marshal

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

func (*QueryProgramsResponse) XXX_Merge

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

func (*QueryProgramsResponse) XXX_Size

func (m *QueryProgramsResponse) XXX_Size() int

func (*QueryProgramsResponse) XXX_Unmarshal

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

type QueryProofRequest added in v2.15.0

type QueryProofRequest struct {
	// proof_id defines the unique id of the proof.
	ProofId string `protobuf:"bytes,1,opt,name=proof_id,json=proofId,proto3" json:"proof_id,omitempty"`
}

QueryProofRequest is the request type for the Query/Proof RPC method.

func (*QueryProofRequest) Descriptor added in v2.15.0

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

func (*QueryProofRequest) GetProofId added in v2.15.0

func (m *QueryProofRequest) GetProofId() string

func (*QueryProofRequest) Marshal added in v2.15.0

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

func (*QueryProofRequest) MarshalTo added in v2.15.0

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

func (*QueryProofRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryProofRequest) ProtoMessage added in v2.15.0

func (*QueryProofRequest) ProtoMessage()

func (*QueryProofRequest) Reset added in v2.15.0

func (m *QueryProofRequest) Reset()

func (*QueryProofRequest) Size added in v2.15.0

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

func (*QueryProofRequest) String added in v2.15.0

func (m *QueryProofRequest) String() string

func (*QueryProofRequest) Unmarshal added in v2.15.0

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

func (*QueryProofRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryProofRequest) XXX_DiscardUnknown()

func (*QueryProofRequest) XXX_Marshal added in v2.15.0

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

func (*QueryProofRequest) XXX_Merge added in v2.15.0

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

func (*QueryProofRequest) XXX_Size added in v2.15.0

func (m *QueryProofRequest) XXX_Size() int

func (*QueryProofRequest) XXX_Unmarshal added in v2.15.0

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

type QueryProofResponse added in v2.15.0

type QueryProofResponse struct {
	Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
}

QueryProofResponse is the response type for the Query/Proof RPC method.

func (*QueryProofResponse) Descriptor added in v2.15.0

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

func (*QueryProofResponse) GetProof added in v2.15.0

func (m *QueryProofResponse) GetProof() *Proof

func (*QueryProofResponse) Marshal added in v2.15.0

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

func (*QueryProofResponse) MarshalTo added in v2.15.0

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

func (*QueryProofResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryProofResponse) ProtoMessage added in v2.15.0

func (*QueryProofResponse) ProtoMessage()

func (*QueryProofResponse) Reset added in v2.15.0

func (m *QueryProofResponse) Reset()

func (*QueryProofResponse) Size added in v2.15.0

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

func (*QueryProofResponse) String added in v2.15.0

func (m *QueryProofResponse) String() string

func (*QueryProofResponse) Unmarshal added in v2.15.0

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

func (*QueryProofResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryProofResponse) XXX_DiscardUnknown()

func (*QueryProofResponse) XXX_Marshal added in v2.15.0

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

func (*QueryProofResponse) XXX_Merge added in v2.15.0

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

func (*QueryProofResponse) XXX_Size added in v2.15.0

func (m *QueryProofResponse) XXX_Size() int

func (*QueryProofResponse) XXX_Unmarshal added in v2.15.0

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

type QueryProofsRequest added in v2.15.0

type QueryProofsRequest struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProofsRequest is the request type for the Query/Proofs RPC method.

func (*QueryProofsRequest) Descriptor added in v2.15.0

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

func (*QueryProofsRequest) GetPagination added in v2.15.0

func (m *QueryProofsRequest) GetPagination() *query.PageRequest

func (*QueryProofsRequest) GetTheoremId added in v2.15.0

func (m *QueryProofsRequest) GetTheoremId() uint64

func (*QueryProofsRequest) Marshal added in v2.15.0

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

func (*QueryProofsRequest) MarshalTo added in v2.15.0

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

func (*QueryProofsRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryProofsRequest) ProtoMessage added in v2.15.0

func (*QueryProofsRequest) ProtoMessage()

func (*QueryProofsRequest) Reset added in v2.15.0

func (m *QueryProofsRequest) Reset()

func (*QueryProofsRequest) Size added in v2.15.0

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

func (*QueryProofsRequest) String added in v2.15.0

func (m *QueryProofsRequest) String() string

func (*QueryProofsRequest) Unmarshal added in v2.15.0

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

func (*QueryProofsRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryProofsRequest) XXX_DiscardUnknown()

func (*QueryProofsRequest) XXX_Marshal added in v2.15.0

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

func (*QueryProofsRequest) XXX_Merge added in v2.15.0

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

func (*QueryProofsRequest) XXX_Size added in v2.15.0

func (m *QueryProofsRequest) XXX_Size() int

func (*QueryProofsRequest) XXX_Unmarshal added in v2.15.0

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

type QueryProofsResponse added in v2.15.0

type QueryProofsResponse struct {
	Proofs []*Proof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProofsResponse is the response type for the Query/Proofs RPC method.

func (*QueryProofsResponse) Descriptor added in v2.15.0

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

func (*QueryProofsResponse) GetPagination added in v2.15.0

func (m *QueryProofsResponse) GetPagination() *query.PageResponse

func (*QueryProofsResponse) GetProofs added in v2.15.0

func (m *QueryProofsResponse) GetProofs() []*Proof

func (*QueryProofsResponse) Marshal added in v2.15.0

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

func (*QueryProofsResponse) MarshalTo added in v2.15.0

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

func (*QueryProofsResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryProofsResponse) ProtoMessage added in v2.15.0

func (*QueryProofsResponse) ProtoMessage()

func (*QueryProofsResponse) Reset added in v2.15.0

func (m *QueryProofsResponse) Reset()

func (*QueryProofsResponse) Size added in v2.15.0

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

func (*QueryProofsResponse) String added in v2.15.0

func (m *QueryProofsResponse) String() string

func (*QueryProofsResponse) Unmarshal added in v2.15.0

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

func (*QueryProofsResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryProofsResponse) XXX_DiscardUnknown()

func (*QueryProofsResponse) XXX_Marshal added in v2.15.0

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

func (*QueryProofsResponse) XXX_Merge added in v2.15.0

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

func (*QueryProofsResponse) XXX_Size added in v2.15.0

func (m *QueryProofsResponse) XXX_Size() int

func (*QueryProofsResponse) XXX_Unmarshal added in v2.15.0

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

type QueryRewardsRequest added in v2.15.0

type QueryRewardsRequest struct {
	// address defines the address to query for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryRewardsRequest is the request type for the Query/AllRewards RPC method.

func (*QueryRewardsRequest) Descriptor added in v2.15.0

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

func (*QueryRewardsRequest) Marshal added in v2.15.0

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

func (*QueryRewardsRequest) MarshalTo added in v2.15.0

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

func (*QueryRewardsRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryRewardsRequest) ProtoMessage added in v2.15.0

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset added in v2.15.0

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size added in v2.15.0

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

func (*QueryRewardsRequest) String added in v2.15.0

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal added in v2.15.0

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

func (*QueryRewardsRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal added in v2.15.0

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

func (*QueryRewardsRequest) XXX_Merge added in v2.15.0

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

func (*QueryRewardsRequest) XXX_Size added in v2.15.0

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal added in v2.15.0

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

type QueryRewardsResponse added in v2.15.0

type QueryRewardsResponse struct {
	ProofRewards    github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 144-byte string literal not displayed */
	ImportedRewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 153-byte string literal not displayed */
}

QueryRewardsResponse is the response type for the Query/AllRewards RPC method.

func (*QueryRewardsResponse) Descriptor added in v2.15.0

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

func (*QueryRewardsResponse) GetImportedRewards added in v2.16.0

func (*QueryRewardsResponse) GetProofRewards added in v2.16.0

func (*QueryRewardsResponse) Marshal added in v2.15.0

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

func (*QueryRewardsResponse) MarshalTo added in v2.15.0

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

func (*QueryRewardsResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryRewardsResponse) ProtoMessage added in v2.15.0

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset added in v2.15.0

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size added in v2.15.0

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

func (*QueryRewardsResponse) String added in v2.15.0

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal added in v2.15.0

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

func (*QueryRewardsResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal added in v2.15.0

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

func (*QueryRewardsResponse) XXX_Merge added in v2.15.0

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

func (*QueryRewardsResponse) XXX_Size added in v2.15.0

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal added in v2.15.0

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

type QueryServer

type QueryServer interface {
	// Programs queries all programs based on given status.
	Programs(context.Context, *QueryProgramsRequest) (*QueryProgramsResponse, error)
	// Program queries program details based on ProgramId.
	Program(context.Context, *QueryProgramRequest) (*QueryProgramResponse, error)
	// Findings queries findings of a given program.
	Findings(context.Context, *QueryFindingsRequest) (*QueryFindingsResponse, error)
	// Finding queries Finding information based on programID, FindingId.
	Finding(context.Context, *QueryFindingRequest) (*QueryFindingResponse, error)
	// FindingFingerprint queries finding fingerprint based on findingId.
	FindingFingerprint(context.Context, *QueryFindingFingerprintRequest) (*QueryFindingFingerprintResponse, error)
	// ProgramFingerprint queries program fingerprint based on programId.
	ProgramFingerprint(context.Context, *QueryProgramFingerprintRequest) (*QueryProgramFingerprintResponse, error)
	// Theorems queries all theorems based on given status.
	Theorems(context.Context, *QueryTheoremsRequest) (*QueryTheoremsResponse, error)
	// Theorem queries theorem details based on theoremID.
	Theorem(context.Context, *QueryTheoremRequest) (*QueryTheoremResponse, error)
	// Proofs queries all proofs based on theorem id.
	Proofs(context.Context, *QueryProofsRequest) (*QueryProofsResponse, error)
	// Proof queries proof details based on proofID.
	Proof(context.Context, *QueryProofRequest) (*QueryProofResponse, error)
	// AllRewards queries all reward details (including imported rewards) based on address.
	AllRewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// Params queries the bounty module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Grants queries theorem details based on theoremID.
	Grants(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTheoremRequest added in v2.15.0

type QueryTheoremRequest struct {
	// theorem_id defines the unique id of the theorem.
	TheoremId uint64 `protobuf:"varint,1,opt,name=theorem_id,json=theoremId,proto3" json:"theorem_id,omitempty"`
}

QueryTheoremRequest is the request type for the Query/Theorem RPC method.

func (*QueryTheoremRequest) Descriptor added in v2.15.0

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

func (*QueryTheoremRequest) GetTheoremId added in v2.15.0

func (m *QueryTheoremRequest) GetTheoremId() uint64

func (*QueryTheoremRequest) Marshal added in v2.15.0

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

func (*QueryTheoremRequest) MarshalTo added in v2.15.0

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

func (*QueryTheoremRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryTheoremRequest) ProtoMessage added in v2.15.0

func (*QueryTheoremRequest) ProtoMessage()

func (*QueryTheoremRequest) Reset added in v2.15.0

func (m *QueryTheoremRequest) Reset()

func (*QueryTheoremRequest) Size added in v2.15.0

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

func (*QueryTheoremRequest) String added in v2.15.0

func (m *QueryTheoremRequest) String() string

func (*QueryTheoremRequest) Unmarshal added in v2.15.0

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

func (*QueryTheoremRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryTheoremRequest) XXX_DiscardUnknown()

func (*QueryTheoremRequest) XXX_Marshal added in v2.15.0

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

func (*QueryTheoremRequest) XXX_Merge added in v2.15.0

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

func (*QueryTheoremRequest) XXX_Size added in v2.15.0

func (m *QueryTheoremRequest) XXX_Size() int

func (*QueryTheoremRequest) XXX_Unmarshal added in v2.15.0

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

type QueryTheoremResponse added in v2.15.0

type QueryTheoremResponse struct {
	Theorem *Theorem `protobuf:"bytes,1,opt,name=theorem,proto3" json:"theorem,omitempty"`
}

QueryTheoremResponse is the response type for the Query/Theorem RPC method.

func (*QueryTheoremResponse) Descriptor added in v2.15.0

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

func (*QueryTheoremResponse) GetTheorem added in v2.15.0

func (m *QueryTheoremResponse) GetTheorem() *Theorem

func (*QueryTheoremResponse) Marshal added in v2.15.0

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

func (*QueryTheoremResponse) MarshalTo added in v2.15.0

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

func (*QueryTheoremResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryTheoremResponse) ProtoMessage added in v2.15.0

func (*QueryTheoremResponse) ProtoMessage()

func (*QueryTheoremResponse) Reset added in v2.15.0

func (m *QueryTheoremResponse) Reset()

func (*QueryTheoremResponse) Size added in v2.15.0

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

func (*QueryTheoremResponse) String added in v2.15.0

func (m *QueryTheoremResponse) String() string

func (*QueryTheoremResponse) Unmarshal added in v2.15.0

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

func (*QueryTheoremResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryTheoremResponse) XXX_DiscardUnknown()

func (*QueryTheoremResponse) XXX_Marshal added in v2.15.0

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

func (*QueryTheoremResponse) XXX_Merge added in v2.15.0

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

func (*QueryTheoremResponse) XXX_Size added in v2.15.0

func (m *QueryTheoremResponse) XXX_Size() int

func (*QueryTheoremResponse) XXX_Unmarshal added in v2.15.0

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

type QueryTheoremsRequest added in v2.15.0

type QueryTheoremsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTheoremsRequest is the request type for the Query/Theorems RPC method.

func (*QueryTheoremsRequest) Descriptor added in v2.15.0

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

func (*QueryTheoremsRequest) GetPagination added in v2.15.0

func (m *QueryTheoremsRequest) GetPagination() *query.PageRequest

func (*QueryTheoremsRequest) Marshal added in v2.15.0

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

func (*QueryTheoremsRequest) MarshalTo added in v2.15.0

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

func (*QueryTheoremsRequest) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryTheoremsRequest) ProtoMessage added in v2.15.0

func (*QueryTheoremsRequest) ProtoMessage()

func (*QueryTheoremsRequest) Reset added in v2.15.0

func (m *QueryTheoremsRequest) Reset()

func (*QueryTheoremsRequest) Size added in v2.15.0

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

func (*QueryTheoremsRequest) String added in v2.15.0

func (m *QueryTheoremsRequest) String() string

func (*QueryTheoremsRequest) Unmarshal added in v2.15.0

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

func (*QueryTheoremsRequest) XXX_DiscardUnknown added in v2.15.0

func (m *QueryTheoremsRequest) XXX_DiscardUnknown()

func (*QueryTheoremsRequest) XXX_Marshal added in v2.15.0

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

func (*QueryTheoremsRequest) XXX_Merge added in v2.15.0

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

func (*QueryTheoremsRequest) XXX_Size added in v2.15.0

func (m *QueryTheoremsRequest) XXX_Size() int

func (*QueryTheoremsRequest) XXX_Unmarshal added in v2.15.0

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

type QueryTheoremsResponse added in v2.15.0

type QueryTheoremsResponse struct {
	Theorems []*Theorem `protobuf:"bytes,1,rep,name=theorems,proto3" json:"theorems,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTheoremsResponse is the response type for the Query/Theorems RPC method.

func (*QueryTheoremsResponse) Descriptor added in v2.15.0

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

func (*QueryTheoremsResponse) GetPagination added in v2.15.0

func (m *QueryTheoremsResponse) GetPagination() *query.PageResponse

func (*QueryTheoremsResponse) GetTheorems added in v2.15.0

func (m *QueryTheoremsResponse) GetTheorems() []*Theorem

func (*QueryTheoremsResponse) Marshal added in v2.15.0

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

func (*QueryTheoremsResponse) MarshalTo added in v2.15.0

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

func (*QueryTheoremsResponse) MarshalToSizedBuffer added in v2.15.0

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

func (*QueryTheoremsResponse) ProtoMessage added in v2.15.0

func (*QueryTheoremsResponse) ProtoMessage()

func (*QueryTheoremsResponse) Reset added in v2.15.0

func (m *QueryTheoremsResponse) Reset()

func (*QueryTheoremsResponse) Size added in v2.15.0

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

func (*QueryTheoremsResponse) String added in v2.15.0

func (m *QueryTheoremsResponse) String() string

func (*QueryTheoremsResponse) Unmarshal added in v2.15.0

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

func (*QueryTheoremsResponse) XXX_DiscardUnknown added in v2.15.0

func (m *QueryTheoremsResponse) XXX_DiscardUnknown()

func (*QueryTheoremsResponse) XXX_Marshal added in v2.15.0

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

func (*QueryTheoremsResponse) XXX_Merge added in v2.15.0

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

func (*QueryTheoremsResponse) XXX_Size added in v2.15.0

func (m *QueryTheoremsResponse) XXX_Size() int

func (*QueryTheoremsResponse) XXX_Unmarshal added in v2.15.0

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

type Reward added in v2.15.0

type Reward struct {
	Address string                                      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Reward  github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"`
}

func (*Reward) Descriptor added in v2.15.0

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

func (*Reward) Marshal added in v2.15.0

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

func (*Reward) MarshalTo added in v2.15.0

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

func (*Reward) MarshalToSizedBuffer added in v2.15.0

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

func (*Reward) ProtoMessage added in v2.15.0

func (*Reward) ProtoMessage()

func (*Reward) Reset added in v2.15.0

func (m *Reward) Reset()

func (*Reward) Size added in v2.15.0

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

func (*Reward) String added in v2.15.0

func (m *Reward) String() string

func (*Reward) Unmarshal added in v2.15.0

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

func (*Reward) XXX_DiscardUnknown added in v2.15.0

func (m *Reward) XXX_DiscardUnknown()

func (*Reward) XXX_Marshal added in v2.15.0

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

func (*Reward) XXX_Merge added in v2.15.0

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

func (*Reward) XXX_Size added in v2.15.0

func (m *Reward) XXX_Size() int

func (*Reward) XXX_Unmarshal added in v2.15.0

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

type SeverityLevel

type SeverityLevel int32
const (
	Unspecified   SeverityLevel = 0
	Critical      SeverityLevel = 1
	High          SeverityLevel = 2
	Medium        SeverityLevel = 3
	Low           SeverityLevel = 4
	Informational SeverityLevel = 5
)

func SeverityLevelFromString

func SeverityLevelFromString(str string) (SeverityLevel, error)

SeverityLevelFromString returns a SeverityLevel from a string. It returns an error if the string is invalid.

func (SeverityLevel) EnumDescriptor

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

func (SeverityLevel) String

func (x SeverityLevel) String() string

type Theorem added in v2.15.0

type Theorem struct {
	// id defines the unique id of the theorem.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// title is the title of the theorem
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// description is the description of the theorem
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// code is a summary of the theorem
	Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	// status defines the theorem status.
	Status TheoremStatus `protobuf:"varint,5,opt,name=status,proto3,enum=shentu.bounty.v1.TheoremStatus" json:"status,omitempty"`
	// submit_time is the time of theorem submission.
	SubmitTime *time.Time `protobuf:"bytes,6,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time,omitempty"`
	EndTime    *time.Time `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time,omitempty"`
	// total_grant is the total grant on the theorem.
	TotalGrant []types1.Coin `protobuf:"bytes,8,rep,name=total_grant,json=totalGrant,proto3" json:"total_grant"`
	// proposer is the address of the theorem submitter
	Proposer string `protobuf:"bytes,9,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// proof term complexity.
	Complexity int64 `protobuf:"varint,10,opt,name=complexity,proto3" json:"complexity,omitempty"`
	// the total number of times the theorem has been imported.
	ImportedCount int64 `protobuf:"varint,11,opt,name=imported_count,json=importedCount,proto3" json:"imported_count,omitempty"`
	// a list of import external theorems.
	Imports []uint64 `protobuf:"varint,12,rep,packed,name=imports,proto3" json:"imports,omitempty"`
}

Theorem defines the core field members of an openmath theorem.

func NewTheorem added in v2.15.0

func NewTheorem(id uint64, proposer sdk.AccAddress, title, desc, code string, submitTime, endTime time.Time) Theorem

func (*Theorem) Descriptor added in v2.15.0

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

func (*Theorem) GetCode added in v2.15.0

func (m *Theorem) GetCode() string

func (*Theorem) GetComplexity added in v2.16.0

func (m *Theorem) GetComplexity() int64

func (*Theorem) GetDescription added in v2.15.0

func (m *Theorem) GetDescription() string

func (*Theorem) GetEndTime added in v2.15.0

func (m *Theorem) GetEndTime() *time.Time

func (*Theorem) GetId added in v2.15.0

func (m *Theorem) GetId() uint64

func (*Theorem) GetImportedCount added in v2.16.0

func (m *Theorem) GetImportedCount() int64

func (*Theorem) GetImports added in v2.16.0

func (m *Theorem) GetImports() []uint64

func (*Theorem) GetProposer added in v2.15.0

func (m *Theorem) GetProposer() string

func (*Theorem) GetStatus added in v2.15.0

func (m *Theorem) GetStatus() TheoremStatus

func (*Theorem) GetSubmitTime added in v2.15.0

func (m *Theorem) GetSubmitTime() *time.Time

func (*Theorem) GetTitle added in v2.15.0

func (m *Theorem) GetTitle() string

func (*Theorem) GetTotalGrant added in v2.15.0

func (m *Theorem) GetTotalGrant() []types1.Coin

func (*Theorem) Marshal added in v2.15.0

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

func (*Theorem) MarshalTo added in v2.15.0

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

func (*Theorem) MarshalToSizedBuffer added in v2.15.0

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

func (*Theorem) ProtoMessage added in v2.15.0

func (*Theorem) ProtoMessage()

func (*Theorem) Reset added in v2.15.0

func (m *Theorem) Reset()

func (*Theorem) Size added in v2.15.0

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

func (*Theorem) String added in v2.15.0

func (m *Theorem) String() string

func (*Theorem) Unmarshal added in v2.15.0

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

func (*Theorem) XXX_DiscardUnknown added in v2.15.0

func (m *Theorem) XXX_DiscardUnknown()

func (*Theorem) XXX_Marshal added in v2.15.0

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

func (*Theorem) XXX_Merge added in v2.15.0

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

func (*Theorem) XXX_Size added in v2.15.0

func (m *Theorem) XXX_Size() int

func (*Theorem) XXX_Unmarshal added in v2.15.0

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

type TheoremStatus added in v2.15.0

type TheoremStatus int32
const (
	// default theorem status.
	TheoremStatus_THEOREM_STATUS_UNSPECIFIED TheoremStatus = 0
	// theorem status during the proof period.
	TheoremStatus_THEOREM_STATUS_PROOF_PERIOD TheoremStatus = 1
	// theorem that has passed.
	TheoremStatus_THEOREM_STATUS_PASSED TheoremStatus = 2
	// theorem that has closed.
	TheoremStatus_THEOREM_STATUS_CLOSED TheoremStatus = 3
)

func (TheoremStatus) EnumDescriptor added in v2.15.0

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

func (TheoremStatus) String added in v2.15.0

func (x TheoremStatus) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ActivateFinding

func (*UnimplementedMsgServer) ActivateProgram

func (*UnimplementedMsgServer) CloseFinding

func (*UnimplementedMsgServer) CloseProgram

func (*UnimplementedMsgServer) ConfirmFinding

func (*UnimplementedMsgServer) ConfirmFindingPaid

func (*UnimplementedMsgServer) CreateProgram

func (*UnimplementedMsgServer) CreateTheorem added in v2.15.0

func (*UnimplementedMsgServer) EditFinding

func (*UnimplementedMsgServer) EditProgram

func (*UnimplementedMsgServer) Grant added in v2.15.0

func (*UnimplementedMsgServer) PublishFinding

func (*UnimplementedMsgServer) SubmitFinding

func (*UnimplementedMsgServer) SubmitProofDetail added in v2.15.0

func (*UnimplementedMsgServer) SubmitProofHash added in v2.15.0

func (*UnimplementedMsgServer) SubmitProofVerification added in v2.15.0

func (*UnimplementedMsgServer) UpdateParams added in v2.16.0

func (*UnimplementedMsgServer) UpdateTheoremComplexity added in v2.16.0

func (*UnimplementedMsgServer) WithdrawReward added in v2.15.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllRewards added in v2.16.0

func (*UnimplementedQueryServer) Finding

func (*UnimplementedQueryServer) FindingFingerprint

func (*UnimplementedQueryServer) Findings

func (*UnimplementedQueryServer) Grants added in v2.15.0

func (*UnimplementedQueryServer) Params added in v2.15.0

func (*UnimplementedQueryServer) Program

func (*UnimplementedQueryServer) ProgramFingerprint

func (*UnimplementedQueryServer) Programs

func (*UnimplementedQueryServer) Proof added in v2.15.0

func (*UnimplementedQueryServer) Proofs added in v2.15.0

func (*UnimplementedQueryServer) Theorem added in v2.15.0

func (*UnimplementedQueryServer) Theorems added in v2.15.0

Jump to

Keyboard shortcuts

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