Remove CORS check on relayers.json
This commit is contained in:
parent
71701365bc
commit
f781f6a935
36
index.html
36
index.html
@ -4,14 +4,14 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Tornado Withdraw</title>
|
||||
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png">
|
||||
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png">
|
||||
|
||||
<meta name="description" content="Tornado Withdraw - Open Source Withdrawal UI for Tornado Cash">
|
||||
<meta property="og:title" content="Tornado Withdraw">
|
||||
<meta property="og:description" content="Tornado Withdraw - Open Source Withdrawal UI for Tornado Cash">
|
||||
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/tw.png">
|
||||
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/tw.png">
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/bootstrap.css" integrity="sha384-p8zfDSkYPu7Xu7mMd8DJHdXwh1/mZ2P/aMhahJze550GcUbzNxB841pMCrYaew9I" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/bootstrap.css" integrity="sha384-p8zfDSkYPu7Xu7mMd8DJHdXwh1/mZ2P/aMhahJze550GcUbzNxB841pMCrYaew9I" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" integrity="sha384-XGjxtQfXaH2tnPFa9x+ruJTuLE3Aa6LhHSWRr1XeTyhezb4abCG4ccI5AkVDxqC+" crossorigin="anonymous">
|
||||
|
||||
<script>
|
||||
@ -26,8 +26,8 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/moment@2.30.1/moment.min.js" integrity="sha384-aQgnUSsW4D+imRFZ/dILN0wXp3MGO6RE3ccC/gZHr6BQzvhwzD+Bzon5C+kO3NHQ" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/datatables.net@2.1.8/js/dataTables.min.js" integrity="sha384-MgwUq0TVErv5Lkj/jIAgQpC+iUIqwhwXxJMfrZQVAOhr++1MR02yXH8aXdPc3fk0" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/datatables.net-bs5@2.1.8/js/dataTables.bootstrap5.min.js" integrity="sha384-G85lmdZCo2WkHaZ8U1ZceHekzKcg37sFrs4St2+u/r2UtfvSDQmQrkMsEx4Cgv/W" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/tornado.umd.js" integrity="sha384-43QWPWJzsblx+LLI8Eqr4jq62cHPtUwBHsUnaeTvAorUNy4hu+C7AMZoo65iu3/W" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/tornadoContracts.umd.js" integrity="sha384-zcL/ErCF2jteiRmubhqON4cSaDm+ZE2Fng5+QZJ9GSd1HMIQEm4xKHlioXrxhrol" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/tornado.umd.js" integrity="sha384-XkbSALUNpZdDBSzXYN9KRJIiJEvKoboWkA4uN4WY7U35xsA3cR5yZMSI/RbWqAf1" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/tornadoContracts.umd.js" integrity="sha384-zcL/ErCF2jteiRmubhqON4cSaDm+ZE2Fng5+QZJ9GSd1HMIQEm4xKHlioXrxhrol" crossorigin="anonymous"></script>
|
||||
|
||||
<style>
|
||||
@media (min-width: 1100px) {
|
||||
@ -91,7 +91,7 @@
|
||||
// Used for relayers
|
||||
const RELAYER_NETWORK = Tornado.NetId.MAINNET;
|
||||
|
||||
const JSDELIVR = 'https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3';
|
||||
const JSDELIVR = 'https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4';
|
||||
|
||||
const hashes = {
|
||||
'static/bootstrap.css': 'sha384-p8zfDSkYPu7Xu7mMd8DJHdXwh1/mZ2P/aMhahJze550GcUbzNxB841pMCrYaew9I',
|
||||
@ -104,8 +104,8 @@
|
||||
'static/torn.png': 'sha384-JHO0kpKduyooWMLR9QZ35GSU1/B0cpbQ6wLvVAg91KkVEFLQz9XBwBD9FCFJVL9R',
|
||||
'static/torn2.png': 'sha384-4wuwoWrwrSCoVr3jtQLAFoj09ukL6JJ0/MJ/5qCoN5oEv6CwPe5Xu2VP5wKiHsbS',
|
||||
'static/tornado.json.zip': 'sha384-XmKBnm5OYS4kGyw52NNSOmSQ4uvN7w/ZNQIgqfSSSSJ1MJw9dfCE5OLQHHDvqP0F',
|
||||
'static/tornado.umd.js': 'sha384-43QWPWJzsblx+LLI8Eqr4jq62cHPtUwBHsUnaeTvAorUNy4hu+C7AMZoo65iu3/W',
|
||||
'static/tornado.umd.min.js': 'sha384-5ELI+2w27mNa/qDEgnQE2ZkQ42LD4u4a59NI78SXUDl4fZ4EuFxuGpSagT3RTJ5j',
|
||||
'static/tornado.umd.js': 'sha384-XkbSALUNpZdDBSzXYN9KRJIiJEvKoboWkA4uN4WY7U35xsA3cR5yZMSI/RbWqAf1',
|
||||
'static/tornado.umd.min.js': 'sha384-Sre1TGrMb+F5TupTQLefkS3LCsezqIlGDyaUD9ibdCYp0mz6zS4HBlQq/nUgFnsu',
|
||||
'static/tornadoContracts.umd.js': 'sha384-zcL/ErCF2jteiRmubhqON4cSaDm+ZE2Fng5+QZJ9GSd1HMIQEm4xKHlioXrxhrol',
|
||||
'static/tornadoContracts.umd.min.js': 'sha384-1yFtL5qBZWn4ZZc9Yxt64WwSEBTd7u9FEXzJV6ef1966Wty8OpFINVv22VD98Oau',
|
||||
'static/tornadoProvingKey.bin.zip': 'sha384-O+ICo/CmIvnFmeaSfvRc6CUlde24XWL2Bp2hgKRPZTO1LLlVW0GS8gHIzMtcKRa2',
|
||||
@ -257,7 +257,7 @@
|
||||
<header class="py-2 mt-2 mb-3 border-bottom">
|
||||
<nav class="navbar navbar-expand-md">
|
||||
<a href="#" class="navbar-brand me-md-auto">
|
||||
<img src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="me-1 logo">
|
||||
<img src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="me-1 logo">
|
||||
<span class="fs-4 align-middle">Tornado Withdraw</span>
|
||||
</a>
|
||||
|
||||
@ -1087,9 +1087,9 @@
|
||||
</div>
|
||||
<div id="status-screen" class="d-none">
|
||||
<div id="send-status" class="mt-1"></div>
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="loader status d-none">
|
||||
<img id="send-error" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/failed.png" class="status d-none">
|
||||
<img id="send-success" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/success.png" class="status d-none">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="loader status d-none">
|
||||
<img id="send-error" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/failed.png" class="status d-none">
|
||||
<img id="send-success" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/success.png" class="status d-none">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@ -4027,7 +4027,7 @@
|
||||
$('#delegatee-table').append(`
|
||||
<p>Loading TORN delegatees please wait</p>
|
||||
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="loader status">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="loader status">
|
||||
`);
|
||||
|
||||
let delegateeAddress;
|
||||
@ -4548,7 +4548,7 @@
|
||||
$('#relayer-list').append(`
|
||||
<p>Loading ${networkName} relayers please wait</p>
|
||||
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="loader status">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="loader status">
|
||||
`);
|
||||
|
||||
const { relayers } = await updateRelayers(true);
|
||||
@ -4626,7 +4626,7 @@
|
||||
$('#relayer-status').append(`
|
||||
<p>Loading ${ensName} relayer please wait</p>
|
||||
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="loader status">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="loader status">
|
||||
`);
|
||||
|
||||
const { relayers } = await updateRelayers(true);
|
||||
@ -4638,7 +4638,7 @@
|
||||
$('#relayer-status').append(`
|
||||
<p>Selected relayer ${ensName} relayer is not registered</p>
|
||||
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/failed.png" class="status">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/failed.png" class="status">
|
||||
`);
|
||||
return;
|
||||
}
|
||||
@ -5046,7 +5046,7 @@
|
||||
$('#wallet-balance').append(`
|
||||
<p>Loading wallet balances</p>
|
||||
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/torn2.png" class="loader status">
|
||||
<img id="send-loading" src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/torn2.png" class="loader status">
|
||||
`);
|
||||
|
||||
const provider = await getProvider(netId);
|
||||
@ -5103,7 +5103,7 @@
|
||||
: `<a href="${explorerUrl}/address/${address}" target="_blank" rel="noreferrer nofollow">${address}</a>`;
|
||||
|
||||
return {
|
||||
name: `<img src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.3/tokens/${symbol.toLowerCase()}.png" height="24"> ${name} (${symbol})`,
|
||||
name: `<img src="https://cdn.jsdelivr.net/npm/tornado-cdn@1.0.4/tokens/${symbol.toLowerCase()}.png" height="24"> ${name} (${symbol})`,
|
||||
contractAddress,
|
||||
balance: `${ethers.formatUnits(balance, decimals)} ${symbol}`,
|
||||
};
|
||||
|
@ -11,7 +11,7 @@
|
||||
"sass:watch": "yarn sass --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#df54da689c816e6ac3a808d0ce35e1a475805202",
|
||||
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#88b6e20aa18e8351464f68e5df3ae03f3b0f82f9",
|
||||
"@types/node": "^22.7.4",
|
||||
"bootstrap": "^5.3.3",
|
||||
"eslint": "8.57.0",
|
||||
|
@ -9,8 +9,8 @@
|
||||
"static/torn.png": "sha384-JHO0kpKduyooWMLR9QZ35GSU1/B0cpbQ6wLvVAg91KkVEFLQz9XBwBD9FCFJVL9R",
|
||||
"static/torn2.png": "sha384-4wuwoWrwrSCoVr3jtQLAFoj09ukL6JJ0/MJ/5qCoN5oEv6CwPe5Xu2VP5wKiHsbS",
|
||||
"static/tornado.json.zip": "sha384-XmKBnm5OYS4kGyw52NNSOmSQ4uvN7w/ZNQIgqfSSSSJ1MJw9dfCE5OLQHHDvqP0F",
|
||||
"static/tornado.umd.js": "sha384-43QWPWJzsblx+LLI8Eqr4jq62cHPtUwBHsUnaeTvAorUNy4hu+C7AMZoo65iu3/W",
|
||||
"static/tornado.umd.min.js": "sha384-5ELI+2w27mNa/qDEgnQE2ZkQ42LD4u4a59NI78SXUDl4fZ4EuFxuGpSagT3RTJ5j",
|
||||
"static/tornado.umd.js": "sha384-XkbSALUNpZdDBSzXYN9KRJIiJEvKoboWkA4uN4WY7U35xsA3cR5yZMSI/RbWqAf1",
|
||||
"static/tornado.umd.min.js": "sha384-Sre1TGrMb+F5TupTQLefkS3LCsezqIlGDyaUD9ibdCYp0mz6zS4HBlQq/nUgFnsu",
|
||||
"static/tornadoContracts.umd.js": "sha384-zcL/ErCF2jteiRmubhqON4cSaDm+ZE2Fng5+QZJ9GSd1HMIQEm4xKHlioXrxhrol",
|
||||
"static/tornadoContracts.umd.min.js": "sha384-1yFtL5qBZWn4ZZc9Yxt64WwSEBTd7u9FEXzJV6ef1966Wty8OpFINVv22VD98Oau",
|
||||
"static/tornadoProvingKey.bin.zip": "sha384-O+ICo/CmIvnFmeaSfvRc6CUlde24XWL2Bp2hgKRPZTO1LLlVW0GS8gHIzMtcKRa2",
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "tornado-cdn",
|
||||
"version": "1.0.3"
|
||||
"version": "1.0.4"
|
||||
}
|
@ -90040,9 +90040,6 @@ class DBRegistryService extends _base__WEBPACK_IMPORTED_MODULE_3__/* .BaseRegist
|
||||
try {
|
||||
const resp = await (0,_providers__WEBPACK_IMPORTED_MODULE_2__/* .fetchData */ .Fd)(url, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
returnResponse: true
|
||||
});
|
||||
const data = new Uint8Array(await resp.arrayBuffer());
|
||||
|
2
static/tornado.umd.min.js
vendored
2
static/tornado.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -610,9 +610,9 @@
|
||||
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
|
||||
ethers "^6.13.4"
|
||||
|
||||
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#df54da689c816e6ac3a808d0ce35e1a475805202":
|
||||
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#88b6e20aa18e8351464f68e5df3ae03f3b0f82f9":
|
||||
version "1.0.19"
|
||||
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#df54da689c816e6ac3a808d0ce35e1a475805202"
|
||||
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#88b6e20aa18e8351464f68e5df3ae03f3b0f82f9"
|
||||
dependencies:
|
||||
"@metamask/eth-sig-util" "^8.0.0"
|
||||
"@tornado/contracts" "git+https://git.tornado.ws/tornadocontrib/tornado-contracts.git#1b1d707878c16a3dc60d295299d4f0e7ce6ba831"
|
||||
|
Loading…
Reference in New Issue
Block a user