forked from cerc-io/laconicd
4da8dd8d7b
* Add commands to get bonds by id and owner * Add commands to get bond module params and balances * Add commands to refill, withdraw and cancel bond * Add implementations for bond tx commands * Use indexed map to implement command for getting bond by owner * Use collections for bond module params * Clean up
20 lines
365 B
Go
20 lines
365 B
Go
package bond
|
|
|
|
import "cosmossdk.io/collections"
|
|
|
|
const (
|
|
ModuleName = "bond"
|
|
|
|
// StoreKey is the string store representation
|
|
StoreKey = ModuleName
|
|
)
|
|
|
|
// Store prefixes
|
|
var (
|
|
// ParamsKey is the prefix for params key
|
|
ParamsKeyPrefix = collections.NewPrefix(0)
|
|
|
|
BondsKeyPrefix = collections.NewPrefix(1)
|
|
BondOwnerIndexPrefix = collections.NewPrefix(2)
|
|
)
|