Commit Graph

652 Commits

Author SHA1 Message Date
laisolizq
aef6da38af Add codec functions 2020-10-05 17:00:10 +02:00
Eduard S
7df9288977 Merge pull request #175 from hermeznetwork/feature/priceupdater-to-db
Connect price updater to historydb
2020-10-05 16:58:49 +02:00
Eduard S
9e4f020c2b Merge pull request #171 from hermeznetwork/feature/processtx-l2tx-nonces
Add StateDB compute nonces on ProcessTx L2Tx
2020-10-02 11:59:31 +02:00
arnaucube
3374a4754d Add StateDB compute nonces on ProcessTx L2Tx
Add StateDB compute nonces on ProcessTx L2Tx, and update StateDB for
type TypeSynchronizer, TypeTxSelector, TypeBatchBuilder
2020-10-02 11:54:58 +02:00
Arnau B
f653ff8a73 Connect price updater to historydb 2020-10-02 10:13:48 +02:00
a_bennassar
e539ebc679 Merge pull request #174 from hermeznetwork/big-bigint
Have BigInt be a proper big value that has 18 decimals
2020-10-01 18:33:08 +01:00
Alberto Elias
cf14f495c3 Have BigInt be a proper big value that has 18 decimals 2020-10-01 19:29:13 +02:00
arnau
0362afc194 Merge pull request #145 from hermeznetwork/feature/integration
Update test ethclient and coordinator
2020-10-01 18:10:57 +02:00
Eduard S
0fc4930652 Update test ethclient and coordinator 2020-10-01 11:34:59 +02:00
Eduard S
d71871c8b7 Merge pull request #165 from hermeznetwork/feature/txprocessor-l2tx
Update TxProcessor L2Tx logic for case ToIdx==0
2020-10-01 11:10:36 +02:00
arnaucube
11c45cfc2f Update TxProcessor L2Tx logic for case ToIdx==0 2020-10-01 10:47:44 +02:00
a_bennassar
938ef84b9b Merge pull request #163 from hermeznetwork/feature/txid0
Add TxID calculation & New{Layer}Tx Type
2020-09-30 17:22:03 +01:00
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.
2020-09-30 15:37:13 +02:00
Eduard S
f797e7abcb Merge pull request #158 from hermeznetwork/feature/ethclient8-sc
Update ethclient contracts & add wdelayer events
2020-09-30 12:03:02 +02:00
Eduard S
ca3ae28f46 Add missing error handling 2020-09-30 11:58:31 +02:00
a_bennassar
c6f70f3177 Feature/merge history l2 tables (#156)
* WIP rebase

* Combine both SQL DBs

* API and DB refactor
2020-09-29 18:27:07 +02:00
laisolizq
8451b92295 Update ethclient contracts & add wdelayer events 2020-09-29 16:50:19 +02:00
laisolizq
8efbb7ab18 Merge pull request #157 from hermeznetwork/feature/ethclient6-sc-update
Update ethclient wdelayer & add auction events
2020-09-28 17:32:41 +02:00
laisolizq
7a3407a561 Update ethclient wdelayer & add auction events 2020-09-28 17:01:03 +02:00
a_bennassar
0c9a6e3f2d Merge pull request #150 from hermeznetwork/feature/historydb-sync2
Helper methods for Synchronizer and TX refactor
2020-09-23 18:22:07 +02:00
ToniRamirezM
ac677694fe Helper methods for Synchronizer and TX refactor 2020-09-23 17:05:38 +02:00
Eduard S
81693a6885 Merge pull request #149 from hermeznetwork/feature/idx-6bytes
Idx to 6 bytes (48 bits)
2020-09-22 18:29:12 +02:00
arnaucube
06703aecad Idx to 6 bytes (48 bits) 2020-09-22 18:01:14 +02:00
a_bennassar
c0336f485f Merge pull request #148 from hermeznetwork/feature/txsel-l2logic
Add TxSelector L2Tx filtering logic
2020-09-22 15:40:40 +02:00
Eduard S
b86d21902b Merge pull request #142 from hermeznetwork/feature/api-boilerplate
Add GET histroy-transactions endpoint
2020-09-22 15:39:13 +02:00
arnaucube
5d6f8cd3ec Add TxSelector L2Tx filtering logic 2020-09-22 13:31:48 +02:00
Arnau B
85fe885265 Add GET histroy-transactions endpoint 2020-09-22 13:21:28 +02:00
Eduard S
297a8e38d8 Merge pull request #146 from hermeznetwork/feature/statedb-idx-db
Add StateDB set & get Idx by EthAddr & BJJ methods
2020-09-22 11:10:55 +02:00
arnaucube
934b6120ae Add StateDB set & get Idx by EthAddr & BJJ methods 2020-09-21 22:02:20 +02:00
Eduard S
05b273cc00 Merge pull request #128 from hermeznetwork/feature/l1txbytes
Update common.L1Tx parsers, add test checks
2020-09-21 15:40:49 +02:00
Eduard S
dd85322e13 Merge pull request #143 from hermeznetwork/feature/ethclient5-sc
Update ethclient auction & add wdelayer
2020-09-21 15:37:32 +02:00
Eduard S
1386f4b5e1 Pass tokenAddress to AuctionClient constructor 2020-09-21 15:34:36 +02:00
arnaucube
3013fbacb6 Change endianness to BigEndian :(
Change endianness to BigEndian (ಥ﹏ಥ), spec has been updated to achieve
compatibility with js & smart contracts & circuits implementations.
2020-09-21 15:10:01 +02:00
Eduard S
35a558f6c9 Merge pull request #135 from hermeznetwork/feature/synchronizer-sc
Smart Contracts Data Synchronization
2020-09-21 14:40:10 +02:00
Eduard S
9f83fcf520 Review synchronizer, rearange some stuff, add notes and TODOs. 2020-09-21 14:33:07 +02:00
laisolizq
729f37c912 Update ethclient auction & add wdelayer 2020-09-21 11:42:09 +02:00
arnaucube
92fa8aa439 Update common.L1Tx parsers, add test checks 2020-09-18 20:52:43 +02:00
arnau
1de2ec9937 Merge pull request #138 from hermeznetwork/feature/impl-l2db
Implement L2DB
2020-09-18 14:08:30 +02:00
Eduard S
d3f6da22ed Fix sync integration with StateDB & HistoryDB 2020-09-18 12:10:39 +02:00
Arnau B
94e1f11a98 Implement L2DB 2020-09-18 10:17:51 +02:00
ToniRamirezM
145f37b135 Smart Contracts Data Synchronization 2020-09-17 15:19:54 +02:00
Eduard S
5ad447c47c Merge pull request #136 from hermeznetwork/feature/ethclient4-sc
Update ethclient
2020-09-17 12:22:24 +02:00
Eduard S
63be61f527 Update test.Client, replace some big.Int by int/int64 in eth, fix lints 2020-09-17 12:17:04 +02:00
a_bennassar
8a21cd1b5c Add HistoryDB SQL triggers (#125) 2020-09-17 11:57:42 +02:00
laisolizq
de51a394b7 update contracts 2020-09-17 10:34:50 +02:00
a_bennassar
05d183d07b Merge pull request #127 from hermeznetwork/feature/txsel-txsselection-v0
TxSelector GetL2TxSelection & GetL1L2TxSelection integrated with dbs
2020-09-16 13:54:53 +02:00
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)
2020-09-16 12:40:56 +02:00
laisolizq
860011827c update ethclient auction 2020-09-16 12:22:32 +02:00
arnau
a40689f05e Merge pull request #129 from hermeznetwork/feature/integration
Feature/integration
2020-09-16 10:07:59 +02:00
Eduard S
c6c50f8f6a Integrate test.Client in coordinator_test 2020-09-15 12:51:03 +02:00