v2

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate1To2

func Migrate1To2(
	ctx sdk.Context,
	storeKey storetypes.StoreKey,
	cdc codec.Codec,
	restakingKeeper RestakingKeeper,
	operatorsKeeper OperatorsKeeper,
	servicesKeeper ServicesKeeper,
) error

Types

type OperatorsKeeper

type OperatorsKeeper interface {
	GetOperator(ctx sdk.Context, operatorID uint32) (operatorstypes.Operator, bool)
	SaveOperatorParams(ctx sdk.Context, operatorID uint32, params operatorstypes.OperatorParams) error
}

type RestakingKeeper

type RestakingKeeper interface {
	AddServiceToOperatorJoinedServices(ctx sdk.Context, operatorID uint32, serviceID uint32) error
	AddOperatorToServiceAllowList(ctx sdk.Context, serviceID uint32, operatorID uint32) error
	AddPoolToServiceSecuringPools(ctx sdk.Context, serviceID uint32, poolID uint32) error
}

type ServicesKeeper

type ServicesKeeper interface {
	GetService(ctx sdk.Context, serviceID uint32) (servicestypes.Service, bool)
}

Jump to

Keyboard shortcuts

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