-
Notifications
You must be signed in to change notification settings - Fork 4
FRONTEND - Create a website widget for organization branded dHEDGE pools #1
Comments
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 3000.0 USDC (3000.0 USD @ $1.0/USDC) attached to it.
|
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 264 years, 7 months from now. 1) mindsgn has started work. I will create the widget using nextjs, react and typescript. and also convert it into a npm package. Hi there, How are you? I am senior web3 developer. Hey! I can help you with your website using nextJS and tailwinds, always following your requirements Using Next.js and Tailwind, I will be able to set up the widget to be fully responsive with pixel perfect design as well as being performant. It will have the stated functionalities and be dynamic allowing the logo and avatar to be passed as props. This is a task that I can deliver up to speed. Hi there. how are you? My task here is to create this widget completing what you are asking. Hello, I have gone through the requirements and I can implement the widget in React ( can be embedded on any website ). I have experience with Tailwind and for subgraph queries we can use either urql or apollo, depending upon the bundle size restriction. Once approved, will provide regular updates. Thanks I'll make a widget fetching the subgraph and smart contracts events. Learn more on the Gitcoin Issue Details page. |
Changed the bounty to be a contest. Anyone can start work, we'll approve the best one, and pay them out. Also, it will be permissionless, no approval is required to start work. Apologies to anyone who preferred the traditional bounty type. |
Can i start working? |
yes |
If anyone has questions, please reach out to me on the dHEDGE discord: https://discord.gg/PAcvThwVZD. |
Hi @edsonayllon. |
dHEDGE is deployed on Ethereum, Polygon, and Optimism. Reducing the scope of this widget to only support Optimism for now. So it doesn't need to be multichain at this point. |
Also, I've updated the description of this issue to include a link to the dHEDGE Optimism contracts/abi and subgraph. |
Here. Sorry, the contracts repo I posted wasn't public. I posted the public one above. Also, just an update, it's best if the widget was an NPM package that could be imported into a React app. That's what we're looking for. Example from Uniswap: https://docs.uniswap.org/sdk/widgets/swap-widget. Thanks! |
Just as clarification for the scope, referencing the screenshot, no need to include the following features:
Also, no need to pass a logo image, only an avatar image is required as an optional parameter. When no image is passed, use Jazzicon https://www.npmjs.com/package/@ukstv/jazzicon-react. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work for 3000.0 USDC (3000.0 USD @ $1.0/USDC) has been submitted by: @edsonayllon please take a look at the submitted work:
|
Hello everyone. 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 gave a partial payout to the one submission we received. We are closing this bounty now. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 3000.0 USDC (3000.00 USD @ $1.0/USDC) attached to this issue has been cancelled by the bounty submitter
|
Description
dHEDGE would like a widget created so external organizations can present their dHEDGE pool within their own site.
As an external organization, I'd like to present my dHEDGE pool within my own website, where users can connect their wallet, invest, and withdraw.
For now, the widget only needs to support dHEDGE on the Optimism network.
Ideally, the widget is an NPM package a user can import into their React project. Example from Uniswap: https://docs.uniswap.org/sdk/widgets/swap-widget.
Requirements
The widget should take in a pool address and have the option to take in one image for the avatar. If no avatar is provided, generate one from the address using JazzIcon.
Like the Uniswap widget, the developers utilizing the npm widget will take care of connecting the user's wallet, and can pass down the web3 provider to the widget.
Design
Rough mockup for the design. The widget is everything including and under the blue gradient. The pieces above are an example dapp containing the widget.
For invest/withdraw, create a modal following the design used in https://app.dhedge.org.
Specs:
DEFAULT: "#0c0d0d",
dark: "#191a1a",
medium: "#232424",
light: "#313232",
},
DEFAULT: "#00a0d0",
light: "#7ae0ff",
},
DEFAULT: "#fdfdfd",
},
DEFAULT: "#dd0a3d",
},
DEFAULT: "#00c75b",
},
Contracts
Here are the contracts for optimism. Let me know if you need any other ones.
Here is the contracts repo for Optimism and Polygon, from which you can get the ABIs: https://github.com/dhedge/V2-Public.
dHEDGE Optimism Subgraph: https://thegraph.com/hosted-service/subgraph/dhedge/dhedge-v2-optimism.
The text was updated successfully, but these errors were encountered: