mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
e14466547d
* wip: issuance module * add keeper and module methods * add begin blocker * add client * update events * add simulations * ignore v0.8 migration tests for now * ignore migration tests in ci * add test suite * update spec to match implementation details * add unblock method * address review comments * fix typos
82 lines
3.1 KiB
Go
82 lines
3.1 KiB
Go
package issuance
|
|
|
|
import (
|
|
"github.com/kava-labs/kava/x/issuance/keeper"
|
|
"github.com/kava-labs/kava/x/issuance/types"
|
|
)
|
|
|
|
// nolint
|
|
// autogenerated code using github.com/rigelrozanski/multitool
|
|
// aliases generated for the following subdirectories:
|
|
// ALIASGEN: github.com/kava-labs/kava/x/issuance/keeper
|
|
// ALIASGEN: github.com/kava-labs/kava/x/issuance/types
|
|
|
|
const (
|
|
EventTypeIssue = types.EventTypeIssue
|
|
EventTypeRedeem = types.EventTypeRedeem
|
|
EventTypeBlock = types.EventTypeBlock
|
|
EventTypeUnblock = types.EventTypeUnblock
|
|
EventTypePause = types.EventTypePause
|
|
EventTypeSeize = types.EventTypeSeize
|
|
AttributeValueCategory = types.AttributeValueCategory
|
|
AttributeKeyDenom = types.AttributeKeyDenom
|
|
AttributeKeyIssueAmount = types.AttributeKeyIssueAmount
|
|
AttributeKeyRedeemAmount = types.AttributeKeyRedeemAmount
|
|
AttributeKeyBlock = types.AttributeKeyBlock
|
|
AttributeKeyUnblock = types.AttributeKeyUnblock
|
|
AttributeKeyAddress = types.AttributeKeyAddress
|
|
AttributeKeyPauseStatus = types.AttributeKeyPauseStatus
|
|
ModuleName = types.ModuleName
|
|
StoreKey = types.StoreKey
|
|
RouterKey = types.RouterKey
|
|
DefaultParamspace = types.DefaultParamspace
|
|
QuerierRoute = types.QuerierRoute
|
|
QueryGetParams = types.QueryGetParams
|
|
QueryGetAsset = types.QueryGetAsset
|
|
)
|
|
|
|
var (
|
|
// functions aliases
|
|
NewKeeper = keeper.NewKeeper
|
|
NewQuerier = keeper.NewQuerier
|
|
RegisterCodec = types.RegisterCodec
|
|
NewGenesisState = types.NewGenesisState
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
NewMsgIssueTokens = types.NewMsgIssueTokens
|
|
NewMsgRedeemTokens = types.NewMsgRedeemTokens
|
|
NewMsgBlockAddress = types.NewMsgBlockAddress
|
|
NewMsgUnblockAddress = types.NewMsgUnblockAddress
|
|
NewMsgSetPauseStatus = types.NewMsgSetPauseStatus
|
|
NewParams = types.NewParams
|
|
DefaultParams = types.DefaultParams
|
|
ParamKeyTable = types.ParamKeyTable
|
|
NewAsset = types.NewAsset
|
|
|
|
// variable aliases
|
|
ModuleCdc = types.ModuleCdc
|
|
ErrAssetNotFound = types.ErrAssetNotFound
|
|
ErrNotAuthorized = types.ErrNotAuthorized
|
|
ErrAssetPaused = types.ErrAssetPaused
|
|
ErrAccountBlocked = types.ErrAccountBlocked
|
|
ErrAccountAlreadyBlocked = types.ErrAccountAlreadyBlocked
|
|
ErrAccountAlreadyUnblocked = types.ErrAccountAlreadyUnblocked
|
|
ErrIssueToModuleAccount = types.ErrIssueToModuleAccount
|
|
KeyAssets = types.KeyAssets
|
|
DefaultAssets = types.DefaultAssets
|
|
ModuleAccountName = types.ModuleAccountName
|
|
)
|
|
|
|
type (
|
|
Keeper = keeper.Keeper
|
|
GenesisState = types.GenesisState
|
|
MsgIssueTokens = types.MsgIssueTokens
|
|
MsgRedeemTokens = types.MsgRedeemTokens
|
|
MsgBlockAddress = types.MsgBlockAddress
|
|
MsgUnblockAddress = types.MsgUnblockAddress
|
|
MsgSetPauseStatus = types.MsgSetPauseStatus
|
|
Params = types.Params
|
|
Asset = types.Asset
|
|
Assets = types.Assets
|
|
QueryAssetParams = types.QueryAssetParams
|
|
)
|