Code Monkey home page Code Monkey logo

station-mobile's Introduction

Terra Station Mobile App

banner

Terra Station Mobile is an application to interact with Terra Core.

Terra Station Mobile allows users to:

  • Create wallets and send tokens
  • Get involved with staking, by browsing through validator information and delegating Luna tokens
  • Atomically swap currencies on the Terra network at the effective on-chain exchange rate
  • QRCode support for easy interactions when sending assets and recovering wallets

App Scheme

Send ( terrastation://send/?payload=${base64 json} )

// payload json
{
  address?: string // terra, ethereum, bsc
  amount?: string
  token: string // native token : denom, cw20 : contract address
  memo?: string
}

WalletConnect - Connect ( terrastation://walletconnect_connect/?payload=${base64 json} )

// payload json
{
  uri : string // wallet connect bridge uri
}

WalletConnect - Confirm ( terrastation://walletconnect_confirm/?payload=${base64 json} )

// tx: CreateTxOptions in terra.js
const params = {
  msgs: tx.msgs.map((msg) => msg.toJSON()),
  fee: tx.fee?.toJSON(),
  memo: tx.memo,
  gasPrices: tx.gasPrices?.toString(),
  gasAdjustment: tx.gasAdjustment?.toString(),
  account_number: tx.account_number,
  sequence: tx.sequence,
  feeDenoms: tx.feeDenoms,
}

// payload json
{
  id : string // unique value. ex) Date.now()
  handshakeTopic : string // WalletConnector handshakeTopic
  params: object // serialized CreateTxOptions
}

Prerequisites

Android

  • Android Studio 4.1.1 or later

iOS

  • XCode 12.5.1 or later
  • Cocoapods 1.10.1 or later

React Native

  • Node.js v14.15.3 or later

Instructions

  1. Install submodule
$ git submodule init
$ git submodule update
  1. Install dependencies
$ npm install
  1. Install pod (iOS)
$ cd ios && pod install && cd ..
  1. Launch app
$ npm run [ios|android]

License

This software is licensed under the Apache 2.0 license. Read more about it here.

© 2021 Terra Station Mobile

station-mobile's People

Contributors

bokuhe avatar dependabot[bot] avatar skqksh avatar

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.