From 60c005199dd829333e2f5aa710b90f601f9da307 Mon Sep 17 00:00:00 2001 From: wa0x6e <495709+wa0x6e@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:56:43 +0400 Subject: [PATCH 1/2] feat: allow starknet aliases to flag proposals --- src/helpers/alias.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/helpers/alias.ts b/src/helpers/alias.ts index a36de00e..ff0f387d 100644 --- a/src/helpers/alias.ts +++ b/src/helpers/alias.ts @@ -24,7 +24,10 @@ const OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS = [ ] as const; // These types can be executed with a Starknet alias -const TYPES_EXECUTABLE_BY_STARKNET_ALIAS = [...OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS] as const; +const TYPES_EXECUTABLE_BY_STARKNET_ALIAS = [ + 'flag-proposal', + ...OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS +] as const; // Memoization cache for getAllowedTypes const allowedTypesCache = new Map(); @@ -33,7 +36,7 @@ const allowedTypesCache = new Map(); type ExecutableType = | (typeof TYPES_EXECUTABLE_BY_ALIAS)[number] | (typeof OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS)[number] - | 'update-proposal'; + | 'flag-proposal'; /** * Checks if an alias relationship exists and is not expired From f292d30c26a6512d748a749f98865aacc14dfd8c Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Tue, 1 Jul 2025 02:20:19 +0900 Subject: [PATCH 2/2] Update src/helpers/alias.ts Co-authored-by: Chaitanya --- src/helpers/alias.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/alias.ts b/src/helpers/alias.ts index ff0f387d..a32a19eb 100644 --- a/src/helpers/alias.ts +++ b/src/helpers/alias.ts @@ -36,7 +36,7 @@ const allowedTypesCache = new Map(); type ExecutableType = | (typeof TYPES_EXECUTABLE_BY_ALIAS)[number] | (typeof OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS)[number] - | 'flag-proposal'; + | (typeof TYPES_EXECUTABLE_BY_STARKNET_ALIAS)[number]; /** * Checks if an alias relationship exists and is not expired