coreum-js 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ export declare class Client {
107
107
  * @param memo An arbitrary string to add as Memo for the transaction
108
108
  * @returns TxRaw object to be submitted to the chain
109
109
  */
110
- signTx(msgs: readonly EncodeObject[], memo?: string): Promise<Uint8Array>;
110
+ signTx(msgs: readonly EncodeObject[], memo?: string): Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
111
111
  /**
112
112
  *
113
113
  * @param event String describing the event to subscribe to.
@@ -14,7 +14,6 @@ const coreum_2 = require("../types/coreum");
14
14
  const query_1 = require("../coreum/feemodel/v1/query");
15
15
  const proto_signing_1 = require("@cosmjs/proto-signing");
16
16
  const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc");
17
- const cosmos_1 = require("../cosmos");
18
17
  const types_1 = require("../types");
19
18
  const utils_1 = require("../utils");
20
19
  const stargate_1 = require("@cosmjs/stargate");
@@ -251,7 +250,7 @@ class Client {
251
250
  const signed = await signingClient.sign(this.address, msgs, fee, this._tx_memo
252
251
  ? `${this._tx_memo} ${memo ? `- ${memo}` : ""}`
253
252
  : memo || "", signerData);
254
- return cosmos_1.TxRaw.encode(signed).finish();
253
+ return signed;
255
254
  }
256
255
  catch (e) {
257
256
  throw {
@@ -107,7 +107,7 @@ export declare class Client {
107
107
  * @param memo An arbitrary string to add as Memo for the transaction
108
108
  * @returns TxRaw object to be submitted to the chain
109
109
  */
110
- signTx(msgs: readonly EncodeObject[], memo?: string): Promise<Uint8Array>;
110
+ signTx(msgs: readonly EncodeObject[], memo?: string): Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
111
111
  /**
112
112
  *
113
113
  * @param event String describing the event to subscribe to.
@@ -8,7 +8,6 @@ import { COREUM_CONFIG } from "../types/coreum";
8
8
  import { QueryClientImpl as FeeModelClient } from "../coreum/feemodel/v1/query";
9
9
  import { Registry, } from "@cosmjs/proto-signing";
10
10
  import { Tendermint34Client, WebsocketClient } from "@cosmjs/tendermint-rpc";
11
- import { TxRaw } from "../cosmos";
12
11
  import { ExtensionWallets } from "../types";
13
12
  import { generateWalletFromMnemonic, generateMultisigFromPubkeys, } from "../utils";
14
13
  import { GasPrice, QueryClient, StargateClient, calculateFee, createProtobufRpcClient, decodeCosmosSdkDecFromProto, defaultRegistryTypes, setupAuthExtension, setupFeegrantExtension, setupIbcExtension, setupMintExtension, setupStakingExtension, setupTxExtension, } from "@cosmjs/stargate";
@@ -254,7 +253,7 @@ export class Client {
254
253
  const signed = await signingClient.sign(this.address, msgs, fee, this._tx_memo
255
254
  ? `${this._tx_memo} ${memo ? `- ${memo}` : ""}`
256
255
  : memo || "", signerData);
257
- return TxRaw.encode(signed).finish();
256
+ return signed;
258
257
  }
259
258
  catch (e) {
260
259
  throw {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "JS/TS Library to to easily make use of the Coreum Blockchain",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",