Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/helpers/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, ExecutableType[]>();
Expand All @@ -33,7 +36,7 @@ const allowedTypesCache = new Map<string, ExecutableType[]>();
type ExecutableType =
| (typeof TYPES_EXECUTABLE_BY_ALIAS)[number]
| (typeof OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS)[number]
| 'update-proposal';
| (typeof TYPES_EXECUTABLE_BY_STARKNET_ALIAS)[number];

/**
* Checks if an alias relationship exists and is not expired
Expand Down