syntax = "proto3";
package cyber.dmn.v1beta1;
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "cyber/dmn/v1beta1/types.proto";
import "cosmos/base/v1beta1/coin.proto";
option go_package = "github.com/cybercongress/go-cyber/x/dmn/types";
service Msg {
rpc CreateThought(MsgCreateThought) returns (MsgCreateThoughtResponse);
rpc ForgetThought(MsgForgetThought) returns (MsgForgetThoughtResponse);
rpc ChangeThoughtParticle(MsgChangeThoughtParticle)
returns (MsgChangeThoughtParticleResponse);
rpc ChangeThoughtName(MsgChangeThoughtName)
returns (MsgChangeThoughtNameResponse);
rpc ChangeThoughtInput(MsgChangeThoughtInput)
returns (MsgChangeThoughtInputResponse);
rpc ChangeThoughtGasPrice(MsgChangeThoughtGasPrice)
returns (MsgChangeThoughtGasPriceResponse);
rpc ChangeThoughtPeriod(MsgChangeThoughtPeriod)
returns (MsgChangeThoughtPeriodResponse);
rpc ChangeThoughtBlock(MsgChangeThoughtBlock)
returns (MsgChangeThoughtBlockResponse);
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}
message MsgCreateThought {
string program = 1;
Trigger trigger = 2 [ (gogoproto.nullable) = false ];
Load load = 3 [ (gogoproto.nullable) = false ];
string name = 4;
string particle = 5;
}
message MsgForgetThought {
string program = 1;
string name = 2;
}
message MsgChangeThoughtParticle {
string program = 1;
string name = 2;
string particle = 3;
}
message MsgChangeThoughtName {
string program = 1;
string name = 2;
string new_name = 3;
}
message MsgChangeThoughtInput {
string program = 1;
string name = 2;
string input = 3;
}
message MsgChangeThoughtGasPrice {
string program = 1;
string name = 2;
cosmos.base.v1beta1.Coin gas_price = 3 [
(gogoproto.nullable) = false,
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin"
];
}
message MsgChangeThoughtPeriod {
string program = 1;
string name = 2;
uint64 period = 3;
}
message MsgChangeThoughtBlock {
string program = 1;
string name = 2;
uint64 block = 3;
}
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
Params params = 2 [ (gogoproto.nullable) = false ];
}
message MsgCreateThoughtResponse {}
message MsgForgetThoughtResponse {}
message MsgChangeThoughtParticleResponse {}
message MsgChangeThoughtNameResponse {}
message MsgChangeThoughtInputResponse {}
message MsgChangeThoughtGasPriceResponse {}
message MsgChangeThoughtPeriodResponse {}
message MsgChangeThoughtBlockResponse {}
message MsgUpdateParamsResponse {}