@koralabs/kora-labs-common 6.7.5 → 6.7.6
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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BasicAsset {
|
|
2
|
+
policyId: string;
|
|
3
|
+
hex: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Asset extends BasicAsset {
|
|
6
|
+
name: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
utxo?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
src?: string;
|
|
11
|
+
price?: number;
|
|
12
|
+
cost?: number;
|
|
13
|
+
validUntilDate?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface WalletHandle extends Asset {
|
|
16
|
+
active: unknown;
|
|
17
|
+
default: boolean;
|
|
18
|
+
image?: string;
|
|
19
|
+
imageUrl?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Browser-safe wallet/asset contracts (handle.me#938). Self-contained — NO runtime/backend
|
|
3
|
+
// imports — so ESM consumers like @koralabs/handles-shared-lit-components can use them (via
|
|
4
|
+
// `import type`) without the CJS/ESM interop break the package's heavier modules would cause.
|
|
5
|
+
// These canonicalize the duplicated local shapes in handles-shared-lit-components.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.AvailabilityResponseCode = exports.OAuthSocial = exports.SubHandleType = exports.HandleType = exports.Rarity = void 0;
|
|
4
18
|
var Rarity;
|
|
@@ -50,3 +64,4 @@ var AvailabilityResponseCode;
|
|
|
50
64
|
AvailabilityResponseCode[AvailabilityResponseCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
51
65
|
AvailabilityResponseCode[AvailabilityResponseCode["LOCKED"] = 423] = "LOCKED";
|
|
52
66
|
})(AvailabilityResponseCode = exports.AvailabilityResponseCode || (exports.AvailabilityResponseCode = {}));
|
|
67
|
+
__exportStar(require("./WalletHandle"), exports);
|