Skip to content

feat: add recurring payments #40

New issue

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

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

Already on GitHub? # to your account

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

Conversation

tmigone
Copy link
Member

@tmigone tmigone commented Aug 16, 2023

No description provided.

tmigone added 20 commits June 29, 2023 17:05
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
…lexibility

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone changed the title WIP: recurring payments feat: add recurring payments Sep 4, 2023
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2023

Codecov Report

Patch coverage is 63.35% of modified lines.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Changed Coverage
contracts/gelato/AutomateReady.sol 11.11%
contracts/libs/BokkyPooBahsDateTimeLibrary.sol 23.23%
contracts/gelato/AutomateTaskCreator.sol 36.84%
contracts/BanxaWrapper.sol 100.00%
contracts/Billing.sol 100.00%
contracts/BillingConnector.sol 100.00%
contracts/GelatoManager.sol 100.00%
contracts/RecurringPayments.sol 100.00%
contracts/Rescuable.sol 100.00%

📢 Thoughts on this report? Let us know!.

…t (0xM H-01) (#43)

* fix: when extending sub make sure user doesnt pay for time in the past (0xM H-01) 

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone changed the base branch from main to ariel/add-many September 19, 2023 13:35
@tmigone tmigone changed the base branch from ariel/add-many to main September 19, 2023 13:35
…#44)

* fix: store execution and expiration intervals in rp struct (0xM M-01) 

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone changed the base branch from main to ariel/add-many September 19, 2023 13:39
@tmigone tmigone changed the base branch from ariel/add-many to main September 19, 2023 13:40
fix: prevent gas griefing attack (0xM M-02)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: enforce interval invariants (0xM L-01)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
…2) (#47)

* fix: revert when extending if amount is not multiple of rate (0xM L-02)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: add additional checks to check() (0xM L-04)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: emit events in constructor (0xM Q-01)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: attack where create flow could drain rp tokens

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: switch timekeeping from monthly to time based (0xM L-04)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* fix: revert 0xM Q02

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>

* feat(rp): add rp management tasks and new rp address for arbgor

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>

---------

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
* chore: update rp contract to use gelato functions

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>

* chore: add script to add balance to 1Balance

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>

---------

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants