@koralabs/kora-labs-common 5.1.22 → 5.1.24

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.
@@ -1,4 +1,4 @@
1
- import { IHandleStats, IUTxO } from '..';
1
+ import { IHandleFileContent, IHandleStats, IUTxO } from '..';
2
2
  import { HandlePaginationModel } from '../models/handlePagination.model';
3
3
  import { HandleSearchModel } from '../models/handleSearch.model';
4
4
  import { HolderPaginationModel } from '../models/holderPagination.model';
@@ -41,10 +41,8 @@ export interface IHandlesRepository {
41
41
  };
42
42
  setMetrics: (metrics: IHandleStoreMetrics) => void;
43
43
  getMetrics: () => IHandleStats;
44
- prepareHandlesStorage: (loadS3: boolean) => Promise<{
45
- slot: number;
46
- hash: string;
47
- } | null>;
44
+ getFilesContent(): Promise<IHandleFileContent[] | null>;
45
+ prepareHandlesStorage: (fileContent: IHandleFileContent) => Promise<void>;
48
46
  rollBackToGenesis: () => Promise<void>;
49
47
  isCaughtUp: () => boolean;
50
48
  burnHandle: (handleName: string, slotNumber: number) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "5.1.22",
3
+ "version": "5.1.24",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -4,6 +4,7 @@ export { handleDatumSchema } from './schema/handleData';
4
4
  export { marketplaceDatumSchema } from './schema/marketplaceDatum';
5
5
  export { portalSchema } from './schema/portal';
6
6
  export { socialsSchema } from './schema/socials';
7
+ export { subHandleSettingsDatumSchema } from './schema/subHandleSettings';
7
8
  export declare enum DefaultTextFormat {
8
9
  UTF8 = "utf8",
9
10
  HEX = "hex"
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.decodeCborToJson = exports.encodeJsonToDatum = exports.DupeKey = exports.DefaultTextFormat = exports.socialsSchema = exports.portalSchema = exports.marketplaceDatumSchema = exports.handleDatumSchema = exports.designerSchema = void 0;
26
+ exports.decodeCborToJson = exports.encodeJsonToDatum = exports.DupeKey = exports.DefaultTextFormat = exports.subHandleSettingsDatumSchema = exports.socialsSchema = exports.portalSchema = exports.marketplaceDatumSchema = exports.handleDatumSchema = exports.designerSchema = void 0;
27
27
  const boolean_1 = require("boolean");
28
28
  const cbor = __importStar(require("cbor"));
29
29
  var designer_1 = require("./schema/designer");
@@ -36,6 +36,8 @@ var portal_1 = require("./schema/portal");
36
36
  Object.defineProperty(exports, "portalSchema", { enumerable: true, get: function () { return portal_1.portalSchema; } });
37
37
  var socials_1 = require("./schema/socials");
38
38
  Object.defineProperty(exports, "socialsSchema", { enumerable: true, get: function () { return socials_1.socialsSchema; } });
39
+ var subHandleSettings_1 = require("./schema/subHandleSettings");
40
+ Object.defineProperty(exports, "subHandleSettingsDatumSchema", { enumerable: true, get: function () { return subHandleSettings_1.subHandleSettingsDatumSchema; } });
39
41
  // The five ways to represent metadata/datum:
40
42
  // Json (cardano-cli can take this with --tx-out-datum-json-value)
41
43
  // TxMetadataJson ("Detailed Schema")