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

Service Provider Promotions again #877

Merged
merged 16 commits into from
Oct 29, 2024

Conversation

michaeldjeffrey
Copy link
Contributor

@michaeldjeffrey michaeldjeffrey commented Oct 17, 2024

Proto PR :: helium/proto#424
Please scrutinize the names.

Previously

  • incentive_escrow_fund_bps was stored in Solana, and written to s3.
  • Promotions were submitted daily, and could point at a Subscriber or Gateway.

Now

  • incentive_escrow_fund_bps and promotions are stored in the metadata_db.
  • Promotions are pointed to by special NFTs.
  • Share logic works the same
  • PromotionDaemon has been removed

Temporary metadata_db table creation

I am testing with a local table until incentive programs make it into the metadata_db proper.
Using the Column mapping and Account Structure I have the following table.

CREATE TABLE incentive_escrow_programs (
    address character varying(255) NOT NULL,
    carrier character varying(255) NULL,
    start_ts numeric NULL,
    stop_ts numeric NULL,
    shares integer NULL,
    bump_seed integer NULL,
    name character varying(255) NULL,
    refreshed_at timestamp with time zone NULL,
    created_at timestamp with time zone NOT NULL
  );

@michaeldjeffrey michaeldjeffrey force-pushed the mj/service-provider-promotions-v2 branch 2 times, most recently from 8d519bd to 4fbc63a Compare October 17, 2024 22:12
@michaeldjeffrey michaeldjeffrey force-pushed the mj/service-provider-promotions-v2 branch from 0de3606 to e60c50e Compare October 29, 2024 16:25
@michaeldjeffrey michaeldjeffrey force-pushed the mj/service-provider-promotions-v2 branch from f663c8d to c9ba2ec Compare October 29, 2024 17:09
@michaeldjeffrey michaeldjeffrey merged commit 5ad4663 into main Oct 29, 2024
17 checks passed
@michaeldjeffrey michaeldjeffrey deleted the mj/service-provider-promotions-v2 branch October 29, 2024 17:30
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