diff --git a/agents/go.mod b/agents/go.mod index bb9af88038..3c5483b5de 100644 --- a/agents/go.mod +++ b/agents/go.mod @@ -58,6 +58,7 @@ require ( github.com/deckarep/golang-set/v2 v2.1.0 // indirect github.com/deepmap/oapi-codegen v1.8.2 // indirect github.com/edsrzf/mmap-go v1.0.0 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect github.com/getsentry/sentry-go v0.18.0 // indirect diff --git a/agents/go.sum b/agents/go.sum index c36806dc1b..3255d0e076 100644 --- a/agents/go.sum +++ b/agents/go.sum @@ -398,6 +398,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/friendsofgo/graphiql v0.2.2 h1:ccnuxpjgIkB+Lr9YB2ZouiZm7wvciSfqwpa9ugWzmn0= diff --git a/committee/go.mod b/committee/go.mod index 34b080536d..3a88799b91 100644 --- a/committee/go.mod +++ b/committee/go.mod @@ -123,6 +123,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/flynn/noise v1.1.0 // indirect github.com/francoispqt/gojay v1.2.13 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect diff --git a/committee/go.sum b/committee/go.sum index 1e7e35e86d..8c621eb2b4 100644 --- a/committee/go.sum +++ b/committee/go.sum @@ -383,6 +383,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg= github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= diff --git a/contrib/promexporter/go.sum b/contrib/promexporter/go.sum index 14d0ce0d99..80d5f24d72 100644 --- a/contrib/promexporter/go.sum +++ b/contrib/promexporter/go.sum @@ -615,6 +615,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= diff --git a/docs/bridge/docs/Services/Omnirpc.md b/docs/bridge/docs/Services/Omnirpc.md index c5fbf284b4..e719fc0278 100644 --- a/docs/bridge/docs/Services/Omnirpc.md +++ b/docs/bridge/docs/Services/Omnirpc.md @@ -74,6 +74,6 @@ curl --location --request POST 'http://localhost:5000/rpc/1' \ }' ``` -A full postman collection can be found [here](https://github.com/synapsecns/sanguine/blob/master/services/omnirpc/swagger/collection.json) or at the `/collection.json endpoint` +A full postman collection can be found [here](https://github.com/synapsecns/sanguine/blob/master/services/omnirpc/swagger/collection.json) or at the `/collection.json endpoint`. Swagger docs are also available at `/swagger`. Not all requests are confirmable. Please see [here](https://pkg.go.dev/github.com/synapsecns/sanguine/services/omnirpc#section-readme) for details. diff --git a/services/cctp-relayer/go.mod b/services/cctp-relayer/go.mod index 2bc9bd7c1f..444486481b 100644 --- a/services/cctp-relayer/go.mod +++ b/services/cctp-relayer/go.mod @@ -102,6 +102,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect diff --git a/services/cctp-relayer/go.sum b/services/cctp-relayer/go.sum index 61fef589d5..8dd076ec63 100644 --- a/services/cctp-relayer/go.sum +++ b/services/cctp-relayer/go.sum @@ -351,6 +351,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= diff --git a/services/explorer/go.mod b/services/explorer/go.mod index 9da6657710..7a124a0ea8 100644 --- a/services/explorer/go.mod +++ b/services/explorer/go.mod @@ -114,6 +114,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect diff --git a/services/explorer/go.sum b/services/explorer/go.sum index 2a51b1bda2..45aed34636 100644 --- a/services/explorer/go.sum +++ b/services/explorer/go.sum @@ -617,6 +617,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= diff --git a/services/omnirpc/README.md b/services/omnirpc/README.md index db538302ef..e5b2cb67d5 100644 --- a/services/omnirpc/README.md +++ b/services/omnirpc/README.md @@ -1,6 +1,6 @@ # OmniRPC -[![Go Reference](https://pkg.go.dev/badge/github.com/synapsecns/sanguine/services/omnirpc.svg)](https://pkg.go.dev/github.com/synapsecns/sanguine/services/omnirpc) +[![Go Reference](httpsa://pkg.go.dev/badge/github.com/synapsecns/sanguine/services/omnirpc.svg)](https://pkg.go.dev/github.com/synapsecns/sanguine/services/omnirpc) [![Go Report Card](https://goreportcard.com/badge/github.com/synapsecns/sanguine/services/omnirpc)](https://goreportcard.com/report/github.com/synapsecns/sanguine/services/omnirpc) @@ -73,7 +73,7 @@ This is because chains might have different states for "latest", resulting in fa You can also query using a customizable number of confirmations using (for 2 confirmations on eth): `http://localhost:5000/confirmations/2/rpc/1`. -A postman collection is also available at `/collection.json` +A full postman collection can be found [here](https://github.com/synapsecns/sanguine/blob/master/services/omnirpc/swagger/collection.json) or at the `/collection.json endpoint` Confirmable only when latest or pending are not passed: @@ -122,3 +122,4 @@ You can also quickly start a server running against all public chainlist rpcs wi ## Additional functionality Please see [modules/README.md](modules/README.md) for additional functionality. + diff --git a/services/omnirpc/go.mod b/services/omnirpc/go.mod index 2a374e7527..7576d1402d 100644 --- a/services/omnirpc/go.mod +++ b/services/omnirpc/go.mod @@ -16,6 +16,7 @@ require ( github.com/buger/jsonparser v1.1.1 github.com/davecgh/go-spew v1.1.1 github.com/ethereum/go-ethereum v1.11.6 + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b github.com/gin-gonic/gin v1.9.1 github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a github.com/go-resty/resty/v2 v2.11.0 diff --git a/services/omnirpc/go.sum b/services/omnirpc/go.sum index 6de0a00c26..b5bcc2c8e6 100644 --- a/services/omnirpc/go.sum +++ b/services/omnirpc/go.sum @@ -339,6 +339,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= diff --git a/services/omnirpc/modules/confirmedtofinalized/finalizedproxy.go b/services/omnirpc/modules/confirmedtofinalized/finalizedproxy.go index 710052efc3..a50d61241a 100644 --- a/services/omnirpc/modules/confirmedtofinalized/finalizedproxy.go +++ b/services/omnirpc/modules/confirmedtofinalized/finalizedproxy.go @@ -9,6 +9,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/params" + "github.com/flowchartsman/swaggerui" "github.com/gin-gonic/gin" "github.com/synapsecns/sanguine/core/ginhelper" "github.com/synapsecns/sanguine/core/metrics" @@ -17,6 +18,7 @@ import ( "github.com/synapsecns/sanguine/ethergo/parser/rpc" "github.com/synapsecns/sanguine/services/omnirpc/collection" omniHTTP "github.com/synapsecns/sanguine/services/omnirpc/http" + "github.com/synapsecns/sanguine/services/omnirpc/swagger" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" "io" @@ -82,6 +84,8 @@ func (r *finalizedProxyImpl) Run(ctx context.Context) error { c.Data(http.StatusOK, gin.MIMEJSON, res) }) + router.Any("/swagger/*any", gin.WrapH(http.StripPrefix("/swagger", swaggerui.Handler(swagger.OpenAPI)))) + r.logger.Infof(ctx, "running on port %d", r.port) err := router.Run(fmt.Sprintf("0.0.0.0:%d", r.port)) if err != nil { diff --git a/services/omnirpc/modules/harmonyproxy/harmonyproxy.go b/services/omnirpc/modules/harmonyproxy/harmonyproxy.go index 12da8893d8..5a1701cf46 100644 --- a/services/omnirpc/modules/harmonyproxy/harmonyproxy.go +++ b/services/omnirpc/modules/harmonyproxy/harmonyproxy.go @@ -10,6 +10,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/eth/filters" + "github.com/flowchartsman/swaggerui" "github.com/gin-gonic/gin" "github.com/ipfs/go-log" "github.com/synapsecns/sanguine/core/ginhelper" @@ -19,6 +20,7 @@ import ( "github.com/synapsecns/sanguine/services/omnirpc/collection" omniHTTP "github.com/synapsecns/sanguine/services/omnirpc/http" "github.com/synapsecns/sanguine/services/omnirpc/proxy" + "github.com/synapsecns/sanguine/services/omnirpc/swagger" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" "golang.org/x/sync/errgroup" @@ -71,6 +73,8 @@ func (r *HarmonyProxy) Run(_ context.Context) error { } }) + router.Any("/swagger/*any", gin.WrapH(http.StripPrefix("/swagger", swaggerui.Handler(swagger.OpenAPI)))) + router.GET("/collection.json", func(c *gin.Context) { res, err := collection.CreateCollection() if err != nil { diff --git a/services/omnirpc/proxy/server.go b/services/omnirpc/proxy/server.go index b7734f7214..21276ee463 100644 --- a/services/omnirpc/proxy/server.go +++ b/services/omnirpc/proxy/server.go @@ -3,6 +3,7 @@ package proxy import ( "context" "fmt" + "github.com/flowchartsman/swaggerui" "github.com/gin-gonic/gin" "github.com/synapsecns/sanguine/core/ginhelper" "github.com/synapsecns/sanguine/core/metrics" @@ -10,6 +11,7 @@ import ( "github.com/synapsecns/sanguine/services/omnirpc/collection" "github.com/synapsecns/sanguine/services/omnirpc/config" omniHTTP "github.com/synapsecns/sanguine/services/omnirpc/http" + "github.com/synapsecns/sanguine/services/omnirpc/swagger" "go.opentelemetry.io/otel/trace" "net/http" "strconv" @@ -96,6 +98,8 @@ func (r *RPCProxy) Run(ctx context.Context) { c.JSON(http.StatusOK, r.chainManager.GetChainIDs()) }) + router.Any("/swagger/*any", gin.WrapH(http.StripPrefix("/swagger", swaggerui.Handler(swagger.OpenAPI)))) + router.GET("/collection.json", func(c *gin.Context) { res, err := collection.CreateCollection() if err != nil { diff --git a/services/omnirpc/swagger/gen.sh b/services/omnirpc/swagger/gen.sh new file mode 100755 index 0000000000..a401d45615 --- /dev/null +++ b/services/omnirpc/swagger/gen.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cargo install postman2openapi-cli +# As go:generate does not support unix pipes, we need to do this here +postman2openapi collection.json > openapi.yaml diff --git a/services/omnirpc/swagger/generate.go b/services/omnirpc/swagger/generate.go index 8492f81ab7..ef1added6f 100644 --- a/services/omnirpc/swagger/generate.go +++ b/services/omnirpc/swagger/generate.go @@ -1,27 +1,12 @@ -// package main generates a static swagger collection for use in documentation. This differs from collection which dynamically generates a collection for serving. -// this is purely meant for static linking in the repo. -package main +// Package swagger registers the swagger generated spec. +package swagger -import ( - "github.com/synapsecns/sanguine/services/omnirpc/collection" - "os" -) +import _ "embed" // embed is required for go:embed -//go:generate go run github.com/synapsecns/sanguine/services/omnirpc/swagger +//go:generate go run github.com/synapsecns/sanguine/services/omnirpc/swagger/generator +//go:generate ./gen.sh -func main() { - res, err := collection.CreateCollection() - if err != nil { - panic(err) - } - - file, err := os.Create("collection.json") - if err != nil { - panic(err) - } - - _, err = file.Write(res) - if err != nil { - panic(err) - } -} +// OpenAPI is the openapi specification for the omnirpc service. +// +//go:embed openapi.yaml +var OpenAPI []byte diff --git a/services/omnirpc/swagger/generator/main.go b/services/omnirpc/swagger/generator/main.go new file mode 100644 index 0000000000..a80635a4cb --- /dev/null +++ b/services/omnirpc/swagger/generator/main.go @@ -0,0 +1,25 @@ +// package main generates a static swagger collection for use in documentation. This differs from collection which dynamically generates a collection for serving. +// this is purely meant for static linking in the repo. +package main + +import ( + "github.com/synapsecns/sanguine/services/omnirpc/collection" + "os" +) + +func main() { + res, err := collection.CreateCollection() + if err != nil { + panic(err) + } + + file, err := os.Create("collection.json") + if err != nil { + panic(err) + } + + _, err = file.Write(res) + if err != nil { + panic(err) + } +} diff --git a/services/omnirpc/swagger/openapi.yaml b/services/omnirpc/swagger/openapi.yaml new file mode 100644 index 0000000000..cfa5ce4c23 --- /dev/null +++ b/services/omnirpc/swagger/openapi.yaml @@ -0,0 +1,688 @@ +openapi: 3.0.3 +info: + title: Ethereum JSON-RPC + description: A collection holding all the Ethereum JSIN RPC API calls + version: 1.0.0 + contact: {} +servers: +- url: '{{ENVIRONMENT}}' +paths: + /rpc/{CHAIN_ID}: + post: + tags: + - eth + summary: protocolVersion + description: "Returns the current ethereum protocol version.\r\n\r\n**Parameters**\r\n\r\nnone\r\n\r\n**Returns**\r\n\r\n`String` - The current ethereum protocol version" + operationId: protocolversion + requestBody: + content: + application/json: + schema: + type: object + properties: + id: + type: number + example: 73 + jsonrpc: + type: string + example: '2.0' + method: + type: string + example: eth_submitHashrate + params: + type: array + items: + type: string + example: '0x0000000000000000000000000000000000000000000000000000000000500000' + example: + - '0x0000000000000000000000000000000000000000000000000000000000500000' + - 0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c + examples: + accounts: + value: + id: 1 + jsonrpc: '2.0' + method: eth_accounts + params: [] + blockNumber: + value: + id: 83 + jsonrpc: '2.0' + method: eth_blockNumber + params: [] + call: + value: + id: 1 + jsonrpc: '2.0' + method: eth_call + params: + - data: '' + from: '' + gas: '' + gasPrice: '' + to: '' + value: '' + - latest + coinbase: + value: + id: 64 + jsonrpc: '2.0' + method: eth_coinbase + params: [] + compileLLL: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileLLL + params: + - (returnlll (suicide (caller))) + compileSerpent: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileSerpent + params: + - /* some serpent */ + compileSolidity: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileSolidity + params: + - contract test { function multiply(uint a) returns(uint d) { return a * 7; } } + estimateGas: + value: + id: 1 + jsonrpc: '2.0' + method: eth_estimateGas + params: [] + gasPrice: + value: + id: 73 + jsonrpc: '2.0' + method: eth_gasPrice + params: [] + getBalance: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBalance + params: + - 0x407d73d8a49eeb85d32cf465507dd71d507100c1 + - latest + getBlockByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockByHash + params: + - 0xad1328d13f833b8af722117afdc406a762033321df8e48c00cd372d462f48169 + - true + getBlockByNumber: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockByNumber + params: + - '0x1b4' + - true + getBlockTransactionCountByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockTransactionCountByHash + params: + - 0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238 + getBlockTransactionCountByNumber: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockTransactionCountByNumber + params: + - '0x52A8CA' + getCode: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getCode + params: + - 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b + - '0x2' + getCompilers: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getCompilers + params: [] + getFilterChanges: + value: + id: 73 + jsonrpc: '2.0' + method: eth_getFilterChanges + params: + - '0x16' + getLogs: + value: + id: 74 + jsonrpc: '2.0' + method: eth_getLogs + params: + - topics: + - 0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b + getStorageAt: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getStorageAt + params: + - 0x295a70b2de5e3953354a6a8344e616ed314d7251 + - '0x0' + - latest + getTransactionByBlockHashAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByBlockHashAndIndex + params: + - 0x3c82bc62179602b67318c013c10f99011037c49cba84e31ffe6e465a21c521a7 + - '0x0' + getTransactionByBlockNumberAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByBlockNumberAndIndex + params: + - '0x52A96E' + - '0x1' + getTransactionByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByHash + params: + - 0xb2fea9c4b24775af6990237aa90228e5e092c56bdaee74496992a53c208da1ee + getTransactionCount: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionCount + params: + - 0x407d73d8a49eeb85d32cf465507dd71d507100c1 + - latest + getTransactionReceipt: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionReceipt + params: + - 0xa3ece39ae137617669c6933b7578b94e705e765683f260fcfe30eaa41932610f + getUncleByBlockHashAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getUncleByBlockHashAndIndex + params: + - 0x7cea0c9ae53df7073fcd4e7b19fc3f1905a2540bbdbd9a10796c9296f5af55dc + - '0x0' + getUncleByBlockNumberAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getUncleByBlockNumberAndIndex + params: + - '0x29c' + - '0x0' + getWork: + value: + id: 73 + jsonrpc: '2.0' + method: eth_getWork + params: [] + hashrate: + value: + id: 71 + jsonrpc: '2.0' + method: eth_hashrate + params: [] + mining: + value: + id: 71 + jsonrpc: '2.0' + method: eth_mining + params: [] + newBlockFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newBlockFilter + params: [] + newFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newFilter + params: + - topics: + - '0x12341234' + newPendingTransactionFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newPendingTransactionFilter + params: [] + protocolVersion: + value: + id: 67 + jsonrpc: '2.0' + method: eth_protocolVersion + params: [] + sendRawTransaction: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sendRawTransaction + params: + - 0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675 + sendTransaction: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sendTransaction + params: + - data: 0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675 + from: 0xb60e8dd61c5d32be8058bb8eb970870f07233155 + gas: '0x76c0' + gasPrice: '0x9184e72a000' + to: 0xd46e8dd67c5d32be8058bb8eb970870f07244567 + value: '0x9184e72a' + sign: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sign + params: + - 0x9b2055d370f73ec7d8a03e965129118dc8f5bf83 + - '0xdeadbeaf' + submitHashrate: + value: + id: 73 + jsonrpc: '2.0' + method: eth_submitHashrate + params: + - '0x0000000000000000000000000000000000000000000000000000000000500000' + - 0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c + submitWork: + value: + id: 73 + jsonrpc: '2.0' + method: eth_submitWork + params: + - '0x0000000000000001' + - 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef + - 0xD1GE5700000000000000000000000000D1GE5700000000000000000000000000 + syncing: + value: + id: 1 + jsonrpc: '2.0' + method: eth_syncing + params: [] + uninstallFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_uninstallFilter + params: + - '0xb' + responses: + '200': + description: '' + parameters: + - name: CHAIN_ID + in: path + required: true + schema: + type: string + /confirmations/{CONFIRMATIONS}/rpc/{CHAIN_ID}: + post: + tags: + - eth (confirmations) + summary: protocolVersion + description: "Returns the current ethereum protocol version.\r\n\r\n**Parameters**\r\n\r\nnone\r\n\r\n**Returns**\r\n\r\n`String` - The current ethereum protocol version" + operationId: protocolversion1 + requestBody: + content: + application/json: + schema: + type: object + properties: + id: + type: number + example: 73 + jsonrpc: + type: string + example: '2.0' + method: + type: string + example: eth_submitHashrate + params: + type: array + items: + type: string + example: '0x0000000000000000000000000000000000000000000000000000000000500000' + example: + - '0x0000000000000000000000000000000000000000000000000000000000500000' + - 0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c + examples: + accounts: + value: + id: 1 + jsonrpc: '2.0' + method: eth_accounts + params: [] + blockNumber: + value: + id: 83 + jsonrpc: '2.0' + method: eth_blockNumber + params: [] + call: + value: + id: 1 + jsonrpc: '2.0' + method: eth_call + params: + - data: '' + from: '' + gas: '' + gasPrice: '' + to: '' + value: '' + - latest + coinbase: + value: + id: 64 + jsonrpc: '2.0' + method: eth_coinbase + params: [] + compileLLL: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileLLL + params: + - (returnlll (suicide (caller))) + compileSerpent: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileSerpent + params: + - /* some serpent */ + compileSolidity: + value: + id: 1 + jsonrpc: '2.0' + method: eth_compileSolidity + params: + - contract test { function multiply(uint a) returns(uint d) { return a * 7; } } + estimateGas: + value: + id: 1 + jsonrpc: '2.0' + method: eth_estimateGas + params: [] + gasPrice: + value: + id: 73 + jsonrpc: '2.0' + method: eth_gasPrice + params: [] + getBalance: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBalance + params: + - 0x407d73d8a49eeb85d32cf465507dd71d507100c1 + - latest + getBlockByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockByHash + params: + - 0xad1328d13f833b8af722117afdc406a762033321df8e48c00cd372d462f48169 + - true + getBlockByNumber: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockByNumber + params: + - '0x1b4' + - true + getBlockTransactionCountByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockTransactionCountByHash + params: + - 0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238 + getBlockTransactionCountByNumber: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getBlockTransactionCountByNumber + params: + - '0x52A8CA' + getCode: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getCode + params: + - 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b + - '0x2' + getCompilers: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getCompilers + params: [] + getFilterChanges: + value: + id: 73 + jsonrpc: '2.0' + method: eth_getFilterChanges + params: + - '0x16' + getLogs: + value: + id: 74 + jsonrpc: '2.0' + method: eth_getLogs + params: + - topics: + - 0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b + getStorageAt: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getStorageAt + params: + - 0x295a70b2de5e3953354a6a8344e616ed314d7251 + - '0x0' + - latest + getTransactionByBlockHashAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByBlockHashAndIndex + params: + - 0x3c82bc62179602b67318c013c10f99011037c49cba84e31ffe6e465a21c521a7 + - '0x0' + getTransactionByBlockNumberAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByBlockNumberAndIndex + params: + - '0x52A96E' + - '0x1' + getTransactionByHash: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionByHash + params: + - 0xb2fea9c4b24775af6990237aa90228e5e092c56bdaee74496992a53c208da1ee + getTransactionCount: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionCount + params: + - 0x407d73d8a49eeb85d32cf465507dd71d507100c1 + - latest + getTransactionReceipt: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getTransactionReceipt + params: + - 0xa3ece39ae137617669c6933b7578b94e705e765683f260fcfe30eaa41932610f + getUncleByBlockHashAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getUncleByBlockHashAndIndex + params: + - 0x7cea0c9ae53df7073fcd4e7b19fc3f1905a2540bbdbd9a10796c9296f5af55dc + - '0x0' + getUncleByBlockNumberAndIndex: + value: + id: 1 + jsonrpc: '2.0' + method: eth_getUncleByBlockNumberAndIndex + params: + - '0x29c' + - '0x0' + getWork: + value: + id: 73 + jsonrpc: '2.0' + method: eth_getWork + params: [] + hashrate: + value: + id: 71 + jsonrpc: '2.0' + method: eth_hashrate + params: [] + mining: + value: + id: 71 + jsonrpc: '2.0' + method: eth_mining + params: [] + newBlockFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newBlockFilter + params: [] + newFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newFilter + params: + - topics: + - '0x12341234' + newPendingTransactionFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_newPendingTransactionFilter + params: [] + protocolVersion: + value: + id: 67 + jsonrpc: '2.0' + method: eth_protocolVersion + params: [] + sendRawTransaction: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sendRawTransaction + params: + - 0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675 + sendTransaction: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sendTransaction + params: + - data: 0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675 + from: 0xb60e8dd61c5d32be8058bb8eb970870f07233155 + gas: '0x76c0' + gasPrice: '0x9184e72a000' + to: 0xd46e8dd67c5d32be8058bb8eb970870f07244567 + value: '0x9184e72a' + sign: + value: + id: 1 + jsonrpc: '2.0' + method: eth_sign + params: + - 0x9b2055d370f73ec7d8a03e965129118dc8f5bf83 + - '0xdeadbeaf' + submitHashrate: + value: + id: 73 + jsonrpc: '2.0' + method: eth_submitHashrate + params: + - '0x0000000000000000000000000000000000000000000000000000000000500000' + - 0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c + submitWork: + value: + id: 73 + jsonrpc: '2.0' + method: eth_submitWork + params: + - '0x0000000000000001' + - 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef + - 0xD1GE5700000000000000000000000000D1GE5700000000000000000000000000 + syncing: + value: + id: 1 + jsonrpc: '2.0' + method: eth_syncing + params: [] + uninstallFilter: + value: + id: 73 + jsonrpc: '2.0' + method: eth_uninstallFilter + params: + - '0xb' + responses: + '200': + description: '' + parameters: + - name: CONFIRMATIONS + in: path + required: true + schema: + type: string + - name: CHAIN_ID + in: path + required: true + schema: + type: string +tags: +- name: eth +- name: eth (confirmations) + diff --git a/services/rfq/go.mod b/services/rfq/go.mod index 8f97054aeb..7db104229e 100644 --- a/services/rfq/go.mod +++ b/services/rfq/go.mod @@ -6,7 +6,6 @@ require ( github.com/Flaque/filet v0.0.0-20201012163910-45f684403088 github.com/alecthomas/assert v1.0.0 github.com/brianvoe/gofakeit/v6 v6.27.0 - github.com/dubonzi/otelresty v1.2.0 github.com/ethereum/go-ethereum v1.11.6 github.com/gin-gonic/gin v1.9.1 github.com/go-resty/resty/v2 v2.11.0 @@ -28,6 +27,7 @@ require ( github.com/synapsecns/sanguine/services/cctp-relayer v0.0.0-00010101000000-000000000000 github.com/synapsecns/sanguine/services/omnirpc v0.0.0-00010101000000-000000000000 github.com/urfave/cli/v2 v2.27.1 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 go.opentelemetry.io/otel v1.23.1 go.opentelemetry.io/otel/metric v1.23.1 go.opentelemetry.io/otel/trace v1.23.1 @@ -108,11 +108,13 @@ require ( github.com/docker/docker v20.10.23+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect + github.com/dubonzi/otelresty v1.2.0 // indirect github.com/edsrzf/mmap-go v1.0.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect @@ -257,7 +259,6 @@ require ( github.com/yusufpapurcu/wmi v1.2.2 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin v0.42.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.21.0 // indirect go.opentelemetry.io/otel/exporters/jaeger v1.17.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect diff --git a/services/rfq/go.sum b/services/rfq/go.sum index 659f5fa431..866c20aa08 100644 --- a/services/rfq/go.sum +++ b/services/rfq/go.sum @@ -355,6 +355,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= diff --git a/services/scribe/go.mod b/services/scribe/go.mod index 04b3aa8a94..f4e8e6dbde 100644 --- a/services/scribe/go.mod +++ b/services/scribe/go.mod @@ -129,6 +129,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect diff --git a/services/scribe/go.sum b/services/scribe/go.sum index 8a6b885179..83e669e5da 100644 --- a/services/scribe/go.sum +++ b/services/scribe/go.sum @@ -381,6 +381,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/friendsofgo/graphiql v0.2.2 h1:ccnuxpjgIkB+Lr9YB2ZouiZm7wvciSfqwpa9ugWzmn0= diff --git a/services/stiprelayer/go.mod b/services/stiprelayer/go.mod index 4220562603..317e34883d 100644 --- a/services/stiprelayer/go.mod +++ b/services/stiprelayer/go.mod @@ -97,6 +97,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect diff --git a/services/stiprelayer/go.sum b/services/stiprelayer/go.sum index 2a7c841ed6..459f8247b9 100644 --- a/services/stiprelayer/go.sum +++ b/services/stiprelayer/go.sum @@ -347,6 +347,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= diff --git a/sin-executor/go.mod b/sin-executor/go.mod index 2d787e7c88..dc02536d87 100644 --- a/sin-executor/go.mod +++ b/sin-executor/go.mod @@ -102,6 +102,7 @@ require ( github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fjl/memsize v0.0.2 // indirect + github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect diff --git a/sin-executor/go.sum b/sin-executor/go.sum index 9e339d4b3c..33f1c52e67 100644 --- a/sin-executor/go.sum +++ b/sin-executor/go.sum @@ -340,6 +340,8 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b h1:oy54yVy300Db264NfQCJubZHpJOl+SoT6udALQdFbSI= +github.com/flowchartsman/swaggerui v0.0.0-20221017034628-909ed4f3701b/go.mod h1:/RJwPD5L4xWgCbqQ1L5cB12ndgfKKT54n9cZFf+8pus= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=