Skip to content

Commit 95299fe

Browse files
committed
chore: substitute subgraph endpoint for decentralized network one
1 parent 1fb49b8 commit 95299fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

kleros-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _Archon's successor_
44

55
To run the data mappings tests:
66

7-
1. Go into the `dataMappings.test.ts` file and pass the "alchemyApiKey" variable as second parameter when calling both the callAction() and eventAction() functions, at lines 89 and 119 of the file, respectively.
7+
1. Go into the `dataMappings.test.ts` file and substitute the "insertGraphApiKeyHere" placeholder for your TheGraph graph api key, line 36. Then do the same for the "insertAlchemyApiKeyHere" variable to pass it as second parameter when calling both the callAction() and eventAction() functions, at lines 90 and 120 of the file, respectively.
88

99
2. At the root folder level, do:
1010

kleros-sdk/test/dataMappings.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ describe("jsonAction", () => {
3333

3434
describe("subgraphAction with variables", () => {
3535
it("should fetch GraphQL data with variables and return in expected format", async () => {
36-
const endpoint = "https://api.studio.thegraph.com/query/61738/escrow-v2-devnet/version/latest";
36+
const endpoint =
37+
"https://gateway-arbitrum.network.thegraph.com/api/insertGraphApiKeyHere/subgraphs/id/3aZxYcZpZL5BuVhuUupqVrCV8VeNyZEvjmPXibyPHDFQ";
3738
const query = `
3839
query GetEscrows($buyer: Bytes!) {
3940
escrows(where: {buyer: $buyer}) {

0 commit comments

Comments
 (0)