hooks

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentKeeper

type DeploymentKeeper interface {
	GetDeployment(ctx sdk.Context, id dtypes.DeploymentID) (dtypes.Deployment, bool)
	GetGroups(ctx sdk.Context, id dtypes.DeploymentID) []dtypes.Group
	CloseDeployment(ctx sdk.Context, deployment dtypes.Deployment)
	OnCloseGroup(ctx sdk.Context, group dtypes.Group, state dtypes.Group_State) error
}

type Hooks

type Hooks interface {
	OnEscrowAccountClosed(ctx sdk.Context, obj etypes.Account)
	OnEscrowPaymentClosed(ctx sdk.Context, obj etypes.FractionalPayment)
}

func New

func New(dkeeper DeploymentKeeper, mkeeper MarketKeeper) Hooks

type MarketKeeper

type MarketKeeper interface {
	GetOrder(ctx sdk.Context, id mtypes.OrderID) (mtypes.Order, bool)
	GetBid(ctx sdk.Context, id mtypes.BidID) (mtypes.Bid, bool)
	GetLease(ctx sdk.Context, id mtypes.LeaseID) (mtypes.Lease, bool)
	OnGroupClosed(ctx sdk.Context, id dtypes.GroupID)
	OnOrderClosed(ctx sdk.Context, order mtypes.Order)
	OnBidClosed(ctx sdk.Context, bid mtypes.Bid)
	OnLeaseClosed(ctx sdk.Context, lease mtypes.Lease, state mtypes.Lease_State)
}

Jump to

Keyboard shortcuts

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