Code Monkey home page Code Monkey logo

mipd's People

Contributors

ap-justin avatar danielsinclair avatar dependabot[bot] avatar github-actions[bot] avatar glitch-txs avatar jxom avatar tmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mipd's Issues

window is not defined

want to play around on Next hehe, could we add this for SSR?

export function requestProviders(listener) {
    if(typeof window === 'undefined') return // <--- return on server
    const handler = (event) => listener(event.detail);
    window.addEventListener('eip6963:announceProvider', handler);

metamask + iron = website confused

After applying ethui/ethui#352, I installed the Iron extension on my main browser profile (predicting something would go wrong, but testing for that was the point)

with both extensions installed, the first website I used happened to be https://app.charmverse.io/
took me a while to connect the dots with this, but the "Connect Wallet" (metamask) button is now redirecting to the chrome app store. disabling the Iron extension makes it connect to Metamask normally

Is there a way around this?
I'm assuming the long-term answer is that both a) metamask needs to support 6963, and b) whatever sdk is used by charmverse needs to be updated as well, but wondering if some viable solution is possible for legacy pages?

the EIP does mention that backwards compatiblity is supposed to happen (by still supporting window.ethereum) so maybe this is a bug / wrong assumption on whatever SDK the website uses?

finding providers "conditionally" or by "priority"

I think it would be nice to have the ability in findProvider method:

findProvider({ rdns }) {
  return providerDetails.find(
    (providerDetail) => providerDetail.info.rdns === rdns,
  )
},

that would allow us to search for providers by "priority" or "conditionally".

I would suggest something like this:

const provider = store.findProvider({
  rdns: 'io.metamask' || 'io.metamask.mmi' || 'io.metamask.flask' || 'com.enkrypt'
});

This way the dapps would be able to pick their "preferred" provider which in some cases would be great to have. E.g. we are developing a MetaMask Snap and therefore our preferred wallet is MetaMask since others don't even support Snaps.

Thanks for reply!

Access providers from the chrome extension context script

The chrome extension that I write needs to sign transactions with wallets, most likely metamask.

I was wondering if you guys plan to support this use case?

What I basically try to do is to call store.getProviders(); from the content script injected into website (extensions thing) and get the actual providers, and then signs a transaction with them (if user is willing to accept it etc.)

As of now, the store.getProviders(); would return an array of 1 null element.

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.