Skip to content

Commit 8cd233b

Browse files
ribasushirvagg
authored andcommitted
chore: api: the Net API/CLI now remains only on daemon
The only part of this repository that does lp2p is now lotus-daemon Remove the CommonNet type, used exclusively bu the CLI stack Adjust the rest of struct-memebership to match what went where End result best seen in diff of `documentation/en/api-v0-methods-miner.md`
1 parent 610c984 commit 8cd233b

File tree

13 files changed

+468
-1410
lines changed

13 files changed

+468
-1410
lines changed

api/api_net.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ type Net interface {
6666
ID(context.Context) (peer.ID, error) //perm:read
6767
}
6868

69-
type CommonNet interface {
70-
Common
71-
Net
72-
}
73-
7469
type NatInfo struct {
7570
Reachability network.Reachability
7671
PublicAddrs []string

api/api_storage.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import (
3939
// StorageMiner is a low-level interface to the Filecoin network storage miner node
4040
type StorageMiner interface {
4141
Common
42-
Net
4342

4443
ActorAddress(context.Context) (address.Address, error) //perm:read
4544

api/client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
)
1717

1818
// NewCommonRPCV0 creates a new http jsonrpc client.
19-
func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.CommonNet, jsonrpc.ClientCloser, error) {
20-
var res v0api.CommonNetStruct
19+
func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error) {
20+
var res v0api.CommonStruct
2121
closer, err := jsonrpc.NewMergeClient(ctx, addr, "Filecoin",
2222
api.GetInternalStructs(&res), requestHeader, jsonrpc.WithErrors(api.RPCErrors))
2323

api/proxy_gen.go

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v0api/latest.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ import (
66

77
type Common = api.Common
88
type Net = api.Net
9-
type CommonNet = api.CommonNet
109

1110
type CommonStruct = api.CommonStruct
1211
type CommonStub = api.CommonStub
1312
type NetStruct = api.NetStruct
1413
type NetStub = api.NetStub
15-
type CommonNetStruct = api.CommonNetStruct
16-
type CommonNetStub = api.CommonNetStub
1714

1815
type StorageMiner = api.StorageMiner
1916
type StorageMinerStruct = api.StorageMinerStruct

0 commit comments

Comments
 (0)