koilib 9.0.0 → 9.1.0

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/src/interface.ts CHANGED
@@ -453,16 +453,10 @@ export interface RecoverPublicKeyOptions {
453
453
  * This function comes as a response after sending a transaction.
454
454
  * See [[Provider.sendTransaction]]
455
455
  *
456
- * @param type - Type must be "byBlock" (default) or "byTransactionId".
456
+ * @param type - Type must be "byBlock" or "byTransactionId" (default).
457
457
  * _byBlock_ will query the blockchain to get blocks and search for the
458
458
  * transaction there. _byTransactionId_ will query the "transaction store"
459
- * microservice to search the transaction by its id. If non of them is
460
- * specified the function will use "byBlock" (as "byTransactionId"
461
- * requires the transaction store, which is an optional microservice).
462
- *
463
- * When _byBlock_ is used it returns the block number.
464
- *
465
- * When _byTransactionId_ is used it returns the block id.
459
+ * microservice to search the transaction by its id.
466
460
  *
467
461
  * @param timeout - Timeout in milliseconds. By default it is 15000
468
462
  */
package/src/utils.ts CHANGED
@@ -280,6 +280,7 @@ export function formatUnits(
280
280
  decimals: number
281
281
  ): string {
282
282
  let v = typeof value === "string" ? value : BigInt(value).toString();
283
+ if (!decimals) return v;
283
284
  const sign = v[0] === "-" ? "-" : "";
284
285
  v = v.replace("-", "").padStart(decimals + 1, "0");
285
286
  const integerPart = v
@@ -1837,4 +1838,6 @@ export const nftAbi: Abi = {
1837
1838
  },
1838
1839
  };
1839
1840
 
1841
+ export * from "./abis/nicknamesAbi";
1842
+
1840
1843
  //export const ProtocolTypes = protocolJson;