Here are some local notes for the Zilliqa version of otterscan
There are some modules (autogen/version.ts
in particular) which are
autogenerated. Because there is no way to stop Vite from trying to
analyse these, they must always be there.
Because there is no way to tell git to remember their existence but
ignore changes to them, they are generated by npm start
as well as
npm build
, but they are not checked into the repo.
Be warned! If you use vite
directly, you may end up with analysis
errors due to their absence.
You can now pass network=
and name=
parameters to preload a network into localStorage
.
For large sets of prewritten parameters, there is a list of connection objects in config.json
.
These are overridden if we select network from your hostname.
There are some extra config options - see public/config.json
for an example. In particular, connections
is a list of potential connections, each of which is a dictionary:
menuName
- name that will appear in the connection menu for this optionurl
- the URL to queryhostnames
- an array of hostnames. If thewindow.location
hostname has one of these as a prefix, theurl
will be force-selected and the connections menu will not appear.
.. because I keep forgetting!
export VITE_ERIGON_URL=<url>
npm run assets-start
npm start