keeper

package
v2.12.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 17 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, storeService store.KVStoreService, 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)

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

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v2.11.1

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

func (Migrator) Migrate2to3 added in v2.12.0

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 migrates from version 2 to 3.

Jump to

Keyboard shortcuts

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