@@ -498,6 +498,12 @@ pub enum StatusCode {
498
498
SEQUENCE_NONCE_INVALID = 29 ,
499
499
// There was an error when accessing chain-specific account information
500
500
CHAIN_ACCOUNT_INFO_DOES_NOT_EXIST = 30 ,
501
+ // Reserved error code for future use
502
+ RESERVED_VALIDATION_ERROR_1 = 31 ,
503
+ RESERVED_VALIDATION_ERROR_2 = 32 ,
504
+ RESERVED_VALIDATION_ERROR_3 = 33 ,
505
+ RESERVED_VALIDATION_ERROR_4 = 34 ,
506
+ RESERVED_VALIDATION_ERROR_5 = 35 ,
501
507
502
508
// When a code module/script is published it is verified. These are the
503
509
// possible errors that can arise from the verification process.
@@ -651,6 +657,12 @@ pub enum StatusCode {
651
657
// Failed to resolve type due to linking being broken after verification
652
658
TYPE_RESOLUTION_FAILURE = 2021 ,
653
659
DUPLICATE_NATIVE_FUNCTION = 2022 ,
660
+ // Reserved error code for future use
661
+ RESERVED_INVARIANT_VIOLATION_ERROR_1 = 2023 ,
662
+ RESERVED_INVARIANT_VIOLATION_ERROR_2 = 2024 ,
663
+ RESERVED_INVARIANT_VIOLATION_ERROR_3 = 2025 ,
664
+ RESERVED_INVARIANT_VIOLATION_ERROR_4 = 2026 ,
665
+ RESERVED_INVARIANT_VIOLATION_ERROR_5 = 2027 ,
654
666
655
667
// Errors that can arise from binary decoding (deserialization)
656
668
// Deserializtion Errors: 3000-3999
@@ -676,6 +688,12 @@ pub enum StatusCode {
676
688
VALUE_DESERIALIZATION_ERROR = 3023 ,
677
689
CODE_DESERIALIZATION_ERROR = 3024 ,
678
690
INVALID_FLAG_BITS = 3025 ,
691
+ // Reserved error code for future use
692
+ RESERVED_DESERIALIZAION_ERROR_1 = 3026 ,
693
+ RESERVED_DESERIALIZAION_ERROR_2 = 3027 ,
694
+ RESERVED_DESERIALIZAION_ERROR_3 = 3028 ,
695
+ RESERVED_DESERIALIZAION_ERROR_4 = 3029 ,
696
+ RESERVED_DESERIALIZAION_ERROR_5 = 3030 ,
679
697
680
698
// Errors that can arise at runtime
681
699
// Runtime Errors: 4000-4999
@@ -703,6 +721,12 @@ pub enum StatusCode {
703
721
EXECUTION_LIMIT_REACHED = 4030 ,
704
722
IO_LIMIT_REACHED = 4031 ,
705
723
STORAGE_LIMIT_REACHED = 4032 ,
724
+ // Reserved error code for future use
725
+ RESERVED_RUNTIME_ERROR_1 = 4033 ,
726
+ RESERVED_RUNTIME_ERROR_2 = 4034 ,
727
+ RESERVED_RUNTIME_ERROR_3 = 4035 ,
728
+ RESERVED_RUNTIME_ERROR_4 = 4036 ,
729
+ RESERVED_RUNTIME_ERROR_5 = 4037 ,
706
730
707
731
// A reserved status to represent an unknown vm status.
708
732
// this is std::u64::MAX, but we can't pattern match on that, so put the hardcoded value in
0 commit comments