@koralabs/kora-labs-common 3.1.2 → 3.1.3
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/package.json
CHANGED
package/utils/cbor/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
export { designerSchema } from './schema/designer';
|
|
3
|
+
export { subHandleSettingsDatumSchema } from './schema/subHandleSettings';
|
|
4
|
+
export { handleDatumSchema } from './schema/handleData';
|
|
5
|
+
export { portalSchema } from './schema/portal';
|
|
6
|
+
export { socialsSchema } from './schema/socials';
|
|
2
7
|
export declare enum KeyType {
|
|
3
8
|
UTF8 = "utf8",
|
|
4
9
|
HEX = "hex"
|
|
@@ -23,4 +28,3 @@ export declare const decodeCborToJson: ({ cborString, schema, defaultKeyType, fo
|
|
|
23
28
|
defaultKeyType?: KeyType | undefined;
|
|
24
29
|
forJson?: boolean | undefined;
|
|
25
30
|
}) => Promise<any>;
|
|
26
|
-
export {};
|
package/utils/cbor/index.js
CHANGED
|
@@ -23,9 +23,19 @@ 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.KeyType = void 0;
|
|
26
|
+
exports.decodeCborToJson = exports.encodeJsonToDatum = exports.DupeKey = exports.KeyType = exports.socialsSchema = exports.portalSchema = exports.handleDatumSchema = exports.subHandleSettingsDatumSchema = exports.designerSchema = void 0;
|
|
27
27
|
const cbor = __importStar(require("cbor"));
|
|
28
28
|
const boolean_1 = require("boolean");
|
|
29
|
+
var designer_1 = require("./schema/designer");
|
|
30
|
+
Object.defineProperty(exports, "designerSchema", { enumerable: true, get: function () { return designer_1.designerSchema; } });
|
|
31
|
+
var subHandleSettings_1 = require("./schema/subHandleSettings");
|
|
32
|
+
Object.defineProperty(exports, "subHandleSettingsDatumSchema", { enumerable: true, get: function () { return subHandleSettings_1.subHandleSettingsDatumSchema; } });
|
|
33
|
+
var handleData_1 = require("./schema/handleData");
|
|
34
|
+
Object.defineProperty(exports, "handleDatumSchema", { enumerable: true, get: function () { return handleData_1.handleDatumSchema; } });
|
|
35
|
+
var portal_1 = require("./schema/portal");
|
|
36
|
+
Object.defineProperty(exports, "portalSchema", { enumerable: true, get: function () { return portal_1.portalSchema; } });
|
|
37
|
+
var socials_1 = require("./schema/socials");
|
|
38
|
+
Object.defineProperty(exports, "socialsSchema", { enumerable: true, get: function () { return socials_1.socialsSchema; } });
|
|
29
39
|
// The five ways to represent metadata/datum:
|
|
30
40
|
// Json (cardano-cli can take this with --tx-out-datum-json-value)
|
|
31
41
|
// TxMetadataJson ("Detailed Schema")
|