@metamask-previews/multichain-account-service 2.0.0-preview-51709948 → 2.0.0-preview-eee46d4b
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/CHANGELOG.md +0 -4
- package/dist/MultichainAccountService.cjs +5 -8
- package/dist/MultichainAccountService.cjs.map +1 -1
- package/dist/MultichainAccountService.d.cts +3 -4
- package/dist/MultichainAccountService.d.cts.map +1 -1
- package/dist/MultichainAccountService.d.mts +3 -4
- package/dist/MultichainAccountService.d.mts.map +1 -1
- package/dist/MultichainAccountService.mjs +5 -8
- package/dist/MultichainAccountService.mjs.map +1 -1
- package/dist/providers/AccountProviderWrapper.cjs +2 -24
- package/dist/providers/AccountProviderWrapper.cjs.map +1 -1
- package/dist/providers/AccountProviderWrapper.d.cts +1 -3
- package/dist/providers/AccountProviderWrapper.d.cts.map +1 -1
- package/dist/providers/AccountProviderWrapper.d.mts +1 -3
- package/dist/providers/AccountProviderWrapper.d.mts.map +1 -1
- package/dist/providers/AccountProviderWrapper.mjs +2 -24
- package/dist/providers/AccountProviderWrapper.mjs.map +1 -1
- package/dist/providers/EvmAccountProvider.cjs +22 -33
- package/dist/providers/EvmAccountProvider.cjs.map +1 -1
- package/dist/providers/EvmAccountProvider.d.cts +2 -3
- package/dist/providers/EvmAccountProvider.d.cts.map +1 -1
- package/dist/providers/EvmAccountProvider.d.mts +2 -3
- package/dist/providers/EvmAccountProvider.d.mts.map +1 -1
- package/dist/providers/EvmAccountProvider.mjs +22 -33
- package/dist/providers/EvmAccountProvider.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +0 -4
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +0 -4
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/analytics/index.cjs +0 -18
- package/dist/analytics/index.cjs.map +0 -1
- package/dist/analytics/index.d.cts +0 -2
- package/dist/analytics/index.d.cts.map +0 -1
- package/dist/analytics/index.d.mts +0 -2
- package/dist/analytics/index.d.mts.map +0 -1
- package/dist/analytics/index.mjs +0 -2
- package/dist/analytics/index.mjs.map +0 -1
- package/dist/analytics/traces.cjs +0 -21
- package/dist/analytics/traces.cjs.map +0 -1
- package/dist/analytics/traces.d.cts +0 -13
- package/dist/analytics/traces.d.cts.map +0 -1
- package/dist/analytics/traces.d.mts +0 -13
- package/dist/analytics/traces.d.mts.map +0 -1
- package/dist/analytics/traces.mjs +0 -17
- package/dist/analytics/traces.mjs.map +0 -1
- package/dist/constants/traces.cjs +0 -9
- package/dist/constants/traces.cjs.map +0 -1
- package/dist/constants/traces.d.cts +0 -5
- package/dist/constants/traces.d.cts.map +0 -1
- package/dist/constants/traces.d.mts +0 -5
- package/dist/constants/traces.d.mts.map +0 -1
- package/dist/constants/traces.mjs +0 -6
- package/dist/constants/traces.mjs.map +0 -1
package/dist/analytics/index.cjs
DELETED
|
@@ -1,18 +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
|
-
__exportStar(require("./traces.cjs"), exports);
|
|
18
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAyB","sourcesContent":["export * from './traces';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAAA,6BAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAAA,6BAAyB"}
|
package/dist/analytics/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAAA,6BAAyB","sourcesContent":["export * from './traces';\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.traceFallback = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Fallback function for tracing.
|
|
6
|
-
* This function is used when no specific trace function is provided.
|
|
7
|
-
* It executes the provided function in a trace context if available.
|
|
8
|
-
*
|
|
9
|
-
* @param _request - The trace request containing additional data and context.
|
|
10
|
-
* @param fn - The function to execute within the trace context.
|
|
11
|
-
* @returns A promise that resolves to the result of the executed function.
|
|
12
|
-
* If no function is provided, it resolves to undefined.
|
|
13
|
-
*/
|
|
14
|
-
const traceFallback = async (_request, fn) => {
|
|
15
|
-
if (!fn) {
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
return await Promise.resolve(fn());
|
|
19
|
-
};
|
|
20
|
-
exports.traceFallback = traceFallback;
|
|
21
|
-
//# sourceMappingURL=traces.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.cjs","sourceRoot":"","sources":["../../src/analytics/traces.ts"],"names":[],"mappings":";;;AAMA;;;;;;;;;GASG;AACI,MAAM,aAAa,GAAkB,KAAK,EAC/C,QAAsB,EACtB,EAA2C,EACtB,EAAE;IACvB,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,SAAuB,CAAC;KAChC;IACD,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB","sourcesContent":["import type {\n TraceCallback,\n TraceContext,\n TraceRequest,\n} from '@metamask/controller-utils';\n\n/**\n * Fallback function for tracing.\n * This function is used when no specific trace function is provided.\n * It executes the provided function in a trace context if available.\n *\n * @param _request - The trace request containing additional data and context.\n * @param fn - The function to execute within the trace context.\n * @returns A promise that resolves to the result of the executed function.\n * If no function is provided, it resolves to undefined.\n */\nexport const traceFallback: TraceCallback = async <ReturnType>(\n _request: TraceRequest,\n fn?: (context?: TraceContext) => ReturnType,\n): Promise<ReturnType> => {\n if (!fn) {\n return undefined as ReturnType;\n }\n return await Promise.resolve(fn());\n};\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TraceCallback } from "@metamask/controller-utils";
|
|
2
|
-
/**
|
|
3
|
-
* Fallback function for tracing.
|
|
4
|
-
* This function is used when no specific trace function is provided.
|
|
5
|
-
* It executes the provided function in a trace context if available.
|
|
6
|
-
*
|
|
7
|
-
* @param _request - The trace request containing additional data and context.
|
|
8
|
-
* @param fn - The function to execute within the trace context.
|
|
9
|
-
* @returns A promise that resolves to the result of the executed function.
|
|
10
|
-
* If no function is provided, it resolves to undefined.
|
|
11
|
-
*/
|
|
12
|
-
export declare const traceFallback: TraceCallback;
|
|
13
|
-
//# sourceMappingURL=traces.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.d.cts","sourceRoot":"","sources":["../../src/analytics/traces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAGd,mCAAmC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,aAQ3B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TraceCallback } from "@metamask/controller-utils";
|
|
2
|
-
/**
|
|
3
|
-
* Fallback function for tracing.
|
|
4
|
-
* This function is used when no specific trace function is provided.
|
|
5
|
-
* It executes the provided function in a trace context if available.
|
|
6
|
-
*
|
|
7
|
-
* @param _request - The trace request containing additional data and context.
|
|
8
|
-
* @param fn - The function to execute within the trace context.
|
|
9
|
-
* @returns A promise that resolves to the result of the executed function.
|
|
10
|
-
* If no function is provided, it resolves to undefined.
|
|
11
|
-
*/
|
|
12
|
-
export declare const traceFallback: TraceCallback;
|
|
13
|
-
//# sourceMappingURL=traces.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.d.mts","sourceRoot":"","sources":["../../src/analytics/traces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAGd,mCAAmC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,aAQ3B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fallback function for tracing.
|
|
3
|
-
* This function is used when no specific trace function is provided.
|
|
4
|
-
* It executes the provided function in a trace context if available.
|
|
5
|
-
*
|
|
6
|
-
* @param _request - The trace request containing additional data and context.
|
|
7
|
-
* @param fn - The function to execute within the trace context.
|
|
8
|
-
* @returns A promise that resolves to the result of the executed function.
|
|
9
|
-
* If no function is provided, it resolves to undefined.
|
|
10
|
-
*/
|
|
11
|
-
export const traceFallback = async (_request, fn) => {
|
|
12
|
-
if (!fn) {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
return await Promise.resolve(fn());
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=traces.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.mjs","sourceRoot":"","sources":["../../src/analytics/traces.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkB,KAAK,EAC/C,QAAsB,EACtB,EAA2C,EACtB,EAAE;IACvB,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,SAAuB,CAAC;KAChC;IACD,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC","sourcesContent":["import type {\n TraceCallback,\n TraceContext,\n TraceRequest,\n} from '@metamask/controller-utils';\n\n/**\n * Fallback function for tracing.\n * This function is used when no specific trace function is provided.\n * It executes the provided function in a trace context if available.\n *\n * @param _request - The trace request containing additional data and context.\n * @param fn - The function to execute within the trace context.\n * @returns A promise that resolves to the result of the executed function.\n * If no function is provided, it resolves to undefined.\n */\nexport const traceFallback: TraceCallback = async <ReturnType>(\n _request: TraceRequest,\n fn?: (context?: TraceContext) => ReturnType,\n): Promise<ReturnType> => {\n if (!fn) {\n return undefined as ReturnType;\n }\n return await Promise.resolve(fn());\n};\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TraceName = void 0;
|
|
4
|
-
var TraceName;
|
|
5
|
-
(function (TraceName) {
|
|
6
|
-
TraceName["SnapDiscoverAccounts"] = "Snap Discover Accounts";
|
|
7
|
-
TraceName["EvmDiscoverAccounts"] = "EVM Discover Accounts";
|
|
8
|
-
})(TraceName || (exports.TraceName = TraceName = {}));
|
|
9
|
-
//# sourceMappingURL=traces.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.cjs","sourceRoot":"","sources":["../../src/constants/traces.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4DAAiD,CAAA;IACjD,0DAA+C,CAAA;AACjD,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB","sourcesContent":["export enum TraceName {\n 'SnapDiscoverAccounts' = 'Snap Discover Accounts',\n 'EvmDiscoverAccounts' = 'EVM Discover Accounts',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.d.cts","sourceRoot":"","sources":["../../src/constants/traces.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.d.mts","sourceRoot":"","sources":["../../src/constants/traces.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traces.mjs","sourceRoot":"","sources":["../../src/constants/traces.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4DAAiD,CAAA;IACjD,0DAA+C,CAAA;AACjD,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB","sourcesContent":["export enum TraceName {\n 'SnapDiscoverAccounts' = 'Snap Discover Accounts',\n 'EvmDiscoverAccounts' = 'EVM Discover Accounts',\n}\n"]}
|