mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 01:44:04 +00:00
update logs
This commit is contained in:
parent
cdf94fc50d
commit
8efc164d99
@ -139,18 +139,15 @@ public class ContractClient {
|
|||||||
String strEvent = get.syncGet("", "getDeclaredEvents", "");
|
String strEvent = get.syncGet("", "getDeclaredEvents", "");
|
||||||
LOGGER.debug("event: " + strEvent);
|
LOGGER.debug("event: " + strEvent);
|
||||||
contractMeta.declaredEvents = JsonUtil.fromJson(strEvent,
|
contractMeta.declaredEvents = JsonUtil.fromJson(strEvent,
|
||||||
new TypeToken<Map<String, REventSemantics>>() {
|
new TypeToken<Map<String, REventSemantics>>() {}.getType());
|
||||||
}.getType());
|
|
||||||
LOGGER.info("initProps ---- position-----3");
|
LOGGER.info("initProps ---- position-----3");
|
||||||
contractMeta.dependentContracts =
|
contractMeta.dependentContracts =
|
||||||
JsonUtil.fromJson(get.syncGet("", "getDependentContracts", ""),
|
JsonUtil.fromJson(get.syncGet("", "getDependentContracts", ""),
|
||||||
new TypeToken<Set<String>>() {
|
new TypeToken<Set<String>>() {}.getType());
|
||||||
}.getType());
|
|
||||||
LOGGER.info("initProps ---- position-----4");
|
LOGGER.info("initProps ---- position-----4");
|
||||||
contractMeta.exportedFunctions =
|
contractMeta.exportedFunctions =
|
||||||
JsonUtil.fromJson(get.syncGet("", "getExportedFunctions", ""),
|
JsonUtil.fromJson(get.syncGet("", "getExportedFunctions", ""),
|
||||||
new TypeToken<List<FunctionDesp>>() {
|
new TypeToken<List<FunctionDesp>>() {}.getType());
|
||||||
}.getType());
|
|
||||||
contractMeta.logDetail = new HashMap<>();
|
contractMeta.logDetail = new HashMap<>();
|
||||||
for (FunctionDesp func : contractMeta.exportedFunctions) {
|
for (FunctionDesp func : contractMeta.exportedFunctions) {
|
||||||
StringBuilder str = new StringBuilder();
|
StringBuilder str = new StringBuilder();
|
||||||
@ -180,8 +177,7 @@ public class ContractClient {
|
|||||||
|
|
||||||
String anno = get.syncGet("", "getAnnotations", "");
|
String anno = get.syncGet("", "getAnnotations", "");
|
||||||
contractMeta.annotations =
|
contractMeta.annotations =
|
||||||
JsonUtil.fromJson(anno, new TypeToken<List<AnnotationNode>>() {
|
JsonUtil.fromJson(anno, new TypeToken<List<AnnotationNode>>() {}.getType());
|
||||||
}.getType());
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// supoort contract process before version 0.70
|
// supoort contract process before version 0.70
|
||||||
|
@ -1802,8 +1802,7 @@ public class ContractManager {
|
|||||||
logsDB.put(contractName, sb);
|
logsDB.put(contractName, sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changePermission(String contractFileName, String pmList) {
|
public void changePermission(String contractFileName, String pmList) {}
|
||||||
}
|
|
||||||
|
|
||||||
// public String getSyncType(String contractName) {
|
// public String getSyncType(String contractName) {
|
||||||
// ContractClient client = getByName(contractName);
|
// ContractClient client = getByName(contractName);
|
||||||
|
Loading…
Reference in New Issue
Block a user