gokiprotocol / walletkit Goto Github PK
View Code? Open in Web Editor NEW๐ Wallet connector for Solana dApps.
Home Page: https://walletkit.goki.so
License: GNU General Public License v3.0
๐ Wallet connector for Solana dApps.
Home Page: https://walletkit.goki.so
License: GNU General Public License v3.0
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
Opened PR to update the README:
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;
}
}
}
Is it possible to disable connect to wallet automatically when loading the page until user clicking connect button?
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 lowercasedarkenoverlay
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.
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?
gm, I don't seem to be able to connect Phantom mobile to my dApp using the walletkit
example: https://beta-app.fsynth.io/#
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.
This is annoying behavior I believe we can detect and notify the user to reconnect.
use-solana
does not seem to be as maintained as Solana Labs's wallet-adapter. We should consider using that directly.
In addition to this, we'll also get support for Torus, which is very useful for Web3 projects that target non-crypto users.
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.
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.
It seems that Ledger connection errors are not always captured in try/catch blocks. This may be a problem with use-solana
.
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
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?
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
Can reproduce on app.saber.so
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"
}
}}
There seems to be some issue with npm packages being transpiled with Next.js.
This looks like an issue on Next.js side as sol-wallet-adapter works fine. Just curious if someone figure out a good config file to get this working!
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.