Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable swagger endpoints #245

Open
wants to merge 2 commits into
base: release-v0.7
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ cosmos_dir=$(swagger_dir)/cosmos-sdk
dnode = ./cmd/dnode
dncli =./cmd/dncli

cosmos_version = $(shell awk '/replace github.com\/cosmos\/cosmos-sdk => github.com\/dfinance\/cosmos-sdk/ {print $$NF}' < go.mod)
cosmos_version = dfinance/launchpad

all: install
install: go.sum install-dnode install-dncli
@@ -98,7 +98,6 @@ swagger-ui-build: $(modules_dir)/*
echo "package docs\n\nconst Swagger = \`" >> ./cmd/dncli/docs/swagger.go
cat ./cmd/dncli/docs/swagger.yaml | sed "s/\`/'/g" >> ./cmd/dncli/docs/swagger.go
echo "\`" >> ./cmd/dncli/docs/swagger.go
rm ./cmd/dncli/docs/swagger.yaml

## binaries builds (xgo required: https://github.com/karalabe/xgo)
binaries: go.sum
2 changes: 1 addition & 1 deletion cmd/config/restrictions/restrictions.go
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ func GetEmptyAppRestriction() AppRestrictions {
//GetAppRestrictions returns predefined parameter for remove or restrict standard app parameters.
func GetAppRestrictions() AppRestrictions {
return AppRestrictions{
DisabledTxCmd: []string{},
DisabledTxCmd: []string{},
DisabledQueryCmd: []string{},
MsgDeniedList: map[string][]string{
currencies.ModuleName: {
Loading