diff --git a/packages/cosmwasm/src/lcdapi/wasm.ts b/packages/cosmwasm/src/lcdapi/wasm.ts index 3ab14075..330eddfa 100644 --- a/packages/cosmwasm/src/lcdapi/wasm.ts +++ b/packages/cosmwasm/src/lcdapi/wasm.ts @@ -97,6 +97,11 @@ export interface WasmExtension { */ readonly getContractInfo: (address: string) => Promise; + /** + * Returns null when contract history was not found for this address. + */ + readonly getContractCodeHistory: (address: string) => Promise; + /** * Returns all contract state. * This is an empty array if no such contract, or contract has no data. @@ -114,11 +119,6 @@ export interface WasmExtension { * Throws error if no such contract exists, the query format is invalid or the response is invalid. */ readonly queryContractSmart: (address: string, query: object) => Promise; - - /** - * Returns null when contract history was not found for this address. - */ - readonly getContractCodeHistory: (address: string) => Promise; }; } diff --git a/packages/cosmwasm/types/lcdapi/wasm.d.ts b/packages/cosmwasm/types/lcdapi/wasm.d.ts index c44ec4aa..e01f0d42 100644 --- a/packages/cosmwasm/types/lcdapi/wasm.d.ts +++ b/packages/cosmwasm/types/lcdapi/wasm.d.ts @@ -55,6 +55,10 @@ export interface WasmExtension { * Returns null when contract was not found at this address. */ readonly getContractInfo: (address: string) => Promise; + /** + * Returns null when contract history was not found for this address. + */ + readonly getContractCodeHistory: (address: string) => Promise; /** * Returns all contract state. * This is an empty array if no such contract, or contract has no data. @@ -70,10 +74,6 @@ export interface WasmExtension { * Throws error if no such contract exists, the query format is invalid or the response is invalid. */ readonly queryContractSmart: (address: string, query: object) => Promise; - /** - * Returns null when contract history was not found for this address. - */ - readonly getContractCodeHistory: (address: string) => Promise; }; } export declare function setupWasmExtension(base: LcdClient): WasmExtension;