Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator update permissioned payloads controller #36

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

Cycxyz
Copy link

@Cycxyz Cycxyz commented Nov 18, 2024

Temp changes

  • .gitmodules:
    needed to add dependencie to deploy PermissionedPayloadsController. Dependency has to be removed when PermissionedPayloadsController will be deployed.
  • foundry.toml, remappings.txt:
    foundry recursive auto-detected dependencies fix. Changes will be reverted after aave-v3-governance dependency removed

What was made

Old tests were adopted to return IPayloadsControllerCore.ExecutionActions[] object. This object has to be passed to PermissionedPayloadsController by PAYLOADS_MANAGER address as payload. Now tests also responsible for deploying PermissionedPayloadsController. That functionality has to be removed later, after deploying controller

@Cycxyz Cycxyz marked this pull request as draft November 18, 2024 10:19
@Cycxyz Cycxyz marked this pull request as ready for review November 20, 2024 16:03
@brotherlymite
Copy link
Contributor

@Cycxyz The generator seems to be breaking when custom reward asset is passed

@brotherlymite
Copy link
Contributor

Also can you update the readme, explaining in detail how the new flow would be with clear instructions - ex. running the tests for validation and using the scripts to register the payloads and so on.

@Cycxyz Cycxyz marked this pull request as draft November 22, 2024 08:03
Vladyslav Burtsevych added 2 commits November 22, 2024 11:32
…ayloadsContrller fix

add: test command and deploy script command
@Cycxyz Cycxyz marked this pull request as ready for review November 22, 2024 13:18
scripts/PermissionedPayloadsControllerAndExecutor.s.sol Outdated Show resolved Hide resolved
* or
* make deploy-private-key contract=scripts/EmissionMATICXPolygonConfigurationDeploy.s.sol chain=polygon private_key=$\{PRIVATE_KEY\}
*/
contract EmissionMATICXPolygonConfigurationDeploy is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated in the tests folder no?

Also there are some example tests using the older flow in tests directory, I would replace them with some examples from new payloadsController flow (we can do that once we have the contracts deployed too)

brotherlymite and others added 2 commits December 5, 2024 18:18
* chore: fix remappings

* fix: compile fix

* Revert "fix: compile fix"

This reverts commit 5426104.

---------

Co-authored-by: Vladyslav Burtsevych <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants