Configure a browser for viewing the private deployment
The browser is the main monitoring tool for the blockchain.
Browser Backend
The configuration of the backend is defined in the relative path /conf/server.json
.
port
server portdatabase
hibernate configurationpersistenceUnitName
persistence unit name for hibernate configurationdriver
database driver classurl
url to database file or serveruser
database login userpassword
database login password
shards
list of shards on the blockchain, excluding null for governancenodes
list of URLs to nodes on the blockchainaddresses
contract addresses used by the systemblockProducerOrchestration
Block Producer Orchestration ContractzkNodeRegistry
ZkNode Registry ContractlargeOracle
irrelevant for private deploymentmpcToken
irrelevant for private deployment
blocksBehindThreshold
amount of blocks we allow to be behind reader node, before we consider the system malfunctioningdisableBlockProducerOrchestration
true if, we should avoid talking to the block producer orchestration contractdisableAccountPluginTraversal
if true, we should avoid traversing account plugin
Click here to view: Browser backend - Example configuration
{
"port": 8000,
"database": {
"persistenceUnitName": "model",
"driver": "org.postgresql.Driver",
"url": "jdbc:postgresql://postgres.domain.com:5432/browser",
"user": "postgres",
"password": "postgres"
},
"shards": [
"ShardName1",
"ShardName2"
],
"nodes": [
"https://node1.domain.com",
"https://node2.domain.com",
"https://node3.domain.com"
],
"addresses": {
"blockProducerOrchestration": "02860476afca938873ff2549b6549e235a459bcede",
"zkNodeRegistry": "02038873ff2549b6549e2038873ff2549b6549e243",
"largeOracle": "000000000000000000000000000000000000000000",
"mpcToken": "000000000000000000000000000000000000000000"
},
"blocksBehindThreshold": 20,
"disableBlockProducerOrchestration": true,
"disableAccountPluginTraversal": true,
}
Browser Frontend
The configuration of the frontend is defined in the relative path /conf/config.js
.
Along with this file, 3 image files are needed. /conf/fav.svg
, /conf/fav_large.svg
and /conf/logo.svg
.
serverUrl
url of the browser backendblockchainUrl
url of a reader node for the blockchainblockchainShards
list of shards on the blockchain, excluding null for governanceblockTimeWarningThreshold
amount of blocks we allow to be behind reader node, before we consider the system malfunctioningfeatures
set of enabled featuresaddresses
contract addresses used by the systemblockProducerOrchestration
Block Producer Orchestration ContractzkNodeRegistry
ZkNode Registry ContractdeployPublic
Deploy contract for normal contractsdeployReal
Deploy contract for ZK contracts
addressNames
pre-named addresses in the systempalette
color palette for the browser
Click here to view: Browser Frontend - Example configuration
// noinspection ES6ConvertVarToLetConst
// eslint-disable-next-line
var CONFIG = {
serverUrl: "https://backend.domain.com",
blockchainUrl: "https://reader.domain.com",
blockchainShards: ["ShardName1", "ShardName2"],
blockTimeWarningThreshold: 20,
features: [
"loginPrivateKey",
"transactionPage",
"blockPage",
"accountPage",
"contractPage",
"contractPageDeployment",
"contractPageInteraction",
],
addresses: {
blockProducerOrchestration: "01860476afca938873ff2549b6549e235a459bcede",
zkNodeRegistry: "01a2020bb33e873ff2549b6549e23b7fd492aa0d65",
deployPublic: "0197a340e23873ff2549b6549e23444e46308f9a4d",
deployReal: "018bc1ccb5995a5978d5798c579d579a95785798e5d5",
},
addressNames: {
"02860476afca938873ff2549b6549e235a459bcede": "Block producer orchestration",
},
palette: {
primary: {
main: "#0C194A",
contrastText: "#FFFFFF",
},
secondary: {
main: "#315DF8",
contrastText: "#FFFFFF",
},
tertiary: {
main: "#9E8FE3",
contrastText: "#121212",
},
info: {
main: "#315DF8",
contrastText: "#FFFFFF",
},
error: {
main: "#F75D31",
contrastText: "#121212",
},
warning: {
main: "#F57C00",
contrastText: "#121212",
},
success: {
main: "#43A047",
contrastText: "#121212",
},
text: {
primary: "#121212",
},
background: {
default: "#FFFFFF",
},
},
};