Skip to content

AIP #61 v5: Channel and Campaign #382

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

Closed
21 tasks done
elpiel opened this issue Mar 9, 2021 · 0 comments · Fixed by #449, #477, #484 or #488
Closed
21 tasks done

AIP #61 v5: Channel and Campaign #382

elpiel opened this issue Mar 9, 2021 · 0 comments · Fixed by #449, #477, #484 or #488

Comments

@elpiel
Copy link
Member

elpiel commented Mar 9, 2021

AIP AmbireTech/adex-validator-stack-rust#61

Part of #377

Channel

As AIP#61 states the Channel is defined by (leader, follower, guardian, tokenAddr, nonce)

  • Channel validation - is token allowed? is the requester a Leader or a Follower?
  • No routes for storing Channels, they are gone.
  • Only routes for listing all the channels (fetched by unique channel_id in the campaigns table)

Campaign

  • A Campaign is defined by Campaign { id: CampaignId, channel: Channel, creator, validators, title.... rest of the ChannelSpec fields }
    Note: The fields were aligned with Ivo before making the changes for the Campaign.
  • CampaignId should be a randomly assigned value by Sentry, we've chosen the Uuid as a random generator in Rust and uses a representation of the 16 bytes as 0x prefixed hex string

No migration

Apart from that, we can remove obsolete fields in the ChannelSpec (v4) as the v5 will not have migration from v4 as it will work in a different way than v4.

Tasks:

Sentry

Sentry routes

elpiel added a commit that referenced this issue Mar 18, 2021
elpiel added a commit that referenced this issue Apr 9, 2021
- Change the channel table to campaign
- add a spendable table
- update other tables & add todos for AIP#61
elpiel added a commit that referenced this issue May 25, 2021
Issue #382 Channel and Campaign Database & Persistance
@elpiel elpiel linked a pull request Oct 26, 2021 that will close this issue
@elpiel elpiel linked a pull request Mar 24, 2022 that will close this issue
3 tasks
@elpiel elpiel closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment