Improve ContractCodeHistoryEntry.operation

This commit is contained in:
Simon Warta
2020-07-28 18:11:18 +02:00
parent c023179ab4
commit 7f7537bd59
4 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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;
}
+2 -1
View File
@@ -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;
}
+2 -1
View File
@@ -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;
}