-
Notifications
You must be signed in to change notification settings - Fork 43
/
events.proto
684 lines (645 loc) · 25.5 KB
/
events.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
syntax = "proto3";
package greenfield.storage;
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "greenfield/resource/types.proto";
import "greenfield/storage/common.proto";
import "greenfield/storage/types.proto";
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"];
// 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.
VisibilityType visibility = 3;
// create_at define the block timestamp when the bucket has been created
int64 create_at = 4;
// bucket_id is the unique u256 for bucket. Not global, only unique in buckets.
string bucket_id = 5 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// source_type define the source of the bucket. CrossChain or Greenfield origin
SourceType source_type = 6;
// read_quota defines the charged traffic quota for read, not include free quota which provided by each storage provider
uint64 charged_read_quota = 7;
// payment_address is the address of the payment account
string payment_address = 8 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// primary_sp_id is the unique id of primary sp.
uint32 primary_sp_id = 9;
// global_virtual_group_family_id defines the unique id of gvg family
uint32 global_virtual_group_family_id = 10;
// status define the status of the bucket.
BucketStatus status = 11;
}
// 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"];
// bucket_name define the name of the deleted bucket
string bucket_name = 3;
// bucket_id define an u256 id for bucket
string bucket_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// global_virtual_group_family_id defines the unique id of gvg family
uint32 global_virtual_group_family_id = 5;
}
// 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"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// charged_read_quota_after define the read quota after updated
uint64 charged_read_quota = 4;
// payment_address define the payment address after updated
string payment_address = 5;
// visibility defines the highest permission of object.
VisibilityType visibility = 6;
// global_virtual_group_family_id defines the gvg family id after migrated.
uint32 global_virtual_group_family_id = 7;
}
// EventDiscontinueBucket is emitted on MsgDiscontinueBucket
message EventDiscontinueBucket {
// bucket_id define id of the bucket
string bucket_id = 1 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// bucket_name define the name of the bucket
string bucket_name = 2;
// the reason
string reason = 3;
// the timestamp after which the metadata will be deleted
int64 delete_at = 4;
}
// 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"];
// bucket_name define the name of bucket
string bucket_name = 3;
// object_name define the name of object
string object_name = 4;
// bucket_id define an u256 id for bucket
string bucket_id = 6 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// object_id define an u256 id for object
string object_id = 7 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// primary_sp_id define the unique id of primary sp
uint32 primary_sp_id = 8;
// payload_size define the size of payload data which you want upload
uint64 payload_size = 9;
// visibility defines the highest permission of object.
VisibilityType visibility = 10;
// content_type define the content type of the payload data
string content_type = 11;
// create_at define the block timestamp when the object created
int64 create_at = 12;
// status define the status of the object. INIT or IN_SERVICE or others
ObjectStatus status = 13;
// redundancy_type define the type of redundancy. Replication or EC
RedundancyType redundancy_type = 14;
// source_type define the source of the object. CrossChain or Greenfield origin
SourceType source_type = 15;
// checksums define the total checksums of the object which generated by redundancy
repeated bytes checksums = 16;
// local_virtual_group_id defines the unique id of lvg which the object stored
uint32 local_virtual_group_id = 17;
}
// EventCancelCreateObject is emitted on MsgCancelCreateObject
message EventCancelCreateObject {
// operator define the account address of operator who cancel create object
string operator = 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
string object_name = 3;
// primary_sp_id define the unique id of primary sp
uint32 primary_sp_id = 4;
// id define an u256 id for object
string object_id = 6 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
}
// 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"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
string object_name = 3;
// id define an u256 id for object
string object_id = 5 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// status define the status of the object. INIT or IN_SERVICE or others
ObjectStatus status = 6;
// global_virtual_group_id defines the unique id of gvg which the object stored
uint32 global_virtual_group_id = 7;
// local_virtual_group_id defines the unique id of lvg which the object stored
uint32 local_virtual_group_id = 8;
// checksums define the total checksums of the object which generated by redundancy
// SP might set the checksum of object if it was delegated created by SP, which checksum
// will not be available until sealing object.
repeated bytes checksums = 9;
}
// 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"];
// 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
string src_object_name = 3;
// dst_bucket_name define the name of the dst bucket
string dst_bucket_name = 4;
// dst_object_name define the name of the dst object
string dst_object_name = 5;
// src_object_id define the u256 id for src object
string src_object_id = 6 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// dst_object_id define the u256 id for dst object
string dst_object_id = 7 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// local_virtual_group_id defines the unique id of lvg which the object stored
uint32 local_virtual_group_id = 8;
}
// 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"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
string object_name = 3;
// id define an u256 id for object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// local_virtual_group_id defines the unique id of lvg which the object stored
uint32 local_virtual_group_id = 5;
}
// 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"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
string object_name = 3;
// id define an u256 id for object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// for_update indicates whether reject sealing on a updating object
bool for_update = 5;
}
// EventDiscontinueObject is emitted on MsgDiscontinueObject
message EventDiscontinueObject {
// bucket_name define the name of the bucket
string bucket_name = 1;
// object_id defines id of the object
string object_id = 2 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// the reason
string reason = 3;
// the timestamp after which the metadata will be deleted
int64 delete_at = 4;
}
// EventUpdateObjectInfo is emitted on MsgUpdateObjectInfo
message EventUpdateObjectInfo {
// operator define the account address of operator who update the bucket
string operator = 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
string object_name = 3;
// object_id define an u256 id for object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// visibility defines the highest permission of object.
VisibilityType visibility = 5;
}
// EventCreateGroup is emitted on MsgCreateGroup
message EventCreateGroup {
// owner define the account address of group owner
string owner = 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
string group_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// source_type define the source of the group. CrossChain or Greenfield origin
SourceType source_type = 4;
// extra defines extra info for the group
string extra = 5;
}
// EventDeleteGroup is emitted on MsgDeleteGroup
message EventDeleteGroup {
// owner define the account address of group owner
string owner = 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
string group_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
}
// EventLeaveGroup is emitted on MsgLeaveGroup
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"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
string group_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
}
// 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"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
string group_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// members_to_add defines all the members to be added to the group
repeated EventGroupMemberDetail members_to_add = 5;
// members_to_add defines all the members to be deleted from the group
repeated string members_to_delete = 6 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}
message EventRenewGroupMember {
// 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"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
string group_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// source_type define the source of the group. CrossChain or Greenfield origin
SourceType source_type = 5;
// members define the all the address of the members.
repeated EventGroupMemberDetail members = 6;
}
message EventGroupMemberDetail {
// member defines the account address of the group member
string member = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// expiration_time defines the expiration time of the group member
google.protobuf.Timestamp expiration_time = 2 [(gogoproto.stdtime) = true];
}
// EventUpdateGroupExtra is emitted on MsgUpdateGroupExtra
message EventUpdateGroupExtra {
// 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"];
// group_name define the name of the group
string group_name = 3;
// id define an u256 id for group
string group_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// extra defines extra info for the group to update
string extra = 5;
}
// 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"];
// bucket_name defines the name of the bucket
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 5;
}
// EventMirrorBucketResult is emitted on receiving ack package from destination chain
message EventMirrorBucketResult {
// status define the status of the result
uint32 status = 1;
// bucket_name defines the name of the bucket
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 5;
}
// 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"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
string object_name = 3;
// object_id define an u256 id for object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 5;
}
// EventMirrorObjectResult is emitted on receiving ack package from destination chain
message EventMirrorObjectResult {
// status define the status of the result
uint32 status = 1;
// bucket_name define the name of the bucket
string bucket_name = 2;
// object_name define the name of the object
string object_name = 3;
// object_id define an u256 id for object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 5;
}
// EventMirrorGroup is emitted on MirrorGroup
message EventMirrorGroup {
// owner define the account address of group owner
string owner = 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
string group_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 4;
}
// EventMirrorGroupResult is emitted on receiving ack package from destination chain
message EventMirrorGroupResult {
// status define the status of the result
uint32 status = 1;
// group_name define the name of the group
string group_name = 2;
// group_id define an u256 id for group
string group_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// chain id of the destination chain
uint32 dest_chain_id = 4;
}
// EventStalePolicyCleanup is emitted when specified block height's stale policies need to be Garbage collected
message EventStalePolicyCleanup {
int64 blockNum = 1;
DeleteInfo delete_info = 2;
}
message EventMigrationBucket {
// The address of the operator that initiated the bucket migration,
// usually the owner of the bucket or another account which has permission to operate
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// The id of the destination primary sp
uint32 dst_primary_sp_id = 4;
// status define the status of the bucket.
BucketStatus status = 5;
}
message EventCancelMigrationBucket {
// The address of the operator that canceled the bucket migration,
// usually the owner of the bucket or another account which has permission to operate
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// status define the status of the bucket.
BucketStatus status = 4;
}
message EventRejectMigrateBucket {
// The address of the operator that reject the bucket migration, must be the dest SP
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// status define the status of the bucket.
BucketStatus status = 4;
}
message EventCompleteMigrationBucket {
// The address of the operator that initiated the bucket migration,
// usually the owner of the bucket or another account which has permission to operate
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// The family id that the bucket to be migrated to
uint32 global_virtual_group_family_id = 4;
// The src_primary_sp_id defines the primary sp id of the bucket before migrate.
uint32 src_primary_sp_id = 5;
// status define the status of the bucket.
BucketStatus status = 6;
}
message EventSetTag {
// resource defines a greenfield standard resource name that can be generated by GRN structure
string resource = 1;
// tags define the tag of the source
ResourceTags tags = 2;
}
// EventUpdateObjectContent is emitted on MsgUpdateObjectContent
message EventUpdateObjectContent {
// operator define the account address of msg operator
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// object_id is the unique identifier of object
string object_id = 2 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
string bucket_name = 3;
string object_name = 4;
// payload_size define the size of payload data which you want upload
uint64 payload_size = 5;
// checksums define the total checksums of the object which generated by redundancy
repeated bytes checksums = 6;
// version define the version of object
int64 version = 7;
}
// EventUpdateObjectContentSuccess is emitted on the MsgSealObject for updating object
message EventUpdateObjectContentSuccess {
// operator define the account address of msg operator
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// object_id is the unique identifier of object
string object_id = 2 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
string bucket_name = 3;
string object_name = 4;
// content_type define the content type of the payload data
string content_type = 5;
// prev_payload_size define the size of payload data stored previously
uint64 prev_payload_size = 6;
// new_payload_size define the new size of payload data
uint64 new_payload_size = 7;
// prev_checksums define the total checksums of the previous object which generated by redundancy
repeated bytes prev_checksums = 8;
// new_checksums define the total checksums of the updated object which generated by redundancy
repeated bytes new_checksums = 9;
// version define the version of object
int64 version = 10;
// updated_at define the block timestamp when the object is updated
int64 updated_at = 11;
}
// EventCancelUpdateObjectContent is emitted on MsgCancelUpdateObjectContent
message EventCancelUpdateObjectContent {
// operator define the account address of operator who cancel update object
string operator = 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
string object_name = 3;
// object_id define the id of the object
string object_id = 4 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
}
message EventSetBucketFlowRateLimit {
// operator define the account address of operator who set the bucket flow rate limit
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_name define the name of the bucket
string bucket_name = 2;
// payment_address define the payment address for the bucket
string payment_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bucket_owner define the intended owner of the bucket
string bucket_owner = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// flow_rate_limit define the flow rate limit of the bucket
string flow_rate_limit = 5 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
message EventBucketFlowRateLimitStatus {
// bucket_name define the name of the bucket
string bucket_name = 1;
// is_limited define the status of the bucket flow rate limit
bool is_limited = 2;
// bucket_id is the unique u256 for bucket. Not global, only unique in buckets.
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
}
message EventToggleSPAsDelegatedAgent {
// bucket_name define the name of the bucket
string bucket_name = 1;
// bucket_id is the unique u256 for bucket. Not global, only unique in buckets.
string bucket_id = 2 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
(gogoproto.nullable) = false
];
// sp_as_delegated_agent_disabled indicates that whether bucket owner disable SP as the upload agent.
bool sp_as_delegated_agent_disabled = 3;
}