Fix typings & bump version to 1.2.1

This commit is contained in:
Theo 2023-08-23 13:16:37 -07:00
parent 76a0ccea68
commit 4cdd5c7538
3 changed files with 3 additions and 3 deletions

@ -1,6 +1,6 @@
{
"name": "@tornado/tornado-oracles",
"version": "1.2.0",
"version": "1.2.1",
"description": "Gas oracle for Tornado-specific transactions",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",

@ -138,7 +138,7 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle {
* @param {AvailableTokenSymbols | Uppercase<AvailableTokenSymbols>} currency Currency symbol
* @param {number | string } amount Withdrawal amount in selected currency
* @param {number | string } decimals Token (currency) decimals
* @param {BigNumberish} [refund=0] Refund in ETH, if withdrawed other tokens on Mainnet (not ETH)
* @param {BigNumberish} [refundInEth=0] Refund in ETH, if withdrawed other tokens on Mainnet (not ETH)
* @param {BigNumberish} [tokenPriceInEth] If withdrawing other token on Mainnet or Goerli, need to provide token price in ETH (in WEI)
* @returns {Promise<string>} Fee in WEI (hexed string)
*/

@ -50,7 +50,7 @@ export interface ITornadoFeeOracle {
currency: AvailableTokenSymbols,
amount: string,
decimals: number,
refund: BigNumberish,
refundInEth: BigNumberish,
tokenPriceInEth?: BigNumberish,
) => Promise<string>;
}