Skip to content

Commit f71ca64

Browse files
authored
spelling update (#415)
* spelling update * fix FAQ, updated config/chains to clear SDK on update * updated language * updates
1 parent 8afedd7 commit f71ca64

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

docs/addons/faqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _`tx_overrides` is an optional parameter that can be passed in the body of write
1111

1212
### How to set the RPC URLs?
1313

14-
_Set the `CHAIN_OVERRIDES` environment variable to the path of the JSON file or URL (file hosted somewhere on the internet) containing the RPC URLs. The default value is `./chain-overrides.json`. Check the [example file](../chain-overrides.example.json) for the format._
14+
_Use the end-point, `/configuration/chains` to SET the chain-override details for a particular chain. Chain details update are picked in the subsequent SDK calls. Check the [example file](../chain-overrides.example.json) for the format `chain-override`._
1515

1616
### Cannot connect to the Postgres DB?
1717

src/server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { clearCacheCron } from "../utils/cron/clearCacheCron";
88
import { env } from "../utils/env";
99
import { logger } from "../utils/logger";
1010
import { withServerUsageReporting } from "../utils/usage";
11-
import { updateTxListener } from "./listerners/updateTxListener";
11+
import { updateTxListener } from "./listeners/updateTxListener";
1212
import { withAuth } from "./middleware/auth";
1313
import { withCors } from "./middleware/cors";
1414
import { withErrorHandler } from "./middleware/error";

src/server/listerners/updateTxListener.ts renamed to src/server/listeners/updateTxListener.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { knex } from "../../db/client";
22
import { getTxById } from "../../db/transactions/getTxById";
3-
import { subscriptionsData } from "../../server/schemas/websocket";
3+
import { logger } from "../../utils/logger";
4+
import { subscriptionsData } from "../schemas/websocket";
45
import {
56
formatSocketMessage,
67
getStatusMessageAndConnectionStatus,
7-
} from "../../server/utils/websocket";
8-
import { logger } from "../../utils/logger";
8+
} from "../utils/websocket";
99

1010
export const updateTxListener = async (): Promise<void> => {
1111
logger({

src/server/routes/configuration/chains/update.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { FastifyInstance } from "fastify";
33
import { StatusCodes } from "http-status-codes";
44
import { updateConfiguration } from "../../../../db/configuration/updateConfiguration";
55
import { getConfig } from "../../../../utils/cache/getConfig";
6+
import { sdkCache } from "../../../../utils/cache/getSdk";
67
import { standardResponseSchema } from "../../../schemas/sharedApiSchemas";
78
import { ReplySchema } from "./get";
89

@@ -66,6 +67,7 @@ export async function updateChainsConfiguration(fastify: FastifyInstance) {
6667
});
6768

6869
const config = await getConfig(false);
70+
sdkCache.clear();
6971
res.status(200).send({
7072
result: config.chainOverrides,
7173
});

0 commit comments

Comments
 (0)