From c0ba661650be0bf28f3ca06888bc391b85bb3995 Mon Sep 17 00:00:00 2001 From: Voss Date: Sun, 19 Feb 2023 04:00:53 -0600 Subject: [PATCH 1/3] add chains + increase limits --- dappnode_package.json | 4 +++- docker-compose.yml | 4 ++-- pocket/app.js | 1 + pocket/chains/chains_mainnet_template.json | 8 ++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dappnode_package.json b/dappnode_package.json index e3fb8c9..421cf92 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -9,7 +9,9 @@ "type": "service", "mainService": "pocket", "author": "DAppNode Association (https://github.com/dappnode)", - "contributors": ["DAppNode (https://github.com/dappnode)"], + "contributors": [ + "Eduadiez (https://github.com/eduadiez)", + "Voss (https://github.com/alexpeterson91)"], "categories": ["Blockchain"], "license": "GPL-3.0", "links": { diff --git a/docker-compose.yml b/docker-compose.yml index 4bec630..e77b328 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: EXTRA_OPTS: "" ulimits: nofile: - soft: 16384 - hard: 16384 + soft: 32768 + hard: 32768 volumes: pocket-mainnet: {} diff --git a/pocket/app.js b/pocket/app.js index b0d761f..d9f592a 100644 --- a/pocket/app.js +++ b/pocket/app.js @@ -205,6 +205,7 @@ const mainnetChains = { "0001": {"name": "Pokt", "type": "pokt"}, "0003": {"name": "Avalanche", "type": "avalanche"}, "0021": {"name": "Ethereum", "type": "ethereum"}, + "0022": {"name": "Ethereum Archival Node", "type": "ethereum"}, "0023": {"name": "Ropsten", "type": "ethereum"}, "0025": {"name": "Rinkeby", "type": "ethereum"}, "0026": {"name": "Goerli", "type": "ethereum"}, diff --git a/pocket/chains/chains_mainnet_template.json b/pocket/chains/chains_mainnet_template.json index f525375..466a524 100644 --- a/pocket/chains/chains_mainnet_template.json +++ b/pocket/chains/chains_mainnet_template.json @@ -11,6 +11,10 @@ "id": "0021", "url": "http://nethermind.public.dappnode:8545" }, + { + "id": "0022", + "url": "https://mainnet.infura.io/v3/25c276e3a38a4a2b90d9022952db26a3" + }, { "id": "0023", "url": "http://ropsten.dappnode:8545" @@ -29,7 +33,7 @@ }, { "id": "0028", - "url": "http://erigon.dappnode:8545" + "url": "https://erigon-erigon.bfe79233ad548937.dyndns.dappnode.io/" }, { "id": "0052", @@ -37,7 +41,7 @@ }, { "id": "0053", - "url": "http://optimism.optimism.public.dappnode:8545" + "url": "https://optimism-mainnet.infura.io/v3/25c276e3a38a4a2b90d9022952db26a3" }, { "id": "0066", From a1edd6e95b058d05de47eb3a4ab84eb99f5722f5 Mon Sep 17 00:00:00 2001 From: Voss Date: Mon, 13 Mar 2023 02:13:48 -0500 Subject: [PATCH 2/3] add codes snippet, needs integrating to UI --- pocket/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pocket/app.js b/pocket/app.js index d9f592a..570033d 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(message, address) { + const signature = shell.exec(`pocket accounts sign ${message} ${address} --datadir=/home/app/.pocket/`).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"}}') From f55e064a8ebde2ab2132cf123e889c5f35bae0bf Mon Sep 17 00:00:00 2001 From: Voss Date: Fri, 26 May 2023 16:42:27 -0500 Subject: [PATCH 3/3] Update setup-wizard.yml --- setup-wizard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-wizard.yml b/setup-wizard.yml index 56d9d2c..5036ce4 100644 --- a/setup-wizard.yml +++ b/setup-wizard.yml @@ -7,7 +7,7 @@ fields: service: pocket 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 file here + Import 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 file here. - id: passphrase target: type: environment