From 8101489ce7cdbd4982c7759dcdd4ac81487928a0 Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Tue, 23 Jul 2019 16:31:31 +0200 Subject: [PATCH 01/11] rpc: documentation basics --- packages/go-kosu/rpc/doc.go | 5 ++ packages/go-kosu/rpc/doctool/main.go | 34 +++++++++++--- packages/go-kosu/rpc/doctool/template.md | 12 +++++ packages/go-kosu/rpc/rpc_test.go | 41 ++++++++++++++-- packages/go-kosu/rpc/service.go | 60 +++++++++++++++++++++--- 5 files changed, 137 insertions(+), 15 deletions(-) create mode 100644 packages/go-kosu/rpc/doc.go create mode 100644 packages/go-kosu/rpc/doctool/template.md diff --git a/packages/go-kosu/rpc/doc.go b/packages/go-kosu/rpc/doc.go new file mode 100644 index 00000000..592fe8fe --- /dev/null +++ b/packages/go-kosu/rpc/doc.go @@ -0,0 +1,5 @@ +// nolint + +/* + */ +package rpc diff --git a/packages/go-kosu/rpc/doctool/main.go b/packages/go-kosu/rpc/doctool/main.go index b1a68e7c..1aa3ae8f 100644 --- a/packages/go-kosu/rpc/doctool/main.go +++ b/packages/go-kosu/rpc/doctool/main.go @@ -1,13 +1,13 @@ package main import ( - "encoding/json" "fmt" "go/doc" "go/parser" "go/token" "log" "os" + "text/template" ) // nolint @@ -16,6 +16,18 @@ type DocEntry struct { Text string `json:"text"` } +type TypeDocs struct { + Title string + Description string + Entries []DocEntry +} + +type PkgDocs struct { + Title string + Description string + Types []TypeDocs +} + func main() { if len(os.Args) < 2 { fmt.Println("Usage: doctool ") @@ -28,18 +40,28 @@ func main() { log.Fatal(err) } - docs := []DocEntry{} pkg := doc.New(pkgs["rpc"], os.Args[1], doc.AllDecls) + pkgDocs := PkgDocs{ + Title: pkg.Name, + Description: pkg.Doc, + } for _, t := range pkg.Types { + if t.Name != "Service" { + continue + } + typeDocs := TypeDocs{Title: t.Name, Description: t.Doc} for _, m := range t.Methods { - docs = append(docs, DocEntry{Method: m.Name, Text: m.Doc}) + typeDocs.Entries = append(typeDocs.Entries, DocEntry{Method: m.Name, Text: m.Doc}) } + pkgDocs.Types = append(pkgDocs.Types, typeDocs) } - text, err := json.MarshalIndent(docs, "", " ") + t, err := template.New("template.md").ParseFiles("./template.md") if err != nil { - log.Fatal(err) + panic(err) + } + if err := t.Execute(os.Stdout, pkgDocs); err != nil { + panic(err) } - fmt.Printf("%s\n", text) } diff --git a/packages/go-kosu/rpc/doctool/template.md b/packages/go-kosu/rpc/doctool/template.md new file mode 100644 index 00000000..6ea7a3e6 --- /dev/null +++ b/packages/go-kosu/rpc/doctool/template.md @@ -0,0 +1,12 @@ +--- +title: Methods +--- + +{{ .Description }} + +{{- range .Types }} + {{- range .Entries }} +## Method: {{ .Method }} +{{ .Text }} + {{ end }} +{{ end }} diff --git a/packages/go-kosu/rpc/rpc_test.go b/packages/go-kosu/rpc/rpc_test.go index 7fe6f97f..fc3b07f4 100644 --- a/packages/go-kosu/rpc/rpc_test.go +++ b/packages/go-kosu/rpc/rpc_test.go @@ -10,19 +10,25 @@ import ( "github.com/stretchr/testify/require" "go-kosu/abci" + "go-kosu/abci/types" "go-kosu/tests" "github.com/tendermint/tendermint/libs/db" ) -func TestRPCLatestHeight(t *testing.T) { - _, closer := tests.StartServer(t, db.NewMemDB()) - defer closer() +func setupNewTestClient(t *testing.T) (*abci.App, *rpc.Client, func()) { + app, closer := tests.StartServer(t, db.NewMemDB()) client := rpc.DialInProc( NewServer( abci.NewHTTPClient("http://localhost:26657", nil), ), ) + return app, client, closer +} + +func TestRPCLatestHeight(t *testing.T) { + _, client, closer := setupNewTestClient(t) + defer closer() var latest uint64 // Get the initial (prior the first block is mined) @@ -34,6 +40,7 @@ func TestRPCLatestHeight(t *testing.T) { // this is invoked when a block is mined require.NoError(t, client.Call(&latest, "kosu_latestHeight")) assert.EqualValues(t, 1, latest) + cancel() } @@ -55,3 +62,31 @@ func TestRPCLatestHeight(t *testing.T) { } } } + +func TestQueryPoster(t *testing.T) { + app, client, closer := setupNewTestClient(t) + defer closer() + + poster := &types.Poster{ + Limit: 99, + } + app.Store().SetPoster("abc", *poster) + app.Store().Commit() + + t.Run("Found", func(t *testing.T) { + var res types.Poster + require.NoError(t, + client.Call(&res, "kosu_queryPoster", "abc"), + ) + assert.Equal(t, *poster, res) + + }) + + t.Run("NotFound", func(t *testing.T) { + var res types.Poster + err := client.Call(&res, "kosu_queryPoster", "a-not-found-address") + require.NotNil(t, err) + assert.Error(t, err) + assert.Contains(t, err.Error(), "not found") + }) +} diff --git a/packages/go-kosu/rpc/service.go b/packages/go-kosu/rpc/service.go index fe227b32..066eef13 100644 --- a/packages/go-kosu/rpc/service.go +++ b/packages/go-kosu/rpc/service.go @@ -3,7 +3,6 @@ package rpc import ( "context" "go-kosu/abci" - "log" "github.com/ethereum/go-ethereum/rpc" ) @@ -20,9 +19,44 @@ func NewService(abci *abci.Client) *Service { } } -// Subscribe subscribes to the ABCI events -// To tell which events you want, you need to provide a query. -// More information about query can be found here: https://tendermint.com/rpc/#subscribe +/* +Subscribe subscribes to the ABCI events. + +To tell which events you want, you need to provide a query. +More information about query can be found here: https://tendermint.com/rpc/#subscribe +Subscriptions will only work over WS. +#### Parameters +`query` TM query string + +#### Returns +`*rpc.Subscription` + +#### Examples +```go +ch := make(chan interface{}) +args := []interface{}{ + "subscribe", + "tm.event='NewBlock'", +} +ctx := context.Background() +sub, err := client.Subscribe(ctx, "kosu", ch, args...) +if err != nil { + panic(err) +} +defer sub.Unsubscribe() + +for { + select { + case <-ctx.Done(): + return + case <-sub.Err(): + return + case e := <-ch: + fmt.Printf("event: %+v", e) + } +} +``` +*/ func (s *Service) Subscribe(ctx context.Context, query string) (*rpc.Subscription, error) { notifier, supported := rpc.NotifierFromContext(ctx) if !supported { @@ -56,8 +90,22 @@ func (s *Service) Subscribe(ctx context.Context, query string) (*rpc.Subscriptio return rpcSub, nil } -// LatestHeight returns the height of the best known block -// The `latestHeight` method will return the integer height of the latest block committed to the blockchain.", +/* +LatestHeight returns the height of the best known block. +The `latestHeight` method will return the integer height of the latest block committed to the blockchain. + +#### Parameters +None + +#### Returns +`latestHeight` - _int64_ latest block height + +#### Examples +```bash +curl -X POST --data '{"jsonrpc":"2.0","method":"kosu_latestHeight", "id": 1}' localhost:14341 --header 'Content-Type: application/json' +{"jsonrpc":"2.0","id":1,"result":260} +``` +*/ func (s *Service) LatestHeight() (int64, error) { res, err := s.abci.Block(nil) if err != nil { From 72898126f5f58592b417601d97e1be412bb9ac10 Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Tue, 23 Jul 2019 20:23:20 +0200 Subject: [PATCH 02/11] go-kosu: run prettier on rpc template doc --- packages/go-kosu/rpc/doctool/template.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/go-kosu/rpc/doctool/template.md b/packages/go-kosu/rpc/doctool/template.md index 6ea7a3e6..659032ee 100644 --- a/packages/go-kosu/rpc/doctool/template.md +++ b/packages/go-kosu/rpc/doctool/template.md @@ -5,8 +5,10 @@ title: Methods {{ .Description }} {{- range .Types }} - {{- range .Entries }} +{{- range .Entries }} + ## Method: {{ .Method }} + {{ .Text }} - {{ end }} +{{ end }} {{ end }} From 883a48f7e778870f317b0f55bca5eb6cb462ee54 Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Tue, 23 Jul 2019 21:45:14 +0200 Subject: [PATCH 03/11] go-kosu: rename rpc doc template --- packages/go-kosu/rpc/doctool/main.go | 2 +- packages/go-kosu/rpc/doctool/{template.md => template.md.tpl} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename packages/go-kosu/rpc/doctool/{template.md => template.md.tpl} (100%) diff --git a/packages/go-kosu/rpc/doctool/main.go b/packages/go-kosu/rpc/doctool/main.go index 1aa3ae8f..9602a68b 100644 --- a/packages/go-kosu/rpc/doctool/main.go +++ b/packages/go-kosu/rpc/doctool/main.go @@ -56,7 +56,7 @@ func main() { pkgDocs.Types = append(pkgDocs.Types, typeDocs) } - t, err := template.New("template.md").ParseFiles("./template.md") + t, err := template.New("template.md").ParseFiles("./template.md.tpl") if err != nil { panic(err) } diff --git a/packages/go-kosu/rpc/doctool/template.md b/packages/go-kosu/rpc/doctool/template.md.tpl similarity index 100% rename from packages/go-kosu/rpc/doctool/template.md rename to packages/go-kosu/rpc/doctool/template.md.tpl From be95b9037064a4498e11d7d5ab973d5b143246ad Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Tue, 30 Jul 2019 19:48:03 +0200 Subject: [PATCH 04/11] go-kosu: add rpcdocs Makefile target --- packages/go-kosu/Makefile | 3 +++ packages/go-kosu/rpc/doc.go | 5 ----- packages/go-kosu/rpc/doctool/main.go | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 packages/go-kosu/rpc/doc.go diff --git a/packages/go-kosu/Makefile b/packages/go-kosu/Makefile index aa514b38..500036a4 100644 --- a/packages/go-kosu/Makefile +++ b/packages/go-kosu/Makefile @@ -32,3 +32,6 @@ gen: go generate ./... ci: lint test + +rpcdocs: + cd ./rpc/doctool && go run main.go ../ diff --git a/packages/go-kosu/rpc/doc.go b/packages/go-kosu/rpc/doc.go deleted file mode 100644 index 592fe8fe..00000000 --- a/packages/go-kosu/rpc/doc.go +++ /dev/null @@ -1,5 +0,0 @@ -// nolint - -/* - */ -package rpc diff --git a/packages/go-kosu/rpc/doctool/main.go b/packages/go-kosu/rpc/doctool/main.go index 9602a68b..c74e2264 100644 --- a/packages/go-kosu/rpc/doctool/main.go +++ b/packages/go-kosu/rpc/doctool/main.go @@ -56,7 +56,7 @@ func main() { pkgDocs.Types = append(pkgDocs.Types, typeDocs) } - t, err := template.New("template.md").ParseFiles("./template.md.tpl") + t, err := template.New("template.md.tpl").ParseFiles("./template.md.tpl") if err != nil { panic(err) } From af173e889cb94069444e80c4114383d490dd81ea Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Wed, 31 Jul 2019 15:44:08 +0200 Subject: [PATCH 05/11] go-kosu: add godocs --- packages/go-kosu/rpc/doctool/main.go | 4 +++- packages/go-kosu/rpc/rpc_test.go | 29 ---------------------------- packages/go-kosu/rpc/service.go | 1 + 3 files changed, 4 insertions(+), 30 deletions(-) diff --git a/packages/go-kosu/rpc/doctool/main.go b/packages/go-kosu/rpc/doctool/main.go index c74e2264..06e959c1 100644 --- a/packages/go-kosu/rpc/doctool/main.go +++ b/packages/go-kosu/rpc/doctool/main.go @@ -10,18 +10,20 @@ import ( "text/template" ) -// nolint +// DocEntry holds documentation for a method type DocEntry struct { Method string `json:"method"` Text string `json:"text"` } +// TypeDocs holds the documentation of a given type type TypeDocs struct { Title string Description string Entries []DocEntry } +// PkgDocs is the top level doc struct type PkgDocs struct { Title string Description string diff --git a/packages/go-kosu/rpc/rpc_test.go b/packages/go-kosu/rpc/rpc_test.go index fc3b07f4..c27a8b08 100644 --- a/packages/go-kosu/rpc/rpc_test.go +++ b/packages/go-kosu/rpc/rpc_test.go @@ -10,7 +10,6 @@ import ( "github.com/stretchr/testify/require" "go-kosu/abci" - "go-kosu/abci/types" "go-kosu/tests" "github.com/tendermint/tendermint/libs/db" @@ -62,31 +61,3 @@ func TestRPCLatestHeight(t *testing.T) { } } } - -func TestQueryPoster(t *testing.T) { - app, client, closer := setupNewTestClient(t) - defer closer() - - poster := &types.Poster{ - Limit: 99, - } - app.Store().SetPoster("abc", *poster) - app.Store().Commit() - - t.Run("Found", func(t *testing.T) { - var res types.Poster - require.NoError(t, - client.Call(&res, "kosu_queryPoster", "abc"), - ) - assert.Equal(t, *poster, res) - - }) - - t.Run("NotFound", func(t *testing.T) { - var res types.Poster - err := client.Call(&res, "kosu_queryPoster", "a-not-found-address") - require.NotNil(t, err) - assert.Error(t, err) - assert.Contains(t, err.Error(), "not found") - }) -} diff --git a/packages/go-kosu/rpc/service.go b/packages/go-kosu/rpc/service.go index 9e161422..b572f2e3 100644 --- a/packages/go-kosu/rpc/service.go +++ b/packages/go-kosu/rpc/service.go @@ -109,6 +109,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"kosu_latestHeight", "id": 1}' lo {"jsonrpc":"2.0","id":1,"result":260} ``` */ +// nolint:lll func (s *Service) LatestHeight() (int64, error) { res, err := s.abci.Block(nil) if err != nil { From 823667d375c890a8038288cb3e5af4236b0d53be Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Thu, 1 Aug 2019 16:40:19 +0200 Subject: [PATCH 06/11] go-kosu: fix rpc doc issues --- packages/go-kosu/.golangci.yml | 5 +++++ packages/go-kosu/rpc/service.go | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 packages/go-kosu/.golangci.yml diff --git a/packages/go-kosu/.golangci.yml b/packages/go-kosu/.golangci.yml new file mode 100644 index 00000000..ce72df7d --- /dev/null +++ b/packages/go-kosu/.golangci.yml @@ -0,0 +1,5 @@ +issues: + exclude-rules: + - path: rpc/service.go + linters: + - lll diff --git a/packages/go-kosu/rpc/service.go b/packages/go-kosu/rpc/service.go index b572f2e3..f1c0f3f9 100644 --- a/packages/go-kosu/rpc/service.go +++ b/packages/go-kosu/rpc/service.go @@ -109,7 +109,6 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"kosu_latestHeight", "id": 1}' lo {"jsonrpc":"2.0","id":1,"result":260} ``` */ -// nolint:lll func (s *Service) LatestHeight() (int64, error) { res, err := s.abci.Block(nil) if err != nil { @@ -124,7 +123,7 @@ func (s *Service) LatestHeight() (int64, error) { // AddOrders adds an array of Kosu orders to the network /* -*** Example payload +### Example payload ```json [{ "subContract":"0xebe8fdf63db77e3b41b0aec8208c49fa46569606", @@ -156,14 +155,13 @@ func (s *Service) LatestHeight() (int64, error) { }]`, ``` -*** cURL example +### cURL example ```bash -url -X POST localhost:14341 \ +curl -X POST localhost:14341 \ --data '{"jsonrpc":"2.0", "id": 1, "method": "kosu_addOrders", "params": [[]]}' \ -H 'Content-Type: application/json' ``` */ -// nolint:lll func (s *Service) AddOrders(orders []*types.TransactionOrder) error { for _, order := range orders { res, err := s.abci.BroadcastTxSync(order) From 4c9d1f24e6d94095e9b38934099422ed2e3f79a4 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 1 Aug 2019 07:51:36 -0700 Subject: [PATCH 07/11] update lockfile --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 49612b94..7c2cb5ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23,10 +23,10 @@ lodash "^4.17.11" web3-provider-engine "14.0.6" -"@0x/abi-gen-templates@2.3.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@0x/abi-gen-templates/-/abi-gen-templates-2.3.0.tgz#4d1a60cdfd3aac6c7456b56b8ff980a12d7b9e52" - integrity sha512-KTG3Rf+m5z9JuGtaOxPWMxPrpS6a76FQkE5XTYHYRYak+iHR+DqN3JlMZSP59c9zVEiKGoXo7RvcUU7/X3pd4A== +"@0x/abi-gen-templates@^2.3.0": + version "2.4.0" + resolved "https://registry.yarnpkg.com/@0x/abi-gen-templates/-/abi-gen-templates-2.4.0.tgz#046378be165a4a1e6cdf06041f90686a519a8d80" + integrity sha512-sVuXZl4rgcvvhWZoYGbWjutuRmvgIeboPfMFR8uhwEaqb7JsSEMFbyqOm9O4AkApHvLNfuMuDHs+suRxxR5pxA== "@0x/abi-gen-wrappers@^5.0.3": version "5.0.3" From 8c44f3d92104bf1cfd7b80e3be5e85f02f2290c9 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 1 Aug 2019 07:51:41 -0700 Subject: [PATCH 08/11] adding docs scripts to package.json --- packages/go-kosu/package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/go-kosu/package.json b/packages/go-kosu/package.json index 9afa8889..52aece5e 100644 --- a/packages/go-kosu/package.json +++ b/packages/go-kosu/package.json @@ -7,10 +7,14 @@ "license": "MIT", "scripts": { "build": "yarn abigen && make", - "abigen": "jq '.compilerOutput.abi' node_modules/@kosu/system-contracts/generated-artifacts/EventEmitter.json | abigen --abi - --pkg witness --type EventEmitter -out witness/event_emitter.go" + "abigen": "jq '.compilerOutput.abi' node_modules/@kosu/system-contracts/generated-artifacts/EventEmitter.json | abigen --abi - --pkg witness --type EventEmitter -out witness/event_emitter.go", + "docs": "yarn docs:clean && yarn docs:setup && yarn docs:rpc", + "docs:clean": "rm -rf ./docs/", + "docs:setup": "mkdir -p ./docs", + "docs:rpc": "make -s rpcdocs > docs/kosu_rpc.md" }, "config": {}, "dependencies": { - "@kosu/system-contracts": "^0.1.1" + "@kosu/system-contracts": "^0.1.5" } -} +} \ No newline at end of file From 77c32952801bfb852ae4ae2e0f9224a49c98d587 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 1 Aug 2019 07:55:04 -0700 Subject: [PATCH 09/11] copy readme to docs folder --- packages/go-kosu/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/go-kosu/package.json b/packages/go-kosu/package.json index 52aece5e..ab2e1ac4 100644 --- a/packages/go-kosu/package.json +++ b/packages/go-kosu/package.json @@ -10,7 +10,7 @@ "abigen": "jq '.compilerOutput.abi' node_modules/@kosu/system-contracts/generated-artifacts/EventEmitter.json | abigen --abi - --pkg witness --type EventEmitter -out witness/event_emitter.go", "docs": "yarn docs:clean && yarn docs:setup && yarn docs:rpc", "docs:clean": "rm -rf ./docs/", - "docs:setup": "mkdir -p ./docs", + "docs:setup": "mkdir -p ./docs && cp README.md ./docs/", "docs:rpc": "make -s rpcdocs > docs/kosu_rpc.md" }, "config": {}, From 982b43efeae7ac408e5eca4c5450f40f7c450195 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 1 Aug 2019 07:56:09 -0700 Subject: [PATCH 10/11] update docs site config for kosu-docs --- cloudbuild/main.yaml | 18 ++++++++++++++++++ packages/kosu-docs/docs/.vuepress/config.js | 9 +++++++++ packages/kosu-docs/load.sh | 1 + 3 files changed, 28 insertions(+) diff --git a/cloudbuild/main.yaml b/cloudbuild/main.yaml index 34f1876e..ff654a35 100644 --- a/cloudbuild/main.yaml +++ b/cloudbuild/main.yaml @@ -44,6 +44,15 @@ steps: "gs://kosu-docs/kosu-system-contracts" ] +- name: "gcr.io/cloud-builders/gsutil" + args: [ + "-m", + "rsync", + "-r", "-c", "-d", + "./packages/go-kosu/docs", + "gs://kosu-docs/go-kosu" + ] + # ================ # PUBLISH BINARIES # ================ @@ -86,6 +95,15 @@ steps: "./packages/kosu-docs/docs/kosu-system-contracts" ] +- name: "gcr.io/cloud-builders/gsutil" + args: [ + "-m", + "rsync", + "-r", "-c", "-d", + "./packages/go-kosu/docs", + "./packages/kosu-docs/docs/go-kosu" + ] + - name: "gcr.io/kosu-io/node-ci:latest" entrypoint: "yarn" args: [ diff --git a/packages/kosu-docs/docs/.vuepress/config.js b/packages/kosu-docs/docs/.vuepress/config.js index 576dbe70..b212bb47 100644 --- a/packages/kosu-docs/docs/.vuepress/config.js +++ b/packages/kosu-docs/docs/.vuepress/config.js @@ -78,6 +78,15 @@ module.exports = { "/kosu-system-contracts/Voting", ], }, + { + title: "Go Kosu", + collapsable: true, + food: "4.svg", + children: [ + "/go-kosu/", + "/go-kosu/kosu_rpc", + ], + }, ], }, }; diff --git a/packages/kosu-docs/load.sh b/packages/kosu-docs/load.sh index 03985c32..debee099 100755 --- a/packages/kosu-docs/load.sh +++ b/packages/kosu-docs/load.sh @@ -38,6 +38,7 @@ log "$LOADING_DOCS" gsutil -m rsync -r -c -d gs://kosu-docs/kosu.js ./docs/kosu.js gsutil -m rsync -r -c -d gs://kosu-docs/kosu-system-contracts ./docs/kosu-system-contracts +gsutil -m rsync -r -c -d gs://kosu-docs/go-kosu ./docs/go-kosu log "$LOADED_DOCS" exit 0 \ No newline at end of file From 0c368ad3fcb9f250895966dc6335d493f9903384 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 1 Aug 2019 07:58:54 -0700 Subject: [PATCH 11/11] running prettier --- packages/go-kosu/package.json | 2 +- packages/kosu-docs/docs/.vuepress/config.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/go-kosu/package.json b/packages/go-kosu/package.json index ab2e1ac4..d7499ecf 100644 --- a/packages/go-kosu/package.json +++ b/packages/go-kosu/package.json @@ -17,4 +17,4 @@ "dependencies": { "@kosu/system-contracts": "^0.1.5" } -} \ No newline at end of file +} diff --git a/packages/kosu-docs/docs/.vuepress/config.js b/packages/kosu-docs/docs/.vuepress/config.js index b212bb47..d92a4df5 100644 --- a/packages/kosu-docs/docs/.vuepress/config.js +++ b/packages/kosu-docs/docs/.vuepress/config.js @@ -82,10 +82,7 @@ module.exports = { title: "Go Kosu", collapsable: true, food: "4.svg", - children: [ - "/go-kosu/", - "/go-kosu/kosu_rpc", - ], + children: ["/go-kosu/", "/go-kosu/kosu_rpc"], }, ], },