@sudobility/types 1.9.35 → 1.9.36
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.cjs +1 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/mailer/index.cjs +0 -19
- package/dist/types/mailer/index.d.ts +0 -2
- package/dist/types/mailer/index.d.ts.map +0 -1
- package/dist/types/mailer/index.js +0 -19
- package/dist/types/mailer/index.js.map +0 -1
- package/dist/types/mailer/mail-types.cjs +0 -78
- package/dist/types/mailer/mail-types.d.ts +0 -329
- package/dist/types/mailer/mail-types.d.ts.map +0 -1
- package/dist/types/mailer/mail-types.js +0 -78
- package/dist/types/mailer/mail-types.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
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
28
|
// Re-export all types from the types module
|
|
29
29
|
__exportStar(require("./types"), exports);
|
|
30
30
|
// Re-export all utilities
|
|
@@ -60,8 +60,4 @@ Object.defineProperty(exports, "WalletType", { enumerable: true, get: function (
|
|
|
60
60
|
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return types_1.StorageType; } });
|
|
61
61
|
Object.defineProperty(exports, "ContractType", { enumerable: true, get: function () { return types_1.ContractType; } });
|
|
62
62
|
Object.defineProperty(exports, "ProcessedEventName", { enumerable: true, get: function () { return types_1.ProcessedEventName; } });
|
|
63
|
-
// Mailer enums
|
|
64
|
-
Object.defineProperty(exports, "ConfirmationStatus", { enumerable: true, get: function () { return types_1.ConfirmationStatus; } });
|
|
65
|
-
Object.defineProperty(exports, "ClaimType", { enumerable: true, get: function () { return types_1.ClaimType; } });
|
|
66
|
-
Object.defineProperty(exports, "FeeType", { enumerable: true, get: function () { return types_1.FeeType; } });
|
|
67
63
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export * from './types';
|
|
12
12
|
export * from './utils';
|
|
13
|
-
export type { AppConfig, FirebaseConfig, EnvironmentVariables, ChainConfig, Message, MessageRecipient, TransactionResult, AnalyticsEventProperties, AnalyticsService, NetworkClient, NetworkResponse, UINavigationService,
|
|
13
|
+
export type { AppConfig, FirebaseConfig, EnvironmentVariables, ChainConfig, Message, MessageRecipient, TransactionResult, AnalyticsEventProperties, AnalyticsService, NetworkClient, NetworkResponse, UINavigationService, } from './types';
|
|
14
14
|
export { safeAsync, withLoadingState, safeParallel, withTimeout, withCache, clearExpiredCache, debounceAsync, type AsyncResult, } from './utils';
|
|
15
|
-
export { AuthStatus, Chain, Theme, FontSize, EmailComposeType, MobileView, RequestStatus, NotificationType, InfoType, MessageType, TransactionStatus, AnalyticsEvent, ChainType, WalletType, StorageType, ContractType, ProcessedEventName,
|
|
15
|
+
export { AuthStatus, Chain, Theme, FontSize, EmailComposeType, MobileView, RequestStatus, NotificationType, InfoType, MessageType, TransactionStatus, AnalyticsEvent, ChainType, WalletType, StorageType, ContractType, ProcessedEventName, } from './types';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAIxB,YAAY,EAEV,SAAS,EACT,cAAc,EACd,oBAAoB,EAGpB,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EAGjB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAIxB,YAAY,EAEV,SAAS,EACT,cAAc,EACd,oBAAoB,EAGpB,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EAGjB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,KAAK,WAAW,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAEL,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,QAAQ,EAGR,WAAW,EACX,iBAAiB,EAGjB,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
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
28
|
// Re-export all types from the types module
|
|
29
29
|
__exportStar(require("./types"), exports);
|
|
30
30
|
// Re-export all utilities
|
|
@@ -60,8 +60,4 @@ Object.defineProperty(exports, "WalletType", { enumerable: true, get: function (
|
|
|
60
60
|
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return types_1.StorageType; } });
|
|
61
61
|
Object.defineProperty(exports, "ContractType", { enumerable: true, get: function () { return types_1.ContractType; } });
|
|
62
62
|
Object.defineProperty(exports, "ProcessedEventName", { enumerable: true, get: function () { return types_1.ProcessedEventName; } });
|
|
63
|
-
// Mailer enums
|
|
64
|
-
Object.defineProperty(exports, "ConfirmationStatus", { enumerable: true, get: function () { return types_1.ConfirmationStatus; } });
|
|
65
|
-
Object.defineProperty(exports, "ClaimType", { enumerable: true, get: function () { return types_1.ClaimType; } });
|
|
66
|
-
Object.defineProperty(exports, "FeeType", { enumerable: true, get: function () { return types_1.FeeType; } });
|
|
67
63
|
//# 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":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;AAEH,4CAA4C;AAC5C,0CAAwB;AAExB,0BAA0B;AAC1B,0CAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;AAEH,4CAA4C;AAC5C,0CAAwB;AAExB,0BAA0B;AAC1B,0CAAwB;AAwBxB,yBAAyB;AACzB,iCASiB;AARf,kGAAA,SAAS,OAAA;AACT,yGAAA,gBAAgB,OAAA;AAChB,qGAAA,YAAY,OAAA;AACZ,oGAAA,WAAW,OAAA;AACX,kGAAA,SAAS,OAAA;AACT,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AAIf,sCAAsC;AACtC,iCAuBiB;AAtBf,iBAAiB;AACjB,mGAAA,UAAU,OAAA;AACV,8FAAA,KAAK,OAAA;AACL,8FAAA,KAAK,OAAA;AACL,iGAAA,QAAQ,OAAA;AACR,yGAAA,gBAAgB,OAAA;AAChB,mGAAA,UAAU,OAAA;AACV,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAChB,iGAAA,QAAQ,OAAA;AAER,mBAAmB;AACnB,oGAAA,WAAW,OAAA;AACX,0GAAA,iBAAiB,OAAA;AAEjB,uBAAuB;AACvB,uGAAA,cAAc,OAAA;AACd,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,oGAAA,WAAW,OAAA;AACX,qGAAA,YAAY,OAAA;AACZ,2GAAA,kBAAkB,OAAA"}
|
package/dist/types/index.cjs
CHANGED
|
@@ -24,6 +24,4 @@ __exportStar(require("./blockchain"), exports);
|
|
|
24
24
|
__exportStar(require("./config"), exports);
|
|
25
25
|
// Infrastructure types
|
|
26
26
|
__exportStar(require("./infrastructure"), exports);
|
|
27
|
-
// Mailer and mailbox contract response types
|
|
28
|
-
__exportStar(require("./mailer"), exports);
|
|
29
27
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,kBAAkB,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -24,6 +24,4 @@ __exportStar(require("./blockchain"), exports);
|
|
|
24
24
|
__exportStar(require("./config"), exports);
|
|
25
25
|
// Infrastructure types
|
|
26
26
|
__exportStar(require("./infrastructure"), exports);
|
|
27
|
-
// Mailer and mailbox contract response types
|
|
28
|
-
__exportStar(require("./mailer"), exports);
|
|
29
27
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,2CAAyB;AAEzB,wBAAwB;AACxB,6CAA2B;AAE3B,8BAA8B;AAC9B,+CAA6B;AAE7B,4BAA4B;AAC5B,2CAAyB;AAEzB,uBAAuB;AACvB,mDAAiC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,2CAAyB;AAEzB,wBAAwB;AACxB,6CAA2B;AAE3B,8BAA8B;AAC9B,+CAA6B;AAE7B,4BAA4B;AAC5B,2CAAyB;AAEzB,uBAAuB;AACvB,mDAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/types",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.36",
|
|
4
4
|
"description": "Comprehensive TypeScript types, interfaces, and utilities for Web3 email applications - optimized for AI-assisted development",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Mailer and mailbox contract response types
|
|
18
|
-
__exportStar(require("./mail-types"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/mailer/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Mailer and mailbox contract response types
|
|
18
|
-
__exportStar(require("./mail-types"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/mailer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,+CAA6B"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Mailbox contract response types for multi-chain messaging system
|
|
4
|
-
*
|
|
5
|
-
* This module contains all structured response types for the MailBox protocol
|
|
6
|
-
* including EVM and Solana implementations. These types provide type safety
|
|
7
|
-
* and consistent structure for all client interactions.
|
|
8
|
-
*
|
|
9
|
-
* @version 1.0.0
|
|
10
|
-
* @author MailBox Protocol Team
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.FeeType = exports.ClaimType = exports.ConfirmationStatus = void 0;
|
|
14
|
-
exports.isEVMResponse = isEVMResponse;
|
|
15
|
-
exports.isSolanaResponse = isSolanaResponse;
|
|
16
|
-
exports.isMailboxErrorResponse = isMailboxErrorResponse;
|
|
17
|
-
const enums_1 = require("../business/enums");
|
|
18
|
-
// =======================
|
|
19
|
-
// Enums
|
|
20
|
-
// =======================
|
|
21
|
-
/**
|
|
22
|
-
* Transaction confirmation status levels
|
|
23
|
-
*/
|
|
24
|
-
var ConfirmationStatus;
|
|
25
|
-
(function (ConfirmationStatus) {
|
|
26
|
-
/** Transaction has been processed but not yet confirmed */
|
|
27
|
-
ConfirmationStatus["Processed"] = "processed";
|
|
28
|
-
/** Transaction has been confirmed in a block */
|
|
29
|
-
ConfirmationStatus["Confirmed"] = "confirmed";
|
|
30
|
-
/** Transaction has been finalized and is irreversible */
|
|
31
|
-
ConfirmationStatus["Finalized"] = "finalized";
|
|
32
|
-
})(ConfirmationStatus || (exports.ConfirmationStatus = ConfirmationStatus = {}));
|
|
33
|
-
/**
|
|
34
|
-
* Types of revenue claims
|
|
35
|
-
*/
|
|
36
|
-
var ClaimType;
|
|
37
|
-
(function (ClaimType) {
|
|
38
|
-
/** Claim by message recipient */
|
|
39
|
-
ClaimType["Recipient"] = "recipient";
|
|
40
|
-
/** Claim by contract owner */
|
|
41
|
-
ClaimType["Owner"] = "owner";
|
|
42
|
-
/** Claim of expired revenue */
|
|
43
|
-
ClaimType["Expired"] = "expired";
|
|
44
|
-
})(ClaimType || (exports.ClaimType = ClaimType = {}));
|
|
45
|
-
/**
|
|
46
|
-
* Fee types in the mailbox contract
|
|
47
|
-
*/
|
|
48
|
-
var FeeType;
|
|
49
|
-
(function (FeeType) {
|
|
50
|
-
/** Fee for sending messages */
|
|
51
|
-
FeeType["Send"] = "send";
|
|
52
|
-
/** Fee for delegation operations */
|
|
53
|
-
FeeType["Delegation"] = "delegation";
|
|
54
|
-
/** Fee for domain registration */
|
|
55
|
-
FeeType["Registration"] = "registration";
|
|
56
|
-
})(FeeType || (exports.FeeType = FeeType = {}));
|
|
57
|
-
// =======================
|
|
58
|
-
// Type Guards
|
|
59
|
-
// =======================
|
|
60
|
-
/**
|
|
61
|
-
* Type guard to check if response is EVM-specific
|
|
62
|
-
*/
|
|
63
|
-
function isEVMResponse(response) {
|
|
64
|
-
return response.chainType === enums_1.ChainType.EVM;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Type guard to check if response is Solana-specific
|
|
68
|
-
*/
|
|
69
|
-
function isSolanaResponse(response) {
|
|
70
|
-
return response.chainType === enums_1.ChainType.SOLANA;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Type guard to check if response contains an error
|
|
74
|
-
*/
|
|
75
|
-
function isMailboxErrorResponse(response) {
|
|
76
|
-
return !response.success && response.error !== undefined;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=mail-types.js.map
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Mailbox contract response types for multi-chain messaging system
|
|
3
|
-
*
|
|
4
|
-
* This module contains all structured response types for the MailBox protocol
|
|
5
|
-
* including EVM and Solana implementations. These types provide type safety
|
|
6
|
-
* and consistent structure for all client interactions.
|
|
7
|
-
*
|
|
8
|
-
* @version 1.0.0
|
|
9
|
-
* @author MailBox Protocol Team
|
|
10
|
-
*/
|
|
11
|
-
import { Optional, BaseResponse, PaginatedResponse, MessageBase, UnifiedError } from '../common';
|
|
12
|
-
import { ChainType } from '../business/enums';
|
|
13
|
-
/**
|
|
14
|
-
* Transaction confirmation status levels
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ConfirmationStatus {
|
|
17
|
-
/** Transaction has been processed but not yet confirmed */
|
|
18
|
-
Processed = "processed",
|
|
19
|
-
/** Transaction has been confirmed in a block */
|
|
20
|
-
Confirmed = "confirmed",
|
|
21
|
-
/** Transaction has been finalized and is irreversible */
|
|
22
|
-
Finalized = "finalized"
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Types of revenue claims
|
|
26
|
-
*/
|
|
27
|
-
export declare enum ClaimType {
|
|
28
|
-
/** Claim by message recipient */
|
|
29
|
-
Recipient = "recipient",
|
|
30
|
-
/** Claim by contract owner */
|
|
31
|
-
Owner = "owner",
|
|
32
|
-
/** Claim of expired revenue */
|
|
33
|
-
Expired = "expired"
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Fee types in the mailbox contract
|
|
37
|
-
*/
|
|
38
|
-
export declare enum FeeType {
|
|
39
|
-
/** Fee for sending messages */
|
|
40
|
-
Send = "send",
|
|
41
|
-
/** Fee for delegation operations */
|
|
42
|
-
Delegation = "delegation",
|
|
43
|
-
/** Fee for domain registration */
|
|
44
|
-
Registration = "registration"
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Base response structure for all blockchain operations
|
|
48
|
-
*/
|
|
49
|
-
export interface BaseTransactionResponse {
|
|
50
|
-
/** Transaction hash/signature */
|
|
51
|
-
transactionHash: string;
|
|
52
|
-
/** Blockchain type where transaction occurred */
|
|
53
|
-
chainType: ChainType.EVM | ChainType.SOLANA;
|
|
54
|
-
/** Timestamp when transaction was created (Unix timestamp in ms) */
|
|
55
|
-
timestamp?: Optional<number>;
|
|
56
|
-
/** Whether the transaction was successful */
|
|
57
|
-
success: boolean;
|
|
58
|
-
/** Error message if transaction failed */
|
|
59
|
-
error?: Optional<string>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Enhanced transaction response with block information
|
|
63
|
-
*/
|
|
64
|
-
export interface TransactionReceipt extends BaseTransactionResponse {
|
|
65
|
-
/** Block number (EVM) or slot (Solana) */
|
|
66
|
-
blockNumber?: Optional<number>;
|
|
67
|
-
/** Solana slot number */
|
|
68
|
-
slot?: Optional<number>;
|
|
69
|
-
/** Gas used for EVM transactions */
|
|
70
|
-
gasUsed?: Optional<bigint>;
|
|
71
|
-
/** Transaction confirmation status */
|
|
72
|
-
confirmationStatus?: Optional<ConfirmationStatus>;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Response for message sending operations
|
|
76
|
-
*/
|
|
77
|
-
export interface MessageSendResponse extends TransactionReceipt {
|
|
78
|
-
/** Message identifier (if available) */
|
|
79
|
-
messageId?: Optional<string>;
|
|
80
|
-
/** Fee paid for sending the message */
|
|
81
|
-
fee: bigint | number;
|
|
82
|
-
/** Recipient address */
|
|
83
|
-
recipient?: Optional<string>;
|
|
84
|
-
/** Message subject */
|
|
85
|
-
subject?: Optional<string>;
|
|
86
|
-
/** Message body */
|
|
87
|
-
body?: Optional<string>;
|
|
88
|
-
/** Whether this was a priority message */
|
|
89
|
-
isPriority: boolean;
|
|
90
|
-
/** Revenue share amount claimable by recipient (for priority messages) */
|
|
91
|
-
claimableRevenue?: Optional<bigint | number>;
|
|
92
|
-
/** Expiry timestamp for revenue claims */
|
|
93
|
-
claimExpiryTimestamp?: Optional<number>;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Response for pre-prepared message sending
|
|
97
|
-
*/
|
|
98
|
-
export interface PreparedMessageSendResponse extends TransactionReceipt {
|
|
99
|
-
/** Pre-prepared message identifier */
|
|
100
|
-
mailId: string;
|
|
101
|
-
/** Fee paid for sending */
|
|
102
|
-
fee: bigint | number;
|
|
103
|
-
/** Recipient address */
|
|
104
|
-
recipient: string;
|
|
105
|
-
/** Whether this was a priority prepared message */
|
|
106
|
-
isPriority: boolean;
|
|
107
|
-
/** Revenue share amount claimable by recipient */
|
|
108
|
-
claimableRevenue?: Optional<bigint | number>;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Information about claimable revenue shares
|
|
112
|
-
*/
|
|
113
|
-
export interface ClaimableInfo {
|
|
114
|
-
/** Amount available to claim */
|
|
115
|
-
amount: bigint | number;
|
|
116
|
-
/** Timestamp when claim expires (Unix timestamp in ms) */
|
|
117
|
-
expiryTimestamp: number;
|
|
118
|
-
/** Whether the claim has expired */
|
|
119
|
-
isExpired: boolean;
|
|
120
|
-
/** Whether claim is still valid */
|
|
121
|
-
isClaimable: boolean;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Response for revenue claim operations
|
|
125
|
-
*/
|
|
126
|
-
export interface ClaimRevenueResponse extends TransactionReceipt {
|
|
127
|
-
/** Amount claimed */
|
|
128
|
-
claimedAmount: bigint | number;
|
|
129
|
-
/** Remaining claimable amount */
|
|
130
|
-
remainingAmount: bigint | number;
|
|
131
|
-
/** Type of claim */
|
|
132
|
-
claimType: ClaimType;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Response for checking claimable amounts
|
|
136
|
-
*/
|
|
137
|
-
export interface ClaimableAmountResponse {
|
|
138
|
-
/** Recipient claimable information */
|
|
139
|
-
recipientClaimable: ClaimableInfo;
|
|
140
|
-
/** Owner claimable amount */
|
|
141
|
-
ownerClaimable: bigint | number;
|
|
142
|
-
/** Last updated timestamp */
|
|
143
|
-
lastUpdated: number;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Response for domain registration operations
|
|
147
|
-
*/
|
|
148
|
-
export interface DomainRegistrationResponse extends TransactionReceipt {
|
|
149
|
-
/** Registered domain name */
|
|
150
|
-
domain: string;
|
|
151
|
-
/** Domain expiry timestamp */
|
|
152
|
-
expiryTimestamp: number;
|
|
153
|
-
/** Registration fee paid */
|
|
154
|
-
fee: bigint | number;
|
|
155
|
-
/** Whether this was an extension of existing domain */
|
|
156
|
-
isExtension: boolean;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Response for delegation operations
|
|
160
|
-
*/
|
|
161
|
-
export interface MailboxDelegationResponse extends TransactionReceipt {
|
|
162
|
-
/** Address that created the delegation */
|
|
163
|
-
delegator: string;
|
|
164
|
-
/** Address that was delegated to */
|
|
165
|
-
delegate: string;
|
|
166
|
-
/** Delegation fee paid */
|
|
167
|
-
fee: bigint | number;
|
|
168
|
-
/** Whether this cleared an existing delegation */
|
|
169
|
-
isClearing: boolean;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Response for delegation rejection operations
|
|
173
|
-
*/
|
|
174
|
-
export interface DelegationRejectionResponse extends TransactionReceipt {
|
|
175
|
-
/** Address that rejected the delegation */
|
|
176
|
-
rejector: string;
|
|
177
|
-
/** Address that was trying to delegate */
|
|
178
|
-
delegatingAddress: string;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Current fee information
|
|
182
|
-
*/
|
|
183
|
-
export interface FeeInfo {
|
|
184
|
-
/** Current send fee (in micro-USDC) */
|
|
185
|
-
sendFee: bigint | number;
|
|
186
|
-
/** Current delegation fee (in micro-USDC) */
|
|
187
|
-
delegationFee: bigint | number;
|
|
188
|
-
/** Current domain registration fee (in micro-USDC) */
|
|
189
|
-
registrationFee?: Optional<bigint | number>;
|
|
190
|
-
/** Last updated timestamp */
|
|
191
|
-
lastUpdated: number;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Response for fee update operations
|
|
195
|
-
*/
|
|
196
|
-
export interface FeeUpdateResponse extends TransactionReceipt {
|
|
197
|
-
/** Type of fee that was updated */
|
|
198
|
-
feeType: FeeType;
|
|
199
|
-
/** Previous fee amount */
|
|
200
|
-
oldFee: bigint | number;
|
|
201
|
-
/** New fee amount */
|
|
202
|
-
newFee: bigint | number;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Contract pause status information
|
|
206
|
-
*/
|
|
207
|
-
export interface PauseInfo {
|
|
208
|
-
/** Whether the contract is currently paused */
|
|
209
|
-
isPaused: boolean;
|
|
210
|
-
/** Timestamp when pause was activated */
|
|
211
|
-
pausedAt?: Optional<number>;
|
|
212
|
-
/** Address that initiated the pause */
|
|
213
|
-
pausedBy?: Optional<string>;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Response for pause/unpause operations
|
|
217
|
-
*/
|
|
218
|
-
export interface PauseResponse extends TransactionReceipt {
|
|
219
|
-
/** New pause status */
|
|
220
|
-
isPaused: boolean;
|
|
221
|
-
/** Whether this was an emergency pause */
|
|
222
|
-
isEmergency?: Optional<boolean>;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Emergency fund distribution response
|
|
226
|
-
*/
|
|
227
|
-
export interface EmergencyDistributionResponse extends TransactionReceipt {
|
|
228
|
-
/** Amount distributed */
|
|
229
|
-
distributedAmount: bigint | number;
|
|
230
|
-
/** Recipients of the distribution */
|
|
231
|
-
recipients: string[];
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* EVM-specific response additions
|
|
235
|
-
*/
|
|
236
|
-
export interface EVMTransactionResponse extends TransactionReceipt {
|
|
237
|
-
chainType: ChainType.EVM;
|
|
238
|
-
/** EVM block number */
|
|
239
|
-
blockNumber: number;
|
|
240
|
-
/** Gas used */
|
|
241
|
-
gasUsed: bigint;
|
|
242
|
-
/** Gas price */
|
|
243
|
-
gasPrice?: Optional<bigint>;
|
|
244
|
-
/** Contract address for deployment transactions */
|
|
245
|
-
contractAddress?: Optional<string>;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Solana-specific response additions
|
|
249
|
-
*/
|
|
250
|
-
export interface SolanaTransactionResponse extends TransactionReceipt {
|
|
251
|
-
chainType: ChainType.SOLANA;
|
|
252
|
-
/** Solana slot number */
|
|
253
|
-
slot: number;
|
|
254
|
-
/** Compute units consumed */
|
|
255
|
-
computeUnitsConsumed?: Optional<number>;
|
|
256
|
-
/** Transaction fee in lamports */
|
|
257
|
-
transactionFee?: Optional<number>;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Unified client response for cross-chain operations
|
|
261
|
-
*/
|
|
262
|
-
export interface UnifiedClientResponse<T = unknown> extends BaseResponse<T> {
|
|
263
|
-
/** Chain where operation occurred */
|
|
264
|
-
chainType: ChainType.EVM | ChainType.SOLANA;
|
|
265
|
-
/** Request metadata */
|
|
266
|
-
metadata?: Optional<{
|
|
267
|
-
requestId?: Optional<string>;
|
|
268
|
-
duration?: Optional<number>;
|
|
269
|
-
}>;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Batch operation response
|
|
273
|
-
*/
|
|
274
|
-
export interface BatchOperationResponse extends BaseTransactionResponse {
|
|
275
|
-
/** Results for each operation in the batch */
|
|
276
|
-
results: Array<{
|
|
277
|
-
success: boolean;
|
|
278
|
-
data?: Optional<unknown>;
|
|
279
|
-
error?: Optional<string>;
|
|
280
|
-
}>;
|
|
281
|
-
/** Number of successful operations */
|
|
282
|
-
successCount: number;
|
|
283
|
-
/** Number of failed operations */
|
|
284
|
-
failureCount: number;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Message history item structure
|
|
288
|
-
*/
|
|
289
|
-
export interface MessageHistoryItem extends MessageBase {
|
|
290
|
-
messageId: string;
|
|
291
|
-
transactionHash: string;
|
|
292
|
-
timestamp: number;
|
|
293
|
-
isPriority: boolean;
|
|
294
|
-
fee: bigint | number;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Response for querying message history
|
|
298
|
-
*/
|
|
299
|
-
export interface MessageHistoryResponse extends PaginatedResponse<MessageHistoryItem> {
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Response for querying delegation status
|
|
303
|
-
*/
|
|
304
|
-
export interface DelegationStatusResponse {
|
|
305
|
-
/** Current delegation target (null if no delegation) */
|
|
306
|
-
currentDelegate?: Optional<string>;
|
|
307
|
-
/** Timestamp when delegation was set */
|
|
308
|
-
delegatedAt?: Optional<number>;
|
|
309
|
-
/** Addresses that have delegated to this address */
|
|
310
|
-
incomingDelegations: string[];
|
|
311
|
-
/** Total delegation fee paid */
|
|
312
|
-
totalDelegationFees: bigint | number;
|
|
313
|
-
}
|
|
314
|
-
export type ContractError = UnifiedError;
|
|
315
|
-
/**
|
|
316
|
-
* Type guard to check if response is EVM-specific
|
|
317
|
-
*/
|
|
318
|
-
export declare function isEVMResponse(response: TransactionReceipt): response is EVMTransactionResponse;
|
|
319
|
-
/**
|
|
320
|
-
* Type guard to check if response is Solana-specific
|
|
321
|
-
*/
|
|
322
|
-
export declare function isSolanaResponse(response: TransactionReceipt): response is SolanaTransactionResponse;
|
|
323
|
-
/**
|
|
324
|
-
* Type guard to check if response contains an error
|
|
325
|
-
*/
|
|
326
|
-
export declare function isMailboxErrorResponse(response: UnifiedClientResponse): response is UnifiedClientResponse & {
|
|
327
|
-
error: NonNullable<UnifiedClientResponse['error']>;
|
|
328
|
-
};
|
|
329
|
-
//# sourceMappingURL=mail-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mail-types.d.ts","sourceRoot":"","sources":["../../../src/types/mailer/mail-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,SAAS,cAAc;IACvB,gDAAgD;IAChD,SAAS,cAAc;IACvB,yDAAyD;IACzD,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,iCAAiC;IACjC,SAAS,cAAc;IACvB,8BAA8B;IAC9B,KAAK,UAAU;IACf,+BAA+B;IAC/B,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,OAAO;IACjB,+BAA+B;IAC/B,IAAI,SAAS;IACb,oCAAoC;IACpC,UAAU,eAAe;IACzB,kCAAkC;IAClC,YAAY,iBAAiB;CAC9B;AAMD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,iCAAiC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,SAAS,EAAE,SAAS,CAAC,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC;IAC5C,oEAAoE;IACpE,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC1B;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|
-
* This module contains all structured response types for the MailBox protocol
|
|
6
|
-
* including EVM and Solana implementations. These types provide type safety
|
|
7
|
-
* and consistent structure for all client interactions.
|
|
8
|
-
*
|
|
9
|
-
* @version 1.0.0
|
|
10
|
-
* @author MailBox Protocol Team
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.FeeType = exports.ClaimType = exports.ConfirmationStatus = void 0;
|
|
14
|
-
exports.isEVMResponse = isEVMResponse;
|
|
15
|
-
exports.isSolanaResponse = isSolanaResponse;
|
|
16
|
-
exports.isMailboxErrorResponse = isMailboxErrorResponse;
|
|
17
|
-
const enums_1 = require("../business/enums");
|
|
18
|
-
// =======================
|
|
19
|
-
// Enums
|
|
20
|
-
// =======================
|
|
21
|
-
/**
|
|
22
|
-
* Transaction confirmation status levels
|
|
23
|
-
*/
|
|
24
|
-
var ConfirmationStatus;
|
|
25
|
-
(function (ConfirmationStatus) {
|
|
26
|
-
/** Transaction has been processed but not yet confirmed */
|
|
27
|
-
ConfirmationStatus["Processed"] = "processed";
|
|
28
|
-
/** Transaction has been confirmed in a block */
|
|
29
|
-
ConfirmationStatus["Confirmed"] = "confirmed";
|
|
30
|
-
/** Transaction has been finalized and is irreversible */
|
|
31
|
-
ConfirmationStatus["Finalized"] = "finalized";
|
|
32
|
-
})(ConfirmationStatus || (exports.ConfirmationStatus = ConfirmationStatus = {}));
|
|
33
|
-
/**
|
|
34
|
-
* Types of revenue claims
|
|
35
|
-
*/
|
|
36
|
-
var ClaimType;
|
|
37
|
-
(function (ClaimType) {
|
|
38
|
-
/** Claim by message recipient */
|
|
39
|
-
ClaimType["Recipient"] = "recipient";
|
|
40
|
-
/** Claim by contract owner */
|
|
41
|
-
ClaimType["Owner"] = "owner";
|
|
42
|
-
/** Claim of expired revenue */
|
|
43
|
-
ClaimType["Expired"] = "expired";
|
|
44
|
-
})(ClaimType || (exports.ClaimType = ClaimType = {}));
|
|
45
|
-
/**
|
|
46
|
-
* Fee types in the mailbox contract
|
|
47
|
-
*/
|
|
48
|
-
var FeeType;
|
|
49
|
-
(function (FeeType) {
|
|
50
|
-
/** Fee for sending messages */
|
|
51
|
-
FeeType["Send"] = "send";
|
|
52
|
-
/** Fee for delegation operations */
|
|
53
|
-
FeeType["Delegation"] = "delegation";
|
|
54
|
-
/** Fee for domain registration */
|
|
55
|
-
FeeType["Registration"] = "registration";
|
|
56
|
-
})(FeeType || (exports.FeeType = FeeType = {}));
|
|
57
|
-
// =======================
|
|
58
|
-
// Type Guards
|
|
59
|
-
// =======================
|
|
60
|
-
/**
|
|
61
|
-
* Type guard to check if response is EVM-specific
|
|
62
|
-
*/
|
|
63
|
-
function isEVMResponse(response) {
|
|
64
|
-
return response.chainType === enums_1.ChainType.EVM;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Type guard to check if response is Solana-specific
|
|
68
|
-
*/
|
|
69
|
-
function isSolanaResponse(response) {
|
|
70
|
-
return response.chainType === enums_1.ChainType.SOLANA;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Type guard to check if response contains an error
|
|
74
|
-
*/
|
|
75
|
-
function isMailboxErrorResponse(response) {
|
|
76
|
-
return !response.success && response.error !== undefined;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=mail-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mail-types.js","sourceRoot":"","sources":["../../../src/types/mailer/mail-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAuYH,sCAIC;AAKD,4CAIC;AAKD,wDAMC;AAtZD,6CAA8C;AAE9C,0BAA0B;AAC1B,QAAQ;AACR,0BAA0B;AAE1B;;GAEG;AACH,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,6CAAuB,CAAA;IACvB,gDAAgD;IAChD,6CAAuB,CAAA;IACvB,yDAAyD;IACzD,6CAAuB,CAAA;AACzB,CAAC,EAPW,kB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