@metamask-previews/logging-controller 6.0.0-preview-9d310688 → 6.0.0-preview-09a2ffd5
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/LoggingController.js +8 -0
- package/dist/LoggingController.js.map +1 -0
- package/dist/LoggingController.mjs +6 -69
- package/dist/LoggingController.mjs.map +1 -1
- package/dist/chunk-B6ES7RHK.js +11 -0
- package/dist/chunk-B6ES7RHK.js.map +1 -0
- package/dist/chunk-HJ7LXEUC.mjs +11 -0
- package/dist/chunk-HJ7LXEUC.mjs.map +1 -0
- package/dist/chunk-JGRLDUOW.mjs +89 -0
- package/dist/chunk-JGRLDUOW.mjs.map +1 -0
- package/dist/chunk-JUURNM6C.js +1 -0
- package/dist/chunk-JUURNM6C.js.map +1 -0
- package/dist/chunk-OK6TSIOU.mjs +1 -0
- package/dist/chunk-OK6TSIOU.mjs.map +1 -0
- package/dist/chunk-OL334B2K.js +20 -0
- package/dist/chunk-OL334B2K.js.map +1 -0
- package/dist/chunk-PMCRFQY3.js +1 -0
- package/dist/chunk-PMCRFQY3.js.map +1 -0
- package/dist/chunk-PUAQGX73.js +89 -0
- package/dist/chunk-PUAQGX73.js.map +1 -0
- package/dist/chunk-QAVXIBA7.mjs +20 -0
- package/dist/chunk-QAVXIBA7.mjs.map +1 -0
- package/dist/chunk-RNQNNRF5.mjs +1 -0
- package/dist/chunk-RNQNNRF5.mjs.map +1 -0
- package/dist/chunk-UJIPPGP6.js +19 -0
- package/dist/chunk-UJIPPGP6.js.map +1 -0
- package/dist/chunk-ZNSHBDHA.mjs +19 -0
- package/dist/chunk-ZNSHBDHA.mjs.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +19 -2
- package/dist/index.mjs.map +1 -1
- package/dist/logTypes/EthSignLog.js +10 -0
- package/dist/logTypes/EthSignLog.js.map +1 -0
- package/dist/logTypes/EthSignLog.mjs +9 -19
- package/dist/logTypes/EthSignLog.mjs.map +1 -1
- package/dist/logTypes/GenericLog.js +2 -0
- package/dist/logTypes/GenericLog.js.map +1 -0
- package/dist/logTypes/GenericLog.mjs +1 -1
- package/dist/logTypes/GenericLog.mjs.map +1 -1
- package/dist/logTypes/LogType.js +8 -0
- package/dist/logTypes/LogType.js.map +1 -0
- package/dist/logTypes/LogType.mjs +7 -10
- package/dist/logTypes/LogType.mjs.map +1 -1
- package/dist/logTypes/index.js +16 -0
- package/dist/logTypes/index.js.map +1 -0
- package/dist/logTypes/index.mjs +15 -6
- package/dist/logTypes/index.mjs.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/{LoggingController.d.mts → types/LoggingController.d.ts} +4 -4
- package/dist/types/LoggingController.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{logTypes/EthSignLog.d.cts → types/logTypes/EthSignLog.d.ts} +2 -2
- package/dist/types/logTypes/EthSignLog.d.ts.map +1 -0
- package/dist/types/logTypes/GenericLog.d.ts +6 -0
- package/dist/types/logTypes/GenericLog.d.ts.map +1 -0
- package/dist/{logTypes/LogType.d.cts → types/logTypes/LogType.d.ts} +1 -1
- package/dist/types/logTypes/LogType.d.ts.map +1 -0
- package/dist/types/logTypes/index.d.ts +13 -0
- package/dist/types/logTypes/index.d.ts.map +1 -0
- package/package.json +7 -12
- package/dist/LoggingController.cjs +0 -75
- package/dist/LoggingController.cjs.map +0 -1
- package/dist/LoggingController.d.cts +0 -65
- package/dist/LoggingController.d.cts.map +0 -1
- package/dist/LoggingController.d.mts.map +0 -1
- package/dist/index.cjs +0 -19
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -3
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -3
- package/dist/index.d.mts.map +0 -1
- package/dist/logTypes/EthSignLog.cjs +0 -23
- package/dist/logTypes/EthSignLog.cjs.map +0 -1
- package/dist/logTypes/EthSignLog.d.cts.map +0 -1
- package/dist/logTypes/EthSignLog.d.mts +0 -33
- package/dist/logTypes/EthSignLog.d.mts.map +0 -1
- package/dist/logTypes/GenericLog.cjs +0 -3
- package/dist/logTypes/GenericLog.cjs.map +0 -1
- package/dist/logTypes/GenericLog.d.cts +0 -6
- package/dist/logTypes/GenericLog.d.cts.map +0 -1
- package/dist/logTypes/GenericLog.d.mts +0 -6
- package/dist/logTypes/GenericLog.d.mts.map +0 -1
- package/dist/logTypes/LogType.cjs +0 -14
- package/dist/logTypes/LogType.cjs.map +0 -1
- package/dist/logTypes/LogType.d.cts.map +0 -1
- package/dist/logTypes/LogType.d.mts +0 -10
- package/dist/logTypes/LogType.d.mts.map +0 -1
- package/dist/logTypes/index.cjs +0 -23
- package/dist/logTypes/index.cjs.map +0 -1
- package/dist/logTypes/index.d.cts +0 -13
- package/dist/logTypes/index.d.cts.map +0 -1
- package/dist/logTypes/index.d.mts +0 -13
- package/dist/logTypes/index.d.mts.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPUAQGX73js = require('./chunk-PUAQGX73.js');
|
|
4
|
+
require('./chunk-UJIPPGP6.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.LoggingController = _chunkPUAQGX73js.LoggingController;
|
|
8
|
+
//# sourceMappingURL=LoggingController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { BaseController } from "@metamask/base-controller";
|
|
8
|
-
import { v1 as random } from "uuid";
|
|
9
|
-
const name = 'LoggingController';
|
|
10
|
-
const metadata = {
|
|
11
|
-
logs: { persist: true, anonymous: false },
|
|
12
|
-
};
|
|
13
|
-
const defaultState = {
|
|
14
|
-
logs: {},
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Controller that manages a list of logs for signature requests.
|
|
18
|
-
*/
|
|
19
|
-
export class LoggingController extends BaseController {
|
|
20
|
-
/**
|
|
21
|
-
* Creates a LoggingController instance.
|
|
22
|
-
*
|
|
23
|
-
* @param options - Constructor options
|
|
24
|
-
* @param options.messenger - An instance of the ControllerMessenger
|
|
25
|
-
* @param options.state - Initial state to set on this controller.
|
|
26
|
-
*/
|
|
27
|
-
constructor({ messenger, state, }) {
|
|
28
|
-
super({
|
|
29
|
-
name,
|
|
30
|
-
metadata,
|
|
31
|
-
messenger,
|
|
32
|
-
state: {
|
|
33
|
-
...defaultState,
|
|
34
|
-
...state,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
_LoggingController_instances.add(this);
|
|
38
|
-
this.messagingSystem.registerActionHandler(`${name}:add`, (log) => this.add(log));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Add log to the state.
|
|
42
|
-
*
|
|
43
|
-
* @param log - Log to add to the controller
|
|
44
|
-
*/
|
|
45
|
-
add(log) {
|
|
46
|
-
const newLog = {
|
|
47
|
-
id: __classPrivateFieldGet(this, _LoggingController_instances, "m", _LoggingController_generateId).call(this),
|
|
48
|
-
timestamp: Date.now(),
|
|
49
|
-
log,
|
|
50
|
-
};
|
|
51
|
-
this.update((state) => {
|
|
52
|
-
state.logs[newLog.id] = newLog;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Removes all log entries.
|
|
57
|
-
*/
|
|
58
|
-
clear() {
|
|
59
|
-
this.update((state) => {
|
|
60
|
-
state.logs = {};
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
_LoggingController_instances = new WeakSet(), _LoggingController_generateId = function _LoggingController_generateId() {
|
|
65
|
-
let id = random();
|
|
66
|
-
while (id in this.state.logs) {
|
|
67
|
-
id = random();
|
|
68
|
-
}
|
|
69
|
-
return id;
|
|
1
|
+
import {
|
|
2
|
+
LoggingController
|
|
3
|
+
} from "./chunk-JGRLDUOW.mjs";
|
|
4
|
+
import "./chunk-ZNSHBDHA.mjs";
|
|
5
|
+
export {
|
|
6
|
+
LoggingController
|
|
70
7
|
};
|
|
71
8
|
//# sourceMappingURL=LoggingController.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/logTypes/LogType.ts
|
|
2
|
+
var LogType = /* @__PURE__ */ ((LogType2) => {
|
|
3
|
+
LogType2["GenericLog"] = "GenericLog";
|
|
4
|
+
LogType2["EthSignLog"] = "EthSignLog";
|
|
5
|
+
return LogType2;
|
|
6
|
+
})(LogType || {});
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.LogType = LogType;
|
|
11
|
+
//# sourceMappingURL=chunk-B6ES7RHK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/logTypes/LogType.ts"],"names":["LogType"],"mappings":";AAKO,IAAK,UAAL,kBAAKA,aAAL;AACL,EAAAA,SAAA,gBAAa;AACb,EAAAA,SAAA,gBAAa;AAFH,SAAAA;AAAA,GAAA","sourcesContent":["/**\n * An enum representing the allowed types of log messages supported by this\n * controller. When adding new types of special cased log types, make sure to\n * extend this enum with the new type name.\n */\nexport enum LogType {\n GenericLog = 'GenericLog',\n EthSignLog = 'EthSignLog',\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/logTypes/LogType.ts
|
|
2
|
+
var LogType = /* @__PURE__ */ ((LogType2) => {
|
|
3
|
+
LogType2["GenericLog"] = "GenericLog";
|
|
4
|
+
LogType2["EthSignLog"] = "EthSignLog";
|
|
5
|
+
return LogType2;
|
|
6
|
+
})(LogType || {});
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
LogType
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-HJ7LXEUC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/logTypes/LogType.ts"],"sourcesContent":["/**\n * An enum representing the allowed types of log messages supported by this\n * controller. When adding new types of special cased log types, make sure to\n * extend this enum with the new type name.\n */\nexport enum LogType {\n GenericLog = 'GenericLog',\n EthSignLog = 'EthSignLog',\n}\n"],"mappings":";AAKO,IAAK,UAAL,kBAAKA,aAAL;AACL,EAAAA,SAAA,gBAAa;AACb,EAAAA,SAAA,gBAAa;AAFH,SAAAA;AAAA,GAAA;","names":["LogType"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__privateAdd,
|
|
3
|
+
__privateMethod
|
|
4
|
+
} from "./chunk-ZNSHBDHA.mjs";
|
|
5
|
+
|
|
6
|
+
// src/LoggingController.ts
|
|
7
|
+
import { BaseController } from "@metamask/base-controller";
|
|
8
|
+
import { v1 as random } from "uuid";
|
|
9
|
+
var name = "LoggingController";
|
|
10
|
+
var metadata = {
|
|
11
|
+
logs: { persist: true, anonymous: false }
|
|
12
|
+
};
|
|
13
|
+
var defaultState = {
|
|
14
|
+
logs: {}
|
|
15
|
+
};
|
|
16
|
+
var _generateId, generateId_fn;
|
|
17
|
+
var LoggingController = class extends BaseController {
|
|
18
|
+
/**
|
|
19
|
+
* Creates a LoggingController instance.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Constructor options
|
|
22
|
+
* @param options.messenger - An instance of the ControllerMessenger
|
|
23
|
+
* @param options.state - Initial state to set on this controller.
|
|
24
|
+
*/
|
|
25
|
+
constructor({
|
|
26
|
+
messenger,
|
|
27
|
+
state
|
|
28
|
+
}) {
|
|
29
|
+
super({
|
|
30
|
+
name,
|
|
31
|
+
metadata,
|
|
32
|
+
messenger,
|
|
33
|
+
state: {
|
|
34
|
+
...defaultState,
|
|
35
|
+
...state
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Method to generate a randomId and ensures no collision with existing ids.
|
|
40
|
+
*
|
|
41
|
+
* We may want to end up using a hashing mechanism to make ids deterministic
|
|
42
|
+
* by the *data* passed in, and then make each key an array of logs that
|
|
43
|
+
* match that id.
|
|
44
|
+
*
|
|
45
|
+
* @returns unique id
|
|
46
|
+
*/
|
|
47
|
+
__privateAdd(this, _generateId);
|
|
48
|
+
this.messagingSystem.registerActionHandler(
|
|
49
|
+
`${name}:add`,
|
|
50
|
+
(log) => this.add(log)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Add log to the state.
|
|
55
|
+
*
|
|
56
|
+
* @param log - Log to add to the controller
|
|
57
|
+
*/
|
|
58
|
+
add(log) {
|
|
59
|
+
const newLog = {
|
|
60
|
+
id: __privateMethod(this, _generateId, generateId_fn).call(this),
|
|
61
|
+
timestamp: Date.now(),
|
|
62
|
+
log
|
|
63
|
+
};
|
|
64
|
+
this.update((state) => {
|
|
65
|
+
state.logs[newLog.id] = newLog;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Removes all log entries.
|
|
70
|
+
*/
|
|
71
|
+
clear() {
|
|
72
|
+
this.update((state) => {
|
|
73
|
+
state.logs = {};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
_generateId = new WeakSet();
|
|
78
|
+
generateId_fn = function() {
|
|
79
|
+
let id = random();
|
|
80
|
+
while (id in this.state.logs) {
|
|
81
|
+
id = random();
|
|
82
|
+
}
|
|
83
|
+
return id;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export {
|
|
87
|
+
LoggingController
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-JGRLDUOW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/LoggingController.ts"],"sourcesContent":["import type {\n ControllerGetStateAction,\n ControllerStateChangeEvent,\n RestrictedControllerMessenger,\n} from '@metamask/base-controller';\nimport { BaseController } from '@metamask/base-controller';\nimport { v1 as random } from 'uuid';\n\nimport type { Log } from './logTypes';\n\n/**\n * LogEntry is the entry that will be added to the logging controller state.\n * It consists of a entry key that must be on of the Log union types, and an\n * additional id and timestamp.\n */\nexport type LogEntry = {\n id: string;\n timestamp: number;\n log: Log;\n};\n\n/**\n * Logging controller state\n *\n * @property logs - An object of logs indexed by their ids\n */\nexport type LoggingControllerState = {\n logs: {\n [id: string]: LogEntry;\n };\n};\n\nconst name = 'LoggingController';\n\n/**\n * An action to add log messages to the controller state.\n */\nexport type AddLog = {\n type: `${typeof name}:add`;\n handler: LoggingController['add'];\n};\n\nexport type LoggingControllerGetStateAction = ControllerGetStateAction<\n typeof name,\n LoggingControllerState\n>;\n\nexport type LoggingControllerActions = LoggingControllerGetStateAction | AddLog;\n\nexport type LoggingControllerStateChangeEvent = ControllerStateChangeEvent<\n typeof name,\n LoggingControllerState\n>;\n\nexport type LoggingControllerEvents = LoggingControllerStateChangeEvent;\n\nexport type LoggingControllerMessenger = RestrictedControllerMessenger<\n typeof name,\n LoggingControllerActions,\n LoggingControllerEvents,\n never,\n never\n>;\n\nconst metadata = {\n logs: { persist: true, anonymous: false },\n};\n\nconst defaultState = {\n logs: {},\n};\n\n/**\n * Controller that manages a list of logs for signature requests.\n */\nexport class LoggingController extends BaseController<\n typeof name,\n LoggingControllerState,\n LoggingControllerMessenger\n> {\n /**\n * Creates a LoggingController instance.\n *\n * @param options - Constructor options\n * @param options.messenger - An instance of the ControllerMessenger\n * @param options.state - Initial state to set on this controller.\n */\n constructor({\n messenger,\n state,\n }: {\n messenger: LoggingControllerMessenger;\n state?: Partial<LoggingControllerState>;\n }) {\n super({\n name,\n metadata,\n messenger,\n state: {\n ...defaultState,\n ...state,\n },\n });\n\n this.messagingSystem.registerActionHandler(\n `${name}:add` as const,\n (log: Log) => this.add(log),\n );\n }\n\n /**\n * Method to generate a randomId and ensures no collision with existing ids.\n *\n * We may want to end up using a hashing mechanism to make ids deterministic\n * by the *data* passed in, and then make each key an array of logs that\n * match that id.\n *\n * @returns unique id\n */\n #generateId(): string {\n let id = random();\n while (id in this.state.logs) {\n id = random();\n }\n return id;\n }\n\n /**\n * Add log to the state.\n *\n * @param log - Log to add to the controller\n */\n add(log: Log) {\n const newLog: LogEntry = {\n id: this.#generateId(),\n timestamp: Date.now(),\n log,\n };\n\n this.update((state) => {\n state.logs[newLog.id] = newLog;\n });\n }\n\n /**\n * Removes all log entries.\n */\n clear() {\n this.update((state) => {\n state.logs = {};\n });\n }\n}\n"],"mappings":";;;;;;AAKA,SAAS,sBAAsB;AAC/B,SAAS,MAAM,cAAc;AA0B7B,IAAM,OAAO;AAgCb,IAAM,WAAW;AAAA,EACf,MAAM,EAAE,SAAS,MAAM,WAAW,MAAM;AAC1C;AAEA,IAAM,eAAe;AAAA,EACnB,MAAM,CAAC;AACT;AAtEA;AA2EO,IAAM,oBAAN,cAAgC,eAIrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,YAAY;AAAA,IACV;AAAA,IACA;AAAA,EACF,GAGG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACL;AAAA,IACF,CAAC;AAiBH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAfE,SAAK,gBAAgB;AAAA,MACnB,GAAG,IAAI;AAAA,MACP,CAAC,QAAa,KAAK,IAAI,GAAG;AAAA,IAC5B;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBA,IAAI,KAAU;AACZ,UAAM,SAAmB;AAAA,MACvB,IAAI,sBAAK,4BAAL;AAAA,MACJ,WAAW,KAAK,IAAI;AAAA,MACpB;AAAA,IACF;AAEA,SAAK,OAAO,CAAC,UAAU;AACrB,YAAM,KAAK,OAAO,EAAE,IAAI;AAAA,IAC1B,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,QAAQ;AACN,SAAK,OAAO,CAAC,UAAU;AACrB,YAAM,OAAO,CAAC;AAAA,IAChB,CAAC;AAAA,EACH;AACF;AAjCE;AAAA,gBAAW,WAAW;AACpB,MAAI,KAAK,OAAO;AAChB,SAAO,MAAM,KAAK,MAAM,MAAM;AAC5B,SAAK,OAAO;AAAA,EACd;AACA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=chunk-JUURNM6C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-OK6TSIOU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/logTypes/EthSignLog.ts
|
|
2
|
+
var SigningMethod = /* @__PURE__ */ ((SigningMethod2) => {
|
|
3
|
+
SigningMethod2["PersonalSign"] = "personal_sign";
|
|
4
|
+
SigningMethod2["EthSignTypedData"] = "eth_signTypedData";
|
|
5
|
+
SigningMethod2["EthSignTypedDataV3"] = "eth_signTypedData_v3";
|
|
6
|
+
SigningMethod2["EthSignTypedDataV4"] = "eth_signTypedData_v4";
|
|
7
|
+
return SigningMethod2;
|
|
8
|
+
})(SigningMethod || {});
|
|
9
|
+
var SigningStage = /* @__PURE__ */ ((SigningStage2) => {
|
|
10
|
+
SigningStage2["Proposed"] = "proposed";
|
|
11
|
+
SigningStage2["Rejected"] = "rejected";
|
|
12
|
+
SigningStage2["Signed"] = "signed";
|
|
13
|
+
return SigningStage2;
|
|
14
|
+
})(SigningStage || {});
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.SigningMethod = SigningMethod; exports.SigningStage = SigningStage;
|
|
20
|
+
//# sourceMappingURL=chunk-OL334B2K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/logTypes/EthSignLog.ts"],"names":["SigningMethod","SigningStage"],"mappings":";AAKO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,kBAAe;AACf,EAAAA,eAAA,sBAAmB;AACnB,EAAAA,eAAA,wBAAqB;AACrB,EAAAA,eAAA,wBAAqB;AAJX,SAAAA;AAAA,GAAA;AAUL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,YAAS;AAHC,SAAAA;AAAA,GAAA","sourcesContent":["import type { LogType } from './LogType';\n\n/**\n * An enum of the signing method types that we are interested in logging.\n */\nexport enum SigningMethod {\n PersonalSign = 'personal_sign',\n EthSignTypedData = 'eth_signTypedData',\n EthSignTypedDataV3 = 'eth_signTypedData_v3',\n EthSignTypedDataV4 = 'eth_signTypedData_v4',\n}\n\n/**\n * An enum of the various stages of the signing request\n */\nexport enum SigningStage {\n Proposed = 'proposed',\n Rejected = 'rejected',\n Signed = 'signed',\n}\n\n/**\n * First special case of logging scenarios involves signing requests. In this\n * case the data provided must include the method for the signature request as\n * well as the signingData. This is intended to be used to troubleshoot and\n * investigate FLI at the user's request.\n */\nexport type EthSignLog = {\n type: LogType.EthSignLog;\n data: {\n signingMethod: SigningMethod;\n stage: SigningStage;\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n signingData?: any;\n };\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=chunk-PMCRFQY3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkUJIPPGP6js = require('./chunk-UJIPPGP6.js');
|
|
5
|
+
|
|
6
|
+
// src/LoggingController.ts
|
|
7
|
+
var _basecontroller = require('@metamask/base-controller');
|
|
8
|
+
var _uuid = require('uuid');
|
|
9
|
+
var name = "LoggingController";
|
|
10
|
+
var metadata = {
|
|
11
|
+
logs: { persist: true, anonymous: false }
|
|
12
|
+
};
|
|
13
|
+
var defaultState = {
|
|
14
|
+
logs: {}
|
|
15
|
+
};
|
|
16
|
+
var _generateId, generateId_fn;
|
|
17
|
+
var LoggingController = class extends _basecontroller.BaseController {
|
|
18
|
+
/**
|
|
19
|
+
* Creates a LoggingController instance.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Constructor options
|
|
22
|
+
* @param options.messenger - An instance of the ControllerMessenger
|
|
23
|
+
* @param options.state - Initial state to set on this controller.
|
|
24
|
+
*/
|
|
25
|
+
constructor({
|
|
26
|
+
messenger,
|
|
27
|
+
state
|
|
28
|
+
}) {
|
|
29
|
+
super({
|
|
30
|
+
name,
|
|
31
|
+
metadata,
|
|
32
|
+
messenger,
|
|
33
|
+
state: {
|
|
34
|
+
...defaultState,
|
|
35
|
+
...state
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Method to generate a randomId and ensures no collision with existing ids.
|
|
40
|
+
*
|
|
41
|
+
* We may want to end up using a hashing mechanism to make ids deterministic
|
|
42
|
+
* by the *data* passed in, and then make each key an array of logs that
|
|
43
|
+
* match that id.
|
|
44
|
+
*
|
|
45
|
+
* @returns unique id
|
|
46
|
+
*/
|
|
47
|
+
_chunkUJIPPGP6js.__privateAdd.call(void 0, this, _generateId);
|
|
48
|
+
this.messagingSystem.registerActionHandler(
|
|
49
|
+
`${name}:add`,
|
|
50
|
+
(log) => this.add(log)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Add log to the state.
|
|
55
|
+
*
|
|
56
|
+
* @param log - Log to add to the controller
|
|
57
|
+
*/
|
|
58
|
+
add(log) {
|
|
59
|
+
const newLog = {
|
|
60
|
+
id: _chunkUJIPPGP6js.__privateMethod.call(void 0, this, _generateId, generateId_fn).call(this),
|
|
61
|
+
timestamp: Date.now(),
|
|
62
|
+
log
|
|
63
|
+
};
|
|
64
|
+
this.update((state) => {
|
|
65
|
+
state.logs[newLog.id] = newLog;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Removes all log entries.
|
|
70
|
+
*/
|
|
71
|
+
clear() {
|
|
72
|
+
this.update((state) => {
|
|
73
|
+
state.logs = {};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
_generateId = new WeakSet();
|
|
78
|
+
generateId_fn = function() {
|
|
79
|
+
let id = _uuid.v1.call(void 0, );
|
|
80
|
+
while (id in this.state.logs) {
|
|
81
|
+
id = _uuid.v1.call(void 0, );
|
|
82
|
+
}
|
|
83
|
+
return id;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
exports.LoggingController = LoggingController;
|
|
89
|
+
//# sourceMappingURL=chunk-PUAQGX73.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/LoggingController.ts"],"names":[],"mappings":";;;;;;AAKA,SAAS,sBAAsB;AAC/B,SAAS,MAAM,cAAc;AA0B7B,IAAM,OAAO;AAgCb,IAAM,WAAW;AAAA,EACf,MAAM,EAAE,SAAS,MAAM,WAAW,MAAM;AAC1C;AAEA,IAAM,eAAe;AAAA,EACnB,MAAM,CAAC;AACT;AAtEA;AA2EO,IAAM,oBAAN,cAAgC,eAIrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,YAAY;AAAA,IACV;AAAA,IACA;AAAA,EACF,GAGG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACL;AAAA,IACF,CAAC;AAiBH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAfE,SAAK,gBAAgB;AAAA,MACnB,GAAG,IAAI;AAAA,MACP,CAAC,QAAa,KAAK,IAAI,GAAG;AAAA,IAC5B;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBA,IAAI,KAAU;AACZ,UAAM,SAAmB;AAAA,MACvB,IAAI,sBAAK,4BAAL;AAAA,MACJ,WAAW,KAAK,IAAI;AAAA,MACpB;AAAA,IACF;AAEA,SAAK,OAAO,CAAC,UAAU;AACrB,YAAM,KAAK,OAAO,EAAE,IAAI;AAAA,IAC1B,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,QAAQ;AACN,SAAK,OAAO,CAAC,UAAU;AACrB,YAAM,OAAO,CAAC;AAAA,IAChB,CAAC;AAAA,EACH;AACF;AAjCE;AAAA,gBAAW,WAAW;AACpB,MAAI,KAAK,OAAO;AAChB,SAAO,MAAM,KAAK,MAAM,MAAM;AAC5B,SAAK,OAAO;AAAA,EACd;AACA,SAAO;AACT","sourcesContent":["import type {\n ControllerGetStateAction,\n ControllerStateChangeEvent,\n RestrictedControllerMessenger,\n} from '@metamask/base-controller';\nimport { BaseController } from '@metamask/base-controller';\nimport { v1 as random } from 'uuid';\n\nimport type { Log } from './logTypes';\n\n/**\n * LogEntry is the entry that will be added to the logging controller state.\n * It consists of a entry key that must be on of the Log union types, and an\n * additional id and timestamp.\n */\nexport type LogEntry = {\n id: string;\n timestamp: number;\n log: Log;\n};\n\n/**\n * Logging controller state\n *\n * @property logs - An object of logs indexed by their ids\n */\nexport type LoggingControllerState = {\n logs: {\n [id: string]: LogEntry;\n };\n};\n\nconst name = 'LoggingController';\n\n/**\n * An action to add log messages to the controller state.\n */\nexport type AddLog = {\n type: `${typeof name}:add`;\n handler: LoggingController['add'];\n};\n\nexport type LoggingControllerGetStateAction = ControllerGetStateAction<\n typeof name,\n LoggingControllerState\n>;\n\nexport type LoggingControllerActions = LoggingControllerGetStateAction | AddLog;\n\nexport type LoggingControllerStateChangeEvent = ControllerStateChangeEvent<\n typeof name,\n LoggingControllerState\n>;\n\nexport type LoggingControllerEvents = LoggingControllerStateChangeEvent;\n\nexport type LoggingControllerMessenger = RestrictedControllerMessenger<\n typeof name,\n LoggingControllerActions,\n LoggingControllerEvents,\n never,\n never\n>;\n\nconst metadata = {\n logs: { persist: true, anonymous: false },\n};\n\nconst defaultState = {\n logs: {},\n};\n\n/**\n * Controller that manages a list of logs for signature requests.\n */\nexport class LoggingController extends BaseController<\n typeof name,\n LoggingControllerState,\n LoggingControllerMessenger\n> {\n /**\n * Creates a LoggingController instance.\n *\n * @param options - Constructor options\n * @param options.messenger - An instance of the ControllerMessenger\n * @param options.state - Initial state to set on this controller.\n */\n constructor({\n messenger,\n state,\n }: {\n messenger: LoggingControllerMessenger;\n state?: Partial<LoggingControllerState>;\n }) {\n super({\n name,\n metadata,\n messenger,\n state: {\n ...defaultState,\n ...state,\n },\n });\n\n this.messagingSystem.registerActionHandler(\n `${name}:add` as const,\n (log: Log) => this.add(log),\n );\n }\n\n /**\n * Method to generate a randomId and ensures no collision with existing ids.\n *\n * We may want to end up using a hashing mechanism to make ids deterministic\n * by the *data* passed in, and then make each key an array of logs that\n * match that id.\n *\n * @returns unique id\n */\n #generateId(): string {\n let id = random();\n while (id in this.state.logs) {\n id = random();\n }\n return id;\n }\n\n /**\n * Add log to the state.\n *\n * @param log - Log to add to the controller\n */\n add(log: Log) {\n const newLog: LogEntry = {\n id: this.#generateId(),\n timestamp: Date.now(),\n log,\n };\n\n this.update((state) => {\n state.logs[newLog.id] = newLog;\n });\n }\n\n /**\n * Removes all log entries.\n */\n clear() {\n this.update((state) => {\n state.logs = {};\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/logTypes/EthSignLog.ts
|
|
2
|
+
var SigningMethod = /* @__PURE__ */ ((SigningMethod2) => {
|
|
3
|
+
SigningMethod2["PersonalSign"] = "personal_sign";
|
|
4
|
+
SigningMethod2["EthSignTypedData"] = "eth_signTypedData";
|
|
5
|
+
SigningMethod2["EthSignTypedDataV3"] = "eth_signTypedData_v3";
|
|
6
|
+
SigningMethod2["EthSignTypedDataV4"] = "eth_signTypedData_v4";
|
|
7
|
+
return SigningMethod2;
|
|
8
|
+
})(SigningMethod || {});
|
|
9
|
+
var SigningStage = /* @__PURE__ */ ((SigningStage2) => {
|
|
10
|
+
SigningStage2["Proposed"] = "proposed";
|
|
11
|
+
SigningStage2["Rejected"] = "rejected";
|
|
12
|
+
SigningStage2["Signed"] = "signed";
|
|
13
|
+
return SigningStage2;
|
|
14
|
+
})(SigningStage || {});
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
SigningMethod,
|
|
18
|
+
SigningStage
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk-QAVXIBA7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/logTypes/EthSignLog.ts"],"sourcesContent":["import type { LogType } from './LogType';\n\n/**\n * An enum of the signing method types that we are interested in logging.\n */\nexport enum SigningMethod {\n PersonalSign = 'personal_sign',\n EthSignTypedData = 'eth_signTypedData',\n EthSignTypedDataV3 = 'eth_signTypedData_v3',\n EthSignTypedDataV4 = 'eth_signTypedData_v4',\n}\n\n/**\n * An enum of the various stages of the signing request\n */\nexport enum SigningStage {\n Proposed = 'proposed',\n Rejected = 'rejected',\n Signed = 'signed',\n}\n\n/**\n * First special case of logging scenarios involves signing requests. In this\n * case the data provided must include the method for the signature request as\n * well as the signingData. This is intended to be used to troubleshoot and\n * investigate FLI at the user's request.\n */\nexport type EthSignLog = {\n type: LogType.EthSignLog;\n data: {\n signingMethod: SigningMethod;\n stage: SigningStage;\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n signingData?: any;\n };\n};\n"],"mappings":";AAKO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,kBAAe;AACf,EAAAA,eAAA,sBAAmB;AACnB,EAAAA,eAAA,wBAAqB;AACrB,EAAAA,eAAA,wBAAqB;AAJX,SAAAA;AAAA,GAAA;AAUL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["SigningMethod","SigningStage"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-RNQNNRF5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __accessCheck = (obj, member, msg) => {
|
|
2
|
+
if (!member.has(obj))
|
|
3
|
+
throw TypeError("Cannot " + msg);
|
|
4
|
+
};
|
|
5
|
+
var __privateAdd = (obj, member, value) => {
|
|
6
|
+
if (member.has(obj))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
9
|
+
};
|
|
10
|
+
var __privateMethod = (obj, member, method) => {
|
|
11
|
+
__accessCheck(obj, member, "access private method");
|
|
12
|
+
return method;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.__privateAdd = __privateAdd; exports.__privateMethod = __privateMethod;
|
|
19
|
+
//# sourceMappingURL=chunk-UJIPPGP6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __accessCheck = (obj, member, msg) => {
|
|
2
|
+
if (!member.has(obj))
|
|
3
|
+
throw TypeError("Cannot " + msg);
|
|
4
|
+
};
|
|
5
|
+
var __privateAdd = (obj, member, value) => {
|
|
6
|
+
if (member.has(obj))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
9
|
+
};
|
|
10
|
+
var __privateMethod = (obj, member, method) => {
|
|
11
|
+
__accessCheck(obj, member, "access private method");
|
|
12
|
+
return method;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__privateAdd,
|
|
17
|
+
__privateMethod
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-ZNSHBDHA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPUAQGX73js = require('./chunk-PUAQGX73.js');
|
|
4
|
+
require('./chunk-PMCRFQY3.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkOL334B2Kjs = require('./chunk-OL334B2K.js');
|
|
9
|
+
require('./chunk-JUURNM6C.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkB6ES7RHKjs = require('./chunk-B6ES7RHK.js');
|
|
13
|
+
require('./chunk-UJIPPGP6.js');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.LogType = _chunkB6ES7RHKjs.LogType; exports.LoggingController = _chunkPUAQGX73js.LoggingController; exports.SigningMethod = _chunkOL334B2Kjs.SigningMethod; exports.SigningStage = _chunkOL334B2Kjs.SigningStage;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
LoggingController
|
|
3
|
+
} from "./chunk-JGRLDUOW.mjs";
|
|
4
|
+
import "./chunk-RNQNNRF5.mjs";
|
|
5
|
+
import {
|
|
6
|
+
SigningMethod,
|
|
7
|
+
SigningStage
|
|
8
|
+
} from "./chunk-QAVXIBA7.mjs";
|
|
9
|
+
import "./chunk-OK6TSIOU.mjs";
|
|
10
|
+
import {
|
|
11
|
+
LogType
|
|
12
|
+
} from "./chunk-HJ7LXEUC.mjs";
|
|
13
|
+
import "./chunk-ZNSHBDHA.mjs";
|
|
14
|
+
export {
|
|
15
|
+
LogType,
|
|
16
|
+
LoggingController,
|
|
17
|
+
SigningMethod,
|
|
18
|
+
SigningStage
|
|
19
|
+
};
|
|
3
20
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOL334B2Kjs = require('../chunk-OL334B2K.js');
|
|
5
|
+
require('../chunk-UJIPPGP6.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.SigningMethod = _chunkOL334B2Kjs.SigningMethod; exports.SigningStage = _chunkOL334B2Kjs.SigningStage;
|
|
10
|
+
//# sourceMappingURL=EthSignLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(SigningMethod || (SigningMethod = {}));
|
|
11
|
-
/**
|
|
12
|
-
* An enum of the various stages of the signing request
|
|
13
|
-
*/
|
|
14
|
-
export var SigningStage;
|
|
15
|
-
(function (SigningStage) {
|
|
16
|
-
SigningStage["Proposed"] = "proposed";
|
|
17
|
-
SigningStage["Rejected"] = "rejected";
|
|
18
|
-
SigningStage["Signed"] = "signed";
|
|
19
|
-
})(SigningStage || (SigningStage = {}));
|
|
1
|
+
import {
|
|
2
|
+
SigningMethod,
|
|
3
|
+
SigningStage
|
|
4
|
+
} from "../chunk-QAVXIBA7.mjs";
|
|
5
|
+
import "../chunk-ZNSHBDHA.mjs";
|
|
6
|
+
export {
|
|
7
|
+
SigningMethod,
|
|
8
|
+
SigningStage
|
|
9
|
+
};
|
|
20
10
|
//# sourceMappingURL=EthSignLog.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import "../chunk-OK6TSIOU.mjs";
|
|
2
2
|
//# sourceMappingURL=GenericLog.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
LogType["GenericLog"] = "GenericLog";
|
|
9
|
-
LogType["EthSignLog"] = "EthSignLog";
|
|
10
|
-
})(LogType || (LogType = {}));
|
|
1
|
+
import {
|
|
2
|
+
LogType
|
|
3
|
+
} from "../chunk-HJ7LXEUC.mjs";
|
|
4
|
+
import "../chunk-ZNSHBDHA.mjs";
|
|
5
|
+
export {
|
|
6
|
+
LogType
|
|
7
|
+
};
|
|
11
8
|
//# sourceMappingURL=LogType.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|