OneKey - Open Source Crypto Wallet
Community & Enterprise Edition
๐ก ๐ง๐ปโโ๏ธ For Community Edition. It will always remain FREE FOREVER for open-source projects by individuals and communities.๐ฆ ๐ผ For Enterprise Edition. If you wish to self-host and develop locally, or access our market ticker data, NFT metadata, liquidity pools, or certain advanced features through enterprise-level APIs with higher request limits, you can contact BD manager [email protected] to subscribe our paid plans.
Support
- Community Forum. Best for: help with building, discussion about best practices.
- GitHub Issues. Best for: bugs and errors you encounter using OneKey.
- Discord. Best for: sharing your ideas and hanging out with the community.
Repo Status
โ Public: Production-ready
We really need your support, star or watch this repo for latest updates.
๐ Getting Onboard
- Install node.js LTS version (>= 16)
- Install yarn package management tool
- Install git lfs (some binaries are required for pulling and updating)
- To start the iOS project, make sure that the local XCode version is greater than or equal to 13.3
- To start the Android project, make sure that the local JDK version is greater than or equal to 11
After pulling the latest code via the git command line tool, install the project dependencies in the root directory via the yarn
command
# Install the expo command line tool globally at first.(Be careful not to modify the version, it may cause compilation failure.)
npm install -g [email protected]
# Next, install all JS dependencies and submodule dependencies.
yarn
๐งโ๐ป Develop
Execute the following commands in the root directory to develop different business code
yarn web
: Develop web mode, which starts a static server on port 3000 locallyyarn ios
: connect to iphone device via USB for development debuggingyarn android
: develop androidyarn desktop
: development in desktop modeyarn ext
: development in extension mode
๐ Build for production
Execute the following commands in the root directory and build target for production. Make sure each platform starts correctly and environment variables are configured correctly. For expo build please read this doc to complete some prerequisites first.
- web:
cd packages/web && yarn build
, build the static files at packages/web/web-build, for production build, see release-web.yml job for details. - ios: use expo server to build, see release-ios.yml job for details.
- android:
- use expo server to build, see release-android.yml job for details.
- or use
cd packages/app/android && ./gradlew aR
to build in local.
- desktop: :
cd packages/desktop && yarn build
, see release-desktop.yml job for details. - ext:
cd packages/ext && yarn build:all
, see release-ext.yml job for details.
๐ Multi-repository directory structure
The repositories are organized using the monorepo model to keep the code on different ends centralized and unaffected, while making it as reusable as possible during the packaging and compilation process
packages/components
holds UI componentspackages/kit
holds reusable page-level UI contentpackages/app
APP codepackages/desktop
Desktop electron codepackages/web
web-side codepackages/ext
chrome extension & firefox addon code
๐งฒ Install dependencies
Each subdirectory under the packages/
directory is a separate project, and the corresponding monorepo name is the value of the name
field in the corresponding directory package.json.
When you need to install a dependency for a subdirectory, just use yarn workspace @onekeyhq/web add axios
. With a prefix like yarn workspace @onekeyhq/web
, the axios module can eventually be installed in the root directory in the web subproject.
Some of the dependencies have native parts, so you need to go into the packages/app/ios
directory and do a pod install
after installing the JS dependencies.
๐ท Common problems
- The app does not start
For any environment, module and dependency issues in the startup phase, it is recommended to use the command yarn clean
in the root directory first. The command will clear all sub-dependencies, as well as the module cache of yarn, the cache of tools such as metro / babel, and then restart the project to try.
- Failed to run some post install scripts
Sorry, we only develop on macOS and haven't tested on other operating system platforms, so there may be some compatibility issues with some scripts. If you encounter script running errors on a Windows platform, we suggest you try using a Unix-like environment, such as WSL.
๐ Roadmap
Check out where we are now!
๐ฌ Docs in your languages
Available Languages |
---|
Simplified Chinese / ็ฎไฝไธญๆ |
German / Deutsch |
Japanese / ๆฅๆฌ่ช |
French / Franรงais |
Italian / Italiano |
๐ฐ Security
- Please read Bug Bunty Rules, we have detailed the exact plan in this article.
- Please report suspected security vulnerabilities in private to [email protected]
- Please do NOT create publicly viewable issues for suspected security vulnerabilities.
- As an open source project, although we are not yet profitable, we try to give some rewards to white hat hackers who disclose vulnerabilities to us in a timely manner.
๐โโ๏ธ We're Hiring!
We are hiring many roles (Remote)
|
|
---|---|
|
|
โจ Salute!
โ๏ธ License
OneKey is available under the Apache-2.0 license license. Free for commercial and non-commercial use.