impermax-sdk 2.1.395 → 2.1.396
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.
|
@@ -126,8 +126,12 @@ class OffchainEndpointManager {
|
|
|
126
126
|
// No endpoint passed, ignore
|
|
127
127
|
if (!this.endpoint)
|
|
128
128
|
return endpoints;
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
if (this.endpoint === "thegraph") {
|
|
130
|
+
return endpoints.filter((endpoint) => endpoint.includes("thegraph") || endpoint.includes("goldsky"));
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return endpoints.filter((endpoint) => endpoint.includes("railway"));
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
136
|
getPreferredEndpoint(searchParams) {
|
|
133
137
|
const urlParams = new URLSearchParams(searchParams);
|