开源软件名称(OpenSource Name):terra-money/station-mobile
开源软件地址(OpenSource Url):https://github.com/terra-money/station-mobile
开源编程语言(OpenSource Language):
TypeScript
79.5%
开源软件介绍(OpenSource Introduction):Terra Station Mobile App
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
- Install submodule
$ git submodule init
$ git submodule update
- Install dependencies
- Install pod (iOS)
$ cd ios && pod install && cd ..
- Launch app
License
This software is licensed under the Apache 2.0 license. Read more about it here.
© 2021 Terra Station Mobile
|
请发表评论