Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FlagYes is the flag for yes. FlagYes = "yes" // FlagCfg is the flag for cfg. FlagCfg = "cfg" // FlagNetwork is the flag for the network name. Valid values: ["testnet", "mainnet", "custom"]. FlagNetwork = "network" // FlagCustomNetwork is the flag for the custom network file. This is required if --network=custom FlagCustomNetwork = "custom-network-file" // FlagAmount is the flag for amount. FlagAmount = "amount" // FlagRemoteMT is the flag for remote-merkletree. FlagRemoteMT = "remote-merkletree" // FlagComponents is the flag for components. FlagComponents = "components" // FlagHTTPAPI is the flag for http.api. FlagHTTPAPI = "http.api" // FlagKeyStorePath is the path of the key store file containing the private key of the account going to sing and approve the tokens FlagKeyStorePath = "key-store-path" // FlagPassword is the password needed to decrypt the key store FlagPassword = "password" // FlagMigrations is the flag for migrations. FlagMigrations = "migrations" // FlagMaxAmount is the flag to avoid to use the flag FlagAmount FlagMaxAmount = "max-amount" )
View Source
const DefaultValues = `` /* 3776-byte string literal not displayed */
DefaultValues is the default configuration
View Source
const MainnetNetworkConfigJSON = `` /* 93117-byte string literal not displayed */
MainnetNetworkConfigJSON is the hardcoded network configuration to be used for the official mainnet setup
View Source
const TestnetNetworkConfigJSON = `` /* 92710-byte string literal not displayed */
TestnetNetworkConfigJSON is the hardcoded network configuration to be used for the official mainnet setup
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IsTrustedSequencer bool `mapstructure:"IsTrustedSequencer"` ForkUpgradeBatchNumber uint64 `mapstructure:"ForkUpgradeBatchNumber"` ForkUpgradeNewForkId uint64 `mapstructure:"ForkUpgradeNewForkId"` Log log.Config Etherman etherman.Config EthTxManager ethtxmanager.Config Pool pool.Config RPC jsonrpc.Config Synchronizer synchronizer.Config Sequencer sequencer.Config SequenceSender sequencesender.Config Aggregator aggregator.Config NetworkConfig NetworkConfig L2GasPriceSuggester gasprice.Config Executor executor.Config MTClient merkletree.Config StateDB db.Config Metrics metrics.Config EventLog event.Config HashDB db.Config }
Config represents the configuration of the entire Hermez Node
Source Files ¶
Click to show internal directories.
Click to hide internal directories.