Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion GETTING_STARTED.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Dappnode Pokt

Hardware Requirements: 4 CPU’s (or vCPU’s) | 16 GB RAM | 800GB Disk for POKT node + disk space for nodes to relay
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.5"
services:
pocket:
image: "pocket.pocket.dnp.dappnode.eth:0.1.7"
image: "pocket.pocket.dnp.dappnode.eth:0.1.6"
build:
context: pocket
args:
Expand Down
8 changes: 8 additions & 0 deletions pocket/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ function poktToUpokt(pokt) {
return pokt * 1000000;
}

//sign message function- returns signature (must be integrated into UI as an app function)
function signMessage(address, address) {
const signature = shell.exec(`pocket accounts sign ${address} ${address} --datadir=/home/app/.pocket/ --pwd "${passphrase}" | tail -n +3`).stdout.trim();
return signature;
}

app.get('/api/account', (req, res) => {
// res.send(
// JSON.parse('{"amount":44799883637, "amountStaked":15200000000,"address":"6e00cb7e13812b3877d65df09639fad873b5a305","shortAddress":"6e00...a305","network":"testnet","node":{"address":"6e00cb7e13812b3877d65df09639fad873b5a305","chains":["0020","0002"],"jailed":false,"public_key":"1a33cdf837ed3c71aad3bc6a28c60fbfac2b27593bdecce4245e81954939f8fd","service_url":"https://pocket-pocket.39acfcb1331c8b7c.dyndns.dappnode.io:443","status":2,"tokens":"15200000000","unstaking_time":"0001-01-01T00:00:00Z"}}')
Expand Down Expand Up @@ -132,6 +138,8 @@ function checkStateChain(type, url) {
return checkNearState(url);
case "avalanche":
return checkAvalancheState(url);
case "near":
return checkNearState(url);
case "pokt":
return 2;
// return checkPoktState();
Expand Down
2 changes: 1 addition & 1 deletion pocket/chains/chains_mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
},
{
"id": "0021",
"url": "http://geth.dappnode:8545"
"url": "http://nethermind.public.dappnode:8545"
}
]
6 changes: 5 additions & 1 deletion pocket/chains/chains_mainnet_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
},
{
"id": "0021",
"url": "http://geth.dappnode:8545"
"url": "http://nethermind.public.dappnode:8545"
},
{
"id": "0022",
"url": "http://erigon.dappnode:8545"
},
{
"id": "0022",
Expand Down
2 changes: 1 addition & 1 deletion setup-wizard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fields:
title: Wallet keyfile
description: >-
Upload an account using an Encrypted ASCII armored keyfile. You can create a new [keyfile/wallet here](https://wallet.pokt.network/) and then upload the generated keyfile.json here.
Currently the Pocket Web Wallet allows for making these armored keyfiles needed to stake usisng a few methods, please use the keyfile option, if you use Ledger you cannot stake with that account, you can only hold coins not staked or as a cold wallet for holding non-custodial rewards in an offline wallet though it will matter more once we introduce non-custodial staking where you can stake only th minimum required stake while all rewards go to a controller address, which can be offline to keep from earning rewards in your hot wallet needed to Stake with Pokt(Make sure it's a custodial address, we do not yet have non custodial funtionality but it's on our short term roadmap along with allowing for LeanPocket use, a way to easily run multiple separate staked addresses on one machine and package using just a single Pocket Chain Instance)
Currently the Pocket Web Wallet allows for making these armored keyfiles needed to stake usisng a few methods, please use the keyfile option, if you use Ledger you cannot stake with that account, you can only hold coins not staked or as a cold wallet for receiving/holding non-custodial rewards in an offline wallet though it will matter more once we introduce non-custodial staking where you can stake only the minimum required stake while all rewards go to a controller address, which can be offline to keep from earning rewards in your hot wallet needed to Stake with Pokt(Make sure it's a custodial address, we do not yet have non custodial funtionality but it's on our short term roadmap along with allowing for LeanPocket use, a way to easily run multiple separate staked addresses on one machine and package using just a single Pocket Chain Instance)
Note: Please do not use a `$` or `!` in your passphrase because it may cause issues with the Pokt UI and will break the CLI.
- id: passphrase
target:
Expand Down