diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..09a64b3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +node_modules +.git +.gitignore +docker-compose.yml +Dockerfile +.dockerignore \ No newline at end of file diff --git a/libs/msgType.js b/libs/msgType.js index 9aa4a1a..c8ec295 100644 --- a/libs/msgType.js +++ b/libs/msgType.js @@ -246,7 +246,41 @@ export function setMsg(msg, addrGet, timestamp, allVal, txHash) { color = "#00b786"; icon = "Unknown.svg"; finalHash = txHash; - break; + break; + case "/cosmwasm.wasm.v1.MsgStoreCode": + type = msg["@type"]; + typeReadable = "Upload Contract"; + color = "#00b786"; + icon = "Unknown.svg"; + finalHash = txHash; + // msgData = { + // instantiate_permission: msg.instantiate_permission, + // sender: msg.sender, + // }; + break; + case "/cosmwasm.wasm.v1.MsgInstantiateContract": + type = msg["@type"]; + typeReadable = "Instantiate Contract"; + color = "#00b786"; + icon = "Unknown.svg"; + finalHash = txHash; + // msgData = { + // code_id: msg.code_id, + // sender: msg.sender, + // label: msg.label, + // }; + break; + case "/cosmwasm.wasm.v1.MsgExecuteContract": + type = msg["@type"]; + typeReadable = "Execute Contract"; + color = "#00b786"; + icon = "Unknown.svg"; + finalHash = txHash; + // msgData = { + // code_id: msg.code_id, + // sender: msg.sender, + // }; + break; default: console.log("Sorry, dont know " + msg["@type"] + ".");