Commit Graph

  • 16ffc1e491
    Add built files for test build tornadocontrib 2024-11-23 18:45:02 +0000
  • c9f43ff292
    Remove broken external oracle and fixed EIP-1559 gasPrice calculation main tornadocontrib 2024-11-23 18:12:22 +0000
  • 0e9fe6970d
    Publish built lib for testing simple-build Tornado Contrib 2024-05-12 17:49:53 +0000
  • 0fa430f85d
    Improve L1 fee calculation simple Tornado Contrib 2024-05-12 23:12:32 +0000
  • 0649c2da4c
    Mark version as 4 Tornado Contrib 2024-05-12 20:58:59 +0000
  • 15b7967c03
    Fixed token symbol formatting Tornado Contrib 2024-05-12 20:52:26 +0000
  • 3271e88b13
    Simplify library, use codes from @tornado/core Tornado Contrib 2024-05-12 17:48:05 +0000
  • ea36e48336
    Using ES6, Multicall3, and latest OffchainOracle ABI and regenerate typechain definitions Tornado Contrib 2024-05-12 17:46:35 +0000
  • 9def6cd536 Fix & extend JSDoc notes Theo 2023-09-06 17:38:12 -0700
  • 65af25e76b Return zero value from calculateRefundInETH function if called on incorrect chain or with native token or tokenSymbol is invalid & bump package version to 3.3.0 Theo 2023-09-06 15:43:31 -0700
  • 2ce8cafdbd Calculate refund on user side only if no value provided (strictly undefined) Theo 2023-09-06 14:21:12 -0700
  • 394d6cab5c Add public field version to oracle class Theo 2023-09-06 14:07:35 -0700
  • 9ef88948d2 Calculate refund in calculateWithdrawalFeeViaRelayer, if correct value didn't provided when calculating for user_withdrawal transaction type & bump to 3.1.0 Theo 2023-09-04 13:50:35 -0700
  • be7f911a17 Update package to version 3.0.0: - Simplify getGasParams function by including additional L1 fee in gasLimit - Make calculateRefund functions non-async by providing gas price (its ok, because refund needs to be calculated only on user side, where gas price is known) - Allow passing to calculateWithdrawalFeeViaRelayer function predefined gas price and gas limit to not refetch/recalculate those values - Pass arguments as objects to functions with many optional parameters Theo 2023-09-04 13:26:46 -0700
  • ae9b15b7ed Set minPriority for BSC as 3 GWEI to not underprice transaction Theo 2023-08-30 08:10:43 -0700
  • 0d3ea02015 Bump library version to 2.0.0: - Fix BSC gas price estimation: use 'instant' price for gas instead of 'fast', because 'fast' is about 1 GWEI, and 'instant' about 3 GWEI, and 'fast' transaction can take more than 2-3 hours to execute - Remove unnecessary parameter type in all functions that used to get gas price(-s) Theo 2023-08-28 09:51:21 -0700
  • 90471e0073 Fix gas limit function in V4 oracle: if transaction type not specified, but transaction data provided, need to bump estimated limit Theo 2023-08-28 09:05:53 -0700
  • c3bfb381b7 Fix bump function: round to lower when BigNumber stores float value before converting to ethers BigNumber Theo 2023-08-28 09:01:19 -0700
  • 342c34b07a Fix gas price estimation for V5 oracle: now, if bumpPercent not specified, using bumpPercent depending on tx type and chain ID & bump package version to 1.4.0 Theo 2023-08-28 03:44:25 -0700
  • 57c24e21eb Add parameters to modify gas price bump percent and gas limit bump percent in getGas and getGasParams functions Theo 2023-08-28 03:41:50 -0700
  • 583f3e90dd Fix JSDoc typings for getGasLimit function in parent fee oracle abstract class Theo 2023-08-27 08:28:39 -0700
  • fb772fa300 Add Math.ceil while calculating relayer fee percent, because if relayer has 0.07% fee, in JS multiplication result of 0.07 * 1e10 is 700000000.0000001 & bump version to 1.3.2 Theo 2023-08-27 05:00:40 -0700
  • 42b57f8734 Bump gas limit for any transaction type in V4 fee oracle, if bump percent provided & change lib version to 1.3.1 Theo 2023-08-27 00:41:05 -0700
  • a0476b0e34 Add function to get all gas params - gas price, gas limit and L1 fee, if exists, in one object & bump lib version to 1.3.0 Theo 2023-08-26 09:56:29 -0700
  • de369f405c Speed up getGas function via Promise.all & bump version to 1.2.2 Theo 2023-08-25 07:52:23 -0700
  • 4cdd5c7538 Fix typings & bump version to 1.2.1 Theo 2023-08-23 13:16:37 -0700
  • 76a0ccea68 Fix refund calculation: we need to use different gas limits for each ERC tokens & bump lib version to 1.2.0 Theo 2023-08-22 11:56:38 -0700
  • 40bf17177b Set function to get optimism l1 fee as public & bump version to 1.1.0 Theo 2023-08-22 11:23:25 -0700
  • 3c1352ea41 Update to stable version 1.0.0: Theo 2023-08-22 06:39:59 -0700
  • 1ace796f8a Don't prettify service files, abis and autogenerated contracts by typechain Theo 2023-08-22 06:23:12 -0700
  • 0aa15627f4 Add fallback from feeOracleV5 to V4 in getGasLimit method, if no tx object provided & bump package version to 0.3.0 Theo 2023-08-21 09:30:24 -0700
  • 96616d8cf4 Create public function in feeOracle to calculate refund in selected token & change typings Theo 2023-08-21 09:27:16 -0700
  • 0d1ac74b11 Change node version to 14.21.3 Theo 2023-08-21 09:23:12 -0700
  • 2e3273b7bc Stylistic changes in README Theo 2023-08-21 09:18:49 -0700
  • c63e6a320f Add getter to TokenPriceOracle for default token prices & bump version to 0.2.3 Theo 2023-08-20 11:49:12 -0700
  • f5244ae722 Update bump percent for V4 relayer withdrawals & bump version to 0.2.2 Theo 2023-08-20 09:55:49 -0700
  • 03e6af5614 Fix tx object in getGas method & bump version to 0.2.1 Theo 2023-08-19 10:55:41 -0700
  • 85b057fbed Add specific Tornado transaction type - relayer_withdrawal_check_v4 - for backwards compatibility with old gas calculation algorithm Theo 2023-08-19 10:44:07 -0700
  • 6bff5b560f Add publish config for npm Gitea registry Theo 2023-08-18 23:35:29 -0700
  • 4a1edeaef9 Bump version to 0.1.1 & fix repo link Theo 2023-08-18 23:02:24 -0700
  • c50caf3a48 Add readme with examples Theo 2023-08-18 23:01:33 -0700
  • 2da3bf094f Add function to get gas price as hex string Theo 2023-08-18 23:01:18 -0700
  • b7769d4548 Initial commit Theo 2023-08-17 14:38:38 -0700