forked from tornadocash/tornado-cli
Update core version and fix withdraw table
This commit is contained in:
parent
e55994068c
commit
0995dcbd70
8
dist/cli.js
vendored
8
dist/cli.js
vendored
@ -188354,7 +188354,7 @@ const populateTransaction = (signer, tx) => __async$e(void 0, null, function* ()
|
|||||||
class TornadoWallet extends Wallet {
|
class TornadoWallet extends Wallet {
|
||||||
constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
||||||
super(key, provider);
|
super(key, provider);
|
||||||
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
|
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
|
||||||
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
||||||
this.gasFailover = gasFailover != null ? gasFailover : false;
|
this.gasFailover = gasFailover != null ? gasFailover : false;
|
||||||
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
||||||
@ -188375,7 +188375,7 @@ class TornadoWallet extends Wallet {
|
|||||||
class TornadoVoidSigner extends VoidSigner {
|
class TornadoVoidSigner extends VoidSigner {
|
||||||
constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
||||||
super(address, provider);
|
super(address, provider);
|
||||||
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
|
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
|
||||||
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
||||||
this.gasFailover = gasFailover != null ? gasFailover : false;
|
this.gasFailover = gasFailover != null ? gasFailover : false;
|
||||||
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
||||||
@ -188391,7 +188391,7 @@ class TornadoVoidSigner extends VoidSigner {
|
|||||||
class TornadoRpcSigner extends JsonRpcSigner {
|
class TornadoRpcSigner extends JsonRpcSigner {
|
||||||
constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
|
||||||
super(provider, address);
|
super(provider, address);
|
||||||
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
|
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
|
||||||
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
|
||||||
this.gasFailover = gasFailover != null ? gasFailover : false;
|
this.gasFailover = gasFailover != null ? gasFailover : false;
|
||||||
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
|
||||||
@ -193946,7 +193946,7 @@ function tornadoProgram() {
|
|||||||
withdrawTable.push(
|
withdrawTable.push(
|
||||||
[{ colSpan: 2, content: "Withdraw", hAlign: "center" }],
|
[{ colSpan: 2, content: "Withdraw", hAlign: "center" }],
|
||||||
["Withdrawal", `${amount} ${currency.toUpperCase()}`],
|
["Withdrawal", `${amount} ${currency.toUpperCase()}`],
|
||||||
["From", `${signer == null ? void 0 : signer.address}`],
|
["Signer", `${signer == null ? void 0 : signer.address}`],
|
||||||
[
|
[
|
||||||
"Transaction Fee",
|
"Transaction Fee",
|
||||||
`${Number(formatEther(txFee)).toFixed(5)} ${nativeCurrency.toUpperCase()} ` + txFeeString
|
`${Number(formatEther(txFee)).toFixed(5)} ${nativeCurrency.toUpperCase()} ` + txFeeString
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
"@colors/colors": "1.5.0",
|
"@colors/colors": "1.5.0",
|
||||||
"@metamask/eth-sig-util": "^7.0.1",
|
"@metamask/eth-sig-util": "^7.0.1",
|
||||||
"@tornado/contracts": "1.0.0",
|
"@tornado/contracts": "1.0.0",
|
||||||
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4623e386a158a01438ac2d7a8b7107cffd10242e",
|
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#b5f57e20ee7de42c4af88fb417d887672a8d3582",
|
||||||
"@tornado/fixed-merkle-tree": "0.7.3",
|
"@tornado/fixed-merkle-tree": "0.7.3",
|
||||||
"@tornado/snarkjs": "0.1.20",
|
"@tornado/snarkjs": "0.1.20",
|
||||||
"@tornado/websnark": "0.0.4",
|
"@tornado/websnark": "0.0.4",
|
||||||
|
@ -1117,7 +1117,7 @@ export function tornadoProgram() {
|
|||||||
withdrawTable.push(
|
withdrawTable.push(
|
||||||
[{ colSpan: 2, content: 'Withdraw', hAlign: 'center' }],
|
[{ colSpan: 2, content: 'Withdraw', hAlign: 'center' }],
|
||||||
['Withdrawal', `${amount} ${currency.toUpperCase()}`],
|
['Withdrawal', `${amount} ${currency.toUpperCase()}`],
|
||||||
['From', `${signer?.address}`],
|
['Signer', `${signer?.address}`],
|
||||||
[
|
[
|
||||||
'Transaction Fee',
|
'Transaction Fee',
|
||||||
`${Number(formatEther(txFee)).toFixed(5)} ${nativeCurrency.toUpperCase()} ` + txFeeString,
|
`${Number(formatEther(txFee)).toFixed(5)} ${nativeCurrency.toUpperCase()} ` + txFeeString,
|
||||||
|
@ -771,9 +771,9 @@
|
|||||||
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
|
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
|
||||||
ethers "^6.4.0"
|
ethers "^6.4.0"
|
||||||
|
|
||||||
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4623e386a158a01438ac2d7a8b7107cffd10242e":
|
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#b5f57e20ee7de42c4af88fb417d887672a8d3582":
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4623e386a158a01438ac2d7a8b7107cffd10242e"
|
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#b5f57e20ee7de42c4af88fb417d887672a8d3582"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/eth-sig-util" "^7.0.1"
|
"@metamask/eth-sig-util" "^7.0.1"
|
||||||
"@tornado/contracts" "^1.0.0"
|
"@tornado/contracts" "^1.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user