Compare commits
5 Commits
main
...
84b6ed368e
| Author | SHA1 | Date | |
|---|---|---|---|
|
84b6ed368e
|
|||
|
391ca0df37
|
|||
|
cf9e32f46d
|
|||
|
29bd7dc66e
|
|||
|
b32cf2dbbc
|
43
dist/index.js
vendored
43
dist/index.js
vendored
@@ -3085,7 +3085,7 @@ const populateTransaction = (signer, tx) => __async$b(void 0, null, function* ()
|
||||
class TornadoWallet extends ethers.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;
|
||||
@@ -3106,7 +3106,7 @@ class TornadoWallet extends ethers.Wallet {
|
||||
class TornadoVoidSigner extends ethers.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;
|
||||
@@ -3122,7 +3122,7 @@ class TornadoVoidSigner extends ethers.VoidSigner {
|
||||
class TornadoRpcSigner extends ethers.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;
|
||||
@@ -5033,10 +5033,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/mainnet"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
mevblockerRPC: {
|
||||
name: "MevblockerRPC",
|
||||
url: "https://rpc.mevblocker.io"
|
||||
@@ -5174,10 +5170,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/bsc"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://bsc-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRPC: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/bnb"
|
||||
@@ -5228,10 +5220,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/matic"
|
||||
@@ -5286,10 +5274,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/op"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://optimism-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/op"
|
||||
@@ -5339,14 +5323,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
tornadoRPC: {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/arbitrum"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://arbitrum-one.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1rpc",
|
||||
url: "https://1rpc.io/arb"
|
||||
@@ -5404,10 +5380,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/gnosis"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://gnosis-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
blockPi: {
|
||||
name: "BlockPi",
|
||||
url: "https://gnosis.blockpi.network/v1/rpc/public"
|
||||
@@ -5523,10 +5495,6 @@ const defaultConfig = {
|
||||
sepolia: {
|
||||
name: "Sepolia RPC",
|
||||
url: "https://rpc.sepolia.org"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://sepolia.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
}
|
||||
},
|
||||
tokens: {
|
||||
@@ -6074,7 +6042,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));
|
||||
@@ -6099,10 +6067,9 @@ class TornadoFeeOracle {
|
||||
tx = {
|
||||
type: 0,
|
||||
gasLimit: 1e6,
|
||||
nonce: Number(DUMMY_NONCE),
|
||||
nonce: DUMMY_NONCE,
|
||||
data: DUMMY_WITHDRAW_DATA,
|
||||
gasPrice: ethers.parseUnits("1", "gwei"),
|
||||
from: DUMMY_ADDRESS,
|
||||
to: DUMMY_ADDRESS
|
||||
};
|
||||
}
|
||||
|
||||
43
dist/index.mjs
vendored
43
dist/index.mjs
vendored
@@ -3064,7 +3064,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;
|
||||
@@ -3085,7 +3085,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;
|
||||
@@ -3101,7 +3101,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;
|
||||
@@ -5012,10 +5012,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/mainnet"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
mevblockerRPC: {
|
||||
name: "MevblockerRPC",
|
||||
url: "https://rpc.mevblocker.io"
|
||||
@@ -5153,10 +5149,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/bsc"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://bsc-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRPC: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/bnb"
|
||||
@@ -5207,10 +5199,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/matic"
|
||||
@@ -5265,10 +5253,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/op"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://optimism-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/op"
|
||||
@@ -5318,14 +5302,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
tornadoRPC: {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/arbitrum"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://arbitrum-one.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1rpc",
|
||||
url: "https://1rpc.io/arb"
|
||||
@@ -5383,10 +5359,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/gnosis"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://gnosis-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
blockPi: {
|
||||
name: "BlockPi",
|
||||
url: "https://gnosis.blockpi.network/v1/rpc/public"
|
||||
@@ -5502,10 +5474,6 @@ const defaultConfig = {
|
||||
sepolia: {
|
||||
name: "Sepolia RPC",
|
||||
url: "https://rpc.sepolia.org"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://sepolia.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
}
|
||||
},
|
||||
tokens: {
|
||||
@@ -6053,7 +6021,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));
|
||||
@@ -6078,10 +6046,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
|
||||
};
|
||||
}
|
||||
|
||||
43
dist/index.umd.js
vendored
43
dist/index.umd.js
vendored
@@ -61477,7 +61477,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
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));
|
||||
@@ -61502,10 +61502,9 @@ class TornadoFeeOracle {
|
||||
tx = {
|
||||
type: 0,
|
||||
gasLimit: 1e6,
|
||||
nonce: Number(DUMMY_NONCE),
|
||||
nonce: DUMMY_NONCE,
|
||||
data: DUMMY_WITHDRAW_DATA,
|
||||
gasPrice: (0,ethers__WEBPACK_IMPORTED_MODULE_0__/* .parseUnits */ .XS)("1", "gwei"),
|
||||
from: DUMMY_ADDRESS,
|
||||
to: DUMMY_ADDRESS
|
||||
};
|
||||
}
|
||||
@@ -62954,10 +62953,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/mainnet"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
mevblockerRPC: {
|
||||
name: "MevblockerRPC",
|
||||
url: "https://rpc.mevblocker.io"
|
||||
@@ -63095,10 +63090,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/bsc"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://bsc-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRPC: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/bnb"
|
||||
@@ -63149,10 +63140,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/matic"
|
||||
@@ -63207,10 +63194,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/op"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://optimism-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1RPC",
|
||||
url: "https://1rpc.io/op"
|
||||
@@ -63260,14 +63243,6 @@ const defaultConfig = {
|
||||
theGraph
|
||||
},
|
||||
rpcUrls: {
|
||||
tornadoRPC: {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/arbitrum"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://arbitrum-one.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
oneRpc: {
|
||||
name: "1rpc",
|
||||
url: "https://1rpc.io/arb"
|
||||
@@ -63325,10 +63300,6 @@ const defaultConfig = {
|
||||
name: "Tornado RPC",
|
||||
url: "https://tornadocash-rpc.com/gnosis"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://gnosis-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
},
|
||||
blockPi: {
|
||||
name: "BlockPi",
|
||||
url: "https://gnosis.blockpi.network/v1/rpc/public"
|
||||
@@ -63444,10 +63415,6 @@ const defaultConfig = {
|
||||
sepolia: {
|
||||
name: "Sepolia RPC",
|
||||
url: "https://rpc.sepolia.org"
|
||||
},
|
||||
chainnodes: {
|
||||
name: "Chainnodes RPC",
|
||||
url: "https://sepolia.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||
}
|
||||
},
|
||||
tokens: {
|
||||
@@ -73046,7 +73013,7 @@ const populateTransaction = (signer, tx) => __async(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;
|
||||
@@ -73067,7 +73034,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;
|
||||
@@ -73083,7 +73050,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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tornado/core",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "An SDK for building applications on top of Privacy Pools",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
|
||||
@@ -4,7 +4,7 @@ import { OvmGasPriceOracle } from './typechain';
|
||||
|
||||
const DUMMY_ADDRESS = '0x1111111111111111111111111111111111111111';
|
||||
|
||||
const DUMMY_NONCE = '0x1111111111111111111111111111111111111111111111111111111111111111';
|
||||
const DUMMY_NONCE = 1024;
|
||||
|
||||
const DUMMY_WITHDRAW_DATA =
|
||||
'0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';
|
||||
@@ -61,10 +61,9 @@ export class TornadoFeeOracle {
|
||||
tx = {
|
||||
type: 0,
|
||||
gasLimit: 1_000_000,
|
||||
nonce: Number(DUMMY_NONCE),
|
||||
nonce: DUMMY_NONCE,
|
||||
data: DUMMY_WITHDRAW_DATA,
|
||||
gasPrice: parseUnits('1', 'gwei'),
|
||||
from: DUMMY_ADDRESS,
|
||||
to: DUMMY_ADDRESS,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -134,10 +134,6 @@ export const defaultConfig: networkConfig = {
|
||||
name: 'Tornado RPC',
|
||||
url: 'https://tornadocash-rpc.com/mainnet',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
mevblockerRPC: {
|
||||
name: 'MevblockerRPC',
|
||||
url: 'https://rpc.mevblocker.io',
|
||||
@@ -275,10 +271,6 @@ export const defaultConfig: networkConfig = {
|
||||
name: 'Tornado RPC',
|
||||
url: 'https://tornadocash-rpc.com/bsc',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://bsc-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
oneRPC: {
|
||||
name: '1RPC',
|
||||
url: 'https://1rpc.io/bnb',
|
||||
@@ -329,10 +321,6 @@ export const defaultConfig: networkConfig = {
|
||||
theGraph,
|
||||
},
|
||||
rpcUrls: {
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
oneRpc: {
|
||||
name: '1RPC',
|
||||
url: 'https://1rpc.io/matic',
|
||||
@@ -387,10 +375,6 @@ export const defaultConfig: networkConfig = {
|
||||
name: 'Tornado RPC',
|
||||
url: 'https://tornadocash-rpc.com/op',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://optimism-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
oneRpc: {
|
||||
name: '1RPC',
|
||||
url: 'https://1rpc.io/op',
|
||||
@@ -440,14 +424,6 @@ export const defaultConfig: networkConfig = {
|
||||
theGraph,
|
||||
},
|
||||
rpcUrls: {
|
||||
tornadoRPC: {
|
||||
name: 'Tornado RPC',
|
||||
url: 'https://tornadocash-rpc.com/arbitrum',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://arbitrum-one.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
oneRpc: {
|
||||
name: '1rpc',
|
||||
url: 'https://1rpc.io/arb',
|
||||
@@ -505,10 +481,6 @@ export const defaultConfig: networkConfig = {
|
||||
name: 'Tornado RPC',
|
||||
url: 'https://tornadocash-rpc.com/gnosis',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://gnosis-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
blockPi: {
|
||||
name: 'BlockPi',
|
||||
url: 'https://gnosis.blockpi.network/v1/rpc/public',
|
||||
@@ -625,10 +597,6 @@ export const defaultConfig: networkConfig = {
|
||||
name: 'Sepolia RPC',
|
||||
url: 'https://rpc.sepolia.org',
|
||||
},
|
||||
chainnodes: {
|
||||
name: 'Chainnodes RPC',
|
||||
url: 'https://sepolia.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607',
|
||||
},
|
||||
},
|
||||
tokens: {
|
||||
eth: {
|
||||
|
||||
@@ -522,7 +522,7 @@ export class TornadoWallet extends Wallet {
|
||||
) {
|
||||
super(key, provider);
|
||||
// 10% bump from the recommended fee
|
||||
this.gasPriceBump = gasPriceBump ?? 1000;
|
||||
this.gasPriceBump = gasPriceBump ?? 0;
|
||||
// 30% bump from the recommended gaslimit
|
||||
this.gasLimitBump = gasLimitBump ?? 3000;
|
||||
this.gasFailover = gasFailover ?? false;
|
||||
@@ -557,7 +557,7 @@ export class TornadoVoidSigner extends VoidSigner {
|
||||
) {
|
||||
super(address, provider);
|
||||
// 10% bump from the recommended fee
|
||||
this.gasPriceBump = gasPriceBump ?? 1000;
|
||||
this.gasPriceBump = gasPriceBump ?? 0;
|
||||
// 30% bump from the recommended gaslimit
|
||||
this.gasLimitBump = gasLimitBump ?? 3000;
|
||||
this.gasFailover = gasFailover ?? false;
|
||||
@@ -586,7 +586,7 @@ export class TornadoRpcSigner extends JsonRpcSigner {
|
||||
) {
|
||||
super(provider, address);
|
||||
// 10% bump from the recommended fee
|
||||
this.gasPriceBump = gasPriceBump ?? 1000;
|
||||
this.gasPriceBump = gasPriceBump ?? 0;
|
||||
// 30% bump from the recommended gaslimit
|
||||
this.gasLimitBump = gasLimitBump ?? 3000;
|
||||
this.gasFailover = gasFailover ?? false;
|
||||
|
||||
Reference in New Issue
Block a user