Skip to content

Commit

Permalink
bump version to v0.0.23 and update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Apr 8, 2024
1 parent 28a47e1 commit d924a80
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 51 deletions.
46 changes: 31 additions & 15 deletions dist/utils/HavenoUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,35 @@ export default class HavenoUtils {
*/
static waitFor(durationMs: number): Promise<unknown>;
/**
* Divide one bigint by another.
* Convert XMR to atomic units.
*
* @param {number | string} amountXmr - amount in XMR to convert to atomic units
* @return {bigint} amount in atomic units
*/
static xmrToAtomicUnits(amountXmr: number | string): bigint;
/**
* Convert atomic units to XMR.
*
* @param {bigint | string} amountAtomicUnits - amount in atomic units to convert to XMR
* @return {number} amount in XMR
*/
static atomicUnitsToXmr(amountAtomicUnits: bigint | string): number;
/**
* Divide one atomic units by another.
*
* @param {bigint} a dividend
* @param {bigint} b divisor
* @param {bigint} au1 dividend
* @param {bigint} au2 divisor
* @returns {number} the result
*/
static divideBI(a: bigint, b: bigint): number;
static divide(au1: bigint, au2: bigint): number;
/**
* Multiply a bigint by a number or bigint.
*
* @param a bigint to multiply
* @param b bigint or number to multiply by
* @returns the product as a bigint
*/
static multiply(a: bigint, b: number | bigint): bigint;
/**
* Calculate the difference from a first bigint to a second, as a percentage (float).
*
Expand All @@ -72,19 +94,13 @@ export default class HavenoUtils {
*/
static abs(a: bigint): bigint;
/**
* Convert XMR to atomic units.
*
* @param {number | string} amountXmr - amount in XMR to convert to atomic units
* @return {bigint} amount in atomic units
*/
static xmrToAtomicUnits(amountXmr: number | string): bigint;
/**
* Convert atomic units to XMR.
* Return the maximum of two bigints.
*
* @param {bigint | string} amountAtomicUnits - amount in atomic units to convert to XMR
* @return {number} amount in XMR
* @param {bigint} bi1 first bigint
* @param {bigint} bi2 second bigint
* @returns {bigint} the maximum of the two bigints
*/
static atomicUnitsToXmr(amountAtomicUnits: bigint | string): number;
static max(bi1: bigint, bi2: bigint): bigint;
/**
* Get a validated payment method id from a string or form id.
*
Expand Down
72 changes: 40 additions & 32 deletions dist/utils/HavenoUtils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils/HavenoUtils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haveno-ts",
"version": "0.0.22",
"version": "0.0.23",
"description": "Haveno TypeScript interface",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit d924a80

Please sign in to comment.