Comments (3)
Hi @matiwinnetou, if I'm right, we would need to query all assets of the stake address (from e.g. koios) and search for the handles and then use it as the default button title (if connected). https://docs.adahandle.com/quick-start
A feasible and lightweight solution would be to add a connectedLabel prop (in contrast to that prop) so that a developer would be able to fetch the adahandle via koios/blockfrost, show a selection dialog and then he/she would be able to do:
<ConnectWalletButton connectedLabel={adahandle} />
...
A more complex alternative would be to introduce a prop useAdaHandle
and implement the fetch- and display-logic inside the component. I don't know if this would bring to much load to koios or if we would need to introduce a fetchAssetsUrl, so that devs could use their own blockfrost api key inside a backend service 🤔 .. what do you think about it?
from cardano-connect-with-wallet.
As discussed with @satran004 we will now work on a service to resolve adahandles using yaci-store and bring that open source and 24/7 up in the cf environment allowing also community projects to use it 😊 .. I will link the project and it's status here once it's released in v0.0.1 😉
from cardano-connect-with-wallet.
Almost done https://github.com/cardano-foundation/adahandle-resolver 🙌
from cardano-connect-with-wallet.
Related Issues (18)
- [Feature]: Update to support final CIP-30 and thus CIP-30 extensions
- Gerowallet not working[BUG] HOT 4
- [BUG] cannot get stakeAddress HOT 3
- [FEATURE]
- [FEATURE] HOT 5
- Add option to display account balance instead of stake address
- Get payment addresses from useCardano hook HOT 2
- Refactor this component in an abstract non-react lib and a react implementation
- Add preview gif to README.md HOT 2
- [BUG] Can not write unit test if i import this library. I use jest, testing-library and styled-components HOT 5
- [FEATURE] Add VESPR to list supported wallets HOT 1
- [BUG] CBOR decode error HOT 9
- [FEATURE] Vue Support HOT 1
- [FEATURE] Full CIP-30 HOT 1
- [BUG] CBOR decode error: non-string keys not supported HOT 9
- [Bug]: NuFi wallet does not reconnect after page reload
- [Bug]: event name mismatch: "connecting" vs "isConnecting" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardano-connect-with-wallet.