From 4040c01862dcb334be56cd5bba1984b0af244682 Mon Sep 17 00:00:00 2001 From: linlin Date: Tue, 13 Dec 2022 15:46:13 +0700 Subject: [PATCH] feat: update release 0.8.8 --- package.json | 2 +- src/lib/cosm/query_index.spec.ts | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index fd638ed..893d8ec 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/cosm/query_index.spec.ts b/src/lib/cosm/query_index.spec.ts index e68f7ad..bfeebed 100644 --- a/src/lib/cosm/query_index.spec.ts +++ b/src/lib/cosm/query_index.spec.ts @@ -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'; @@ -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); } @@ -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); } }