Commit Graph

17 Commits

Author SHA1 Message Date
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 2023-08-28 03:44:25 -07:00
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 2023-08-27 05:00:40 -07:00
42b57f8734 Bump gas limit for any transaction type in V4 fee oracle, if bump percent provided & change lib version to 1.3.1 2023-08-27 00:42:13 -07:00
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 2023-08-26 09:56:29 -07:00
de369f405c Speed up getGas function via Promise.all & bump version to 1.2.2 2023-08-25 07:52:23 -07:00
4cdd5c7538 Fix typings & bump version to 1.2.1 2023-08-23 13:16:54 -07:00
76a0ccea68 Fix refund calculation: we need to use different gas limits for each ERC tokens & bump lib version to 1.2.0 2023-08-22 11:57:03 -07:00
40bf17177b Set function to get optimism l1 fee as public & bump version to 1.1.0 2023-08-22 11:23:25 -07:00
3c1352ea41 Update to stable version 1.0.0:
- Change functions naming to more intuitive: 'getGasPrice' returns gas price in hexed number, 'getGasPriceParams' now returns legacy or EIP-1559 gas parameters
- The library has become more versatile for working with third-party libraries (without BigNumber from 'ethers' library in return values, only hexed string-numbers)
- Simplify functions for refund calculations, no need to provide transaction type, because we need to calculate refund only on user side
- Add interface for TokenPriceOracle and change typings
2023-08-22 06:40:18 -07:00
0aa15627f4 Add fallback from feeOracleV5 to V4 in getGasLimit method, if no tx object provided & bump package version to 0.3.0 2023-08-21 09:30:24 -07:00
c63e6a320f Add getter to TokenPriceOracle for default token prices & bump version to 0.2.3 2023-08-20 11:49:12 -07:00
f5244ae722 Update bump percent for V4 relayer withdrawals & bump version to 0.2.2 2023-08-20 09:55:49 -07:00
03e6af5614 Fix tx object in getGas method & bump version to 0.2.1 2023-08-19 10:55:41 -07:00
85b057fbed Add specific Tornado transaction type - relayer_withdrawal_check_v4 - for backwards compatibility with old gas calculation algorithm 2023-08-19 10:44:27 -07:00
6bff5b560f Add publish config for npm Gitea registry 2023-08-18 23:35:29 -07:00
4a1edeaef9 Bump version to 0.1.1 & fix repo link 2023-08-18 23:17:22 -07:00
b7769d4548 Initial commit 2023-08-17 14:39:57 -07:00