diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 199b864..5b16ecc 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 05080f2..bc43e43 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/pocket/app.js b/pocket/app.js index dd438a3..bf20bf7 100644 --- a/pocket/app.js +++ b/pocket/app.js @@ -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"}}') @@ -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(); diff --git a/pocket/chains/chains_mainnet.json b/pocket/chains/chains_mainnet.json index 8887dc5..754d504 100644 --- a/pocket/chains/chains_mainnet.json +++ b/pocket/chains/chains_mainnet.json @@ -5,6 +5,6 @@ }, { "id": "0021", - "url": "http://geth.dappnode:8545" + "url": "http://nethermind.public.dappnode:8545" } ] \ No newline at end of file diff --git a/pocket/chains/chains_mainnet_template.json b/pocket/chains/chains_mainnet_template.json index 62cca69..fdd4609 100644 --- a/pocket/chains/chains_mainnet_template.json +++ b/pocket/chains/chains_mainnet_template.json @@ -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", diff --git a/setup-wizard.yml b/setup-wizard.yml index 8e4b6c9..8fb68dc 100644 --- a/setup-wizard.yml +++ b/setup-wizard.yml @@ -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: