forked from tornadocash/tornado-cli
Update @tornado/core version
This commit is contained in:
parent
e0ae1288bd
commit
336e73dc8d
11
dist/cli.js
vendored
11
dist/cli.js
vendored
@ -178903,7 +178903,7 @@ const populateTransaction = (signer, tx) => __async$b(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;
|
||||||
@ -178924,7 +178924,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;
|
||||||
@ -178940,7 +178940,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;
|
||||||
@ -181892,7 +181892,7 @@ class NoteAccount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const DUMMY_ADDRESS = "0x1111111111111111111111111111111111111111";
|
const DUMMY_ADDRESS = "0x1111111111111111111111111111111111111111";
|
||||||
const DUMMY_NONCE = "0x1111111111111111111111111111111111111111111111111111111111111111";
|
const DUMMY_NONCE = 1024;
|
||||||
const DUMMY_WITHDRAW_DATA = "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
|
const DUMMY_WITHDRAW_DATA = "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
|
||||||
function convertETHToTokenAmount(amountInWei, tokenPriceInWei, tokenDecimals = 18) {
|
function convertETHToTokenAmount(amountInWei, tokenPriceInWei, tokenDecimals = 18) {
|
||||||
const tokenDecimalsMultiplier = BigInt(10 ** Number(tokenDecimals));
|
const tokenDecimalsMultiplier = BigInt(10 ** Number(tokenDecimals));
|
||||||
@ -181917,10 +181917,9 @@ class TornadoFeeOracle {
|
|||||||
tx = {
|
tx = {
|
||||||
type: 0,
|
type: 0,
|
||||||
gasLimit: 1e6,
|
gasLimit: 1e6,
|
||||||
nonce: Number(DUMMY_NONCE),
|
nonce: DUMMY_NONCE,
|
||||||
data: DUMMY_WITHDRAW_DATA,
|
data: DUMMY_WITHDRAW_DATA,
|
||||||
gasPrice: parseUnits("1", "gwei"),
|
gasPrice: parseUnits("1", "gwei"),
|
||||||
from: DUMMY_ADDRESS,
|
|
||||||
to: DUMMY_ADDRESS
|
to: DUMMY_ADDRESS
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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": "1.0.1",
|
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#cf9e32f46dea73671d09b63da01e564cc7b06d50",
|
||||||
"@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",
|
||||||
|
@ -771,10 +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@1.0.1":
|
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#cf9e32f46dea73671d09b63da01e564cc7b06d50":
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://git.tornado.ws/api/packages/tornado-packages/npm/%40tornado%2Fcore/-/1.0.1/core-1.0.1.tgz#95e34a32da6f6c35e9fd9c314bf98128b183ebca"
|
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#cf9e32f46dea73671d09b63da01e564cc7b06d50"
|
||||||
integrity sha512-TUE+A9jLyTgtWaoD42EdS5eNvXHEisu/VHhmlK2RPJG8t26nDWilEd1fxebi9QPDZHM8JLqVzwQ1+ElYnsFFWg==
|
|
||||||
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