2019-03-25 04:03:24 +01:00
|
|
|
/**
|
|
|
|
* Map of all Hash Upgrades
|
|
|
|
* Key = Hash name, Value = HashUpgrade object
|
|
|
|
*/
|
2021-09-05 01:09:30 +02:00
|
|
|
import { HashUpgrade, IConstructorParams } from "./HashUpgrade";
|
2019-03-25 04:03:24 +01:00
|
|
|
import { HashUpgradesMetadata } from "./data/HashUpgradesMetadata";
|
|
|
|
|
2022-10-03 18:12:16 +02:00
|
|
|
export const HashUpgrades: Record<string, HashUpgrade> = {};
|
2019-03-25 04:03:24 +01:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
function createHashUpgrade(p: IConstructorParams): void {
|
2021-09-05 01:09:30 +02:00
|
|
|
HashUpgrades[p.name] = new HashUpgrade(p);
|
2019-03-25 04:03:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
for (const metadata of HashUpgradesMetadata) {
|
2021-09-05 01:09:30 +02:00
|
|
|
createHashUpgrade(metadata);
|
2019-03-25 04:03:24 +01:00
|
|
|
}
|