Skip to content

Commit

Permalink
Update third party proto and swagger
Browse files Browse the repository at this point in the history
trinitys7 committed Oct 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 94b78ad commit ce49ddc
Showing 195 changed files with 45,228 additions and 72,314 deletions.
10 changes: 4 additions & 6 deletions app/app.go
Original file line number Diff line number Diff line change
@@ -3,11 +3,13 @@ package app
import (
"fmt"
"io"
"io/fs"
"net/http"
"os"
"path/filepath"

"github.com/realiotech/realio-network/app/ante"
"github.com/realiotech/realio-network/client/docs"
"github.com/realiotech/realio-network/crypto/ethsecp256k1"

reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
@@ -46,7 +48,6 @@ import (
feemarkettypes "github.com/evmos/os/x/feemarket/types"

"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
@@ -154,9 +155,6 @@ import (
bridgemoduletypes "github.com/realiotech/realio-network/x/bridge/types"

realionetworktypes "github.com/realiotech/realio-network/types"

// unnamed import of statik for swagger UI support
_ "github.com/realiotech/realio-network/client/docs/statik"
// this line is used by starport scaffolding # stargate/app/moduleImport
)

@@ -1038,12 +1036,12 @@ func (app *RealioNetwork) AutoCliOpts() autocli.AppOptions {

// RegisterSwaggerAPI registers swagger route with API Server
func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router) {
statikFS, err := fs.New()
root, err := fs.Sub(docs.SwaggerUI, "swagger-ui")
if err != nil {
panic(err)
}

staticServer := http.FileServer(statikFS)
staticServer := http.FileServer(http.FS(root))
rtr.PathPrefix("/swagger/").Handler(http.StripPrefix("/swagger/", staticServer))
}

10 changes: 6 additions & 4 deletions client/docs/config.json
Original file line number Diff line number Diff line change
@@ -23,15 +23,15 @@
}
},
{
"url": "./tmp-swagger-gen/ethermint/evm/v1/query.swagger.json",
"url": "./tmp-swagger-gen/os/evm/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "EvmParams"
}
}
},
{
"url": "./tmp-swagger-gen/ethermint/feemarket/v1/query.swagger.json",
"url": "./tmp-swagger-gen/os/feemarket/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "FeeMarketParams",
@@ -132,10 +132,12 @@
}
},
{
"url": "./tmp-swagger-gen/realiotech/multistaking/v1/query.swagger.json",
"url": "./tmp-swagger-gen/multistaking/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "MultiStakingParams"
"Params": "MultiStakingParams",
"Validator": "MultiStakingValidator",
"Validators": "MultiStakingValidators"
}
}
}
6 changes: 6 additions & 0 deletions client/docs/embed.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package docs

import "embed"

//go:embed swagger-ui
var SwaggerUI embed.FS
5 changes: 0 additions & 5 deletions client/docs/statik/init.go

This file was deleted.

13 changes: 0 additions & 13 deletions client/docs/statik/statik.go

This file was deleted.

Empty file.
Empty file.
62 changes: 6 additions & 56 deletions client/docs/swagger-ui/index.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,10 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<!doctype html> <!-- Important: must specify -->
<html>
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="swagger-ui.css" >
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
<script type="module" src="rapidoc-min.js"></script>
</head>

<body>
<div id="swagger-ui"></div>

<script src="swagger-ui-bundle.js"> </script>
<script src="swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {

// Build a system
const ui = SwaggerUIBundle({
url: "./swagger.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})

window.ui = ui
}
</script>
<rapi-doc spec-url = "swagger.yaml"> </rapi-doc>
</body>
</html>
</html>
67 changes: 0 additions & 67 deletions client/docs/swagger-ui/oauth2-redirect.html

This file was deleted.

3,895 changes: 3,895 additions & 0 deletions client/docs/swagger-ui/rapidoc-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ce49ddc

Please sign in to comment.