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

replace hooks with smart-invoice #165

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

sshmm
Copy link
Contributor

@sshmm sshmm commented Dec 9, 2024

Summary

  • replacing the existing hooks with those from @smartinvoicexyz/hooks, updating the DepositFunds, EscrowConfirmation, ReleaseFunds, and WithdrawFunds components.
  • add support for the Sepolia network for testing purpose.

Details:

  • Replaced the useDeposit hook from @raidguild/escrow-hooks with the one from @smartinvoicexyz/hooks and added the useToast hook. Updated the handleDeposit function to use the new hook and adjusted the button's isDisabled condition.
  • Replaced the useEscrowZap hook from @raidguild/escrow-hooks with the one from @smartinvoicexyz/hooks and added the networkConfig parameter to replace hooks defaults
  • Replaced the useRelease hook from @raidguild/escrow-hooks with the one from @smartinvoicexyz/hooks and added the toast parameter.
  • Replaced the useWithdraw hook from @raidguild/escrow-hooks with the one from @smartinvoicexyz/hooks and added the useToast hook.
  • Deleted the files for the removed hooks: useDeposit.ts, useEscrowZap.ts, useRelease.ts, and useWithdraw.ts.

Minor changes:

  • useInvoiceDetails Updated the import from useContractRead to useReadContract.

Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dungeon-master ❌ Failed (Inspect) Jan 6, 2025 0:06am

Copy link

vercel bot commented Dec 9, 2024

@sshmm is attempting to deploy a commit to the Raid Guild Team on Vercel.

A member of the Team first needs to authorize it.

@sshmm sshmm marked this pull request as ready for review January 9, 2025 03:30
@sshmm sshmm marked this pull request as draft January 9, 2025 03:31
@sshmm
Copy link
Contributor Author

sshmm commented Jan 9, 2025

NEXT_PUBLIC_WALLETCONNECT_ID and
NEXT_PUBLIC_ALCHEMY_ID
Need to be added to Vercel env variables
They use the same old values as NEXT_PUBLIC_WC_PROJECT_ID and NEXT_PUBLIC_ALCHEMY_KEY repectively

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