Move getContractCodeHistory after getContractInfo

This commit is contained in:
Simon Warta 2020-07-28 17:55:41 +02:00
parent 116ab6496a
commit 5ad837f992
2 changed files with 9 additions and 9 deletions

View File

@ -97,6 +97,11 @@ export interface WasmExtension {
*/
readonly getContractInfo: (address: string) => Promise<ContractInfo | null>;
/**
* Returns null when contract history was not found for this address.
*/
readonly getContractCodeHistory: (address: string) => Promise<ContractCodeHistoryEntry[] | null>;
/**
* 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<JsonObject>;
/**
* Returns null when contract history was not found for this address.
*/
readonly getContractCodeHistory: (address: string) => Promise<ContractCodeHistoryEntry[] | null>;
};
}

View File

@ -55,6 +55,10 @@ export interface WasmExtension {
* Returns null when contract was not found at this address.
*/
readonly getContractInfo: (address: string) => Promise<ContractInfo | null>;
/**
* Returns null when contract history was not found for this address.
*/
readonly getContractCodeHistory: (address: string) => Promise<ContractCodeHistoryEntry[] | null>;
/**
* 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<JsonObject>;
/**
* Returns null when contract history was not found for this address.
*/
readonly getContractCodeHistory: (address: string) => Promise<ContractCodeHistoryEntry[] | null>;
};
}
export declare function setupWasmExtension(base: LcdClient): WasmExtension;