Commit Graph

216 Commits

Author SHA1 Message Date
a_bennassar
9d74a8e9bd Merge pull request #213 from hermeznetwork/feature/api-coordinators
Coordinators methods for API
2020-10-22 13:53:37 +02:00
ToniRamirezM
f314498a26 Coordinators methods for API 2020-10-22 13:29:38 +02:00
arnau
8047582de9 Merge pull request #205 from hermeznetwork/feature/api-tx-pool
Implement tx pool endpoints
2020-10-22 12:27:00 +02:00
arnaucube
34de6412cf Update Til with small fixes [...]
Update Til with small fixes:
- L2Tx TxID & Type correctness done after Idxs setted
- Added PoolL2Tx signature for Exit type

Common:
- Add common.TxID Marshalers test
2020-10-22 12:22:08 +02:00
Arnau B
006bbf3321 Implement tx pool endpoints 2020-10-21 16:34:54 +02:00
Eduard S
efed84f1e8 Merge pull request #215 from hermeznetwork/feature/til-update
Feature/til update
2020-10-21 15:52:07 +02:00
arnaucube
265bdf23e3 Rename Transakcio to Til for a easier usage
Rename Transakcio to Til for a easier usage, also change til.TestContext
to til.Context, and til.NewTestContext to til.NewContext.
2020-10-21 15:17:22 +02:00
arnaucube
cfdea57977 Fix test generated transactions L1Tx type 2020-10-21 14:59:39 +02:00
Eduard S
4ca2124cf9 Merge pull request #210 from hermeznetwork/feature/api-config-const
Add config endpoint
2020-10-21 13:30:00 +02:00
arnau
6a8b454368 Merge pull request #211 from hermeznetwork/feature/update-general
Feature/update general
2020-10-21 13:06:09 +02:00
laisolizq
3f6b9d9087 Merge pull request #212 from hermeznetwork/feature/ethclient-simplify
Simplify eth code
2020-10-21 12:39:32 +02:00
Eduard S
54562c0367 Implement CalcFeeAmount, Resolve #140 2020-10-21 12:25:15 +02:00
Eduard S
a2bda1890d Simplify eth code 2020-10-21 11:56:55 +02:00
arnau
edb466c996 Merge pull request #208 from hermeznetwork/feature/debugapi
Extend statedb and use prefixes, add debugapi
2020-10-21 11:39:42 +02:00
laisolizq
f90de219ac Add config endpoint 2020-10-20 19:12:02 +02:00
Eduard S
4d90cd9a02 Merge pull request #207 from hermeznetwork/feature/tkcio-l1queues
Add L1UserTxs queues system to Transakcio
2020-10-20 17:48:48 +02:00
arnaucube
e89f89102c Add L1 Queues system for tx generation in Trnskcio 2020-10-20 17:43:57 +02:00
Eduard S
44c70dfbcb Replace cp -r in StateDB by checkpoints, Resolve #93 2020-10-20 14:52:46 +02:00
Eduard S
88ddbbcddc Delete tmp folders from tests, Resolve #105 2020-10-20 13:13:10 +02:00
Eduard S
96ceb014bf Implement an eficient memory storage, Resolve #120 2020-10-20 13:13:05 +02:00
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)
2020-10-19 13:53:39 +02:00
a_bennassar
eb54162fb8 Merge pull request #204 from hermeznetwork/feature/api-gettokens
Add get tokens endpoint
2020-10-19 11:20:41 +02:00
laisolizq
043710112d Add get tokens endpoint 2020-10-19 10:14:18 +02:00
a_bennassar
c67b1df8cd Merge pull request #201 from hermeznetwork/api-amounts
More realistic example amounts
2020-10-16 10:57:34 +02:00
Alberto Elias
b2f0b2e314 Updates request and load amounts 2020-10-16 10:50:15 +02:00
Eduard S
b6ebbbaf95 Merge pull request #199 from hermeznetwork/feature/tkcio-tokenregister
Add transakcio Token Register instructions parser
2020-10-15 18:34:34 +02:00
arnaucube
a6006ebde7 Add transakcio Token Register instructions parser 2020-10-15 18:06:11 +02:00
Alberto Elias
ce283d4419 More realistic example amounts 2020-10-15 17:39:56 +02:00
a_bennassar
98255b99be Merge pull request #200 from hermeznetwork/feature/api-gettoken
Add get token endpoint
2020-10-15 15:14:18 +02:00
laisolizq
63a4f3c8b6 Add get token endpoint 2020-10-15 14:25:04 +02:00
Eduard S
8dbcdaf4ea Merge pull request #198 from hermeznetwork/fix/rqcompresseddata
Fix/rqcompresseddata
2020-10-15 11:59:38 +02:00
Eduard S
db22d8538e Merge pull request #197 from hermeznetwork/feature/transakcio-coordtxs
Add transakcio coordinator tx instruction feature
2020-10-15 11:52:45 +02:00
arnaucube
d7a1ba19b9 Fix PoolL2Tx.RqTxCompressedData 2020-10-14 18:30:58 +02:00
arnaucube
17ff917a20 Add transakcio coordinator tx instruction feature
Transakcio:
- Transaction generation to fail when Transfer to an account that don't exist (not created yet)
- Add CreateAccountDepositCoordinator instruction feature
- Updated lang.go instruction type parser approach for more simplicity of code
- Remove `*testing.T` from transactions generation methods, use `log.Fatal` instead
2020-10-14 17:17:28 +02:00
Eduard S
a49d3bfa67 Merge pull request #195 from hermeznetwork/feature/ethclient16-sc
Update ethclient rollup iteration 3
2020-10-14 16:33:21 +02:00
Eduard S
9684e7ae47 Update importers of eth, use variable length feeIdxCoordinator 2020-10-14 16:07:18 +02:00
laisolizq
a405ab3a20 Update ethclient rollup iteration 3 2020-10-14 13:22:34 +02:00
Eduard S
250f1aa119 Merge pull request #194 from hermeznetwork/feature/txsel-noncesorting0
Add TxSel Nonce sort. Fix surplus from refactors
2020-10-14 11:45:46 +02:00
arnaucube
1a2f769b5d Add TxSel Nonce sort. Fix surplus from refactors
- Add TxSel Nonce sort
- Fix surplus from refactors
- StateDB reuse computation of ToIdx across Synchronizer, TxSelector,
BatchBuilder
2020-10-14 11:38:40 +02:00
arnau
c145147e6e Merge pull request #179 from hermeznetwork/feature/api-exits
Impl exit edpoint and refactor pagination
2020-10-14 11:16:03 +02:00
Arnau B
fe7d38843e Impls exit endpoints and change pagination to cursor 2020-10-14 10:06:28 +02:00
Eduard S
c6d71a48af Merge pull request #192 from hermeznetwork/feature/transakcio
Feature/transakcio
2020-10-13 11:36:59 +02:00
arnaucube
431df55120 Add transakcio set type define, add set load [...]
Add transakcio set type definition, add set loading, move transakcio to
package, adapt branch to last master updates (fix compile due new common
types & git conflicts).
Update tests to pass the test, pending to adapt to new Transakcio
interface.
2020-10-09 20:00:43 +02:00
arnaucube
b40bccfc00 Add Transakcio block&batch txs generationfrom code 2020-10-09 12:49:12 +02:00
arnaucube
182e3d36f5 Add GeneratePoolL2Txs for a parsed set 2020-10-09 12:49:12 +02:00
arnaucube
06ae1897d8 Add Transakcio new parser for the new lang spec 2020-10-09 12:49:12 +02:00
Eduard S
3eec54a7e6 Merge pull request #191 from hermeznetwork/feature/fix-pr-187
Fix PR #187
2020-10-09 12:48:47 +02:00
arnaucube
bdbbde47bf Fix PR #187
(#187 PR was done before another PR (#186) was merged into master, and
when 187 was merged to master, was not compiling due changes from #186
not applied yet to #187)
2020-10-09 12:36:02 +02:00
arnau
f142e23c45 Merge pull request #187 from hermeznetwork/feature/ethclient15-sc
Update ethclient rollup iteration 2
2020-10-09 12:17:06 +02:00
arnau
3de272a75b Merge pull request #186 from hermeznetwork/feature/unnullify
Change pointers to nil in common (remove common.Struct.parameters pointers for Idx & EthAddr.  Update common parameters)
2020-10-08 21:34:33 +02:00