Feature/pingpay phase 1#625
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review WalkthroughThis PR extends the PingPay callback polling timeout, disables FastDonateButton in campaign banners, adds USDC recipient registration pre-checks to PingPayModal, introduces a PINGPAY_USDC_TOKEN_CONTRACT_ID constant, improves donation item token display with decimal handling workarounds, and updates the donations API pagination parameter from Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Modal as PingPayModal
participant FTContract as FT Contract
participant PingPay as PingPay Session
rect rgba(100, 150, 255, 0.5)
Note over User,PingPay: USDC Recipient Registration Flow
end
User->>Modal: Open modal (non-campaign flow)
activate Modal
Modal->>FTContract: Query storage_balance_of(recipientAccountId)
activate FTContract
FTContract-->>Modal: Return balance (null if unregistered)
deactivate FTContract
alt Recipient Unregistered
Modal->>User: Display registration required note
User->>Modal: Submit donation
Modal->>FTContract: Call storage_deposit(min_balance)
activate FTContract
FTContract-->>Modal: Success or Error
deactivate FTContract
alt Deposit Succeeds
Modal->>PingPay: Create session
activate PingPay
PingPay-->>Modal: Session created
deactivate PingPay
else Deposit Fails
Modal->>User: Display error
end
else Recipient Already Registered
User->>Modal: Submit donation
Modal->>PingPay: Create session directly
activate PingPay
PingPay-->>Modal: Session created
deactivate PingPay
end
deactivate Modal
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Chores