Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const AccountPrefix + const AddressKey + const BatchRecharge + const ChargeGasAmount + const ChargePublicKey + const FrozenPrefix + const RechargeAmountKey + const RechargeKey + const Success + type AccountManager struct + func NewAccountManager(log protocol.Logger) *AccountManager + type AccountManagerRuntime struct + func (g *AccountManagerRuntime) ChargeGasVm(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) ChargeGasVmForMultiAccount(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) FrozenAccount(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) GetAccountStatus(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) GetAdmin(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) GetBalance(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) RechargeGas(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) RefundGas(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) RefundGasVm(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) SetAdmin(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (g *AccountManagerRuntime) UnFrozenAccount(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + type AccountMgr interface + ChargeGasVm func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + ChargeGasVmForMultiAccount func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + FrozenAccount func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + GetAccountStatus func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + GetAdmin func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + GetBalance func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + RechargeGas func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + RefundGas func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + RefundGasVm func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + SetAdmin func(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + UnFrozenAccount func(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) Other modules containing this package chainmaker.org/chainmaker/vm-native/v2