@defillama/sdk 5.0.126 → 5.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/util/blockscout.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getBlockscoutBlock = exports.blockscoutEndpoints = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
exports.blockscoutEndpoints = {
|
|
9
|
-
celo: 'https://
|
|
9
|
+
// celo: 'https://celo.blockscout.com',
|
|
10
10
|
onus: 'https://explorer.onuschain.io',
|
|
11
11
|
base: 'https://base.blockscout.com',
|
|
12
12
|
// scroll: 'https://blockscout.scroll.io',
|
|
@@ -40,7 +40,9 @@ async function main() {
|
|
|
40
40
|
if (!i.rpc.length)
|
|
41
41
|
return;
|
|
42
42
|
if (providerIDMap[i.chainId]) {
|
|
43
|
-
|
|
43
|
+
const isBEVM = i.chainId + '' === '11501'; // bevm chain id clashes with
|
|
44
|
+
if (!isBEVM)
|
|
45
|
+
providerIDMap[i.chainId].push(...i.rpc);
|
|
44
46
|
}
|
|
45
47
|
else if (providerList[i.shortName.toLowerCase()]) {
|
|
46
48
|
(0, debugLog_1.debugLog)(`Duplicate short name ${i.chainId} for ${i.shortName}, doing nothing`);
|
|
@@ -98,7 +100,7 @@ function filterRPCs(rpc) {
|
|
|
98
100
|
if (i.includes('$'))
|
|
99
101
|
return false; // remove anything where api key is injected
|
|
100
102
|
// reject websocket, http, testnet, devnet, and anything with '='
|
|
101
|
-
if (/(wss\:|ws\:|http\:|test|devnet|terminet\.io|huobichain\.com|getblock\.io|bitstack\.com|nodereal.io\/v1|pokt\.network|\=)/.test(i))
|
|
103
|
+
if (/(wss\:|ws\:|http\:|test|devnet|terminet\.io|huobichain\.com|getblock\.io|bitstack\.com|nodereal.io\/v1|pokt\.network|ankr\.com|\=)/.test(i))
|
|
102
104
|
return false; // remove anything with blacklisted words
|
|
103
105
|
return true;
|
|
104
106
|
}).map((i) => {
|