Skip to content

Commit

Permalink
chore: update protobufs (#2711)
Browse files Browse the repository at this point in the history
* chore: update proto

Signed-off-by: Ivaylo Nikolov <[email protected]>

* chore: update Status code

Signed-off-by: Ivaylo Nikolov <[email protected]>

---------

Signed-off-by: Ivaylo Nikolov <[email protected]>
  • Loading branch information
ivaylonikolov7 authored Dec 11, 2024
1 parent dfabd07 commit d6180a3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/proto/src/proto/services/node_delete.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ option java_multiple_files = true;
/**
* A transaction body to delete a node from the network address book.
*
* This transaction body SHALL be considered a "privileged transaction".
*
* - A `NodeDeleteTransactionBody` MUST be signed by the governing council.
* - A `NodeDeleteTransactionBody` MUST be signed by one of those keys:
* adminKey, treasure account (2) key, systemAdmin(50) key, or
* addressBookAdmin(55) key.
* - Upon success, the address book entry SHALL enter a "pending delete"
* state.
* - All address book entries pending deletion SHALL be removed from the
Expand Down
12 changes: 12 additions & 0 deletions packages/proto/src/proto/services/response_code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1611,4 +1611,16 @@ enum ResponseCodeEnum {
* given an explicit expiration time.
*/
MISSING_EXPIRY_TIME = 372;

/**
* A contract operation attempted to schedule another transaction after it
* had already scheduled a recursive contract call.
*/
NO_SCHEDULING_ALLOWED_AFTER_SCHEDULED_RECURSION = 373;

/**
* A contract can schedule recursive calls a finite number of times (this is
* approximately four million times with typical network configuration.)
*/
RECURSIVE_SCHEDULING_LIMIT_REACHED = 374;
}
20 changes: 20 additions & 0 deletions src/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@ export default class Status {
return "INVALID_GRPC_CERTIFICATE_HASH";
case Status.MissingExpiryTime:
return "MISSING_EXPIRY_TIME";
case Status.NoSchedulingAllowedAfterScheduledRecursion:
return "NO_SCHEDULING_ALLOWED_AFTER_SCHEDULED_RECURSION";
case Status.RecursiveSchedulingLimitReached:
return "RECURSIVE_SCHEDULING_LIMIT_REACHED";
default:
return `UNKNOWN (${this._code})`;
}
Expand Down Expand Up @@ -1377,6 +1381,10 @@ export default class Status {
return Status.InvalidGrpcCertificateHash;
case 372:
return Status.MissingExpiryTime;
case 373:
return Status.NoSchedulingAllowedAfterScheduledRecursion;
case 374:
return Status.RecursiveSchedulingLimitReached;
default:
throw new Error(
`(BUG) Status.fromCode() does not handle code: ${code}`,
Expand Down Expand Up @@ -3107,3 +3115,15 @@ Status.InvalidGrpcCertificateHash = new Status(371);
* given an explicit expiration time.
*/
Status.MissingExpiryTime = new Status(372);

/**
* A contract operation attempted to schedule another transaction after it
* had already scheduled a recursive contract call.
*/
Status.NoSchedulingAllowedAfterScheduledRecursion = new Status(373);

/**
* A contract can schedule recursive calls a finite number of times (this is
* approximately four million times with typical network configuration.)
*/
Status.RecursiveSchedulingLimitReached = new Status(374);

0 comments on commit d6180a3

Please sign in to comment.