Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesla sati patch 1 #56

Open
wants to merge 61 commits into
base: topic-mining
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
9ce31d6
Merge pull request #19 from ryo-currency/dev
mosu-forge Feb 9, 2019
7b3bbeb
Merge pull request #20 from ryo-currency/dev
mosu-forge Feb 10, 2019
5ec9735
Merge pull request #26 from ryo-currency/topic-mining
mosu-forge May 5, 2019
b3a8e59
change ws to ipc
mosu-forge May 5, 2019
23ddec1
Merge pull request #27 from ryo-currency/topic-ipc
mosu-forge May 5, 2019
92e5a89
patches
mosu-forge May 7, 2019
493931f
fix missing directory bug for pool
mosu-forge May 7, 2019
586b1d5
pool: remove buffer from logger
mosu-forge May 12, 2019
cf23d32
misc: process stdout, config file sync
mosu-forge May 12, 2019
5dbaf88
pool: fix for NaN effort
mosu-forge May 12, 2019
17db14b
restart wallet upon settings change
mosu-forge May 12, 2019
6c5cd24
Added watch script for desync issue
mosu-forge May 12, 2019
c3b60c4
version bump, build options
mosu-forge May 12, 2019
3c577d8
seed word validation
mosu-forge May 12, 2019
38b68f3
password strenght meter
mosu-forge May 12, 2019
f50a07a
inactive timeout
mosu-forge May 12, 2019
00b33f4
added icons to start screen
mosu-forge May 12, 2019
5fc18be
move watchdog to separate interval
mosu-forge May 12, 2019
9ba1d82
Merge pull request #29 from ryo-currency/topic-1.3.0
mosu-forge May 12, 2019
1ed6e27
pool: send stratum ok status earlier, reduces perceived ping
mosu-forge May 15, 2019
de34813
pool: fix occasionaly bad hashrate average calculation
mosu-forge May 15, 2019
f28c875
pool: watchdog add check for system clock
mosu-forge May 15, 2019
c472def
pool: vacuum sqlite file
mosu-forge May 16, 2019
a10aa68
pool: build support for configurable block refresh interval, not expo…
mosu-forge May 16, 2019
21eb7c3
pool: xmrstak config example updates
mosu-forge May 16, 2019
71e7c1d
add autostart function
mosu-forge May 16, 2019
7d13f07
Adds a scanning percentage message to the loading overlay, for cases …
mosu-forge May 16, 2019
5875f99
filter out http:// from remote node address, resolves #21
mosu-forge May 16, 2019
1235e26
fix for exception when connection to remote node is lost, resolves #22
mosu-forge May 16, 2019
47b26ed
remove LICENSE from README
mosu-forge May 17, 2019
0445809
remove useless files
mosu-forge May 17, 2019
d43a6af
frontend style updates
mosu-forge May 18, 2019
4b8b208
version bump
mosu-forge May 18, 2019
d1793b2
Merge pull request #32 from ryo-currency/topic-1.3.2
mosu-forge May 31, 2019
acb638c
fix typo err -> error
mosu-forge Jul 2, 2019
6d555d1
update dependencies
mosu-forge Feb 25, 2020
c4d7043
npm scripts
mosu-forge Feb 27, 2020
99d5248
daemon/rpc changes
mosu-forge Feb 27, 2020
198dd7a
slight color variation
mosu-forge Feb 27, 2020
4e0534f
Merge pull request #36 from ryo-currency/topic-1.4.0
mosu-forge Feb 28, 2020
be3dc4d
daemon / wallet rpc fixes
mosu-forge Mar 6, 2020
648871b
fix growing sqlite file
mosu-forge Mar 6, 2020
e2b886e
version bump
mosu-forge Apr 2, 2020
a6b26d1
scanning fix
mosu-forge Apr 2, 2020
06941ce
cli changes
mosu-forge Apr 2, 2020
33d15f8
Merge pull request #37 from ryo-currency/topic-1.4.1
mosu-forge Apr 2, 2020
68288b5
version bump
mosu-forge Apr 28, 2020
2562087
Merge pull request #38 from ryo-currency/topic-1.5.0
mosu-forge Apr 28, 2020
e5350a4
edit build and readme docs
Ryo-RU Aug 16, 2022
4934796
refresh package lock file
Ryo-RU Aug 16, 2022
5a16ecc
increase window size to view all address and remove scroll
Ryo-RU Aug 16, 2022
9e5bcda
fix explorer ryoblocks link
Ryo-RU Aug 16, 2022
662f87d
add ryo socials to modal about
Ryo-RU Aug 16, 2022
b50827c
make progressbar more visible
Ryo-RU Aug 16, 2022
064449c
add to main menu item with help
Ryo-RU Aug 16, 2022
a8e4b10
edit remote node address
Ryo-RU Aug 16, 2022
f398307
bump version and fix copyright
Ryo-RU Aug 16, 2022
284a188
update year
Ryo-RU Aug 16, 2022
baae6e4
Merge pull request #49 from Ryo-RU/master
fireice-uk Aug 18, 2022
215eaa5
Create node.js.yml
TESLA-SATI May 30, 2024
3db24b6
Update node.js.yml
TESLA-SATI May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs: SATI
build:Wallet

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
167 changes: 167 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
![Ryo Wallet](https://ryo-currency.com/img/ryo-wallet-screenshots/ryo-wallet.png)

Next Generation GUI Wallet for Ryo-currency

---

[DESCRIPTION](/README.md) - BUILD - [LICENSE](/LICENSE)

---



## Building on Ubuntu
> Tested on: Ubuntu 18.04.6 LTS + 22.04

1. Check whether you have git installed: `git --version` if no version is output, install it: `sudo apt install git`

2. Check whether you have git installed: `curl -v` if no version is output, install it: `sudo apt install curl`

3. Run: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
then execute: `source ~/.profile` (no output or result will be provided)

4. Check whether you have nvm installed: `nvm ls` (if not: will show zero node distros installed)
`nvm ls-remote` (will list all remote available node distros for install, it is a long list!)
`nvm install lts/erbium` (or same as: `nvm install v12.22.12`).
Doublecheck successful installation with `nvm list` (will show that we installed it and are switched to it).
Now node is installed and appears in the list (other versions are not installed, so shown in red. we can install multiple node versions and switch between them)
![Ubuntu_4](https://user-images.githubusercontent.com/42204984/174149661-0932e56c-96c3-4a90-843a-96a3dfde4d5f.png)


5. Run: `npm install -g @quasar/cli` (will output that "added XYZ packages from XYZ contributors")
`quasar -v` (will output that installed version is 1.3.2)
6. Run: `git config --global url.https://github.com/.insteadOf git://github.com/` (no output will be provided)

7. Install build tools: `sudo apt-get install build-essential`
![Ubuntu_7](https://user-images.githubusercontent.com/42204984/174149865-64c34c4e-f927-4b81-a78f-a8f22500873b.png)

8. `cd ~ && git clone https://github.com/ryo-currency/ryo-wallet`
("cd ~" is added just in case you are in some other folder than ~, to be sure that you install it there)
(after cloning git will output: "Resolving deltas: 100% (XYZ/XYZ), done."

9. `cd ryo-wallet`

10. Download and extract linux binaries: **ryo-wallet-rpc** and **ryod** to `/ryo-wallet/bin` folder from [Ryo Github](https://github.com/ryo-currency/ryo-currency/releases) (other files in linux package like ryo-wallet-cli are **not** needed)

11. `npm install` (we will see that node_modules folder appeared in /ryo-wallet folder)
installed all required node components ("1733 packages from 1034 contributors" message)
![Ubuntu_11](https://user-images.githubusercontent.com/42204984/174149892-ca0a9b98-8e9d-4894-9a13-19878af3e43d.png)

12. `npm run build`
after some time (depenting on your CPU speed) you see successful build message
![Ubuntu_12](https://user-images.githubusercontent.com/42204984/174149964-25ba70b5-a381-43f3-8691-0f517b154622.png)

13. run to check: /ryo-wallet/dist/electron-mat/packaged/linux-unpacked/ryo-wallet-atom
![Ubuntu_13](https://user-images.githubusercontent.com/42204984/174149979-a8640aa1-61ad-435f-b9ef-9ae6d15777cb.png)


### Troubleshooting and tips:


- **Something went wrong, I need to clean temporary files.**

- If something went wrong during your build step (#12) delete folder "build" in /ryo-wallet if you added or edited versions of packages in package.json file you need to have folder "node_modules" deleted in /ryo-wallet folder and execute step #11 again.


- **command 'build' is not recognised**

- make sure you run `npm run build` not `npm build`


- **There are a lot of "warn" messages during build (#12)and node modules install (#11)**

- That's normal. Some modules get updated, some are deprecated, unless you have "error" type message appearing- the process is going normal.



- **ERR! Unexpected end of JSON input while parsing near '… - -\r\nVersion: OpenP'** (on #12 npm-build step)

- Try: `npm cache clean - force` and then repeat #12 step again



> Note1: If you have issues during build - please visit our [forum](https://www.reddit.com/r/ryocurrency) for support

> Note2: Video Format of the guide above is [available on our Youtube channel](https://youtu.be/tUoLFWttrv0)

---

## Building on Windows

> Run PowerShell as admin (press "win" button and type "powershell" in search and right click the icon and choose "run as admin")

> In PowerShell you can press tab in path to fill suggested matching word
> Disable uac (google link)is recommended otherwise you will be prompted on every required prerequisite app setup questions

>HDD Space/Internet traffic requirement for packages and the wallet build: ~11-12gb
>CPU/RAM requirement: 4 core+/4Gb+

1. Install git: [git-scm.com/downloads](https://git-scm.com/downloads)

2. Install python: [www.python.org/downloads/release/python-278](https://www.python.org/downloads/release/python-278/)

3. Install nvm: [github.com/coreybutler/nvm-windows/releases](https://github.com/coreybutler/nvm-windows/releases)

4. Install build tools using gui installer from the [Microsoft website](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16):
select "building desktop apps with C++" there in the payloads list. Make sure you have added "**v140** build tools" set to install.

5. PowerShell.
Run: `nvm install v12.22.12`
after it being installed run: `nvm use 12.22.12` (it will output "now using nvm 12.22.12")

6. PowerShell.
Install Quasar-cli: `npm install -g quasar-cli`

7. Reboot

8. PowerShell.
Run `git config --global url.https://github.com/.insteadOf git://github.com/` (no output will be provided)
then `cd C:\Users\your_username\Desktop\` (type instead of `your_username` - your windows username in path)
then `git clone https://github.com/ryo-currency/ryo-wallet.git`
then `cd ryo-wallet`
Download **Windows** binaries from [Ryo Github](https://github.com/ryo-currency/ryo-currency/releases) page and extract `ryod.exe` and `ryo-wallet-rpc.exe` files to `\bin` folder of Atom folder in the following path: `C:\Users\your_username\Desktop\ryo-wallet\bin`.

9. Run: `npm install`
(notice that folder "node_modules" gets created inside of the Atom Wallet folder)
![Windows_9](https://user-images.githubusercontent.com/42204984/174351866-55122b2a-4dec-43f3-ba1b-62207bf4014d.png)

10. Run: `npm run build`
(notice that "dist" folder gets created inside of Atom Wallet folder)
![Windows_10](https://user-images.githubusercontent.com/42204984/174350846-1d0f37ad-cd8e-4872-8e81-0803307cce3a.png)

11. Run wallet binaries .exe in path `C:\Users\user_name\Desktop\ryo-wallet\dist\electron-mat\Packaged\win-unpacked` and test it.



### Troubleshooting and tips:

1. Run this command `npm config set msvs_version "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"` in PowerShell if you get this error during "npm install" (#9) step:
```gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio installed in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2019 (16.11.32510.428) found at:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v142
gyp ERR! find VS - found Windows SDK: 10.0.19041.0
gyp ERR! find VS - msvs_version does not point to this installation
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - found in "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
gyp ERR! find VS - could not find MSBuild in registry for this version
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS valid versions for msvs_version:
gyp ERR! find VS - "2019"
gyp ERR! find VS - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
```
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019, Ryo Currency Project
Copyright (c) 2022, Ryo Currency Project

Portions of this software are available under BSD-3 license. Please see ORIGINAL-LICENSE for details

Expand Down
65 changes: 4 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Next Generation GUI Wallet for Ryo-currency

---

DESCRIPTION - [BUILD](/BUILD.md) - [LICENSE](/LICENSE)

---

Meet Atom, the new Electron based Ryo Wallet. Being the foundation for further development, this initial release already brings several improvements over previous GUI wallet.

- Wallet switch option.
Expand Down Expand Up @@ -51,69 +55,8 @@ Ryo wallet will scan default folders used by Lite wallet and GUI wallet and will
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/06_wallet-receive-2-light.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/07_wallet-send-light.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/08_wallet-address-book-1-light.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/09_wallet-address-book-2.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/10_wallet-address-book-3-light.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/11_tx-history-light.png)
![Ryo Wallet Screenshot](https://ryo-currency.com/img/ryo-wallet-screenshots/12_switch-wallet-light.png)

---

### Building from source

```
npm install -g quasar-cli
git clone https://github.com/ryo-currency/ryo-wallet
cd ryo-wallet
cp /path/to/ryo/binaries/ryod bin/
cp /path/to/ryo/binaries/ryo-wallet-rpc bin/
npm install
quasar build -m electron -t mat
```

---

### LICENSE

Copyright (c) 2018, Ryo Currency Project

Portions of this software are available under BSD-3 license. Please see ORIGINAL-LICENSE for details

All rights reserved.

Authors and copyright holders give permission for following:

1. Redistribution and use in source and binary forms WITHOUT modification.

2. Modification of the source form for your own personal use.

As long as the following conditions are met:

3. You must not distribute modified copies of the work to third parties. This includes
posting the work online, or hosting copies of the modified work for download.

4. Any derivative version of this work is also covered by this license, including point 8.

5. Neither the name of the copyright holders nor the names of the authors may be
used to endorse or promote products derived from this software without specific
prior written permission.

6. You agree that this licence is governed by and shall be construed in accordance
with the laws of England and Wales.

7. You agree to submit all disputes arising out of or in connection with this licence
to the exclusive jurisdiction of the Courts of England and Wales.

Authors and copyright holders agree that:

8. This licence expires and the work covered by it is released into the
public domain on 1st of February 2019

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading