Commit Graph

732 Commits

Author SHA1 Message Date
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
Eduard S
852cd762d3 Add reverts, forge in test ethClient, update auction 2020-09-15 12:47:27 +02:00
arnau
b0cfcb0d50 Merge pull request #111 from hermeznetwork/feature/L1TxCodec
L1Tx Codec
2020-09-15 11:57:07 +02:00
arnau
2937bde4fa Merge pull request #124 from hermeznetwork/feature/ethclient3-sc
Add contracts & ethclient auction
2020-09-14 13:30:11 +02:00
Eduard S
d416203f10 Merge pull request #114 from hermeznetwork/feature/compute-zkinputs
Feature/compute zkinputs
2020-09-10 18:02:19 +02:00
arnaucube
69fe471f11 Add StateTree leafs & ExtTree data ZKI calculation 2020-09-10 17:58:08 +02:00
arnau
7f2a5cd9dd Merge pull request #117 from hermeznetwork/feature/ethclient5
Implement basic auction funcs in test.Client
2020-09-10 13:35:45 +02:00
ToniRamirezM
a8f6488eb1 L1Tx Codec 2020-09-10 13:32:22 +02:00
Eduard S
56fe0fb05f Implement basic auction funcs in test.Client 2020-09-10 12:56:34 +02:00
arnau
ec67075061 Merge pull request #110 from hermeznetwork/feature/node
Implement first iteration of node
2020-09-10 12:12:14 +02:00
Eduard S
475614cc3a Implement first iteration of node
The coordinator implementation has been refactored to allow all the goroutines
to be handled from the node.
2020-09-10 11:36:58 +02:00
arnaucube
aa0bde61d2 Add StateDB ZKInputs generation for L1 & L2 Txs 2020-09-09 14:40:55 +02:00
arnaucube
a7fe80f150 Refactor ZKInputs & add struct initialization
Refactor ZKInputs & add struct initialization & add BJJCompressedTo256BigInts util
2020-09-09 14:16:09 +02:00
laisolizq
d3ee6e443c Add contracts & ethclient auction 2020-09-09 13:35:09 +02:00
a_bennassar
230adfeb73 Merge pull request #109 from hermeznetwork/feature/ethclient3
Implement initial version of test.Client
2020-09-08 17:12:52 +02:00
Eduard S
bcd93fee36 Implement initial version of test.Client 2020-09-08 10:32:10 +02:00
Eduard S
56604ecc69 Use int64 for blockNum (like it's sroted in DB) 2020-09-07 18:09:27 +02:00
arnau
57fd9bdaed Merge pull request #106 from hermeznetwork/feature/ethclient1
Add ethclient full skeleton
2020-09-07 17:42:30 +02:00
Eduard S
003c353f05 Add ethclient full skeleton 2020-09-07 17:29:55 +02:00
Eduard S
7701af194f Merge pull request #107 from hermeznetwork/feature/statedb-intermediatestate
StateDB intermediate state reset when opening DB
2020-09-07 13:46:20 +02:00
arnaucube
b1454d441c StateDB intermediate state reset when opening DB
StateDB intermediate state reset when opening DB to force getting always last
Checkpoint at last BatchNum, avoiding inconsistent intermediate state.
2020-09-07 12:19:15 +02:00