Update @tornado/core version

This commit is contained in:
Tornado Contrib 2024-05-15 08:57:31 +00:00
parent e0ae1288bd
commit 336e73dc8d
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
3 changed files with 8 additions and 10 deletions

11
dist/cli.js vendored

@ -178903,7 +178903,7 @@ const populateTransaction = (signer, tx) => __async$b(void 0, null, function* ()
class TornadoWallet extends Wallet {
constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
super(key, provider);
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
this.gasFailover = gasFailover != null ? gasFailover : false;
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
@ -178924,7 +178924,7 @@ class TornadoWallet extends Wallet {
class TornadoVoidSigner extends VoidSigner {
constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
super(address, provider);
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
this.gasFailover = gasFailover != null ? gasFailover : false;
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
@ -178940,7 +178940,7 @@ class TornadoVoidSigner extends VoidSigner {
class TornadoRpcSigner extends JsonRpcSigner {
constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) {
super(provider, address);
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3;
this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0;
this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3;
this.gasFailover = gasFailover != null ? gasFailover : false;
this.bumpNonce = bumpNonce != null ? bumpNonce : false;
@ -181892,7 +181892,7 @@ class NoteAccount {
}
const DUMMY_ADDRESS = "0x1111111111111111111111111111111111111111";
const DUMMY_NONCE = "0x1111111111111111111111111111111111111111111111111111111111111111";
const DUMMY_NONCE = 1024;
const DUMMY_WITHDRAW_DATA = "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
function convertETHToTokenAmount(amountInWei, tokenPriceInWei, tokenDecimals = 18) {
const tokenDecimalsMultiplier = BigInt(10 ** Number(tokenDecimals));
@ -181917,10 +181917,9 @@ class TornadoFeeOracle {
tx = {
type: 0,
gasLimit: 1e6,
nonce: Number(DUMMY_NONCE),
nonce: DUMMY_NONCE,
data: DUMMY_WITHDRAW_DATA,
gasPrice: parseUnits("1", "gwei"),
from: DUMMY_ADDRESS,
to: DUMMY_ADDRESS
};
}

@ -53,7 +53,7 @@
"@colors/colors": "1.5.0",
"@metamask/eth-sig-util": "^7.0.1",
"@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/snarkjs": "0.1.20",
"@tornado/websnark": "0.0.4",

@ -771,10 +771,9 @@
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.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"
resolved "https://git.tornado.ws/api/packages/tornado-packages/npm/%40tornado%2Fcore/-/1.0.1/core-1.0.1.tgz#95e34a32da6f6c35e9fd9c314bf98128b183ebca"
integrity sha512-TUE+A9jLyTgtWaoD42EdS5eNvXHEisu/VHhmlK2RPJG8t26nDWilEd1fxebi9QPDZHM8JLqVzwQ1+ElYnsFFWg==
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#cf9e32f46dea73671d09b63da01e564cc7b06d50"
dependencies:
"@metamask/eth-sig-util" "^7.0.1"
"@tornado/contracts" "^1.0.0"