2020-08-06 19:17:38 +00:00
|
|
|
import { ActionInterface, CheckStepInterface } from "../../script/action/interface";
|
2020-08-17 15:31:08 +00:00
|
|
|
import { update, mergeCmcData } from "./script";
|
2020-08-10 08:56:41 +00:00
|
|
|
import { getSanityChecks } from "./check";
|
2020-08-06 19:17:38 +00:00
|
|
|
|
|
|
|
export class Coinmarketcap implements ActionInterface {
|
|
|
|
getName(): string { return "Coinmarketcap mapping"; }
|
|
|
|
|
2020-08-10 08:56:41 +00:00
|
|
|
getSanityChecks(): CheckStepInterface[] { return getSanityChecks(); }
|
|
|
|
|
|
|
|
getConsistencyChecks = null;
|
2020-08-06 19:17:38 +00:00
|
|
|
|
2020-08-10 08:56:41 +00:00
|
|
|
sanityFix = null;
|
|
|
|
|
2020-08-17 15:31:08 +00:00
|
|
|
async consistencyFix(): Promise<void> {
|
|
|
|
// do merge, for the case exceptions or script has been changed
|
|
|
|
await mergeCmcData();
|
|
|
|
}
|
2020-08-06 19:17:38 +00:00
|
|
|
|
|
|
|
async update(): Promise<void> {
|
2020-08-17 15:31:08 +00:00
|
|
|
await update();
|
2020-08-06 19:17:38 +00:00
|
|
|
}
|
|
|
|
}
|