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

Promotion Fund workspace #866

Merged
merged 5 commits into from
Sep 30, 2024
Merged

Promotion Fund workspace #866

merged 5 commits into from
Sep 30, 2024

Commits on Sep 19, 2024

  1. Add promotion funds workspace

    This workspace is all about dealing with Service Provider Promotion Fund
    allocation.
    
    HIP-114
    https://github.com/helium/HIP/blob/main/0114-incentive-escrow-fund-for-subscriber-referrals.md
    
    Service Provider Promotions are stored in CarrierV0 on Solana.
    To keep the mobile-verifier from talking to a chain, this service will
    periodically check Solana and compare Service Providers allocations to
    what is stored in S3.
    
    If the values have changed, a new file will be output to a bucket for
    the mobile-verifier rewarder to read from.
    
    NOTE: Allocation Values are stored in Bps (Basis Points)
    https://www.investopedia.com/terms/b/basispoint.asp
    
    ** Commands
    
    *** ./promotion_fund write-solana
    
    Fetch Allocation values from Solana and write them to S3.
    This command _always_ writes an S3 file.
    
    *** ./promotion_fund print-s3
    
    Using the lookback time in the provided settings file, show the
    Allocation values this service would start up with.
    
    *** ./promotion_fund server
    
    Start a server that reads from S3, then checks with Solana periodically
    for updated Allocatino values. Writing new files when needed.
    michaeldjeffrey committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    1b0fe2c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Supporting material for promotion_fund workspace

    - ingest promotion rewards, nothing will be done with them until the
      processor is added into mobile-verifier.
    - dump reward files
    - add sp_allocations dummy field to rewarder output
    - reward indexer mobile promotion type added
    michaeldjeffrey committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    672a531 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. use existing reward_types for reward_indexer

    Otherwise inserting a new reward would match on the address and
    continually change the reward_type column for no reason.
    michaeldjeffrey committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    71f2a9c View commit details
    Browse the repository at this point in the history
  2. add lookback start after for s3 on start

    We may not always want to read from the beginning of time in s3 to get
    the latest values
    michaeldjeffrey committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    2e20a89 View commit details
    Browse the repository at this point in the history
  3. update proto

    michaeldjeffrey committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    ce89a7a View commit details
    Browse the repository at this point in the history