@koralabs/kora-labs-common 6.1.7 → 6.1.9

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.
@@ -72,10 +72,15 @@ export declare enum ScriptType {
72
72
  PZ_CONTRACT = "pz_contract",
73
73
  SUB_HANDLE_SETTINGS = "sub_handle_settings",
74
74
  MARKETPLACE_CONTRACT = "marketplace_contract",
75
- DEMI_MINT = "demi_mint",
76
75
  DEMI_MINT_PROXY = "demi_mint_proxy",
76
+ DEMI_MINT = "demi_mint",
77
77
  DEMI_MINTING_DATA = "demi_minting_data",
78
- DEMI_ORDERS = "demi_orders"
78
+ DEMI_ORDERS = "demi_orders",
79
+ HAL_MINT_PROXY = "hal_mint_proxy",
80
+ HAL_MINT = "hal_mint",
81
+ HAL_MINTING_DATA = "hal_minting_data",
82
+ HAL_ORDERS_SPEND = "hal_orders_spend",
83
+ HAL_REF_SPEND = "hal_ref_spend"
79
84
  }
80
85
  export interface ScriptDetails {
81
86
  handle: string;
@@ -14,10 +14,17 @@ var ScriptType;
14
14
  ScriptType["PZ_CONTRACT"] = "pz_contract";
15
15
  ScriptType["SUB_HANDLE_SETTINGS"] = "sub_handle_settings";
16
16
  ScriptType["MARKETPLACE_CONTRACT"] = "marketplace_contract";
17
- ScriptType["DEMI_MINT"] = "demi_mint";
17
+ // De-Mi
18
18
  ScriptType["DEMI_MINT_PROXY"] = "demi_mint_proxy";
19
+ ScriptType["DEMI_MINT"] = "demi_mint";
19
20
  ScriptType["DEMI_MINTING_DATA"] = "demi_minting_data";
20
21
  ScriptType["DEMI_ORDERS"] = "demi_orders";
22
+ // H.A.L. mint
23
+ ScriptType["HAL_MINT_PROXY"] = "hal_mint_proxy";
24
+ ScriptType["HAL_MINT"] = "hal_mint";
25
+ ScriptType["HAL_MINTING_DATA"] = "hal_minting_data";
26
+ ScriptType["HAL_ORDERS_SPEND"] = "hal_orders_spend";
27
+ ScriptType["HAL_REF_SPEND"] = "hal_ref_spend";
21
28
  })(ScriptType = exports.ScriptType || (exports.ScriptType = {}));
22
29
  var HandleType;
23
30
  (function (HandleType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "6.1.7",
3
+ "version": "6.1.9",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/utils/index.d.ts CHANGED
@@ -20,5 +20,6 @@ export declare const makeObjectWithoutPrototype: () => any;
20
20
  export declare const ExcludesFalse: <T>(n?: T | null | undefined) => n is T;
21
21
  export declare const diff: (lhs: any, rhs: any) => any;
22
22
  export declare const mapStringifyReplacer: (_key: any, value: any) => any;
23
+ export declare const mapNoKeysStringifyReplacer: (_key: any, value: any) => any;
23
24
  export { decodeCborToJson, encodeJsonToDatum, DefaultTextFormat as KeyType } from './cbor';
24
25
  export * from './crypto';
package/utils/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.KeyType = exports.encodeJsonToDatum = exports.decodeCborToJson = exports.mapStringifyReplacer = exports.diff = exports.ExcludesFalse = exports.makeObjectWithoutPrototype = exports.isEmptyObject = exports.isDate = exports.hasOwnProperty = exports.isObject = exports.isEmpty = exports.objectHasKeys = exports.getElapsedTime = exports.getSlotNumberFromDate = exports.getDateFromSlot = exports.isAlphaNumeric = exports.isNullEmptyOrUndefined = exports.isNumeric = exports.asyncForEach = exports.awaitForEach = exports.chunk = exports.toADA = exports.toLovelace = exports.delay = void 0;
17
+ exports.KeyType = exports.encodeJsonToDatum = exports.decodeCborToJson = exports.mapNoKeysStringifyReplacer = exports.mapStringifyReplacer = exports.diff = exports.ExcludesFalse = exports.makeObjectWithoutPrototype = exports.isEmptyObject = exports.isDate = exports.hasOwnProperty = exports.isObject = exports.isEmpty = exports.objectHasKeys = exports.getElapsedTime = exports.getSlotNumberFromDate = exports.getDateFromSlot = exports.isAlphaNumeric = exports.isNullEmptyOrUndefined = exports.isNumeric = exports.asyncForEach = exports.awaitForEach = exports.chunk = exports.toADA = exports.toLovelace = exports.delay = void 0;
18
18
  const delay = (ms) => {
19
19
  return new Promise((resolve) => setTimeout(resolve, ms));
20
20
  };
@@ -147,16 +147,22 @@ const diff = (lhs, rhs) => {
147
147
  exports.diff = diff;
148
148
  const mapStringifyReplacer = (_key, value) => {
149
149
  if (value instanceof Map) {
150
- return {
151
- dataType: 'Map',
152
- value: Array.from(value.entries())
153
- };
150
+ return Array.from(value.entries());
154
151
  }
155
152
  else {
156
153
  return value;
157
154
  }
158
155
  };
159
156
  exports.mapStringifyReplacer = mapStringifyReplacer;
157
+ const mapNoKeysStringifyReplacer = (_key, value) => {
158
+ if (value instanceof Map) {
159
+ return Array.from(value.values());
160
+ }
161
+ else {
162
+ return value;
163
+ }
164
+ };
165
+ exports.mapNoKeysStringifyReplacer = mapNoKeysStringifyReplacer;
160
166
  var cbor_1 = require("./cbor");
161
167
  Object.defineProperty(exports, "decodeCborToJson", { enumerable: true, get: function () { return cbor_1.decodeCborToJson; } });
162
168
  Object.defineProperty(exports, "encodeJsonToDatum", { enumerable: true, get: function () { return cbor_1.encodeJsonToDatum; } });