Commit Graph

4 Commits

Author SHA1 Message Date
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
2023-09-04 13:40:29 -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
2e3273b7bc Stylistic changes in README 2023-08-21 09:18:49 -07:00
c50caf3a48 Add readme with examples 2023-08-18 23:01:33 -07:00