From 533ee321fc8f3e7fc3217816da61767af6fa01fa Mon Sep 17 00:00:00 2001 From: shinitakunai <87251045+shinitakunai@users.noreply.github.com> Date: Tue, 1 Mar 2022 21:47:52 -0800 Subject: [PATCH] spookyswap typescript --- dexVolumes/index.ts | 5 +++++ dexVolumes/spookyswap/{index.js => index.ts} | 6 +++++- dexVolumes/terraswap/index.ts | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) rename dexVolumes/spookyswap/{index.js => index.ts} (77%) diff --git a/dexVolumes/index.ts b/dexVolumes/index.ts index a7f7e699a..a99e89a7c 100644 --- a/dexVolumes/index.ts +++ b/dexVolumes/index.ts @@ -19,5 +19,10 @@ import uniswap from "./uniswap"; import yieldfields from "./yieldfields"; export default { + spookyswap, + sushiswap, + terraswap, + traderjoe, + uniswap, yieldfields, }; diff --git a/dexVolumes/spookyswap/index.js b/dexVolumes/spookyswap/index.ts similarity index 77% rename from dexVolumes/spookyswap/index.js rename to dexVolumes/spookyswap/index.ts index f80bb4555..7df964b7a 100644 --- a/dexVolumes/spookyswap/index.js +++ b/dexVolumes/spookyswap/index.ts @@ -1,3 +1,5 @@ +import { DexVolumeAdapter } from "../dexVolume.type"; + const { getChainVolume } = require("../helper/getUniSubgraphVolume"); const { FANTOM } = require("../helper/chains"); const endpoints = { @@ -10,7 +12,7 @@ const graphs = getChainVolume({ }, }); -module.exports = { +const adapter: DexVolumeAdapter = { volume: { [FANTOM]: { fetch: graphs(FANTOM), @@ -18,3 +20,5 @@ module.exports = { }, }, }; + +export default adapter; diff --git a/dexVolumes/terraswap/index.ts b/dexVolumes/terraswap/index.ts index 7eb19870a..0ea5c215f 100644 --- a/dexVolumes/terraswap/index.ts +++ b/dexVolumes/terraswap/index.ts @@ -71,3 +71,5 @@ const adapter: DexVolumeAdapter = { // TODO custom backfill }, }; + +export default adapter;