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

deploy #620

Merged
merged 26 commits into from
Jul 28, 2024
Merged

deploy #620

merged 26 commits into from
Jul 28, 2024

Conversation

0xBigBoss
Copy link
Contributor

@0xBigBoss 0xBigBoss commented Jul 24, 2024

todo:

  • deploy sendtagcheckout contract
  • deploy shovel integration USE THE SENDTAGCHECKOUT deploy block as the START BLOCK NUMBER

youngkidwarrior and others added 15 commits July 16, 2024 22:44
* fix sign-in.anon.spec
* clean up useProfileLookup and tsconfigs
* add playwright record option
* only wait 10 seconds for send account create request
* app: estimate call gas limit
use filter ref again for send account transfers
* shovel: update config to include URLs

* contracts: sendtag checkout emit receipts

* e2e: playwright can import esm only now

* app: handle already expired userop error

* wagmi: fixup types

* yarn lint after unit tests

* app: update sendtag checkout

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

* supabase: sendtag checkout updates

- confirm_tags to use transfers to sendtag checkout contract
- update tag receipt activity
- updates tests

* e2e: update confirm tag

* update sendtag referrer for checkout

* e2e: update refer a tag

* app: show sendtag referral rewards activity

* clean up types

* update shovel config

* e2e: more playwright cleanup

* supabase sendtag checkout updates

* use sendtag_checkout_receipts for confirming tags

verify referrer and reward
updates sendtag checkout contract address

* supabase: remove sendtag checkout contract table

* supabase: update confirm_tags to use sendtag_checkout_receipts

* contracts: handle duplicate deploys on sendtag_checkout_receipts

* fixup activity spec

* playwright: cleanup home onboarded spec

* snapshot update

* e2e fixes

* lots of little tweaks and polish

* handle when not enough funds

* use sendtag for referrer

* rename fetchSendtagCheckoutTransfers to receipts

* fix referrer check logic

* simplify referrer check

* naming

* add assertions on checkout receipts

* more renaming

* add userop throwNiceError

* fix lints, cleanup, increase dbdev timeouts

* upgrade shovel ts config

* total price test

* add app/data/sendtags test

* little more cleanup

* invalidate queries

* fix lint error
@0xBigBoss 0xBigBoss self-assigned this Jul 24, 2024
0xBigBoss and others added 11 commits July 24, 2024 08:59
* add example deploying sendtagcheckout command

* update sendtag checkout deploy fixtures

* small e2e updates

* upgrade yarn

* fix multiple referrals for user

* create private schema

* fix refer a tag spec
* use aria-label, fix p in div tag

* clean up vscode file nesting patterns

* lots of sendtag checkout fixes, userop improvements

adds useUSDCFees hook
Fixes minor UX things
Ensures referrer is the same as the one onchain
Updates viem/wagmi
Adds examples

* bring back useUserOpGasEstimate and deprecate it

* refactor signChallenge

* add signUserOp

* fix debug import

* playwright oh u funny thing

handle playwright now importing more files than before
make some files platform specific so playwright does not find them
fix tests when deprecating accessibilityLabel

* use viem isAddressEqual when comparing referrers

* check usdc fees during sendtag checkout can afford

* wait for more loadings

* handle rare case sendtag matches text in page
@0xBigBoss 0xBigBoss merged commit 2e41f4c into main Jul 28, 2024
11 of 12 checks passed
Copy link

Playwright Report

Summary

Expected Skipped Unexpected Flaky Duration
80 0 0 4 319.78s

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: ✅

can refer multiple tags in separate transactions

  • 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.

2 participants