arnaucube
c162563376
Add zki.ISAccFeeOut generation for circuits compat
- add IntermediateStates AccFeeOut correct generation for circuits
compatibility at ZKInputs
- Fix formatAccumulatedFees
- organize ZKInputs tests to check compatibility with Circom circuits
- Add TestZKInputs2
- which checks ZKInputs for 4 L1 txs + 2 L2Txs with fees
- tested with Hermez Circom circuits
4 years ago
Eduard S
ced42634da
Wrap all errors with tracerr
4 years ago
arnaucube
d3a38a3ee1
Add methods for ZKInputs IntermStates generation
- Add L1Tx TxCompressedData method
- Add PoolL2Tx TxCompressedDataV2 method
- Update ProcessTxs logic
- Add ZKInputs Intermediate States & Fee parameters calculation
4 years ago
arnaucube
a9f112c4ce
Cmptbility test for Root StateDB Accounts tree
Checked with commonjs version:
c8414bd205
4 years ago
arnaucube
f65a6047b4
Add Til set w minimum flow, small fixes at StateDB
4 years ago
arnaucube
aaa71a6b11
StateDB store Idxs with TokenID at the db-key
4 years ago
arnaucube
8f24aa93c9
Add ProcessTxs send fees to Coordinator accounts
4 years ago
Eduard S
6afbda5302
Extend statedb and use prefixes, add debugapi
In statedb:
- Store all values using prefixes for keys to allow iteration
- Add methods MTGetRoot, GetAccounts
Implement debugapi, an http server with debugging endpoints:
- debugAPI.GET("sdb/batchnum", a.handleCurrentBatch)
- debugAPI.GET("sdb/mtroot", a.handleMTRoot)
- debugAPI.GET("sdb/accounts", a.handleAccounts)
- debugAPI.GET("sdb/accounts/:Idx", a.handleAccount)
4 years ago
Arnau B
5097939b12
Avoid using pointers in common
4 years ago
a_bennassar
49366e3fa4
Feature/null refactor ( #173 )
* WIP: rebase
* Make nullable fields use pointers
4 years ago
arnaucube
11c45cfc2f
Update TxProcessor L2Tx logic for case ToIdx==0
4 years ago
arnaucube
06703aecad
Idx to 6 bytes (48 bits)
4 years ago
arnaucube
934b6120ae
Add StateDB set & get Idx by EthAddr & BJJ methods
4 years ago
arnaucube
41715e47ba
TxSel integrated with L2DB, Add L1CoordTx creation
- GetL2TxSelection & GetL1L2TxSelection integrated with dbs
- Create L1CoordinatorTx of type CreateAccountDeposit when a L2
requires it (and the AccountCreationAuth exists)
4 years ago
arnaucube
69fe471f11
Add StateTree leafs & ExtTree data ZKI calculation
4 years ago
arnaucube
aa0bde61d2
Add StateDB ZKInputs generation for L1 & L2 Txs
4 years ago