@koralabs/kora-labs-common 4.4.5 → 4.4.7

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.
@@ -351,7 +351,35 @@ export interface PzSettings {
351
351
  valid_contracts: HexStringOrEmpty[];
352
352
  admin_creds: HexStringOrEmpty[];
353
353
  settings_cred: HexStringOrEmpty;
354
+ grace_period: number;
355
+ subhandle_share_percent: number;
354
356
  }
357
+ /**
358
+ *
359
+ * @property {number} [0] - treasury_fee
360
+ * @property {string} [1] - treasury_cred
361
+ * @property {number} [2] - pz_min_fee
362
+ * @property {[key: string]: string;} [3] - pz_providers
363
+ * @property {string[]} [4] - valid_contracts
364
+ * @property {string[]} [5] - admin_creds
365
+ * @property {string} [6] - settings_cred
366
+ * @property {number} [7] - grace_period
367
+ * @property {number} [8] - subhandle_share_percent
368
+ *
369
+ */
370
+ export type IPzSettingsDatumStruct = [
371
+ number,
372
+ string,
373
+ number,
374
+ {
375
+ [key: string]: string;
376
+ },
377
+ string[],
378
+ string[],
379
+ string,
380
+ number,
381
+ number
382
+ ];
355
383
  export interface ApprovedPolicies {
356
384
  [policyId: HexString]: {
357
385
  [patternMatch: HexString]: [number, number, number?];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "4.4.5",
3
+ "version": "4.4.7",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -43,6 +43,6 @@
43
43
  "bech32": "^2.0.0",
44
44
  "boolean": "^3.2.0",
45
45
  "cbor": "^9.0.2",
46
- "pluralize": "^8.0.0"
46
+ "pluralize-esm": "^9.0.5"
47
47
  }
48
- }
48
+ }
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ProtectedWords = void 0;
7
- const pluralize_1 = __importDefault(require("pluralize"));
7
+ const pluralize_esm_1 = __importDefault(require("pluralize-esm"));
8
8
  const protectedWords_1 = require("./protectedWords");
9
9
  const utils_1 = require("../utils");
10
10
  const interfaces_1 = require("../handles/interfaces");
@@ -230,11 +230,11 @@ class ProtectedWords {
230
230
  static setSingular(handle) {
231
231
  let singular = handle;
232
232
  let plural = handle;
233
- if (pluralize_1.default.isPlural(handle)) {
234
- singular = pluralize_1.default.singular(handle);
233
+ if (pluralize_esm_1.default.isPlural(handle)) {
234
+ singular = pluralize_esm_1.default.singular(handle);
235
235
  }
236
236
  else {
237
- plural = (0, pluralize_1.default)(handle);
237
+ plural = (0, pluralize_esm_1.default)(handle);
238
238
  }
239
239
  return { plural, singular };
240
240
  }