Compare commits

...

6 Commits

Author SHA1 Message Date
Theo 8379696a92 Change old links & addresses 2023-07-14 11:33:54 -07:00
Theo 08810722f0 Bump gas-price-oracle to fix sidechains gas stations error, update UI version to 1.1.0 2023-07-14 11:32:27 -07:00
Theo bc2e1d47e1 Merge pull request 'PR #2: allow setting sync interval for blocks' (#26) from AlienTornadosaurusHex/classic-ui:master into master
Reviewed-on: https://git.tornado.ws/tornadocash/classic-ui/pulls/26
2023-07-14 20:09:37 +02:00
AlienTornadosaurusHex 9e3861c56f enable avax
Signed-off-by: AlienTornadosaurusHex <>
2023-07-04 18:25:01 +00:00
AlienTornadosaurusHex 03543f87a8 update README
Signed-off-by: AlienTornadosaurusHex <>
2023-07-04 18:20:44 +00:00
AlienTornadosaurusHex 02f79a0de0 allow setting sync interval for blocks
Signed-off-by: AlienTornadosaurusHex <>
2023-07-04 13:57:33 +00:00
14 changed files with 47 additions and 33 deletions

View File

@ -1,6 +1,6 @@
# Tornado Cash Classic UI
> UI for non-custodial Ethereum Privacy solution
> Self-hostable Tornado Cash UI software for interacting with the protocol
## Building locally
@ -31,29 +31,42 @@ For detailed explanation on how things work, checkout [Nuxt.js docs](https://nux
## Update cached files
- For update deposits and withdrawals events use `yarn update:events {chainId}`
- For update encrypted notes use `yarn update:encrypted {chainId}`
- For update merkle tree use `yarn update:tree {chainId}`
- To update deposit and withdrawal events use `yarn update:events {chainId} {optional: tokenOrEvent} {optional: tokenOrEvent}`
- To update encrypted notes use `yarn update:encrypted {chainId}`
- To update merkle tree use `yarn update:tree {chainId}`
#### NOTE!
After update cached files do not forget to use `yarn update:zip`
After updating cached files do not forget to use `yarn update:zip`.
### Example for Ethereum Mainnet:
```
yarn update:events 1
yarn update:encrypted 1
yarn update:tree 1
You may set in [`networkConfig.js`](./networkConfig.js) the `blockSyncInterval` (def: 10_000) to the maximum value allowed by your RPC provider. Command usage follows below.
```bash
# Updating events with just the required chain id parameter
yarn update:events 1
# Updating events for only one token across all instances on that network
yarn update:events 1 dai
# Updating events for only one event on only some network
yarn update:events 1 deposit
# Both
yarn update:events 1 dai deposit
# Updating encrypted notes for some chain id
yarn update:encrypted 1
# Updating trees for some chain id
yarn update:tree 1
# Finally zips must be updated
yarn update:zip
```
### Example for Binance Smart Chain:
```
```bash
yarn update:events 56
yarn update:events 56 bnb
yarn update:events 56 bnb deposit
yarn update:encrypted 56
yarn update:tree 56
yarn update:zip
```

View File

@ -90,7 +90,7 @@ export const PROVIDERS = {
export const REGISTRY_DEPLOYED_BLOCK = {
1: 14173129
}
export const DONATIONS_ADDRESS = '0x08ec3A4e3873505D34450b0F726136E1BF0c9DF7'
export const DONATIONS_ADDRESS = '0xB008Ce23852Be9e7d43638432617617b2e07B41e'
export const trees = {
PARTS_COUNT: 4,

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Close notification",
"indexNotification": "Tornado Cash is now being maintained by the community, for more information visit {link}",
"indexNotificationLinkText": "tornadocash.community",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Please, do not use Binance wallet addresses for withdrawals. Internal transactions (including Tornado.cash withdrawals) are not currently supported on Binance Exchange. If you have an issue receiving your funds, you should contact Binance support.",
"deposit": "Deposit",
"depositButton": "Deposit",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Cerrar notificación",
"indexNotification": "Tornado.cash {link}. No obstante, todavía es un software experimental. Por favor, úselo teniendo en cuenta el riesgo y bajo su responsabilidad.",
"indexNotificationLinkText": "ha sido auditado",
"indexNotification": "Tornado Cash ahora está siendo mantenido por la comunidad, para obtener más información, visite {link}",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Por favor, no use direcciones a monederos Binance para retiros. Las transacciones internas (incluidos los retiros de Tornado.cash) actualmente no son compatibles con el Exchange de Binance. Si tiene problemas en la recepción de sus fondos, debería contactar con el soporte de Binance.",
"deposit": "Depósito",
"depositButton": "Depósito",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Fermer notification",
"indexNotification": "Tornado.cash {link}. Cependant, il s'agit d'un logiciel en phase d'expérimentation. Veuillez l'utiliser à vos propres risques.",
"indexNotificationLinkText": "a été audité",
"indexNotification": "Tornado Cash est maintenant maintenu par la communauté, pour plus d'informations, visitez {link}",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Veuillez ne pas utiliser votre adresse de portefeuille Binance pour retirer vos fonds. Les transactions internes (tout comme celles effectuées par Tornado.Cash) ne sont pas supportées sur la plateforme d'échange Binance. Si vous n'avez pas reçu vos fonds sur Binance, veuillez prendre contact avec le support Binance.",
"deposit": "Déposer",
"depositButton": "Déposer",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Закрыть",
"indexNotification": "Tornado Cash в настоящее время поддерживается сообществом, для получения дополнительной информации посетите {link}",
"indexNotificationLinkText": "прошел аудит",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Пожалуйста, не используйте адреса кошельков Binance для вывода средств. Внутренние транзакции (включая снятие средств с Tornado.cash) в настоящее время не поддерживаются на бирже Binance. Если у вас возникли проблемы с получением средств, вам следует обратиться в службу поддержки Binance.",
"deposit": "Депозит",
"depositButton": "Внести",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Bildirimi Kapat",
"indexNotification": "Tornado.cash {link} deneysel bir yazılımdır. Lütfen riskin farkında olarak kullanın.",
"indexNotificationLinkText": "denetimden geçmiştir ve",
"indexNotification": "Tornado Cash artık topluluk tarafından yönetiliyor, daha fazla bilgi için {link} adresini ziyaret edin.",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Lütfen para çekme işlemleri için Binance cüzdanına ait adresleri kullanmayın. Dahili işlemler (Tornado.cash çekimleri dahil) şu anda Binance Exchangede desteklenmemektedir. Paranızın hesabınıza yansıması ile ilgili sorunlarınız varsa Binance destek ile iletişime geçmelisiniz.",
"deposit": "Yatırma",
"depositButton": "Yatırma",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "Закрити повідомлення",
"indexNotification": "Tornado.Cash {link}. Однак, це експериментальний проект, використовуйте на свій страх і ризик.",
"indexNotificationLinkText": "пройшов аудит",
"indexNotification": "Tornado Cash зараз обслуговується спільнотою, щоб дізнатися більше, відвідайте {link}",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "Будь ласка, не використовуйте адреси гаманців Binance для виведення коштів. Внутрішні транзакції (включаючи зняття коштів з Tornado.cash) в даний час не підтримуються на біржі Binance. Якщо у вас виникли проблеми з отриманням коштів, вам слід звернутися в службу підтримки Binance.",
"deposit": "Депозит",
"depositButton": "Внести",

View File

@ -1,7 +1,7 @@
{
"closeNotification": "关闭通知",
"indexNotification": "Tornado Cash 现在由社区维护,有关更多信息,请访问 {link}",
"indexNotificationLinkText": "已通过安全审计",
"indexNotificationLinkText": "tornadocash.social",
"binanceInternalTxsNotification": "请不要使用Binance钱包地址进行提款。Binance交易所目前不支持内部交易包括Tornado.cash提款。如果您有资金未收到的问题您应该联系Binance支持。",
"deposit": "存款",
"depositButton": "存款",

View File

@ -1,4 +1,5 @@
export const enabledChains = ['1', '10', '56', '100', '137', '42161']
export const blockSyncInterval = 10000
export const enabledChains = ['1', '10', '56', '100', '137', '43114', '42161']
export const chainsWithEncryptedNotes = ['1', '5', '56', '100', '137']
export default {
netId1: {

View File

@ -1,6 +1,6 @@
{
"name": "tornadocash-classic-ui",
"version": "1.0.0",
"version": "1.1.0",
"description": "Private ethereum transactions",
"author": "Tornado Cash Team",
"scripts": {
@ -23,7 +23,7 @@
"@apollo/client": "^3.3.20",
"@metamask/onboarding": "^1.0.0",
"@nuxtjs/moment": "^1.6.0",
"@tornado/gas-price-oracle": "^0.5.2-p1",
"@tornado/gas-price-oracle": "^0.5.3",
"@tornado/snarkjs": "0.1.20-p2",
"@tornado/websnark": "0.0.4-p1",
"@walletconnect/web3-provider": "1.7.8",

View File

@ -40,7 +40,7 @@
>
<i18n path="indexNotification">
<template v-slot:link>
<a href="https://tornadocash.community" target="_blank" rel="noopener noreferrer">
<a href="https://tornadocash.social" target="_blank" rel="noopener noreferrer">
{{ $t('indexNotificationLinkText') }}
</a>
</template>

View File

@ -2,7 +2,7 @@ import fs from 'fs'
import zlib from 'zlib'
import Web3 from 'web3'
import networkConfig from '../../networkConfig'
import networkConfig, { blockSyncInterval } from '../../networkConfig'
export function download({ name, directory }) {
const path = `${directory}${name}.gz`.toLowerCase()
@ -53,7 +53,7 @@ export async function getPastEvents({ type, fromBlock, netId, events, contractAt
const blockDifference = Math.ceil(blockNumberBuffer - fromBlock)
// eth_logs and eth_filter are restricted > 10,000 block queries
const blockRange = 10000
const blockRange = blockSyncInterval ? blockSyncInterval : 10_000
let chunksCount = blockDifference === 0 ? 1 : Math.ceil(blockDifference / blockRange)
const chunkSize = Math.ceil(blockDifference / chunksCount)

View File

@ -2109,10 +2109,10 @@
dependencies:
defer-to-connect "^1.0.1"
"@tornado/gas-price-oracle@^0.5.2-p1":
version "0.5.2-p1"
resolved "https://git.tornado.ws/api/packages/tornado-packages/npm/%40tornado%2Fgas-price-oracle/-/0.5.2-p1/gas-price-oracle-0.5.2-p1.tgz#310fed9b481383ffeaa4c1bd105c934a71a9513c"
integrity sha512-FbkhDQMD/aEBogdG6IdSXmlraG9LdEhaO+8aeNXZA0Tgp5P4PJ8pgZXxTK2rpVXBMpXrFiFg4IDkpRGrx67d4g==
"@tornado/gas-price-oracle@^0.5.3":
version "0.5.3"
resolved "https://git.tornado.ws/api/packages/tornado-packages/npm/%40tornado%2Fgas-price-oracle/-/0.5.3/gas-price-oracle-0.5.3.tgz#fb5423dddee2f52edbc16174c5ddce90bea5413d"
integrity sha512-LpVfPiPIz3FOmJdiqJf/yoeO5n9/Pd5jgtdY+6hB9lNW0AiWhylhpScojICViS+3OL9QC8CoTlgr+kbfGeO9pQ==
dependencies:
axios "^0.21.2"
bignumber.js "^9.0.0"