@sudobility/types 1.9.38 → 1.9.39
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/dist/index.js +7 -45
- package/dist/index.js.map +1 -1
- package/dist/types/blockchain/common.js +9 -16
- package/dist/types/blockchain/common.js.map +1 -1
- package/dist/types/blockchain/index.js +2 -16
- package/dist/types/blockchain/index.js.map +1 -1
- package/dist/types/blockchain/validation.js +6 -12
- package/dist/types/blockchain/validation.js.map +1 -1
- package/dist/types/business/enums.js +46 -49
- package/dist/types/business/enums.js.map +1 -1
- package/dist/types/business/index.js +2 -31
- package/dist/types/business/index.js.map +1 -1
- package/dist/types/business/wallet-status.js +10 -16
- package/dist/types/business/wallet-status.js.map +1 -1
- package/dist/types/common.js +1 -2
- package/dist/types/common.js.map +1 -1
- package/dist/types/config/app-config.js +1 -2
- package/dist/types/config/app-config.js.map +1 -1
- package/dist/types/config/environment.js +2 -5
- package/dist/types/config/environment.js.map +1 -1
- package/dist/types/config/index.js +1 -5
- package/dist/types/config/index.js.map +1 -1
- package/dist/types/entity/entity.js +6 -9
- package/dist/types/entity/entity.js.map +1 -1
- package/dist/types/entity/index.js +4 -20
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/entity/permissions.js +9 -14
- package/dist/types/entity/permissions.js.map +1 -1
- package/dist/types/entity/requests.js +1 -2
- package/dist/types/entity/requests.js.map +1 -1
- package/dist/types/entity/responses.js +1 -2
- package/dist/types/entity/responses.js.map +1 -1
- package/dist/types/index.js +7 -23
- package/dist/types/index.js.map +1 -1
- package/dist/types/infrastructure/analytics.js +3 -7
- package/dist/types/infrastructure/analytics.js.map +1 -1
- package/dist/types/infrastructure/api.js +5 -9
- package/dist/types/infrastructure/api.js.map +1 -1
- package/dist/types/infrastructure/index.js +4 -14
- package/dist/types/infrastructure/index.js.map +1 -1
- package/dist/types/infrastructure/navigation.js +1 -2
- package/dist/types/infrastructure/network.js +1 -4
- package/dist/types/infrastructure/network.js.map +1 -1
- package/dist/types/infrastructure/wallet.js +2 -5
- package/dist/types/infrastructure/wallet.js.map +1 -1
- package/dist/types/subscription/index.js +1 -17
- package/dist/types/subscription/index.js.map +1 -1
- package/dist/types/subscription/rate-limits.js +2 -5
- package/dist/types/subscription/rate-limits.js.map +1 -1
- package/dist/utils/async-helpers.js +7 -16
- package/dist/utils/async-helpers.js.map +1 -1
- package/dist/utils/auth/auth.js +14 -24
- package/dist/utils/auth/auth.js.map +1 -1
- package/dist/utils/auth/index.js +1 -12
- package/dist/utils/auth/index.js.map +1 -1
- package/dist/utils/blockchain/address.js +20 -31
- package/dist/utils/blockchain/address.js.map +1 -1
- package/dist/utils/blockchain/event-helpers.js +9 -20
- package/dist/utils/blockchain/event-helpers.js.map +1 -1
- package/dist/utils/blockchain/index.js +3 -26
- package/dist/utils/blockchain/index.js.map +1 -1
- package/dist/utils/constants/application.js +2 -20
- package/dist/utils/constants/application.js.map +1 -1
- package/dist/utils/constants/index.js +2 -23
- package/dist/utils/constants/index.js.map +1 -1
- package/dist/utils/constants/status-values.js +1 -4
- package/dist/utils/constants/status-values.js.map +1 -1
- package/dist/utils/formatting/currency.js +6 -11
- package/dist/utils/formatting/currency.js.map +1 -1
- package/dist/utils/formatting/date.js +7 -16
- package/dist/utils/formatting/date.js.map +1 -1
- package/dist/utils/formatting/index.js +3 -33
- package/dist/utils/formatting/index.js.map +1 -1
- package/dist/utils/formatting/string.js +16 -34
- package/dist/utils/formatting/string.js.map +1 -1
- package/dist/utils/index.js +8 -24
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logging/index.js +1 -11
- package/dist/utils/logging/index.js.map +1 -1
- package/dist/utils/logging/logger.js +2 -10
- package/dist/utils/logging/logger.js.map +1 -1
- package/dist/utils/url/index.js +1 -8
- package/dist/utils/url/index.js.map +1 -1
- package/dist/utils/url/url-params.js +1 -6
- package/dist/utils/url/url-params.js.map +1 -1
- package/dist/utils/validation/index.js +2 -24
- package/dist/utils/validation/index.js.map +1 -1
- package/dist/utils/validation/type-validation.js +27 -48
- package/dist/utils/validation/type-validation.js.map +1 -1
- package/dist/utils/validation/web3-username-validator.js +6 -10
- package/dist/utils/validation/web3-username-validator.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @johnqh/types - Common TypeScript types for Web3 email projects
|
|
4
3
|
*
|
|
@@ -9,55 +8,18 @@
|
|
|
9
8
|
* @version 1.0.0
|
|
10
9
|
* @license MIT
|
|
11
10
|
*/
|
|
12
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(o, k2, desc);
|
|
19
|
-
}) : (function(o, m, k, k2) {
|
|
20
|
-
if (k2 === undefined) k2 = k;
|
|
21
|
-
o[k2] = m[k];
|
|
22
|
-
}));
|
|
23
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.ProcessedEventName = exports.ContractType = exports.StorageType = exports.WalletType = exports.ChainType = exports.AnalyticsEvent = exports.TransactionStatus = exports.MessageType = exports.InfoType = exports.NotificationType = exports.RequestStatus = exports.MobileView = exports.EmailComposeType = exports.FontSize = exports.Theme = exports.Chain = exports.AuthStatus = exports.debounceAsync = exports.clearExpiredCache = exports.withCache = exports.withTimeout = exports.safeParallel = exports.withLoadingState = exports.safeAsync = void 0;
|
|
28
11
|
// Re-export all types from the types module
|
|
29
|
-
|
|
12
|
+
export * from './types';
|
|
30
13
|
// Re-export all utilities
|
|
31
|
-
|
|
14
|
+
export * from './utils';
|
|
32
15
|
// Export async utilities
|
|
33
|
-
|
|
34
|
-
Object.defineProperty(exports, "safeAsync", { enumerable: true, get: function () { return utils_1.safeAsync; } });
|
|
35
|
-
Object.defineProperty(exports, "withLoadingState", { enumerable: true, get: function () { return utils_1.withLoadingState; } });
|
|
36
|
-
Object.defineProperty(exports, "safeParallel", { enumerable: true, get: function () { return utils_1.safeParallel; } });
|
|
37
|
-
Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return utils_1.withTimeout; } });
|
|
38
|
-
Object.defineProperty(exports, "withCache", { enumerable: true, get: function () { return utils_1.withCache; } });
|
|
39
|
-
Object.defineProperty(exports, "clearExpiredCache", { enumerable: true, get: function () { return utils_1.clearExpiredCache; } });
|
|
40
|
-
Object.defineProperty(exports, "debounceAsync", { enumerable: true, get: function () { return utils_1.debounceAsync; } });
|
|
16
|
+
export { safeAsync, withLoadingState, safeParallel, withTimeout, withCache, clearExpiredCache, debounceAsync, } from './utils';
|
|
41
17
|
// Export the most commonly used enums
|
|
42
|
-
|
|
18
|
+
export {
|
|
43
19
|
// Business enums
|
|
44
|
-
|
|
45
|
-
Object.defineProperty(exports, "Chain", { enumerable: true, get: function () { return types_1.Chain; } });
|
|
46
|
-
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return types_1.Theme; } });
|
|
47
|
-
Object.defineProperty(exports, "FontSize", { enumerable: true, get: function () { return types_1.FontSize; } });
|
|
48
|
-
Object.defineProperty(exports, "EmailComposeType", { enumerable: true, get: function () { return types_1.EmailComposeType; } });
|
|
49
|
-
Object.defineProperty(exports, "MobileView", { enumerable: true, get: function () { return types_1.MobileView; } });
|
|
50
|
-
Object.defineProperty(exports, "RequestStatus", { enumerable: true, get: function () { return types_1.RequestStatus; } });
|
|
51
|
-
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return types_1.NotificationType; } });
|
|
52
|
-
Object.defineProperty(exports, "InfoType", { enumerable: true, get: function () { return types_1.InfoType; } });
|
|
20
|
+
AuthStatus, Chain, Theme, FontSize, EmailComposeType, MobileView, RequestStatus, NotificationType, InfoType,
|
|
53
21
|
// Blockchain enums
|
|
54
|
-
|
|
55
|
-
Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return types_1.TransactionStatus; } });
|
|
22
|
+
MessageType, TransactionStatus,
|
|
56
23
|
// Infrastructure enums
|
|
57
|
-
|
|
58
|
-
Object.defineProperty(exports, "ChainType", { enumerable: true, get: function () { return types_1.ChainType; } });
|
|
59
|
-
Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return types_1.WalletType; } });
|
|
60
|
-
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return types_1.StorageType; } });
|
|
61
|
-
Object.defineProperty(exports, "ContractType", { enumerable: true, get: function () { return types_1.ContractType; } });
|
|
62
|
-
Object.defineProperty(exports, "ProcessedEventName", { enumerable: true, get: function () { return types_1.ProcessedEventName; } });
|
|
24
|
+
AnalyticsEvent, ChainType, WalletType, StorageType, ContractType, ProcessedEventName, } from './types';
|
|
63
25
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,4CAA4C;AAC5C,cAAc,SAAS,CAAC;AAExB,0BAA0B;AAC1B,cAAc,SAAS,CAAC;AAwBxB,yBAAyB;AACzB,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,aAAa,GAEd,MAAM,SAAS,CAAC;AAEjB,sCAAsC;AACtC,OAAO;AACL,iBAAiB;AACjB,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,QAAQ;AAER,mBAAmB;AACnB,WAAW,EACX,iBAAiB;AAEjB,uBAAuB;AACvB,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @fileoverview Common type definitions for multi-chain MailBox system
|
|
4
3
|
* @description Shared types and interfaces for EVM and Solana implementations
|
|
5
4
|
* @author MailBox Team
|
|
6
5
|
* @version 1.4.2
|
|
7
6
|
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.PROTOCOL_CONSTANTS = exports.TransactionStatus = exports.MessageType = void 0;
|
|
10
|
-
exports.isSolanaAddress = isSolanaAddress;
|
|
11
|
-
exports.isEvmAddress = isEvmAddress;
|
|
12
|
-
exports.isSolanaRecipient = isSolanaRecipient;
|
|
13
|
-
exports.isEvmRecipient = isEvmRecipient;
|
|
14
7
|
/**
|
|
15
8
|
* Message type enumeration
|
|
16
9
|
* @enum MessageType
|
|
17
10
|
*/
|
|
18
|
-
var MessageType;
|
|
11
|
+
export var MessageType;
|
|
19
12
|
(function (MessageType) {
|
|
20
13
|
/** Standard message with 10% fee */
|
|
21
14
|
MessageType["STANDARD"] = "standard";
|
|
@@ -25,12 +18,12 @@ var MessageType;
|
|
|
25
18
|
MessageType["PREPARED_STANDARD"] = "prepared_standard";
|
|
26
19
|
/** Pre-prepared priority message */
|
|
27
20
|
MessageType["PREPARED_PRIORITY"] = "prepared_priority";
|
|
28
|
-
})(MessageType || (
|
|
21
|
+
})(MessageType || (MessageType = {}));
|
|
29
22
|
/**
|
|
30
23
|
* Transaction status enumeration
|
|
31
24
|
* @enum TransactionStatus
|
|
32
25
|
*/
|
|
33
|
-
var TransactionStatus;
|
|
26
|
+
export var TransactionStatus;
|
|
34
27
|
(function (TransactionStatus) {
|
|
35
28
|
/** Transaction successful */
|
|
36
29
|
TransactionStatus["SUCCESS"] = "success";
|
|
@@ -38,7 +31,7 @@ var TransactionStatus;
|
|
|
38
31
|
TransactionStatus["FAILED"] = "failed";
|
|
39
32
|
/** Transaction pending confirmation */
|
|
40
33
|
TransactionStatus["PENDING"] = "pending";
|
|
41
|
-
})(TransactionStatus || (
|
|
34
|
+
})(TransactionStatus || (TransactionStatus = {}));
|
|
42
35
|
// ============================================================================
|
|
43
36
|
// TYPE GUARDS
|
|
44
37
|
// ============================================================================
|
|
@@ -47,7 +40,7 @@ var TransactionStatus;
|
|
|
47
40
|
* @param value - Value to check
|
|
48
41
|
* @returns True if value is a valid Solana address
|
|
49
42
|
*/
|
|
50
|
-
function isSolanaAddress(address) {
|
|
43
|
+
export function isSolanaAddress(address) {
|
|
51
44
|
try {
|
|
52
45
|
// Solana addresses are base58 encoded and typically 32-44 characters
|
|
53
46
|
if (address.length < 32 || address.length > 44) {
|
|
@@ -80,7 +73,7 @@ function isSolanaAddress(address) {
|
|
|
80
73
|
* @param value - Value to check
|
|
81
74
|
* @returns True if value is EVM address string
|
|
82
75
|
*/
|
|
83
|
-
function isEvmAddress(address) {
|
|
76
|
+
export function isEvmAddress(address) {
|
|
84
77
|
return /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
85
78
|
}
|
|
86
79
|
/**
|
|
@@ -88,7 +81,7 @@ function isEvmAddress(address) {
|
|
|
88
81
|
* @param recipient - Message recipient
|
|
89
82
|
* @returns True if recipient is Solana address
|
|
90
83
|
*/
|
|
91
|
-
function isSolanaRecipient(recipient) {
|
|
84
|
+
export function isSolanaRecipient(recipient) {
|
|
92
85
|
return isSolanaAddress(recipient);
|
|
93
86
|
}
|
|
94
87
|
/**
|
|
@@ -96,7 +89,7 @@ function isSolanaRecipient(recipient) {
|
|
|
96
89
|
* @param recipient - Message recipient
|
|
97
90
|
* @returns True if recipient is EVM address
|
|
98
91
|
*/
|
|
99
|
-
function isEvmRecipient(recipient) {
|
|
92
|
+
export function isEvmRecipient(recipient) {
|
|
100
93
|
return isEvmAddress(recipient);
|
|
101
94
|
}
|
|
102
95
|
// ============================================================================
|
|
@@ -105,7 +98,7 @@ function isEvmRecipient(recipient) {
|
|
|
105
98
|
/**
|
|
106
99
|
* Protocol constants used across implementations
|
|
107
100
|
*/
|
|
108
|
-
|
|
101
|
+
export const PROTOCOL_CONSTANTS = {
|
|
109
102
|
/** Base send fee: 0.1 USDC (100,000 with 6 decimals) */
|
|
110
103
|
SEND_FEE: 100000n,
|
|
111
104
|
/** Claim period: 60 days in seconds */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/blockchain/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/blockchain/common.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA0EH;;;GAGG;AACH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,oCAAoC;IACpC,oCAAqB,CAAA;IACrB,2DAA2D;IAC3D,oCAAqB,CAAA;IACrB,oCAAoC;IACpC,sDAAuC,CAAA;IACvC,oCAAoC;IACpC,sDAAuC,CAAA;AACzC,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAiHD;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,6BAA6B;IAC7B,wCAAmB,CAAA;IACnB,yBAAyB;IACzB,sCAAiB,CAAA;IACjB,uCAAuC;IACvC,wCAAmB,CAAA;AACrB,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAqDD,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,IAAI,CAAC;QACH,qEAAqE;QACrE,IAAI,OAAO,C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AE;QACd,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;KACV;IAED,0BAA0B;IAC1B,aAAa,EAAE,CAAC;IAEhB,8BAA8B;IAC9B,WAAW,EAAE;QACX,OAAO,EAAE,GAAG;QACZ,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,GAAG;KACb;CACO,CAAC"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateMessage = exports.validateDomain = exports.validateAmount = exports.validateAddress = exports.isSolanaRecipient = exports.isSolanaAddress = exports.isEvmRecipient = exports.isEvmAddress = exports.TransactionStatus = exports.PROTOCOL_CONSTANTS = exports.MessageType = void 0;
|
|
4
|
-
var common_1 = require("./common");
|
|
5
|
-
Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return common_1.MessageType; } });
|
|
6
|
-
Object.defineProperty(exports, "PROTOCOL_CONSTANTS", { enumerable: true, get: function () { return common_1.PROTOCOL_CONSTANTS; } });
|
|
7
|
-
Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return common_1.TransactionStatus; } });
|
|
8
|
-
Object.defineProperty(exports, "isEvmAddress", { enumerable: true, get: function () { return common_1.isEvmAddress; } });
|
|
9
|
-
Object.defineProperty(exports, "isEvmRecipient", { enumerable: true, get: function () { return common_1.isEvmRecipient; } });
|
|
10
|
-
Object.defineProperty(exports, "isSolanaAddress", { enumerable: true, get: function () { return common_1.isSolanaAddress; } });
|
|
11
|
-
Object.defineProperty(exports, "isSolanaRecipient", { enumerable: true, get: function () { return common_1.isSolanaRecipient; } });
|
|
1
|
+
export { MessageType, PROTOCOL_CONSTANTS, TransactionStatus, isEvmAddress, isEvmRecipient, isSolanaAddress, isSolanaRecipient, } from './common';
|
|
12
2
|
// Validation types
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(exports, "validateAddress", { enumerable: true, get: function () { return validation_1.validateAddress; } });
|
|
15
|
-
Object.defineProperty(exports, "validateAmount", { enumerable: true, get: function () { return validation_1.validateAmount; } });
|
|
16
|
-
Object.defineProperty(exports, "validateDomain", { enumerable: true, get: function () { return validation_1.validateDomain; } });
|
|
17
|
-
Object.defineProperty(exports, "validateMessage", { enumerable: true, get: function () { return validation_1.validateMessage; } });
|
|
3
|
+
export { validateAddress, validateAmount, validateDomain, validateMessage, } from './validation';
|
|
18
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/blockchain/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/blockchain/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAElB,mBAAmB;AACnB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,cAAc,CAAC"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Validation utilities for multi-chain operations
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.validateMessage = validateMessage;
|
|
8
|
-
exports.validateAddress = validateAddress;
|
|
9
|
-
exports.validateAmount = validateAmount;
|
|
10
|
-
const address_1 = require("../../utils/blockchain/address");
|
|
11
|
-
function validateDomain(domain) {
|
|
4
|
+
import { isValidWalletAddress } from '../../utils/blockchain/address';
|
|
5
|
+
export function validateDomain(domain) {
|
|
12
6
|
if (!domain || domain.length === 0) {
|
|
13
7
|
throw new Error('Domain cannot be empty');
|
|
14
8
|
}
|
|
@@ -22,7 +16,7 @@ function validateDomain(domain) {
|
|
|
22
16
|
}
|
|
23
17
|
return true;
|
|
24
18
|
}
|
|
25
|
-
function validateMessage(subject, body) {
|
|
19
|
+
export function validateMessage(subject, body) {
|
|
26
20
|
if (!subject || subject.length === 0) {
|
|
27
21
|
throw new Error('Message subject cannot be empty');
|
|
28
22
|
}
|
|
@@ -37,16 +31,16 @@ function validateMessage(subject, body) {
|
|
|
37
31
|
}
|
|
38
32
|
return true;
|
|
39
33
|
}
|
|
40
|
-
function validateAddress(address, chainType) {
|
|
34
|
+
export function validateAddress(address, chainType) {
|
|
41
35
|
if (!address || address.length === 0) {
|
|
42
36
|
throw new Error('Address cannot be empty');
|
|
43
37
|
}
|
|
44
|
-
if (!
|
|
38
|
+
if (!isValidWalletAddress(address, chainType)) {
|
|
45
39
|
throw new Error(`Invalid ${chainType} address format`);
|
|
46
40
|
}
|
|
47
41
|
return true;
|
|
48
42
|
}
|
|
49
|
-
function validateAmount(amount) {
|
|
43
|
+
export function validateAmount(amount) {
|
|
50
44
|
// Check for null, undefined, or empty string
|
|
51
45
|
if (amount === null ||
|
|
52
46
|
amount === undefined ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../src/types/blockchain/validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../src/types/blockchain/validation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IACD,4CAA4C;IAC5C,MAAM,WAAW,GACf,+FAA+F,CAAC;IAClG,IAAI,CAAC,WAAW,CAAC,IAAI,C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3
|
* These replace string literals throughout the application
|
|
5
4
|
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.Currency = exports.ErrorType = exports.FeatureFlag = exports.EmailValidationState = exports.PlatformType = exports.ConnectionState = exports.ConnectionType = exports.EmailSortCriteria = exports.SortOrder = exports.EmailAddressType = exports.InfoType = exports.NotificationType = exports.RequestStatus = exports.SubscriptionAction = exports.EmailAction = exports.MediumView = exports.MobileView = exports.EmailComposeType = exports.FontSize = exports.Theme = exports.Chain = exports.ChainType = exports.AuthStatus = void 0;
|
|
8
5
|
// Authentication states - aligned with @johnqh/di
|
|
9
|
-
var AuthStatus;
|
|
6
|
+
export var AuthStatus;
|
|
10
7
|
(function (AuthStatus) {
|
|
11
8
|
AuthStatus["CONNECTED"] = "connected";
|
|
12
9
|
AuthStatus["DISCONNECTED"] = "disconnected";
|
|
13
10
|
AuthStatus["VERIFIED"] = "verified";
|
|
14
|
-
})(AuthStatus || (
|
|
11
|
+
})(AuthStatus || (AuthStatus = {}));
|
|
15
12
|
// Chain types (more specific than @johnqh/di version)
|
|
16
|
-
var ChainType;
|
|
13
|
+
export var ChainType;
|
|
17
14
|
(function (ChainType) {
|
|
18
15
|
ChainType["EVM"] = "evm";
|
|
19
16
|
ChainType["SOLANA"] = "solana";
|
|
20
|
-
})(ChainType || (
|
|
17
|
+
})(ChainType || (ChainType = {}));
|
|
21
18
|
// Supported blockchain networks
|
|
22
|
-
var Chain;
|
|
19
|
+
export var Chain;
|
|
23
20
|
(function (Chain) {
|
|
24
21
|
// Ethereum
|
|
25
22
|
Chain["ETH_MAINNET"] = "eth-mainnet";
|
|
@@ -109,45 +106,45 @@ var Chain;
|
|
|
109
106
|
// Local development
|
|
110
107
|
Chain["EVM_LOCAL"] = "evm-local";
|
|
111
108
|
Chain["SOLANA_LOCAL"] = "solana-local";
|
|
112
|
-
})(Chain || (
|
|
109
|
+
})(Chain || (Chain = {}));
|
|
113
110
|
// Theme states
|
|
114
|
-
var Theme;
|
|
111
|
+
export var Theme;
|
|
115
112
|
(function (Theme) {
|
|
116
113
|
Theme["LIGHT"] = "light";
|
|
117
114
|
Theme["DARK"] = "dark";
|
|
118
115
|
Theme["SYSTEM"] = "system";
|
|
119
|
-
})(Theme || (
|
|
116
|
+
})(Theme || (Theme = {}));
|
|
120
117
|
// Font sizes
|
|
121
|
-
var FontSize;
|
|
118
|
+
export var FontSize;
|
|
122
119
|
(function (FontSize) {
|
|
123
120
|
FontSize["SMALL"] = "small";
|
|
124
121
|
FontSize["MEDIUM"] = "medium";
|
|
125
122
|
FontSize["LARGE"] = "large";
|
|
126
|
-
})(FontSize || (
|
|
123
|
+
})(FontSize || (FontSize = {}));
|
|
127
124
|
// Email compose types
|
|
128
|
-
var EmailComposeType;
|
|
125
|
+
export var EmailComposeType;
|
|
129
126
|
(function (EmailComposeType) {
|
|
130
127
|
EmailComposeType["NEW"] = "new";
|
|
131
128
|
EmailComposeType["REPLY"] = "reply";
|
|
132
129
|
EmailComposeType["REPLY_ALL"] = "replyAll";
|
|
133
130
|
EmailComposeType["FORWARD"] = "forward";
|
|
134
|
-
})(EmailComposeType || (
|
|
131
|
+
})(EmailComposeType || (EmailComposeType = {}));
|
|
135
132
|
// Mobile navigation views
|
|
136
|
-
var MobileView;
|
|
133
|
+
export var MobileView;
|
|
137
134
|
(function (MobileView) {
|
|
138
135
|
MobileView["EMAIL_ADDRESSES"] = "emailAddresses";
|
|
139
136
|
MobileView["FOLDERS"] = "folders";
|
|
140
137
|
MobileView["EMAILS"] = "emails";
|
|
141
138
|
MobileView["EMAIL_BODY"] = "emailBody";
|
|
142
|
-
})(MobileView || (
|
|
139
|
+
})(MobileView || (MobileView = {}));
|
|
143
140
|
// Medium screen navigation
|
|
144
|
-
var MediumView;
|
|
141
|
+
export var MediumView;
|
|
145
142
|
(function (MediumView) {
|
|
146
143
|
MediumView["LEFT"] = "left";
|
|
147
144
|
MediumView["RIGHT"] = "right";
|
|
148
|
-
})(MediumView || (
|
|
145
|
+
})(MediumView || (MediumView = {}));
|
|
149
146
|
// Email actions
|
|
150
|
-
var EmailAction;
|
|
147
|
+
export var EmailAction;
|
|
151
148
|
(function (EmailAction) {
|
|
152
149
|
EmailAction["OPEN"] = "open";
|
|
153
150
|
EmailAction["REPLY"] = "reply";
|
|
@@ -157,63 +154,63 @@ var EmailAction;
|
|
|
157
154
|
EmailAction["UNSTAR"] = "unstar";
|
|
158
155
|
EmailAction["MARK_READ"] = "mark_read";
|
|
159
156
|
EmailAction["MARK_UNREAD"] = "mark_unread";
|
|
160
|
-
})(EmailAction || (
|
|
157
|
+
})(EmailAction || (EmailAction = {}));
|
|
161
158
|
// Subscription actions
|
|
162
|
-
var SubscriptionAction;
|
|
159
|
+
export var SubscriptionAction;
|
|
163
160
|
(function (SubscriptionAction) {
|
|
164
161
|
SubscriptionAction["VIEW"] = "view";
|
|
165
162
|
SubscriptionAction["PURCHASE"] = "purchase";
|
|
166
163
|
SubscriptionAction["CANCEL"] = "cancel";
|
|
167
164
|
SubscriptionAction["RESTORE"] = "restore";
|
|
168
|
-
})(SubscriptionAction || (
|
|
165
|
+
})(SubscriptionAction || (SubscriptionAction = {}));
|
|
169
166
|
// Network request states
|
|
170
|
-
var RequestStatus;
|
|
167
|
+
export var RequestStatus;
|
|
171
168
|
(function (RequestStatus) {
|
|
172
169
|
RequestStatus["IDLE"] = "idle";
|
|
173
170
|
RequestStatus["LOADING"] = "loading";
|
|
174
171
|
RequestStatus["SUCCESS"] = "success";
|
|
175
172
|
RequestStatus["ERROR"] = "error";
|
|
176
|
-
})(RequestStatus || (
|
|
173
|
+
})(RequestStatus || (RequestStatus = {}));
|
|
177
174
|
// Notification types
|
|
178
|
-
var NotificationType;
|
|
175
|
+
export var NotificationType;
|
|
179
176
|
(function (NotificationType) {
|
|
180
177
|
NotificationType["INFO"] = "info";
|
|
181
178
|
NotificationType["SUCCESS"] = "success";
|
|
182
179
|
NotificationType["WARNING"] = "warning";
|
|
183
180
|
NotificationType["ERROR"] = "error";
|
|
184
|
-
})(NotificationType || (
|
|
181
|
+
})(NotificationType || (NotificationType = {}));
|
|
185
182
|
// Info types for UI feedback
|
|
186
|
-
var InfoType;
|
|
183
|
+
export var InfoType;
|
|
187
184
|
(function (InfoType) {
|
|
188
185
|
InfoType["INFO"] = "info";
|
|
189
186
|
InfoType["SUCCESS"] = "success";
|
|
190
187
|
InfoType["WARNING"] = "warning";
|
|
191
188
|
InfoType["ERROR"] = "error";
|
|
192
|
-
})(InfoType || (
|
|
189
|
+
})(InfoType || (InfoType = {}));
|
|
193
190
|
// Email address types
|
|
194
|
-
var EmailAddressType;
|
|
191
|
+
export var EmailAddressType;
|
|
195
192
|
(function (EmailAddressType) {
|
|
196
193
|
EmailAddressType["DIRECT"] = "direct";
|
|
197
194
|
EmailAddressType["ENS"] = "ens";
|
|
198
195
|
EmailAddressType["SNS"] = "sns";
|
|
199
196
|
EmailAddressType["CUSTOM"] = "custom";
|
|
200
|
-
})(EmailAddressType || (
|
|
197
|
+
})(EmailAddressType || (EmailAddressType = {}));
|
|
201
198
|
// Mailbox sort orders
|
|
202
|
-
var SortOrder;
|
|
199
|
+
export var SortOrder;
|
|
203
200
|
(function (SortOrder) {
|
|
204
201
|
SortOrder["ASC"] = "asc";
|
|
205
202
|
SortOrder["DESC"] = "desc";
|
|
206
|
-
})(SortOrder || (
|
|
203
|
+
})(SortOrder || (SortOrder = {}));
|
|
207
204
|
// Email sort criteria
|
|
208
|
-
var EmailSortCriteria;
|
|
205
|
+
export var EmailSortCriteria;
|
|
209
206
|
(function (EmailSortCriteria) {
|
|
210
207
|
EmailSortCriteria["DATE"] = "date";
|
|
211
208
|
EmailSortCriteria["SUBJECT"] = "subject";
|
|
212
209
|
EmailSortCriteria["FROM"] = "from";
|
|
213
210
|
EmailSortCriteria["SIZE"] = "size";
|
|
214
|
-
})(EmailSortCriteria || (
|
|
211
|
+
})(EmailSortCriteria || (EmailSortCriteria = {}));
|
|
215
212
|
// Connection types
|
|
216
|
-
var ConnectionType;
|
|
213
|
+
export var ConnectionType;
|
|
217
214
|
(function (ConnectionType) {
|
|
218
215
|
ConnectionType["UNKNOWN"] = "unknown";
|
|
219
216
|
ConnectionType["NONE"] = "none";
|
|
@@ -223,9 +220,9 @@ var ConnectionType;
|
|
|
223
220
|
ConnectionType["CELLULAR_4G"] = "4g";
|
|
224
221
|
ConnectionType["CELLULAR_5G"] = "5g";
|
|
225
222
|
ConnectionType["ETHERNET"] = "ethernet";
|
|
226
|
-
})(ConnectionType || (
|
|
223
|
+
})(ConnectionType || (ConnectionType = {}));
|
|
227
224
|
// Connection states (consolidated from WalletConnectionState, NetworkStatus, and ConnectionState)
|
|
228
|
-
var ConnectionState;
|
|
225
|
+
export var ConnectionState;
|
|
229
226
|
(function (ConnectionState) {
|
|
230
227
|
ConnectionState["UNKNOWN"] = "unknown";
|
|
231
228
|
ConnectionState["DISCONNECTED"] = "disconnected";
|
|
@@ -235,24 +232,24 @@ var ConnectionState;
|
|
|
235
232
|
ConnectionState["VERIFIED"] = "verified";
|
|
236
233
|
ConnectionState["LIMITED"] = "limited";
|
|
237
234
|
ConnectionState["ERROR"] = "error";
|
|
238
|
-
})(ConnectionState || (
|
|
235
|
+
})(ConnectionState || (ConnectionState = {}));
|
|
239
236
|
// Platform types
|
|
240
|
-
var PlatformType;
|
|
237
|
+
export var PlatformType;
|
|
241
238
|
(function (PlatformType) {
|
|
242
239
|
PlatformType["WEB"] = "web";
|
|
243
240
|
PlatformType["REACT_NATIVE"] = "react_native";
|
|
244
241
|
PlatformType["DESKTOP"] = "desktop";
|
|
245
|
-
})(PlatformType || (
|
|
242
|
+
})(PlatformType || (PlatformType = {}));
|
|
246
243
|
// Email validation states
|
|
247
|
-
var EmailValidationState;
|
|
244
|
+
export var EmailValidationState;
|
|
248
245
|
(function (EmailValidationState) {
|
|
249
246
|
EmailValidationState["VALID"] = "valid";
|
|
250
247
|
EmailValidationState["INVALID"] = "invalid";
|
|
251
248
|
EmailValidationState["PENDING"] = "pending";
|
|
252
249
|
EmailValidationState["UNKNOWN"] = "unknown";
|
|
253
|
-
})(EmailValidationState || (
|
|
250
|
+
})(EmailValidationState || (EmailValidationState = {}));
|
|
254
251
|
// Feature flags
|
|
255
|
-
var FeatureFlag;
|
|
252
|
+
export var FeatureFlag;
|
|
256
253
|
(function (FeatureFlag) {
|
|
257
254
|
FeatureFlag["AI_SEARCH"] = "ai_search";
|
|
258
255
|
FeatureFlag["SMART_COMPOSE"] = "smart_compose";
|
|
@@ -260,23 +257,23 @@ var FeatureFlag;
|
|
|
260
257
|
FeatureFlag["DARK_MODE"] = "dark_mode";
|
|
261
258
|
FeatureFlag["NOTIFICATIONS"] = "notifications";
|
|
262
259
|
FeatureFlag["ANALYTICS"] = "analytics";
|
|
263
|
-
})(FeatureFlag || (
|
|
260
|
+
})(FeatureFlag || (FeatureFlag = {}));
|
|
264
261
|
// Error types
|
|
265
|
-
var ErrorType;
|
|
262
|
+
export var ErrorType;
|
|
266
263
|
(function (ErrorType) {
|
|
267
264
|
ErrorType["NETWORK"] = "network";
|
|
268
265
|
ErrorType["AUTH"] = "auth";
|
|
269
266
|
ErrorType["VALIDATION"] = "validation";
|
|
270
267
|
ErrorType["PERMISSION"] = "permission";
|
|
271
268
|
ErrorType["UNKNOWN"] = "unknown";
|
|
272
|
-
})(ErrorType || (
|
|
269
|
+
})(ErrorType || (ErrorType = {}));
|
|
273
270
|
// Currency types for subscriptions
|
|
274
|
-
var Currency;
|
|
271
|
+
export var Currency;
|
|
275
272
|
(function (Currency) {
|
|
276
273
|
Currency["USD"] = "USD";
|
|
277
274
|
Currency["EUR"] = "EUR";
|
|
278
275
|
Currency["GBP"] = "GBP";
|
|
279
276
|
Currency["CAD"] = "CAD";
|
|
280
277
|
Currency["AUD"] = "AUD";
|
|
281
|
-
})(Currency || (
|
|
278
|
+
})(Currency || (Currency = {}));
|
|
282
279
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/business/enums.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/business/enums.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,kDAAkD;AAClD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,2CAA6B,CAAA;IAC7B,mCAAqB,CAAA;AACvB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAED,sDAAsD;AACtD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,gCAAgC;AAChC,MAAM,CAAN,IAAY,KAoHX;AApHD,WAAY,KAAK;IACf,WAAW;IACX,oCAA2B,CAAA;IAC3B,oCAA2B,CAAA;IAC3B,kCAAyB,CAAA;IAEzB,UAAU;IACV,4CAAmC,CAAA;IACnC,0CAAiC,CAAA;IACjC,sCAA6B,CAAA;IAE7B,WAAW;IACX,8CAAqC,CAAA;IACrC,8CAAqC,CAAA;IACrC,4CAAmC,CAAA;IAEnC,WAAW;IACX,8CAAqC,CAAA;IACrC,8CAAqC,CAAA;IACrC,4CAAmC,CAAA;IAEnC,OAAO;IACP,sCAA6B,CAAA;IAC7B,sCAA6B,CAAA;IAC7B,oCAA2B,CAAA;IAE3B,YAAY;IACZ,gDAAuC,CAAA;IACvC,0CAAiC,CAAA;IAEjC,2CAA2C;IAC3C,oCAA2B,CAAA;IAC3B,oCAA2B,CAAA;IAE3B,+BAA+B;IAC/B,0CAAiC,CAAA;IACjC,wCAA+B,CAAA;IAE/B,OAAO;IACP,sCAA6B,CAAA;IAC7B,0CAAiC,CAAA;IAEjC,SAAS;IACT,0CAAiC,CAAA;IACjC,0CAAiC,CAAA;IAEjC,QAAQ;IACR,wCAA+B,CAAA;IAC/B,wCAA+B,CAAA;IAE/B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.isWalletVerified = exports.isWalletConnected = exports.getWalletConnectionState = exports.Theme = exports.SubscriptionAction = exports.SortOrder = exports.RequestStatus = exports.PlatformType = exports.NotificationType = exports.MobileView = exports.MediumView = exports.InfoType = exports.FontSize = exports.FeatureFlag = exports.ErrorType = exports.EmailValidationState = exports.EmailSortCriteria = exports.EmailComposeType = exports.EmailAddressType = exports.EmailAction = exports.Currency = exports.ConnectionType = exports.ConnectionState = exports.ChainType = exports.Chain = exports.AuthStatus = void 0;
|
|
4
1
|
// Enums and utilities
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "Chain", { enumerable: true, get: function () { return enums_1.Chain; } });
|
|
8
|
-
Object.defineProperty(exports, "ChainType", { enumerable: true, get: function () { return enums_1.ChainType; } });
|
|
9
|
-
Object.defineProperty(exports, "ConnectionState", { enumerable: true, get: function () { return enums_1.ConnectionState; } });
|
|
10
|
-
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return enums_1.ConnectionType; } });
|
|
11
|
-
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return enums_1.Currency; } });
|
|
12
|
-
Object.defineProperty(exports, "EmailAction", { enumerable: true, get: function () { return enums_1.EmailAction; } });
|
|
13
|
-
Object.defineProperty(exports, "EmailAddressType", { enumerable: true, get: function () { return enums_1.EmailAddressType; } });
|
|
14
|
-
Object.defineProperty(exports, "EmailComposeType", { enumerable: true, get: function () { return enums_1.EmailComposeType; } });
|
|
15
|
-
Object.defineProperty(exports, "EmailSortCriteria", { enumerable: true, get: function () { return enums_1.EmailSortCriteria; } });
|
|
16
|
-
Object.defineProperty(exports, "EmailValidationState", { enumerable: true, get: function () { return enums_1.EmailValidationState; } });
|
|
17
|
-
Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return enums_1.ErrorType; } });
|
|
18
|
-
Object.defineProperty(exports, "FeatureFlag", { enumerable: true, get: function () { return enums_1.FeatureFlag; } });
|
|
19
|
-
Object.defineProperty(exports, "FontSize", { enumerable: true, get: function () { return enums_1.FontSize; } });
|
|
20
|
-
Object.defineProperty(exports, "InfoType", { enumerable: true, get: function () { return enums_1.InfoType; } });
|
|
21
|
-
Object.defineProperty(exports, "MediumView", { enumerable: true, get: function () { return enums_1.MediumView; } });
|
|
22
|
-
Object.defineProperty(exports, "MobileView", { enumerable: true, get: function () { return enums_1.MobileView; } });
|
|
23
|
-
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return enums_1.NotificationType; } });
|
|
24
|
-
Object.defineProperty(exports, "PlatformType", { enumerable: true, get: function () { return enums_1.PlatformType; } });
|
|
25
|
-
Object.defineProperty(exports, "RequestStatus", { enumerable: true, get: function () { return enums_1.RequestStatus; } });
|
|
26
|
-
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return enums_1.SortOrder; } });
|
|
27
|
-
Object.defineProperty(exports, "SubscriptionAction", { enumerable: true, get: function () { return enums_1.SubscriptionAction; } });
|
|
28
|
-
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return enums_1.Theme; } });
|
|
29
|
-
var wallet_status_1 = require("./wallet-status");
|
|
30
|
-
Object.defineProperty(exports, "getWalletConnectionState", { enumerable: true, get: function () { return wallet_status_1.getWalletConnectionState; } });
|
|
31
|
-
Object.defineProperty(exports, "isWalletConnected", { enumerable: true, get: function () { return wallet_status_1.isWalletConnected; } });
|
|
32
|
-
Object.defineProperty(exports, "isWalletVerified", { enumerable: true, get: function () { return wallet_status_1.isWalletVerified; } });
|
|
2
|
+
export { AuthStatus, Chain, ChainType, ConnectionState, ConnectionType, Currency, EmailAction, EmailAddressType, EmailComposeType, EmailSortCriteria, EmailValidationState, ErrorType, FeatureFlag, FontSize, InfoType, MediumView, MobileView, NotificationType, PlatformType, RequestStatus, SortOrder, SubscriptionAction, Theme, } from './enums';
|
|
3
|
+
export { getWalletConnectionState, isWalletConnected, isWalletVerified, } from './wallet-status';
|
|
33
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/business/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/business/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,eAAe,EACf,cAAc,EACd,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,KAAK,GACN,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|