diff --git a/cmd/gnfd/cmd/root.go b/cmd/gnfd/cmd/root.go index 91b59bb15..736f5f879 100644 --- a/cmd/gnfd/cmd/root.go +++ b/cmd/gnfd/cmd/root.go @@ -45,7 +45,7 @@ import ( ) var ( - appConfig *app.AppConfig = app.NewDefaultAppConfig() + appConfig = app.NewDefaultAppConfig() ) // NewRootCmd creates a new root command for a Cosmos SDK application @@ -64,7 +64,7 @@ func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) { rootCmd := &cobra.Command{ Use: app.ShortName, - Short: "Stargate CosmosHub App", + Short: "Greenfield Daemon(server)", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { // set the default command outputs cmd.SetOut(cmd.OutOrStdout()) diff --git a/proto/greenfield/virtualgroup/genesis.proto b/proto/greenfield/virtualgroup/genesis.proto index 5e2600517..76bb6bb2d 100644 --- a/proto/greenfield/virtualgroup/genesis.proto +++ b/proto/greenfield/virtualgroup/genesis.proto @@ -6,8 +6,6 @@ import "greenfield/virtualgroup/params.proto"; option go_package = "github.com/bnb-chain/greenfield/x/virtualgroup/types"; -// this line is used by starport scaffolding # genesis/proto/import - // GenesisState defines the virtualgroup module's genesis state. // GenesisState defines the raw genesis transaction in JSON. message GenesisState { diff --git a/proto/greenfield/virtualgroup/query.proto b/proto/greenfield/virtualgroup/query.proto index b4856916d..0b71cc417 100644 --- a/proto/greenfield/virtualgroup/query.proto +++ b/proto/greenfield/virtualgroup/query.proto @@ -8,8 +8,6 @@ import "google/api/annotations.proto"; import "greenfield/virtualgroup/params.proto"; import "greenfield/virtualgroup/types.proto"; -// this line is used by starport scaffolding # 1 - option go_package = "github.com/bnb-chain/greenfield/x/virtualgroup/types"; // Query defines the gRPC query service. @@ -34,8 +32,6 @@ service Query { option (google.api.http).get = "/greenfield/virtualgroup/global_virtual_group_family"; } - // this line is used by starport scaffolding # 2 - // Queries a list of GlobalVirtualGroupFamilies items. rpc GlobalVirtualGroupFamilies(QueryGlobalVirtualGroupFamiliesRequest) returns (QueryGlobalVirtualGroupFamiliesResponse) { option (google.api.http).get = "/greenfield/virtualgroup/global_virtual_group_families"; @@ -80,7 +76,6 @@ message QueryGlobalVirtualGroupFamilyResponse { GlobalVirtualGroupFamily global_virtual_group_family = 1; } -// this line is used by starport scaffolding # 3 message QueryGlobalVirtualGroupFamiliesRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } diff --git a/proto/greenfield/virtualgroup/tx.proto b/proto/greenfield/virtualgroup/tx.proto index 1e2aa2d34..42c8eb3a2 100644 --- a/proto/greenfield/virtualgroup/tx.proto +++ b/proto/greenfield/virtualgroup/tx.proto @@ -4,7 +4,6 @@ package greenfield.virtualgroup; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/msg/v1/msg.proto"; -// this line is used by starport scaffolding # proto/tx/import import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "greenfield/common/approval.proto"; @@ -14,7 +13,6 @@ option go_package = "github.com/bnb-chain/greenfield/x/virtualgroup/types"; // Msg defines the Msg service. service Msg { - // this line is used by starport scaffolding # proto/tx/import rpc CreateGlobalVirtualGroup(MsgCreateGlobalVirtualGroup) returns (MsgCreateGlobalVirtualGroupResponse); rpc DeleteGlobalVirtualGroup(MsgDeleteGlobalVirtualGroup) returns (MsgDeleteGlobalVirtualGroupResponse); rpc Deposit(MsgDeposit) returns (MsgDepositResponse); @@ -172,7 +170,6 @@ message MsgSettle { message MsgSettleResponse {} -// this line is used by starport scaffolding # proto/tx/message message MsgStorageProviderExit { option (cosmos.msg.v1.signer) = "storage_provider"; diff --git a/x/bridge/client/cli/query.go b/x/bridge/client/cli/query.go index dbdb274b9..bc2328c82 100644 --- a/x/bridge/client/cli/query.go +++ b/x/bridge/client/cli/query.go @@ -21,7 +21,6 @@ func GetQueryCmd() *cobra.Command { } cmd.AddCommand(CmdQueryParams()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/bridge/client/cli/tx.go b/x/bridge/client/cli/tx.go index 3bc52b97e..8bd52660e 100644 --- a/x/bridge/client/cli/tx.go +++ b/x/bridge/client/cli/tx.go @@ -20,7 +20,6 @@ func GetTxCmd() *cobra.Command { } cmd.AddCommand(CmdTransferOut()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/bridge/module_simulation.go b/x/bridge/module_simulation.go index 86d4388c9..7484d5d0a 100644 --- a/x/bridge/module_simulation.go +++ b/x/bridge/module_simulation.go @@ -26,8 +26,6 @@ const ( opWeightMsgTransferOut = "op_weight_msg_transfer_out" // TODO: Determine the simulation weight value defaultWeightMsgTransferOut int = 100 - - // this line is used by starport scaffolding # simapp/module/const ) // GenerateGenesisState creates a randomized GenState of the module @@ -38,7 +36,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } bridgeGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&bridgeGenesis) } @@ -66,7 +63,5 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp bridgesimulation.SimulateMsgTransferOut(am.accountKeeper, am.bankKeeper, am.keeper), )) - // this line is used by starport scaffolding # simapp/module/operation - return operations } diff --git a/x/bridge/types/codec.go b/x/bridge/types/codec.go index a8614a4bf..36e2a98e2 100644 --- a/x/bridge/types/codec.go +++ b/x/bridge/types/codec.go @@ -9,7 +9,6 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgTransferOut{}, "bridge/TransferOut", nil) - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -19,7 +18,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/bridge/types/genesis_test.go b/x/bridge/types/genesis_test.go index df6fb8809..6f5c811c8 100644 --- a/x/bridge/types/genesis_test.go +++ b/x/bridge/types/genesis_test.go @@ -27,7 +27,6 @@ func TestGenesisState_Validate(t *testing.T) { BscTransferOutRelayerFee: sdkmath.NewInt(1), BscTransferOutAckRelayerFee: sdkmath.NewInt(0), }, - // this line is used by starport scaffolding # types/genesis/validField }, valid: true, }, diff --git a/x/challenge/client/cli/query.go b/x/challenge/client/cli/query.go index c084f1861..d1607e396 100644 --- a/x/challenge/client/cli/query.go +++ b/x/challenge/client/cli/query.go @@ -27,8 +27,6 @@ func GetQueryCmd() *cobra.Command { cmd.AddCommand(CmdAttestedChallenge()) cmd.AddCommand(CmdInturnChallenger()) - // this line is used by starport scaffolding # 1 - return cmd } diff --git a/x/challenge/client/cli/tx.go b/x/challenge/client/cli/tx.go index 33f6fe8ce..8c6b02a5b 100644 --- a/x/challenge/client/cli/tx.go +++ b/x/challenge/client/cli/tx.go @@ -31,7 +31,6 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdSubmit()) cmd.AddCommand(CmdAttest()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/challenge/genesis.go b/x/challenge/genesis.go index 409be3048..5f48ce15c 100644 --- a/x/challenge/genesis.go +++ b/x/challenge/genesis.go @@ -9,7 +9,6 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) if err != nil { panic(err) @@ -20,8 +19,5 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Params = k.GetParams(ctx) - - // this line is used by starport scaffolding # genesis/module/export - return genesis } diff --git a/x/challenge/genesis_test.go b/x/challenge/genesis_test.go index 0aaed9ffa..2c9d8dbbd 100644 --- a/x/challenge/genesis_test.go +++ b/x/challenge/genesis_test.go @@ -20,8 +20,6 @@ import ( func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ Params: types.DefaultParams(), - - // this line is used by starport scaffolding # genesis/test/state } k, ctx := makeKeeper(t) @@ -31,8 +29,6 @@ func TestGenesis(t *testing.T) { nullify.Fill(&genesisState) nullify.Fill(got) - - // this line is used by starport scaffolding # genesis/test/assert } func makeKeeper(t *testing.T) (*keeper.Keeper, sdk.Context) { diff --git a/x/challenge/module_simulation.go b/x/challenge/module_simulation.go index 971952cfd..5fca7296f 100644 --- a/x/challenge/module_simulation.go +++ b/x/challenge/module_simulation.go @@ -30,8 +30,6 @@ const ( opWeightMsgAttest = "op_weight_msg_attest" // TODO: Determine the simulation weight value defaultWeightMsgAttest int = 100 - - // this line is used by starport scaffolding # simapp/module/const ) // GenerateGenesisState creates a randomized GenState of the module @@ -42,7 +40,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } challengeGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&challengeGenesis) } @@ -81,7 +78,5 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp challengesimulation.SimulateMsgAttest(am.accountKeeper, am.bankKeeper, am.keeper), )) - // this line is used by starport scaffolding # simapp/module/operation - return operations } diff --git a/x/challenge/types/codec.go b/x/challenge/types/codec.go index ee74bc58c..ef92d5214 100644 --- a/x/challenge/types/codec.go +++ b/x/challenge/types/codec.go @@ -10,7 +10,6 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgSubmit{}, "challenge/Submit", nil) cdc.RegisterConcrete(&MsgAttest{}, "challenge/Attest", nil) - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -23,7 +22,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/challenge/types/genesis.go b/x/challenge/types/genesis.go index f2689b73b..bdb9f4151 100644 --- a/x/challenge/types/genesis.go +++ b/x/challenge/types/genesis.go @@ -6,7 +6,6 @@ const DefaultIndex uint64 = 1 // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), } } @@ -14,7 +13,5 @@ func DefaultGenesis() *GenesisState { // Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate - return gs.Params.Validate() } diff --git a/x/challenge/types/genesis_test.go b/x/challenge/types/genesis_test.go index 01b212b69..855d971d4 100644 --- a/x/challenge/types/genesis_test.go +++ b/x/challenge/types/genesis_test.go @@ -23,12 +23,9 @@ func TestGenesisState_Validate(t *testing.T) { desc: "valid genesis state", genState: &types.GenesisState{ Params: types.DefaultParams(), - - // this line is used by starport scaffolding # types/genesis/validField }, valid: true, }, - // this line is used by starport scaffolding # types/genesis/testcase } { t.Run(tc.desc, func(t *testing.T) { err := tc.genState.Validate() diff --git a/x/gensp/genesis.go b/x/gensp/genesis.go index 9d16e516d..ed6a4a71f 100644 --- a/x/gensp/genesis.go +++ b/x/gensp/genesis.go @@ -13,7 +13,6 @@ func InitGenesis(ctx sdk.Context, stakingKeeper types.StakingKeeper, deliverTx deliverTxfn, genesisState types.GenesisState, txEncodingConfig client.TxEncodingConfig, ) (validators []abci.ValidatorUpdate, err error) { - // this line is used by starport scaffolding # genesis/module/init if len(genesisState.GenspTxs) > 0 { validators, err = DeliverGenTxs(ctx, genesisState.GenspTxs, stakingKeeper, deliverTx, txEncodingConfig) } diff --git a/x/gensp/types/codec.go b/x/gensp/types/codec.go index 8eb43994e..e154a6686 100644 --- a/x/gensp/types/codec.go +++ b/x/gensp/types/codec.go @@ -6,13 +6,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(cdc *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 -} +func RegisterCodec(cdc *codec.LegacyAmino) {} func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - // this line is used by starport scaffolding # 3 - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/payment/client/cli/query.go b/x/payment/client/cli/query.go index 7c130eb7b..c50b7a531 100644 --- a/x/payment/client/cli/query.go +++ b/x/payment/client/cli/query.go @@ -30,7 +30,6 @@ func GetQueryCmd() *cobra.Command { cmd.AddCommand(CmdDynamicBalance()) cmd.AddCommand(CmdGetPaymentAccountsByOwner()) cmd.AddCommand(CmdListAutoSettleRecord()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/payment/client/cli/tx.go b/x/payment/client/cli/tx.go index 776341d06..af3305d07 100644 --- a/x/payment/client/cli/tx.go +++ b/x/payment/client/cli/tx.go @@ -34,7 +34,6 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdDeposit()) cmd.AddCommand(CmdWithdraw()) cmd.AddCommand(CmdDisableRefund()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/payment/genesis.go b/x/payment/genesis.go index 6594c2349..13f4b1b74 100644 --- a/x/payment/genesis.go +++ b/x/payment/genesis.go @@ -40,7 +40,6 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.PaymentAccountCountList = k.GetAllPaymentAccountCount(ctx) genesis.PaymentAccountList = k.GetAllPaymentAccount(ctx) genesis.AutoSettleRecordList = k.GetAllAutoSettleRecord(ctx) - // this line is used by starport scaffolding # genesis/module/export return genesis } diff --git a/x/payment/module_simulation.go b/x/payment/module_simulation.go index 99746bd8a..26da0dd2d 100644 --- a/x/payment/module_simulation.go +++ b/x/payment/module_simulation.go @@ -21,10 +21,6 @@ var ( _ = baseapp.Paramspace ) -const ( -// this line is used by starport scaffolding # simapp/module/const -) - // GenerateGenesisState creates a randomized GenState of the module func (AppModule) GenerateGenesisState(simState *module.SimulationState) { accs := make([]string, len(simState.Accounts)) @@ -33,7 +29,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } paymentGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&paymentGenesis) } @@ -49,6 +44,5 @@ func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} // WeightedOperations returns the all the gov module operations with their respective weights. func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { operations := make([]simtypes.WeightedOperation, 0) - // this line is used by starport scaffolding # simapp/module/operation return operations } diff --git a/x/payment/types/codec.go b/x/payment/types/codec.go index d90639591..394371c04 100644 --- a/x/payment/types/codec.go +++ b/x/payment/types/codec.go @@ -12,7 +12,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgDeposit{}, "payment/Deposit", nil) cdc.RegisterConcrete(&MsgWithdraw{}, "payment/Withdraw", nil) cdc.RegisterConcrete(&MsgDisableRefund{}, "payment/DisableRefund", nil) - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -31,7 +30,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/payment/types/genesis.go b/x/payment/types/genesis.go index 2840d7f10..d0a72eb7c 100644 --- a/x/payment/types/genesis.go +++ b/x/payment/types/genesis.go @@ -16,8 +16,7 @@ func DefaultGenesis() *GenesisState { PaymentAccountCountList: []PaymentAccountCount{}, PaymentAccountList: []PaymentAccount{}, AutoSettleRecordList: []AutoSettleRecord{}, - // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), + Params: DefaultParams(), } } @@ -65,7 +64,6 @@ func (gs GenesisState) Validate() error { } autoSettleRecordIndexMap[index] = struct{}{} } - // this line is used by starport scaffolding # genesis/types/validate return gs.Params.Validate() } diff --git a/x/permission/genesis.go b/x/permission/genesis.go index 29b8e5478..d1c9a7b6a 100644 --- a/x/permission/genesis.go +++ b/x/permission/genesis.go @@ -9,7 +9,6 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) if err != nil { panic(err) @@ -20,8 +19,5 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Params = k.GetParams(ctx) - - // this line is used by starport scaffolding # genesis/module/export - return genesis } diff --git a/x/permission/genesis_test.go b/x/permission/genesis_test.go index 52f0b4146..3f317fe4a 100644 --- a/x/permission/genesis_test.go +++ b/x/permission/genesis_test.go @@ -21,8 +21,6 @@ import ( func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ Params: types.DefaultParams(), - - // this line is used by starport scaffolding # genesis/test/state } k, ctx := makeKeeper(t) permission.InitGenesis(ctx, *k, genesisState) @@ -31,8 +29,6 @@ func TestGenesis(t *testing.T) { nullify.Fill(&genesisState) nullify.Fill(got) - - // this line is used by starport scaffolding # genesis/test/assert } func makeKeeper(t *testing.T) (*keeper.Keeper, sdk.Context) { diff --git a/x/permission/types/codec.go b/x/permission/types/codec.go index d2f5211f9..c93b7aea0 100644 --- a/x/permission/types/codec.go +++ b/x/permission/types/codec.go @@ -7,9 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(cdc *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 -} +func RegisterCodec(cdc *codec.LegacyAmino) {} func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // this line is used by starport scaffolding # 3 diff --git a/x/permission/types/genesis.go b/x/permission/types/genesis.go index f2689b73b..bdb9f4151 100644 --- a/x/permission/types/genesis.go +++ b/x/permission/types/genesis.go @@ -6,7 +6,6 @@ const DefaultIndex uint64 = 1 // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), } } @@ -14,7 +13,5 @@ func DefaultGenesis() *GenesisState { // Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate - return gs.Params.Validate() } diff --git a/x/permission/types/genesis_test.go b/x/permission/types/genesis_test.go index 52d22e8f4..6b48c79d0 100644 --- a/x/permission/types/genesis_test.go +++ b/x/permission/types/genesis_test.go @@ -19,7 +19,6 @@ func TestGenesisState_Validate(t *testing.T) { genState: types.DefaultGenesis(), valid: true, }, - // this line is used by starport scaffolding # types/genesis/testcase } { t.Run(tc.desc, func(t *testing.T) { err := tc.genState.Validate() diff --git a/x/sp/client/cli/query.go b/x/sp/client/cli/query.go index b8dcdc820..f0cfed775 100644 --- a/x/sp/client/cli/query.go +++ b/x/sp/client/cli/query.go @@ -33,7 +33,6 @@ func GetQueryCmd() *cobra.Command { CmdStorageProviderGlobalPrice(), ) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/sp/client/cli/tx.go b/x/sp/client/cli/tx.go index 4b5b3c223..925e86bf7 100644 --- a/x/sp/client/cli/tx.go +++ b/x/sp/client/cli/tx.go @@ -41,8 +41,6 @@ func GetTxCmd() *cobra.Command { CmdUpdateStorageProviderStoragePrice(), ) - // this line is used by starport scaffolding # 1 - return spTxCmd } diff --git a/x/sp/genesis.go b/x/sp/genesis.go index 4da798b77..60698c12e 100644 --- a/x/sp/genesis.go +++ b/x/sp/genesis.go @@ -9,7 +9,6 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) if err != nil { panic(err) @@ -23,7 +22,6 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Params = k.GetParams(ctx) - // this line is used by starport scaffolding # genesis/module/export genesis.StorageProviders = k.GetAllStorageProviders(ctx) genesis.SpStoragePriceList = k.GetAllSpStoragePrice(ctx) diff --git a/x/sp/genesis_test.go b/x/sp/genesis_test.go index e72346c31..4717942c8 100644 --- a/x/sp/genesis_test.go +++ b/x/sp/genesis_test.go @@ -54,7 +54,6 @@ func TestGenesis(t *testing.T) { Status: types.STATUS_IN_SERVICE, }, }, - // this line is used by starport scaffolding # genesis/test/state } ctx := testCtx.Ctx @@ -65,6 +64,4 @@ func TestGenesis(t *testing.T) { nullify.Fill(&genesisState) nullify.Fill(got) - - // this line is used by starport scaffolding # genesis/test/assert } diff --git a/x/sp/module_simulation.go b/x/sp/module_simulation.go index 35d2a7207..e0219eab5 100644 --- a/x/sp/module_simulation.go +++ b/x/sp/module_simulation.go @@ -20,10 +20,6 @@ var ( _ = baseapp.Paramspace ) -const ( -// this line is used by starport scaffolding # simapp/module/const -) - // GenerateGenesisState creates a randomized GenState of the module func (AppModule) GenerateGenesisState(simState *module.SimulationState) { accs := make([]string, len(simState.Accounts)) @@ -32,7 +28,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } spGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&spGenesis) } @@ -48,6 +43,5 @@ func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} // WeightedOperations returns the all the gov module operations with their respective weights. func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { operations := make([]simtypes.WeightedOperation, 0) - // this line is used by starport scaffolding # simapp/module/operation return operations } diff --git a/x/sp/types/codec.go b/x/sp/types/codec.go index 0bcdd1c44..e3d791588 100644 --- a/x/sp/types/codec.go +++ b/x/sp/types/codec.go @@ -15,8 +15,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgUpdateSpStoragePrice{}, "sp/UpdateSpStoragePrice", nil) cdc.RegisterConcrete(&DepositAuthorization{}, "sp/DepositAuthorization", nil) cdc.RegisterConcrete(&MsgUpdateStorageProviderStatus{}, "sp/UpdateSpStatus", nil) - - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -43,7 +41,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { (*authz.Authorization)(nil), &DepositAuthorization{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/sp/types/genesis.go b/x/sp/types/genesis.go index a62d1a194..87c4f01f7 100644 --- a/x/sp/types/genesis.go +++ b/x/sp/types/genesis.go @@ -1,14 +1,11 @@ package types -// this line is used by starport scaffolding # genesis/types/import - // DefaultIndex is the default global index const DefaultIndex uint64 = 1 // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), StorageProviders: []StorageProvider{}, @@ -18,7 +15,5 @@ func DefaultGenesis() *GenesisState { // Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate - return gs.Params.Validate() } diff --git a/x/sp/types/genesis_test.go b/x/sp/types/genesis_test.go index 01addf27b..1a8031d04 100644 --- a/x/sp/types/genesis_test.go +++ b/x/sp/types/genesis_test.go @@ -23,11 +23,9 @@ func TestGenesisState_Validate(t *testing.T) { desc: "valid genesis state", genState: &types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # types/genesis/validField }, valid: true, }, - // this line is used by starport scaffolding # types/genesis/testcase } { t.Run(tc.desc, func(t *testing.T) { err := tc.genState.Validate() diff --git a/x/storage/client/cli/query.go b/x/storage/client/cli/query.go index 65d784838..8cb9abe66 100644 --- a/x/storage/client/cli/query.go +++ b/x/storage/client/cli/query.go @@ -41,8 +41,6 @@ func GetQueryCmd() *cobra.Command { CmdQueryGroupPolicy(), ) - // this line is used by starport scaffolding # 1 - return storageQueryCmd } diff --git a/x/storage/client/cli/tx.go b/x/storage/client/cli/tx.go index 469a8d91f..db6cf8cb5 100644 --- a/x/storage/client/cli/tx.go +++ b/x/storage/client/cli/tx.go @@ -67,7 +67,6 @@ func GetTxCmd() *cobra.Command { CmdPutPolicy(), CmdDeletePolicy(), ) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/storage/genesis.go b/x/storage/genesis.go index 386fbe80a..ae532215b 100644 --- a/x/storage/genesis.go +++ b/x/storage/genesis.go @@ -9,7 +9,6 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) if err != nil { panic(err) @@ -20,6 +19,5 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Params = k.GetParams(ctx) - // this line is used by starport scaffolding # genesis/module/export return genesis } diff --git a/x/storage/genesis_test.go b/x/storage/genesis_test.go index 56471b5f3..d69008e38 100644 --- a/x/storage/genesis_test.go +++ b/x/storage/genesis_test.go @@ -43,8 +43,6 @@ func makeKeeper(t *testing.T) (*keeper.Keeper, sdk.Context) { func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ Params: types.DefaultParams(), - - // this line is used by starport scaffolding # genesis/test/state } k, ctx := makeKeeper(t) @@ -54,6 +52,4 @@ func TestGenesis(t *testing.T) { nullify.Fill(&genesisState) nullify.Fill(got) - - // this line is used by starport scaffolding # genesis/test/assert } diff --git a/x/storage/module_simulation.go b/x/storage/module_simulation.go index 6d58c4a58..c62146bf7 100644 --- a/x/storage/module_simulation.go +++ b/x/storage/module_simulation.go @@ -20,10 +20,6 @@ var ( _ = baseapp.Paramspace ) -const ( -// this line is used by starport scaffolding # simapp/module/const -) - // GenerateGenesisState creates a randomized GenState of the module func (AppModule) GenerateGenesisState(simState *module.SimulationState) { accs := make([]string, len(simState.Accounts)) @@ -32,7 +28,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } greenfieldGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&greenfieldGenesis) } @@ -48,7 +43,5 @@ func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} // WeightedOperations returns the all the gov module operations with their respective weights. func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { operations := make([]simtypes.WeightedOperation, 0) - - // this line is used by starport scaffolding # simapp/module/operation return operations } diff --git a/x/storage/types/codec.go b/x/storage/types/codec.go index 3aaf068b7..241228f30 100644 --- a/x/storage/types/codec.go +++ b/x/storage/types/codec.go @@ -27,7 +27,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCompleteMigrateBucket{}, "storage/CompleteMigrateBucket", nil) cdc.RegisterConcrete(&MsgCancelMigrateBucket{}, "storage/CancelMigrateBucket", nil) cdc.RegisterConcrete(&MsgRejectMigrateBucket{}, "storage/RejectMigrateBucket", nil) - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -116,7 +115,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgRejectMigrateBucket{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/storage/types/genesis.go b/x/storage/types/genesis.go index b89c5f179..9d633ecd7 100644 --- a/x/storage/types/genesis.go +++ b/x/storage/types/genesis.go @@ -3,7 +3,6 @@ package types // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), } } @@ -11,7 +10,5 @@ func DefaultGenesis() *GenesisState { // Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate - return gs.Params.Validate() } diff --git a/x/storage/types/genesis_test.go b/x/storage/types/genesis_test.go index 5cf47bdb6..e71c8ae55 100644 --- a/x/storage/types/genesis_test.go +++ b/x/storage/types/genesis_test.go @@ -52,12 +52,9 @@ func TestGenesisState_Validate(t *testing.T) { MinQuotaUpdateInterval: 10000, MaxLocalVirtualGroupNumPerBucket: 100, }, - - // this line is used by starport scaffolding # types/genesis/validField }, valid: true, }, - // this line is used by starport scaffolding # types/genesis/testcase } { t.Run(tc.desc, func(t *testing.T) { err := tc.genState.Validate() diff --git a/x/virtualgroup/client/cli/query.go b/x/virtualgroup/client/cli/query.go index 7193e9ffd..7e932f5a3 100644 --- a/x/virtualgroup/client/cli/query.go +++ b/x/virtualgroup/client/cli/query.go @@ -28,8 +28,6 @@ func GetQueryCmd() *cobra.Command { cmd.AddCommand(CmdGlobalVirtualGroupFamilies()) cmd.AddCommand(CmdQueryParams()) - // this line is used by starport scaffolding # 1 - return cmd } diff --git a/x/virtualgroup/client/cli/tx.go b/x/virtualgroup/client/cli/tx.go index 38567d27a..5a71891dc 100644 --- a/x/virtualgroup/client/cli/tx.go +++ b/x/virtualgroup/client/cli/tx.go @@ -24,7 +24,6 @@ func GetTxCmd() *cobra.Command { } cmd.AddCommand(CmdSettle()) - // this line is used by starport scaffolding # 1 return cmd } diff --git a/x/virtualgroup/genesis.go b/x/virtualgroup/genesis.go index 4e0649909..13154599d 100644 --- a/x/virtualgroup/genesis.go +++ b/x/virtualgroup/genesis.go @@ -9,7 +9,6 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) if err != nil { panic(err) @@ -21,8 +20,5 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Params = k.GetParams(ctx) - - // this line is used by starport scaffolding # genesis/module/export - return genesis } diff --git a/x/virtualgroup/keeper/genesis_test.go b/x/virtualgroup/keeper/genesis_test.go index 49adbad00..ca530c314 100644 --- a/x/virtualgroup/keeper/genesis_test.go +++ b/x/virtualgroup/keeper/genesis_test.go @@ -12,8 +12,6 @@ import ( func (s *TestSuite) TestGenesis() { genesisState := types.GenesisState{ Params: types.DefaultParams(), - - // this line is used by starport scaffolding # genesis/test/state } s.accountKeeper.EXPECT().GetModuleAccount(gomock.Any(), gomock.Any()).Return(types2.NewEmptyModuleAccount(types.ModuleName)) diff --git a/x/virtualgroup/module_simulation.go b/x/virtualgroup/module_simulation.go index 1862eda20..ecc47c65a 100644 --- a/x/virtualgroup/module_simulation.go +++ b/x/virtualgroup/module_simulation.go @@ -39,8 +39,6 @@ const ( opWeightMsgCancelSwapOut = "op_weight_msg_cancel_swap_out" // TODO: Determine the simulation weight value defaultWeightMsgCancelSwapOut int = 100 - - // this line is used by starport scaffolding # simapp/module/const ) // GenerateGenesisState creates a randomized GenState of the module. @@ -51,7 +49,6 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } virtualgroupGenesis := types.GenesisState{ Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&virtualgroupGenesis) } @@ -112,8 +109,6 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp virtualgroupsimulation.SimulateMsgCancelSwapOut(am.accountKeeper, am.bankKeeper, am.keeper), )) - // this line is used by starport scaffolding # simapp/module/operation - return operations } @@ -152,6 +147,5 @@ func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.Wei return nil }, ), - // this line is used by starport scaffolding # simapp/module/OpMsg } } diff --git a/x/virtualgroup/types/codec.go b/x/virtualgroup/types/codec.go index 903cac2ac..d3c1444e0 100644 --- a/x/virtualgroup/types/codec.go +++ b/x/virtualgroup/types/codec.go @@ -12,7 +12,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCompleteStorageProviderExit{}, "virtualgroup/CompleteStorageProviderExit", nil) cdc.RegisterConcrete(&MsgCompleteSwapOut{}, "virtualgroup/CompleteSwapOut", nil) cdc.RegisterConcrete(&MsgCancelSwapOut{}, "virtualgroup/CancelSwapOut", nil) - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -49,7 +48,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCancelSwapOut{}, ) - // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/virtualgroup/types/genesis.go b/x/virtualgroup/types/genesis.go index e523553eb..bdb9f4151 100644 --- a/x/virtualgroup/types/genesis.go +++ b/x/virtualgroup/types/genesis.go @@ -6,7 +6,6 @@ const DefaultIndex uint64 = 1 // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), } } @@ -14,6 +13,5 @@ func DefaultGenesis() *GenesisState { // Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate return gs.Params.Validate() } diff --git a/x/virtualgroup/types/query.pb.go b/x/virtualgroup/types/query.pb.go index 36fdca30c..87be1e8f6 100644 --- a/x/virtualgroup/types/query.pb.go +++ b/x/virtualgroup/types/query.pb.go @@ -383,7 +383,6 @@ func (m *QueryGlobalVirtualGroupFamilyResponse) GetGlobalVirtualGroupFamily() *G return nil } -// this line is used by starport scaffolding # 3 type QueryGlobalVirtualGroupFamiliesRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } diff --git a/x/virtualgroup/types/tx.pb.go b/x/virtualgroup/types/tx.pb.go index b05d00332..8b5d07a78 100644 --- a/x/virtualgroup/types/tx.pb.go +++ b/x/virtualgroup/types/tx.pb.go @@ -952,7 +952,6 @@ func (m *MsgSettleResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSettleResponse proto.InternalMessageInfo -// this line is used by starport scaffolding # proto/tx/message type MsgStorageProviderExit struct { // storage_provider defines the operator account address of the storage provider who want to exit from the greenfield storage network. StorageProvider string `protobuf:"bytes,1,opt,name=storage_provider,json=storageProvider,proto3" json:"storage_provider,omitempty"` @@ -1221,7 +1220,6 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { - // this line is used by starport scaffolding # proto/tx/import CreateGlobalVirtualGroup(ctx context.Context, in *MsgCreateGlobalVirtualGroup, opts ...grpc.CallOption) (*MsgCreateGlobalVirtualGroupResponse, error) DeleteGlobalVirtualGroup(ctx context.Context, in *MsgDeleteGlobalVirtualGroup, opts ...grpc.CallOption) (*MsgDeleteGlobalVirtualGroupResponse, error) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) @@ -1345,7 +1343,6 @@ func (c *msgClient) CancelSwapOut(ctx context.Context, in *MsgCancelSwapOut, opt // MsgServer is the server API for Msg service. type MsgServer interface { - // this line is used by starport scaffolding # proto/tx/import CreateGlobalVirtualGroup(context.Context, *MsgCreateGlobalVirtualGroup) (*MsgCreateGlobalVirtualGroupResponse, error) DeleteGlobalVirtualGroup(context.Context, *MsgDeleteGlobalVirtualGroup) (*MsgDeleteGlobalVirtualGroupResponse, error) Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)