Skip to content

Commit

Permalink
chore: update versions (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 16, 2023
1 parent 0284dee commit 44cc79e
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/shiny-eggs-grin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-drinks-walk.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/walletkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @totejs/walletkit

## 1.0.5

### Patch Changes

- 3b612c2: Test github action
- 0284dee: Support more wallets.

## 1.0.4

### Patch Changes
Expand Down
78 changes: 78 additions & 0 deletions packages/walletkit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# WalletKit

WalletKit is a React component library for easily connecting a wallet to your dApp.

## Features

- 💡 Typescript — Get types straight out of the box.
- 🌱 Ecosystem Standards — Built on top of [wagmi](https://wagmi.sh) and [viem](https://viem.sh)
- 🎨 Customization — Easily customizing wallets and themes

## Documentation

For full documentation, visit [here](https://node-real.github.io/walletkit/website/dist/#/index).

## Examples

The following examples are provided in the [examples](./examples/) folder of this repo.

- [nextjs](https://github.com/node-real/walletkit/tree/main/examples/nextjs)
- [vite](https://github.com/node-real/walletkit/tree/main/examples/vite)

## Installation

```bash
npm i @totejs/walletkit wagmi viem

```

## Usage

```tsx
import '@totejs/walletkit/styles.css';
import { WagmiConfig, createConfig } from 'wagmi';
import { chains } from './chains';
import {
WalletKitButton,
WalletKitProvider,
getDefaultConfig,
WalletKitOptions,
SwitchNetworkModal,
} from '@totejs/walletkit';
import { metaMask, trustWallet, walletConnect } from '@totejs/walletkit/wallets';

const config = createConfig(
getDefaultConfig({
autoConnect: true,
appName: 'WalletKit',

// WalletConnect 2.0 requires a projectId which you can create quickly
// and easily for free over at WalletConnect Cloud https://cloud.walletconnect.com/sign-in
walletConnectProjectId: 'xxx',

chains,
connectors: [trustWallet(), metaMask(), walletConnect()],
}),
);

const options: WalletKitOptions = {
initialChainId: 56,
};

export default function App() {
return (
<WagmiConfig config={config}>
<WalletKitProvider options={options} mode="light">
<WalletKitButton />

{/*
👇 Here's the SwitchNetworkModal
If the user switches to a network that is not supported by our dapp,
this modal will be displayed to remind the user to switch to our supported networks.
*/}
<SwitchNetworkModal />
</WalletKitProvider>
</WagmiConfig>
);
}
```
2 changes: 1 addition & 1 deletion packages/walletkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@totejs/walletkit",
"version": "1.0.4",
"version": "1.0.5",
"author": "node-real",
"private": false,
"description": "WalletKit is a React component library for easily connecting a wallet to your dApp.",
Expand Down

0 comments on commit 44cc79e

Please sign in to comment.