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

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;
}

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;
}

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;
}

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;
}