2021-12-10 03:02:11 -08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package cosmos.group.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/group";
|
|
|
|
|
|
|
|
// EventCreateGroup is an event emitted when a group is created.
|
|
|
|
message EventCreateGroup {
|
|
|
|
|
|
|
|
// group_id is the unique ID of the group.
|
|
|
|
uint64 group_id = 1;
|
|
|
|
}
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2021-12-10 03:02:11 -08:00
|
|
|
// EventUpdateGroup is an event emitted when a group is updated.
|
|
|
|
message EventUpdateGroup {
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2021-12-10 03:02:11 -08:00
|
|
|
// group_id is the unique ID of the group.
|
|
|
|
uint64 group_id = 1;
|
|
|
|
}
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-01-05 00:54:52 -08:00
|
|
|
// EventCreateGroupPolicy is an event emitted when a group policy is created.
|
|
|
|
message EventCreateGroupPolicy {
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-01-05 00:54:52 -08:00
|
|
|
// address is the account address of the group policy.
|
2021-12-16 08:59:19 -08:00
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2021-12-10 03:02:11 -08:00
|
|
|
}
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-01-05 00:54:52 -08:00
|
|
|
// EventUpdateGroupPolicy is an event emitted when a group policy is updated.
|
|
|
|
message EventUpdateGroupPolicy {
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-01-05 00:54:52 -08:00
|
|
|
// address is the account address of the group policy.
|
2021-12-16 08:59:19 -08:00
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2021-12-10 03:02:11 -08:00
|
|
|
}
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-02-14 05:48:17 -08:00
|
|
|
// EventSubmitProposal is an event emitted when a proposal is created.
|
|
|
|
message EventSubmitProposal {
|
2021-12-10 03:02:11 -08:00
|
|
|
|
|
|
|
// proposal_id is the unique ID of the proposal.
|
|
|
|
uint64 proposal_id = 1;
|
|
|
|
}
|
2021-12-16 08:59:19 -08:00
|
|
|
|
2022-02-04 00:37:45 -08:00
|
|
|
// EventWithdrawProposal is an event emitted when a proposal is withdrawn.
|
|
|
|
message EventWithdrawProposal {
|
|
|
|
|
|
|
|
// proposal_id is the unique ID of the proposal.
|
|
|
|
uint64 proposal_id = 1;
|
|
|
|
}
|
|
|
|
|
2021-12-10 03:02:11 -08:00
|
|
|
// EventVote is an event emitted when a voter votes on a proposal.
|
|
|
|
message EventVote {
|
|
|
|
|
|
|
|
// proposal_id is the unique ID of the proposal.
|
|
|
|
uint64 proposal_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// EventExec is an event emitted when a proposal is executed.
|
|
|
|
message EventExec {
|
|
|
|
|
|
|
|
// proposal_id is the unique ID of the proposal.
|
|
|
|
uint64 proposal_id = 1;
|
|
|
|
}
|
2022-03-04 06:03:31 -08:00
|
|
|
|
|
|
|
// EventLeaveGroup is an event emitted when group member leaves the group.
|
|
|
|
message EventLeaveGroup {
|
|
|
|
|
|
|
|
// group_id is the unique ID of the group.
|
|
|
|
uint64 group_id = 1;
|
|
|
|
|
|
|
|
// address is the account address of the group member.
|
|
|
|
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
}
|