@@ -1045,6 +1045,346 @@ export function createPredictContract(address: Address): PredictContract {
10451045 predictContract . paused = false
10461046 }
10471047
1048+ // New testnet tokens - BTC USDT 5m
1049+ if (
1050+ address . toHexString ( ) . toLowerCase ( ) ==
1051+ '0x428FFA28F6dcc6576B437167632a7dcFbdA9B943' . toLowerCase ( )
1052+ ) {
1053+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1054+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1055+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1056+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1057+ predictContract . txId =
1058+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1059+ predictContract . timestamp = 0
1060+ predictContract . block = 14000000
1061+ predictContract . eventIndex = 0
1062+ predictContract . paused = false
1063+ }
1064+
1065+ // BTC USDT 1h
1066+ if (
1067+ address . toHexString ( ) . toLowerCase ( ) ==
1068+ '0x4467c08b03991E60dB01Df842582Eda5963e7d22' . toLowerCase ( )
1069+ ) {
1070+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1071+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1072+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1073+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1074+ predictContract . txId =
1075+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1076+ predictContract . timestamp = 0
1077+ predictContract . block = 14000000
1078+ predictContract . eventIndex = 0
1079+ predictContract . paused = false
1080+ }
1081+
1082+ // ETH USDT 5m
1083+ if (
1084+ address . toHexString ( ) . toLowerCase ( ) ==
1085+ '0x5B8156e585E1472cCe0F4dbD544Aa00e010fae63' . toLowerCase ( )
1086+ ) {
1087+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1088+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1089+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1090+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1091+ predictContract . txId =
1092+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1093+ predictContract . timestamp = 0
1094+ predictContract . block = 14000000
1095+ predictContract . eventIndex = 0
1096+ predictContract . paused = false
1097+ }
1098+
1099+ // ETH USDT 1h
1100+ if (
1101+ address . toHexString ( ) . toLowerCase ( ) ==
1102+ '0x7b9F2155baf99C438a80cA335A6B3cA021D32a90' . toLowerCase ( )
1103+ ) {
1104+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1105+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1106+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1107+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1108+ predictContract . txId =
1109+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1110+ predictContract . timestamp = 0
1111+ predictContract . block = 14000000
1112+ predictContract . eventIndex = 0
1113+ predictContract . paused = false
1114+ }
1115+
1116+ // BNB USDT 5m
1117+ if (
1118+ address . toHexString ( ) . toLowerCase ( ) ==
1119+ '0x47502437ebDDD90C0c2013a6c06b3020839453c7' . toLowerCase ( )
1120+ ) {
1121+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1122+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1123+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1124+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1125+ predictContract . txId =
1126+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1127+ predictContract . timestamp = 0
1128+ predictContract . block = 14000000
1129+ predictContract . eventIndex = 0
1130+ predictContract . paused = false
1131+ }
1132+
1133+ // BNB USDT 1h
1134+ if (
1135+ address . toHexString ( ) . toLowerCase ( ) ==
1136+ '0x77Ed6Ac88E283a5021422ab27565B465B0032dfA' . toLowerCase ( )
1137+ ) {
1138+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1139+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1140+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1141+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1142+ predictContract . txId =
1143+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1144+ predictContract . timestamp = 0
1145+ predictContract . block = 14000000
1146+ predictContract . eventIndex = 0
1147+ predictContract . paused = false
1148+ }
1149+
1150+ // XRP USDT 5m
1151+ if (
1152+ address . toHexString ( ) . toLowerCase ( ) ==
1153+ '0xAd8AFe251897F2CFc621EfF586C4E3b53Ce86dD9' . toLowerCase ( )
1154+ ) {
1155+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1156+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1157+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1158+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1159+ predictContract . txId =
1160+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1161+ predictContract . timestamp = 0
1162+ predictContract . block = 14000000
1163+ predictContract . eventIndex = 0
1164+ predictContract . paused = false
1165+ }
1166+
1167+ // XRP USDT 1h
1168+ if (
1169+ address . toHexString ( ) . toLowerCase ( ) ==
1170+ '0x50250E9C8B08b082ab219dc56DD7c47E5BbDD1D9' . toLowerCase ( )
1171+ ) {
1172+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1173+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1174+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1175+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1176+ predictContract . txId =
1177+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1178+ predictContract . timestamp = 0
1179+ predictContract . block = 14000000
1180+ predictContract . eventIndex = 0
1181+ predictContract . paused = false
1182+ }
1183+
1184+ // ADA USDT 5m
1185+ if (
1186+ address . toHexString ( ) . toLowerCase ( ) ==
1187+ '0x01e617b6af30877809B67BEa0F37d958400Aa53d' . toLowerCase ( )
1188+ ) {
1189+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1190+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1191+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1192+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1193+ predictContract . txId =
1194+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1195+ predictContract . timestamp = 0
1196+ predictContract . block = 14000000
1197+ predictContract . eventIndex = 0
1198+ predictContract . paused = false
1199+ }
1200+
1201+ // ADA USDT 1h
1202+ if (
1203+ address . toHexString ( ) . toLowerCase ( ) ==
1204+ '0x7F39b35D21b66cDD4c57700845A1D6ed61D823d5' . toLowerCase ( )
1205+ ) {
1206+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1207+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1208+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1209+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1210+ predictContract . txId =
1211+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1212+ predictContract . timestamp = 0
1213+ predictContract . block = 14000000
1214+ predictContract . eventIndex = 0
1215+ predictContract . paused = false
1216+ }
1217+
1218+ // DOGE USDT 5m
1219+ if (
1220+ address . toHexString ( ) . toLowerCase ( ) ==
1221+ '0xA2B7bC235c24aE615085a00744e510Ce9141b2e1' . toLowerCase ( )
1222+ ) {
1223+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1224+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1225+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1226+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1227+ predictContract . txId =
1228+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1229+ predictContract . timestamp = 0
1230+ predictContract . block = 14000000
1231+ predictContract . eventIndex = 0
1232+ predictContract . paused = false
1233+ }
1234+
1235+ // DOGE USDT 1h
1236+ if (
1237+ address . toHexString ( ) . toLowerCase ( ) ==
1238+ '0x63B3AB343aa1e3046AA5d4C38A0B4e5C02dBc433' . toLowerCase ( )
1239+ ) {
1240+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1241+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1242+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1243+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1244+ predictContract . txId =
1245+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1246+ predictContract . timestamp = 0
1247+ predictContract . block = 14000000
1248+ predictContract . eventIndex = 0
1249+ predictContract . paused = false
1250+ }
1251+
1252+ // SOL USDT 5m
1253+ if (
1254+ address . toHexString ( ) . toLowerCase ( ) ==
1255+ '0x6844566441f37D6E7721411C709F28120F4E31eB' . toLowerCase ( )
1256+ ) {
1257+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1258+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1259+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1260+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1261+ predictContract . txId =
1262+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1263+ predictContract . timestamp = 0
1264+ predictContract . block = 14000000
1265+ predictContract . eventIndex = 0
1266+ predictContract . paused = false
1267+ }
1268+
1269+ // SOL USDT 1h
1270+ if (
1271+ address . toHexString ( ) . toLowerCase ( ) ==
1272+ '0x59010deB94801a9CF8490CB443cb4C5B2B5DB653' . toLowerCase ( )
1273+ ) {
1274+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1275+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1276+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1277+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1278+ predictContract . txId =
1279+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1280+ predictContract . timestamp = 0
1281+ predictContract . block = 14000000
1282+ predictContract . eventIndex = 0
1283+ predictContract . paused = false
1284+ }
1285+
1286+ // LTC USDT 5m
1287+ if (
1288+ address . toHexString ( ) . toLowerCase ( ) ==
1289+ '0x1A6f1222AB4346804d317FB5C3A105e292e9D43F' . toLowerCase ( )
1290+ ) {
1291+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1292+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1293+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1294+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1295+ predictContract . txId =
1296+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1297+ predictContract . timestamp = 0
1298+ predictContract . block = 14000000
1299+ predictContract . eventIndex = 0
1300+ predictContract . paused = false
1301+ }
1302+
1303+ // LTC USDT 1h
1304+ if (
1305+ address . toHexString ( ) . toLowerCase ( ) ==
1306+ '0xd7Abe7bA98DcD9068df1Cc64ECc4d7848045E0fb' . toLowerCase ( )
1307+ ) {
1308+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1309+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1310+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1311+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1312+ predictContract . txId =
1313+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1314+ predictContract . timestamp = 0
1315+ predictContract . block = 14000000
1316+ predictContract . eventIndex = 0
1317+ predictContract . paused = false
1318+ }
1319+
1320+ // TRX USDT 5m
1321+ if (
1322+ address . toHexString ( ) . toLowerCase ( ) ==
1323+ '0x2375FfBF9102da186f154E97A2Fa2f2ce3E31147' . toLowerCase ( )
1324+ ) {
1325+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1326+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1327+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1328+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1329+ predictContract . txId =
1330+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1331+ predictContract . timestamp = 0
1332+ predictContract . block = 14000000
1333+ predictContract . eventIndex = 0
1334+ predictContract . paused = false
1335+ }
1336+
1337+ // TRX USDT 1h
1338+ if (
1339+ address . toHexString ( ) . toLowerCase ( ) ==
1340+ '0x2d9fBD67ECc2859CC37E205303BAE0f35EeD2AC8' . toLowerCase ( )
1341+ ) {
1342+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1343+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1344+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1345+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1346+ predictContract . txId =
1347+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1348+ predictContract . timestamp = 0
1349+ predictContract . block = 14000000
1350+ predictContract . eventIndex = 0
1351+ predictContract . paused = false
1352+ }
1353+
1354+ // DOT USDT 5m
1355+ if (
1356+ address . toHexString ( ) . toLowerCase ( ) ==
1357+ '0xe47177E8698daD40027118F937bD15B3Fab9Ba23' . toLowerCase ( )
1358+ ) {
1359+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 300 )
1360+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1361+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1362+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1363+ predictContract . txId =
1364+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1365+ predictContract . timestamp = 0
1366+ predictContract . block = 14000000
1367+ predictContract . eventIndex = 0
1368+ predictContract . paused = false
1369+ }
1370+
1371+ // DOT USDT 1h
1372+ if (
1373+ address . toHexString ( ) . toLowerCase ( ) ==
1374+ '0xdE8FaBb6Ff1D20583d8Ff327A35d0f6f22A8B8F0' . toLowerCase ( )
1375+ ) {
1376+ predictContract . secondsPerEpoch = BigInt . fromI32 ( 3600 )
1377+ predictContract . secondsPerSubscription = BigInt . fromI32 ( 86400 )
1378+ predictContract . truevalSubmitTimeout = BigInt . fromI32 ( 259200 )
1379+ predictContract . stakeToken = '0x9159984c4B7E1B5c1e120ED63132846599696327'
1380+ predictContract . txId =
1381+ '0x0000000000000000000000000000000000000000000000000000000000000000'
1382+ predictContract . timestamp = 0
1383+ predictContract . block = 14000000
1384+ predictContract . eventIndex = 0
1385+ predictContract . paused = false
1386+ }
1387+
10481388 predictContract . save ( )
10491389 return predictContract
10501390}
0 commit comments