Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Mashrukh - DHedge Frontend Widget #2

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

Conversation

mushroomgenie
Copy link

No description provided.

@edsonayllon
Copy link
Member

edsonayllon commented May 10, 2022

Please delete the React images that come by default with the React app template. If you need the dHEDGE logo, let me know. I can post it here

@edsonayllon edsonayllon requested review from D-Ig and dimlbc May 10, 2022 20:54
Mashrukh Islam added 2 commits May 11, 2022 03:04
@edsonayllon
Copy link
Member

@mushroomgenie this PR still contains React logos

@mushroomgenie
Copy link
Author

@edsonayllon removed from the public folder

@edsonayllon
Copy link
Member

@edsonayllon removed from the public folder

You can use these images to replace them
logo192
logo512

Comment on lines 23 to 28
<button
className="bg-gradient-to-r from-blue bg-blue-light text-white text-shadow-blue font-semibold px-6 py-2 whitespace-nowrap rounded-full text-base tracking-wide"
onClick={openConnectModal}
>
{account ? address : "Connect Wallet"}
</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so, the widget shouldn't handle the wallet connection. The external app should handle connecting the wallet. You can see Uniswap's widget as a reference. It passes the provider and a JSON RPC endpoint as props to the widget. https://docs.uniswap.org/sdk/widgets/swap-widget

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edsonayllon I made a commit regarding this, could you please check if it's right implementation ?

@edsonayllon
Copy link
Member

edsonayllon commented May 16, 2022

@mushroomgenie How was this tested? There's a connect wallet button in the app that doesn't do anything

@edsonayllon
Copy link
Member

edsonayllon commented May 16, 2022

@mushroomgenie The frontend team looked at this PR. They reported the following:

We created this bounty as our capacity was focused on the previous release. Now with that release deployed, our frontend team can take this task on. It seems we underestimated the amount of effort this project requires when creating the bounty.

We will be using a different approach to deal with this use case than an NPM package. Though, we want to give you a partial payout for your work and effort

@mushroomgenie
Copy link
Author

@edsonayllon I used the axios for graphql because I was calling another API endpoint(dehedge graphql API) for it and the urql is fetching from the optimism subgraph.

@D-Ig D-Ig removed their request for review May 15, 2024 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants