Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(keepers Keepers) baseapp.MsgServiceHandler
NewHandler returns a handler for "market" type messages
Types ¶
type AuditKeeper ¶
type AuthzKeeper ¶
type AuthzKeeper interface {
DeleteGrant(ctx context.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) error
GetAuthorization(ctx context.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) (authz.Authorization, *time.Time)
SaveGrant(ctx context.Context, grantee sdk.AccAddress, granter sdk.AccAddress, authorization authz.Authorization, expiration *time.Time) error
GetGranteeGrantsByMsgType(ctx context.Context, grantee sdk.AccAddress, msgType string, onGrant func(context.Context, sdk.AccAddress, authz.Authorization, *time.Time) bool)
}
type BankKeeper ¶
type DeploymentKeeper ¶
type DeploymentKeeper interface {
GetGroup(ctx sdk.Context, id dtypes.GroupID) (dbeta.Group, bool)
OnBidClosed(ctx sdk.Context, id dtypes.GroupID) error
OnLeaseClosed(ctx sdk.Context, id dtypes.GroupID) (dbeta.Group, error)
}
DeploymentKeeper Interface includes deployment methods
type EscrowKeeper ¶
type EscrowKeeper interface {
AccountCreate(ctx sdk.Context, id etypes.AccountID, owner sdk.AccAddress, deposits []etypes.Deposit) error
AccountDeposit(ctx sdk.Context, id etypes.AccountID, deposits []etypes.Deposit) error
AccountClose(ctx sdk.Context, id etypes.AccountID) error
PaymentCreate(ctx sdk.Context, id etypes.AccountID, pid string, provider sdk.AccAddress, rate sdk.DecCoin) error
PaymentWithdraw(ctx sdk.Context, id etypes.AccountID, pid string) error
PaymentClose(ctx sdk.Context, id etypes.AccountID, pid string) error
}
type Keepers ¶
type Keepers struct {
Escrow EscrowKeeper
Market keeper.IKeeper
Deployment DeploymentKeeper
Provider ProviderKeeper
Audit AuditKeeper
Account govtypes.AccountKeeper
Authz AuthzKeeper
Bank BankKeeper
}
Keepers include all modules keepers
Click to show internal directories.
Click to hide internal directories.