Adding a new Node
This is how you can add a new node into the source code of NiceNode so that users can add a new node.
Copy a node package and service, respectively, like
ethereum
andgeth
under NodeSpecs and modify themIn
src/main/nodeLibraryManager.ts
import and add the node package and all services likeethererum
geth
and other clientsAdd the node package to
nodeOptions
list insrc/renderer/Presentational/AddNode/AddNode.tsx
. Theinfo
field is a short tagline (maximum character length of 150 or tbd)(optional) Add icons for the node package and service to
src/renderer/assets/images/nodeIcons/index.tsx
square, png, and around 512x512 ideally(optional) add the
rpcTranslation
type to the listNiceNodeRpcTranslation
insrc/common/rpcTranslation.ts
(optional) to show users server values add
rpcTranslation
conditions tosrc/renderer/Presentational/NodeScreen/NodeScreen.tsx
andsrc/renderer/state/rpcExecuteTranslation.ts
and modify the header metrics stats for the node package and service.(optional) set the node color for styles at
src/renderer/assets/images/nodeIcons/index.tsx
and background (cilent/service background on node package screen) atsrc/renderer/assets/images/nodeBackgrounds/index.tsx