Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 4x 4x 4x 4x 12x 12x 12x | const DEV_GWS = [
"https://oracle-gateway-1.b.redstone.finance",
"https://oracle-gateway-1.b.redstone.vip",
];
const PROD_GWS = [
"https://oracle-gateway-1.a.redstone.finance",
"https://oracle-gateway-2.a.redstone.finance",
"https://oracle-gateway-1.a.redstone.vip",
];
export const REDSTONE_DATA_SERVICES_URLS: Partial<Record<string, string[]>> = {
"redstone-primary-prod": PROD_GWS,
"redstone-avalanche-prod": PROD_GWS,
"redstone-arbitrum-prod": PROD_GWS,
"redstone-primary-demo": DEV_GWS,
"redstone-main-demo": DEV_GWS,
"redstone-rapid-demo": DEV_GWS,
"redstone-fast-demo": DEV_GWS,
"redstone-stocks-demo": DEV_GWS,
"redstone-avalanche-demo": DEV_GWS,
"redstone-arbitrum-demo": DEV_GWS,
"mock-data-service": ["http://localhost:3000"],
"mock-data-service-tests": ["http://valid-cache.com"],
};
export const resolveDataServiceUrls = (dataServiceId: string): string[] => {
const urls = REDSTONE_DATA_SERVICES_URLS[dataServiceId];
Iif (!urls) {
throw Error(
`Data service ${dataServiceId} is not configured by RedStone protocol`
);
}
return urls;
};
|