@oceanprotocol/lib 3.0.0-next.0 → 3.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/src/utils/ContractUtils.d.ts +2 -0
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export declare function getFairGasPrice(signer: Signer, gasFeeMultiplier: number
|
|
|
17
17
|
export declare function getTokenDecimals(signer: Signer, token: string): Promise<any>;
|
|
18
18
|
/**
|
|
19
19
|
* Converts an amount of units to tokens
|
|
20
|
+
* @param {Signer} signer - The signer object to use.
|
|
20
21
|
* @param {string} token - The token to convert
|
|
21
22
|
* @param {string} amount - The amount of units to convert
|
|
22
23
|
* @param {number} [tokenDecimals] - The number of decimals in the token
|
|
@@ -25,6 +26,7 @@ export declare function getTokenDecimals(signer: Signer, token: string): Promise
|
|
|
25
26
|
export declare function unitsToAmount(signer: Signer, token: string, amount: string, tokenDecimals?: number): Promise<string>;
|
|
26
27
|
/**
|
|
27
28
|
* Converts an amount of tokens to units
|
|
29
|
+
* @param {Signer} signer - The signer object to use.
|
|
28
30
|
* @param {string} token - The token to convert
|
|
29
31
|
* @param {string} amount - The amount of tokens to convert
|
|
30
32
|
* @param {number} [tokenDecimals] - The number of decimals of the token
|
package/package.json
CHANGED