e92046a7ec
Fix compliance, don't throw error if note isn't spent
2023-06-21 16:37:41 -07:00
78a357b164
Change IP lookup provider
2023-06-09 09:16:31 -07:00
0f70b58c78
Prettify 'compliance' command output: now deposit and withdrawal events load before compliance info printing
2023-05-19 22:04:53 +03:00
618554b226
Resolve all Tornado-libs dependencies via gitea npm registry
2023-05-17 13:36:43 +03:00
44a8b82b00
Add withdrawal address validation according to this issue: https://development.tornadocash.community/tornadocash/tornado-cli/issues/6
2023-05-16 18:00:35 +03:00
5dd1b14c1b
Fix RPC link checking: it must starts with protocol (like ws or https), not includes, because because in this case, RPC sites that have these characters in name or in domain don't work correctly
2023-05-16 11:10:03 +03:00
2e20c1fbb6
Use default RPC while withdraw, if no RPC is provided
2023-05-15 14:35:17 +03:00
2186801877
Add to GasPriceOracle choice of the same RPC as in the Web3 current instance
2023-05-14 00:15:32 +03:00
8a31e9873d
Move all the tokens for each network in the config into a separate sub-object, as in classic-ui, so that it is possible to iterate over them
2023-05-14 00:08:18 +03:00
38783848b5
Fix GasPriceOracle: provide to its constructor valid RPC, which user defined in startup parameters - now gas for goerli calculates correctly
2023-05-12 23:12:22 +03:00
16d9efa60c
Fix commander arguments parser issue: now all parameters with hyphen processed correctly
2023-05-11 12:04:42 +03:00
910643ab5e
Add --private-key command argument so that users shouldn't have to save the private key in the clear in .env file
2023-05-10 18:49:59 +03:00
e9fcc51dae
Delete duplicate code in generateMerkleProof function - add computeDepositEventsTree call instead of a separate mapping in loop
2023-05-09 19:21:49 +03:00
Theodike
b7929bd16c
Fix accidentally changed comment
2023-04-22 19:20:44 +03:00
Theodike
7e79c85bba
Add command to check deposit tree root validity
2023-04-22 19:16:28 +03:00
Theodike
2151b8c562
Add zero event direct to target block
2023-04-14 23:19:33 +03:00
Theodike
28e831802f
Remove duplicate & unreachable code
2023-04-14 23:09:12 +03:00
Theodike
6115a09420
Adding zero events while syncing events tree
2023-04-14 23:07:02 +03:00
Theodike
bbdf0fbea3
Remove duplicate function updateCache
2023-04-14 20:06:39 +03:00
Theodike
85c5bdc13f
Apply prettier rules to cli.js
2023-04-14 20:02:05 +03:00
gozzy
2f82f4b3da
gas speed param, fee printing & confirmation prompts
2023-03-26 09:20:32 +00:00
gozzy
4b4364e2fe
depreciate browser support
2023-03-23 03:47:37 +00:00
gozzy
cdee9c12fb
parseNote command
2023-02-19 00:01:25 +00:00
gozzy
b67665283f
oracle legacy flag & improve fallback pricing
2022-12-02 08:16:35 +00:00
gozzy
9797bc9461
improve gas fetching & fix socks import
2022-12-01 11:54:18 +00: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