rotki / rotki

A portfolio tracking, analytics, accounting and management application that protects your privacy
https://rotki.com
GNU Affero General Public License v3.0
2.88k stars 530 forks source link

Automatically configure nodes on Dappnode #4596

Open kelsos opened 2 years ago

kelsos commented 2 years ago

Abstract

Automatically setup the app when using dappnode

Nabsku commented 2 years ago

After talking with @kelsos, I believe if we could provide rotki a config file (json/yaml) it would significantly improve the packaging on Dappnode.

I could create a file on dappnodes end, something like this:

  "nodes": {
    "fullnode": {
      "name": "fullnode.dappnode", 
      "weight": 100,
      "port": 8545,
      "chain": "Ethereum"
    },
    "kusamanode": {
      "name": "kusama.dappnode", 
      "weight": 100,
      "port": 9999,
      "chain": "Kusama"
    },
    "polkadot": {
      "name": "polkadot.dappnode", 
      "weight": 100,
      "port": 9423,
      "chain": "Polkadot"
    }  
  }
}

We could then place this file in /config/nodes.json and rotki could read the file via the flag --nodes /config/nodes.json. Rotkis backend could then populate Ethereum RPC Nodes and both Local Nodes fields.

I am, of course, open for changes and additions to this format!

kelsos commented 2 years ago

@yabirgb @LefterisJP for this we need changes so that the backend can support this format and get the config done automatically