MCPcopy
hub / github.com/hop-protocol/hop

github.com/hop-protocol/hop @v0.0.215 sqlite

repository ↗ · DeepWiki ↗ · release v0.0.215 ↗
8,775 symbols 19,404 edges 1,377 files 96 documented · 1%
README

Hop Monorepo

The Hop Protocol monorepo

Packages

V1

Lib/App Current Version Description
@hop-protocol/frontend npm version React Frontend UI
@hop-protocol/sdk npm version V1 TypeScript Hop SDK
@hop-protocol/hop-node npm version TypeScript Hop Node

V2

Lib/App Current Version Description
@hop-protocol/v2-sdk npm version V2 TypeScript Hop SDK
@hop-protocol/v2-hop-node npm version TypeScript Hop Node

Shared

Lib/App Current Version Description
@hop-protocol/sdk-core npm version Shared Hop SDK code
@hop-protocol/hop-node-core npm version Shared Hop Node code

Quickstart

The Hop monorepo uses PNPM for package and workspace management.

Install dependencies & link packages

pnpm install
pnpm build

Guidelines for using PNPM workspaces

All commands should be run from the root of the monorepo.

# Install a single package
pnpm --filter <package_name> install

# Build a single package
pnpm --filter <package_name> build

# Run a PNPM script in all packages
pnpm <script_name>

If you are developing on a single package only and need to ignore the rest of the packages, you need to install with --include-workspace-root. This is because the installation of a single package does not install the root’s dependencies, which are usually needed for building and linting.

pnpm --filter <package_name> install --include-workspace-root

Contributing

See ./CONTRIBUTING.md

License

MIT

Extension points exported contracts — how you extend this code

IFinalityService (Interface)
(no doc) [8 implementers]
packages/hop-node-core/src/chains/Services/AbstractFinalityService.ts
Service (Interface)
(no doc) [4 implementers]
packages/sdk-core/src/priceFeed/PriceFeed.ts
IRelayerFee (Interface)
(no doc) [3 implementers]
packages/sdk/src/relayerFee/IRelayerFee.ts
IDataStore (Interface)
(no doc) [2 implementers]
packages/hop-node/src/cctp/cctp/transitionData/types.ts
Props (Interface)
(no doc)
packages/frontend/src/components/Table/Table.tsx
FeesSentToHub (Interface)
(no doc)
packages/v2-explorer-backend/src/pgDb/events/FeesSentToHub.ts
TimeToBridgeStats (Interface)
(no doc)
packages/explorer-backend/src/utils/timeToBridgeStats.ts
IMessageService (Interface)
(no doc) [8 implementers]
packages/hop-node-core/src/chains/Services/AbstractMessageService.ts

Core symbols most depended-on inside this repo

from
called by 990
packages/frontend/src/models/Address.ts
push
called by 719
packages/sdk/src/contracts/L2_xDaiToken.ts
log
called by 682
packages/hop-node/src/notifier/slack.ts
toString
called by 584
packages/frontend/src/models/Price.ts
error
called by 330
packages/hop-node/src/notifier/slack.ts
create
called by 153
packages/hop-node-core/src/logger/Logger.ts
formatUnits
called by 141
packages/sdk/src/HopBridge.ts
update
called by 135
packages/hop-node/src/db/GasCostDb.ts

Shape

Method 4,738
Function 2,516
Interface 820
Class 660
Enum 41

Languages

TypeScript100%
Python1%

Modules by API surface

packages/explorer-frontend/public/lib/ethers-5.0.umd.min.js453 symbols
packages/explorer-frontend/public/lib/d3.v3.min.js389 symbols
packages/explorer-frontend/public/lib/vue-2.6.14.min.js247 symbols
packages/sdk/src/HopBridge.ts135 symbols
packages/explorer-frontend/public/lib/luxon-1.27.0.min.js102 symbols
packages/sdk/src/Base.ts85 symbols
packages/sdk/src/contracts/L1_xDaiForeignOmniBridge.ts80 symbols
packages/sdk/src/contracts/Mock_L2_xDaiBridge.ts78 symbols
packages/sdk/src/contracts/L2_xDaiBridge.ts78 symbols
packages/sdk/src/contracts/Mock_L2_OptimismBridge.ts77 symbols
packages/sdk/src/contracts/L2_OptimismBridge.ts77 symbols
packages/sdk/src/contracts/Mock_L2_PolygonBridge.ts76 symbols

Dependencies from manifests, versioned

@arbitrum/sdk2.0.18 · 1×
@aws-sdk/client-cloudwatch-logs3.338.0 · 1×
@aws-sdk/client-kms3.338.0 · 1×
@aws-sdk/client-lambda3.338.0 · 1×
@aws-sdk/client-s33.338.0 · 1×
@aws-sdk/client-ssm3.338.0 · 1×
@aws-sdk/types3.485.0 · 1×
@consensys/linea-sdk0.1.6 · 1×
@emotion/react11.5.0 · 1×
@emotion/styled11.11.0 · 1×
@eslint/js9.1.1 · 1×
@eth-optimism/sdk3.1.4 · 1×

For agents

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

⬇ download graph artifact