TypeScript/AssemblyScript library for decoding Juno messages.
import { cosmwasm, google } from "@graphprotocol/juno-ts";
function logSender(any: google.protobuf.Any) {
if (any.typeUrl == '/cosmwasm.wasm.v1.MsgExecuteContract') {
const message = cosmwasm.wasm.v1.decodeMsgExecuteContract(any.value);
console.log(message.sender);
}
}
Install Protocol Buffer Compiler (protoc
) and Lerna.
git submodule update --init --force
yarn install
yarn build
yarn test
In order to update a dependency, change the value of the branch
option in the corresponding section of the .gitmodules
file.
Note
A submodule should always point to a tag.
git -C <submodule_dir> checkout <new_tag>
yarn build
yarn test
git commit -m <submodule_dir>