From b6e977daf4f8ef62e056320ec350ffbc6c1dc292 Mon Sep 17 00:00:00 2001 From: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Date: Tue, 31 Mar 2020 12:29:48 -0300 Subject: [PATCH] remove swagger files from ibc module (#5893) --- x/ibc/02-client/client/rest/swagger.go | 35 -------------- x/ibc/03-connection/client/rest/swagger.go | 46 ------------------ x/ibc/04-channel/client/rest/swagger.go | 55 ---------------------- x/ibc/07-tendermint/client/rest/swagger.go | 30 ------------ x/ibc/20-transfer/client/rest/swagger.go | 20 -------- 5 files changed, 186 deletions(-) delete mode 100644 x/ibc/02-client/client/rest/swagger.go delete mode 100644 x/ibc/03-connection/client/rest/swagger.go delete mode 100644 x/ibc/04-channel/client/rest/swagger.go delete mode 100644 x/ibc/07-tendermint/client/rest/swagger.go delete mode 100644 x/ibc/20-transfer/client/rest/swagger.go diff --git a/x/ibc/02-client/client/rest/swagger.go b/x/ibc/02-client/client/rest/swagger.go deleted file mode 100644 index 29b8b164eb03..000000000000 --- a/x/ibc/02-client/client/rest/swagger.go +++ /dev/null @@ -1,35 +0,0 @@ -package rest - -import ( - "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" - ibctmtypes "github.com/cosmos/cosmos-sdk/x/ibc/07-tendermint/types" - commitmentexported "github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/exported" -) - -// nolint -type ( - QueryConsensusState struct { - Height int64 `json:"height"` - Result types.ConsensusStateResponse `json:"result"` - } - - QueryHeader struct { - Height int64 `json:"height"` - Result ibctmtypes.Header `json:"result"` - } - - QueryClientState struct { - Height int64 `json:"height"` - Result types.StateResponse `json:"result"` - } - - QueryNodeConsensusState struct { - Height int64 `json:"height"` - Result ibctmtypes.ConsensusState `json:"result"` - } - - QueryPath struct { - Height int64 `json:"height"` - Result commitmentexported.Prefix `json:"result"` - } -) diff --git a/x/ibc/03-connection/client/rest/swagger.go b/x/ibc/03-connection/client/rest/swagger.go deleted file mode 100644 index fd41f9449716..000000000000 --- a/x/ibc/03-connection/client/rest/swagger.go +++ /dev/null @@ -1,46 +0,0 @@ -package rest - -import ( - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/ibc/03-connection/types" -) - -type ( - QueryConnection struct { - Height int64 `json:"height"` - Result types.ConnectionResponse `json:"result"` - } - - QueryClientConnections struct { - Height int64 `json:"height"` - Result types.ClientConnectionsResponse `json:"result"` - } - - PostConnectionOpenInit struct { - Msgs []types.MsgConnectionOpenInit `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostConnectionOpenTry struct { - Msgs []types.MsgConnectionOpenTry `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostConnectionOpenAck struct { - Msgs []types.MsgConnectionOpenAck `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostConnectionOpenConfirm struct { - Msgs []types.MsgConnectionOpenConfirm `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } -) diff --git a/x/ibc/04-channel/client/rest/swagger.go b/x/ibc/04-channel/client/rest/swagger.go deleted file mode 100644 index 04d011f2cb63..000000000000 --- a/x/ibc/04-channel/client/rest/swagger.go +++ /dev/null @@ -1,55 +0,0 @@ -package rest - -import ( - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types" -) - -type ( - QueryChannel struct { - Height int64 `json:"height"` - Result types.ChannelResponse `json:"result"` - } - - PostChannelOpenInit struct { - Msgs []types.MsgChannelOpenInit `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostChannelOpenTry struct { - Msgs []types.MsgChannelOpenTry `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostChannelOpenAck struct { - Msgs []types.MsgChannelOpenAck `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostChannelOpenConfirm struct { - Msgs []types.MsgChannelOpenConfirm `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostChannelCloseInit struct { - Msgs []types.MsgChannelCloseInit `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostChannelCloseConfirm struct { - Msgs []types.MsgChannelCloseConfirm `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } -) diff --git a/x/ibc/07-tendermint/client/rest/swagger.go b/x/ibc/07-tendermint/client/rest/swagger.go deleted file mode 100644 index 884ab3c2dd56..000000000000 --- a/x/ibc/07-tendermint/client/rest/swagger.go +++ /dev/null @@ -1,30 +0,0 @@ -package rest - -import ( - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - ibctmtypes "github.com/cosmos/cosmos-sdk/x/ibc/07-tendermint/types" -) - -// nolint -type ( - PostCreateClient struct { - Msgs []ibctmtypes.MsgCreateClient `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostUpdateClient struct { - Msgs []ibctmtypes.MsgUpdateClient `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } - - PostSubmitMisbehaviour struct { - Msgs []ibctmtypes.MsgSubmitClientMisbehaviour `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } -) diff --git a/x/ibc/20-transfer/client/rest/swagger.go b/x/ibc/20-transfer/client/rest/swagger.go deleted file mode 100644 index 1514502c6b66..000000000000 --- a/x/ibc/20-transfer/client/rest/swagger.go +++ /dev/null @@ -1,20 +0,0 @@ -package rest - -import ( - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/ibc/20-transfer/types" -) - -type ( - QueryNextSequenceRecv struct { - Height int64 `json:"height"` - Result uint64 `json:"result"` - } - - PostTransfer struct { - Msgs []types.MsgTransfer `json:"msg" yaml:"msg"` - Fee authtypes.StdFee `json:"fee" yaml:"fee"` - Signatures []authtypes.StdSignature `json:"signatures" yaml:"signatures"` - Memo string `json:"memo" yaml:"memo"` - } -)