Directories ¶
Path | Synopsis |
---|---|
Package api implements the public interface of the hermez-node using a HTTP REST API.
|
Package api implements the public interface of the hermez-node using a HTTP REST API. |
coordinatornetwork
Package coordinatornetwork implements a comunication layer among coordinators in order to share information such as transactions in the pool and create account authorizations.
|
Package coordinatornetwork implements a comunication layer among coordinators in order to share information such as transactions in the pool and create account authorizations. |
stateapiupdater
Package stateapiupdater is responsible for generating and storing the object response of the GET /state endpoint exposed through the api package.
|
Package stateapiupdater is responsible for generating and storing the object response of the GET /state endpoint exposed through the api package. |
cmd
|
|
Package common float40.go provides methods to work with Hermez custom half float precision, 40 bits, codification internally called Float40 has been adopted to encode large integers.
|
Package common float40.go provides methods to work with Hermez custom half float precision, 40 bits, codification internally called Float40 has been adopted to encode large integers. |
apitypes
Package apitypes is used to map the common types used across the node with the format expected by the API.
|
Package apitypes is used to map the common types used across the node with the format expected by the API. |
Package coordinator handles all the logic related to forging batches as a coordinator in the hermez network.
|
Package coordinator handles all the logic related to forging batches as a coordinator in the hermez network. |
Package db have some common utilities shared by db/l2db and db/historydb, the most relevant ones are: - SQL connection utilities - Managing the SQL schema: this is done using migration files placed under db/migrations.
|
Package db have some common utilities shared by db/l2db and db/historydb, the most relevant ones are: - SQL connection utilities - Managing the SQL schema: this is done using migration files placed under db/migrations. |
historydb
Package historydb is responsible for storing and retrieving the historic data of the Hermez network.
|
Package historydb is responsible for storing and retrieving the historic data of the Hermez network. |
kvdb
Package kvdb provides a key-value database with Checkpoints & Resets system
|
Package kvdb provides a key-value database with Checkpoints & Resets system |
l2db
Package l2db is responsible for storing and retrieving the data received by the coordinator through the api.
|
Package l2db is responsible for storing and retrieving the data received by the coordinator through the api. |
health
|
|
Package node does the initialization of all the required objects to either run as a synchronizer or as a coordinator.
|
Package node does the initialization of all the required objects to either run as a synchronizer or as a coordinator. |
Package synchronizer synchronizes the hermez network state by querying events emitted by the three smart contracts: `Hermez.sol` (referred as Rollup here), `HermezAuctionProtocol.sol` (referred as Auction here) and `WithdrawalDelayer.sol` (referred as WDelayer here).
|
Package synchronizer synchronizes the hermez network state by querying events emitted by the three smart contracts: `Hermez.sol` (referred as Rollup here), `HermezAuctionProtocol.sol` (referred as Auction here) and `WithdrawalDelayer.sol` (referred as WDelayer here). |
txsets
Package txsets contains Til sets of transactions & Transactions generation that are used at tests of other packages of hermez-node
|
Package txsets contains Til sets of transactions & Transactions generation that are used at tests of other packages of hermez-node |
Package txprocessor is the module that takes the transactions from the input and processes them, updating the Balances and Nonces of the Accounts in the StateDB.
|
Package txprocessor is the module that takes the transactions from the input and processes them, updating the Balances and Nonces of the Accounts in the StateDB. |
Package txselector is responsible to choose the transactions from the pool that will be forged in the next batch.
|
Package txselector is responsible to choose the transactions from the pool that will be forged in the next batch. |
Click to show internal directories.
Click to hide internal directories.