Commit Graph

308 Commits

Author SHA1 Message Date
Chance Hudson
57ceb6a8f1 refactor: manually filter booleans when possible 2022-01-12 22:04:57 +09:00
Chance Hudson
af6b50ac41 fix: remove boolean indexes, add warning 2022-01-12 22:04:57 +09:00
Chance Hudson
e2bed083f9 refactor: massDeposit and isUncle query optimization 2022-01-12 22:04:57 +09:00
Chance Hudson
ce525616b3 fix: use findOne instead of count 2022-01-12 22:04:57 +09:00
Chance Hudson
26d838307b refactor: synchronizer performance 2022-01-12 22:04:57 +09:00
Chance Hudson
32c5ab6a1e fix: OR query perf hack 2022-01-12 22:04:57 +09:00
wanseob
03a6348f80 chore(release):2.0.0-beta.8 2021-12-14 09:48:01 +00:00
Chance Hudson
b07eb0305a fix: verify deposit commit merge value 2021-12-14 18:39:04 +09:00
Chance Hudson
a249fe53e2 fix: verify deposit merged hash before block generation 2021-12-14 18:39:04 +09:00
Chance Hudson
092787a6eb fix: silence off chain validation errors if onchain slash is true 2021-12-14 18:39:04 +09:00
Chance Hudson
f0c1e738fc fix: wait for genesis block confirmation 2021-12-14 18:38:40 +09:00
Chance Hudson
16d16f0b40 fix: listen for genesis block if it does not already exist 2021-12-14 18:38:40 +09:00
Chance Hudson
b22b531c53 fix: only try loading genesis once 2021-12-14 18:38:40 +09:00
Chance Hudson
b838e68a5e fix: sync start point 2021-12-14 18:38:40 +09:00
Chance Hudson
78bbee7a41 feat: load events by scanning, then use subscription 2021-12-14 18:38:40 +09:00
Chance Hudson
dc50fbcf96 fix: check for an existing slash 2021-12-11 18:15:47 +09:00
Chance Hudson
e621290269 fix: store genesis block data using db transaction 2021-12-08 19:20:25 +09:00
Chance Hudson
484e572b57 chore: lint 2021-12-08 19:20:25 +09:00
Chance Hudson
ccaa28dbaf refactor: export individual offchain validators 2021-12-08 19:20:25 +09:00
wanseob
7566353095 chore(release):2.0.0-beta.7 2021-12-02 07:56:22 +00:00
Chance Hudson
9f46d66b1e fix: revert block validity check
feat: check for nullifier uniqueness in block
2021-12-02 16:47:51 +09:00
Chance Hudson
d4c3f499a4 feat: validate block before proposing 2021-12-02 16:47:51 +09:00
Chance Hudson
eb58ca1521 chore: lint 2021-12-02 16:47:51 +09:00
Chance Hudson
4bee7db64f fix: don't try to save duplicate transactions 2021-12-02 16:47:51 +09:00
Chance Hudson
fc3f7a82fd fix: log slash errors 2021-12-02 16:47:51 +09:00
Chance Hudson
177b3adac0 chore: typo syncronizer->synchronizer 2021-11-30 22:04:00 +09:00
wanseob
e32c72323f chore(release):2.0.0-beta.6 2021-11-26 09:04:41 +00:00
wanseob
839069d2de chore(release):2.0.0-beta.5 2021-11-23 14:18:13 +00:00
Chance Hudson
b06cc29500 fix: correct tx fee on withdrawal object 2021-11-16 12:27:04 +09:00
Chance Hudson
c76ce890c1 chore: lint 2021-11-16 12:27:04 +09:00
Chance Hudson
a1893fd699 fix: process withdrawals that don't have prepay info 2021-11-16 12:27:04 +09:00
Chance Hudson
d27ae22f15 feat: self transactions 2021-11-16 12:27:04 +09:00
Chance Hudson
4e6f0f7c8a feat: pending deposit support 2021-11-16 12:27:04 +09:00
Wanseob Lim
1ee3fda1a1 v2.0.0-beta.2 2021-11-02 12:40:00 +09:00
Wanseob Lim
090d17e5ab v2.0.0-beta.1 2021-11-02 12:12:10 +09:00
Wanseob Lim
fdf19f93e5 v2.0.0-beta.0 2021-11-02 10:31:49 +09:00
Wanseob Lim
56cdebe84d chore: remove unnecessary logging 2021-11-02 10:29:59 +09:00
Wanseob Lim
9f544c7b15 fix: use trusted setup zkeys for testings 2021-11-02 10:29:59 +09:00
Wanseob Lim
c0a2d45453 fix: lint error 2021-10-26 13:05:32 +09:00
Wanseob Lim
782175b1bb feat: implement utxo tree root challenge logic 2021-10-26 13:05:32 +09:00
Wanseob Lim
28a5e0db20 chore: update log & test title 2021-10-11 06:15:59 +09:00
Chance Hudson
7a883ee4c0 fix: store sending address for deposit 2021-09-14 21:58:44 -05:00
Chance Hudson
92cf46b33e fix: transaction amount calculations 2021-09-14 21:58:38 -05:00
Chance Hudson
c235ad772f fix: erc20 token info loading 2021-09-14 21:57:59 -05:00
Chance Hudson
5d13265a39 fix: store tokenAddr as hex 2021-09-14 21:57:59 -05:00
JinHwan
9fceed49db Zk Tx Generator (#225)
* feat: create auto started coordinator and wallet for tx generator

* chore: removed comments and make up code

* feat: create docker-compose for local testnet with generator

* refactor: create generator class for eth transfer on layer2

* fix: removed fault instance inside 'TransferGenerater'

* feat: create organizer for collection data for debug

* feat: create TestBlockProposer class for log propose layer 2 block

* feat: can create note with specified salt for testing

* refactor: huge refactor - organizer & generator

Features

- Organizer
  - main queue for controlling throughput of transactions to the coordinators
  - can adjust target TPS by request organizer API
  - can get stats about coordinator and wallets
- Generator
  - sending zktx from sub-queue
  - One wallet has its own full-node and use only one account
  - 1 deposit tx then keep sending transactions ( 1 inflow - 2 ouflow ) on layer 2

* fix: lints in generator

* fix: added missing expose port, changd wallet controller type

* fix: key path for testing on azure and other

* fix: remove timeout in fetch

* fix: update genesis and docker-compose image name

* fix: queue status be complete when job done in worker

* fix: make it clear on fixed subTrees for initializing

* fix: updated for reproduce issue #255

* fix: lint function signatures dictionary in 'funcSigs.json'

* fix: test for checking successfully rebased

* fix: web3 lib version for generator, create docker-compose file

* refactor: create types for organizer API

* feat: replaced overwritten middleware with newly created postProcessor in ProposerBase

* fix: added limit for some  methods, getting data on organizer API

* feat: add development mode for organizer

* refactor: layer1 watcher has target contractss for filter

* feat: added transaction data end-points to organizer

* feat: monitor auction activity

* fix: move docker-compose file under compose

* fix: issue #275 - checking nft in outflow

* fix: targetContracts of layer1 watcher in organizer, README updated

* chore: update lock file (#4)

* fix: added dev dependencies and other for integration test

* fix: copy type defs to dist

* fix: removed un-used docker files and others for stress-test repo

* fix: removed files for geth node, these moved to stress-test repo

* fix: replace copy command to add src path more specific

* fix: replaced copy command in adding src path in source files

* fix: eslint for lint test

* fix: rename type files for no using additional path

* fix: revert injected useless path for stress-test repo

* fix: removed about no-useless-path

* fix: revert rename extension file

* fix: revert unnecessary packages in yarn.lock

Co-authored-by: Wanseob Lim <email@wanseob.com>
Co-authored-by: Chance Hudson <jchancehud@gmail.com>
2021-09-15 11:22:35 +09:00
Chance Hudson
72613c2e79 fix: store includedIn hash on withdrawal 2021-09-07 23:32:24 -05:00
Chance Hudson
4eecb4dc50 feat: return token info with instant withdrawals 2021-09-07 23:03:19 -05:00
Chance Hudson
78fbc93006 fix: upsert instant withdrawal documents 2021-09-07 23:03:19 -05:00
Chance Hudson
9cfb585b32 feat: save and return full withdrawal from api 2021-09-07 23:03:19 -05:00