-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: main
Are you sure you want to change the base?
Conversation
add: new version of EmissionTestMATICXPolygon.t.sol
generator/templates/liquiditymining.payloaddeployment.template.ts
Outdated
Show resolved
Hide resolved
@Cycxyz The generator seems to be breaking when custom reward asset is passed |
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. |
…ayloadsContrller fix add: test command and deploy script command
generator/templates/liquiditymining.payloaddeployment.template.ts
Outdated
Show resolved
Hide resolved
generator/templates/liquiditymining.payloaddeployment.template.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Harsh Pandey <[email protected]>
* or | ||
* make deploy-private-key contract=scripts/EmissionMATICXPolygonConfigurationDeploy.s.sol chain=polygon private_key=$\{PRIVATE_KEY\} | ||
*/ | ||
contract EmissionMATICXPolygonConfigurationDeploy is |
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.
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)
* chore: fix remappings * fix: compile fix * Revert "fix: compile fix" This reverts commit 5426104. --------- Co-authored-by: Vladyslav Burtsevych <[email protected]>
Temp changes
needed to add dependencie to deploy PermissionedPayloadsController. Dependency has to be removed when PermissionedPayloadsController will be deployed.
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