Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mrben1 committed May 10, 2024
1 parent 989f643 commit 42d7d8e
Show file tree
Hide file tree
Showing 10 changed files with 2,386 additions and 17 deletions.
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\C:\\Users\\benag\\Source\\Repos\\dimension-adapters",
"PreviewInSolutionExplorer": false
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .vs/dimension-adapters/v17/.wsuo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
18 changes: 1 addition & 17 deletions dexs/apestore/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { httpPost } from "../../utils/fetchURL"
import { SimpleAdapter, FetchResultVolume, FetchOptions, FetchResultV2, Adapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";
import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume";
import { FetchOptions, FetchResultV2, Adapter } from "../../adapters/types";

const URL = 'https://ape.store/api/public/base/volume'

Expand All @@ -11,20 +9,6 @@ interface VolumeInfo {
timeStamp: number;
}

const fetch = async (options: FetchOptions): Promise<FetchResultV2> => {
const volumeData: VolumeInfo = await httpPost(URL, { date: options.startOfDay }, {
headers: {
"Authorization": "8690be69-3c53-4bc1-8e99-e4fe0472b757"
},
});

return {
totalVolume: volumeData.totalVolume,
dailyVolume: volumeData.dailyVolume,
timestamp: volumeData.timeStamp,
};
};

const adapter: Adapter = {
version: 2,
adapter: {
Expand Down
2,378 changes: 2,378 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 42d7d8e

Please sign in to comment.