Giter Site home page Giter Site logo

Comments (3)

fabianbormann avatar fabianbormann commented on May 26, 2024 1

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.

fabianbormann avatar fabianbormann commented on May 26, 2024

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.

fabianbormann avatar fabianbormann commented on May 26, 2024

Almost done https://github.com/cardano-foundation/adahandle-resolver 🙌

from cardano-connect-with-wallet.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.