Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: revert field name changes #153

Merged
merged 1 commit into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions proto/greenfield/storage/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ option go_package = "github.com/bnb-chain/greenfield/x/storage/types";

// EventCreateBucket is emitted on MsgCreateBucket
message EventCreateBucket {
// owner define the account address of bucket owner
string owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of bucket owner
string owner_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name is a globally unique name of bucket
string bucket_name = 2;
// visibility defines the highest permissions for bucket. When a bucket is public, everyone can get the object under it.
Expand All @@ -35,10 +35,10 @@ message EventCreateBucket {

// EventDeleteBucket is emitted on MsgDeleteBucket
message EventDeleteBucket {
// operator define the account address of operator who delete the bucket
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner define the account address of the bucket owner
string owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who delete the bucket
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of the bucket owner
string owner_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the deleted bucket
string bucket_name = 3;
// bucket_id define an u256 id for bucket
Expand All @@ -53,8 +53,8 @@ message EventDeleteBucket {

// EventUpdateBucketInfo is emitted on MsgUpdateBucketInfo
message EventUpdateBucketInfo {
// operator define the account address of operator who update the bucket
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who update the bucket
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// bucket_id define an u256 id for bucket
Expand All @@ -77,10 +77,10 @@ message EventUpdateBucketInfo {

// EventCreateObject is emitted on MsgCreateObject
message EventCreateObject {
// creator define the account address of msg creator
string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner define the account address of object owner
string owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// creator_address define the account address of msg creator
string creator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of object owner
string owner_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of bucket
string bucket_name = 3;
// object_name define the name of object
Expand Down Expand Up @@ -119,8 +119,8 @@ message EventCreateObject {

// EventSealObject is emitted on MsgSealObject
message EventCancelCreateObject {
// operator define the account address of operator who cancel create object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who cancel create object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
Expand All @@ -137,8 +137,8 @@ message EventCancelCreateObject {

// EventSealObject is emitted on MsgSealObject
message EventSealObject {
// operator define the account address of operator who seal object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who seal object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
Expand All @@ -157,8 +157,8 @@ message EventSealObject {

// EventCopyObject is emitted on MsgCopyObject
message EventCopyObject {
// operator define the account address of operator who copy the object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who copy the object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// src_bucket_name define the name of the src bucket
string src_bucket_name = 2;
// src_object_name define the name of the src object
Expand All @@ -183,8 +183,8 @@ message EventCopyObject {

// EventDeleteObject is emitted on MsgDeleteObject
message EventDeleteObject {
// operator define the account address of operator who delete the object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who delete the object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
Expand All @@ -203,8 +203,8 @@ message EventDeleteObject {

// EventRejectSealObject is emitted on MsgRejectSealObject
message EventRejectSealObject {
// operator define the account address of operator who reject seal object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who reject seal object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
Expand All @@ -219,8 +219,8 @@ message EventRejectSealObject {

// EventCreateGroup is emitted on MsgCreateGroup
message EventCreateGroup {
// owner define the account address of group owner
string owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of group owner
string owner_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// group_name define the name of the group
string group_name = 2;
// id define an u256 id for group
Expand All @@ -237,8 +237,8 @@ message EventCreateGroup {

// EventDeleteGroup is emitted on MsgDeleteGroup
message EventDeleteGroup {
// owner define the account address of group owner
string owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of group owner
string owner_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
Expand All @@ -253,8 +253,8 @@ message EventDeleteGroup {
message EventLeaveGroup {
// member_address define the address of the member who leave the group
string member_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner define the account address of group owner
string owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of group owner
string owner_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
Expand All @@ -267,10 +267,10 @@ message EventLeaveGroup {

// EventUpdateGroupMember is emitted on MsgUpdateGroupMember
message EventUpdateGroupMember {
// operator define the account address of operator who update the group member
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner define the account address of group owner
string owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who update the group member
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of group owner
string owner_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
Expand All @@ -287,8 +287,8 @@ message EventUpdateGroupMember {

// EventMirrorBucket is emitted on MirrorBucket
message EventMirrorBucket {
// operator define the account address of operator who mirror the bucket
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who mirror the bucket
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name defines the name of the bucket
string bucket_name = 2;
// bucket_id define an u256 id for bucket
Expand All @@ -315,8 +315,8 @@ message EventMirrorBucketResult {

// EventMirrorObject is emitted on MirrorObject
message EventMirrorObject {
// operator define the account address of operator who delete the object
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// operator_address define the account address of operator who delete the object
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
Expand Down Expand Up @@ -347,8 +347,8 @@ message EventMirrorObjectResult {

// EventMirrorGroup is emitted on MirrorGroup
message EventMirrorGroup {
// owner define the account address of group owner
string owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// owner_address define the account address of group owner
string owner_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// group_name define the name of the group
string group_name = 2;
// group_id define an u256 id for group
Expand Down
54 changes: 27 additions & 27 deletions x/permission/types/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading