terra-money / station-mobile

🛰️ Station wallet mobile
https://apps.apple.com/it/app/terra-station/id1548434735
34 stars 61 forks source link
android ios mobile station terra wallet

Terra Station Mobile App

banner

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

Terra Station Mobile allows users to:

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

iOS

React Native

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