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

Budget modules base #75

Merged
merged 13 commits into from
Oct 21, 2022
Merged

Budget modules base #75

merged 13 commits into from
Oct 21, 2022

Conversation

izqui
Copy link
Member

@izqui izqui commented Sep 29, 2022

Even though originally in this branch, RecurringPayments has been moved into a separate PR #86 as this one already has several big things and should be merged ASAP

TODO:

  • Unstructured storage in module base

@izqui izqui changed the title [POC] Budget modules [POC] Budget modules: RecurringPayments Oct 1, 2022
error AlreadyExecutedForPeriod(uint256 allowanceId, uint256 paymentId, uint40 nextExecutionTime);

// Protected so only spenders from the parent allowance to the one recurring payments can spend can add payments
function addPayment(uint256 allowanceId, address to, uint256 amount)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a function to batch-create payments (like executeMultiPayments for executing multiple payments) would be useful as well.

@izqui izqui mentioned this pull request Oct 17, 2022
20 tasks
* UpgradeableModuleProxyFactory: register

* FirmBase, UpgradeableModuleProxyFactory: events to enable indexing

* UpgradeableModuleProxyFactory: test upgrades and tighten types everywhere

* UpgradeableModuleProxyFactory: test registry

* UpgradeableModuleProxyFactory: more tests
@izqui izqui changed the title [POC] Budget modules: RecurringPayments [POCBudget modules: RecurringPayments Oct 17, 2022
@izqui izqui changed the title [POCBudget modules: RecurringPayments Budget modules: RecurringPayments Oct 17, 2022
Copy link
Contributor

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

Noticed this event—unsure if this inconsistency is anywhere else in our contracts, but it's probably something to look at soon :)

src/factory/UpgradeableModuleProxyFactory.sol Outdated Show resolved Hide resolved
* fix(events): make event naming consistent

* chore: revert zodiac-related changes
@izqui izqui changed the title Budget modules: RecurringPayments Budget modules + RecurringPayments Oct 21, 2022
@izqui izqui changed the title Budget modules + RecurringPayments Module registry in proxy factory + Budget modules base Oct 21, 2022
@izqui izqui merged commit 75bb302 into master Oct 21, 2022
@izqui izqui deleted the budget-modules branch October 21, 2022 10:51
@izqui izqui changed the title Module registry in proxy factory + Budget modules base Budget modules base Oct 21, 2022
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