115 Commits

Author SHA1 Message Date
82781799be chore(docs): minor typos and spelling mistakes 2025-07-15 16:58:48 +10:00
d9a93185e5 feat: expose /v2 APIs through Lotus Gateway (#13075)
Integrate the existing v2 APIs into Lotus Gateway such that they are
accessible via `/rpc/v2` endpoint similar to full node APIs except
through the gateway reverse proxy along with rate limiting and handling
of stateful connections over web socket.

The prior gateway implementation did not have a concept of per-uri
reverse proxy handling. The changes here separate reverse proxy
implementation in gateway from the gateway node to introduce separate
handling of v1 and v2 APIs. The work introduces a top-level
`v2api.Gateway` interface to capture the APIs exposed by the v2 gateway
and generate any relevant documentation based on the interface.

Specifically, the work here separates the handling of stateful
connections between v1 and v2 to avoid any cross-contamination between
Eth calls to either API. However, the total rate limiting has stayed
shared across both URIs.

The underused mock interface in v1 is now removed in favor of the
generated gomock interfaces to reduce the LOC in `gateway` package. The
interface was barely used by the tests and would have resulted in
unnecessary LOC to implement v2.

I have held back on unrelated refactoring of `gateway` package. The code
can use further restructuring, but for now the focus is to expose
existing /v2 APIs over the gateway.

The implementation of `Version` in /v2 APIs is also left as a TODO since
it requires implementation at the top level API and bubbles up into
`Common` APIs.
2025-04-29 10:02:48 +01:00
ed4ea55cc6 feat: generate CLI docs without needing compiled binaries 2025-01-08 09:57:27 +11:00
469960ce0e cleanup: Lotus client: remove markets and deal-making from Lotus Client (#11999)
* remove client CLI

* remove markets CLI from miner

* remove markets from all CLI

* remove client API

* update go mod

* changes as per review
2024-06-05 09:56:25 +04:00
b95e95f4d6 feat: SPTool (#11788)
* sptool: Initial structure

* sptool: Port lotus-miner actor withdraw

* sptool: Make cli docsgen happy

* actors are done

* info

* proving

* sptool the rest

* fixed gitignore

* lints

* oops

* 2

* terminate

* fixes

* sptool: improve sectors list

---------

Co-authored-by: Łukasz Magiera <magik6k@gmail.com>
2024-04-01 10:30:35 -05:00
cdf3812e40 NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998)
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Raul Kripalani <raulk@users.noreply.github.com>
Co-authored-by: Kevin Li <ychiaoli18@users.noreply.github.com>
Co-authored-by: vyzo <vyzo@hackzen.org>
Co-authored-by: Ian Davis <nospam@iandavis.com>
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Geoff Stuart <geoff.vball@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Shrenuj Bansal <108157875+shrenujbansal@users.noreply.github.com>
Co-authored-by: Geoff Stuart <geoffrey.stuart@protocol.ai>
Co-authored-by: Aayush Rajasekaran <aayushrajasekaran@Aayushs-MacBook-Pro.local>
Co-authored-by: ZenGround0 <5515260+ZenGround0@users.noreply.github.com>
Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com>
2023-01-13 19:11:13 +00:00
Phi
ab61f4bb2c lotus info cmd
Adds lotus info command that prints a lot of node information.
2022-08-30 12:54:59 +02:00
2484fbc1f7 remove commented code. 2021-08-12 15:38:19 +01:00
5f6166435c make lotus-miner net commands hit markets subsystem. 2021-08-12 11:15:00 +01:00
22c0884f5f target markets API for markets commands. 2021-07-29 12:37:29 +01:00
ffa47659a1 Merge remote-tracking branch 'origin/feat/nv13' into feat/nv13-1.11 2021-05-31 21:38:34 +02:00
92f544d96c Add verifreg utils to CLI 2021-05-31 15:01:55 -04:00
807c670184 Merge pull request #6135 from filecoin-project/asr/verifreg
Move verifreg shed utils to CLI
2021-05-21 11:21:38 +02:00
86e90dc6f1 Message sending UI
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-05-07 15:30:04 +02:00
ed61642b3a implement NodeStatus API
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-05-07 15:30:04 +02:00
f6360c34dd Add verifreg utils to CLI 2021-05-03 22:16:12 -04:00
d8bff4d19f Make gateway work with v1 api 2021-04-05 13:47:10 +02:00
bcf7aab55d chore: export mpool cli commands 2021-03-23 16:28:27 -07:00
a74e02e362 chore: export fetch cli command 2021-03-23 16:27:34 -07:00
b34db8e432 chore: export pprof cli commands 2021-03-23 16:26:59 -07:00
1d50cdd85a chore: export wait cli command 2021-03-23 16:26:12 -07:00
14a809d291 chore: export auth cli command 2021-03-23 16:25:49 -07:00
89c45fe7ef chore: export sync cli commands 2021-03-23 16:23:22 -07:00
22329b96b4 chore: export state cli commands 2021-03-23 16:21:04 -07:00
8f6ea05d48 chore: export chain commands 2021-03-23 16:19:33 -07:00
1062117562 chore: export log cli commands 2021-03-23 16:19:22 -07:00
6827f2dce3 chore: export Net commands 2021-03-23 16:15:02 -07:00
a4a21b5b89 fix lint 2021-03-05 21:33:36 +01:00
58e49e3259 Move api client builders to a cliutil package 2021-03-05 21:08:41 +01:00
303a0fec87 Revert "Revert "Refactor send command for better testability"" 2021-02-23 15:50:47 +01:00
bebc11522e Revert "Refactor send command for better testability" 2021-02-23 15:25:19 +01:00
9553b32d52 Implement services skeleton
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-02-18 15:21:31 +01:00
044972ebdc make categories uppercase 2021-02-10 14:38:42 +01:00
cf4dfa3a05 worker: Use http rpc for miner API 2020-10-18 13:59:38 +02:00
fdaa9c14ad Merge remote-tracking branch 'origin/master' into feat/signing-backends 2020-10-09 20:36:51 +02:00
e19cd9ed01 feat: lotus-lite - replace wallet StateManager with thin client to gateway 2020-10-09 11:43:03 +02:00
6cc7559b04 Fix APIInfo import cycle in tests 2020-10-09 02:58:12 +02:00
3cd53ad9d9 Use APIInfo parser for RemoteBacked wallet config 2020-10-09 02:21:37 +02:00
cb7d99fcc7 fix: clash between daemon --api flag and cli tests 2020-10-08 14:24:50 +02:00
ed03202c1d Test lotus-miner info all 2020-10-05 14:15:14 +02:00
0e6ff668eb worker: Cli to attach storage paths 2020-08-30 20:33:02 +02:00
cd2e794d3f Merge pull request #3299 from filecoin-project/steb/update-deps
update deps for bug fixes
2020-08-25 17:18:02 -07:00
7fb4851eb9 update deps for bug fixes
* updates bitswap to include _many_ perf enhancements and bug fixes.
* updates go-fs-lock because the version here is pretty old.
* updates go-libp2p
* updates bbloom _just_ in case, because the version we were depending on had bugs (looks like we're not actually using it).
2020-08-25 17:06:07 -07:00
0d61e0d717 refactor(ctx): update to latest go-jsonrpc 2020-08-25 15:20:41 -07:00
043b63d8d8 feat: payment channel CLI tests 2020-08-18 11:26:08 -04:00
f31473c4cf Update jsonrpc to fix sealing sched hangs 2020-08-17 17:36:21 +02:00
7595b1d8d4 cli: pprof goroutines command 2020-08-17 11:49:11 +02:00
10b5e3e576 fix typo 2020-08-16 10:20:32 +08:00
a7acc81490 miner: Command to dump all miner info 2020-08-04 20:57:48 +02:00
ff3236ef36 miner: Group CLI commands 2020-07-21 19:19:47 +02:00