Some net commands / apis

This commit is contained in:
Łukasz Magiera
2019-07-08 21:07:16 +02:00
parent 03227e1e27
commit cdca2ff2c7
9 changed files with 273 additions and 27 deletions
+8
View File
@@ -1,6 +1,8 @@
package main
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/api/client"
"log"
"os"
@@ -20,6 +22,12 @@ func main() {
Name: "lotus",
Usage: "Filecoin decentralized storage network client",
Version: build.Version,
Metadata: map[string]interface{}{
"api": lcli.ApiConnector(func() api.API {
// TODO: get this from repo
return client.NewRPC("http://127.0.0.1:1234/rpc/v0")
}),
},
Commands: append(local, lcli.Commands...),
}