Skip to content

Commit

Permalink
Merge pull request #135 from reservoirprotocol/jaden/platf-3764-remov…
Browse files Browse the repository at this point in the history
…e-coinbase-relayer-logic

feat: removing coinbase logic
  • Loading branch information
JadenDurnford authored Jun 6, 2024
2 parents a8ff577 + 289c9b6 commit ab405f9
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 729 deletions.
1 change: 0 additions & 1 deletion .env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ OFFERS_OPENSEA_API_KEY=
COLLECTIONS_OFFERS_OPENSEA_API_KEY=
X2Y2_API_KEY=
ELEMENT_API_KEY=
COINBASE_API_KEY=
BLUR_API_KEY=
BLUR_URL=
OPENSEA_API_URL=
Expand Down
1 change: 0 additions & 1 deletion .env.rinkeby
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ OFFERS_OPENSEA_API_KEY=
COLLECTIONS_OFFERS_OPENSEA_API_KEY=
X2Y2_API_KEY=
ELEMENT_API_KEY=
COINBASE_API_KEY=
BLUR_API_KEY=
BLUR_URL=
OPENSEA_API_URL=
Expand Down
17 changes: 0 additions & 17 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
import { addToSyncTokenQueue } from "../jobs/sync-token";
import { addToX2Y2BackfillQueue } from "../jobs/x2y2-sync/queues/backfill-queue";
import { addToElementBackfillQueue } from "../jobs/element-sync/queues/backfill-queue";
import { addToCoinbaseBackfillQueue } from "../jobs/coinbase-sync/backfill-queue";
import { addToOkxBackfillQueue } from "../jobs/okx-sync/queues/backfill-queue-listings";

export const start = async () => {
Expand Down Expand Up @@ -96,22 +95,6 @@ export const start = async () => {
})
);

app.post(
"/backfill/coinbase",
asyncHandler(async (req, res) => {
if (config.chainId === 1) {
res.status(202).json({ message: "Request accepted" });

const side = String(req.body.side) === "sell" ? "sell" : "buy";
const startTime = Number(req.body.fromTimestamp);
const endTime = Number(req.body.toTimestamp);
await addToCoinbaseBackfillQueue(side, startTime, endTime);
} else {
res.status(501).json({ message: "Element not supported" });
}
})
);

app.post(
"/backfill/seaport",
asyncHandler(async (req, res) => {
Expand Down
1 change: 0 additions & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const config = {
looksrareApiKey: String(process.env.LOOKSRARE_API_KEY),
elementApiKey: String(process.env.ELEMENT_API_KEY),
elementChainName: process.env.ELEMENT_CHAIN_NAME,
coinbaseApiKey: String(process.env.COINBASE_API_KEY),
blurApiKey: String(process.env.BLUR_API_KEY),
okxApiKey: String(process.env.OKX_API_KEY),
okxSecretKey: String(process.env.OKX_SECRET_KEY),
Expand Down
113 changes: 0 additions & 113 deletions src/jobs/coinbase-sync/backfill-queue.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/jobs/coinbase-sync/index.ts

This file was deleted.

92 changes: 0 additions & 92 deletions src/jobs/coinbase-sync/realtime-queue-offers.ts

This file was deleted.

93 changes: 0 additions & 93 deletions src/jobs/coinbase-sync/realtime-queue.ts

This file was deleted.

Loading

0 comments on commit ab405f9

Please sign in to comment.