Skip to content

Commit

Permalink
feat: update release 0.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnv2303 committed Dec 13, 2022
1 parent 9c207ca commit 4040c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tovchain/cosms",
"version": "0.8.7-beta1",
"version": "0.8.8",
"description": "query data form cosmos base networks template",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
15 changes: 6 additions & 9 deletions src/lib/cosm/query_index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { DirectSecp256k1HdWallet, Registry } from '@cosmjs/proto-signing';
import { defaultRegistryTypes } from "@cosmjs/stargate";
import { AccountData } from '@cosmjs/proto-signing/build/signer';
import { SigningStargateClient } from '@cosmjs/stargate';
import { defaultRegistryTypes, SigningStargateClient } from '@cosmjs/stargate';
import {
PrivateSigningStargateClient
} from '@cosmjs/stargate/build/signingstargateclient';
import { expect } from 'chai';
import { MsgExec } from 'cosmjs-types/cosmos/authz/v1beta1/tx';
import { MsgSend } from 'cosmjs-types/cosmos/bank/v1beta1/tx';
import { BondStatus } from 'cosmjs-types/cosmos/staking/v1beta1/staking';
import Long from 'long';
import 'mocha';
import _m0 from 'protobufjs/minimal';
import { Distribution } from '../cosmos/distribution';

import { BaseProvider } from '../providers';
Expand Down Expand Up @@ -321,7 +318,7 @@ describe('Cosm test', async () => {
for (const message of messages) {

console.log(message.typeUrl);
let decoded = cosm.cosmos.tx.registry.decode(message)
let decoded = cosm.cosmos.tx.registry.decode(message);
// let decoded = MsgSend.decode(new _m0.Reader(message.value));
console.log(decoded);
}
Expand All @@ -335,13 +332,13 @@ describe('Cosm test', async () => {
for (const message of messages2) {

console.log(message.typeUrl);
let decoded = cosm.cosmos.tx.registry.decode(message)
let decoded = cosm.cosmos.tx.registry.decode(message);
console.log(decoded);
let msgs =[]
let msgs = [];
for (const msg of decoded.msgs) {
let decoded2 = cosm.cosmos.tx.registry.decode(msg)
let decoded2 = cosm.cosmos.tx.registry.decode(msg);
console.log(decoded2);
msgs.push(decoded2)
msgs.push(decoded2);
}

}
Expand Down

0 comments on commit 4040c01

Please sign in to comment.