Skip to content

Commit 3e4a41f

Browse files
committed
TM37Client
1 parent 70f6582 commit 3e4a41f

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

docs/lib/classes/LumClient.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-
7171
<h4 class="tsd-parameters-title">Parameters</h4>
7272
<ul class="tsd-parameter-list">
7373
<li>
74-
<h5><span class="tsd-kind-parameter">tmClient</span>: <span class="tsd-signature-type ">Tendermint34Client</span></h5>
74+
<h5><span class="tsd-kind-parameter">tmClient</span>: <span class="tsd-signature-type ">Tendermint37Client</span></h5>
7575
<div class="tsd-comment tsd-typography"><p>tendermint RPC client</p>
7676
</div>
7777
<div class="tsd-comment tsd-typography"></div></li></ul></div>
@@ -87,7 +87,7 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code
8787
<div class="tsd-signature"><span class="tsd-kind-property">query<wbr/>Client</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">QueryClient</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">AuthExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">AuthzExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">BankExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">BeamExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">DfractExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">DistributionExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">GovExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">IbcExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">MillionsExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">MintExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">StakingExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">SlashingExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">FeegrantExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">AirdropExtension</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type ">TxExtension</span></div></section>
8888
<section class="tsd-panel tsd-member"><a id="tmClient" class="tsd-anchor"></a>
8989
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>tm<wbr/>Client</span><a href="#tmClient" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
90-
<div class="tsd-signature"><span class="tsd-kind-property">tm<wbr/>Client</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Tendermint34Client</span></div></section></section>
90+
<div class="tsd-signature"><span class="tsd-kind-property">tm<wbr/>Client</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Tendermint37Client</span></div></section></section>
9191
<section class="tsd-panel-group tsd-member-group">
9292
<h2>Methods</h2>
9393
<section class="tsd-panel tsd-member"><a id="broadcastTx" class="tsd-anchor"></a>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lum-network/sdk-javascript",
3-
"version": "0.8.6-rc2",
3+
"version": "0.8.6-rc3",
44
"license": "Apache-2.0",
55
"description": "Javascript SDK library for NodeJS and Web browsers to interact with the Lum Network.",
66
"homepage": "https://github.com/lum-network/sdk-javascript#readme",

src/client/LumClient.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Tendermint34Client, StatusResponse, RpcClient, HttpClient, WebsocketClient, Method as RpcMethod } from '@cosmjs/tendermint-rpc';
1+
import {RpcClient, HttpClient, WebsocketClient} from '@cosmjs/tendermint-rpc';
2+
import { Tendermint37Client, StatusResponse, Method as RpcMethod } from '@cosmjs/tendermint-rpc/build/tendermint37';
23
import { QueryClient as StargateQueryClient } from '@cosmjs/stargate';
34
import { JsonRpcRequest } from '@cosmjs/json-rpc';
45

@@ -38,7 +39,7 @@ function defaultErrorHandler(error: unknown): void {
3839
}
3940

4041
export class LumClient {
41-
readonly tmClient: Tendermint34Client;
42+
readonly tmClient: Tendermint37Client;
4243
readonly queryClient: StargateQueryClient &
4344
AuthExtension &
4445
AuthzExtension &
@@ -62,7 +63,7 @@ export class LumClient {
6263
*
6364
* @param tmClient tendermint RPC client
6465
*/
65-
constructor(tmClient: Tendermint34Client) {
66+
constructor(tmClient: Tendermint37Client) {
6667
this.tmClient = tmClient;
6768
this.queryClient = StargateQueryClient.withExtensions(
6869
tmClient,
@@ -132,7 +133,7 @@ export class LumClient {
132133
rpcClient = useHttp ? new HttpClient(endpoint) : new WebsocketClient(endpoint, onWebsocketError);
133134
}
134135
await this.detectVersion(rpcClient);
135-
const tmClient = await Tendermint34Client.create(rpcClient);
136+
const tmClient = await Tendermint37Client.create(rpcClient);
136137
return new LumClient(tmClient);
137138
};
138139

src/types/tendermint.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
export type { DateTime, ReadonlyDateWithNanoseconds, fromRfc3339WithNanoseconds, toRfc3339WithNanoseconds } from '@cosmjs/tendermint-rpc';
66
export type { BlockIdFlag, CommitSignature, ValidatorEd25519Pubkey, ValidatorPubkey } from '@cosmjs/tendermint-rpc';
7-
export type { TxSearchParams } from '@cosmjs/tendermint-rpc';
87
export type {
98
Block,
109
BlockchainResponse,
@@ -40,11 +39,12 @@ export type {
4039
TxEvent,
4140
TxProof,
4241
TxResponse,
42+
TxSearchParams,
4343
TxSearchResponse,
4444
TxSizeParams,
4545
Validator,
4646
ValidatorsResponse,
4747
Version,
4848
Vote,
4949
VoteType,
50-
} from '@cosmjs/tendermint-rpc';
50+
} from '@cosmjs/tendermint-rpc/build/tendermint37';

0 commit comments

Comments
 (0)