Skip to content

Commit

Permalink
xaria modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
xaria-coin committed Aug 29, 2018
1 parent a78a0c0 commit f11d15c
Show file tree
Hide file tree
Showing 27 changed files with 300 additions and 452 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
backup_main.go


# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
Expand Down
80 changes: 25 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,94 +1,64 @@
# TurtleCoin Nest
# Xaria-GUI

The universal desktop GUI wallet for TurtleCoin
The universal GUI wallet for Xaria

![Logo](/turtlecoinnestlogo.png)
![Logo](/xariagui.png)

## Installation

[Windows](#windows) - [Mac](#mac) - [Linux](#linux)

### Windows

1. Go [here](https://github.com/turtlecoin/turtle-wallet-go/releases) and download the latest release called **TurtleCoin-Nest-x.xx-Windows.zip**
2. Unzip the folder and launch **TurtleCoin-Nest.exe**. (Make sure you leave everything as is in the folder)
1. Go [here](https://github.com/xaria-coin/xaria-gui/releases) and download the latest release called **xaria-gui-x.xx-Windows.zip**
2. Unzip the folder and launch **xaria-gui.exe**. (Make sure you leave everything as is in the folder)

Important notes:

* Make sure *turtle-service.exe* is not running before you start *TurtleCoin-Nest*
* Make sure *Walletd.exe* or *xariad.exe* are not running before you start *xaria-gui*
* When you open a wallet in xaria-gui, you will see a black empty *walletd* window. You must keep it open. It will close automatically when you close your wallet. If it does not close automatically a few seconds after you close your wallet, you can close it manually.

### Mac

1. Go [here](https://github.com/turtlecoin/turtle-wallet-go/releases) and download the latest release called **TurtleCoin-Nest-x.xx-Mac.zip**.
2. Unzip it and move the folder wherever you want or drag the application **TurtleCoin-Nest** into /Applications or any other folder.
1. Go [here](https://github.com/xaria-coin/xaria-gui/releases) and download the latest release called **xaria-gui-x.xx-Mac.zip**.
2. Unzip it and move the folder wherever you want or drag the application ***xaria-gui** into /Applications or any other folder.
3. Launch the application. (If your mac complains that the app comes from an unindentified developer and does not want to open it, just right-click (or ctrl-click) on the app, and choose open > open)

Important notes:

* The wallets you create or generate will be saved to your home folder. You can keep them there or move them wherever you want.
* Make sure *turtle-service* is not running before you start *TurtleCoin-Nest*.
* If you encounter crashes, open the activity monitor (in your app > utilities), and force quit *turtle-service* (if it is running) before opening a wallet.
* The log files will be saved in ~/Library/Application Support/TurtleCoin-Nest/.
* Make sure *Walletd* or *xariad* are not running before you start **xaria-gui*.
* If you encounter crashes, open the activity monitor (in your app > utilities), and force quit *walletd* (if it is running) before opening a wallet. (this bug is being worked on).
* The log files will be saved in ~/Library/Application Support/xaria-gui/.

### Linux

1. Go [here](https://github.com/turtlecoin/turtle-wallet-go/releases) and download the latest release called **TurtleCoin-Nest-x.xx-Linux.tar.gz**
1. Go [here](https://github.com/xaria-coin/xaria-gui/releases) and download the latest release called ***xaria-gui-x.xx-Linux.zip**
2. extract it
`$ tar xvzf TurtleCoin-Nest-x.xx-Linux.tar.gz`
3. run **TurtleCoin-Nest.sh**. (Make sure you leave everything as is in the folder)
`$ tar xvzf xaria-gui-x.xx-Linux.zip`
3. run **xaria-gui.sh**. (Make sure you leave everything as is in the folder)

Important notes:

* Make sure *turtle-service* is not running before you start *TurtleCoin-Nest*
* Make sure *Walletd* or *xariad* are not running before you start *xaria-gui*
* If you want the *copy address to clipboard* button to work, install *xclip* or *xsel* (on Debian/Ubuntu: `$ sudo apt install xclip`).
* If you encounter crashes, open an activity monitor (e.g. `$ htop`), and quit *turtle-service* (if it is running) before opening a wallet. (this bug is being worked on)
* If you encounter crashes, open an activity monitor (e.g. `$ htop`), and quit *walletd* (if it is running) before opening a wallet. (this bug is being worked on)

## Upgrade

Just download the new release and follow the same steps as [Installation](#installation). Just make sure you don't delete your wallet files in the old folder (.wallet files) and you copy them or move them to a new folder.

## Screenshots

![Main Screen](/Screenshots/MainScreen.png)

![Open Wallet](/Screenshots/OpenWallet.png)

## Donations

TRTLv3jzutiQwqHL3qFwsu5EVLWesxZr1AFQ4AuMR3SD56n3rkHDkwj79eKwvaiU1nYQWGydKoXM6fXyiiGKsPDnVCNXzNdusxx
Xaxyx7ez9gjD77ihPTaScZe2ezDHESyCa2gv2uQZ4ioJG7JsHzvwCyPURkhr8K4BcBL3Rcm4DHvm2BSA4F9RjYGz83G2KBbups

## Build - (for developers only)
## Build

### Linux
(for developers only)

1. Download Go from [here](https://golang.org/dl/)
2. Use `tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz` to extract the downloaded go package.
3. Add the following lines to `.bashrc` file, save the file and then execute the command `source .bashrc` in a terminal.
```
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export GOROOT=/usr/local/go
export PATH=$HOME/bin:$HOME/.local/bin:$PATH:$GOROOT/bin:$GOBIN
```
4. Similarly add the following lines to `.profile` file, save the file and then execute the command `source .profile` in a terminal.
```
CGO_CXXFLAGS_ALLOW=".*"
CGO_LDFLAGS_ALLOW=".*"
CGO_CFLAGS_ALLOW=".*"
```
5. Follow the instructions present [here](https://github.com/therecipe/qt/wiki/Installation-on-Linux) till **Run the setup** to install Qt which is the most important binding required to build Nest.
6. Type the following commands to clone the Nest wallet, install dependencies and build the wallet.
```
cd $HOME/go/src
git clone https://github.com/turtlecoin/turtle-wallet-go.git TurtleCoin-Nest
go get github.com/atotto/clipboard github.com/dustin/go-humanize github.com/mattn/go-sqlite3 github.com/mcuadros/go-version github.com/mitchellh/go-ps github.com/pkg/errors
qtdeploy build desktop
```

* The app folder is in deploy/*your os*/
* Include the latest turtle-service and TurtleCoind builds in:
1. Install this binding: https://github.com/therecipe/qt
2. Run `qtdeploy build desktop`
3. The app folder is in deploy/*your os*/
3. Include the latest walletd build in:
* Windows, Linux: in the app folder
* Mac: in TurtleCoin-Nest.app/Contents/
* Mac: in xaria-gui.app/Contents/
Binary file removed Screenshots/BackupSeed.png
Binary file not shown.
Binary file removed Screenshots/MainScreen.png
Binary file not shown.
Binary file removed Screenshots/OpenWallet.png
Binary file not shown.
12 changes: 6 additions & 6 deletions constants.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

const (
versionNest = "0.33"
urlCryptoCompareTRTL = "https://min-api.cryptocompare.com/data/price?fsym=TRTL&tsyms=USD"
defaultRemoteDaemonAddress = "public.turtlenode.io"
defaultRemoteDaemonPort = "11898"
logFileFilename = "TurtleCoin-Nest.log"
urlBlockExplorer = "https://blocks.turtle.link/"
versionGUI = "0.01"
urlCryptoCompareXARI = "http://xaria.xyz/price.json"
defaultRemoteDaemonAddress = "node.xaria.xyz"
defaultRemoteDaemonPort = "11966"
logFileFilename = "xaria-GUI-logs.log"
urlBlockExplorer = "http:/explorer.xaria.xyz"
dbFilename = "settings.db"
numberTransactionsToDisplay = 20
)
Binary file modified darwin/Contents/Resources/icon.icns
Binary file not shown.
30 changes: 14 additions & 16 deletions docs/functional-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,30 @@ Import wallet from seed | wallet created in app folder. Check backup seed, addre
Open existing wallet -> close Nest -> reopen Nest | path to previously opened wallet should appear. Test opening it again without changing path.
Button copy address | Pop up "Copied!" and address should be copied to clipboard.
Button copy tr. id | Pop up "Copied!" and tr. id should be copied to clipboard.
Button explore transaction | Trtl explorer opens in default browser with the right transacton.
Receive trtl | Balance updates automatically and new confirmed transaction added to list previous transactions
Send TRTL, address diff. than 99 chars or 187 chars | error: address invalid
Send TRTL, address not start by TRTL | error: address invalid
Send TRTL, amount is 0 or less | error: amount should be greater than 0
Send TRTL, amount is not a number | error: amount invalid
Send TRTL, amount + fee is more than available balance | error: available balance is insufficient
Send TRTL, small valid amount | dialog for confirming transfer. After confirmation, popup TRTL sent. amount is received on the other end
Send TRTL, invalid payment id | error: wrong payment id format
Send TRTL, valid payment id | popup TRTL sent. amount is received on the other end with correct payment id
Send TRTL, valid integrated address | popup TRTL sent. amount is received on the other end with correct payment id from integrated address
Select the option local blockchain, restart | local blockchain should still be selected
Open wallet with local blockchain selected and TurtleCoind started before | TurtleCoind should not be started automatically and should not close after wallet is closed
Open wallet with local blockchain selected and TurtleCoind not started before | TurtleCoind should start automatically and should close after Nest is closed
Button explore transaction | XARI explorer opens in default browser with the right transacton.
Receive XARI | Balance updates automatically and new confirmed transaction added to list previous transactions
Send XARI, address diff. than 98 chars or 236 chars | error: address invalid
Send XARI, address not start by XARI | error: address invalid
Send XARI, amount is 0 or less | error: amount should be greater than 0
Send XARI, amount is not a number | error: amount invalid
Send XARI, amount + fee is more than available balance | error: available balance is insufficient
Send XARI, small valid amount | dialog for confirming transfer. After confirmation, popup XARI sent. amount is received on the other end
Send XARI, invalid payment id | error: wrong payment id format
Send XARI, valid payment id | popup XARI sent. amount is received on the other end with correct payment id
Send XARI, valid integrated address | popup XARI sent. amount is received on the other end with correct payment id from integrated address
select the option local blockchain, restart | local blockchain should still be selected
Test using the wallet with local blockchain selected |
Test using the wallet with remote node selected |
Reduce window height and test scrolling |
Check wallet filename is displayed above address |
Click Settings | Settings screen appears
Close Settings | Settings screen disappears
Settings: Enable display in USD -> Close Nest -> Reopen | Setting is still enabled
Display in USD enabled -> Open a wallet| Balance is displayed in USD (under TRTL balance)
Display in USD enabled -> Open a wallet| Balance is displayed in USD (under XARI balance)
Display in USD enabled -> type an amount to be transfered| Value is displayed in USD
Settings: change remote node address and port -> click save -> close and reopen Nest | new address in remote node radio button and in settings
Settings: click remote node reset to default -> close and reopen Nest | default address in remote node radio button and in settings
Win only: open a wallet | no black window (turtle-service) should open next to the nest window
Win only: open a wallet | no black window (walletd) should open next to the nest window
Win & Mac only: check executable file | its icon is the nest icon
Win & Mac only: launch nest | icon in taskbar should be nest icon
Launch on a small screen or resolution (800 x 600) | possibility to click full screen and to scroll in the full window
Expand Down
42 changes: 0 additions & 42 deletions docs/releases.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,5 @@
# Releases

## 0.32

### Release notes

- Compatibility with new fees from remote nodes (if you connect to a remote node, the node can charge you a fee per transaction, as a compensation for their running costs).
- Compatibility with core 0.8.0
- Uses turtle-service and TurtleCoind 0.8.0.

### Sha256

TurtleCoin-Nest-0.32-Windows.zip:
`0957dfcd42aa4fa3332d4419c888144cbf0fc0cd8f3ce4b3b2954e2d57dc9858`

TurtleCoin-Nest-0.32-Mac.zip:
`a84eb3d5e56e3bcae27c6688ba070a6a7393a4141b1aa7eb1217cc4082e7957e`

TurtleCoin-Nest-0.32-Linux.tar.gz:
`910cc9e8abc8cf55af43c908d9a456c88c659e03c3fda4679b08c78b9e094ca4`

## 0.31

### Release notes

- Possibility to use local blockchain is re-enabled.
- Possibility to send to integrated addresses
- Fixed resolution on high res screens on Windows
- Added scrollbar when window is smaller than nominal height
- Uses turtle-service and TurtleCoind 0.7.0.

Regarding the local blockchain option: TurtleCoind will be launched in the background if you did not launch it manually. Some difficulties can arise, please check the different log files to understand the problem (especially TurtleCoind-session.log) or ask some help in the discord. You will also avoid issues if you launch TurtleCoind manually before launching Nest (and potentially wait for sync). Please tell us if you have issues so we can improve for the next release.

### Sha256

TurtleCoin-Nest-0.31-Windows.zip:
`e3f6ad0f377528fd3e28d30a9ae9a8db69229f5ffd00a272993808db25ee49d6`

TurtleCoin-Nest-0.31-Mac.zip:
`f2325823c268be8b8bc3feeaece0f4d141a13e80a2cbbfe49b55420afa0baa98`

TurtleCoin-Nest-0.31-Linux.tar.gz:
`cf24f364a5abba8d6464e4e48d9700a7705d2c84163436818844ea5edfb1f223`

## 0.30

### Release notes
Expand Down
2 changes: 1 addition & 1 deletion githubUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type release struct {
URL string `json:"html_url"`
}

const url = "https://api.github.com/repos/turtlecoin/turtle-wallet-go/releases/latest"
const url = "https://api.github.com/repos/xaria-coin/xaria-GUI/releases/latest"

func checkIfNewReleaseAvailableOnGithub(currentVersion string) (newVersion string, urlNewVersion string) {

Expand Down
Binary file modified icon.ico
Binary file not shown.
Binary file modified icon_windows.syso
Binary file not shown.
Loading

0 comments on commit f11d15c

Please sign in to comment.