Commit Graph

51 Commits

Author SHA1 Message Date
Ayanami
b8bc6de79d
Handle event sync delay from thegraph 2022-03-11 13:53:45 +09:00
Ayanami
cd7cfd834a
Fix withdrawal using relayer
+ Fixed number turnication error
+ Fixed netId detection
2022-03-11 13:35:53 +09:00
Ayanami
5e89da416f
Check senderAccount for withdrawal using private key 2022-03-11 12:55:52 +09:00
Ayanami
b7931adaa4
Load groth16 worker only when withdrawal
Co-authored-by: Danil Kovtonyuk <danx.kov@gmail.com>
2022-03-11 12:21:16 +09:00
Ayanami
2ab7e7afb6
Refactor cli.js and use Promise.all for non multicall calls 2022-03-11 12:13:01 +09:00
Ayanami
873940cbf7
Add ENV for RPC 2022-03-01 04:20:37 +09:00
Ayanami
0abc883b78
Fixed Subgraph Query Implementation
+ Change orderby to BlockNumber since using timestamp only gives timestamp of block
+ Added filter to exclude duplicated results
2022-02-27 19:11:33 +09:00
Ayanami
c185961a62
Add --onlyrpc mode
+ Add mode to disable remote ip connection and to disable thegraph api

+ Faster event sync for deposit

+ Update README guide for users
2022-02-27 07:57:48 +09:00
Ayanami
2854b7a12f
Support creating deposit notes offline
Co-authored-by: yoyoismee <yoyoismee@gmail.com>
2022-02-27 07:55:31 +09:00
Ayanami
378bab8fbe
Use TheGraph while syncing events
- support fallback to web3 when not available
- fixes #38
2022-02-27 07:32:35 +09:00
Ayanami
cf988cc033
Exclude private ip addresses from remote ip checks 2022-02-27 07:32:33 +09:00
Ayanami
894d4d3a96
Apply multicall for multiple contract calls
- lint cli.js
- fixed test networks with getGasPrice
- replace mainnet proxy to new one that supports relayer registry, fixes #39
- fixed rounding error with bignumber.js
2022-02-27 07:32:30 +09:00
Ayanami
d55ca374e4
Use merkle tree from npm & remove ./lib
Reference: 0c6e638852

- fixed yarn installation bug as well
2022-02-27 07:32:24 +09:00
Ayanami
ba31dfa32d
Make remote IP detection optional
Some may could not access to tornado.cash without VPN
2022-02-06 07:49:21 +09:00
Ayanami
1f26d8cc2f
Remove comment saying that it is a demo client 2022-02-06 07:24:43 +09:00
Ayanami
9e1eeae948
Simplify generateTransaction function 2022-02-05 21:17:18 +09:00
Ayanami
9ec34aa423
Fix token deposit & Fix EIP-1559 for goerli network 2022-02-05 20:08:17 +09:00
Ayanami
394d487cb8
Change xDai to GnosisChain 2022-02-05 12:50:51 +09:00
Ayanami
00ca8a07f7
Fix Optimism network support
Correct chainId for Optimism network
2022-02-05 11:11:59 +09:00
Ayanami
04623a23e6
Fixed web3 overflow bug for non-geth rpc nodes 2022-02-05 10:33:25 +09:00
Ayanami
62451ec5ce
Add mode not to submit signed tx to local node 2022-02-05 03:53:11 +09:00
Ayanami
a9c6a24204
Support Onion RPC nodes 2022-02-04 10:12:21 +09:00
Ayanami
6ea19850dc
Fix send & printBalance using BigNumber 2022-01-27 21:35:55 +09:00
Ayanami
7398ac9bbc
Don't use await for encodeABI() since it is not a promise 2022-01-27 15:17:19 +09:00
Ayanami
940f3e8194
Remove duplicated definition 2022-01-27 14:56:46 +09:00
Ayanami
4bea523346
Remove duplicated definition 2022-01-27 14:50:49 +09:00
Ayanami
e9ff6d1488
Define netSymbol in advance 2022-01-26 23:42:12 +09:00
Ayanami
15fe31445a
Add some error messages 2022-01-26 23:11:05 +09:00
Ayanami
8b63de6392
Fix send command 2022-01-26 22:24:58 +09:00
Ayanami
00f68385e3
Fixed bug on ERC20 support 2022-01-26 22:22:50 +09:00
Ayanami
66e781ea83
Minor console bug fix 2022-01-26 21:21:28 +09:00
Ayanami
bceb74b9b3
Read address from private key for querying balance 2022-01-24 21:50:58 +09:00
Ayanami
710054547a
Fix bug & Show remote ip from console 2022-01-24 20:39:40 +09:00
Ayanami
a4c511c86f
Support sending ETH and ERC20 2022-01-23 21:33:47 +09:00
Ayanami
90a34da5b8
Add Optimistic network support & update README.md 2022-01-23 18:42:08 +09:00
Ayanami
e865eb9af8
Support EIP-1559 transaction for Polygon & Avalanche
Most of the transaction on those chains have same maxFeePerGas and maxPriorityFeePerGas value
2022-01-23 16:26:24 +09:00
Ayanami
93fafe0178
Minor changes
+ If the function needs to check native coin, use netSymbol instead
+ Unused variables removed
+ Support Private Key with '0x' as well
2022-01-23 15:52:59 +09:00
Ayanami
16cc0b3e61
Update fetchEvents to write files per chunks 2022-01-23 12:56:09 +09:00
Ayanami
5e79fec40d
Fixed backup note bug 2022-01-14 22:16:10 +09:00
Ayanami
610200b610
Minor updates
* Use socks5h to use DNS through proxy

* fix withdrawal transaction gaslimit

* change default priority gas fee value to match with a8e504054e/src/TxManager.js (L18)

* fix typo

* Use estimateGas

* default goerli network gasprice to 1 gwei

* Add other networks
2021-12-12 15:19:49 +09:00
Ayanami
1f42c33ed8
Update cli.js
* Use latest web3 version
* Support EIP-1559 transaction for Ethereum mainnet & Goerli testnet.
* Added tor network support to enhance privacy
* Use forked web3httpprovider from local modules to support custom provider for Tor network ( hide user info from remote web3 providers )
* Now cli.js script fetches 1K events per call and updates the local cache file.
* Fixed compliance function
2021-12-08 01:57:18 +09:00
nikdementev
d4bf80de6e
fix: check spent note 2021-07-29 18:17:35 +03:00
nikdementev
c3653bf6e4
fix: compliance 2021-07-29 18:11:53 +03:00
nikdementev
d4f673a2ba
chore: naming 2021-07-29 17:33:35 +03:00
0xZick 地方分権化
4dbdd42252
Merge branch 'master' into fixTorando 2021-07-16 13:30:07 +03:00
nikdementev
7d071b2ac5
fix: cache 2021-07-16 13:27:08 +03:00
Alexey
496680b379 prettier 2021-02-14 21:23:17 +03:00
Nik Dement'ev
58e99581e7
fix: deposit and withdraw 2020-12-24 14:46:15 +03:00
Alexey
d3c0630f72 fix calculateFee 2020-05-22 12:37:21 +03:00
Alexey
ebbd3aac03 formating 2020-05-22 12:35:00 +03:00