Versions in this module Expand all Collapse all v2 v2.3.4 Mar 29, 2024 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 + func (g *AccountManager) GetMethod(methodName string) common.ContractFunc + 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)