import { HashRateUnit } from "../../HashRateUnit" ; export class Algorithm { public static LBRY = new Algorithm ( HashRateUnit . MEGA , "lbry" ) ; public static Ethash = new Algorithm ( HashRateUnit . MEGA , "eth" ) ; public static NeoScrypt = new Algorithm ( HashRateUnit . KILO , "ns" ) ; public static Equihash = new Algorithm ( HashRateUnit . HASH , "eq" ) ; public static Lyra2REv2 = new Algorithm ( HashRateUnit . KILO , [ "lre" , "lrev2" ] ) ; public static X11Gost = new Algorithm ( HashRateUnit . GIGA , "x11g" ) ; public static Keccak = new Algorithm ( HashRateUnit . MEGA , null ) ; public static X11 = new Algorithm ( HashRateUnit . MEGA , null ) ; public static X13 = new Algorithm ( HashRateUnit . MEGA , null ) ; public static Scrypt = new Algorithm ( HashRateUnit . MEGA , null ) ; public static "SHA-256" = new Algorithm ( HashRateUnit . GIGA , null ) ; public static Quark = new Algorithm ( HashRateUnit . MEGA , null ) ; public static NIST5 = new Algorithm ( HashRateUnit . MEGA , "ns" ) ; public static Lyra2RE = new Algorithm ( HashRateUnit . KILO , null ) ; public static Qubit = new Algorithm ( HashRateUnit . MEGA , null ) ; public static "Blake (2s)" = new Algorithm ( HashRateUnit . GIGA , null ) ; public static "Blake (14r)" = new Algorithm ( HashRateUnit . GIGA , "bk14" ) ; public static Lyra2z = new Algorithm ( HashRateUnit . MEGA , "l2z" ) ; public static X16R = new Algorithm ( HashRateUnit . MEGA , "x16r" ) ; public static Zhash = new Algorithm ( HashRateUnit . HASH , "zh" ) ; public static GrinCuckaroo29 = new Algorithm ( HashRateUnit . HASH , "cr29" ) ; public static GrinCuckatoo31 = new Algorithm ( HashRateUnit . HASH , null ) ; public static Lyra2REv3 = new Algorithm ( HashRateUnit . MEGA , "lrev3" ) ; public static MTP = new Algorithm ( HashRateUnit . MEGA , "mtp" ) ; public static CryptoNightR = new Algorithm ( HashRateUnit . HASH , null ) ; public static CuckooCycle = new Algorithm ( HashRateUnit . HASH , "cc" ) ; public static Cuckaroo29s = new Algorithm ( HashRateUnit . HASH , "cr29" ) ; public static BeamHashII = new Algorithm ( HashRateUnit . HASH , null ) ; public static X16Rv2 = new Algorithm ( HashRateUnit . MEGA , null ) ; public static Eaglesong = new Algorithm ( HashRateUnit . GIGA , null ) ; public static RandomX = new Algorithm ( HashRateUnit . HASH , null ) ; public static Cuckaroom29 = new Algorithm ( HashRateUnit . HASH , null ) ; public readonly unit : HashRateUnit ; public readonly cacheNames : [ string | null , string | null ] | null ; constructor ( unit , cacheNames ) { this . unit = unit ; if ( typeof cacheNames === "string" ) { this . cacheNames = [ cacheNames , cacheNames ] ; } else { this . cacheNames = cacheNames ; } } }