Skip to content

Commit

Permalink
Merge branch 'jaden/platf-3764-remove-coinbase-relayer-logic' into st…
Browse files Browse the repository at this point in the history
…aging
  • Loading branch information
JadenDurnford committed Jun 6, 2024
2 parents 951c55a + 289c9b6 commit d7d2611
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 734 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@bull-board/express": "^3.9.0",
"@opensea/stream-js": "^0.0.20",
"@reservoir0x/sdk": "*",
"@reservoir0x/sdk": "^0.0.369",
"@types/date-fns": "^2.6.0",
"@types/express": "^4.17.13",
"@types/ioredis": "^4.28.7",
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 d7d2611

Please sign in to comment.