Skip to content

Solana Capacitor dApp demo using Angular with Ionic components

License

Notifications You must be signed in to change notification settings

nolsonlabs/solana-capacitor-dapp-demo

Repository files navigation

Solana Capacitor Demo dApp

This is a demo app for the Solana Capacitor dApp plugin.

Installation

Pre-requisites

To run and deploy this project, please first install the dependencies for Capacitor described here and for Ionic as described here.

Install steps

  • Clone this repo
  • Change to the directory you cloned the files to
  • run the "npm i" command
  • run "ionic build"
  • run "npx cap sync"
  • run "ionic cap open android to open the project in Android studio
  • deploy to a device to emulator using the standard Android Studio workflow

Dependency issues

After installing the dependencies and trying to run you get the compilation warning "Error: node_modules/@jnwng/walletconnect-solana/lib/types/adapter.d.ts:3:15 - error TS2305: Module '"@walletconnect/types"' has no exported member 'SignClientTypes'." you can fix this as follows;

In node_modules/@jnwng/wallet-connect-solana/lib/types/adapter.d.s;

Comment out "import type { SignClientTypes } from '@walletconnect/types';"

In lines 5-8 change the type of options to any so it looks like this: export interface WalletConnectWalletAdapterConfig { network: WalletConnectChainID; options: any; }

Pretty hacky and definitely not ideal but will allow you to run the demo.

About

Solana Capacitor dApp demo using Angular with Ionic components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages