Calulate total collected batch fee and fix merkleproof api format

This commit is contained in:
Arnau B
2020-10-21 16:40:31 +02:00
parent eb54162fb8
commit f77ea04c2e
6 changed files with 125 additions and 49 deletions

View File

@@ -21,6 +21,7 @@ type Batch struct {
ExitRoot Hash `meddler:"exit_root"`
ForgeL1TxsNum *int64 `meddler:"forge_l1_txs_num"` // optional, Only when the batch forges L1 txs. Identifier that corresponds to the group of L1 txs forged in the current batch.
SlotNum SlotNum `meddler:"slot_num"` // Slot in which the batch is forged
TotalFeesUSD *float64 `meddler:"total_fees_usd"`
}
// BatchNum identifies a batch