Documentation ¶
Index ¶
- func BytesToStrings(list []byte) ([]string, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func StringsToBytes(list []string) ([]byte, error)
- type Keeper
- func (k Keeper) ActivateProgram(ctx sdk.Context, pid string, caller sdk.AccAddress) error
- func (k Keeper) AppendFidToFidList(ctx sdk.Context, pid, fid string) error
- func (k Keeper) CloseProgram(ctx sdk.Context, pid string, caller sdk.AccAddress) error
- func (k Keeper) ConfirmFinding(ctx sdk.Context, msg *types.MsgConfirmFinding) (types.Finding, error)
- func (k Keeper) DeleteFidFromFidList(ctx sdk.Context, pid, fid string) error
- func (k Keeper) DeleteFinding(ctx sdk.Context, id string)
- func (k Keeper) Finding(c context.Context, req *types.QueryFindingRequest) (*types.QueryFindingResponse, error)
- func (k Keeper) FindingFingerprint(c context.Context, req *types.QueryFindingFingerprintRequest) (*types.QueryFindingFingerprintResponse, error)
- func (k Keeper) Findings(c context.Context, req *types.QueryFindingsRequest) (*types.QueryFindingsResponse, error)
- func (k Keeper) GetAllFindings(ctx sdk.Context) []types.Finding
- func (k Keeper) GetAllPrograms(ctx sdk.Context) []types.Program
- func (k Keeper) GetFinding(ctx sdk.Context, id string) (types.Finding, bool)
- func (k Keeper) GetFindingFingerprintHash(finding *types.Finding) string
- func (k Keeper) GetPidFindingIDList(ctx sdk.Context, pid string) ([]string, error)
- func (k Keeper) GetProgram(ctx sdk.Context, id string) (types.Program, bool)
- func (k Keeper) GetProgramFingerprintHash(program *types.Program) string
- func (k Keeper) Program(c context.Context, req *types.QueryProgramRequest) (*types.QueryProgramResponse, error)
- func (k Keeper) ProgramFingerprint(c context.Context, req *types.QueryProgramFingerprintRequest) (*types.QueryProgramFingerprintResponse, error)
- func (k Keeper) Programs(c context.Context, req *types.QueryProgramsRequest) (*types.QueryProgramsResponse, error)
- func (k Keeper) SetFinding(ctx sdk.Context, finding types.Finding)
- func (k Keeper) SetPidFindingIDList(ctx sdk.Context, pid string, findingIds []string) error
- func (k Keeper) SetProgram(ctx sdk.Context, program types.Program)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToStrings ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.
func StringsToBytes ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper - bounty keeper
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService store.KVStoreService, ck types.CertKeeper, paramSpace paramtypes.Subspace, ) Keeper
NewKeeper creates a new Keeper object
func (Keeper) ActivateProgram ¶
func (Keeper) AppendFidToFidList ¶
func (Keeper) CloseProgram ¶
func (Keeper) ConfirmFinding ¶
func (Keeper) DeleteFidFromFidList ¶
func (Keeper) Finding ¶
func (k Keeper) Finding(c context.Context, req *types.QueryFindingRequest) (*types.QueryFindingResponse, error)
func (Keeper) FindingFingerprint ¶
func (k Keeper) FindingFingerprint(c context.Context, req *types.QueryFindingFingerprintRequest) (*types.QueryFindingFingerprintResponse, error)
func (Keeper) Findings ¶
func (k Keeper) Findings(c context.Context, req *types.QueryFindingsRequest) (*types.QueryFindingsResponse, error)
func (Keeper) GetFinding ¶
func (Keeper) GetFindingFingerprintHash ¶
func (Keeper) GetPidFindingIDList ¶
func (Keeper) GetProgram ¶
func (Keeper) GetProgramFingerprintHash ¶
func (Keeper) Program ¶
func (k Keeper) Program(c context.Context, req *types.QueryProgramRequest) (*types.QueryProgramResponse, error)
Program returns program details based on ProgramId
func (Keeper) ProgramFingerprint ¶
func (k Keeper) ProgramFingerprint(c context.Context, req *types.QueryProgramFingerprintRequest) (*types.QueryProgramFingerprintResponse, error)
func (Keeper) Programs ¶
func (k Keeper) Programs(c context.Context, req *types.QueryProgramsRequest) (*types.QueryProgramsResponse, error)
Programs implements the Query/Programs gRPC method
func (Keeper) SetPidFindingIDList ¶
type Migrator ¶ added in v2.11.1
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v2.11.1
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v2.11.1
Migrate1to2 migrates from version 1 to 2.
Click to show internal directories.
Click to hide internal directories.