Skip to content

AIP #61 v5: Channel and Campaign #382

@elpiel

Description

@elpiel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions