-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Orland0x <[email protected]>
- Loading branch information
Showing
6 changed files
with
456 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -11,3 +11,5 @@ mod mocks; | |
mod setup; | ||
|
||
mod utils; | ||
|
||
mod vote; |
This file contains 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mod erc20_votes_preset; | ||
mod executor; | ||
mod no_voting_power; | ||
mod proposal_validation_always_fail; | ||
mod space_v2; |
This file contains 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 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,22 @@ | ||
#[starknet::contract] | ||
mod NoVotingPowerVotingStrategy { | ||
use sx::interfaces::IVotingStrategy; | ||
use sx::types::UserAddress; | ||
use starknet::ContractAddress; | ||
|
||
#[storage] | ||
struct Storage {} | ||
|
||
#[external(v0)] | ||
impl NoVotingPowerVotingStrategy of IVotingStrategy<ContractState> { | ||
fn get_voting_power( | ||
self: @ContractState, | ||
timestamp: u32, | ||
voter: UserAddress, | ||
params: Array<felt252>, | ||
user_params: Array<felt252>, | ||
) -> u256 { | ||
0 | ||
} | ||
} | ||
} |
Oops, something went wrong.