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

Payments storage packing #942

Merged
merged 7 commits into from
Dec 12, 2024
Merged

Payments storage packing #942

merged 7 commits into from
Dec 12, 2024

Conversation

0x0aa0
Copy link
Contributor

@0x0aa0 0x0aa0 commented Dec 2, 2024

  • introduces new storage layout
  • rename bin -> period
  • link PaymentVault on DASM

@0x0aa0 0x0aa0 requested a review from hopeyen December 2, 2024 15:18
Copy link
Contributor

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

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

DASM link looks good.
For storage packing, I think we can revert back to using uint256 for onDemandPayments and in the future we will need to add the collected amount to the same slot (like _onDemandPaymentsCollected_ || _onDemandPaymentsDeposited_. The current deposit function will only take a uint128 to update the lower slot, and a new collect function only callable by operators who supply a payment verification over the claimed collection.

Sorry that this is going back and forth a little bit

@0x0aa0 0x0aa0 requested a review from hopeyen December 12, 2024 16:25
Copy link
Contributor

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

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

lgtm!

@0x0aa0 0x0aa0 merged commit 1430d56 into master Dec 12, 2024
9 checks passed
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.

3 participants