@socket.tech/dl-common 1.0.3-test.45 → 1.0.3-test.46
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/constants/types.d.ts +9 -1
- package/dist/constants/types.js +9 -1
- package/dist/index.js +30 -14
- package/dist/models/packet.d.ts +0 -4
- package/dist/models/packet.js +0 -4
- package/package.json +1 -1
|
@@ -27,6 +27,13 @@ export declare const ErrorReasons: {
|
|
|
27
27
|
INBOUND_FAILURE: string;
|
|
28
28
|
LOW_GAS_LIMIT: string;
|
|
29
29
|
};
|
|
30
|
+
export declare enum SigPendingReason {
|
|
31
|
+
INVALID_MESSAGE_OUTBOUND_TX = "INVALID_MESSAGE_OUTBOUND_TX",
|
|
32
|
+
MISSING_SEAL_EVENT = "MISSING_SEAL_EVENT",
|
|
33
|
+
PENDING_CONFIRMATIONS = "PENDING_CONFIRMATIONS",
|
|
34
|
+
INALID_SEAL_TX = "INALID_SEAL_TX",
|
|
35
|
+
NO = "NO"
|
|
36
|
+
}
|
|
30
37
|
export declare class ServerError {
|
|
31
38
|
code: Omit<StatusCodes, StatusCodes.SUCCESS>;
|
|
32
39
|
message?: string;
|
|
@@ -112,7 +119,8 @@ export interface AttestFailure {
|
|
|
112
119
|
proposalValid: false;
|
|
113
120
|
packetId: string;
|
|
114
121
|
proposalCount: number;
|
|
115
|
-
|
|
122
|
+
tripReason: TripReason;
|
|
123
|
+
sigPendingReason: SigPendingReason;
|
|
116
124
|
}
|
|
117
125
|
export type AttestResponse = AttestSuccess | AttestFailure;
|
|
118
126
|
export type MessageData = {
|
package/dist/constants/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalServerError = exports.BadRequestError = exports.ServerError = exports.ErrorReasons = exports.RelayerAPIStatus = exports.InboundStatus = void 0;
|
|
3
|
+
exports.InternalServerError = exports.BadRequestError = exports.ServerError = exports.SigPendingReason = exports.ErrorReasons = exports.RelayerAPIStatus = exports.InboundStatus = void 0;
|
|
4
4
|
const enums_1 = require("./enums");
|
|
5
5
|
var InboundStatus;
|
|
6
6
|
(function (InboundStatus) {
|
|
@@ -23,6 +23,14 @@ exports.ErrorReasons = {
|
|
|
23
23
|
INBOUND_FAILURE: "INBOUND_FAILURE",
|
|
24
24
|
LOW_GAS_LIMIT: "LOW_GAS_LIMIT",
|
|
25
25
|
};
|
|
26
|
+
var SigPendingReason;
|
|
27
|
+
(function (SigPendingReason) {
|
|
28
|
+
SigPendingReason["INVALID_MESSAGE_OUTBOUND_TX"] = "INVALID_MESSAGE_OUTBOUND_TX";
|
|
29
|
+
SigPendingReason["MISSING_SEAL_EVENT"] = "MISSING_SEAL_EVENT";
|
|
30
|
+
SigPendingReason["PENDING_CONFIRMATIONS"] = "PENDING_CONFIRMATIONS";
|
|
31
|
+
SigPendingReason["INALID_SEAL_TX"] = "INALID_SEAL_TX";
|
|
32
|
+
SigPendingReason["NO"] = "NO";
|
|
33
|
+
})(SigPendingReason || (exports.SigPendingReason = SigPendingReason = {}));
|
|
26
34
|
class ServerError {
|
|
27
35
|
constructor(code, message) {
|
|
28
36
|
this.code = code;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (
|
|
9
|
+
!desc ||
|
|
10
|
+
("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
11
|
+
) {
|
|
12
|
+
desc = {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return m[k];
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}
|
|
21
|
+
: function (o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
});
|
|
25
|
+
var __exportStar =
|
|
26
|
+
(this && this.__exportStar) ||
|
|
27
|
+
function (m, exports) {
|
|
28
|
+
for (var p in m)
|
|
29
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
30
|
+
__createBinding(exports, m, p);
|
|
31
|
+
};
|
|
16
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
33
|
__exportStar(require("./models"), exports);
|
|
18
34
|
__exportStar(require("./services"), exports);
|
package/dist/models/packet.d.ts
CHANGED
|
@@ -29,10 +29,6 @@ export declare enum AttestRelayStatus {
|
|
|
29
29
|
export declare enum TripReason {
|
|
30
30
|
SWITCHBOARD_MISMATCHED = "SWITCHBOARD_MISMATCHED",
|
|
31
31
|
ROOT_MISMATCHED = "ROOT_MISMATCHED",
|
|
32
|
-
INVALID_MESSAGE_ROOT = "INVALID_MESSAGE_ROOT",
|
|
33
|
-
MISSING_SEAL = "MISSING_SEAL",
|
|
34
|
-
PENDING_CONFIRMATIONS = "PENDING_CONFIRMATIONS",
|
|
35
|
-
INALID_SEAL_TX = "INALID_SEAL_TX",
|
|
36
32
|
NO = "NO"
|
|
37
33
|
}
|
|
38
34
|
export declare class Packet extends Model {
|
package/dist/models/packet.js
CHANGED
|
@@ -38,10 +38,6 @@ var TripReason;
|
|
|
38
38
|
(function (TripReason) {
|
|
39
39
|
TripReason["SWITCHBOARD_MISMATCHED"] = "SWITCHBOARD_MISMATCHED";
|
|
40
40
|
TripReason["ROOT_MISMATCHED"] = "ROOT_MISMATCHED";
|
|
41
|
-
TripReason["INVALID_MESSAGE_ROOT"] = "INVALID_MESSAGE_ROOT";
|
|
42
|
-
TripReason["MISSING_SEAL"] = "MISSING_SEAL";
|
|
43
|
-
TripReason["PENDING_CONFIRMATIONS"] = "PENDING_CONFIRMATIONS";
|
|
44
|
-
TripReason["INALID_SEAL_TX"] = "INALID_SEAL_TX";
|
|
45
41
|
TripReason["NO"] = "NO";
|
|
46
42
|
})(TripReason || (exports.TripReason = TripReason = {}));
|
|
47
43
|
class Packet extends sequelize_1.Model {
|