mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Move getContractCodeHistory after getContractInfo
This commit is contained in:
parent
116ab6496a
commit
5ad837f992
@ -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>;
|
||||
};
|
||||
}
|
||||
|
||||
|
8
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
8
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user