Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vu3th/vue-dapp

Empower dapp developers with Vue integration for crypto wallets
https://github.com/vu3th/vue-dapp

dapp ethereum nuxt nuxt3 typescript vite vue vue3 vuejs

Last synced: 17 days ago
JSON representation

Empower dapp developers with Vue integration for crypto wallets

Awesome Lists containing this project

README

        



Vue Dapp Logo


Vue Dapp


Empower dapp developers with Vue integration for crypto wallets




MIT License



Telegram



Website


## Packages 📦

| Name | Description | Version |
| ----------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| @vue-dapp/core | useVueDapp & VueDappProvider | Version |
| @vue-dapp/nuxt | Vue Dapp Nuxt module | Version |
| @vue-dapp/modal | VueDappModal for a wallet modal | Version |
| @vue-dapp/walletconnect | WalletConnect integration | Version |
| @vue-dapp/coinbase | Coinbase Wallet integration | Version |

## Overview

Vue Dapp Overview

## Installation

```bash
npm install pinia @vue-dapp/core @vue-dapp/modal
```

```ts [main.ts]
import { createPinia } from 'pinia'
app.use(createPinia())
```

### Nuxt

```bash
npm install pinia @pinia/nuxt @vue-dapp/core @vue-dapp/nuxt @vue-dapp/modal
```

```ts
modules: ['@pinia/nuxt', '@vue-dapp/nuxt']
```

## Getting Started

```vue

import { BrowserWalletConnector, useVueDapp } from '@vue-dapp/core'
import { VueDappModal, useVueDappModal } from '@vue-dapp/modal'
import '@vue-dapp/modal/dist/style.css'

const { addConnectors, isConnected, wallet, disconnect } = useVueDapp()

addConnectors([new BrowserWalletConnector()])

function onClickConnectButton() {
if (isConnected.value) disconnect()
else useVueDappModal().open()
}

{{ isConnected ? 'Disconnect' : 'Connect' }}

status: {{ wallet.status }}

isConnected: {{ isConnected }}

error: {{ wallet.error }}


chainId: {{ wallet.chainId }}

address: {{ wallet.address }}

```

## Examples

- [vue-dapp-starter](https://github.com/vu3th/vue-dapp-starter)
- [nuxt-dapp](https://github.com/vu3th/nuxt-dapp)

## Development

```bash
pnpm install
pnpm build
pnpm -F core watch
pnpm -F modal watch
pnpm dev
pnpm build
pnpm build:app
```

## Support 🙏

- 0x9D75F4EbcB8e7669E59dcc27CBadC698E0F77187
- [Donation history](https://vuedapp.xyz/donations)

## Credits

- Vue Dapp Logo by @ramuta https://github.com/vu3th/vue-dapp/issues/24
- Favicon.io - Emoji Favicons > Sheaf Of Rice https://favicon.io/emoji-favicons/sheaf-of-rice