sdk38: Use BlockHeader type from lcdapi base in staking extension

This commit is contained in:
willclarktech 2020-07-22 12:49:00 +02:00
parent a4187591ca
commit 88a2fd1a88
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
4 changed files with 4 additions and 6 deletions

View File

@ -63,7 +63,7 @@ interface BlockId {
// }
}
interface BlockHeader {
export interface BlockHeader {
readonly version: {
readonly block: string;
readonly app: string;

View File

@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { Coin } from "../coins";
import { BlockHeader } from "../cosmosclient";
import { SearchTxsResponse } from "./base";
import { BlockHeader, SearchTxsResponse } from "./base";
import { LcdClient } from "./lcdclient";
interface Validator {

View File

@ -50,7 +50,7 @@ export interface NodeInfoResponse {
interface BlockId {
readonly hash: string;
}
interface BlockHeader {
export interface BlockHeader {
readonly version: {
readonly block: string;
readonly app: string;

View File

@ -1,6 +1,5 @@
import { Coin } from "../coins";
import { BlockHeader } from "../cosmosclient";
import { SearchTxsResponse } from "./base";
import { BlockHeader, SearchTxsResponse } from "./base";
import { LcdClient } from "./lcdclient";
interface Validator {
readonly operator_address: string;