GithubHelp home page GithubHelp logo

gokiprotocol / walletkit Goto Github PK

View Code? Open in Web Editor NEW
187.0 187.0 49.0 38.45 MB

๐Ÿ”‘ Wallet connector for Solana dApps.

Home Page: https://walletkit.goki.so

License: GNU General Public License v3.0

JavaScript 1.99% HTML 2.95% CSS 0.54% TypeScript 94.43% Shell 0.09%

walletkit's People

Contributors

andrewtian avatar dependabot[bot] avatar jasonhargrove avatar macalinao avatar michaelhly avatar sungoki avatar user-0a 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

walletkit's Issues

Support multiple languages

Are there plans to include multiple languages?
Would you accept a PR if I used https://react.i18next.com/ ?

Is there a nice way to do it? Lazy load translations? Anything I can start working with?

PS. Also is there a local dev workflow to make changes in walletkit and use the example dir to see these changes.
Sorry noob here.

Wallet dropdown component

Dear sir,

I think it would be useful to have a Wallet Info dropdown where you can copy an address, view it on a block explorer, et cetera. Would you be interesting in a PR?

Regards,
Dondi

Does it support custom RPC endpoint?

I want to use my custom RPC endpoint for the connections.
but this Network only supports 'devnet' | 'testnet' | 'mainnet-beta' | 'localnet'

export type PartialNetworkConfigMap = {
  [N in Network]?: Partial<NetworkConfig>;
};

This does not work.

networkConfigs={{
                  "custom": {
                    name: "customRpc",
                    endpoint: "URL"
                  }
                }}

Customize Connect Wallet Button Style

Hi, could you support customization of connect wallet button?

For now, the color is hard-coded in components.

If PR is welcome, I can create PR later for this.

Thanks

How to sign text message?

Hi, how can I sign text message with walletkit?

I can use window.solana.signMessage(text), but I wonder is there any way to sign text message with walletkit.

Thanks

Needs dark-mode option (or clearer CSS classes for overrides) - see workaround

We adopted Goki and love it, thank you! A @mithraiclabs (PsyOptions) user (Jerry) requested a dark mode to match our dark-default apps, and we had a few +1s from the team.

Would be great to have official support for this. Will consider opening a PR in the next week (we have a couple things on the wish list).

In the meantime, quick workaround in SCSS:

[data-reach-dialog-overlay] {
  z-index: 999999;
  .goki-walletkit-modal-wrapper {
    background: black;
    border: 2px solid cyan;
    span, p, h2, div {
      color: white;
    }
    h2 ~ div svg {
      fill: white;
    }
    h2 ~ div div,
    div:nth-of-type(2) div div,
    svg + div {
      background: black;
    }
    button {
      border: 1px solid $cyan;
    }
    a {
      color: $cyan;
    }
  }
}

"Error: Component must be wrapped with <Container.Provider>" in Next.js

I'm getting this error when trying to implement WalletKit in Next.js:

Error: Component must be wrapped with <Container.Provider>
    at Object.useContainer (/home/markj/myapp/node_modules/unstated-next/dist/unstated-next.js:21:13)
    at useContainer (/home/markj/myapp/node_modules/unstated-next/dist/unstated-next.js:33:20)
    at useSolana (/home/markj/myapp/packages/mypackage/node_modules/@saberhq/use-solana/dist/cjs/context.js:66:58)
    at useWallet (/home/markj/myapp/packages/mypackage/node_modules/@saberhq/use-solana/dist/cjs/hooks.js:9:45)
    at useConnectedWallet (/home/markj/myapp/packages/mypackage/node_modules/@saberhq/use-solana/dist/cjs/hooks.js:20:35)
    at GokiWallet (webpack-internal:///./components/GokiWallet/GokiWallet.tsx:33:91)
    at processChild (/home/markj/myapp/node_modules/react-dom/cjs/react-dom-server.node.development.js:3353:14)
    at resolve (/home/markj/myapp/node_modules/react-dom/cjs/react-dom-server.node.development.js:3270:5)
    at ReactDOMServerRenderer.render (/home/markj/myapp/node_modules/react-dom/cjs/react-dom-server.node.development.js:3753:22)
    at ReactDOMServerRenderer.read (/home/markj/myapp/node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29)
error - Error: Component must be wrapped with <Container.Provider>

But I do have the hook wrapped in the WalletKit provider as in the example. What could this this error be indicating?

Rename darkenOverlay to resolve React warning

Warning: React does not recognize the darkenOverlay prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase darkenoverlay instead. If you accidentally passed it from a parent component, remove it from the DOM element.

When popup modal, there is a console warning like this. It may be better to rename this property to fix this warning.

[QUESTION] Does the example given in the repo work?

Running yarn and yarn start gives this.
I tried creating a new react project wtih CRA and added walletkit to it and still get this error.
Is this because of use-solana being updated or having its code changed?
Any workarounds this by using an older version? Please help.

image

Okay so this is weird.
It works on http://localhost:3001 but not on http://localhost:3000

EDIT: Any idea why this is happening? Is it just me? Can someone confirm?
Are they any env variables I'm not seeing properly.

Can you add Slope Wallet to your protocol?

Hi @secretshardul , I have been using the Slope Chrome plug-in wallet to link Saber, Sunny, Larix and Solend, and their wallet supports mobile App. Now I expect to use these DApps on the mobile version of Slope Wallet, but I did not find them in your wallet list. As long as you support Slope Wallet, I can use them on the mobile. Can you add Slope Wallet to your protocol?
image

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.