Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 6557b04

Browse files
bonustrackclaude
andcommitted
refactor: always allow alias for all spaces
Drop the space.voting.aliased opt-in so every space accepts vote/proposal/update-proposal/delete-proposal signed by a valid alias of the author. Promote flag-proposal to EVM as well (it was already allowed on Starknet). See snapshot-labs/workflow#793. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent caa0625 commit 6557b04

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/helpers/alias.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS = [
2020
'vote-string',
2121
'proposal',
2222
'update-proposal',
23-
'delete-proposal'
23+
'delete-proposal',
24+
'flag-proposal'
2425
] as const;
2526

2627
// These types can be executed with a Starknet alias

src/ingestor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,19 @@ export default async function ingestor(req) {
9191
return Promise.reject('Invalid space id');
9292
}
9393

94-
let aliased = false;
9594
if (!['settings', 'alias', 'profile', 'delete-space'].includes(type)) {
9695
if (!message.space) return Promise.reject('unknown space');
9796

9897
try {
9998
const space = await getSpace(message.space, false, message.network);
10099
if (!space) return Promise.reject('unknown space');
101100
network = space.network;
102-
if (space.voting?.aliased) aliased = true;
103101
} catch (e: any) {
104102
return Promise.reject(e.message);
105103
}
106104
}
107105

108-
await verifyAlias(type, body, aliased);
106+
await verifyAlias(type, body, true);
109107

110108
// Check if signature is valid
111109
try {

0 commit comments

Comments
 (0)