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
Toni Ramírez
9db9508b44
Synchronizer main loop & reorg ( #82 )
...
* Synchronizer
* mend
Synchronizer main loop & reorg
* mend
Synchronizer main loop & reorg
* mend
Synchronizer main loop & reorg
* Update PR and apply small changes
Update PR and apply small changes:
- Remove arbitrary line jumps (for example after an `err:=` there are cases with extra line before error check, and there are cases without the extra jumpline. Another example is the empty lines between a comment and the line of comment that is explained)
- Fix some typo
- Fix value printing of `lastSavedBlock` instead of `latestBlockNum`
- Uncomment parameters of structs and use linter syntax to avoid unused checks
* Update Synchr after master-pull to last types to compile
Co-authored-by: Toni Ramírez <toni@iden3.com >
Co-authored-by: arnaucube <root@arnaucube.com >
2020-09-06 18:12:52 +02:00
krlosMata
4d02308057
update zkInputs ( #104 )
...
* update zkInputs
* ZKInputs clean uncomment use nolint
Co-authored-by: arnaucube <root@arnaucube.com >
2020-09-04 09:49:23 +02:00
Eduard S
c940e6f4f1
Merge pull request #101 from hermeznetwork/feature/log0
...
Update log package with fields & file log
2020-09-02 11:05:09 +02:00
arnaucube
fdaf2c9ce2
Update log package with fields & file log
...
Update log package with fields & file log, and update constants in the
repository code to be MixedCase.
resolves #91 , resolves #92 , resolves #95
2020-09-02 10:56:48 +02:00
Eduard S
18d0658147
Merge pull request #87 from hermeznetwork/feature/test-ethclient
...
Add mock EthClient for testing
2020-09-01 15:48:00 +02:00
arnaucube
c523b4af70
Add mock EthClient for testing
2020-09-01 11:19:07 +02:00
Eduard S
ddb5604629
Merge pull request #89 from hermeznetwork/feature/golint
...
Add lint checks: gofmt, goimports, golint
2020-08-31 13:26:33 +02:00
arnaucube
cbbcb65c8c
Add lint checks: gofmt, goimports, golint
...
- gofmt - Gofmt checks whether code was gofmt-ed. By default this tool runs
with -s option to check for code simplification
- goimports - Goimports does everything that gofmt does. Additionally it checks
unused imports
- golint - Golint differs from gofmt. Gofmt reformats Go source code, whereas
golint prints out style mistakes
- checks the uncommented exported functions & types
Update the code to fix the lint checks.
2020-08-31 12:32:05 +02:00
a_bennassar
3bd91ec736
Merge pull request #84 from hermeznetwork/feature/update-linters
...
Add linter checks to GHA & Fix code to pass lints
2020-08-28 10:10:30 +02:00
arnaucube
fd1e9c25ee
Add linter checks to GHA & Fix code to pass lints
...
Add linter checks to GHA & Fix code to pass lints.
The linters added are:
- whitespace: Tool for detection of leading and trailing whitespace
- gosec: Inspects source code for security problems
- gci: Gci control golang package import order and make it always deterministic
- misspell: Finds commonly misspelled English words in comments
- gomnd: An analyzer to detect magic numbers
The file utils/utils.go is excluded from the checks of gomnd, as uses magic numbers through the code
2020-08-28 09:58:39 +02:00
a_bennassar
fe8431edfa
Merge pull request #80 from hermeznetwork/feature/coordinator0
...
Feature/coordinator0
2020-08-27 13:08:26 +02:00
arnaucube
26dbb16618
Add Coordinator goroutines & channels processes
...
Add Coordinator goroutines & channels processes
- Add Coordinator goroutines & channels
- Add Coordinator test to debug batches
- Add MakeCheckpoint call after BatchBuilder BuildBatch process
- Update ethClient BlockByNumber to return hermez/common.Block instead of go-ethereum/core/types.Block
2020-08-27 10:56:08 +02:00
arnaucube
9309722dfc
Update StateDB to new & ExitInfo struct & BatchNum
...
Update StateDB to new & ExitInfo struct & BatchNum
Also a small fix at txselector & log packages
2020-08-26 18:28:53 +02:00
Eduardo Antuña Díez
361af765ab
Merge pull request #67 from hermeznetwork/feature/sql-sc-vars
...
Add sync interface
2020-08-26 15:36:52 +02:00
Arnau B
3e7173b1da
Impl historyDB methods for sync main loop
2020-08-26 14:31:24 +02:00
a_bennassar
9c10826d49
Merge pull request #77 from hermeznetwork/feature/txs-tests
...
Feature/txs tests
2020-08-26 11:32:12 +02:00
arnaucube
be95de18fc
Add StateDB txprocessor tests using txtest generators
...
Add StateDB tx processor tests using tx test generators:
- update statedb/ tx processors
- add statedb tx processors tests
2020-08-25 19:28:33 +02:00
arnaucube
e98b511436
Update tx testing generation:
...
Update tx testing generation:
- add new batch lexic to tx-test language
- add coordinatorL1Txs generation to tx-test
- add SetTest0 code to generate test L1&L2 transactions
2020-08-25 19:08:07 +02:00
Arnau B
c108739c24
Add usefull methods for reorg
2020-08-25 14:15:12 +02:00