@@ -29,6 +29,7 @@ import {
2929import { setupSlashingExtension , SlashingExtension } from '../extensions/slashing' ;
3030import { AuthzExtension , setupAuthzExtension } from '../extensions/authz' ;
3131import { FeegrantExtension , setupFeegrantExtension } from '../extensions/feegrant' ;
32+ import { createAminoTypes } from '../registry/aminoTypes' ;
3233
3334export class LumClient {
3435 readonly tmClient : Tendermint34Client ;
@@ -98,6 +99,8 @@ export class LumClient {
9899 */
99100 static connect = async ( endpoint : string ) : Promise < LumClient > => {
100101 const tmClient = await Tendermint34Client . connect ( endpoint ) ;
102+ console . log ( createAminoTypes ( ) ) ;
103+
101104 return new LumClient ( tmClient ) ;
102105 } ;
103106
@@ -127,8 +130,7 @@ export class LumClient {
127130 * Get the connected node status information
128131 */
129132 status = async ( ) : Promise < StatusResponse > => {
130- const status = await this . tmClient . status ( ) ;
131- return status ;
133+ return this . tmClient . status ( ) ;
132134 } ;
133135
134136 /**
@@ -194,8 +196,7 @@ export class LumClient {
194196 * @param address wallet address
195197 */
196198 getAllBalances = async ( address : string ) : Promise < LumTypes . Coin [ ] > => {
197- const balances = await this . queryClient . bank . allBalances ( address ) ;
198- return balances ;
199+ return this . queryClient . bank . allBalances ( address ) ;
199200 } ;
200201
201202 /**
@@ -212,8 +213,7 @@ export class LumClient {
212213 * Get all coins supplies
213214 */
214215 getAllSupplies = async ( ) : Promise < LumTypes . Coin [ ] > => {
215- const supplies = await this . queryClient . bank . totalSupply ( ) ;
216- return supplies ;
216+ return this . queryClient . bank . totalSupply ( ) ;
217217 } ;
218218
219219 /**
@@ -223,8 +223,7 @@ export class LumClient {
223223 * @param includeProof whether or not to include proof of the transaction inclusion in the block
224224 */
225225 getTx = async ( hash : Uint8Array , includeProof ?: boolean ) : Promise < LumTypes . TxResponse | null > => {
226- const result = await this . tmClient . tx ( { hash : hash , prove : includeProof } ) ;
227- return result ;
226+ return this . tmClient . tx ( { hash : hash , prove : includeProof } ) ;
228227 } ;
229228
230229 /**
@@ -274,7 +273,7 @@ export class LumClient {
274273 * @param doc document to sign
275274 */
276275 signTx = async ( wallet : LumWallet | LumWallet [ ] , doc : LumTypes . Doc ) : Promise < Uint8Array > => {
277- let wallets : LumWallet [ ] = [ ] ;
276+ let wallets : LumWallet [ ] ;
278277 if ( Array . isArray ( wallet ) ) {
279278 wallets = wallet ;
280279 } else {
@@ -312,8 +311,7 @@ export class LumClient {
312311 * @param tx signed transaction to broadcast
313312 */
314313 broadcastTx = async ( tx : Uint8Array ) : Promise < LumTypes . BroadcastTxCommitResponse > => {
315- const response = await this . tmClient . broadcastTxCommit ( { tx } ) ;
316- return response ;
314+ return this . tmClient . broadcastTxCommit ( { tx } ) ;
317315 } ;
318316
319317 /**
0 commit comments