0g-chain/x/wrapped-a0gi-base/keeper/keeper.go

27 lines
556 B
Go
Raw Normal View History

2025-01-07 09:23:01 +00:00
package keeper
import (
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
)
type Keeper struct {
storeKey storetypes.StoreKey
cdc codec.BinaryCodec
authority string // the address capable of changing signers params. Should be the gov module account
}
// NewKeeper creates a new wrapped a0gi base keeper instance
func NewKeeper(
storeKey storetypes.StoreKey,
cdc codec.BinaryCodec,
authority string,
) Keeper {
return Keeper{
storeKey: storeKey,
cdc: cdc,
authority: authority,
}
}