Skip to content

Commit

Permalink
Merge pull request #183 from BitCannaGlobal/CosmWasm-TX-messages
Browse files Browse the repository at this point in the history
Basic coverage of WASM messages TXs
  • Loading branch information
atmoner authored Nov 7, 2024
2 parents 973790f + 6c605e9 commit 2421cd0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.git
.gitignore
docker-compose.yml
Dockerfile
.dockerignore
36 changes: 35 additions & 1 deletion libs/msgType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"] + ".");
Expand Down

0 comments on commit 2421cd0

Please sign in to comment.