Giter Site home page Giter Site logo

nervosnetwork / neuron Goto Github PK

View Code? Open in Web Editor NEW
176.0 27.0 83.0 56.6 MB

Neuron: Nervos CKB Wallet

Home Page: https://www.nervos.org

License: MIT License

TypeScript 92.23% HTML 0.04% CSS 0.05% JavaScript 0.64% Shell 0.16% Ruby 0.06% SCSS 6.83%
nervos blockchain ckb wallet

neuron's Introduction

Neuron

Nervos CKB Full-Node Desktop Wallet

Unit Tests Discord


Quick Start

Prerequisites

You will need node >= 18.12.0 and yarn >= 1.14 to build and run Neuron.

Lerna

This project uses lerna for package management.

$ yarn global add lerna # install lerna globally

Install Dependencies

Notes:

  1. Please set proxy if you are using a proxy locally and find the downloading is halted
  2. Please set CDN if the downloading is slow

After lerna has been installed, run this to install and link dependencies:

$ yarn
$ lerna run rebuild:nativemodules

Add CKB Indexer

CKB Indexer is a service to create cell and transaction indexes.

Download CKB Indexer and move the binary into packages/neuron-wallet/bin/{win/linux/mac}/.

Start Neuron

As of v0.26.0, Neuron bundles a CKB binary and starts it for Mainnet automatically. If you prefer to run a local CKB node yourself instead, please follow the Nervos CKB doc to get it up and running before launching Neuron.

Note: If you run CKB node on Windows but it fails to start, you may need to download and install the latest Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.

Start Neuron in Development Mode

$ ./scripts/download-ckb.sh # Download CKB binary for your platform. Neuron will starts it automatically.
$ yarn start

This command starts neuron-ui, the React UI layer and neuron-wallet, the core wallet layer.

You can also start them independently:

# start neuron-ui at `http://localhost:3000`
$ yarn start:ui
# start neuron-wallet
$ yarn start:wallet

Test

$ yarn test

Download Neuron Binary

If you don't want to bother building from source, you can download a binary from releases. We offer pre-built binaries for Windows, Linux and macOS.

License

Neuron is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.

neuron's People

Contributors

alexsupa597 avatar ashchan avatar baojuncz avatar cezres avatar classicalliu avatar deepsourcebot avatar dependabot[bot] avatar devchenyan avatar duanyytop avatar e00dan avatar github-actions[bot] avatar hanssen0 avatar homura avatar katat avatar keith-cy avatar kellyshang avatar lester-xie avatar mortoys avatar natixe avatar qiweiii avatar ququzone avatar renovate[bot] avatar twhy avatar whiteminds avatar wuyuyue avatar xxuejie avatar yanguoyu avatar yuche avatar zengbing15 avatar zhangyouxin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neuron's Issues

update for batch variable rename

nervosnetwork/ckb#533

Block:

commit_transactions -> transactions
proposal_transactions -> proposals

Header:

txs_commit -> transactions_root
txs_proposal -> proposals_root

OutPoint:

hash -> tx_hash

CellInput:

valid_since -> since

Script:

binary_hash -> code_hash

Note: CKB has a bug that RPC types still have hash from OutPoint instead of tx_hash.

Electron app not starting due to SDK secp256k1 load issue

Ref: #75.

Error:

dyld: lazy symbol binding failed: Symbol not found: __ZN2v811HandleScope12CreateHandleEPNS_8internal10HeapObjectEPNS1_6ObjectE
  Referenced from: /path/to/neuron/node_modules/tiny-secp256k1/build/Release/secp256k1.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v811HandleScope12CreateHandleEPNS_8internal10HeapObjectEPNS1_6ObjectE
  Referenced from: /path/to/neuron/node_modules/tiny-secp256k1/build/Release/secp256k1.node
  Expected in: flat namespace

Didn't show right balance

I see on explorer that my address is already funded but neuron wallet didn't update it.
image

BTW, his status is up to date:
image

Wallet Problem

Hello,
I have registered a Wallet for about couple of days. I have sent three times 5000 ckb. The balance is still zero. I have waited the platform to sychronise but it synce to Block 248 611 and stops, I have cleared the cache couple of times is all the same. I tried re installing, always the same. Can not complete synchronizing procces. Does anyone have a clue how to solve the problem.
Regards

Balance not showing in wallet

I setup a ckb 0.22.0 node. Node is fully synchronized with latest blocks. I created a wallet in Neuron and input receive address into the faucet. Explorer shows transaction is confirmed for 5,000 testnet ckb. However, the Neuron wallet does not show the transaction. I've double verified receive address was correct. I delete blockchain for ckb node and resynchronized. Still no luck.

I'm not sure what else to do at this point to make the funds visible...

sync problem

i download new version of neuron.
still syncing & balance updating message!

what is the problem?

Bug when deposit ckb into NervosDao

Describe the bug
{code:-3,message:OutPoint: Dead(OutPoint(0x3ec9a1cfae69ed1ad12b387dc235aa9fc96ce03f526df3fda57856faf20c352301000000))"}

Environment (please complete the following information):
{"neuron":{"version":"0.29.0","blockNumber":"1737042"},"ckb":{"url":"http://localhost:8114","version":"0.29.0 (a6733e6 2020-02-26)","blockNumber":"1737461"}}

Steps To Reproduce
Steps to reproduce the behavior:

  1. click NervosDao
  2. Click on 'deposit'
  3. Enter password
  4. See error

Screenshots
W9(X7TQ1)D7O~ANM93E}6VJ

Run fail on Linux

$ chmod +x ./Neuron-v0.25.1-x86_64.AppImage
$./Neuron-v0.25.1-x86_64.AppImage
[9135:1121/001605.930940:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_NeuronXsvYGi/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap

OS: Debian GNU/Linux bullseye(Debian GNU/Linux 11)
Kernel: 5.2.0-3-amd64

Syncing Neuron wallet

Describe the bug
Installed Neuron wallet, sync process will take 3 days at current pace. Read prior thread of user with similar problem. Cleared the cache, only slightly quicker. Already plugged directly into router (faster than wifi?)
Any other suggestions? Is there a trimmed down version of the wallet?

Environment (please complete the following information):

  • OS & Version: Win7pro 64bit
  • Neuron Version 0.29.0
  • Block Number: 428,439

Error sending CKB

Not the same error as other recent reports:

{code:-32602,message:Invalid params: invalid length 2, expected fewer elements in array."}

After I enter my password for the transaction. No output in the launching console window, or in the devtools console.

Project packaging

Use tools like electron-packager/electron-builder to make Neuron available as native desktop for Windows, macOS and Linux.

  • When we develop and run the app in development mode, the electron app loads http://localhost:3000, which is the local react app web server address.
  • When packaging:
    • The electron app should load static build of react app.
    • The electron app should load and use our own app icon.
    • We should be able to build with our development provisioning files (but we can do this in a later and separate task).
    • The app should be able to up and running on Windows, macOS and Linux.
    • Anything else?

issue

image

Hi, Receiving this error on both 0.27 & 0.26
Clear cache multiple times, even deleted files in cell folder.
The wallet sync's but show incorrect balance and am unable to send.

Depositing into Nervos DAO

Describe the bug
IT seems my deposit isn't initiating or completing. See screenshot. I began the deposit 10 hours ago and still shows "Pending". I have allowed enough CKB for the 'fuel' to make the deposit.

Environment (please complete the following information):

  • OS & Version: Windows7 64-bit
  • Neuron Version 0.30.0-rc2
  • Block Number: 1697297

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
Capture
If applicable, add screenshots to help explain your problem.

deposit not in my CKB wallet balance

I transferred CKB from my exchange account and it has not appeared in my neuron wallet.

transaction ID is: ca4638f07bf54b69625aad2f2124b7c4f8139569873aaaf3d9ffc3c091a011df

receiving wallet is: ckb1qyqt58hnlumdj28rv4fwxqemvke0yxmtaxgsrvcx4p

Amount of CKB: 202087.91206124

please confirm and advise

regards
Robert

read ECONNRESET 0.29.0

If I enter the wrong password on the UI and then try again, I get this error message on the dashboard which prevents any further action.

this error message shows up on the full node:

ERROR panic thread 'GlobalRuntime-6' panicked at 'failed to open /dev/urandom: Os { code: 24, kind: Other, message: "Too many open files" }': src/libcore/result.rs:1084stack backtrace: 0: backtrace::backtrace::trace 1: backtrace::capture::Backtrace::new 2: ckb_logger::setup_panic_logger::{{closure}} 3: std::panicking::rust_panic_with_hook 4: std::panicking::continue_panic_fmt 5: rust_begin_unwind 6: core::panicking::panic_fmt 7: core::result::unwrap_failed 8: std::thread::local::fast::Key<T>::try_initialize 9: <std::collections::hash::map::HashMap<K,V,S> as core::iter::traits::collect::FromIterator<(K, V)>>::from_iter 10: <ckb_tx_pool::process::fetch_txs::FetchTxsProcess as futures::future::Future>::poll 11: futures::future::chain::Chain<A,B,C>::poll 12: futures::task_impl::std::set 13: std::panicking::try::do_call 14: __rust_maybe_catch_panic 15: tokio_threadpool::task::Task::run 16: tokio_threadpool::worker::Worker::run_task 17: tokio_threadpool::worker::Worker::run 18: std::thread::local::LocalKey<T>::with 19: std::thread::local::LocalKey<T>::with 20: std::thread::local::LocalKey<T>::with 21: tokio::runtime::threadpool::builder::Builder::build::{{closure}} 22: std::thread::local::LocalKey<T>::with 23: std::thread::local::LocalKey<T>::with 24: std::sys_common::backtrace::__rust_begin_short_backtrace 25: std::panicking::try::do_call 26: __rust_maybe_catch_panic 27: core::ops::function::FnOnce::call_once{{vtable.shim}} 28: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once 29: std::sys::unix::thread::Thread::new::thread_start 30: _pthread_start

Send Transaction Error

When sending a transaction error message appears: {code:-3,message:OutPoint:Dead(OutPoint(0xb0...

This occurs when sending to previously used address.
Troubleshooting steps:
Firewall is off.
Wallet recreated from seed.

余额显示有问题

收到ckb后 显示正确的余额
当再次打开钱包后 ckb余额显示为0, 再次接收到ckb后 余额显示正确

Withdrawing from the DAO unsuccessful 0.29.0

One of my nervos deposits was ready for withdrawal, upon entering the correct password the UI gives back the following:

{code:-32602,message:Invalid params: invalid length 2, expected fewer elements in array."}

Setup CI

  • lerna bootstrap
  • add empty tests (already there from the cra react app; unnecessary for now for the electron app)
  • travis config

Sync faild to connect

drunxx83
Overview
Send
Receive
History
Nervos DAO
Addresses
Customized Assets
Mainnet
Sync failed, please check network

Add Network

Missing dao

My dao deposit is now showing 0. Where is my deposit and why is it now missing?

Same wallet has different tx histories despite a full node sync

I have 3 different wallets that have different balances, 2 of them have been swept and have zero funds in the nervos DAO.

The UI shows my nervos dao history for all 3 wallets rolled into one when in reality only one of the keys has the nervos dao deposits. This results in confusion as I cannot tell which wallet actually holds the deposit.

Synchronizing

hi l have an apple imac and it is continuously syncing and dosent update my wallet amount.
is there a fix?
l have downloaded the latest version and tried other versions but dosent work?
ls there a fix for this?

withdraw DAO error

image

Have updated wallet and cleared cache. Today's transactions are shown in the wallet overview. Attempt to withdraw locked funds from DAO yields this error.

(also History tab: clicking page 2 link froze the wallet - Not Responding)

Windows 10 Pro

CANT INSTALL NEURON IN MY WINDOWS 10 FAMILLY

SINCE NEW VERSION COMES OUT IT IS TOTALLY IMPOSSIBLE FOR ME TO INSTALL NEURON IN MY GAMING PC GRAFIC CARD NVIDIA GTX 1060 6GB, INTELCORE I7 7TH GEN....FROM 2018....

EVERYTIME I TRY TO OPEN IT I GET AN ERROR SHOWING "OXXXCC" SOMETHING LIKE THIS BUT WALLET CANT OPEN, I DID NOT TRY IF ITS A GENERAL ERROR ALSO WITH THE OTHER VERSION, FINALLY I MUST IMPORT SEED IN IMTOKEN ANDROID WALLET THERE I HAD NO TROUBLE BALANCE SHOWED ASAP...
I'M MINING CKB WITH AN ANTMINER K5 BEFORE WITH TWO FPGAS...FROM MONAD TECHNOLOGY

CANT SYNC...

I VE TRIED TO SYNC FOR A WEEK, NOTHING...I USE WINDOWS 10 FAMILLY AND A GAMING PC WITH NVIDIA GTX 1060 6GB AND INTELCORE I7 7TH GENERATION, FINALLY HAD TO IMPORT SEED IN IMTOKEN ANDROID WALLET AND THERE BALANCE SHOWED ASAP.

LAST BUG WITH THE NEW VERSION IMPOSSIBLE TO INSTALL NEURON WALLET IN MY DESKOP IT FAILS EVERYTIME...CAN U PLEASE TELL ME IF I MIGHT DO WRONG SOMETHING OR IT IS A WELLKNOWN ISSUE AND YOU RE WORKING ON IT?

MUCH RESPECT

Transaction

Hi, I have installed the latest version of your wallet and I don't get any Transaction

Code -3 OUTPUT UNKNOWN

Describe the bug
{code:-3,message:OutPoint: Unknown([OutPoint(0x9c10d167798bf5ab2194c5f973470c9ab5caba39055656170707f090353ae41801000000)])"}

Environment (please complete the following information):

  • OS & Version: [e.g. Windows 10,
  • Neuron Version [e.g. 0.30.0]
  • Block Number: [Check that from Overview - Blockchain Status for v0.29.0-rc2 or before, or hover onto the left bottom syncing status area for v0.29.0 and later]

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to send
  2. Click on 'dend
  3. Scroll down to send
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Neuron 0.26.0 wont sync above block 310651

I updated my old wallet 0.25 to the newest as prompted by the wallet and when sync begins it shows 310651 as the highest block. I have re-synced (cleared cache) twice, 2nd time block height when only to 310671, now and I get the same block height. Any ideas how to correct? Once it was within 10,000 blocks of 310651 syncing slowed down.

Sync failed, please check network

Describe the bug
Neuron Wallet Sync Failed

Environment (please complete the following information):

  • OS & Version: Windows 10
  • Neuron Version [e.g. 0.28.0] 0.30.0 but was having the same issue with previous version before upgrading
  • Block Number: Sync failed, cannot check

I have cleared the cache and restarted several times and it doesn't change it. When you first open Neuron it trys to connect but then gives the sync failed message after about 10 seconds. My internet connection is fine.
neuron_debug_1589717671295.zip

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Deposit into Nervos DAO

i am trying to deposit my CKB into the Nervos DAO, i have tried 4 times today but after about 20 minutes it displays that it has failed, i am running Neuron 0.26.0 on Microsoft.

I have tried again tonight and it is working now, not sure on the original problem but all good now.

CKB coins sent from Huobi to Neuron

Hi
I sent coins from my Huobi exchange to Neuron but It still has not arrived. I got a message it has been received but I cannot see it on Neuron.
Can you please assist?
Thanks
Prem

Fix ESLint/Prettier conflict rules

There's still conflict when ESLint and Prettier try to fix an import with multiple properties.

screen shot 2019-02-19 at 9 40 12

screen shot 2019-02-19 at 9 40 45

Note this has been very annoying and a road blocker when submitting new code changes.

I sent deposit before it make before Synchronizing i will restive it after Synchronizing or it will lost because it first time for me in neuron wallet ...

Describe the bug
Please enter details.

Environment (please complete the following information):

  • OS & Version: [ Windows 10 ]
  • Neuron Version [e.g. 0.29.0]
  • Block Number: [1,447,556 Overview - Blockchain Status for v0.29.0-rc2 or 812,812
    2
    or hover onto the left bottom syncing status area for v0.29.0 and later]

i sent deposit before it make before Synchronizing i will restive it after Synchronizing or it will lost because it first time for me in neuron wallet ... it also make Synchronizing from 2 day and still in block 800,815 but it work very slow there is anther way to make it faster anther server

Screenshots
If applicable, add screenshots to help explain your problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.