There is public/env.json
file which contains BASE_API_URL
and DEFAULT_NETWORKS
variables.
BASE_API_URL
will be used for the address of the current stand.
DEFAULT_NETWORKS
variable has the following format:
"DEFAULT_NETWORKS": [
{
"chain": "SORA-staging Testnet",
"name": "SORA",
"address": "wss://ws.stage.sora2.soramitsu.co.jp"
}
]
"chain"
is used as the chain name.
"name"
is used as the node name.
"address"
is used for the address of the node to which the frontend project will be connected.
DEFAULT_NETWORKS[0]
must be a Soramitsu trusted node. App used it's genesisHash
to check custom user node for connection
CHAIN_GENESIS_HASH
should be defined for 'prod' & 'stage' environments, to not polling nodes for getting it (because genesis hash for these env's not changing).
yarn install
yarn serve
yarn build
yarn test:unit
yarn test:e2e
yarn test:all
yarn lint
yarn electron:serve
yarn electron:build
yarn electron:build --linux --mac zip dmg --win portable --x64 --ia32
Executable files (.exe
, .dmg
or .snap
) will be located in dist_electron
folder.