@@ -314,12 +314,12 @@ pub struct TransactionEffects {
314
314
/// Objects whose state are changed by this transaction.
315
315
#[ prost( message, repeated, tag = "12" ) ]
316
316
pub changed_objects : :: prost:: alloc:: vec:: Vec < ChangedObject > ,
317
- /// Shared objects that are not mutated in this transaction. Unlike owned objects,
318
- /// read-only shared objects' version are not committed in the transaction,
317
+ /// Consensus objects that are not mutated in this transaction. Unlike owned objects,
318
+ /// read-only consensus objects' version are not committed in the transaction,
319
319
/// and in order for a node to catch up and execute it without consensus sequencing,
320
320
/// the version needs to be committed in the effects.
321
321
#[ prost( message, repeated, tag = "13" ) ]
322
- pub unchanged_shared_objects : :: prost:: alloc:: vec:: Vec < UnchangedSharedObject > ,
322
+ pub unchanged_consensus_objects : :: prost:: alloc:: vec:: Vec < UnchangedConsensusObject > ,
323
323
/// Auxiliary data that are not protocol-critical, generated as part of the effects but are stored separately.
324
324
/// Storing it separately allows us to avoid bloating the effects with data that are not critical.
325
325
/// It also provides more flexibility on the format and type of the data.
@@ -488,31 +488,31 @@ pub mod changed_object {
488
488
}
489
489
}
490
490
}
491
- /// A shared object that wasn't changed during execution.
491
+ /// A consensus object that wasn't changed during execution.
492
492
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
493
- pub struct UnchangedSharedObject {
493
+ pub struct UnchangedConsensusObject {
494
494
#[ prost(
495
- enumeration = "unchanged_shared_object::UnchangedSharedObjectKind " ,
495
+ enumeration = "unchanged_consensus_object::UnchangedConsensusObjectKind " ,
496
496
optional,
497
497
tag = "1"
498
498
) ]
499
499
pub kind : :: core:: option:: Option < i32 > ,
500
- /// ObjectId of the shared object.
500
+ /// ObjectId of the consensus object.
501
501
#[ prost( string, optional, tag = "2" ) ]
502
502
pub object_id : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
503
- /// Version of the shared object.
503
+ /// Version of the consensus object.
504
504
#[ prost( uint64, optional, tag = "3" ) ]
505
505
pub version : :: core:: option:: Option < u64 > ,
506
- /// Digest of the shared object.
506
+ /// Digest of the consensus object.
507
507
#[ prost( string, optional, tag = "4" ) ]
508
508
pub digest : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
509
509
/// Type information is not provided by the effects structure but is instead
510
510
/// provided by an indexing layer
511
511
#[ prost( string, optional, tag = "5" ) ]
512
512
pub object_type : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
513
513
}
514
- /// Nested message and enum types in `UnchangedSharedObject `.
515
- pub mod unchanged_shared_object {
514
+ /// Nested message and enum types in `UnchangedConsensusObject `.
515
+ pub mod unchanged_consensus_object {
516
516
#[ derive(
517
517
Clone ,
518
518
Copy ,
@@ -525,9 +525,9 @@ pub mod unchanged_shared_object {
525
525
:: prost:: Enumeration
526
526
) ]
527
527
#[ repr( i32 ) ]
528
- pub enum UnchangedSharedObjectKind {
528
+ pub enum UnchangedConsensusObjectKind {
529
529
Unknown = 0 ,
530
- /// Read-only shared object from the input.
530
+ /// Read-only consensus object from the input.
531
531
ReadOnlyRoot = 1 ,
532
532
/// Objects with ended consensus streams that appear mutably/owned in the input.
533
533
MutateConsensusStreamEnded = 2 ,
@@ -541,14 +541,14 @@ pub mod unchanged_shared_object {
541
541
/// object at the start of the epoch.
542
542
PerEpochConfig = 5 ,
543
543
}
544
- impl UnchangedSharedObjectKind {
544
+ impl UnchangedConsensusObjectKind {
545
545
/// String value of the enum field names used in the ProtoBuf definition.
546
546
///
547
547
/// The values are not transformed in any way and thus are considered stable
548
548
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
549
549
pub fn as_str_name ( & self ) -> & ' static str {
550
550
match self {
551
- Self :: Unknown => "UNCHANGED_SHARED_OBJECT_KIND_UNKNOWN " ,
551
+ Self :: Unknown => "UNCHANGED_CONSENSUS_OBJECT_KIND_UNKNOWN " ,
552
552
Self :: ReadOnlyRoot => "READ_ONLY_ROOT" ,
553
553
Self :: MutateConsensusStreamEnded => "MUTATE_CONSENSUS_STREAM_ENDED" ,
554
554
Self :: ReadConsensusStreamEnded => "READ_CONSENSUS_STREAM_ENDED" ,
@@ -559,7 +559,7 @@ pub mod unchanged_shared_object {
559
559
/// Creates an enum from field names used in the ProtoBuf definition.
560
560
pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
561
561
match value {
562
- "UNCHANGED_SHARED_OBJECT_KIND_UNKNOWN " => Some ( Self :: Unknown ) ,
562
+ "UNCHANGED_CONSENSUS_OBJECT_KIND_UNKNOWN " => Some ( Self :: Unknown ) ,
563
563
"READ_ONLY_ROOT" => Some ( Self :: ReadOnlyRoot ) ,
564
564
"MUTATE_CONSENSUS_STREAM_ENDED" => Some ( Self :: MutateConsensusStreamEnded ) ,
565
565
"READ_CONSENSUS_STREAM_ENDED" => Some ( Self :: ReadConsensusStreamEnded ) ,
@@ -815,12 +815,12 @@ pub mod execution_error {
815
815
CertificateDenied = 30 ,
816
816
/// Sui Move bytecode verification timed out.
817
817
SuiMoveVerificationTimedout = 31 ,
818
- /// The requested shared object operation is not allowed.
819
- SharedObjectOperationNotAllowed = 32 ,
820
- /// Requested shared object has been deleted.
818
+ /// The requested consensus object operation is not allowed.
819
+ ConsensusObjectOperationNotAllowed = 32 ,
820
+ /// Requested consensus object has been deleted.
821
821
InputObjectDeleted = 33 ,
822
- /// Certificate is canceled due to congestion on shared objects.
823
- ExecutionCanceledDueToSharedObjectCongestion = 34 ,
822
+ /// Certificate is canceled due to congestion on consensus objects.
823
+ ExecutionCanceledDueToConsensusObjectCongestion = 34 ,
824
824
/// Address is denied for this coin type.
825
825
AddressDeniedForCoin = 35 ,
826
826
/// Coin type is globally paused for use.
@@ -878,12 +878,12 @@ pub mod execution_error {
878
878
Self :: WrittenObjectsTooLarge => "WRITTEN_OBJECTS_TOO_LARGE" ,
879
879
Self :: CertificateDenied => "CERTIFICATE_DENIED" ,
880
880
Self :: SuiMoveVerificationTimedout => "SUI_MOVE_VERIFICATION_TIMEDOUT" ,
881
- Self :: SharedObjectOperationNotAllowed => {
882
- "SHARED_OBJECT_OPERATION_NOT_ALLOWED "
881
+ Self :: ConsensusObjectOperationNotAllowed => {
882
+ "CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED "
883
883
}
884
884
Self :: InputObjectDeleted => "INPUT_OBJECT_DELETED" ,
885
- Self :: ExecutionCanceledDueToSharedObjectCongestion => {
886
- "EXECUTION_CANCELED_DUE_TO_SHARED_OBJECT_CONGESTION "
885
+ Self :: ExecutionCanceledDueToConsensusObjectCongestion => {
886
+ "EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION "
887
887
}
888
888
Self :: AddressDeniedForCoin => "ADDRESS_DENIED_FOR_COIN" ,
889
889
Self :: CoinTypeGlobalPause => "COIN_TYPE_GLOBAL_PAUSE" ,
@@ -942,12 +942,12 @@ pub mod execution_error {
942
942
"SUI_MOVE_VERIFICATION_TIMEDOUT" => {
943
943
Some ( Self :: SuiMoveVerificationTimedout )
944
944
}
945
- "SHARED_OBJECT_OPERATION_NOT_ALLOWED " => {
946
- Some ( Self :: SharedObjectOperationNotAllowed )
945
+ "CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED " => {
946
+ Some ( Self :: ConsensusObjectOperationNotAllowed )
947
947
}
948
948
"INPUT_OBJECT_DELETED" => Some ( Self :: InputObjectDeleted ) ,
949
- "EXECUTION_CANCELED_DUE_TO_SHARED_OBJECT_CONGESTION " => {
950
- Some ( Self :: ExecutionCanceledDueToSharedObjectCongestion )
949
+ "EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION " => {
950
+ Some ( Self :: ExecutionCanceledDueToConsensusObjectCongestion )
951
951
}
952
952
"ADDRESS_DENIED_FOR_COIN" => Some ( Self :: AddressDeniedForCoin ) ,
953
953
"COIN_TYPE_GLOBAL_PAUSE" => Some ( Self :: CoinTypeGlobalPause ) ,
@@ -1135,9 +1135,9 @@ pub mod command_argument_error {
1135
1135
InvalidObjectByValue = 10 ,
1136
1136
/// Immutable objects cannot be passed by mutable reference, `&mut`.
1137
1137
InvalidObjectByMutRef = 11 ,
1138
- /// Shared object operations such as wrapping, freezing, or converting to owned are not
1138
+ /// Consensus object operations such as wrapping, freezing, or converting to owned are not
1139
1139
/// allowed.
1140
- SharedObjectOperationNotAllowed = 12 ,
1140
+ ConsensusObjectOperationNotAllowed = 12 ,
1141
1141
/// Invalid argument arity. Expected a single argument but found a result that expanded to
1142
1142
/// multiple arguments.
1143
1143
InvalidArgumentArity = 13 ,
@@ -1163,8 +1163,8 @@ pub mod command_argument_error {
1163
1163
Self :: InvalidValueUsage => "INVALID_VALUE_USAGE" ,
1164
1164
Self :: InvalidObjectByValue => "INVALID_OBJECT_BY_VALUE" ,
1165
1165
Self :: InvalidObjectByMutRef => "INVALID_OBJECT_BY_MUT_REF" ,
1166
- Self :: SharedObjectOperationNotAllowed => {
1167
- "SHARED_OBJECT_OPERATION_NOT_ALLOWED "
1166
+ Self :: ConsensusObjectOperationNotAllowed => {
1167
+ "CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED "
1168
1168
}
1169
1169
Self :: InvalidArgumentArity => "INVALID_ARGUMENT_ARITY" ,
1170
1170
}
@@ -1188,8 +1188,8 @@ pub mod command_argument_error {
1188
1188
"INVALID_VALUE_USAGE" => Some ( Self :: InvalidValueUsage ) ,
1189
1189
"INVALID_OBJECT_BY_VALUE" => Some ( Self :: InvalidObjectByValue ) ,
1190
1190
"INVALID_OBJECT_BY_MUT_REF" => Some ( Self :: InvalidObjectByMutRef ) ,
1191
- "SHARED_OBJECT_OPERATION_NOT_ALLOWED " => {
1192
- Some ( Self :: SharedObjectOperationNotAllowed )
1191
+ "CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED " => {
1192
+ Some ( Self :: ConsensusObjectOperationNotAllowed )
1193
1193
}
1194
1194
"INVALID_ARGUMENT_ARITY" => Some ( Self :: InvalidArgumentArity ) ,
1195
1195
_ => None ,
@@ -6488,7 +6488,7 @@ pub struct ConsensusCommitPrologue {
6488
6488
/// Present in V3, V4.
6489
6489
#[ prost( uint64, optional, tag = "5" ) ]
6490
6490
pub sub_dag_index : :: core:: option:: Option < u64 > ,
6491
- /// Stores consensus handler determined shared object version assignments.
6491
+ /// Stores consensus handler determined consensus object version assignments.
6492
6492
///
6493
6493
/// Present in V3, V4.
6494
6494
#[ prost( message, optional, tag = "6" ) ]
0 commit comments