Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed May 14, 2024
1 parent 2d3405d commit 76ba72e
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 178 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/blobstorage-preview.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/blobstorage-production.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/taiko-client-proverapi-preview.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/taiko-client-proverapi-production.yml

This file was deleted.

3 changes: 3 additions & 0 deletions packages/blobstorage/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ const docTemplate = `{
"http.blobData": {
"type": "object",
"properties": {
"blob": {
"type": "string"
},
"blob_hash": {
"type": "string"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/blobstorage/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"http.blobData": {
"type": "object",
"properties": {
"blob": {
"type": "string"
},
"blob_hash": {
"type": "string"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/blobstorage/docs/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
definitions:
http.blobData:
properties:
blob:
type: string
blob_hash:
type: string
kzg_commitment:
Expand Down
7 changes: 7 additions & 0 deletions packages/docs-site/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ export default defineConfig({
plugins: [
starlightLinksValidator({
exclude: [
// "/api-reference/blob-storage",
"/api-reference/bridge-relayer",
"/api-reference/event-indexer",
"/api-reference/prover-server",
],
}),
starlightOpenAPI([
// {
// base: "api-reference/blob-storage",
// label: "Blob Storage API",
// schema: "../blobstorage/docs/swagger.yaml",
// },
{
base: "api-reference/bridge-relayer",
label: "Bridge Relayer API",
Expand Down
7 changes: 4 additions & 3 deletions packages/eventindexer/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const docTemplate = `{
"email": "[email protected]"
},
"license": {
"name": "MIT"
"name": "MIT",
"url": "https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md"
},
"version": "{{.Version}}"
},
Expand Down Expand Up @@ -323,10 +324,10 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "eventindexer.katla.taiko.xyz",
Host: "eventindexer.hekla.taiko.xyz",
BasePath: "",
Schemes: []string{},
Title: "Taiko Eventindexer API",
Title: "Taiko Event Indexer API",
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
Expand Down
7 changes: 4 additions & 3 deletions packages/eventindexer/docs/swagger.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"swagger": "2.0",
"info": {
"title": "Taiko Eventindexer API",
"title": "Taiko Event Indexer API",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "API Support",
"url": "https://community.taiko.xyz/",
"email": "[email protected]"
},
"license": {
"name": "MIT"
"name": "MIT",
"url": "https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md"
},
"version": "1.0"
},
"host": "eventindexer.katla.taiko.xyz",
"host": "eventindexer.hekla.taiko.xyz",
"paths": {
"/assignedBlocks": {
"get": {
Expand Down
5 changes: 3 additions & 2 deletions packages/eventindexer/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,17 @@ definitions:
visible:
type: integer
type: object
host: eventindexer.katla.taiko.xyz
host: eventindexer.hekla.taiko.xyz
info:
contact:
email: [email protected]
name: API Support
url: https://community.taiko.xyz/
license:
name: MIT
url: https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md
termsOfService: http://swagger.io/terms/
title: Taiko Eventindexer API
title: Taiko Event Indexer API
version: "1.0"
paths:
/assignedBlocks:
Expand Down
5 changes: 3 additions & 2 deletions packages/eventindexer/pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
echo "github.com/labstack/echo/v4"
)

// @title Taiko Eventindexer API
// @title Taiko Event Indexer API
// @version 1.0
// @termsOfService http://swagger.io/terms/

Expand All @@ -23,8 +23,9 @@ import (
// @contact.email [email protected]

// @license.name MIT
// @license.url https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md

// @host eventindexer.katla.taiko.xyz
// @host eventindexer.hekla.taiko.xyz
// Server represents an eventindexer http server instance.
type Server struct {
echo *echo.Echo
Expand Down
7 changes: 4 additions & 3 deletions packages/relayer/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const docTemplate = `{
"email": "[email protected]"
},
"license": {
"name": "MIT"
"name": "MIT",
"url": "https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md"
},
"version": "{{.Version}}"
},
Expand Down Expand Up @@ -165,10 +166,10 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "relayer.katla.taiko.xyz",
Host: "relayer.hekla.taiko.xyz",
BasePath: "",
Schemes: []string{},
Title: "Taiko Relayer API",
Title: "Taiko Bridge Relayer API",
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
Expand Down
7 changes: 4 additions & 3 deletions packages/relayer/docs/swagger.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"swagger": "2.0",
"info": {
"title": "Taiko Relayer API",
"title": "Taiko Bridge Relayer API",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "API Support",
"url": "https://community.taiko.xyz/",
"email": "[email protected]"
},
"license": {
"name": "MIT"
"name": "MIT",
"url": "https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md"
},
"version": "1.0"
},
"host": "relayer.katla.taiko.xyz",
"host": "relayer.hekla.taiko.xyz",
"paths": {
"/blockInfo": {
"get": {
Expand Down
5 changes: 3 additions & 2 deletions packages/relayer/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ definitions:
visible:
type: integer
type: object
host: relayer.katla.taiko.xyz
host: relayer.hekla.taiko.xyz
info:
contact:
email: [email protected]
name: API Support
url: https://community.taiko.xyz/
license:
name: MIT
url: https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md
termsOfService: http://swagger.io/terms/
title: Taiko Relayer API
title: Taiko Bridge Relayer API
version: "1.0"
paths:
/blockInfo:
Expand Down
5 changes: 3 additions & 2 deletions packages/relayer/pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ethClient interface {
BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
}

// @title Taiko Relayer API
// @title Taiko Bridge Relayer API
// @version 1.0
// @termsOfService http://swagger.io/terms/

Expand All @@ -30,8 +30,9 @@ type ethClient interface {
// @contact.email [email protected]

// @license.name MIT
// @license.url https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md

// @host relayer.katla.taiko.xyz
// @host relayer.hekla.taiko.xyz
// Server represents an relayer http server instance.
type Server struct {
echo *echo.Echo
Expand Down
3 changes: 1 addition & 2 deletions packages/taiko-client/prover/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ import (
// @contact.email [email protected]

// @license.name MIT
// @license.url https://github.com/taikoxyz/taiko-mono/packages/taiko-client/blob/main/LICENSE.md

// @license.url https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md
// ProverServer represents a prover server instance.
type ProverServer struct {
echo *echo.Echo
Expand Down

0 comments on commit 76ba72e

Please sign in to comment.