diff --git a/app/app.go b/app/app.go index 7a7a3cf2f..67e64d245 100644 --- a/app/app.go +++ b/app/app.go @@ -80,6 +80,7 @@ import ( slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + crontypes "github.com/scrtlabs/SecretNetwork/x/cron/types" "cosmossdk.io/log" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -580,6 +581,7 @@ func SetOrderBeginBlockers(app *SecretNetworkApp) { compute.ModuleName, reg.ModuleName, ibcswitchtypes.ModuleName, + crontypes.ModuleName, ) } @@ -613,6 +615,7 @@ func SetOrderInitGenesis(app *SecretNetworkApp) { ibcfeetypes.ModuleName, feegrant.ModuleName, + crontypes.ModuleName, ) } @@ -642,5 +645,6 @@ func SetOrderEndBlockers(app *SecretNetworkApp) { compute.ModuleName, reg.ModuleName, ibcswitchtypes.ModuleName, + crontypes.ModuleName, ) } diff --git a/app/config.go b/app/config.go index d12991806..5735f65b7 100644 --- a/app/config.go +++ b/app/config.go @@ -33,6 +33,7 @@ import ( "github.com/cosmos/ibc-go/v8/modules/apps/transfer" ibc "github.com/cosmos/ibc-go/v8/modules/core" ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" + "github.com/scrtlabs/SecretNetwork/x/cron" ibcswitch "github.com/scrtlabs/SecretNetwork/x/emergencybutton" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -78,6 +79,7 @@ var mbasics = module.NewBasicManager( ica.AppModuleBasic{}, packetforwardrouter.AppModuleBasic{}, ibcfee.AppModuleBasic{}, + cron.AppModuleBasic{}, }, // our stuff customModuleBasics()..., diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 27c651092..84bab8bcb 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -54,6 +54,9 @@ import ( ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" "github.com/scrtlabs/SecretNetwork/x/compute" + cronkeeper "github.com/scrtlabs/SecretNetwork/x/cron/keeper" + crontypes "github.com/scrtlabs/SecretNetwork/x/cron/types" + reg "github.com/scrtlabs/SecretNetwork/x/registration" ibcpacketforwardkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/keeper" @@ -80,6 +83,7 @@ type SecretAppKeepers struct { AuthzKeeper *authzkeeper.Keeper BankKeeper *bankkeeper.BaseKeeper CapabilityKeeper *capabilitykeeper.Keeper + CronKeeper *cronkeeper.Keeper StakingKeeper *stakingkeeper.Keeper SlashingKeeper *slashingkeeper.Keeper MintKeeper *mintkeeper.Keeper @@ -240,6 +244,15 @@ func (ak *SecretAppKeepers) InitSdkKeepers( ) ak.CrisisKeeper = crisisKeeper + cronKeeper := cronkeeper.NewKeeper( + appCodec, + ak.keys[crontypes.StoreKey], + ak.memKeys[crontypes.StoreKey], + ak.AccountKeeper, + authtypes.NewModuleAddress(crontypes.ModuleName).String(), + ) + ak.CronKeeper = cronKeeper + feegrantKeeper := feegrantkeeper.NewKeeper( appCodec, runtime.NewKVStoreService(ak.keys[feegrant.StoreKey]), @@ -543,6 +556,8 @@ func (ak *SecretAppKeepers) InitCustomKeepers( ak.ComputeKeeper = &computeKeeper wasmHooks.ContractKeeper = ak.ComputeKeeper + ak.CronKeeper.WasmMsgServer = compute.NewMsgServerImpl(*ak.ComputeKeeper) + // Compute receive: Switch -> Fee -> Packet Forward -> WASM Hooks var computeStack porttypes.IBCModule computeStack = compute.NewIBCHandler(ak.ComputeKeeper, ak.IbcKeeper.ChannelKeeper, ak.IbcFeeKeeper) @@ -596,6 +611,7 @@ func (ak *SecretAppKeepers) InitKeys() { ibcswitch.StoreKey, ibchookstypes.StoreKey, crisistypes.StoreKey, + crontypes.StoreKey, ) ak.tKeys = storetypes.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -621,6 +637,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(reg.ModuleName) paramsKeeper.Subspace(ibcpacketforwardtypes.ModuleName).WithKeyTable(ibcpacketforwardtypes.ParamKeyTable()) paramsKeeper.Subspace(ibcswitch.ModuleName).WithKeyTable(ibcswitchtypes.ParamKeyTable()) + paramsKeeper.Subspace(crontypes.ModuleName) return paramsKeeper } diff --git a/app/modules.go b/app/modules.go index 2605cb8ca..a3e3d6c57 100644 --- a/app/modules.go +++ b/app/modules.go @@ -40,6 +40,8 @@ import ( ibc "github.com/cosmos/ibc-go/v8/modules/core" ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" "github.com/scrtlabs/SecretNetwork/x/compute" + "github.com/scrtlabs/SecretNetwork/x/cron" + crontypes "github.com/scrtlabs/SecretNetwork/x/cron/types" ibcswitch "github.com/scrtlabs/SecretNetwork/x/emergencybutton" reg "github.com/scrtlabs/SecretNetwork/x/registration" ) @@ -56,6 +58,7 @@ var ModuleAccountPermissions = map[string][]string{ ibcfeetypes.ModuleName: nil, ibcswitch.ModuleName: nil, compute.ModuleName: {authtypes.Burner}, + crontypes.ModuleName: nil, } func Modules( @@ -90,5 +93,6 @@ func Modules( packetforward.NewAppModule(app.AppKeepers.PacketForwardKeeper, app.AppKeepers.GetSubspace(packetforwardtypes.ModuleName)), ibcfee.NewAppModule(app.AppKeepers.IbcFeeKeeper), ibcswitch.NewAppModule(app.AppKeepers.IbcSwitchKeeper, app.AppKeepers.GetSubspace(ibcswitch.ModuleName)), + cron.NewAppModule(app.appCodec, *app.AppKeepers.CronKeeper), } } diff --git a/go.mod b/go.mod index a4d2adcf7..e8c67077b 100644 --- a/go.mod +++ b/go.mod @@ -69,8 +69,10 @@ require ( github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/rosetta v0.50.4 github.com/gogo/protobuf v1.3.2 + github.com/hashicorp/go-metrics v0.5.3 github.com/scrtlabs/tm-secret-enclave v1.11.8 golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 + gopkg.in/yaml.v2 v2.4.0 ) require ( @@ -152,7 +154,6 @@ require ( github.com/hashicorp/go-getter v1.7.4 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.3 // indirect github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect @@ -224,7 +225,6 @@ require ( google.golang.org/api v0.186.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect nhooyr.io/websocket v1.8.6 // indirect diff --git a/proto/secret/cron/genesis.proto b/proto/secret/cron/genesis.proto index 9a570c257..9e8644c85 100644 --- a/proto/secret/cron/genesis.proto +++ b/proto/secret/cron/genesis.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package neutron.cron; +package secret.cron; import "gogoproto/gogo.proto"; -import "neutron/cron/params.proto"; -import "neutron/cron/schedule.proto"; +import "secret/cron/params.proto"; +import "secret/cron/schedule.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types"; // Defines the cron module's genesis state. message GenesisState { diff --git a/proto/secret/cron/params.proto b/proto/secret/cron/params.proto index 0018d73ed..d55884e3d 100644 --- a/proto/secret/cron/params.proto +++ b/proto/secret/cron/params.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package neutron.cron; +package secret.cron; import "gogoproto/gogo.proto"; -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types"; // Defines the parameters for the module. message Params { diff --git a/proto/secret/cron/query.proto b/proto/secret/cron/query.proto index c75045c1e..ca5015168 100644 --- a/proto/secret/cron/query.proto +++ b/proto/secret/cron/query.proto @@ -1,30 +1,30 @@ syntax = "proto3"; -package neutron.cron; +package secret.cron; import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "neutron/cron/params.proto"; -import "neutron/cron/schedule.proto"; +import "secret/cron/params.proto"; +import "secret/cron/schedule.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types"; // Defines the gRPC querier service. service Query { // Queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/neutron/cron/params"; + option (google.api.http).get = "/secret/cron/params"; } // Queries a Schedule by name. rpc Schedule(QueryGetScheduleRequest) returns (QueryGetScheduleResponse) { - option (google.api.http).get = "/neutron/cron/schedule/{name}"; + option (google.api.http).get = "/secret/cron/schedule/{name}"; } // Queries a list of Schedule items. rpc Schedules(QuerySchedulesRequest) returns (QuerySchedulesResponse) { - option (google.api.http).get = "/neutron/cron/schedule"; + option (google.api.http).get = "/secret/cron/schedule"; } // this line is used by starport scaffolding # 2 diff --git a/proto/secret/cron/schedule.proto b/proto/secret/cron/schedule.proto index 7cfa2caa6..96bf2db9d 100644 --- a/proto/secret/cron/schedule.proto +++ b/proto/secret/cron/schedule.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package neutron.cron; +package secret.cron; import "gogoproto/gogo.proto"; -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types"; // Defines when messages will be executed in the block enum ExecutionStage { diff --git a/proto/secret/cron/tx.proto b/proto/secret/cron/tx.proto index be869cdd8..43b177fa3 100644 --- a/proto/secret/cron/tx.proto +++ b/proto/secret/cron/tx.proto @@ -1,16 +1,16 @@ syntax = "proto3"; -package neutron.cron; +package secret.cron; import "amino/amino.proto"; import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; -import "neutron/cron/params.proto"; -import "neutron/cron/schedule.proto"; +import "secret/cron/params.proto"; +import "secret/cron/schedule.proto"; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types"; // Defines the Msg service. service Msg { diff --git a/proto/secret/cron/v1/schedule.proto b/proto/secret/cron/v1/schedule.proto index 3593f5058..deecc36ec 100644 --- a/proto/secret/cron/v1/schedule.proto +++ b/proto/secret/cron/v1/schedule.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package neutron.cron.v1; +package secret.cron.v1; import "gogoproto/gogo.proto"; -option go_package = "github.com/neutron-org/neutron/v5/x/cron/types/v1"; +option go_package = "github.com/scrtlabs/SecretNetwork/x/cron/types/v1"; // Defines the schedule for execution message Schedule { diff --git a/x/cron/client/cli/query.go b/x/cron/client/cli/query.go index 0b8d433e1..a334e6c18 100644 --- a/x/cron/client/cli/query.go +++ b/x/cron/client/cli/query.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/cron/client/cli/query_params.go b/x/cron/client/cli/query_params.go index 0500a73ce..5965cd126 100644 --- a/x/cron/client/cli/query_params.go +++ b/x/cron/client/cli/query_params.go @@ -5,9 +5,8 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/scrtlabs/SecretNetwork/x/cron/types" "github.com/spf13/cobra" - - "github.com/neutron-org/neutron/v5/x/cron/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/cron/client/cli/query_schedule.go b/x/cron/client/cli/query_schedule.go index 08142d832..f29cc63b7 100644 --- a/x/cron/client/cli/query_schedule.go +++ b/x/cron/client/cli/query_schedule.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) func CmdListSchedule() *cobra.Command { diff --git a/x/cron/client/cli/query_schedule_test.go b/x/cron/client/cli/query_schedule_test.go deleted file mode 100644 index 27970dd18..000000000 --- a/x/cron/client/cli/query_schedule_test.go +++ /dev/null @@ -1,162 +0,0 @@ -package cli_test - -import ( - "fmt" - "strconv" - "testing" - - tmcli "github.com/cometbft/cometbft/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/neutron-org/neutron/v5/testutil/common/nullify" - "github.com/neutron-org/neutron/v5/testutil/cron/network" - "github.com/neutron-org/neutron/v5/x/cron/client/cli" - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func networkWithScheduleObjects(t *testing.T, n int) (*network.Network, []types.Schedule) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - for i := 0; i < n; i++ { - schedule := types.Schedule{ - Name: strconv.Itoa(i), - Period: 1000, - Msgs: []types.MsgExecuteContract{}, - LastExecuteHeight: uint64(0), - } - state.ScheduleList = append(state.ScheduleList, schedule) - } - state.Params = types.DefaultParams() - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.ScheduleList -} - -func TestShowSchedule(t *testing.T) { - net, objs := networkWithScheduleObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - name string - - args []string - err error - obj types.Schedule - }{ - { - desc: "found", - name: objs[0].Name, - - args: common, - obj: objs[0], - err: nil, - }, - { - desc: "not found", - name: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.name, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowSchedule(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetScheduleResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Schedule) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Schedule), - ) - } - }) - } -} - -func TestListSchedule(t *testing.T) { - net, objs := networkWithScheduleObjects(t, 5) - - ctx := net.Validators[0].ClientCtx - request := func(next []byte, offset, limit uint64, total bool) []string { - args := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - if next == nil { - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagOffset, offset)) - } else { - args = append(args, fmt.Sprintf("--%s=%s", flags.FlagPageKey, next)) - } - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagLimit, limit)) - if total { - args = append(args, fmt.Sprintf("--%s", flags.FlagCountTotal)) - } - return args - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(objs); i += step { - args := request(nil, uint64(i), uint64(step), false) //nolint:gosec - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListSchedule(), args) - require.NoError(t, err) - var resp types.QuerySchedulesResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Schedules), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Schedules), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(objs); i += step { - args := request(next, 0, uint64(step), false) //nolint:gosec - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListSchedule(), args) - require.NoError(t, err) - var resp types.QuerySchedulesResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Schedules), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Schedules), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - args := request(nil, 0, uint64(len(objs)), true) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListSchedule(), args) - require.NoError(t, err) - var resp types.QuerySchedulesResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) //nolint:gosec - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.Schedules), - ) - }) -} diff --git a/x/cron/client/cli/tx.go b/x/cron/client/cli/tx.go index 565daeb0d..429f7f5ec 100644 --- a/x/cron/client/cli/tx.go +++ b/x/cron/client/cli/tx.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/cron/genesis.go b/x/cron/genesis.go index 78b82c5ae..450aba558 100644 --- a/x/cron/genesis.go +++ b/x/cron/genesis.go @@ -3,8 +3,8 @@ package cron import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/v5/x/cron/keeper" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/keeper" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // InitGenesis initializes the module's state from a provided genesis state. diff --git a/x/cron/genesis_test.go b/x/cron/genesis_test.go deleted file mode 100644 index 9ec174bbe..000000000 --- a/x/cron/genesis_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package cron_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/testutil/common/nullify" - "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - "github.com/neutron-org/neutron/v5/x/cron" - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func TestGenesis(t *testing.T) { - k, ctx := keeper.CronKeeper(t, nil, nil) - - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - ScheduleList: []types.Schedule{ - { - Name: "a", - Period: 5, - Msgs: nil, - LastExecuteHeight: uint64(ctx.BlockHeight()), //nolint:gosec - }, - }, - } - - cron.InitGenesis(ctx, *k, genesisState) - got := cron.ExportGenesis(ctx, *k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - require.Equal(t, genesisState.Params, got.Params) - require.ElementsMatch(t, genesisState.ScheduleList, got.ScheduleList) -} diff --git a/x/cron/keeper/grpc_query.go b/x/cron/keeper/grpc_query.go index 50017a573..a8b699c8c 100644 --- a/x/cron/keeper/grpc_query.go +++ b/x/cron/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/cron/keeper/grpc_query_params.go b/x/cron/keeper/grpc_query_params.go index a646a7abb..77f3b0f68 100644 --- a/x/cron/keeper/grpc_query_params.go +++ b/x/cron/keeper/grpc_query_params.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { diff --git a/x/cron/keeper/grpc_query_params_test.go b/x/cron/keeper/grpc_query_params_test.go deleted file mode 100644 index 64d1d4a13..000000000 --- a/x/cron/keeper/grpc_query_params_test.go +++ /dev/null @@ -1,22 +0,0 @@ -package keeper_test - -import ( - "testing" - - testkeeper "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.CronKeeper(t, nil, nil) - params := types.DefaultParams() - err := keeper.SetParams(ctx, params) - require.NoError(t, err) - - response, err := keeper.Params(ctx, &types.QueryParamsRequest{}) - require.NoError(t, err) - require.Equal(t, &types.QueryParamsResponse{Params: params}, response) -} diff --git a/x/cron/keeper/grpc_query_schedule.go b/x/cron/keeper/grpc_query_schedule.go index 4b4d1d5ee..c4bd0e124 100644 --- a/x/cron/keeper/grpc_query_schedule.go +++ b/x/cron/keeper/grpc_query_schedule.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) func (k Keeper) Schedules(c context.Context, req *types.QuerySchedulesRequest) (*types.QuerySchedulesResponse, error) { diff --git a/x/cron/keeper/grpc_query_schedule_test.go b/x/cron/keeper/grpc_query_schedule_test.go deleted file mode 100644 index 86eaf179a..000000000 --- a/x/cron/keeper/grpc_query_schedule_test.go +++ /dev/null @@ -1,145 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/neutron-org/neutron/v5/testutil/common/nullify" - testutil_keeper "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - cronkeeper "github.com/neutron-org/neutron/v5/x/cron/keeper" - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func TestScheduleQuerySingle(t *testing.T) { - k, ctx := testutil_keeper.CronKeeper(t, nil, nil) - schedules := createNSchedule(t, ctx, k, 2) - - for _, tc := range []struct { - desc string - request *types.QueryGetScheduleRequest - response *types.QueryGetScheduleResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetScheduleRequest{ - Name: schedules[0].Name, - }, - response: &types.QueryGetScheduleResponse{Schedule: schedules[0]}, - }, - { - desc: "Second", - request: &types.QueryGetScheduleRequest{ - Name: schedules[1].Name, - }, - response: &types.QueryGetScheduleResponse{Schedule: schedules[1]}, - }, - { - desc: "KeyIsAbsent", - request: &types.QueryGetScheduleRequest{ - Name: "absent_key", - }, - err: status.Error(codes.NotFound, "schedule not found"), - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := k.Schedule(ctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} - -func TestScheduleQueryPaginated(t *testing.T) { - k, ctx := testutil_keeper.CronKeeper(t, nil, nil) - schedules := createNSchedule(t, ctx, k, 5) - - request := func(next []byte, offset, limit uint64, total bool) *types.QuerySchedulesRequest { - return &types.QuerySchedulesRequest{ - Pagination: &query.PageRequest{ - Key: next, - Offset: offset, - Limit: limit, - CountTotal: total, - }, - } - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(schedules); i += step { - resp, err := k.Schedules(ctx, request(nil, uint64(i), uint64(step), false)) //nolint:gosec - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Schedules), step) - require.Subset(t, - nullify.Fill(schedules), - nullify.Fill(resp.Schedules), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(schedules); i += step { - resp, err := k.Schedules(ctx, request(next, 0, uint64(step), false)) //nolint:gosec - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Schedules), step) - require.Subset(t, - nullify.Fill(schedules), - nullify.Fill(resp.Schedules), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - resp, err := k.Schedules(ctx, request(nil, 0, 0, true)) - require.NoError(t, err) - require.Equal(t, len(schedules), int(resp.Pagination.Total)) //nolint:gosec - require.ElementsMatch(t, - nullify.Fill(schedules), - nullify.Fill(resp.Schedules), - ) - }) - t.Run("InvalidRequest", func(t *testing.T) { - _, err := k.Schedules(ctx, nil) - require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) - }) -} - -func createNSchedule(t *testing.T, ctx sdk.Context, k *cronkeeper.Keeper, n int32) []types.Schedule { - res := make([]types.Schedule, n) - - for idx, item := range res { - item.Name = strconv.Itoa(idx) - item.Period = 1000 - item.Msgs = nil - item.LastExecuteHeight = uint64(ctx.BlockHeight()) //nolint:gosec - item.ExecutionStage = types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER - - err := k.AddSchedule(ctx, item.Name, item.Period, item.Msgs, item.ExecutionStage) - require.NoError(t, err) - - res[idx] = item - } - - return res -} diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 61fa71ac4..a34d4ce5c 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -11,13 +11,13 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" "cosmossdk.io/store/prefix" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + wasmtypes "github.com/scrtlabs/SecretNetwork/x/compute" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) var ( @@ -186,13 +186,12 @@ func (k *Keeper) executeSchedule(ctx sdk.Context, schedule types.Schedule) error k.storeSchedule(ctx, schedule) cacheCtx, writeFn := ctx.CacheContext() - for idx, msg := range schedule.Msgs { executeMsg := wasmtypes.MsgExecuteContract{ - Sender: k.accountKeeper.GetModuleAddress(types.ModuleName).String(), - Contract: msg.Contract, - Msg: []byte(msg.Msg), - Funds: sdk.NewCoins(), + Sender: k.accountKeeper.GetModuleAddress(types.ModuleName), + Contract: sdk.AccAddress(msg.Contract), + Msg: []byte(msg.Msg), + SentFunds: sdk.NewCoins(), } _, err := k.WasmMsgServer.ExecuteContract(cacheCtx, &executeMsg) if err != nil { diff --git a/x/cron/keeper/keeper_test.go b/x/cron/keeper/keeper_test.go deleted file mode 100644 index 4882f7ae4..000000000 --- a/x/cron/keeper/keeper_test.go +++ /dev/null @@ -1,295 +0,0 @@ -package keeper_test - -import ( - "fmt" - "strconv" - "testing" - - "github.com/stretchr/testify/assert" - - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/testutil" - testutil_keeper "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - mock_types "github.com/neutron-org/neutron/v5/testutil/mocks/cron/types" - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -// ExecuteReadySchedules: -// - calls msgServer.execute() on ready schedules -// - updates ready schedules lastExecuteHeight -// - does not update lastExecuteHeight of unready schedules -// - does not go over the limit -func TestKeeperExecuteReadySchedules(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - accountKeeper := mock_types.NewMockAccountKeeper(ctrl) - addr, err := sdk.AccAddressFromBech32(testutil.TestOwnerAddress) - require.NoError(t, err) - - wasmMsgServer := mock_types.NewMockWasmMsgServer(ctrl) - k, ctx := testutil_keeper.CronKeeper(t, wasmMsgServer, accountKeeper) - ctx = ctx.WithBlockHeight(0) - - err = k.SetParams(ctx, types.Params{ - SecurityAddress: testutil.TestOwnerAddress, - Limit: 2, - }) - require.NoError(t, err) - - schedules := []types.Schedule{ - { - Name: "1_unready1", - Period: 10, - Msgs: []types.MsgExecuteContract{ - { - Contract: "1_neutron", - Msg: "1_msg", - }, - }, - LastExecuteHeight: 4, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - { - Name: "2_ready1", - Period: 4, - Msgs: []types.MsgExecuteContract{ - { - Contract: "2_neutron", - Msg: "2_msg", - }, - }, - LastExecuteHeight: 0, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - { - Name: "3_ready2", - Period: 4, - Msgs: []types.MsgExecuteContract{ - { - Contract: "3_neutron", - Msg: "3_msg", - }, - }, - LastExecuteHeight: 0, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - { - Name: "4_unready2", - Period: 10, - Msgs: []types.MsgExecuteContract{}, - LastExecuteHeight: 4, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - { - Name: "5_ready3", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "5_neutron", - Msg: "5_msg", - }, - }, - LastExecuteHeight: 0, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - { - Name: "6_ready4", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "6_neutron", - Msg: "6_msg", - }, - }, - LastExecuteHeight: 0, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER, - }, - } - - for _, item := range schedules { - ctx = ctx.WithBlockHeight(int64(item.LastExecuteHeight)) //nolint:gosec - err := k.AddSchedule(ctx, item.Name, item.Period, item.Msgs, item.ExecutionStage) - require.NoError(t, err) - } - - count := k.GetScheduleCount(ctx) - require.Equal(t, count, int32(6)) - - ctx = ctx.WithBlockHeight(5) - - accountKeeper.EXPECT().GetModuleAddress(types.ModuleName).Return(addr).AnyTimes() - wasmMsgServer.EXPECT().ExecuteContract(gomock.Any(), &wasmtypes.MsgExecuteContract{ - Sender: testutil.TestOwnerAddress, - Contract: "2_neutron", - Msg: []byte("2_msg"), - Funds: sdk.NewCoins(), - }).Return(nil, fmt.Errorf("executeerror")) - wasmMsgServer.EXPECT().ExecuteContract(gomock.Any(), &wasmtypes.MsgExecuteContract{ - Sender: testutil.TestOwnerAddress, - Contract: "3_neutron", - Msg: []byte("3_msg"), - Funds: sdk.NewCoins(), - }).Return(&wasmtypes.MsgExecuteContractResponse{}, nil) - - k.ExecuteReadySchedules(ctx, types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER) - - unready1, _ := k.GetSchedule(ctx, "1_unready1") - ready1, _ := k.GetSchedule(ctx, "2_ready1") - ready2, _ := k.GetSchedule(ctx, "3_ready2") - unready2, _ := k.GetSchedule(ctx, "4_unready2") - ready3, _ := k.GetSchedule(ctx, "5_ready3") - ready4, _ := k.GetSchedule(ctx, "6_ready4") - - require.Equal(t, uint64(4), unready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready2.LastExecuteHeight) - require.Equal(t, uint64(4), unready2.LastExecuteHeight) - require.Equal(t, uint64(0), ready3.LastExecuteHeight) - require.Equal(t, uint64(0), ready4.LastExecuteHeight) - - // let's make another call at the next height - // Notice that now only one ready schedule left because we got limit of 2 at once - ctx = ctx.WithBlockHeight(6) - - wasmMsgServer.EXPECT().ExecuteContract(gomock.Any(), &wasmtypes.MsgExecuteContract{ - Sender: testutil.TestOwnerAddress, - Contract: "5_neutron", - Msg: []byte("5_msg"), - Funds: sdk.NewCoins(), - }).Return(&wasmtypes.MsgExecuteContractResponse{}, nil) - - k.ExecuteReadySchedules(ctx, types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER) - - unready1, _ = k.GetSchedule(ctx, "1_unready1") - ready1, _ = k.GetSchedule(ctx, "2_ready1") - ready2, _ = k.GetSchedule(ctx, "3_ready2") - unready2, _ = k.GetSchedule(ctx, "4_unready2") - ready3, _ = k.GetSchedule(ctx, "5_ready3") - ready4, _ = k.GetSchedule(ctx, "6_ready4") - - require.Equal(t, uint64(4), unready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready2.LastExecuteHeight) - require.Equal(t, uint64(4), unready2.LastExecuteHeight) - require.Equal(t, uint64(6), ready3.LastExecuteHeight) - require.Equal(t, uint64(0), ready4.LastExecuteHeight) - - ctx = ctx.WithBlockHeight(7) - - wasmMsgServer.EXPECT().ExecuteContract(gomock.Any(), &wasmtypes.MsgExecuteContract{ - Sender: testutil.TestOwnerAddress, - Contract: "6_neutron", - Msg: []byte("6_msg"), - Funds: sdk.NewCoins(), - }).Return(&wasmtypes.MsgExecuteContractResponse{}, nil) - - k.ExecuteReadySchedules(ctx, types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER) - - unready1, _ = k.GetSchedule(ctx, "1_unready1") - ready1, _ = k.GetSchedule(ctx, "2_ready1") - ready2, _ = k.GetSchedule(ctx, "3_ready2") - unready2, _ = k.GetSchedule(ctx, "4_unready2") - ready3, _ = k.GetSchedule(ctx, "5_ready3") - ready4, _ = k.GetSchedule(ctx, "6_ready4") - - require.Equal(t, uint64(4), unready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready1.LastExecuteHeight) - require.Equal(t, uint64(5), ready2.LastExecuteHeight) - require.Equal(t, uint64(4), unready2.LastExecuteHeight) - require.Equal(t, uint64(6), ready3.LastExecuteHeight) - require.Equal(t, uint64(7), ready4.LastExecuteHeight) -} - -func TestAddSchedule(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - accountKeeper := mock_types.NewMockAccountKeeper(ctrl) - - wasmMsgServer := mock_types.NewMockWasmMsgServer(ctrl) - k, ctx := testutil_keeper.CronKeeper(t, wasmMsgServer, accountKeeper) - ctx = ctx.WithBlockHeight(0) - - err := k.SetParams(ctx, types.Params{ - SecurityAddress: testutil.TestOwnerAddress, - Limit: 2, - }) - require.NoError(t, err) - - // normal add schedule - err = k.AddSchedule(ctx, "a", 7, []types.MsgExecuteContract{ - { - Contract: "c", - Msg: "m", - }, - }, types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER) - require.NoError(t, err) - - err = k.AddSchedule(ctx, "b", 7, []types.MsgExecuteContract{ - { - Contract: "c", - Msg: "m", - }, - }, types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER) - require.NoError(t, err) - - // second time with same name returns error - err = k.AddSchedule(ctx, "a", 5, []types.MsgExecuteContract{}, types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER) - require.Error(t, err) - - scheduleA, found := k.GetSchedule(ctx, "a") - require.True(t, found) - require.Equal(t, scheduleA.Name, "a") - require.Equal(t, scheduleA.Period, uint64(7)) - require.Equal(t, scheduleA.Msgs, []types.MsgExecuteContract{ - {Contract: "c", Msg: "m"}, - }) - require.Equal(t, scheduleA.ExecutionStage, types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER) - - schedules := k.GetAllSchedules(ctx) - require.Len(t, schedules, 2) - require.Equal(t, schedules[0].ExecutionStage, types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER) - require.Equal(t, schedules[1].ExecutionStage, types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER) - - // remove schedule works - k.RemoveSchedule(ctx, "a") - _, found = k.GetSchedule(ctx, "a") - assert.False(t, found) - - // does not panic even though we don't have it - k.RemoveSchedule(ctx, "a") -} - -func TestGetAllSchedules(t *testing.T) { - k, ctx := testutil_keeper.CronKeeper(t, nil, nil) - - err := k.SetParams(ctx, types.Params{ - SecurityAddress: testutil.TestOwnerAddress, - Limit: 2, - }) - require.NoError(t, err) - - expectedSchedules := make([]types.Schedule, 0, 3) - for i := range []int{1, 2, 3} { - s := types.Schedule{ - Name: strconv.Itoa(i), - Period: 5, - Msgs: nil, - LastExecuteHeight: uint64(ctx.BlockHeight()), //nolint:gosec - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER, - } - expectedSchedules = append(expectedSchedules, s) - err := k.AddSchedule(ctx, s.Name, s.Period, s.Msgs, s.ExecutionStage) - require.NoError(t, err) - } - - schedules := k.GetAllSchedules(ctx) - assert.Equal(t, 3, len(schedules)) - assert.ElementsMatch(t, schedules, expectedSchedules) - assert.Equal(t, int32(3), k.GetScheduleCount(ctx)) -} diff --git a/x/cron/keeper/migrations.go b/x/cron/keeper/migrations.go index b4c394bb1..64aaba98f 100644 --- a/x/cron/keeper/migrations.go +++ b/x/cron/keeper/migrations.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - v2 "github.com/neutron-org/neutron/v5/x/cron/migrations/v2" + v2 "github.com/scrtlabs/SecretNetwork/x/cron/migrations/v2" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/cron/keeper/msg_server.go b/x/cron/keeper/msg_server.go index ccb0bcbc4..d9dfaf862 100644 --- a/x/cron/keeper/msg_server.go +++ b/x/cron/keeper/msg_server.go @@ -5,9 +5,8 @@ import ( "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) type msgServer struct { @@ -28,10 +27,10 @@ func (k msgServer) AddSchedule(goCtx context.Context, req *types.MsgAddSchedule) return nil, errors.Wrap(err, "failed to validate MsgAddSchedule") } - authority := k.keeper.GetAuthority() - if authority != req.Authority { - return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) - } + // authority := k.keeper.GetAuthority() + // if authority != req.Authority { + // return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + // } ctx := sdk.UnwrapSDKContext(goCtx) if err := k.keeper.AddSchedule(ctx, req.Name, req.Period, req.Msgs, req.ExecutionStage); err != nil { @@ -47,10 +46,10 @@ func (k msgServer) RemoveSchedule(goCtx context.Context, req *types.MsgRemoveSch return nil, errors.Wrap(err, "failed to validate MsgRemoveSchedule") } - authority := k.keeper.GetAuthority() - if authority != req.Authority { - return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) - } + // authority := k.keeper.GetAuthority() + // if authority != req.Authority { + // return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + // } ctx := sdk.UnwrapSDKContext(goCtx) k.keeper.RemoveSchedule(ctx, req.Name) @@ -64,10 +63,10 @@ func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParam return nil, errors.Wrap(err, "failed to validate MsgUpdateParams") } - authority := k.keeper.GetAuthority() - if authority != req.Authority { - return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) - } + // authority := k.keeper.GetAuthority() + // if authority != req.Authority { + // return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + // } ctx := sdk.UnwrapSDKContext(goCtx) if err := k.keeper.SetParams(ctx, req.Params); err != nil { diff --git a/x/cron/keeper/msg_server_test.go b/x/cron/keeper/msg_server_test.go deleted file mode 100644 index 4c0a6e5d3..000000000 --- a/x/cron/keeper/msg_server_test.go +++ /dev/null @@ -1,221 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/testutil" - testkeeper "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - cronkeeper "github.com/neutron-org/neutron/v5/x/cron/keeper" - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func TestMsgAddScheduleValidate(t *testing.T) { - k, ctx := testkeeper.CronKeeper(t, nil, nil) - msgServer := cronkeeper.NewMsgServerImpl(*k) - - tests := []struct { - name string - msg types.MsgAddSchedule - expectedErr string - }{ - { - "empty authority", - types.MsgAddSchedule{ - Authority: "", - Name: "name", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - "authority is invalid", - }, - { - "invalid authority", - types.MsgAddSchedule{ - Authority: "invalid authority", - Name: "name", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - "authority is invalid", - }, - { - "invalid name", - types.MsgAddSchedule{ - Authority: testutil.TestOwnerAddress, - Name: "", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - "name is invalid", - }, - { - "invalid period", - types.MsgAddSchedule{ - Authority: testutil.TestOwnerAddress, - Name: "name", - Period: 0, - Msgs: []types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - "period is invalid", - }, - { - "empty msgs", - types.MsgAddSchedule{ - Authority: testutil.TestOwnerAddress, - Name: "name", - Period: 3, - Msgs: []types.MsgExecuteContract{}, - ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER, - }, - "msgs should not be empty", - }, - { - "invalid execution stage", - types.MsgAddSchedule{ - Authority: testutil.TestOwnerAddress, - Name: "name", - Period: 3, - Msgs: []types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - ExecutionStage: 7, - }, - "execution stage is invalid", - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - resp, err := msgServer.AddSchedule(ctx, &tt.msg) - require.ErrorContains(t, err, tt.expectedErr) - require.Nil(t, resp) - }) - } -} - -func TestMsgRemoveScheduleValidate(t *testing.T) { - k, ctx := testkeeper.CronKeeper(t, nil, nil) - msgServer := cronkeeper.NewMsgServerImpl(*k) - - tests := []struct { - name string - msg types.MsgRemoveSchedule - expectedErr string - }{ - { - "empty authority", - types.MsgRemoveSchedule{ - Authority: "", - Name: "name", - }, - "authority is invalid", - }, - { - "invalid authority", - types.MsgRemoveSchedule{ - Authority: "invalid authority", - Name: "name", - }, - "authority is invalid", - }, - { - "invalid name", - types.MsgRemoveSchedule{ - Authority: testutil.TestOwnerAddress, - Name: "", - }, - "name is invalid", - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - resp, err := msgServer.RemoveSchedule(ctx, &tt.msg) - require.ErrorContains(t, err, tt.expectedErr) - require.Nil(t, resp) - }) - } -} - -func TestMsgUpdateParamsValidate(t *testing.T) { - k, ctx := testkeeper.CronKeeper(t, nil, nil) - msgServer := cronkeeper.NewMsgServerImpl(*k) - - tests := []struct { - name string - msg types.MsgUpdateParams - expectedErr string - }{ - { - "empty authority", - types.MsgUpdateParams{ - Authority: "", - }, - "authority is invalid", - }, - { - "invalid authority", - types.MsgUpdateParams{ - Authority: "invalid authority", - }, - "authority is invalid", - }, - { - "empty security_address", - types.MsgUpdateParams{ - Authority: testutil.TestOwnerAddress, - Params: types.Params{ - SecurityAddress: "", - }, - }, - "security_address is invalid", - }, - { - "invalid security_address", - types.MsgUpdateParams{ - Authority: testutil.TestOwnerAddress, - Params: types.Params{ - SecurityAddress: "invalid security_address", - }, - }, - "security_address is invalid", - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - resp, err := msgServer.UpdateParams(ctx, &tt.msg) - require.ErrorContains(t, err, tt.expectedErr) - require.Nil(t, resp) - }) - } -} diff --git a/x/cron/keeper/params.go b/x/cron/keeper/params.go index 81b7321e4..15891508f 100644 --- a/x/cron/keeper/params.go +++ b/x/cron/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // GetParams get all parameters as types.Params diff --git a/x/cron/keeper/params_test.go b/x/cron/keeper/params_test.go deleted file mode 100644 index be0630f66..000000000 --- a/x/cron/keeper/params_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/neutron-org/neutron/v5/app/config" - - "github.com/neutron-org/neutron/v5/testutil" - - testkeeper "github.com/neutron-org/neutron/v5/testutil/cron/keeper" - - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func TestGetParams(t *testing.T) { - _ = config.GetDefaultConfig() - - k, ctx := testkeeper.CronKeeper(t, nil, nil) - params := types.Params{ - SecurityAddress: testutil.TestOwnerAddress, - Limit: 5, - } - - err := k.SetParams(ctx, params) - require.NoError(t, err) - - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/cron/migrations/v2/store.go b/x/cron/migrations/v2/store.go index dae71e591..31ad49101 100644 --- a/x/cron/migrations/v2/store.go +++ b/x/cron/migrations/v2/store.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // MigrateStore performs in-place store migrations. diff --git a/x/cron/migrations/v2/store_test.go b/x/cron/migrations/v2/store_test.go deleted file mode 100644 index a1a3c4fef..000000000 --- a/x/cron/migrations/v2/store_test.go +++ /dev/null @@ -1,60 +0,0 @@ -package v2_test - -import ( - "testing" - - "cosmossdk.io/store/prefix" - "github.com/stretchr/testify/suite" - - "github.com/neutron-org/neutron/v5/testutil" - v2 "github.com/neutron-org/neutron/v5/x/cron/migrations/v2" - "github.com/neutron-org/neutron/v5/x/cron/types" - v1types "github.com/neutron-org/neutron/v5/x/cron/types/v1" -) - -type V2CronMigrationTestSuite struct { - testutil.IBCConnectionTestSuite -} - -func TestKeeperTestSuite(t *testing.T) { - suite.Run(t, new(V2CronMigrationTestSuite)) -} - -func (suite *V2CronMigrationTestSuite) TestScheduleUpgrade() { - var ( - app = suite.GetNeutronZoneApp(suite.ChainA) - storeKey = app.GetKey(types.StoreKey) - ctx = suite.ChainA.GetContext() - cdc = app.AppCodec() - ) - - schedule := v1types.Schedule{ - Name: "name", - Period: 3, - Msgs: []v1types.MsgExecuteContract{ - { - Contract: "contract", - Msg: "msg", - }, - }, - LastExecuteHeight: 1, - } - - store := prefix.NewStore(ctx.KVStore(storeKey), types.ScheduleKey) - bz := cdc.MustMarshal(&schedule) - store.Set(types.GetScheduleKey(schedule.Name), bz) - - // Run migration - suite.NoError(v2.MigrateStore(ctx, cdc, storeKey)) - - // Check Schedule has correct ExecutionStage - newSchedule, _ := app.CronKeeper.GetSchedule(ctx, schedule.Name) - suite.Equal(newSchedule.Name, schedule.Name) - suite.Equal(newSchedule.Period, schedule.Period) - for i, msg := range newSchedule.Msgs { - suite.Equal(msg.Contract, schedule.Msgs[i].Contract) - suite.Equal(msg.Msg, schedule.Msgs[i].Msg) - } - suite.Equal(newSchedule.LastExecuteHeight, schedule.LastExecuteHeight) - suite.Equal(newSchedule.ExecutionStage, types.ExecutionStage_EXECUTION_STAGE_END_BLOCKER) -} diff --git a/x/cron/module.go b/x/cron/module.go index e86ee8745..994ef7e17 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -20,9 +20,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/neutron-org/neutron/v5/x/cron/client/cli" - "github.com/neutron-org/neutron/v5/x/cron/keeper" - "github.com/neutron-org/neutron/v5/x/cron/types" + "github.com/scrtlabs/SecretNetwork/x/cron/client/cli" + "github.com/scrtlabs/SecretNetwork/x/cron/keeper" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) var ( diff --git a/x/cron/module_simulation.go b/x/cron/module_simulation.go index 0ada92486..a93a336e9 100644 --- a/x/cron/module_simulation.go +++ b/x/cron/module_simulation.go @@ -7,8 +7,8 @@ import ( simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - cronsimulation "github.com/neutron-org/neutron/v5/x/cron/simulation" - "github.com/neutron-org/neutron/v5/x/cron/types" + cronsimulation "github.com/scrtlabs/SecretNetwork/x/cron/simulation" + "github.com/scrtlabs/SecretNetwork/x/cron/types" ) // avoid unused import issue diff --git a/x/cron/types/codec.go b/x/cron/types/codec.go index 6772e97b9..7776c54d1 100644 --- a/x/cron/types/codec.go +++ b/x/cron/types/codec.go @@ -8,7 +8,7 @@ import ( ) func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgUpdateParams{}, "neutron.cron.MsgUpdateParams", nil) + cdc.RegisterConcrete(&MsgUpdateParams{}, "secret.cron.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/cron/types/expected_keepers.go b/x/cron/types/expected_keepers.go index cbed63584..fc2e837af 100644 --- a/x/cron/types/expected_keepers.go +++ b/x/cron/types/expected_keepers.go @@ -3,8 +3,8 @@ package types import ( "context" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" + wasmtypes "github.com/scrtlabs/SecretNetwork/x/compute" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/x/cron/types/genesis.pb.go b/x/cron/types/genesis.pb.go index b3678689b..2198fa768 100644 --- a/x/cron/types/genesis.pb.go +++ b/x/cron/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/genesis.proto +// source: secret/cron/genesis.proto package types @@ -33,7 +33,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_7c41f2dea8ad83c2, []int{0} + return fileDescriptor_0e9b2ffd73e56838, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,28 +77,29 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "neutron.cron.GenesisState") + proto.RegisterType((*GenesisState)(nil), "secret.cron.GenesisState") } -func init() { proto.RegisterFile("neutron/cron/genesis.proto", fileDescriptor_7c41f2dea8ad83c2) } +func init() { proto.RegisterFile("secret/cron/genesis.proto", fileDescriptor_0e9b2ffd73e56838) } -var fileDescriptor_7c41f2dea8ad83c2 = []byte{ - // 231 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0xe9, 0xa9, 0x79, 0xa9, 0xc5, 0x99, 0xc5, 0x7a, 0x05, - 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x3c, 0x50, 0x39, 0x3d, 0x90, 0x9c, 0x94, 0x48, 0x7a, 0x7e, 0x7a, - 0x3e, 0x58, 0x42, 0x1f, 0xc4, 0x82, 0xa8, 0x91, 0x92, 0x44, 0xd1, 0x5f, 0x90, 0x58, 0x94, 0x98, - 0x0b, 0xd5, 0x2e, 0x25, 0x8d, 0x22, 0x55, 0x9c, 0x9c, 0x91, 0x9a, 0x52, 0x9a, 0x93, 0x0a, 0x91, - 0x54, 0x6a, 0x61, 0xe4, 0xe2, 0x71, 0x87, 0xd8, 0x16, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0xe4, 0xc0, - 0xc5, 0x03, 0x53, 0xe2, 0x93, 0x59, 0x5c, 0x22, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x6d, 0x24, 0xa6, - 0x87, 0xec, 0x06, 0xbd, 0x60, 0xa8, 0x0a, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0x50, 0x74, - 0x08, 0x19, 0x71, 0xb1, 0x41, 0xec, 0x97, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x12, 0x41, 0xd5, - 0x1b, 0x00, 0x96, 0x83, 0xea, 0x84, 0xaa, 0x74, 0xf2, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, - 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, - 0x63, 0x39, 0x86, 0x28, 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, - 0xa8, 0x39, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x99, 0xa9, 0x7e, 0x05, 0xc4, 0x67, 0x25, - 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x7f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5b, - 0x63, 0x56, 0x46, 0x51, 0x01, 0x00, 0x00, +var fileDescriptor_0e9b2ffd73e56838 = []byte{ + // 241 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x4e, 0x4d, 0x2e, + 0x4a, 0x2d, 0xd1, 0x4f, 0x2e, 0xca, 0xcf, 0xd3, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x48, 0xe9, 0x81, 0xa4, 0xa4, 0x44, 0xd2, 0xf3, + 0xd3, 0xf3, 0xc1, 0xe2, 0xfa, 0x20, 0x16, 0x44, 0x89, 0x94, 0x04, 0xb2, 0xee, 0x82, 0xc4, 0xa2, + 0xc4, 0x5c, 0xa8, 0x66, 0x29, 0x29, 0x64, 0x99, 0xe2, 0xe4, 0x8c, 0xd4, 0x94, 0xd2, 0x9c, 0x54, + 0x88, 0x9c, 0x52, 0x13, 0x23, 0x17, 0x8f, 0x3b, 0xc4, 0xaa, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, + 0x7b, 0x2e, 0x1e, 0x98, 0x12, 0x9f, 0xcc, 0xe2, 0x12, 0x09, 0x26, 0x05, 0x66, 0x0d, 0x6e, 0x23, + 0x51, 0x3d, 0x24, 0x07, 0xe8, 0x05, 0x43, 0x15, 0x38, 0xb1, 0x9c, 0xb8, 0x27, 0xcf, 0x10, 0x84, + 0xa2, 0x41, 0xc8, 0x90, 0x8b, 0x0d, 0x62, 0xbb, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x30, + 0x8a, 0xd6, 0x00, 0xb0, 0x14, 0x54, 0x23, 0x54, 0xa1, 0x93, 0xc7, 0x89, 0x47, 0x72, 0x8c, 0x17, + 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, + 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, + 0xea, 0x17, 0x27, 0x17, 0x95, 0xe4, 0x24, 0x26, 0x15, 0xeb, 0x07, 0x83, 0xcd, 0xf3, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0xaf, 0x80, 0xf8, 0xab, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, + 0xec, 0x2b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xff, 0x8e, 0x52, 0x4b, 0x01, 0x00, + 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/genesis_test.go b/x/cron/types/genesis_test.go deleted file mode 100644 index 04d14471f..000000000 --- a/x/cron/types/genesis_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/neutron-org/neutron/v5/app/config" - - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/v5/x/cron/types" -) - -func TestGenesisState_Validate(t *testing.T) { - config.GetDefaultConfig() - - for _, tc := range []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "valid genesis state", - genState: &types.GenesisState{ - Params: types.Params{ - SecurityAddress: "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh", - Limit: 1, - }, - }, - valid: true, - }, - { - desc: "invalid genesis state - params are invalid", - genState: &types.GenesisState{ - Params: types.Params{ - SecurityAddress: "", - Limit: 0, - }, - }, - valid: false, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/cron/types/params.pb.go b/x/cron/types/params.pb.go index 6f0715acb..727b94b0e 100644 --- a/x/cron/types/params.pb.go +++ b/x/cron/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/params.proto +// source: secret/cron/params.proto package types @@ -34,7 +34,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_efa4f5c14a68f6e5, []int{0} + return fileDescriptor_b2b633a1a1b37414, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,26 +78,26 @@ func (m *Params) GetLimit() uint64 { } func init() { - proto.RegisterType((*Params)(nil), "neutron.cron.Params") + proto.RegisterType((*Params)(nil), "secret.cron.Params") } -func init() { proto.RegisterFile("neutron/cron/params.proto", fileDescriptor_efa4f5c14a68f6e5) } +func init() { proto.RegisterFile("secret/cron/params.proto", fileDescriptor_b2b633a1a1b37414) } -var fileDescriptor_efa4f5c14a68f6e5 = []byte{ - // 198 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0x05, 0x89, 0x45, 0x89, 0xb9, 0xc5, 0x7a, 0x05, 0x45, - 0xf9, 0x25, 0xf9, 0x42, 0x3c, 0x50, 0x29, 0x3d, 0x90, 0x94, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, - 0x58, 0x42, 0x1f, 0xc4, 0x82, 0xa8, 0x51, 0xf2, 0xe7, 0x62, 0x0b, 0x00, 0xeb, 0x11, 0xd2, 0xe4, - 0x12, 0x28, 0x4e, 0x4d, 0x2e, 0x2d, 0xca, 0x2c, 0xa9, 0x8c, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, - 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x87, 0x89, 0x3b, 0x42, 0x84, 0x85, 0x44, - 0xb8, 0x58, 0x73, 0x32, 0x73, 0x33, 0x4b, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, - 0x2b, 0x96, 0x19, 0x0b, 0xe4, 0x19, 0x9c, 0x3c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, - 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, - 0x8e, 0x21, 0x4a, 0x2f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xea, - 0x32, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0xcc, 0x54, 0xbf, 0x02, 0xe2, 0x8b, 0x92, 0xca, - 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x0b, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x43, 0x7c, - 0x1b, 0xae, 0xe2, 0x00, 0x00, 0x00, +var fileDescriptor_b2b633a1a1b37414 = []byte{ + // 207 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x4e, 0x4d, 0x2e, + 0x4a, 0x2d, 0xd1, 0x4f, 0x2e, 0xca, 0xcf, 0xd3, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xc8, 0xe8, 0x81, 0x64, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, + 0xf3, 0xc1, 0xe2, 0xfa, 0x20, 0x16, 0x44, 0x89, 0x92, 0x3f, 0x17, 0x5b, 0x00, 0x58, 0x8b, 0x90, + 0x26, 0x97, 0x40, 0x71, 0x6a, 0x72, 0x69, 0x51, 0x66, 0x49, 0x65, 0x7c, 0x62, 0x4a, 0x4a, 0x51, + 0x6a, 0x71, 0xb1, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x3f, 0x4c, 0xdc, 0x11, 0x22, 0x2c, + 0x24, 0xc2, 0xc5, 0x9a, 0x93, 0x99, 0x9b, 0x59, 0x22, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x12, 0x04, + 0xe1, 0x58, 0xb1, 0xcc, 0x58, 0x20, 0xcf, 0xe0, 0xe4, 0x71, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, + 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, + 0xc7, 0x72, 0x0c, 0x51, 0x7a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, + 0xc5, 0xc9, 0x45, 0x25, 0x39, 0x89, 0x49, 0xc5, 0xfa, 0xc1, 0x60, 0x17, 0xfa, 0xa5, 0x96, 0x94, + 0xe7, 0x17, 0x65, 0xeb, 0x57, 0x40, 0x3c, 0x51, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, + 0xa1, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xd2, 0x4e, 0xc9, 0xe0, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/query.pb.go b/x/cron/types/query.pb.go index 4d8b3eedb..f616d87d8 100644 --- a/x/cron/types/query.pb.go +++ b/x/cron/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/query.proto +// source: secret/cron/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{0} + return fileDescriptor_097808e20bacb68e, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{1} + return fileDescriptor_097808e20bacb68e, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *QueryGetScheduleRequest) Reset() { *m = QueryGetScheduleRequest func (m *QueryGetScheduleRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetScheduleRequest) ProtoMessage() {} func (*QueryGetScheduleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{2} + return fileDescriptor_097808e20bacb68e, []int{2} } func (m *QueryGetScheduleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,7 +167,7 @@ func (m *QueryGetScheduleResponse) Reset() { *m = QueryGetScheduleRespon func (m *QueryGetScheduleResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetScheduleResponse) ProtoMessage() {} func (*QueryGetScheduleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{3} + return fileDescriptor_097808e20bacb68e, []int{3} } func (m *QueryGetScheduleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -212,7 +212,7 @@ func (m *QuerySchedulesRequest) Reset() { *m = QuerySchedulesRequest{} } func (m *QuerySchedulesRequest) String() string { return proto.CompactTextString(m) } func (*QuerySchedulesRequest) ProtoMessage() {} func (*QuerySchedulesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{4} + return fileDescriptor_097808e20bacb68e, []int{4} } func (m *QuerySchedulesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -258,7 +258,7 @@ func (m *QuerySchedulesResponse) Reset() { *m = QuerySchedulesResponse{} func (m *QuerySchedulesResponse) String() string { return proto.CompactTextString(m) } func (*QuerySchedulesResponse) ProtoMessage() {} func (*QuerySchedulesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e02f33367c9498fe, []int{5} + return fileDescriptor_097808e20bacb68e, []int{5} } func (m *QuerySchedulesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -302,49 +302,50 @@ func (m *QuerySchedulesResponse) GetPagination() *query.PageResponse { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "neutron.cron.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "neutron.cron.QueryParamsResponse") - proto.RegisterType((*QueryGetScheduleRequest)(nil), "neutron.cron.QueryGetScheduleRequest") - proto.RegisterType((*QueryGetScheduleResponse)(nil), "neutron.cron.QueryGetScheduleResponse") - proto.RegisterType((*QuerySchedulesRequest)(nil), "neutron.cron.QuerySchedulesRequest") - proto.RegisterType((*QuerySchedulesResponse)(nil), "neutron.cron.QuerySchedulesResponse") -} - -func init() { proto.RegisterFile("neutron/cron/query.proto", fileDescriptor_e02f33367c9498fe) } - -var fileDescriptor_e02f33367c9498fe = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xb3, 0xb1, 0x86, 0xe6, 0xe9, 0xe9, 0x19, 0x63, 0x5c, 0xeb, 0xb6, 0xae, 0xb6, 0x8a, - 0xd0, 0x19, 0x1a, 0x11, 0xc4, 0x63, 0x0f, 0x56, 0x6f, 0x35, 0x7a, 0xf2, 0x22, 0x93, 0x38, 0x6c, - 0x83, 0xcd, 0xcc, 0x76, 0x67, 0x36, 0x58, 0x44, 0x10, 0xff, 0x02, 0xc1, 0xb3, 0xff, 0x4f, 0x8f, - 0x05, 0x2f, 0x9e, 0x44, 0x12, 0xef, 0xfe, 0x0b, 0x65, 0xe7, 0x47, 0x9a, 0x6d, 0x96, 0xe6, 0x12, - 0x86, 0x7d, 0xdf, 0xf7, 0xfd, 0x7e, 0x66, 0xde, 0x0b, 0x74, 0x04, 0xcf, 0x75, 0x26, 0x05, 0x1d, - 0x14, 0x3f, 0x47, 0x39, 0xcf, 0x8e, 0x49, 0x9a, 0x49, 0x2d, 0xf1, 0xba, 0xab, 0x90, 0xa2, 0x12, - 0x3e, 0x1e, 0x48, 0x35, 0x92, 0x8a, 0xf6, 0x99, 0xe2, 0x56, 0x46, 0xc7, 0x3b, 0x7d, 0xae, 0xd9, - 0x0e, 0x4d, 0x59, 0x32, 0x14, 0x4c, 0x0f, 0xa5, 0xb0, 0x9d, 0x61, 0x2b, 0x91, 0x89, 0x34, 0x47, - 0x5a, 0x9c, 0xdc, 0xd7, 0xb5, 0x44, 0xca, 0xe4, 0x90, 0x53, 0x96, 0x0e, 0x29, 0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 0xfb, 0xbf, 0x0e, 0x57, 0x0d, 0x1f, 0x7e, 0x84, 0x86, 0x9d, 0x13, 0x6e, 0x94, - 0x29, 0x16, 0xd7, 0x20, 0xbc, 0x77, 0x89, 0xc2, 0x86, 0xc4, 0x6b, 0xdf, 0x7e, 0xfd, 0xfb, 0x51, - 0x6f, 0x63, 0x8b, 0x56, 0x2c, 0x20, 0x7e, 0x0d, 0x60, 0xd5, 0xdf, 0x0e, 0x37, 0x2b, 0xdc, 0x16, - 0xb7, 0x22, 0xdc, 0x5a, 0x26, 0x73, 0xc9, 0x9b, 0x26, 0x79, 0x1d, 0xef, 0xd2, 0xca, 0xfd, 0xa6, - 0x9f, 0x8b, 0x7d, 0xfa, 0x82, 0x63, 0x68, 0xce, 0x66, 0x82, 0xf7, 0x2b, 0xbc, 0x2f, 0xee, 0x44, - 0xf8, 0xe0, 0x72, 0x91, 0x8b, 0x8f, 0x4c, 0x7c, 0x07, 0xdb, 0xd5, 0xf1, 0xbb, 0x2f, 0x4f, 0x26, - 0x51, 0x70, 0x3a, 0x89, 0x82, 0xbf, 0x93, 0x28, 0xf8, 0x3e, 0x8d, 0x6a, 0xa7, 0xd3, 0xa8, 0xf6, - 0x7b, 0x1a, 0xd5, 0xde, 0x91, 0x64, 0xa8, 0x0f, 0xf2, 0x3e, 0x19, 0xc8, 0x91, 0xef, 0xdd, 0x96, - 0x59, 0x32, 0xf3, 0x19, 0x3f, 0xa5, 0x9f, 0xac, 0x99, 0x3e, 0x4e, 0xb9, 0xea, 0x37, 0xcc, 0x3f, - 0xf5, 0xc9, 0x59, 0x00, 0x00, 0x00, 0xff, 0xff, 0x49, 0x47, 0xef, 0x62, 0x6b, 0x04, 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "secret.cron.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "secret.cron.QueryParamsResponse") + proto.RegisterType((*QueryGetScheduleRequest)(nil), "secret.cron.QueryGetScheduleRequest") + proto.RegisterType((*QueryGetScheduleResponse)(nil), "secret.cron.QueryGetScheduleResponse") + proto.RegisterType((*QuerySchedulesRequest)(nil), "secret.cron.QuerySchedulesRequest") + proto.RegisterType((*QuerySchedulesResponse)(nil), "secret.cron.QuerySchedulesResponse") +} + +func init() { proto.RegisterFile("secret/cron/query.proto", fileDescriptor_097808e20bacb68e) } + +var fileDescriptor_097808e20bacb68e = []byte{ + // 497 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xe3, 0x50, 0xa2, 0x66, 0x7a, 0x9b, 0x34, 0x24, 0x32, 0xc5, 0xad, 0x4c, 0xf9, 0x23, + 0x24, 0x76, 0x95, 0x72, 0x40, 0x5c, 0x7b, 0xa0, 0x3d, 0xa1, 0x92, 0xdc, 0xb8, 0xa0, 0xb5, 0x59, + 0x39, 0x11, 0x89, 0xd7, 0xf5, 0x6e, 0x80, 0x0a, 0xf5, 0xc2, 0x13, 0x20, 0x71, 0xe5, 0x81, 0x7a, + 0xac, 0xc4, 0x85, 0x13, 0x42, 0x09, 0xbc, 0x07, 0xf2, 0xfe, 0x69, 0xed, 0xba, 0x34, 0xb7, 0x95, + 0xe7, 0x9b, 0xef, 0xfb, 0xed, 0xce, 0x18, 0x7a, 0x92, 0xc7, 0x39, 0x57, 0x34, 0xce, 0x45, 0x4a, + 0x8f, 0xe7, 0x3c, 0x3f, 0x21, 0x59, 0x2e, 0x94, 0xc0, 0x0d, 0x53, 0x20, 0x45, 0xc1, 0x7f, 0x12, + 0x0b, 0x39, 0x13, 0x92, 0x46, 0x4c, 0x72, 0xa3, 0xa2, 0x1f, 0x06, 0x11, 0x57, 0x6c, 0x40, 0x33, + 0x96, 0x4c, 0x52, 0xa6, 0x26, 0x22, 0x35, 0x8d, 0xfe, 0x66, 0x22, 0x12, 0xa1, 0x8f, 0xb4, 0x38, + 0xd9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 0x4d, 0xf7, 0x68, 0x25, 0x9d, 0xc9, 0x2d, 0xe3, 0xed, + 0xfd, 0x6d, 0xc2, 0x6d, 0x8d, 0x87, 0x63, 0x68, 0x99, 0x29, 0xe1, 0x76, 0x05, 0xa2, 0xbe, 0x02, + 0xfe, 0xce, 0xff, 0x05, 0x26, 0x22, 0xbc, 0xfb, 0xe5, 0xc7, 0x9f, 0x6f, 0xcd, 0x2e, 0x76, 0x68, + 0x7d, 0xf3, 0xf0, 0x14, 0xd6, 0xdd, 0xcd, 0x70, 0xb7, 0x6e, 0x55, 0x5f, 0x07, 0xff, 0xc1, 0x0a, + 0x95, 0x4d, 0xdd, 0xd5, 0xa9, 0x01, 0x6e, 0xd1, 0xeb, 0xb6, 0x9a, 0x7e, 0x2e, 0xd6, 0xe8, 0x14, + 0x25, 0xb4, 0x2f, 0x66, 0x81, 0x61, 0xdd, 0xf9, 0xea, 0x2a, 0xf8, 0xf7, 0x6f, 0xd4, 0xd8, 0xec, + 0x7b, 0x3a, 0xbb, 0x87, 0xdd, 0x6b, 0xb3, 0xf7, 0x0f, 0xcf, 0x16, 0x81, 0x77, 0xbe, 0x08, 0xbc, + 0xdf, 0x8b, 0xc0, 0xfb, 0xba, 0x0c, 0x1a, 0xe7, 0xcb, 0xa0, 0xf1, 0x73, 0x19, 0x34, 0xde, 0x90, + 0x64, 0xa2, 0xc6, 0xf3, 0x88, 0xc4, 0x62, 0x46, 0x65, 0x9c, 0xab, 0x29, 0x8b, 0x24, 0x1d, 0x69, + 0x8f, 0x57, 0x5c, 0x7d, 0x14, 0xf9, 0x7b, 0xfa, 0xc9, 0x98, 0xa9, 0x93, 0x8c, 0xcb, 0xa8, 0xa5, + 0x7f, 0xce, 0x67, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x68, 0xcb, 0x84, 0x5a, 0x04, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -377,7 +378,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -386,7 +387,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) Schedule(ctx context.Context, in *QueryGetScheduleRequest, opts ...grpc.CallOption) (*QueryGetScheduleResponse, error) { out := new(QueryGetScheduleResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Query/Schedule", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Query/Schedule", in, out, opts...) if err != nil { return nil, err } @@ -395,7 +396,7 @@ func (c *queryClient) Schedule(ctx context.Context, in *QueryGetScheduleRequest, func (c *queryClient) Schedules(ctx context.Context, in *QuerySchedulesRequest, opts ...grpc.CallOption) (*QuerySchedulesResponse, error) { out := new(QuerySchedulesResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Query/Schedules", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Query/Schedules", in, out, opts...) if err != nil { return nil, err } @@ -440,7 +441,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Query/Params", + FullMethod: "/secret.cron.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -458,7 +459,7 @@ func _Query_Schedule_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Query/Schedule", + FullMethod: "/secret.cron.Query/Schedule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Schedule(ctx, req.(*QueryGetScheduleRequest)) @@ -476,7 +477,7 @@ func _Query_Schedules_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Query/Schedules", + FullMethod: "/secret.cron.Query/Schedules", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Schedules(ctx, req.(*QuerySchedulesRequest)) @@ -485,7 +486,7 @@ func _Query_Schedules_Handler(srv interface{}, ctx context.Context, dec func(int } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.cron.Query", + ServiceName: "secret.cron.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -502,7 +503,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/cron/query.proto", + Metadata: "secret/cron/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/query.pb.gw.go b/x/cron/types/query.pb.gw.go index a3ce24432..5377127ef 100644 --- a/x/cron/types/query.pb.gw.go +++ b/x/cron/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: neutron/cron/query.proto +// source: secret/cron/query.proto /* Package types is a reverse proxy. @@ -321,11 +321,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"secret", "cron", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Schedule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "cron", "schedule", "name"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Schedule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"secret", "cron", "schedule", "name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Schedules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "schedule"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Schedules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"secret", "cron", "schedule"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/cron/types/schedule.pb.go b/x/cron/types/schedule.pb.go index 42fb227f7..7f6f5fc7f 100644 --- a/x/cron/types/schedule.pb.go +++ b/x/cron/types/schedule.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/schedule.proto +// source: secret/cron/schedule.proto package types @@ -48,7 +48,7 @@ func (x ExecutionStage) String() string { } func (ExecutionStage) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_49ace1b59de613ef, []int{0} + return fileDescriptor_3d6729589d2158da, []int{0} } // Defines the schedule for execution @@ -62,14 +62,14 @@ type Schedule struct { // Last execution's block height LastExecuteHeight uint64 `protobuf:"varint,4,opt,name=last_execute_height,json=lastExecuteHeight,proto3" json:"last_execute_height,omitempty"` // Stage when messages will be executed - ExecutionStage ExecutionStage `protobuf:"varint,5,opt,name=execution_stage,json=executionStage,proto3,enum=neutron.cron.ExecutionStage" json:"execution_stage,omitempty"` + ExecutionStage ExecutionStage `protobuf:"varint,5,opt,name=execution_stage,json=executionStage,proto3,enum=secret.cron.ExecutionStage" json:"execution_stage,omitempty"` } func (m *Schedule) Reset() { *m = Schedule{} } func (m *Schedule) String() string { return proto.CompactTextString(m) } func (*Schedule) ProtoMessage() {} func (*Schedule) Descriptor() ([]byte, []int) { - return fileDescriptor_49ace1b59de613ef, []int{0} + return fileDescriptor_3d6729589d2158da, []int{0} } func (m *Schedule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -145,7 +145,7 @@ func (m *MsgExecuteContract) Reset() { *m = MsgExecuteContract{} } func (m *MsgExecuteContract) String() string { return proto.CompactTextString(m) } func (*MsgExecuteContract) ProtoMessage() {} func (*MsgExecuteContract) Descriptor() ([]byte, []int) { - return fileDescriptor_49ace1b59de613ef, []int{1} + return fileDescriptor_3d6729589d2158da, []int{1} } func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -198,7 +198,7 @@ func (m *ScheduleCount) Reset() { *m = ScheduleCount{} } func (m *ScheduleCount) String() string { return proto.CompactTextString(m) } func (*ScheduleCount) ProtoMessage() {} func (*ScheduleCount) Descriptor() ([]byte, []int) { - return fileDescriptor_49ace1b59de613ef, []int{2} + return fileDescriptor_3d6729589d2158da, []int{2} } func (m *ScheduleCount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,41 +235,41 @@ func (m *ScheduleCount) GetCount() int32 { } func init() { - proto.RegisterEnum("neutron.cron.ExecutionStage", ExecutionStage_name, ExecutionStage_value) - proto.RegisterType((*Schedule)(nil), "neutron.cron.Schedule") - proto.RegisterType((*MsgExecuteContract)(nil), "neutron.cron.MsgExecuteContract") - proto.RegisterType((*ScheduleCount)(nil), "neutron.cron.ScheduleCount") -} - -func init() { proto.RegisterFile("neutron/cron/schedule.proto", fileDescriptor_49ace1b59de613ef) } - -var fileDescriptor_49ace1b59de613ef = []byte{ - // 393 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xc1, 0xaa, 0xd3, 0x40, - 0x18, 0x85, 0x33, 0x36, 0x2d, 0xed, 0xa8, 0xb5, 0x8e, 0x45, 0x42, 0xab, 0x69, 0x2c, 0x08, 0x41, - 0x30, 0x81, 0x8a, 0x1b, 0x77, 0x26, 0x0e, 0x6d, 0x51, 0x5b, 0x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, 0x17, 0xd7, 0x63, 0xf1, 0x19, 0x5a, 0x14, 0x8c, 0xd7, 0x26, 0x57, 0x7e, 0xe8, 0x40, 0x74, - 0xff, 0x60, 0xa8, 0x07, 0x9b, 0x61, 0xa5, 0xab, 0x8b, 0x5f, 0x3c, 0xea, 0xc0, 0x5a, 0xc2, 0xa9, - 0xbc, 0x79, 0xcb, 0x2b, 0xe4, 0xf0, 0x35, 0x7c, 0x7c, 0x5e, 0x97, 0xcb, 0xf2, 0x54, 0xa0, 0x2e, - 0xac, 0x87, 0x85, 0x90, 0xdd, 0xba, 0x57, 0x9a, 0x37, 0x4b, 0xd8, 0xbe, 0x3e, 0x0c, 0x1a, 0xc0, - 0x3e, 0xfe, 0x8e, 0xdd, 0x6f, 0xcb, 0xe9, 0x7c, 0xe6, 0x2f, 0x96, 0x1f, 0xc7, 0xd8, 0xc7, 0xb3, - 0x4f, 0xbe, 0xf3, 0x65, 0xee, 0x7e, 0xc6, 0x5e, 0x47, 0x41, 0xaf, 0xe0, 0xcb, 0xbb, 0x80, 0x83, - 0xc7, 0xd3, 0xd9, 0x05, 0x01, 0xce, 0x64, 0x7f, 0xd4, 0xc1, 0xe1, 0xa8, 0x83, 0x7f, 0x47, 0x1d, - 0xfc, 0x3e, 0xe9, 0xca, 0xe1, 0xa4, 0x2b, 0x7f, 0x4e, 0xba, 0xf2, 0xc3, 0xa2, 0xb1, 0x88, 0xf2, - 0x95, 0x15, 0xb2, 0xc4, 0xae, 0x56, 0xf2, 0x96, 0x65, 0xf4, 0xac, 0xed, 0x9f, 0xef, 0xed, 0x5d, - 0xf9, 0x46, 0xc4, 0xaf, 0x2d, 0xe1, 0xab, 0x86, 0xfc, 0xfb, 0xef, 0x6e, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xee, 0xcd, 0x08, 0xb7, 0x40, 0x02, 0x00, 0x00, + proto.RegisterEnum("secret.cron.ExecutionStage", ExecutionStage_name, ExecutionStage_value) + proto.RegisterType((*Schedule)(nil), "secret.cron.Schedule") + proto.RegisterType((*MsgExecuteContract)(nil), "secret.cron.MsgExecuteContract") + proto.RegisterType((*ScheduleCount)(nil), "secret.cron.ScheduleCount") +} + +func init() { proto.RegisterFile("secret/cron/schedule.proto", fileDescriptor_3d6729589d2158da) } + +var fileDescriptor_3d6729589d2158da = []byte{ + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x4f, 0x8b, 0xd3, 0x40, + 0x1c, 0xcd, 0xd8, 0x74, 0xd9, 0x9d, 0xc5, 0xba, 0x8e, 0x8b, 0x84, 0x2e, 0xa6, 0xb1, 0x20, 0x04, + 0x0f, 0x09, 0xac, 0x27, 0x8f, 0x26, 0x1d, 0xda, 0xa2, 0xa6, 0x90, 0x54, 0x10, 0x2f, 0x21, 0x9d, + 0x0e, 0x93, 0x60, 0x93, 0x29, 0x99, 0x09, 0xd6, 0x6f, 0xe1, 0xc7, 0xea, 0xb1, 0x47, 0x4f, 0x22, + 0xed, 0xc1, 0xaf, 0x21, 0x99, 0xa4, 0xc5, 0xba, 0xb7, 0xf7, 0xe6, 0xbd, 0x37, 0xbf, 0x3f, 0x33, + 0xb0, 0x2f, 0x28, 0x29, 0xa9, 0x74, 0x49, 0xc9, 0x0b, 0x57, 0x90, 0x94, 0x2e, 0xab, 0x15, 0x75, + 0xd6, 0x25, 0x97, 0x1c, 0x5d, 0x37, 0x9a, 0x53, 0x6b, 0xfd, 0x5b, 0xc6, 0x19, 0x57, 0xe7, 0x6e, + 0x8d, 0x1a, 0xcb, 0xf0, 0x0f, 0x80, 0x97, 0x51, 0x9b, 0x42, 0x08, 0xea, 0x45, 0x92, 0x53, 0x03, + 0x58, 0xc0, 0xbe, 0x0a, 0x15, 0x46, 0xcf, 0xe1, 0xc5, 0x9a, 0x96, 0x19, 0x5f, 0x1a, 0x8f, 0x2c, + 0x60, 0xeb, 0x61, 0xcb, 0xd0, 0x5b, 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, 0x9b, 0xe0, 0xf7, 0xde, 0x04, + 0x3f, 0x0e, 0xa6, 0xb6, 0x3b, 0x98, 0xda, 0xcf, 0x83, 0xa9, 0x7d, 0x71, 0x58, 0x26, 0xd3, 0x6a, + 0xe1, 0x10, 0x9e, 0xbb, 0x82, 0x94, 0x72, 0x95, 0x2c, 0x84, 0x1b, 0xa9, 0xd5, 0x04, 0x54, 0x7e, + 0xe3, 0xe5, 0x57, 0x77, 0xd3, 0x7c, 0x10, 0xf9, 0x7d, 0x4d, 0xc5, 0xe2, 0x42, 0xbd, 0xfd, 0x9b, + 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x69, 0xe1, 0x6f, 0x81, 0x3c, 0x02, 0x00, 0x00, } func (m *Schedule) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/tx.pb.go b/x/cron/types/tx.pb.go index c5ffb7299..1b502c253 100644 --- a/x/cron/types/tx.pb.go +++ b/x/cron/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/tx.proto +// source: secret/cron/tx.proto package types @@ -42,14 +42,14 @@ type MsgAddSchedule struct { // Msgs that will be executed every certain number of blocks, specified in the `period` field Msgs []MsgExecuteContract `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs"` // Stage when messages will be executed - ExecutionStage ExecutionStage `protobuf:"varint,5,opt,name=execution_stage,json=executionStage,proto3,enum=neutron.cron.ExecutionStage" json:"execution_stage,omitempty"` + ExecutionStage ExecutionStage `protobuf:"varint,5,opt,name=execution_stage,json=executionStage,proto3,enum=secret.cron.ExecutionStage" json:"execution_stage,omitempty"` } func (m *MsgAddSchedule) Reset() { *m = MsgAddSchedule{} } func (m *MsgAddSchedule) String() string { return proto.CompactTextString(m) } func (*MsgAddSchedule) ProtoMessage() {} func (*MsgAddSchedule) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{0} + return fileDescriptor_dc5dfbc481f4f7b1, []int{0} } func (m *MsgAddSchedule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +121,7 @@ func (m *MsgAddScheduleResponse) Reset() { *m = MsgAddScheduleResponse{} func (m *MsgAddScheduleResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddScheduleResponse) ProtoMessage() {} func (*MsgAddScheduleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{1} + return fileDescriptor_dc5dfbc481f4f7b1, []int{1} } func (m *MsgAddScheduleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,7 +162,7 @@ func (m *MsgRemoveSchedule) Reset() { *m = MsgRemoveSchedule{} } func (m *MsgRemoveSchedule) String() string { return proto.CompactTextString(m) } func (*MsgRemoveSchedule) ProtoMessage() {} func (*MsgRemoveSchedule) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{2} + return fileDescriptor_dc5dfbc481f4f7b1, []int{2} } func (m *MsgRemoveSchedule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +213,7 @@ func (m *MsgRemoveScheduleResponse) Reset() { *m = MsgRemoveScheduleResp func (m *MsgRemoveScheduleResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveScheduleResponse) ProtoMessage() {} func (*MsgRemoveScheduleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{3} + return fileDescriptor_dc5dfbc481f4f7b1, []int{3} } func (m *MsgRemoveScheduleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -258,7 +258,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{4} + return fileDescriptor_dc5dfbc481f4f7b1, []int{4} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -311,7 +311,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c9e0a673aba8d6fd, []int{5} + return fileDescriptor_dc5dfbc481f4f7b1, []int{5} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -341,53 +341,54 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgAddSchedule)(nil), "neutron.cron.MsgAddSchedule") - proto.RegisterType((*MsgAddScheduleResponse)(nil), "neutron.cron.MsgAddScheduleResponse") - proto.RegisterType((*MsgRemoveSchedule)(nil), "neutron.cron.MsgRemoveSchedule") - proto.RegisterType((*MsgRemoveScheduleResponse)(nil), "neutron.cron.MsgRemoveScheduleResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "neutron.cron.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.cron.MsgUpdateParamsResponse") -} - -func init() { proto.RegisterFile("neutron/cron/tx.proto", fileDescriptor_c9e0a673aba8d6fd) } - -var fileDescriptor_c9e0a673aba8d6fd = []byte{ - // 554 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xbf, 0x6b, 0xdb, 0x40, - 0x14, 0xf6, 0xd9, 0x8e, 0xc1, 0xe7, 0xe0, 0x10, 0xd5, 0x75, 0x64, 0x25, 0x55, 0x8c, 0x68, 0x1b, - 0xd7, 0x10, 0x89, 0xba, 0xb4, 0x05, 0x6f, 0x71, 0x31, 0x74, 0x11, 0xb4, 0x72, 0xbb, 0x64, 0x09, - 0x8a, 0x74, 0x9c, 0x05, 0x95, 0x4e, 0xe8, 0x4e, 0xc6, 0xd9, 0x4a, 0xc7, 0x4c, 0xed, 0x5f, 0xd0, - 0xb5, 0xd0, 0xc5, 0x43, 0xff, 0x88, 0x8c, 0xa1, 0x53, 0xa7, 0x52, 0xec, 0xc1, 0xff, 0x46, 0xd1, - 0xaf, 0x44, 0x17, 0x41, 0x0a, 0x85, 0x2c, 0xa7, 0x7b, 0xef, 0xfb, 0xde, 0xd3, 0x77, 0xdf, 0x3d, - 0x0e, 0xde, 0xf7, 0x50, 0xc8, 0x02, 0xe2, 0x69, 0x56, 0xb4, 0xb0, 0xb9, 0xea, 0x07, 0x84, 0x11, - 0x61, 0x33, 0x4d, 0xab, 0x51, 0x5a, 0xda, 0x36, 0x5d, 0xc7, 0x23, 0x5a, 0xbc, 0x26, 0x04, 0x69, - 0xc7, 0x22, 0xd4, 0x25, 0x54, 0x73, 0x29, 0xd6, 0x66, 0x4f, 0xa3, 0x4f, 0x0a, 0x74, 0x12, 0xe0, - 0x24, 0x8e, 0xb4, 0x24, 0x48, 0xa1, 0x16, 0x26, 0x98, 0x24, 0xf9, 0x68, 0x97, 0x15, 0x70, 0x0a, - 0x7c, 0x33, 0x30, 0xdd, 0xac, 0x60, 0x97, 0x83, 0xa8, 0x35, 0x45, 0x76, 0xf8, 0x01, 0x25, 0xa0, - 0xf2, 0xb5, 0x0c, 0x9b, 0x3a, 0xc5, 0x47, 0xb6, 0x3d, 0x49, 0x01, 0xe1, 0x05, 0xac, 0x9b, 0x21, - 0x9b, 0x92, 0xc0, 0x61, 0x67, 0x22, 0xe8, 0x82, 0x5e, 0x7d, 0x24, 0xfe, 0xfc, 0x71, 0xd8, 0x4a, - 0x55, 0x1c, 0xd9, 0x76, 0x80, 0x28, 0x9d, 0xb0, 0xc0, 0xf1, 0xb0, 0x71, 0x4d, 0x15, 0x04, 0x58, - 0xf5, 0x4c, 0x17, 0x89, 0xe5, 0xa8,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0x83, 0xe2, 0x61, 0x5a, 0xd9, - 0x61, 0xf2, 0xca, 0x94, 0x0e, 0xdc, 0xb9, 0x91, 0xca, 0x0e, 0x32, 0xf8, 0x52, 0x86, 0x15, 0x9d, - 0x62, 0xe1, 0x2d, 0x6c, 0xe4, 0x47, 0x76, 0xaf, 0x30, 0x40, 0x39, 0x54, 0x7a, 0x78, 0x1b, 0x9a, - 0xb5, 0x16, 0x8e, 0x61, 0xf3, 0xc6, 0x4d, 0xee, 0x17, 0xea, 0x78, 0x82, 0x74, 0xf0, 0x0f, 0xc2, - 0x55, 0xef, 0x77, 0x70, 0x93, 0xf3, 0xfe, 0x41, 0xa1, 0x30, 0x0f, 0x4b, 0x8f, 0x6e, 0x85, 0xb3, - 0xae, 0xd2, 0xc6, 0xc7, 0xc8, 0xdf, 0xd1, 0xeb, 0x8b, 0xa5, 0x0c, 0x2e, 0x97, 0x32, 0xf8, 0xb3, - 0x94, 0xc1, 0xe7, 0x95, 0x5c, 0xba, 0x5c, 0xc9, 0xa5, 0x5f, 0x2b, 0xb9, 0x74, 0xac, 0x62, 0x87, - 0x4d, 0xc3, 0x53, 0xd5, 0x22, 0xae, 0x96, 0x76, 0x3c, 0x24, 0x01, 0xce, 0xf6, 0xda, 0xec, 0xb9, - 0x36, 0x4f, 0x9f, 0xac, 0x33, 0x1f, 0xd1, 0xd3, 0x5a, 0xfc, 0x26, 0x3c, 0xfb, 0x1b, 0x00, 0x00, - 0xff, 0xff, 0x37, 0xae, 0x51, 0x3e, 0xcf, 0x04, 0x00, 0x00, + proto.RegisterType((*MsgAddSchedule)(nil), "secret.cron.MsgAddSchedule") + proto.RegisterType((*MsgAddScheduleResponse)(nil), "secret.cron.MsgAddScheduleResponse") + proto.RegisterType((*MsgRemoveSchedule)(nil), "secret.cron.MsgRemoveSchedule") + proto.RegisterType((*MsgRemoveScheduleResponse)(nil), "secret.cron.MsgRemoveScheduleResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "secret.cron.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "secret.cron.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("secret/cron/tx.proto", fileDescriptor_dc5dfbc481f4f7b1) } + +var fileDescriptor_dc5dfbc481f4f7b1 = []byte{ + // 561 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x9b, 0x6d, 0xb7, 0xd0, 0xa9, 0x74, 0xd9, 0x6c, 0xe9, 0xa6, 0xa9, 0x64, 0x4b, 0x95, + 0xb5, 0x16, 0x4c, 0xb0, 0xc2, 0x82, 0xbd, 0x6d, 0x75, 0xc1, 0x4b, 0x55, 0x52, 0x04, 0xf1, 0xb2, + 0xa4, 0xc9, 0x30, 0x0d, 0x6e, 0x32, 0x61, 0xde, 0x74, 0xed, 0xde, 0xc4, 0xe3, 0x7a, 0xf1, 0x0b, + 0x78, 0x17, 0x4f, 0x3d, 0xf8, 0x21, 0xf6, 0xb8, 0x78, 0xf2, 0x24, 0xd2, 0x1e, 0xfa, 0x35, 0x24, + 0x93, 0x64, 0x37, 0x69, 0xa1, 0x07, 0xc1, 0x4b, 0x32, 0xef, 0xfd, 0xde, 0x7b, 0xf3, 0x9f, 0x37, + 0x8f, 0x41, 0x55, 0xc0, 0x36, 0xc3, 0xdc, 0xb0, 0x19, 0xf5, 0x0d, 0x3e, 0xd5, 0x03, 0x46, 0x39, + 0x95, 0xcb, 0x91, 0x57, 0x0f, 0xbd, 0xea, 0xae, 0xe5, 0xb9, 0x3e, 0x35, 0xc4, 0x37, 0xe2, 0xea, + 0xbe, 0x4d, 0xc1, 0xa3, 0x60, 0x78, 0x40, 0x8c, 0xf3, 0xc7, 0xe1, 0x2f, 0x06, 0xf5, 0x08, 0x9c, + 0x0a, 0xcb, 0x88, 0x8c, 0x18, 0x55, 0x09, 0x25, 0x34, 0xf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0x9b, 0x7a, 0x06, 0xd8, 0x8c, 0x9f, 0x59, 0x23, 0x30, 0x86, 0xa2, + 0xf2, 0x4b, 0xcc, 0x3f, 0x50, 0xf6, 0xde, 0x98, 0xc6, 0xcf, 0xd4, 0x45, 0x80, 0x61, 0x54, 0x14, + 0x4f, 0xc1, 0x93, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x28, 0x09, 0xad, 0x41, 0xc2, 0x04, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -420,7 +421,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) AddSchedule(ctx context.Context, in *MsgAddSchedule, opts ...grpc.CallOption) (*MsgAddScheduleResponse, error) { out := new(MsgAddScheduleResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Msg/AddSchedule", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Msg/AddSchedule", in, out, opts...) if err != nil { return nil, err } @@ -429,7 +430,7 @@ func (c *msgClient) AddSchedule(ctx context.Context, in *MsgAddSchedule, opts .. func (c *msgClient) RemoveSchedule(ctx context.Context, in *MsgRemoveSchedule, opts ...grpc.CallOption) (*MsgRemoveScheduleResponse, error) { out := new(MsgRemoveScheduleResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Msg/RemoveSchedule", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Msg/RemoveSchedule", in, out, opts...) if err != nil { return nil, err } @@ -438,7 +439,7 @@ func (c *msgClient) RemoveSchedule(ctx context.Context, in *MsgRemoveSchedule, o func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.cron.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/secret.cron.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -483,7 +484,7 @@ func _Msg_AddSchedule_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Msg/AddSchedule", + FullMethod: "/secret.cron.Msg/AddSchedule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddSchedule(ctx, req.(*MsgAddSchedule)) @@ -501,7 +502,7 @@ func _Msg_RemoveSchedule_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Msg/RemoveSchedule", + FullMethod: "/secret.cron.Msg/RemoveSchedule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveSchedule(ctx, req.(*MsgRemoveSchedule)) @@ -519,7 +520,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.cron.Msg/UpdateParams", + FullMethod: "/secret.cron.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -528,7 +529,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.cron.Msg", + ServiceName: "secret.cron.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -545,7 +546,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/cron/tx.proto", + Metadata: "secret/cron/tx.proto", } func (m *MsgAddSchedule) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/v1/schedule.pb.go b/x/cron/types/v1/schedule.pb.go index a37932a39..db2717010 100644 --- a/x/cron/types/v1/schedule.pb.go +++ b/x/cron/types/v1/schedule.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/cron/v1/schedule.proto +// source: secret/cron/v1/schedule.proto package v1 @@ -39,7 +39,7 @@ func (m *Schedule) Reset() { *m = Schedule{} } func (m *Schedule) String() string { return proto.CompactTextString(m) } func (*Schedule) ProtoMessage() {} func (*Schedule) Descriptor() ([]byte, []int) { - return fileDescriptor_cd4938034d592826, []int{0} + return fileDescriptor_e9ea3196663ffe81, []int{0} } func (m *Schedule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -108,7 +108,7 @@ func (m *MsgExecuteContract) Reset() { *m = MsgExecuteContract{} } func (m *MsgExecuteContract) String() string { return proto.CompactTextString(m) } func (*MsgExecuteContract) ProtoMessage() {} func (*MsgExecuteContract) Descriptor() ([]byte, []int) { - return fileDescriptor_cd4938034d592826, []int{1} + return fileDescriptor_e9ea3196663ffe81, []int{1} } func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -161,7 +161,7 @@ func (m *ScheduleCount) Reset() { *m = ScheduleCount{} } func (m *ScheduleCount) String() string { return proto.CompactTextString(m) } func (*ScheduleCount) ProtoMessage() {} func (*ScheduleCount) Descriptor() ([]byte, []int) { - return fileDescriptor_cd4938034d592826, []int{2} + return fileDescriptor_e9ea3196663ffe81, []int{2} } func (m *ScheduleCount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -198,35 +198,36 @@ func (m *ScheduleCount) GetCount() int32 { } func init() { - proto.RegisterType((*Schedule)(nil), "neutron.cron.v1.Schedule") - proto.RegisterType((*MsgExecuteContract)(nil), "neutron.cron.v1.MsgExecuteContract") - proto.RegisterType((*ScheduleCount)(nil), "neutron.cron.v1.ScheduleCount") -} - -func init() { proto.RegisterFile("neutron/cron/v1/schedule.proto", fileDescriptor_cd4938034d592826) } - -var fileDescriptor_cd4938034d592826 = []byte{ - // 316 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xc1, 0x4a, 0xc3, 0x30, - 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0x3a, 0xf0, 0x6d, 0x8f, 0x53, 0x63, 0xb9, 0xf4, 0xa3, 0x35, - 0x46, 0x13, 0x88, 0xfe, 0xdf, 0x88, 0x06, 0xb0, 0xcb, 0x1c, 0xbb, 0xa1, 0x7f, 0x35, 0x3a, 0x81, - 0xad, 0x44, 0x09, 0x3b, 0x75, 0x2f, 0x32, 0x38, 0xba, 0x82, 0x47, 0xfb, 0x55, 0xa7, 0xb2, 0x48, - 0x35, 0xea, 0xc3, 0x36, 0x33, 0x60, 0xb3, 0xed, 0xa8, 0x11, 0x93, 0xa7, 0x6d, 0x85, 0xc1, 0xae, - 0xc2, 0xe0, 0xbb, 0xc2, 0xe0, 0xbd, 0xc6, 0xde, 0xae, 0xc6, 0xde, 0x67, 0x8d, 0xbd, 0xd7, 0x50, - 0xac, 0x74, 0x5c, 0x2c, 0x08, 0x93, 0x09, 0x75, 0xfb, 0x5e, 0xcb, 0x5c, 0xec, 0x99, 0x96, 0x77, - 0x74, 0xd3, 0xfc, 0x87, 0x7e, 0xcb, 0xb8, 0xa2, 0x65, 0xb8, 0xe8, 0xd8, 0x67, 0xbe, 0xfd, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x43, 0xbd, 0xcc, 0x86, 0xaf, 0x01, 0x00, 0x00, + proto.RegisterType((*Schedule)(nil), "secret.cron.v1.Schedule") + proto.RegisterType((*MsgExecuteContract)(nil), "secret.cron.v1.MsgExecuteContract") + proto.RegisterType((*ScheduleCount)(nil), "secret.cron.v1.ScheduleCount") +} + +func init() { proto.RegisterFile("secret/cron/v1/schedule.proto", fileDescriptor_e9ea3196663ffe81) } + +var fileDescriptor_e9ea3196663ffe81 = []byte{ + // 323 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xc1, 0x4a, 0x3b, 0x31, + 0x10, 0xc6, 0x37, 0xff, 0x6e, 0x4b, 0x9b, 0x3f, 0x8a, 0xc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 0x43, 0x4c, 0xfe, 0xbe, 0x48, 0x7a, 0xb8, 0x2d, 0x6a, 0x5d, 0xcf, 0xfc, 0xe3, 0xc9, 0x11, + 0x6e, 0x64, 0x56, 0xb9, 0xa1, 0x3b, 0x71, 0x29, 0xc3, 0x0b, 0x7c, 0xf0, 0xbd, 0xe9, 0x48, 0x17, + 0x39, 0x90, 0x2e, 0x6e, 0x8a, 0x52, 0xb8, 0x6c, 0x33, 0xae, 0xcc, 0xf0, 0x6e, 0xb3, 0xa3, 0x68, + 0xbb, 0xa3, 0xe8, 0x73, 0x47, 0xd1, 0xeb, 0x9e, 0x7a, 0xdb, 0x3d, 0xf5, 0xde, 0xf7, 0xd4, 0x7b, + 0x8c, 0xd4, 0x1c, 0xd2, 0x62, 0xca, 0x84, 0xce, 0xb8, 0x15, 0x06, 0x16, 0xc9, 0xd4, 0xf2, 0xb1, + 0xdb, 0xfb, 0x41, 0xc2, 0xb3, 0x36, 0x4f, 0x7c, 0x5d, 0x5d, 0x03, 0x5e, 0x96, 0xd2, 0xf2, 0x55, + 0x34, 0x6d, 0xb9, 0x5f, 0xbe, 0xfa, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x7e, 0x3b, 0xfa, 0xac, + 0x01, 0x00, 0x00, } func (m *Schedule) Marshal() (dAtA []byte, err error) {