Improve ContractCodeHistoryEntry.operation
This commit is contained in:
parent
c023179ab4
commit
7f7537bd59
@ -118,7 +118,8 @@ export interface Contract {
|
||||
}
|
||||
|
||||
export interface ContractCodeHistoryEntry {
|
||||
readonly operation: string;
|
||||
/** The source of this history entry */
|
||||
readonly operation: "Genesis" | "Init" | "Migrate";
|
||||
readonly codeId: number;
|
||||
readonly msg: object;
|
||||
}
|
||||
|
||||
@ -54,8 +54,8 @@ export interface ContractInfo {
|
||||
|
||||
// An entry in the contracts code/ migration history
|
||||
export interface ContractCodeHistoryEntry {
|
||||
// operation can be "Init", "Migrate", "Genesis"
|
||||
readonly operation: string;
|
||||
/** The source of this history entry */
|
||||
readonly operation: "Genesis" | "Init" | "Migrate";
|
||||
readonly code_id: number;
|
||||
readonly msg: object;
|
||||
}
|
||||
|
||||
3
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
3
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
@ -85,7 +85,8 @@ export interface Contract {
|
||||
readonly label: string;
|
||||
}
|
||||
export interface ContractCodeHistoryEntry {
|
||||
readonly operation: string;
|
||||
/** The source of this history entry */
|
||||
readonly operation: "Genesis" | "Init" | "Migrate";
|
||||
readonly codeId: number;
|
||||
readonly msg: object;
|
||||
}
|
||||
|
||||
3
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
3
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
@ -34,7 +34,8 @@ export interface ContractInfo {
|
||||
readonly label: string;
|
||||
}
|
||||
export interface ContractCodeHistoryEntry {
|
||||
readonly operation: string;
|
||||
/** The source of this history entry */
|
||||
readonly operation: "Genesis" | "Init" | "Migrate";
|
||||
readonly code_id: number;
|
||||
readonly msg: object;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user