-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:phantasma-io/app-phantasma-new
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Allow speculos access via 127.0.0.1:5000 | ||
docker container stop app-phantasma-container; docker container rm app-phantasma-container; docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest; docker run --privileged -e DISPLAY='host.docker.internal:0' -p 5000:5000 -v 'd:/1phantasma/app-phantasma:/app' -t -d --name app-phantasma-container ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## to force only one version of app-phantasma | ||
|
||
rm -rf .git; | ||
git init; | ||
git checkout -b main; | ||
find . -exec touch {} \; | ||
git add .; | ||
git commit -m "Initial commit"; | ||
git remote add origin https://github.com/phantasma-io/app-phantasma.git; | ||
git push -u --force origin main; | ||
git branch --set-upstream-to=origin/main main; | ||
git pull;git push; | ||
|
||
## to force local version to match origin/main | ||
|
||
git fetch --all; | ||
git reset --hard origin/main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Phantasma DAG Ledger Nano S Guide | ||
|
||
## Requirements | ||
|
||
To use Phantasma with a Ledger Nano S Device or a Ledger Nano X Device, you need a Ledger Nano S Device or a Ledger Nano X Device, and need access to the internet. | ||
|
||
We recommend using the Phantasma Javascript CLI: | ||
[Phantasma Javascript CLI](https://github.com/coranos/phantasma-js-hw) | ||
|
||
## Installation and Setup Instructions | ||
|
||
Initial setup: | ||
|
||
If you haven’t already, create a PIN for your Ledger and install Ledger Live Desktop from http://ledger.com or https://github.com/LedgerHQ/ledger-live-desktop/releases. | ||
Don’t forget to back up your recovery phrase! | ||
|
||
### Connect your Ledger device to your computer via USB and unlock it with your PIN. | ||
Open Ledger Live Desktop, select “Manager” in the left panel, and install the Phantasma application. | ||
|
||
![Ledger App Manager](https://i.imgur.com/6IZJVE8.png) | ||
|
||
### On your Ledger device, select the newly installed Phantasma application. | ||
|
||
![Phantasma App Icon]() | ||
|
||
You should now see a home screen that looks like this: | ||
|
||
![Phantasma App Home Screen]() | ||
|
||
## Connect your Ledger to Phantasma Javascript CLI. | ||
|
||
### With your Ledger connected to your computer, pull up a command line interface that can run phantasma-js-hw. | ||
|
||
## View Account Balance | ||
### To view the account balance, run the below command. | ||
|
||
npm start getlbalance | ||
|
||
### the response should look like this: | ||
|
||
phantasma-js-hw | ||
address DAG4EqbfJNSYZDDfs7AUzofotJzZXeRYgHaGZ6jQ | ||
balance 1000000000000 | ||
|
||
## Receive Crypto | ||
### To receive crypto, look on the device for the receiving address. | ||
|
||
This can be done from the home screen by clicking the right hand button, where the eye is. | ||
|
||
![Phantasma App Home Screen]() | ||
|
||
## Send Crypto | ||
### To send crypto, run the below command. | ||
|
||
npm start lsend 1 DAG6xXrv67rLAaGoYCaUe2ppBJMKsriUiNVzkJvv | ||
|
||
### the response should look like this: | ||
|
||
phantasma-js-hw | ||
sendAmountUsingLedger 1 DAG6xXrv67rLAaGoYCaUe2ppBJMKsriUiNVzkJvv | ||
send success "17dd624b7e2c16587ecf50e9e1e8d6f14bc5ff3f0b345f5df9ba21d79ea79f0b" | ||
|
||
### note | ||
Be sure to verify the the transaction details on the device! | ||
|
||
## Support | ||
If you have trouble, the best way to get help is to contact coranos2 on reddit. | ||
[Coranos2 on Reddit](https://www.reddit.com/user/coranos2) | ||
|
||
## How It was made | ||
This guide was made according to the ledger third party application design guidelines. | ||
|
||
### Ledger Third Party Application Design Guidelines | ||
[Ledger Third Party Application Design Guidelines](https://ledger.readthedocs.io/en/latest/additional/publishing_an_app.html#design-guidelines) |