• Stars
    star
    1,972
  • Rank 23,507 (Top 0.5 %)
  • Language
    TypeScript
  • License
    Other
  • Created about 3 years ago
  • Updated 25 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Secure, open source and community driven crypto wallet runs on all platforms and trusted by millions.

OneKey - Open Source Crypto Wallet

Github Stars Version Last commit Issues Pull Requests Discord Twitter Follow

Appstore Playstore

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.

Star this repo

๐Ÿš€ Getting Onboard

  1. Install node.js LTS version (>= 16)
  2. Install yarn package management tool
  3. Install git lfs (some binaries are required for pulling and updating)
  4. To start the iOS project, make sure that the local XCode version is greater than or equal to 13.3
  5. 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 locally
  • yarn ios: connect to iphone device via USB for development debugging
  • yarn android: develop android
  • yarn desktop: development in desktop mode
  • yarn 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 components
  • packages/kit holds reusable page-level UI content
  • packages/app APP code
  • packages/desktop Desktop electron code
  • packages/web web-side code
  • packages/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

  1. 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.

  1. 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!

Roadmap of OneKey

๐Ÿ’ฌ 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) ๐Ÿ‘‰ Click here to check all open positions
  • Remote (Live anywhere)
  • Global Pay (Literally)
  • ESOP (For everybody)
  • Open Source (As you see)
  • Awesome Colleagues (Hell Yeah!)
  • ่ฟœ็จ‹ (็”Ÿๆดปๅœจๅ“ชไธชๅŸŽๅธ‚้ƒฝๅฏไปฅ)
  • ๅ…จ็ƒไธ€่‡ด็š„่–ช้…ฌ (็œŸ็š„)
  • ๅ…จๅ‘˜ๆŒ่‚ก่ฎกๅˆ’ (ๆฏไธชไบบ้ƒฝๆœ‰)
  • ๅผ€ๆบ (ๅฆ‚ไฝ ๆ‰€่ง)
  • ่ถ…็บงๆฃ’็š„ๅŒไบ‹ (็ˆฝๅ‘†!)
  • โœจ Salute!

    โš–๏ธ License

    OneKey is available under the Apache-2.0 license license. Free for commercial and non-commercial use.

    More Repositories

    1

    bip39-dotmap

    Turn BIP39 words into dotmap. Use 12 dots per word to record your mnemonic phrase.
    72
    star
    2

    firmware

    C
    58
    star
    3

    wallet-deprecated

    Efficiency and secure crypto wallet for Bitcoin, Ethereum and more.
    51
    star
    4

    safe-pass

    DeFi white-list and black-list
    22
    star
    5

    firmware-x

    Next-gen hardware wallet firmware
    C++
    17
    star
    6

    hardware-js-sdk

    Javascript SDK for easily connect OneKey hardware device.
    TypeScript
    17
    star
    7

    desktop-legacy

    OneKey Desktop
    TypeScript
    12
    star
    8

    blockchain-libs

    OneKey Blockchain Libs
    TypeScript
    11
    star
    9

    cross-inpage-provider

    TypeScript
    9
    star
    10

    CryptoKeyboard

    Swift
    6
    star
    11

    fe-ui-components

    UI components for front-end.
    TypeScript
    6
    star
    12

    docs

    Synced w/ gitbook
    6
    star
    13

    portal

    TypeScript
    5
    star
    14

    upptime

    ๐Ÿ“ˆ Uptime monitor and status page for OneKey, powered by @upptime
    5
    star
    15

    design

    CSS
    4
    star
    16

    firmware-updater-web

    TypeScript
    3
    star
    17

    documents_archived

    documentation of OneKey
    JavaScript
    3
    star
    18

    actions

    Github Actions
    JavaScript
    3
    star
    19

    eth-onekey-keyring

    A JS wrapper around OneKey javascript libraries, to support the KeyringController protocol used by MetaMask for onekey device.
    JavaScript
    3
    star
    20

    portal-legacy

    TypeScript
    2
    star
    21

    token-list

    Python
    2
    star
    22

    doc

    bixinkey doc
    2
    star
    23

    onekey-extension-libs

    TypeScript
    2
    star
    24

    ios-app-legacy

    Objective-C
    2
    star
    25

    browser-extension-legacy

    The OneKey browser extension enables browsing Ethereum blockchain enabled websites
    JavaScript
    2
    star
    26

    android-app-legacy

    Java
    2
    star
    27

    .github

    README
    2
    star
    28

    aptos-wallet-adapter

    TypeScript
    1
    star
    29

    recruit

    1
    star
    30

    test-dapp

    JavaScript
    1
    star
    31

    bluetooth-firmware-touch

    BLE firmware used by OneKey hardware devices.
    C
    1
    star
    32

    contracts

    Solidity
    1
    star
    33

    react-native-lite-card

    Objective-C
    1
    star