vampcheah / polkachat.rs

Polkadot Chat Demo dApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tesseract

Polkadot Chat demo dApp is a demonstration of how Tesseract provides wallet integration for dApps on mobile

Polkadot chat dApp Wallet choosing on iOS Wallet requested on iOS

Demo

The demo is a chat, storing messages in a Rococo network smart contract. It shows how the dApps can perform readonly operations without ever connecting to the wallet and how to aquire public key and sign transactions using Tesseract dApp/Wallet integration protocol. In the case of this demo, the transaction is created and submitted when the user wishes to send a message to the chat.

Prerequisites

Common prerequisites

Install Rust Environment (nightly) from here.

Android prerequisites

  1. Install Android toolchanins:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
  1. Install Android Studio
  2. Install Android NDK (no need for CMAKE)

iOS prerequisites

  1. Install iOS toolchanins:
rustup target add aarch64-apple-ios-sim aarch64-apple-ios x86_64-apple-ios
  1. Install Xcode from the App Store

Installation

Installation on Android

  1. Checkout this repo and Tesseract.android side by side.
  2. Open polkachat.rs folder in Android Studio.
  3. Check local.properties.example and copy the ones you need for your environment (i.e. your NDK version) into your local.properties.
  4. Run it on a desired device (or emulator).

Installation on iOS

  1. Checkout this repo.
  2. Open ios/PolkaChat.xcodeproj in Xcode.
  3. Run the Polka Chat.

License

Tesseract.rs can be used, distributed and modified under the Apache 2.0 license.

About

Polkadot Chat Demo dApp

License:Apache License 2.0


Languages

Language:Rust 56.4%Language:Kotlin 22.4%Language:Swift 18.0%Language:Shell 3.2%