mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-04-30 16:38:03 +00:00
Update cron checks (#256)
This commit is contained in:
+2
-1
@@ -87,7 +87,7 @@
|
||||
"15qfYtQaRHHqxxAhRX5qKh6HXeWaSaF7rLfzjLtgW27USYH1"
|
||||
],
|
||||
"polkadot-gift.org": [
|
||||
"115qfYtQaRHHqxxAhRX5qKh6HXeWaSaF7rLfzjLtgW27USYH1"
|
||||
"15qfYtQaRHHqxxAhRX5qKh6HXeWaSaF7rLfzjLtgW27USYH1"
|
||||
],
|
||||
"polkadot-online.live": [
|
||||
"16h6cD9DvRkz7Z8Xd43BTmubqaSQcZ3EUMD3tiHNwJ6kuhQa"
|
||||
@@ -100,6 +100,7 @@
|
||||
"12nGrKnQprcq19X8zdVevfXZPNgD4AoDnsAwxs6FoEeThudY",
|
||||
"15izdazFKpSYg8ihRoS8opxWn5UA19UAQYdwRCodJ4Q9JNEd",
|
||||
"15Mudzn4no9pY24o3mhbT4Gw3v5WYxMbzXre4MhVRPMFhcLX",
|
||||
"15Y9gquGY3dWENabfYRcWo4Bt45dPvUDhJy97dM1iR6DqrDp",
|
||||
"1buui9R8oXZq3Y4Py39SJUySp5RtEgDgqYYPF3Kuui6JQDv"
|
||||
],
|
||||
"polkadot.activebonus.live": [
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.13.15",
|
||||
"@polkadot/dev": "^0.62.7",
|
||||
"@polkadot/dev": "^0.62.8",
|
||||
"@types/jest": "^26.0.22"
|
||||
},
|
||||
"version": "0.6.86",
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
import fs from 'fs';
|
||||
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { fetchWithTimeout } from './fetch';
|
||||
import { retrieveAddrList } from '.';
|
||||
|
||||
@@ -88,7 +90,8 @@ function checkAll (): Promise<[string, string[]][]> {
|
||||
].map((u) => checkGetWallet(u)),
|
||||
...[
|
||||
'https://polkadotlive.network/block-assets/index.html',
|
||||
'https://polkadots.network/block.html'
|
||||
'https://polkadots.network/block.html',
|
||||
'https://polkadot-gift.org/block.html'
|
||||
].map((u) => checkTag(u, 'p', 'id="trnsctin"')),
|
||||
checkTag('https://polkadot.activebonus.live/claim/', 'span', 'id="trnsctin"'),
|
||||
...[
|
||||
@@ -142,10 +145,21 @@ describe('addrcheck', (): void => {
|
||||
});
|
||||
|
||||
it('has all known addresses', async (): Promise<void> => {
|
||||
const [ours, results] = await Promise.all([
|
||||
const [ours, _results] = await Promise.all([
|
||||
retrieveAddrList(),
|
||||
checkAll()
|
||||
]);
|
||||
const results = _results.map(([url, addrs]): [string, string[]] => {
|
||||
return [url, addrs.filter((a) => {
|
||||
try {
|
||||
return !!decodeAddress(a);
|
||||
} catch (error) {
|
||||
console.error(url, (error as Error).message);
|
||||
|
||||
return false;
|
||||
}
|
||||
})];
|
||||
});
|
||||
const all = Object.values(ours).reduce((all: string[], addrs: string[]): string[] => {
|
||||
all.push(...addrs);
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
"date": "2021-04-13",
|
||||
"url": "polkado.com"
|
||||
},
|
||||
{
|
||||
"date": "2021-04-13",
|
||||
"url": "polkadot-gift.org"
|
||||
},
|
||||
{
|
||||
"date": "2021-04-13",
|
||||
"url": "polkadotbank.com"
|
||||
|
||||
Reference in New Issue
Block a user