Eduard S
0277210c39
Extend ethclient test, implement new TxID spec
- Implement new TxID spec that distinguishes L1UserTx and L1CoordinatorTx
- Replace some type []*Foo by []Foo
- Fix HistoryDB & L2DB bug: in case of error, a rollback was applied and the returned error was nil
- Reorder inserts in historydb.NewHistoryDB() to follow foreign key dependencies
- Add initial synchronizer test with test.Client (for now, only tested l1UserTxs, blocks, addToken)
- Update L1UserTx event in test.Client
4 years ago
a_bennassar
3d7b71e1fd
Merge pull request #182 from hermeznetwork/feature/ethclient14-sc
Update ethclient contracts & rollup iteration 1
4 years ago
Eduard S
1a85f15d27
Fix conflicts and update dependencies of ethclient
4 years ago
laisolizq
cedbc07b7f
Merge pull request #181 from hermeznetwork/feature/erc20
Add methods to get ERC20 constants
4 years ago
laisolizq
202b98b3e6
Update ethclient contracts & rollup iteration 1
4 years ago
Eduard S
650911cda3
Add methods to get ERC20 constants
4 years ago
arnau
15a122a6a0
Merge pull request #178 from hermeznetwork/feature/codec-funcs
Add L1CoordTx & L2Tx byte parsers functions
4 years ago
a_bennassar
49366e3fa4
Feature/null refactor ( #173 )
* WIP: rebase
* Make nullable fields use pointers
4 years ago
laisolizq
aef6da38af
Add codec functions
4 years ago
Eduard S
7df9288977
Merge pull request #175 from hermeznetwork/feature/priceupdater-to-db
Connect price updater to historydb
4 years ago
Eduard S
9e4f020c2b
Merge pull request #171 from hermeznetwork/feature/processtx-l2tx-nonces
Add StateDB compute nonces on ProcessTx L2Tx
4 years ago
arnaucube
3374a4754d
Add StateDB compute nonces on ProcessTx L2Tx
Add StateDB compute nonces on ProcessTx L2Tx, and update StateDB for
type TypeSynchronizer, TypeTxSelector, TypeBatchBuilder
4 years ago
Arnau B
f653ff8a73
Connect price updater to historydb
4 years ago
a_bennassar
e539ebc679
Merge pull request #174 from hermeznetwork/big-bigint
Have BigInt be a proper big value that has 18 decimals
4 years ago
Alberto Elias
cf14f495c3
Have BigInt be a proper big value that has 18 decimals
4 years ago
arnau
0362afc194
Merge pull request #145 from hermeznetwork/feature/integration
Update test ethclient and coordinator
4 years ago
Eduard S
0fc4930652
Update test ethclient and coordinator
4 years ago
Eduard S
d71871c8b7
Merge pull request #165 from hermeznetwork/feature/txprocessor-l2tx
Update TxProcessor L2Tx logic for case ToIdx==0
4 years ago
arnaucube
11c45cfc2f
Update TxProcessor L2Tx logic for case ToIdx==0
4 years ago
a_bennassar
938ef84b9b
Merge pull request #163 from hermeznetwork/feature/txid0
Add TxID calculation & New{Layer}Tx Type
4 years ago
arnaucube
9bb4a4ec1b
Add TxID calculation & New{Layer}Tx Type
Add TxID calculation & New{Layer}Tx Type
New{Layer}Tx methods that compute the `TxID` & `TxType` values from the
transaction values:
- NewL1Tx
- NewL2Tx
- NewPoolL2Tx
Add TxID Scanner & Valuer for database/sql
HistoryDB & L2DB & API packages tests will need to be addapted to the
TestTransaction generation once is done.
4 years ago
Eduard S
f797e7abcb
Merge pull request #158 from hermeznetwork/feature/ethclient8-sc
Update ethclient contracts & add wdelayer events
4 years ago
Eduard S
ca3ae28f46
Add missing error handling
4 years ago
a_bennassar
c6f70f3177
Feature/merge history l2 tables ( #156 )
* WIP rebase
* Combine both SQL DBs
* API and DB refactor
4 years ago
laisolizq
8451b92295
Update ethclient contracts & add wdelayer events
4 years ago
laisolizq
8efbb7ab18
Merge pull request #157 from hermeznetwork/feature/ethclient6-sc-update
Update ethclient wdelayer & add auction events
4 years ago
laisolizq
7a3407a561
Update ethclient wdelayer & add auction events
4 years ago
a_bennassar
0c9a6e3f2d
Merge pull request #150 from hermeznetwork/feature/historydb-sync2
Helper methods for Synchronizer and TX refactor
4 years ago
ToniRamirezM
ac677694fe
Helper methods for Synchronizer and TX refactor
4 years ago
Eduard S
81693a6885
Merge pull request #149 from hermeznetwork/feature/idx-6bytes
Idx to 6 bytes (48 bits)
4 years ago
arnaucube
06703aecad
Idx to 6 bytes (48 bits)
4 years ago
a_bennassar
c0336f485f
Merge pull request #148 from hermeznetwork/feature/txsel-l2logic
Add TxSelector L2Tx filtering logic
4 years ago
Eduard S
b86d21902b
Merge pull request #142 from hermeznetwork/feature/api-boilerplate
Add GET histroy-transactions endpoint
4 years ago
arnaucube
5d6f8cd3ec
Add TxSelector L2Tx filtering logic
4 years ago
Arnau B
85fe885265
Add GET histroy-transactions endpoint
4 years ago
Eduard S
297a8e38d8
Merge pull request #146 from hermeznetwork/feature/statedb-idx-db
Add StateDB set & get Idx by EthAddr & BJJ methods
4 years ago
arnaucube
934b6120ae
Add StateDB set & get Idx by EthAddr & BJJ methods
4 years ago
Eduard S
05b273cc00
Merge pull request #128 from hermeznetwork/feature/l1txbytes
Update common.L1Tx parsers, add test checks
4 years ago
Eduard S
dd85322e13
Merge pull request #143 from hermeznetwork/feature/ethclient5-sc
Update ethclient auction & add wdelayer
4 years ago
Eduard S
1386f4b5e1
Pass tokenAddress to AuctionClient constructor
4 years ago
arnaucube
3013fbacb6
Change endianness to BigEndian :(
Change endianness to BigEndian (ಥ﹏ಥ), spec has been updated to achieve
compatibility with js & smart contracts & circuits implementations.
4 years ago
Eduard S
35a558f6c9
Merge pull request #135 from hermeznetwork/feature/synchronizer-sc
Smart Contracts Data Synchronization
4 years ago
Eduard S
9f83fcf520
Review synchronizer, rearange some stuff, add notes and TODOs.
4 years ago
laisolizq
729f37c912
Update ethclient auction & add wdelayer
4 years ago
arnaucube
92fa8aa439
Update common.L1Tx parsers, add test checks
4 years ago
arnau
1de2ec9937
Merge pull request #138 from hermeznetwork/feature/impl-l2db
Implement L2DB
4 years ago
Eduard S
d3f6da22ed
Fix sync integration with StateDB & HistoryDB
4 years ago
Arnau B
94e1f11a98
Implement L2DB
4 years ago
ToniRamirezM
145f37b135
Smart Contracts Data Synchronization
4 years ago
Eduard S
5ad447c47c
Merge pull request #136 from hermeznetwork/feature/ethclient4-sc
Update ethclient
4 years ago