MCPcopy Index your code
hub / github.com/DeFiCh/defiscan.live

github.com/DeFiCh/defiscan.live @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
770 symbols 2,065 edges 300 files 4 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CI scan codecov Maintainability

DeFi Scan

https://defiscan.live

DeFi Scan, everything one-stop location for DeFi Blockchain. Powered by DeFi Jellyfish & ocean network.

Developing & Contributing

Thanks for contributing, appreciate all the help we can get. Feel free to make a pull-request, we will guide you along the way to make it mergeable. Here are some of our documented contributing guidelines.

We use npm 7 for this project, it's required to set up npm workspaces.

npm install --include=dev

Getting started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

About Next.js

To learn more about Next.js, take a look at the following resources:

Project Structure

scan/
├─ .github/
├─ content/
├─ public/
├─ src/
│  ├─ components/
│  ├─ layouts/
│  ├─ pages/
│  │  ├─ slugs/*.tsx
│  │  └─ index.tsx
│  ├─ store/
│  └─ styles/

DeFi Scan project is structured with 2 core directories. Each pull request will likely carry significant changes into those directories.

Directory Description
/.github workflow for shift left automation
/content static code based content management system with type safety
/public static resources
/src/components top level components for a shared design language
/src/layouts top level layouts for shared page layout & components
/src/pages each page is associated with a route based on its file name
/src/store global state that is used in at least more than once
/app/styles tailwind css style configuration

Security issues

If you discover a security vulnerability in DeFi Scan, please see submit it privately.

License & Disclaimer

By using DeFi Scan (this repo), you (the user) agree to be bound by the terms of this license.

Extension points exported contracts — how you extend this code

SupplyStatsStateI (Interface)
(no doc)
src/components/index/SupplyStats.tsx
DropDownLinkProps (Interface)
(no doc)
src/layouts/components/Header.tsx
ScanAppProps (Interface)
(no doc)
src/pages/_app.page.tsx
StatsState (Interface)
(no doc)
src/store/stats.tsx
BackedAddress (Interface)
(no doc)
src/constants/TokenBackedAddress.ts
AuctionTimeLeft (Interface)
(no doc)
src/hooks/useAuctionTimeLeft.tsx
PriceCopy (Interface)
(no doc)
content/prices/index.ts
CopyButtonProps (Interface)
(no doc)
src/components/commons/CopyButton.tsx

Core symbols most depended-on inside this repo

useNetwork
called by 51
src/layouts/contexts/NetworkContext.tsx
getAssetIcon
called by 32
src/components/icons/assets/tokens/index.ts
useWhaleApiClient
called by 22
src/layouts/contexts/WhaleContext.tsx
getWhaleApiClient
called by 20
src/layouts/contexts/WhaleContext.tsx
getEnvironment
called by 10
src/layouts/contexts/Environment.ts
isValidOCGGithubUrl
called by 9
src/utils/commons/LinkValidator.ts
isValidOCGRedditUrl
called by 9
src/utils/commons/LinkValidator.ts
isAlphanumeric
called by 8
src/utils/commons/StringValidator.ts

Shape

Function 588
Interface 167
Enum 10
Method 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/layouts/components/Header.tsx12 symbols
src/pages/oracles/_components/OracleGraph.tsx11 symbols
src/layouts/contexts/WhaleContext.tsx10 symbols
src/pages/transactions/[txid].page.tsx9 symbols
src/pages/governance/create/index.page.tsx9 symbols
src/pages/address/_components/AddressVinVout.tsx9 symbols
src/layouts/components/Footer.tsx9 symbols
src/pages/tokens/[id].page.tsx8 symbols
src/pages/governance/index.page.tsx8 symbols
src/pages/governance/_components/ConfirmVoteDialog.tsx8 symbols
src/components/commons/CursorPagination.tsx8 symbols
src/components/commons/CardList.tsx8 symbols

For agents

$ claude mcp add defiscan.live \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact