import { JSONRPC } from "./types" ; import bigInteger from "big-integer" ; import { Buffer } from "buffer/" ; export class ResultABCIInfo { public static fromJSON ( obj ) { return new ResultABCIInfo ( ABCIResponseInfo . fromJSON ( obj . result . response ) ) ; } constructor ( public readonly response ) { } } export class ABCIResponseInfo { public static fromJSON ( obj ) { return new ABCIResponseInfo ( obj . data , obj . version , obj . app_version , obj . last_block_height , obj . last_block_app_hash ) ; } constructor ( public readonly data , public readonly version , public readonly appVersion , public readonly lastBlockHeight , public readonly lastBlockAppHash ) { } } export class ResultABCIQuery { public static fromJSON ( obj ) { return new ResultABCIQuery ( ABCIResponseQuery . fromJSON ( obj . result . response ) ) ; } constructor ( public readonly response ) { } } export class ABCIResponseQuery { public static fromJSON ( obj ) { return new ABCIResponseQuery ( Buffer . from ( obj . key , "base64" ) , Buffer . from ( obj . value , "base64" ) , bigInteger ( obj . height ) ) ; } constructor ( public readonly key , public readonly value , public readonly height ) { } } export interface ABCIQueryOptions { height : bigInteger . BigNumber ; prove : boolean ; }