hooks

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 dv1.DeploymentID) (dv1.Deployment, bool)
	GetGroups(ctx sdk.Context, id dv1.DeploymentID) (dtypes.Groups, error)
	CloseDeployment(ctx sdk.Context, deployment dv1.Deployment) error
	OnCloseGroup(ctx sdk.Context, group dtypes.Group, state dtypes.Group_State) error
}

type Hooks

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

func New

func New(dkeeper DeploymentKeeper, mkeeper MarketKeeper) Hooks

type MarketKeeper

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

Jump to

Keyboard shortcuts

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