Skip to content

Commit

Permalink
wip: L2>L1 bridge withdrawal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Jul 22, 2024
1 parent 6db7193 commit a9e5733
Show file tree
Hide file tree
Showing 11 changed files with 1,039 additions and 35 deletions.
19 changes: 18 additions & 1 deletion contracts/src/bridge/frontend/api/general.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ResponseDataInterface } from "@/src/types";
import { ObscuroConfig, ResponseDataInterface } from "@/src/types";
import { httpRequest } from "@/api";
import { pathToUrl } from "@/src/routes/router";
import { apiRoutes } from "@/src/routes";
Expand All @@ -11,3 +11,20 @@ export const fetchTestnetStatus = async (): Promise<
url: pathToUrl(apiRoutes.getHealthStatus),
});
};

export const fetchObscuroConfig = async (): Promise<
ResponseDataInterface<ObscuroConfig>
> => {
const res = await httpRequest<ResponseDataInterface<ObscuroConfig>>({
method: "post",
url: apiRoutes.getObscuroConfig,
data: {
jsonrpc: "2.0",
method: "obscuro_config",
params: [],
id: 1,
},
});
console.log("🚀 ~ res:", res);
return res;
};

Large diffs are not rendered by default.

Loading

0 comments on commit a9e5733

Please sign in to comment.