- Add nitro server and x/nitro module
- wire go-nitro p2p through cometbft
- Add distsig server, currently WIP
- integrate DKG and DSS schemes into ABCI methods
- Remove deprecated features
- crisis module
- module invariants
- Update to use newer SDK patterns
- upgrade sdk to v0.53.x
- custom address codec
- expand use of depinject
- migrate e2e tests to system tests
- use depinject to set up integration tests
- change reserved protobuf field name `cerc.registry.v1.Record.type`
- Revise & add documentation
- TransferCoinsToModuleAccount: clarify function
- Update init.sh script
18 lines
648 B
Go
18 lines
648 B
Go
package bond
|
|
|
|
import context "context"
|
|
|
|
// BondUsageKeeper keep track of bond usage in other modules.
|
|
// Used to, for example, prevent deletion of a bond that's in use.
|
|
type BondUsageKeeper interface {
|
|
ModuleName() string
|
|
UsesBond(ctx context.Context, bondId string) bool
|
|
}
|
|
|
|
// BondHooksWrapper is a wrapper for modules to inject BondUsageKeeper using depinject.
|
|
// Reference: https://github.com/cosmos/cosmos-sdk/tree/v0.50.3/core/appmodule#resolving-circular-dependencies
|
|
type BondHooksWrapper struct{ BondUsageKeeper }
|
|
|
|
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
|
|
func (BondHooksWrapper) IsOnePerModuleType() {}
|