Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Remove OpenSea (#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jun 9, 2021
1 parent 6ae5166 commit e06594c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 1,271 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -172,7 +172,6 @@
"@sentry/tracing": "^6.3.5",
"@truffle/contract": "^4.3.18",
"@unstoppabledomains/resolution": "^1.17.0",
"async-sema": "^3.1.0",
"axios": "0.21.1",
"bignumber.js": "9.0.1",
"bnc-onboard": "~1.25.0",
Expand Down
11 changes: 0 additions & 11 deletions src/logic/collectibles/sources/MockedOpenSea.ts

This file was deleted.

97 changes: 0 additions & 97 deletions src/logic/collectibles/sources/OpenSea.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/logic/collectibles/sources/index.ts
@@ -1,15 +1,10 @@
import MockedOpenSea from 'src/logic/collectibles/sources/MockedOpenSea'
import OpenSea from 'src/logic/collectibles/sources/OpenSea'
import Gnosis from 'src/logic/collectibles/sources/Gnosis'
import { COLLECTIBLES_SOURCE } from 'src/utils/constants'

const SOURCES = {
opensea: new OpenSea({ rps: 4 }),
gnosis: new Gnosis(),
mockedopensea: new MockedOpenSea({ rps: 4 }),
}

type Sources = typeof SOURCES

export const getConfiguredSource = (): Sources['opensea'] | Sources['mockedopensea'] | Sources['gnosis'] =>
SOURCES[COLLECTIBLES_SOURCE.toLowerCase()]
export const getConfiguredSource = (): Sources['gnosis'] => SOURCES[COLLECTIBLES_SOURCE.toLowerCase()]

0 comments on commit e06594c

Please sign in to comment.