Commit Graph

86 Commits

Author SHA1 Message Date
b5bfd6711c eth mainnet disable wallet withdraw 2025-07-17 21:50:19 +08:00
7e0d8d9183 Add governance commands: staking, voting, delegating 2025-07-13 15:52:19 -07:00
f02a205e05 add sepolia and etc support, add docker to verify 2025-06-18 17:25:21 +08:00
688f84f645 Massive CLI update to version 1.1.0:
1. Add relayer autoselection and command to get available registered relayer list
2. Add RPC and subgraph autoselection by chain ID for user-provided action
3. Fix bug in graph events fetching, now it cannot skip events in corner case
4. Rewrite half of CLI code, remove redundant functions, move global variables to specific object, add typings
5. Create tornado-cli.exe, deterministic and reproducible CLi executable build
6. Update config.json with working RPC and subgraphs for all chains
7. Update all events to actual state
2025-04-04 15:46:31 -07:00
7ca62513c6 Fix graph sync problem that leads to corrupted merkle tree: now all events fetched explicitly and then deduplicated 2025-04-03 15:58:56 -07:00
8ee077c1db Add relayer autoselection in withdraw command, if user didn't specify it 2025-03-27 11:10:16 -07:00
728624c92a Add listRelayers command to CLI: now users can check all available relayers before withdrawal and select the best option 2025-03-21 12:10:44 -07:00
nanli777torn
792961d821 1. Modify the subgraph of config.js, delete unused chains, and add ensSubdomainKey to each chain
2. Modify cli.js to support subgraph use
3. Add relayerslist to allow users to obtain relayers data
2025-03-12 02:50:29 +08:00
c0b9a98486 Remove unneccessary web-providers-http lib after fix errors in new web3.js version & fix websocket and ipc providers connection 2023-09-23 11:10:21 -07:00
0b4e6e37d9 Normalize relayer URL before using & fix relayer status check 2023-09-12 20:37:42 -07:00
4231f5ab09 Change tornado-oracles version & add more info to withdrawal prompt 2023-09-07 14:18:30 -07:00
f1f0d8be2d Update tornado-oracles to calculate gas for bsc chain correctly 2023-09-03 07:23:08 -07:00
fcfa782cf1 Fix send function 2023-08-27 09:39:12 -07:00
fadd50e801 Use @tornado/tornado-oracles lib instead of many custom functions to calculate fees 2023-08-27 09:15:27 -07:00
58a3e9b7c6 Update cache for all chains & fix gas limit estimation 2023-07-23 06:16:24 -07:00
ac0ccbb787 Fix gas issues: add correct estimation for relayer withdrawal, add L1 fee fetching for Optimism, correct gas price estimation 2023-07-04 20:06:42 -07:00
7243803b21 Add correct fee estimation for relayer withdrawal transaction 2023-06-30 03:47:30 -07:00
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