Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func ParamKeyTable() paramstypes.KeyTable
- type Keeper
- func (k Keeper) BaseTokenDenom(ctx sdk.Context) (res string)
- func (k Keeper) BaseTokenManager(ctx sdk.Context) (res string)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) HasToken(ctx sdk.Context, denom string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, amount uint64, recipient, operator sdk.AccAddress) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PointTokenDenom(ctx sdk.Context) (res string)
- func (k Keeper) Reclaim(ctx sdk.Context, denom string, recipient, operator sdk.AccAddress) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UnrestrictedTokenTransfer(ctx sdk.Context) (res bool)
- type Migrator
- type ValidateFn
- type ValidateTokenTransferDecorator
- func (vtd ValidateTokenTransferDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
- func (vtd *ValidateTokenTransferDecorator) Append(m sdk.Msg, fn ValidateFn) *ValidateTokenTransferDecorator
- func (vtd *ValidateTokenTransferDecorator) DefaultValidateFn() *ValidateTokenTransferDecorator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the OPB MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier creates a new OPB Querier instance
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the OPB keeper
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeKey sdk.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, tokenKeeper types.TokenKeeper, permKeeper types.PermKeeper, paramSpace paramstypes.Subspace, ) Keeper
NewKeeper creates a new Keeper instance
func (Keeper) BaseTokenDenom ¶
BaseTokenDenom returns the base token denom
func (Keeper) BaseTokenManager ¶
BaseTokenManager returns the base token manager
func (Keeper) Mint ¶
Mint mints the base native token by the specified amount NOTE: the operator must possess the BaseM1Admin or RootAdmin permission
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PointTokenDenom ¶
PointTokenDenom returns the point token denom
func (Keeper) Reclaim ¶
Reclaim reclaims the native token of the specified denom from the corresponding escrow account NOTE: the operator must possess the certain permission
type ValidateTokenTransferDecorator ¶
type ValidateTokenTransferDecorator struct {
// contains filtered or unexported fields
}
ValidateTokenTransferDecorator checks if the token transfer satisfies the underlying constraint
func NewValidateTokenTransferDecorator ¶
func NewValidateTokenTransferDecorator( keeper Keeper, tokenKeeper types.TokenKeeper, permKeeper types.PermKeeper, ) *ValidateTokenTransferDecorator
NewValidateTokenTransferDecorator constructs a new ValidateTokenTransferDecorator instance
func (ValidateTokenTransferDecorator) AnteHandle ¶
func (vtd ValidateTokenTransferDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
AnteHandle implements AnteHandler
func (*ValidateTokenTransferDecorator) Append ¶
func (vtd *ValidateTokenTransferDecorator) Append(m sdk.Msg, fn ValidateFn) *ValidateTokenTransferDecorator
func (*ValidateTokenTransferDecorator) DefaultValidateFn ¶
func (vtd *ValidateTokenTransferDecorator) DefaultValidateFn() *ValidateTokenTransferDecorator