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

sendtag checkout referral rewards #615

Merged
merged 41 commits into from
Jul 24, 2024
Merged

Conversation

0xBigBoss
Copy link
Contributor

No description provided.

@0xBigBoss 0xBigBoss self-assigned this Jul 20, 2024
@0xBigBoss 0xBigBoss force-pushed the bb/sendtag-checkout-referral-rewards branch from 022177c to f241da3 Compare July 20, 2024 17:12
@0xBigBoss 0xBigBoss force-pushed the bb/sendtag-checkout-referral-rewards branch from f241da3 to 6ad7d5e Compare July 20, 2024 17:19
@0xBigBoss 0xBigBoss force-pushed the bb/sendtag-checkout-referral-rewards branch from 6ad7d5e to c02ef12 Compare July 21, 2024 20:57
@0xBigBoss 0xBigBoss force-pushed the bb/sendtag-checkout-referral-rewards branch from c02ef12 to e7e57ac Compare July 21, 2024 21:15
This commit marks the first part of transitioning our Sendtag registration
process from Ethereum to USDC. It includes the following changes:

- Replace ETH pricing with USDC pricing for Sendtags
- Introduce new pricing structure and referral bonus system
- Update UI components to reflect new USDC pricing
- Refactor pricing logic into a separate module for better maintainability

New Pricing Structure (Registration Fee / Referral Bonus):
- 6+ characters: 7 USDC / 2 USDC
- 5 characters: 15 USDC / 4 USDC
- 4 characters: 30 USDC / 8 USDC
- 1-3 characters: 60 USDC / 16 USDC

Key changes:
1. Created new file 'app/data/sendtags.ts' to centralize pricing logic
2. Updated 'tagRouter' in 'api/src/routers/tag.ts' to use new pricing
3. Modified UI components to display USDC prices instead of ETH
4. Updated tests to reflect new USDC pricing
- confirm_tags to use transfers to sendtag checkout contract
- update tag receipt activity
- updates tests
@0xBigBoss 0xBigBoss force-pushed the bb/sendtag-checkout-referral-rewards branch from e7e57ac to 558e205 Compare July 21, 2024 21:49
@0xBigBoss 0xBigBoss changed the base branch from bb/usdc-for-sendtags to dev July 22, 2024 04:40
@0xBigBoss 0xBigBoss merged commit b7dd9ed into dev Jul 24, 2024
3 checks passed
@0xBigBoss 0xBigBoss deleted the bb/sendtag-checkout-referral-rewards branch July 24, 2024 12:08
Copy link

Copy link

Playwright Report

Summary

Expected Skipped Unexpected Flaky Duration
74 0 0 8 117.74s

Suites

account-rewards.onboarded.spec.ts

can visit rewards page

  • chromium: ✅
  • firefox: ✅

account-sendtag-checkout.onboarded.spec.ts

can visit checkout page

  • chromium: ✅
  • firefox: ✅

can add a pending tag

  • chromium: ✅
  • firefox: ✅

cannot add an invalid tag name

  • chromium: ✅
  • firefox: ✅

can confirm a tag

  • chromium: 🚨
  • firefox: ✅

can refer a tag

  • chromium: ✅
  • firefox: ✅

cannot confirm a tag without paying

  • chromium: ✅
  • firefox: ✅

cannot add more than 5 tags

  • chromium: ✅
  • firefox: ✅

account-settings-backup.onboarded.spec.ts

can backup account

  • chromium: ✅
  • firefox: ✅

can remove a signer

  • chromium: ✅
  • firefox: 🚨

account.logged-in.spec.ts

can visit account page

  • chromium: ✅
  • firefox: ✅

can update profile

  • chromium: ✅
  • firefox: ✅

activity.onboarded.spec.ts

can visit activity page and see correct activity feed

  • chromium: ✅
  • firefox: ✅

can search on activity page

  • chromium: ✅
  • firefox: ✅

deposit.onboarded.spec.ts

can deposit USDC with web3 wallet

  • chromium: ✅
  • firefox: ✅

can deposit ETH with web3 wallet

  • chromium: 🚨
  • firefox: ✅

home.onboarded.spec.ts

can visit token detail page

  • chromium: ✅
  • firefox: ✅

onboarding.logged-in.spec.ts

can visit onboarding page

  • chromium: ✅
  • firefox: ✅

profile.anon.spec.ts

anon user can visit public profile

  • chromium: ✅
  • firefox: ✅

anon user cannot visit private profile

  • chromium: ✅
  • firefox: ✅

profile.logged-in.spec.ts

logged in user needs onboarding before visiting profile

  • chromium: ✅
  • firefox: ✅

profile.onboarded.spec.ts

can visit other user profile and send by tag

  • chromium: ✅
  • firefox: ✅

can visit my own profile

  • chromium: ✅
  • firefox: ✅

can visit private profile

  • chromium: ✅
  • firefox: ✅

can view activities between another profile

  • chromium: ✅
  • firefox: ✅

send.onboarded.spec.ts

can send USDC starting from profile page

  • chromium: ✅
  • firefox: ✅

can send USDC using tag starting from home page

  • chromium: ✅
  • firefox: ✅

can send USDC using sendid starting from home page

  • chromium: 🚨
  • firefox: ✅

can send USDC using address starting from home page

  • chromium: ✅
  • firefox: 🚨

can send ETH starting from profile page

  • chromium: ✅
  • firefox: ✅

can send ETH using tag starting from home page

  • chromium: ✅
  • firefox: ✅

can send ETH using sendid starting from home page

  • chromium: 🚨
  • firefox: ✅

can send ETH using address starting from home page

  • chromium: ✅
  • firefox: ✅

can send SEND starting from profile page

  • chromium: ✅
  • firefox: ✅

can send SEND using tag starting from home page

  • chromium: 🚨
  • firefox: ✅

can send SEND using sendid starting from home page

  • chromium: ✅
  • firefox: ✅

can send SEND using address starting from home page

  • chromium: 🚨
  • firefox: ✅

sign-in.anon.spec.ts

redirect on sign-in

  • chromium: ✅
  • firefox: ✅

redirect to send confirm page on sign-in

  • chromium: ✅
  • firefox: ✅

sign-up.anon.spec.ts

can sign up

  • chromium: ✅
  • firefox: ✅

country code is selected based on geoip

  • chromium: ✅
  • firefox: ✅

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