This repository was archived by the owner on Aug 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 822
feat: filter out addresses not supported by strategies and validation #1738
Merged
wa0x6e
merged 18 commits into
master
from
feat-add-selective-support-for-evm-and-starknet-addresses
Jun 23, 2025
Merged
Changes from 6 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bae8ddc
feat: filter out addresses not supported by strategies and validation
wa0x6e 6812157
fix: add default supported protocols
wa0x6e ae06559
refactor: reduce code duplication with a template pattern
wa0x6e 8324004
refactor: move the strategies length to the base class
wa0x6e a6a8e4b
Merge branch 'master' into feat-add-selective-support-for-evm-and-sta…
wa0x6e 016fad3
test: add unit tests for the validation class
wa0x6e f7df070
Merge branch 'master' into feat-add-selective-support-for-evm-and-sta…
ChaituVR efe597a
Merge branch 'master' into feat-add-selective-support-for-evm-and-sta…
wa0x6e f0b51a6
Merge branch 'master' into feat-add-selective-support-for-evm-and-sta…
ChaituVR 40f4b2f
Update src/constants.ts
wa0x6e 600130f
fix: remove strategies length validation, delegated to score-api
wa0x6e 574839e
fix: return false instead of throwing error on unsupported address
wa0x6e 6d97b0a
perf: better code
wa0x6e c07d333
fix: throw error on invalid address when calling getVp
wa0x6e 6d8f4de
ci: run test on CI
wa0x6e cc68033
fix: add missing functions to default export in utils.ts
wa0x6e 66669e9
fix: add support for starknet addresses on math strategy
wa0x6e b632fad
simplify secret header generation in rocketpool strategy
ChaituVR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import { Protocol } from './types'; | ||
|
|
||
| export const DEFAULT_SUPPORTED_PROTOCOLS: Protocol[] = ['evm']; | ||
| export const MAX_STRATEGIES_LENGTH = 8; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| export type VpState = 'final' | 'pending'; | ||
| export type Score = Record<string, number>; | ||
| export type VotingPower = { | ||
| vp: number; | ||
| vp_by_strategy: number[]; | ||
| vp_state: VpState; | ||
| }; | ||
| export type Snapshot = number | 'latest'; | ||
| export type Protocol = 'evm' | 'starknet'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.