-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add gov v3 helpers * fix: added helper methods * fix: patch stdStorage * fix: make it build * fix: v2 helper fix * fix: deduplicate ipfs tools * fix: stash local changes * feat: push gov v3helpers * fix: update aligned with discussion * feat: add proposal execution flow * fix: allow overwriting proposals count * feat: inject payloads * fix: update to new address book * fix: change visibility * feat: initial ready proposal * feat: implement readyProposal for govv3 * feat: add overload for single proposal * fix: update scripts * fix: update ipfs test * fix: add broken methods * feat: integrate cli into helpers * stash: stash local changes * feat: add overloads * docs: add a sentence on readme * Update src/GovV3Helpers.sol * fix: add voting script * fix: add readme * fix: some patches to storage utils * fix: add activateVoting to test * fix: remove unncessary tests * fix: last few patches * Update src/ChainIds.sol Co-authored-by: sendra <sendra@users.noreply.github.com> * fix: add sepolia rpc * fix: typo * Update src/GovV3Helpers.sol Co-authored-by: Andrey <kyzia.ru@gmail.com> * Update src/GovV3Helpers.sol Co-authored-by: Andrey <kyzia.ru@gmail.com> * fix: update address book --------- Co-authored-by: Lukas <lukasstrassel@googlemail.com> Co-authored-by: Andrey <kyzia.ru@gmail.com>
- Loading branch information
1 parent
4c084bf
commit 1e1c177
Showing
13 changed files
with
1,189 additions
and
37 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
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
Submodule aave-address-book
updated
97 files
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,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {IVotingMachineWithProofs} from 'aave-address-book/governance-v3/IVotingMachineWithProofs.sol'; | ||
import '../src/ScriptUtils.sol'; | ||
import {GovV3Helpers} from '../src/GovV3Helpers.sol'; | ||
|
||
contract VoteForProposal is EthereumScript { | ||
function run(uint256 proposalId, bool support) external broadcast { | ||
IVotingMachineWithProofs.VotingBalanceProof[] memory votingBalanceProofs = GovV3Helpers | ||
.getVotingProofs(vm, proposalId, msg.sender); | ||
GovV3Helpers.vote(vm, proposalId, votingBalanceProofs, support); | ||
} | ||
} |
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
Oops, something went wrong.
1e1c177
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundry report
Build log
Test success 🌈