mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
b356309d90
* add rate-limiting and optional blocklists * fix: check account is not nil * add tests for rate-limiting * update simulations * fix typos * remove unsued function arg
91 lines
3.5 KiB
Go
91 lines
3.5 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
|
|
NewRateLimit = types.NewRateLimit
|
|
NewAssetSupply = types.NewAssetSupply
|
|
|
|
// 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
|
|
ErrExceedsSupplyLimit = types.ErrExceedsSupplyLimit
|
|
ErrAssetUnblockable = types.ErrAssetUnblockable
|
|
AssetSupplyPrefix = types.AssetSupplyPrefix
|
|
PreviousBlockTimeKey = types.PreviousBlockTimeKey
|
|
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
|
|
RateLimit = types.RateLimit
|
|
QueryAssetParams = types.QueryAssetParams
|
|
AssetSupply = types.AssetSupply
|
|
AssetSupplies = types.AssetSupplies
|
|
)
|