-
Notifications
You must be signed in to change notification settings - Fork 10
AIP #61 v5: Spenders & Address accounting (postgres) #381
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
Milestone
Comments
53 tasks
5 tasks
elpiel
added a commit
that referenced
this issue
Apr 9, 2021
elpiel
added a commit
that referenced
this issue
Apr 22, 2021
Issue #381 Spender aggregates - structs and setup
This was referenced Jun 11, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/AdExNetwork/aips/issues/61
NOTE: In the database the Accounting is flatten and it was introduced in #413 . This is why we have 2 Accounting structs - one for sentry and one for the database.
When building the sentry
Accounting
as a response we should collect allChannel
Accounting rows from the Database and produce the balances map (earners & spenders).TODOs:
spender
(advertiser) &ChannelId
. It should includeearners
&spenders
balances that should match, i.e.sum(earners) == sum(spenders)
PR: Issue 382 campaign insert events #413(channel_id, spender)
and we store the{ total, stillOnCreate2 }
from the AIP #61 v5: Adapter - total spendable amount #380 , the collection should store{ spender, channel, channel_id, total, stillOnCreate2 }
The text was updated successfully, but these errors were encountered: