Skip to content

graphprotocol/juno-ts

Repository files navigation

juno-ts

TypeScript/AssemblyScript library for decoding Juno messages.

Usage

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);
  }
}

Development

Install Protocol Buffer Compiler (protoc) and Lerna.

Fetch dependencies

git submodule update --init --force

Build and test

yarn install
yarn build
yarn test

Update dependencies

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages