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

Add CLI for fetching sp promotions #886

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

michaeldjeffrey
Copy link
Contributor

@michaeldjeffrey michaeldjeffrey commented Oct 30, 2024

Fetch from mobile-config the same way they as the rewarder does. Print them in a nice little list.

Running with no options defaults to Utc::now().

>>> ./mobile-verifier -c ../../mobile-verifier.toml service-provider-promotions 

Service Provider: HeliumMobile
  incentive_escrow_bps: 396
  Promotions: (1)
    name: Referral Elite
    duration: 1year 2months 1day 20h 52m 48s (2024-10-29T00:00:00Z -> 2025-12-31T00:00:00Z)
    shares: 100

Passing the --start option.

>>> ./mobile-verifier -c ../../mobile-verifier.toml service-provider-promotions --start "2024-10-30T00:00:00Z"
Promotions as of 2024-10-30 00:00:00 UTC
Service Provider: HeliumMobile
  incentive_escrow_bps: 396
  Promotions: (1)
    name: Referral Elite
    duration: 1year 2months 1day 20h 52m 48s (2024-10-29T00:00:00Z -> 2025-12-31T00:00:00Z)
    shares: 100

>>> ./mobile-verifier -c ../../mobile-verifier.toml service-provider-promotions --start "2024-10-29T01:00:00Z"
Promotions as of 2024-10-29 01:00:00 UTC
Service Provider: HeliumMobile
  incentive_escrow_bps: 396
  Promotions: (1)
    name: Referral Elite
    duration: 1year 2months 1day 20h 52m 48s (2024-10-29T00:00:00Z -> 2025-12-31T00:00:00Z)
    shares: 100

Fetch from mobile-config the same way they as the rewarder does. Print them in a nice little list.
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.

1 participant