types

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateProgram   = "create_program"
	EventTypeEditProgram     = "edit_program"
	EventTypeActivateProgram = "activate_program"
	EventTypeCloseProgram    = "close_program"

	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"

	AttributeKeyProgramID = "program_id"
	AttributeKeyFindingID = "finding_id"

	AttributeValueCategory = ModuleName
)
View Source
const (
	ModuleName = "bounty"

	RouterKey = ModuleName

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgCreateProgram      = "create_program"
	TypeMsgEditProgram        = "edit_program"
	TypeMsgActivateProgram    = "activate_program"
	TypeMsgCloseProgram       = "close_program"
	TypeMsgSubmitFinding      = "submit_finding"
	TypeMsgEditFinding        = "edit_finding"
	TypeMsgActivateFinding    = "activate_finding"
	TypeMsgConfirmFinding     = "confirm_finding"
	TypeMsgConfirmFindingPaid = "confirm_finding_paid"
	TypeMsgCloseFinding       = "close_finding"
	TypeMsgPublishFinding     = "publish_finding"
)

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 (
	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 (
	ProgramKey = []byte{0x01}
	FindingKey = []byte{0x02}

	ProgramIDFindingListKey = []byte{0x10}
)
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 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,
}

Functions

func GetFindingKey

func GetFindingKey(id string) []byte

GetFindingKey creates the key for a program

func GetProgramIDFindingListKey

func GetProgramIDFindingListKey(id string) []byte

func GetProgramKey

func GetProgramKey(id string) []byte

GetProgramKey creates the key for a program VALUE: staking/Validator

func NormalizeSeverityLevel

func NormalizeSeverityLevel(level string) string

NormalizeSeverityLevel - normalize user specified severity level

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable is the type declaration for bounty module parameters

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 ValidProgramStatus

func ValidProgramStatus(status ProgramStatus) bool

ValidProgramStatus returns true if the program status is valid and false otherwise.

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis - validate bounty genesis data

Types

type CertKeeper

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

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, error)

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

func (m Finding) ValidateBasic() 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 Findings

type Findings []Finding

Findings is an array of finding

type GenesisState

type GenesisState struct {
	Programs []Program `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs" yaml:"programs"`
	Findings []Finding `protobuf:"bytes,2,rep,name=findings,proto3" json:"findings" yaml:"findings"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(programs []Program, findings []Finding) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

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

func (msg MsgActivateFinding) GetSigners() []sdk.AccAddress

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

func (msg MsgActivateFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgActivateFinding) Size

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

func (*MsgActivateFinding) String

func (m *MsgActivateFinding) String() string

func (MsgActivateFinding) Type

func (msg MsgActivateFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgActivateFinding) Unmarshal

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

func (MsgActivateFinding) ValidateBasic

func (msg MsgActivateFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

func (msg MsgActivateProgram) GetSigners() []sdk.AccAddress

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

func (msg MsgActivateProgram) Route() string

Route implements sdk.Msg interface.

func (*MsgActivateProgram) Size

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

func (*MsgActivateProgram) String

func (m *MsgActivateProgram) String() string

func (MsgActivateProgram) Type

func (msg MsgActivateProgram) Type() string

Type implements sdk.Msg interface.

func (*MsgActivateProgram) Unmarshal

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

func (MsgActivateProgram) ValidateBasic

func (msg MsgActivateProgram) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

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 to an existing finding.

func NewMsgCloseFinding

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

func (*MsgCloseFinding) Descriptor

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

func (MsgCloseFinding) GetSigners

func (msg MsgCloseFinding) GetSigners() []sdk.AccAddress

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

func (msg MsgCloseFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgCloseFinding) Size

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

func (*MsgCloseFinding) String

func (m *MsgCloseFinding) String() string

func (MsgCloseFinding) Type

func (msg MsgCloseFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgCloseFinding) Unmarshal

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

func (MsgCloseFinding) ValidateBasic

func (msg MsgCloseFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

func (msg MsgCloseProgram) GetSigners() []sdk.AccAddress

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

func (msg MsgCloseProgram) Route() string

Route implements sdk.Msg interface.

func (*MsgCloseProgram) Size

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

func (*MsgCloseProgram) String

func (m *MsgCloseProgram) String() string

func (MsgCloseProgram) Type

func (msg MsgCloseProgram) Type() string

Type implements sdk.Msg interface.

func (*MsgCloseProgram) Unmarshal

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

func (MsgCloseProgram) ValidateBasic

func (msg MsgCloseProgram) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

func (msg MsgConfirmFinding) GetSigners() []sdk.AccAddress

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

func (msg MsgConfirmFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgConfirmFinding) Size

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

func (*MsgConfirmFinding) String

func (m *MsgConfirmFinding) String() string

func (MsgConfirmFinding) Type

func (msg MsgConfirmFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgConfirmFinding) Unmarshal

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

func (MsgConfirmFinding) ValidateBasic

func (msg MsgConfirmFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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 close a finding to an existing finding.

func NewMsgConfirmFindingPaid

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

func (*MsgConfirmFindingPaid) Descriptor

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

func (MsgConfirmFindingPaid) GetSigners

func (msg MsgConfirmFindingPaid) GetSigners() []sdk.AccAddress

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

func (msg MsgConfirmFindingPaid) Route() string

Route implements the sdk.Msg interface.

func (*MsgConfirmFindingPaid) Size

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

func (*MsgConfirmFindingPaid) String

func (m *MsgConfirmFindingPaid) String() string

func (MsgConfirmFindingPaid) Type

func (msg MsgConfirmFindingPaid) Type() string

Type implements the sdk.Msg interface.

func (*MsgConfirmFindingPaid) Unmarshal

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

func (MsgConfirmFindingPaid) ValidateBasic

func (msg MsgConfirmFindingPaid) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

MsgCloseFindingResponse defines the Msg/CloseFinding 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) GetSigners

func (msg MsgCreateProgram) GetSigners() []sdk.AccAddress

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

func (msg MsgCreateProgram) Route() string

Route implements the sdk.Msg interface.

func (*MsgCreateProgram) Size

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

func (*MsgCreateProgram) String

func (m *MsgCreateProgram) String() string

func (MsgCreateProgram) Type

func (msg MsgCreateProgram) Type() string

Type implements the sdk.Msg interface.

func (*MsgCreateProgram) Unmarshal

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

func (MsgCreateProgram) ValidateBasic

func (msg MsgCreateProgram) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

func (msg MsgEditFinding) GetSigners() []sdk.AccAddress

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

func (msg MsgEditFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgEditFinding) Size

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

func (*MsgEditFinding) String

func (m *MsgEditFinding) String() string

func (MsgEditFinding) Type

func (msg MsgEditFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgEditFinding) Unmarshal

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

func (MsgEditFinding) ValidateBasic

func (msg MsgEditFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

func (msg MsgEditProgram) GetSigners() []sdk.AccAddress

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

func (msg MsgEditProgram) Route() string

Route implements the sdk.Msg interface.

func (*MsgEditProgram) Size

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

func (*MsgEditProgram) String

func (m *MsgEditProgram) String() string

func (MsgEditProgram) Type

func (msg MsgEditProgram) Type() string

Type implements the sdk.Msg interface.

func (*MsgEditProgram) Unmarshal

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

func (MsgEditProgram) ValidateBasic

func (msg MsgEditProgram) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

MsgModifyProgramResponse defines the Msg/ModifyProgram 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 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) GetDescription

func (m *MsgPublishFinding) GetDescription() string

func (*MsgPublishFinding) GetDetail added in v2.12.0

func (m *MsgPublishFinding) GetDetail() string

func (*MsgPublishFinding) GetFindingId

func (m *MsgPublishFinding) GetFindingId() string

func (*MsgPublishFinding) GetOperatorAddress

func (m *MsgPublishFinding) GetOperatorAddress() string

func (*MsgPublishFinding) GetProofOfConcept

func (m *MsgPublishFinding) GetProofOfConcept() string

func (MsgPublishFinding) GetSigners

func (msg MsgPublishFinding) GetSigners() []sdk.AccAddress

func (*MsgPublishFinding) GetTitle added in v2.12.0

func (m *MsgPublishFinding) GetTitle() string

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

func (msg MsgPublishFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgPublishFinding) Size

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

func (*MsgPublishFinding) String

func (m *MsgPublishFinding) String() string

func (MsgPublishFinding) Type

func (msg MsgPublishFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgPublishFinding) Unmarshal

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

func (MsgPublishFinding) ValidateBasic

func (msg MsgPublishFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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

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

func (msg MsgSubmitFinding) GetSigners() []sdk.AccAddress

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

func (msg MsgSubmitFinding) Route() string

Route implements the sdk.Msg interface.

func (*MsgSubmitFinding) Size

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

func (*MsgSubmitFinding) String

func (m *MsgSubmitFinding) String() string

func (MsgSubmitFinding) Type

func (msg MsgSubmitFinding) Type() string

Type implements the sdk.Msg interface.

func (*MsgSubmitFinding) Unmarshal

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

func (MsgSubmitFinding) ValidateBasic

func (msg MsgSubmitFinding) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

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 ParamSubspace

type ParamSubspace interface {
	Get(ctx context.Context, key []byte, ptr interface{})
	Set(ctx context.Context, key []byte, param interface{})
	HasKeyTable() bool
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

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, error)

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

func (m *Program) ValidateBasic() 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 Programs

type Programs []Program

Programs is an array of program

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

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"`
}

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"`
	// 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 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 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"`
}

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"`
	// 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 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)
}

QueryServer is the server API for Query service.

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

func (*UnimplementedMsgServer) EditProgram

func (*UnimplementedMsgServer) PublishFinding

func (*UnimplementedMsgServer) SubmitFinding

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Finding

func (*UnimplementedQueryServer) FindingFingerprint

func (*UnimplementedQueryServer) Findings

func (*UnimplementedQueryServer) Program

func (*UnimplementedQueryServer) ProgramFingerprint

func (*UnimplementedQueryServer) Programs

Jump to

Keyboard shortcuts

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