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", "name": "@tornado/tornado-oracles",
"version": "1.2.0", "version": "1.2.1",
"description": "Gas oracle for Tornado-specific transactions", "description": "Gas oracle for Tornado-specific transactions",
"main": "./lib/index.js", "main": "./lib/index.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",

@ -138,7 +138,7 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle {
* @param {AvailableTokenSymbols | Uppercase<AvailableTokenSymbols>} currency Currency symbol * @param {AvailableTokenSymbols | Uppercase<AvailableTokenSymbols>} currency Currency symbol
* @param {number | string } amount Withdrawal amount in selected currency * @param {number | string } amount Withdrawal amount in selected currency
* @param {number | string } decimals Token (currency) decimals * @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) * @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) * @returns {Promise<string>} Fee in WEI (hexed string)
*/ */

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