MCPcopy
hub / github.com/filecoin-project/lotus

github.com/filecoin-project/lotus @ntwk-nerpa-11.04.0 sqlite

repository ↗ · DeepWiki ↗ · release ntwk-nerpa-11.04.0 ↗
5,967 symbols 24,387 edges 629 files 943 documented · 16%
README

Project Lotus Logo

Project Lotus - 莲


Lotus is an implementation of the Filecoin Distributed Storage Network. For more details about Filecoin, check out the Filecoin Spec.

Building & Documentation

For instructions on how to build, install and setup lotus, please visit https://docs.filecoin.io/get-started/lotus.

Reporting a Vulnerability

Please send an email to security@filecoin.org. See our security policy for more details.

Development

The main branches under development at the moment are: * master: current testnet. * next: working branch with chain-breaking changes. * ntwk-calibration: devnet running one of next commits.

Tracker

All work is tracked via issues. An attempt at keeping an up-to-date view on remaining work towards Mainnet launch can be seen at the lotus github project board. The issues labeled with incentives are there to identify the issues needed for Space Race launch.

Packages

The lotus Filecoin implementation unfolds into the following packages:

License

Dual-licensed under MIT + Apache 2.0

Extension points exported contracts — how you extend this code

ChainAPI (Interface)
ChainAPI abstracts out calls made by this class to external APIs [9 implementers]
chain/events/state/predicates.go
AdtArrayDiff (Interface)
AdtArrayDiff generalizes adt.Array diffing by accepting a Deferred type that can unmarshalled to its corresponding struc [7 …
chain/actors/adt/diff_adt.go
Chain (Interface)
(no doc) [7 implementers]
extern/storage-sealing/precommit_policy.go
Rand (Interface)
(no doc) [6 implementers]
chain/vm/vm.go
WalletAPI (Interface)
(no doc) [6 implementers]
api/api_wallet.go
ChainIO (Interface)
(no doc) [7 implementers]
api/apibstore/apibstore.go
GasModuleAPI (Interface)
(no doc) [6 implementers]
node/impl/full/gas.go
FaultTracker (Interface)
FaultTracker TODO: Track things more actively [3 implementers]
extern/sector-storage/faults.go

Core symbols most depended-on inside this repo

Errorf
called by 3282
conformance/reporter.go
String
called by 608
chain/types/fil.go
Printf
called by 425
cli/helper.go
Println
called by 357
cli/helper.go
NewInt
called by 317
chain/types/bigint.go
Lock
called by 299
node/repo/interface.go
Unlock
called by 286
paychmgr/channellock.go
Cid
called by 280
chain/types/message.go

Shape

Method 3,489
Function 1,437
Struct 727
Interface 110
TypeAlias 100
FuncType 71
Class 33

Languages

Go98%
TypeScript2%

Modules by API surface

api/apistruct/struct.go299 symbols
api/api_full.go210 symbols
extern/storage-sealing/fsm_events.go99 symbols
cmd/lotus-gateway/api.go79 symbols
node/impl/full/state.go74 symbols
chain/store/store.go70 symbols
api/api_storage.go62 symbols
node/impl/storminer.go56 symbols
chain/stmgr/stmgr.go49 symbols
chain/gen/gen.go48 symbols
chain/messagepool/messagepool.go47 symbols
storage/miner.go46 symbols

Dependencies from manifests, versioned

github.com/Gurpartap/asyncv0.0.0-2018092717364 · 1×
github.com/StackExchange/wmiv0.0.0-2019052321331 · 1×
github.com/acarl005/stripansiv0.0.0-2018011610285 · 1×
github.com/buger/gotermv0.0.0-2020032217592 · 1×
github.com/chzyer/readlinev0.0.0-2018060313265 · 1×
github.com/cockroachdb/pebblev0.0.0-2020100122163 · 1×
github.com/detailyang/go-fallocatev0.0.0-2018090811563 · 1×

For agents

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

⬇ download graph artifact