From 4dd3d7b02f2b8dedd62808ad041abec7ec1af2a4 Mon Sep 17 00:00:00 2001 From: Dreamer <745124335@qq.com> Date: Fri, 8 Sep 2023 10:04:01 +0800 Subject: [PATCH] clean code --- go.mod | 2 +- go.sum | 4 ++-- module.go | 12 ------------ types/tx.pb.go | 2 -- 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/go.mod b/go.mod index f2adf71..b00aade 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ module github.com/bianjieai/nft-transfer require ( github.com/cosmos/cosmos-sdk v0.47.4 - github.com/cosmos/ibc-go/v7 v7.3.0-rc0 + github.com/cosmos/ibc-go/v7 v7.3.0 ) require ( diff --git a/go.sum b/go.sum index 625c1e5..5577db2 100644 --- a/go.sum +++ b/go.sum @@ -332,8 +332,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-go/v7 v7.3.0-rc0 h1:IRXiOLgHpZ2My/Ro4+L/brgWWA3EgtxdnxymqIzVe3Q= -github.com/cosmos/ibc-go/v7 v7.3.0-rc0/go.mod h1:mUmaHFXpXrEdcxfdXyau+utZf14pGKVUiXwYftRZZfQ= +github.com/cosmos/ibc-go/v7 v7.3.0 h1:QtGeVMi/3JeLWuvEuC60sBHpAF40Oenx/y+bP8+wRRw= +github.com/cosmos/ibc-go/v7 v7.3.0/go.mod h1:mUmaHFXpXrEdcxfdXyau+utZf14pGKVUiXwYftRZZfQ= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/ledger-cosmos-go v0.12.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= diff --git a/module.go b/module.go index 158903a..141c635 100644 --- a/module.go +++ b/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "math/rand" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" @@ -134,22 +133,11 @@ func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.V } // AppModuleSimulation functions - // GenerateGenesisState creates a randomized GenState of the nft-transfer module. func (AppModule) GenerateGenesisState(simState *module.SimulationState) { simulation.RandomizedGenState(simState) } -// ProposalContents doesn't return any content functions for governance proposals. -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { - return nil -} - -// RandomizedParams creates randomized ibc nft-transfer param changes for the simulator. -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange { - return nil -} - // RegisterStoreDecoder registers a decoder for nft-transfer module's types func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = simulation.NewDecodeStore(am.keeper) diff --git a/types/tx.pb.go b/types/tx.pb.go index 0f62f26..f69538b 100644 --- a/types/tx.pb.go +++ b/types/tx.pb.go @@ -135,7 +135,6 @@ func (m *MsgTransferResponse) GetSequence() uint64 { } // MsgUpdateParams is the Msg/UpdateParams request type. -// type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` @@ -194,7 +193,6 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. -// type MsgUpdateParamsResponse struct { }