Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) typesv1.MsgServer
- type Keeper
- func (k Keeper) ActiveSmartAccount(ctx sdk.Context, msg *typesv1.MsgActivateAccount, sAccount authtypes.AccountI) (cryptotypes.PubKey, error)
- func (k Keeper) CallSMValidate(ctx sdk.Context, msg *typesv1.MsgRecover, saAddr sdk.AccAddress, ...) error
- func (k Keeper) CheckAllowedMsgs(ctx sdk.Context, msgs []sdk.Msg) error
- func (k Keeper) DeleteGasRemaining(ctx sdk.Context)
- func (k Keeper) DeleteSignerAddress(ctx sdk.Context)
- func (k Keeper) GenerateAccount(goCtx context.Context, req *typesv1.QueryGenerateAccountRequest) (*typesv1.QueryGenerateAccountResponse, error)
- func (k Keeper) GetAndIncrementNextAccountID(ctx sdk.Context) uint64
- func (k Keeper) GetGasRemaining(ctx sdk.Context) uint64
- func (k Keeper) GetNextAccountID(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params typesv1.Params)
- func (k Keeper) GetSignerAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetSmartAccountByAddress(ctx sdk.Context, address sdk.AccAddress) (*typesv1.SmartAccount, error)
- func (k Keeper) HandleAfterActive(ctx sdk.Context, sAccount authtypes.AccountI, backupSeq uint64, ...) error
- func (k Keeper) HasGasRemaining(ctx sdk.Context) bool
- func (k Keeper) IsInactiveAccount(ctx sdk.Context, acc sdk.AccAddress) (authtypes.AccountI, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *typesv1.QueryParamsRequest) (*typesv1.QueryParamsResponse, error)
- func (k Keeper) PrepareBeforeActive(ctx sdk.Context, sAccount authtypes.AccountI) error
- func (k Keeper) SetGasRemaining(ctx sdk.Context, gasRemaining uint64)
- func (k Keeper) SetNextAccountID(ctx sdk.Context, id uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params typesv1.Params) error
- func (k Keeper) SetSignerAddress(ctx sdk.Context, signerAddr sdk.AccAddress)
- func (k Keeper) UpdateAccountPubKey(ctx sdk.Context, acc authtypes.AccountI, pubKey cryptotypes.PubKey) error
- func (k Keeper) ValidateActiveSA(ctx sdk.Context, msg *typesv1.MsgActivateAccount) (authtypes.AccountI, error)
- func (k Keeper) ValidateRecoverSA(ctx sdk.Context, msg *typesv1.MsgRecover) (authtypes.AccountI, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { WasmKeeper wasmkeeper.Keeper ContractKeeper *wasmkeeper.PermissionedKeeper AccountKeeper types.AccountKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, wp wasmkeeper.Keeper, contractKeeper *wasmkeeper.PermissionedKeeper, ak types.AccountKeeper, ) Keeper
func (Keeper) ActiveSmartAccount ¶
func (k Keeper) ActiveSmartAccount( ctx sdk.Context, msg *typesv1.MsgActivateAccount, sAccount authtypes.AccountI, ) (cryptotypes.PubKey, error)
create a new smart account from an inactive account
func (Keeper) CallSMValidate ¶
func (k Keeper) CallSMValidate(ctx sdk.Context, msg *typesv1.MsgRecover, saAddr sdk.AccAddress, pubKey cryptotypes.PubKey) error
CallSMValidate to check logic recover from smart account
func (Keeper) CheckAllowedMsgs ¶
IsAllowed returns true when msg URL is not found in the DisableList for given context, else false.
func (Keeper) DeleteGasRemaining ¶
func (Keeper) DeleteSignerAddress ¶
func (Keeper) GenerateAccount ¶
func (k Keeper) GenerateAccount(goCtx context.Context, req *typesv1.QueryGenerateAccountRequest) (*typesv1.QueryGenerateAccountResponse, error)
func (Keeper) GetAndIncrementNextAccountID ¶
func (Keeper) GetSignerAddress ¶
func (k Keeper) GetSignerAddress(ctx sdk.Context) sdk.AccAddress
func (Keeper) GetSmartAccountByAddress ¶
func (k Keeper) GetSmartAccountByAddress(ctx sdk.Context, address sdk.AccAddress) (*typesv1.SmartAccount, error)
func (Keeper) HandleAfterActive ¶
func (k Keeper) HandleAfterActive(ctx sdk.Context, sAccount authtypes.AccountI, backupSeq uint64, pubKey cryptotypes.PubKey) error
HandleAfterActive change type of account to smart account and recover seq of this account
func (Keeper) IsInactiveAccount ¶
Inactive smart-account must be base account with empty public key
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *typesv1.QueryParamsRequest) (*typesv1.QueryParamsResponse, error)
func (Keeper) PrepareBeforeActive ¶
func (Keeper) SetGasRemaining ¶
func (Keeper) SetSignerAddress ¶
func (k Keeper) SetSignerAddress(ctx sdk.Context, signerAddr sdk.AccAddress)
func (Keeper) UpdateAccountPubKey ¶
func (k Keeper) UpdateAccountPubKey(ctx sdk.Context, acc authtypes.AccountI, pubKey cryptotypes.PubKey) error
set new pubkey for an account
func (Keeper) ValidateActiveSA ¶
func (Keeper) ValidateRecoverSA ¶
func (k Keeper) ValidateRecoverSA(ctx sdk.Context, msg *typesv1.MsgRecover) (authtypes.AccountI, error)
ValidateRecoverSA check input before recover smart account
Click to show internal directories.
Click to hide internal directories.