Coder Social home page Coder Social logo

txnlab / use-wallet-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 392 KB

UseWallet demo app created for Proof of State Ep. 14 (9 Aug 2023) https://www.youtube.com/live/QH5mFD8RQ68

Home Page: https://use-wallet-demo.vercel.app

JavaScript 1.25% TypeScript 97.74% CSS 1.01%
algorand algosdk nextjs tailwindcss tanstack-query use-wallet

use-wallet-demo's Introduction

UseWallet Next.js Demo - Proof of State Ep. 14

This demo Next.js project was created to supplement a live-streamed interview on the Proof of State show, to demonstrate how to integrate the @txnlab/use-wallet library into a real-world Algorand application.

Promo Image

Stream Recording ๐ŸŽฌ

Connect on Twitter

Algorand Developers YouTube Channel

โœจ Features

  • Configured to support Defly, Pera, Daffi, Exodus, and WalletConnect providers
  • Demonstrates how @txnlab/use-wallet can be used to:
    • Build a wallet menu with provider/account selection
    • Connect to a wallet
    • Sign transactions
    • Send transactions
  • Shows balance of connected account, polled every 10 seconds
  • NFDomains integration displaying avatar and NFD name of the connected account (if one exists)
  • Uses the following technologies:

๐Ÿ”— Live Demo

๐Ÿ’ป Local Development

Prerequisites

  • Node.js v14.18.0 or higher
  • pnpm

Installation

  1. Clone the repository
git clone https://github.com/TxnLab/use-wallet-demo.git
  1. Change to the project directory
cd use-wallet-demo
  1. Install dependencies
pnpm install
  1. Start the development server
pnpm dev

How to Use

This demo app showcases the versatility and capabilities of the @txnlab/use-wallet library. You can experiment by tweaking various aspects of the configuration:

  1. Wallet Providers: Add or remove wallet providers

  2. Algorand Node Configuration: This demo app connects to Algorand Mainnet. You can change the node configuration to connect to Testnet or Betanet, using AlgoNode's public nodes or your own. Please note that currently only KMD, MyAlgo, and AlgoSigner support Betanet.

  3. WalletConnect Support: To integrate the WalletConnect provider, you'll need a unique project ID. Obtain it by:

    • Registering an account at WalletConnect Cloud
    • Creating a new project within your account. Each app needs its own unique project ID.

Full installation and configuration instructions for @txnlab/use-wallet can be found in the official repository: TxnLab/use-wallet. This will guide you through additional features supported by the library that might not be present in this basic example.

Contact

If you have any questions, suggestions, or would like to collaborate, feel free to get in touch through the following channels:

Your feedback and contributions are always welcome!

use-wallet-demo's People

Contributors

drichar avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

use-wallet-demo's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency @blockshake/defly-connect to v1.1.6
  • fix(deps): update dependency @headlessui/react to v1.7.19
  • fix(deps): update dependency @perawallet/connect to v1.3.4
  • fix(deps): update dependency @tailwindcss/forms to v0.5.7
  • fix(deps): update dependency @walletconnect/modal-sign-html to v2.6.2
  • fix(deps): update dependency autoprefixer to v10.4.19
  • fix(deps): update dependency postcss to v8.4.38
  • chore(deps): update dependency eslint-config-prettier to v9.1.0
  • chore(deps): update dependency prettier to v3.2.5
  • chore(deps): update jest monorepo to v29.7.0 (jest, jest-environment-jsdom)
  • chore(deps): update tanstack-query monorepo (@tanstack/eslint-plugin-query, @tanstack/react-query)
  • chore(deps): update testing-library monorepo (@testing-library/react, @testing-library/user-event)
  • fix(deps): update dependency @heroicons/react to v2.1.3
  • fix(deps): update dependency @txnlab/use-wallet to v2.8.2
  • fix(deps): update dependency algosdk to v2.7.0
  • fix(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency @types/testing-library__jest-dom to v6
  • chore(deps): update testing-library monorepo (major) (@testing-library/jest-dom, @testing-library/react)
  • fix(deps): update dependency @headlessui/react to v2
  • fix(deps): update dependency eslint to v9
  • fix(deps): update dependency eslint-config-next to v14
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
npm
package.json
  • @blockshake/defly-connect ^1.1.5
  • @daffiwallet/connect ^1.0.3
  • @headlessui/react ^1.7.16
  • @heroicons/react ^2.0.18
  • @perawallet/connect ^1.3.1
  • @tailwindcss/forms ^0.5.4
  • @tanstack/react-query ^4.32.6
  • @txnlab/use-wallet ^2.1.0
  • @types/node 20.4.8
  • @types/react 18.2.18
  • @types/react-dom 18.2.7
  • @walletconnect/modal-sign-html ^2.6.1
  • algosdk ^2.4.0
  • autoprefixer 10.4.16
  • axios ^1.4.0
  • big.js ^6.2.1
  • canvas ^2.11.2
  • eslint 8.46.0
  • eslint-config-next 13.4.13
  • next 13.4.13
  • postcss 8.4.31
  • react 18.2.0
  • react-confetti ^6.1.0
  • react-dom 18.2.0
  • tailwindcss 3.3.3
  • typescript 5.1.6
  • @tanstack/eslint-plugin-query ^4.32.5
  • @testing-library/jest-dom ^5.17.0
  • @testing-library/react ^14.0.0
  • @testing-library/user-event ^14.4.3
  • @types/big.js ^6.2.0
  • @types/testing-library__jest-dom ^5.14.9
  • eslint-config-prettier ^9.0.0
  • jest ^29.6.2
  • jest-environment-jsdom ^29.6.2
  • prettier 3.0.3

  • Check this box to trigger a request for Renovate to run again on this repository

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.