|
| 1 | +syntax = "proto3"; |
| 2 | +package neutron.cron; |
| 3 | + |
| 4 | +import "amino/amino.proto"; |
| 5 | +import "cosmos/msg/v1/msg.proto"; |
| 6 | +import "cosmos_proto/cosmos.proto"; |
| 7 | +import "gogoproto/gogo.proto"; |
| 8 | +import "neutron/cron/params.proto"; |
| 9 | +import "neutron/cron/schedule.proto"; |
| 10 | + |
| 11 | +// this line is used by starport scaffolding # proto/tx/import |
| 12 | + |
| 13 | +option go_package = "github.com/neutron-org/neutron/v5/x/cron/types"; |
| 14 | + |
| 15 | +// Defines the Msg service. |
| 16 | +service Msg { |
| 17 | + option (cosmos.msg.v1.service) = true; |
| 18 | + |
| 19 | + // Adds new schedule. |
| 20 | + rpc AddSchedule(MsgAddSchedule) returns (MsgAddScheduleResponse); |
| 21 | + // Removes schedule. |
| 22 | + rpc RemoveSchedule(MsgRemoveSchedule) returns (MsgRemoveScheduleResponse); |
| 23 | + // Updates the module parameters. |
| 24 | + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); |
| 25 | + // this line is used by starport scaffolding # proto/tx/rpc |
| 26 | +} |
| 27 | + |
| 28 | +// The MsgAddSchedule request type. |
| 29 | +message MsgAddSchedule { |
| 30 | + option (amino.name) = "cron/MsgAddSchedule"; |
| 31 | + option (cosmos.msg.v1.signer) = "authority"; |
| 32 | + |
| 33 | + // The address of the governance account. |
| 34 | + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; |
| 35 | + // Name of the schedule |
| 36 | + string name = 2; |
| 37 | + // Period in blocks |
| 38 | + uint64 period = 3; |
| 39 | + // Msgs that will be executed every certain number of blocks, specified in the `period` field |
| 40 | + repeated MsgExecuteContract msgs = 4 [(gogoproto.nullable) = false]; |
| 41 | + // Stage when messages will be executed |
| 42 | + ExecutionStage execution_stage = 5; |
| 43 | +} |
| 44 | + |
| 45 | +// Defines the response structure for executing a MsgAddSchedule message. |
| 46 | +message MsgAddScheduleResponse {} |
| 47 | + |
| 48 | +// The MsgRemoveSchedule request type. |
| 49 | +message MsgRemoveSchedule { |
| 50 | + option (amino.name) = "cron/MsgRemoveSchedule"; |
| 51 | + option (cosmos.msg.v1.signer) = "authority"; |
| 52 | + |
| 53 | + // The address of the governance account. |
| 54 | + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; |
| 55 | + // Name of the schedule |
| 56 | + string name = 2; |
| 57 | +} |
| 58 | + |
| 59 | +// Defines the response structure for executing a MsgRemoveSchedule message. |
| 60 | +message MsgRemoveScheduleResponse {} |
| 61 | + |
| 62 | +// this line is used by starport scaffolding # proto/tx/message |
| 63 | + |
| 64 | +// The MsgUpdateParams request type. |
| 65 | +// |
| 66 | +// Since: 0.47 |
| 67 | +message MsgUpdateParams { |
| 68 | + option (amino.name) = "cron/MsgUpdateParams"; |
| 69 | + option (cosmos.msg.v1.signer) = "authority"; |
| 70 | + |
| 71 | + // The address of the governance account. |
| 72 | + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; |
| 73 | + |
| 74 | + // Defines the x/cron parameters to update. |
| 75 | + // |
| 76 | + // NOTE: All parameters must be supplied. |
| 77 | + Params params = 2 [ |
| 78 | + (gogoproto.nullable) = false, |
| 79 | + (amino.dont_omitempty) = true |
| 80 | + ]; |
| 81 | +} |
| 82 | + |
| 83 | +// Defines the response structure for executing a MsgUpdateParams message. |
| 84 | +// |
| 85 | +// Since: 0.47 |
| 86 | +message MsgUpdateParamsResponse {} |
0 commit comments