public CliHelper(string rpcUrl, string keyPath = "") { _rpcAddress = rpcUrl; _keyStore = new AElfKeyStore(keyPath == ""? ApplicationHelper.GetDefaultDataDir() : keyPath); _accountManager = new AccountManager(_keyStore); _transactionManager = new TransactionManager(_keyStore); _requestManager = new RpcRequestManager(rpcUrl); _loadedModules = new Dictionary <string, Module>(); CommandList = new List <CommandInfo>(); }
public SmartContractReader() { _dataDirectory = ApplicationHelper.GetDefaultDataDir(); }