Widget interface for organization branded dHEDGE pools
dhedge / frontend-widget Goto Github PK
View Code? Open in Web Editor NEWWidget interface for organization branded dHEDGE pools
Widget interface for organization branded dHEDGE pools
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.
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.
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:
Here are the contracts for optimism. Let me know if you need any other ones.
"PoolFactoryProxy": "0x5e61a079A178f0E5784107a4963baAe0c5a680c6",
"PoolFactory": "0x6CA177b0Ee3B1D352e6A9AF62a403FFd7E2013D1",
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.