Skip to content

ZJUBCA/zjubca.wallet

Repository files navigation

zjubca.wallet

A necessary wallet for a new world.

本仓库为协会钱包移动端代码仓库。协会钱包基于EOS麒麟测试网,旨在为协会开发者提供Dapp运行容器,为高校用户打造门槛更低的区块链入口。

This repo is the code of the mobile app of ZJUBCA.WALLET. WALLET is aimed to provide a higher-level container for decentralized applications based on EOS kylin testnet, and build an easy-to-use entrance of blockchain for users in colleges.

Scatter支持

本钱包完全兼容Scatter的接口,Dapp开发者只须使用同一套ScatterJS(协会二次开发版本)即可实现同时与桌面端Scatter钱包及协会钱包进行交互。

This wallet supports the interface provided by Scatter. DAPP developers only need to use one zjubca-scatter-js(re-dev by ZJUBCA), and get ready to interact with both Scatter Desktop and ZJUBCA.WALLET.

注: 已测试eosjs@16.0.9的兼容性,建议开发者选用该版本的plugin与sdk!!!

Note: we have test the compatibility of eosjs@16.0.9 and recommend to use this version as plugin and sdk.

Scatter API (Support ScatterJS)

  • getVersion
  • getIdentity
  • getIdentityFromPermission
  • forgetIdentity
  • updateIdentity
  • authenticate
  • getPublicKey
  • linkAccount - 不支持/Not support
  • hasAccountFor
  • suggestNetwork - 不支持/Not support
  • requestTransfer
  • requestSignature
  • getArbitrarySignatures
  • createTransaction
  • addToken - 不支持/Not support

Simple Wallet协议

本钱包接入SimpleWallet协议。

This wallet supports SimpleWallet protocol.

已实现:

  • 扫码支付/scan code to pay
  • 扫码登录/scan code to login
  • Dapp移动端应用拉起钱包App/Dapp mobile native app interact with wallet.

Dapp dev guide

请移步Dapp开发指南

Checkout the dapp-dev-guide.

Configuration

钱包涉及两个须从远端获取的配置信息:

  • Dapp 列表
  • Token 列表

请移步wallet-config

Wallet includes two configurations fetching from remote:

  • Dapp list
  • Token list

Checkout the wallet-config.

Dev plan

  • 钱包基本功能/Basic functions
  • 钱包内Dapp与钱包App组件交互功能/In-wallet Dapps interact with the wallet app components.
  • 原生App与钱包App交互功能/Native apps interact with the wallet app.

Memorandum and Experience

  • qr-scanner与camera-preview插件存在冲突。

IOS

由于所用到的部分Cordova插件对Swift4支持尚不成熟,请务必安装并使用xcode 10.1

Android

  • 请先下载Android Studio并成功运行一个项目(此过程会安装必要依赖)后再编译ionic项目。

How to build and deploy

  1. git clone本仓库
  2. yarn

Android

  1. mkdir android-deploy and put zjubca_wallet.keystore(stored in secure storage) in the dir.
  2. npm run build-android. ps:you need to input a key when compilation, and please ask admin for key。
  3. You'll find the zjubca_wallet.apk in dir android-deploy.

IOS

  1. npm run build-ios --prod
  2. Open XCode to sign the project, and get ipa binary file.