From ac73d08c1185f9637a78e867960ed77988f4f9e7 Mon Sep 17 00:00:00 2001 From: Juan Olveira Date: Sun, 5 Jul 2026 16:09:32 +0000 Subject: [PATCH 1/2] sdk: rename permission flag bit 6 from reservation to feed authority The TypeScript and Python serviceability SDKs still named permission-flag bit 6 `PERMISSION_FLAG_RESERVATION`, the pre-rename placeholder. PR #3289 renamed that bit from `RESERVATION` to `FEED_AUTHORITY` in the on-chain program (and the Go SDK followed), repurposing it as the active feed-authority role (`check_legacy_any` maps FEED_AUTHORITY -> feed_authority_pk). The TS/Python SDKs were never updated and drifted. Rename the constant to `PERMISSION_FLAG_FEED_AUTHORITY` (bit value unchanged) so all SDKs match the program's flag names. The constant had no internal references. --- sdk/serviceability/python/serviceability/state.py | 2 +- sdk/serviceability/typescript/serviceability/state.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/serviceability/python/serviceability/state.py b/sdk/serviceability/python/serviceability/state.py index fc14898756..394f8565a1 100644 --- a/sdk/serviceability/python/serviceability/state.py +++ b/sdk/serviceability/python/serviceability/state.py @@ -1108,7 +1108,7 @@ def __str__(self) -> str: PERMISSION_FLAG_NETWORK_ADMIN = 1 << 3 PERMISSION_FLAG_TENANT_ADMIN = 1 << 4 PERMISSION_FLAG_MULTICAST_ADMIN = 1 << 5 -PERMISSION_FLAG_RESERVATION = 1 << 6 +PERMISSION_FLAG_FEED_AUTHORITY = 1 << 6 PERMISSION_FLAG_ACTIVATOR = 1 << 7 PERMISSION_FLAG_SENTINEL = 1 << 8 PERMISSION_FLAG_USER_ADMIN = 1 << 9 diff --git a/sdk/serviceability/typescript/serviceability/state.ts b/sdk/serviceability/typescript/serviceability/state.ts index f769e07611..7838bf690e 100644 --- a/sdk/serviceability/typescript/serviceability/state.ts +++ b/sdk/serviceability/typescript/serviceability/state.ts @@ -1136,7 +1136,7 @@ export const PERMISSION_FLAG_INFRA_ADMIN = 1n << 2n; export const PERMISSION_FLAG_NETWORK_ADMIN = 1n << 3n; export const PERMISSION_FLAG_TENANT_ADMIN = 1n << 4n; export const PERMISSION_FLAG_MULTICAST_ADMIN = 1n << 5n; -export const PERMISSION_FLAG_RESERVATION = 1n << 6n; +export const PERMISSION_FLAG_FEED_AUTHORITY = 1n << 6n; export const PERMISSION_FLAG_ACTIVATOR = 1n << 7n; export const PERMISSION_FLAG_SENTINEL = 1n << 8n; export const PERMISSION_FLAG_USER_ADMIN = 1n << 9n; From e1c3eab93d2cc5cb0ed4bfa1c029f88bbcd539a5 Mon Sep 17 00:00:00 2001 From: Juan Olveira Date: Sun, 5 Jul 2026 16:09:57 +0000 Subject: [PATCH 2/2] changelog: rename permission flag bit 6 to feed authority (#3985) --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89870a39a1..4b6671a6c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. ### Changes +- SDK + - Rename serviceability permission-flag bit 6 from `PERMISSION_FLAG_RESERVATION` to `PERMISSION_FLAG_FEED_AUTHORITY` in the TypeScript and Python SDKs, matching the on-chain program and Go SDK (bit value unchanged). (#3985) - Collector - Harden ledger writes against a slow/degraded RPC endpoint: bound each RPC request (default 15s, `--ledger-rpc-timeout`), size the connection pool above the submitter concurrency (default 128, `--ledger-rpc-max-conns`), and deadline each submission attempt so it fails fast and retries with a fresh blockhash instead of sending an expired one and failing preflight with `BlockhashNotFound`. (#3973) - E2E