youwallet / wallet

🚀 基于Flutter开发的跨终端数字货币交易所✨
https://youwallet.github.io/
116 stars 55 forks source link
contracts dapp eth ethereum token

wallet logo

youwallet

License GitHub code size in bytes GitHub release (latest SemVer) GitHub Workflow Status

youwallet众和社区

为什么在区块链去中心化的世界里,交易所都是中心化的?

我们用数字货币解决了信任问题,为什么又要跳到中心化交易所的信任危机中?

难道就没有不需要预先存储数字货币的交易所吗?

youWallet,一款去中心化的数字货币交易工具,没有中心化上币费,不用充值交易,任何人都可自由兑换有价值的数字货币。

项目完全采用和众社区的贡献模式由所有贡献者推动。

文档

https://github.com/youwallet/wallet/wiki

功能说明

youWallet除提供ETH钱包的基础功能外,核心的功能是去中心化的币币交易。

钱包功能

去中心化币币交易

钱包功能

包含了ETH钱包的基础功能

去中心化币币交易

通过去中心化的撮合交易,实现ETH任意代币间的币币兑换,不再需要通过中心化交易所

开发必备软件

mac环境配置

vim ~/.bash_profile。在~/.bash_profile文件中,添加配置

Flutter 镜像配置:

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

Flutter 环境配置:

export PATH=/Users/gn/Desktop/FlutterSDK/flutter/bin:$PATH

载入配置

source .bash_profile

环境检查

flutter doctor

# 如果环境准备OK,则输出如下:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.5, on macOS 13.0 22A380, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

快速开发

本地clone仓库,进入项目中的you_wallet目录,执行命令:

flutter pub get

# 如果flutter版本太低,请先执行
flutter upgrade

启动ios模拟器

open -a Simulator

启动项目

flutter run

License

MIT

常见问题·

# 执行flutter pub get,报如下错误
Git error. Command: `git fetch`
stdout:
stderr: fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

exit code: 128

# 解决办法
造成这个问题的原因是pubspec.yaml中配置的第三方包,有的包已经不存在了无法下载,确定是哪个包,删除即可

常见问题2

配置完成环境变量后,创建flutter 项目,使用命令行每次都需要运行 source .bash_profile 才能生效。。。

解决办法:使用的终端是 iTrem ,使用了 zsh,则需要配置 .zshrc 文件(同.bash_profile的配置)

vim .zshrc source .zshrc

以后任意打开终端都可以 创建flutter 项目了。 

常见问题3

This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding. Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects The plugin flutter_aes_ecb_pkcs5 requires your app to be migrated to the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.

# 打开\android\app\src\main\AndroidManifest.xml
<application
  android:name="io.flutter.app.FlutterApplication"
  >
</application>
# 将以上配置修改为以下的样子即可:
<application
  android:name="${applicationName}"
  >
</application>

常见问题4

Android toolchain - develop for Android devices (Android SDK version 29.0.2) ✗ cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details.