Socket
Socket
Sign inDemoInstall

cosmos-client

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmos-client - npm Package Compare versions

Comparing version 0.39.11 to 0.39.12

2

package.json
{
"name": "cosmos-client",
"description": "REST API Client for Cosmos SDK Blockchain",
"version": "0.39.11",
"version": "0.39.12",
"author": "LCNEM, Inc.",

@@ -6,0 +6,0 @@ "bugs": {

import { CosmosSDK } from "../../cosmos-sdk";
import { PrivKey } from "../../tendermint";
import { StdTx } from "./types/std-tx";
import { DecodeReq, EncodeReq } from "../../api";
import { DecodeReq, EncodeReq, PaginatedQueryTxs, TxQuery } from "../../api";
import { AccAddress } from "../../types";

@@ -22,4 +22,4 @@ import { BaseAccount } from "./types";

export declare function txsEncodePost(sdk: CosmosSDK, req: EncodeReq): AxiosPromise<StdTx>;
export declare function txsGet(sdk: CosmosSDK, messageAction?: string, messageSender?: string, page?: number, limit?: number, txMinHeight?: number, txMaxHeight?: number): AxiosPromise<import("../../api").PaginatedQueryTxs>;
export declare function txsHashGet(sdk: CosmosSDK, hash: string): AxiosPromise<import("../../api").TxQuery>;
export declare function txsGet(sdk: CosmosSDK, messageAction?: string, messageSender?: string, page?: number, limit?: number, txMinHeight?: number, txMaxHeight?: number): AxiosPromise<PaginatedQueryTxs>;
export declare function txsHashGet(sdk: CosmosSDK, hash: string): AxiosPromise<TxQuery>;
export declare function txsPost(sdk: CosmosSDK, tx: StdTx, mode: "sync" | "async" | "block"): AxiosPromise<import("../../api").BroadcastTxCommitResult>;
import { StdTx } from "./types/std-tx";
import { AuthApi, TransactionsApi } from "../../api";
import { AuthApi, TransactionsApi, } from "../../api";
import { codec } from "../../codec";

@@ -45,6 +45,16 @@ /**

export function txsGet(sdk, messageAction, messageSender, page, limit, txMinHeight, txMaxHeight) {
return new TransactionsApi(undefined, sdk.url).txsGet(messageAction, messageSender, page, limit, txMinHeight, txMaxHeight);
return new TransactionsApi(undefined, sdk.url)
.txsGet(messageAction, messageSender, page, limit, txMinHeight, txMaxHeight)
.then((res) => {
res.data = codec.fromJSONString(JSON.stringify(res.data));
return res;
});
}
export function txsHashGet(sdk, hash) {
return new TransactionsApi(undefined, sdk.url).txsHashGet(hash);
return new TransactionsApi(undefined, sdk.url)
.txsHashGet(hash)
.then((res) => {
res.data = codec.fromJSONString(JSON.stringify(res.data));
return res;
});
}

@@ -51,0 +61,0 @@ export function txsPost(sdk, tx, mode) {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc