Skip to content

Commit

Permalink
Update lint settings for Cosmos connection
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Oct 29, 2019
1 parent a75cf2c commit 600ac92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions packages/iov-cosmos/src/cosmosconnection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/camelcase,@typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/camelcase */
import {
Account,
AccountQuery,
Expand Down Expand Up @@ -103,7 +103,7 @@ export class CosmosConnection implements BlockchainConnection {
return block_meta.header.height;
}

public async getToken(ticker: TokenTicker): Promise<Token | undefined> {
public async getToken(_ticker: TokenTicker): Promise<Token | undefined> {
throw new Error("not implemented");
}

Expand All @@ -127,7 +127,7 @@ export class CosmosConnection implements BlockchainConnection {
};
}

public watchAccount(account: AccountQuery): Stream<Account | undefined> {
public watchAccount(_account: AccountQuery): Stream<Account | undefined> {
throw new Error("not implemented");
}

Expand Down Expand Up @@ -198,12 +198,14 @@ export class CosmosConnection implements BlockchainConnection {
}

public listenTx(
query: TransactionQuery,
_query: TransactionQuery,
): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction> {
throw new Error("not implemented");
}

public liveTx(query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction> {
public liveTx(
_query: TransactionQuery,
): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction> {
throw new Error("not implemented");
}

Expand Down
8 changes: 4 additions & 4 deletions packages/iov-cosmos/types/cosmosconnection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export declare class CosmosConnection implements BlockchainConnection {
disconnect(): void;
chainId(): ChainId;
height(): Promise<number>;
getToken(ticker: TokenTicker): Promise<Token | undefined>;
getToken(_ticker: TokenTicker): Promise<Token | undefined>;
getAllTokens(): Promise<readonly Token[]>;
getAccount(query: AccountQuery): Promise<Account | undefined>;
watchAccount(account: AccountQuery): Stream<Account | undefined>;
watchAccount(_account: AccountQuery): Stream<Account | undefined>;
getNonce(query: AddressQuery | PubkeyQuery): Promise<Nonce>;
getNonces(query: AddressQuery | PubkeyQuery, count: number): Promise<readonly Nonce[]>;
getBlockHeader(height: number): Promise<BlockHeader>;
Expand All @@ -44,8 +44,8 @@ export declare class CosmosConnection implements BlockchainConnection {
searchTx(
query: TransactionQuery,
): Promise<readonly (ConfirmedTransaction<LightTransaction> | FailedTransaction)[]>;
listenTx(query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>;
liveTx(query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>;
listenTx(_query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>;
liveTx(_query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>;
getFeeQuote(tx: UnsignedTransaction): Promise<Fee>;
withDefaultFee<T extends UnsignedTransaction>(tx: T): Promise<T>;
private parseAndPopulateTxResponse;
Expand Down

0 comments on commit 600ac92

Please sign in to comment.