keeper

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStrings

func BytesToStrings(list []byte) ([]string, error)

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.

func StringsToBytes

func StringsToBytes(list []string) ([]byte, error)

Types

type Keeper

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

Keeper - bounty keeper

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec, storeKey sdk.StoreKey, ck types.CertKeeper, paramSpace paramtypes.Subspace,
) Keeper

NewKeeper creates a new Keeper object

func (Keeper) ActivateProgram

func (k Keeper) ActivateProgram(ctx sdk.Context, pid string, caller sdk.AccAddress) error

func (Keeper) AppendFidToFidList

func (k Keeper) AppendFidToFidList(ctx sdk.Context, pid, fid string) error

func (Keeper) CloseProgram

func (k Keeper) CloseProgram(ctx sdk.Context, pid string, caller sdk.AccAddress) error

func (Keeper) ConfirmFinding

func (k Keeper) ConfirmFinding(ctx sdk.Context, msg *types.MsgConfirmFinding) (types.Finding, error)

func (Keeper) DeleteFidFromFidList

func (k Keeper) DeleteFidFromFidList(ctx sdk.Context, pid, fid string) error

func (Keeper) DeleteFinding

func (k Keeper) DeleteFinding(ctx sdk.Context, id string)

func (Keeper) GetAllFindings

func (k Keeper) GetAllFindings(ctx sdk.Context) []types.Finding

func (Keeper) GetAllPrograms

func (k Keeper) GetAllPrograms(ctx sdk.Context) []types.Program

func (Keeper) GetFinding

func (k Keeper) GetFinding(ctx sdk.Context, id string) (types.Finding, bool)

func (Keeper) GetFindingFingerprintHash

func (k Keeper) GetFindingFingerprintHash(finding *types.Finding) string

func (Keeper) GetPidFindingIDList

func (k Keeper) GetPidFindingIDList(ctx sdk.Context, pid string) ([]string, error)

func (Keeper) GetProgram

func (k Keeper) GetProgram(ctx sdk.Context, id string) (types.Program, bool)

func (Keeper) GetProgramFingerprintHash

func (k Keeper) GetProgramFingerprintHash(program *types.Program) string

func (Keeper) Program

Program returns program details based on ProgramId

func (Keeper) Programs

Programs implements the Query/Programs gRPC method

func (Keeper) SetFinding

func (k Keeper) SetFinding(ctx sdk.Context, finding types.Finding)

func (Keeper) SetPidFindingIDList

func (k Keeper) SetPidFindingIDList(ctx sdk.Context, pid string, findingIds []string) error

func (Keeper) SetProgram

func (k Keeper) SetProgram(ctx sdk.Context, program types.Program)

Jump to

Keyboard shortcuts

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