Skip to content

Commit 934471b

Browse files
committed
patch: export enums values
1 parent a440b6f commit 934471b

File tree

3 files changed

+127
-14
lines changed

3 files changed

+127
-14
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
diff --git a/dist/index.cjs b/dist/index.cjs
2+
index a2962d79c506d2b631953199d9a85ae918caf0d1..27023a84d2d36672feba9c0f4ef8c72643ae85e3 100644
3+
--- a/dist/index.cjs
4+
+++ b/dist/index.cjs
5+
@@ -1,8 +1,13 @@
6+
"use strict";
7+
Object.defineProperty(exports, "__esModule", { value: true });
8+
-exports.getSmartTransactionMetricsSensitiveProperties = exports.getSmartTransactionMetricsProperties = exports.MetaMetricsEventCategory = exports.MetaMetricsEventName = exports.SmartTransactionsController = void 0;
9+
+exports.getSmartTransactionMetricsSensitiveProperties = exports.getSmartTransactionMetricsProperties = exports.MetaMetricsEventCategory = exports.MetaMetricsEventName = exports.ClientId = exports.SmartTransactionStatuses = exports.SmartTransactionCancellationReason = exports.SmartTransactionMinedTx = exports.SmartTransactionsController = void 0;
10+
var SmartTransactionsController_1 = require("./SmartTransactionsController.cjs");
11+
Object.defineProperty(exports, "SmartTransactionsController", { enumerable: true, get: function () { return SmartTransactionsController_1.SmartTransactionsController; } });
12+
+var types_1 = require("./types.cjs");
13+
+Object.defineProperty(exports, "SmartTransactionMinedTx", { enumerable: true, get: function () { return types_1.SmartTransactionMinedTx; } });
14+
+Object.defineProperty(exports, "SmartTransactionCancellationReason", { enumerable: true, get: function () { return types_1.SmartTransactionCancellationReason; } });
15+
+Object.defineProperty(exports, "SmartTransactionStatuses", { enumerable: true, get: function () { return types_1.SmartTransactionStatuses; } });
16+
+Object.defineProperty(exports, "ClientId", { enumerable: true, get: function () { return types_1.ClientId; } });
17+
var constants_1 = require("./constants.cjs");
18+
Object.defineProperty(exports, "MetaMetricsEventName", { enumerable: true, get: function () { return constants_1.MetaMetricsEventName; } });
19+
Object.defineProperty(exports, "MetaMetricsEventCategory", { enumerable: true, get: function () { return constants_1.MetaMetricsEventCategory; } });
20+
diff --git a/dist/index.cjs.map b/dist/index.cjs.map
21+
index ba6974e33776f69b90548f204636faedcde86390..24d58b72dc5841310ab21f5f17bbe34ae9ef33e5 100644
22+
--- a/dist/index.cjs.map
23+
+++ b/dist/index.cjs.map
24+
@@ -1 +1 @@
25+
-{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iFAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAsBpC,6CAA6E;AAApE,iHAAA,oBAAoB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AACvD,qCAGiB;AAFf,6HAAA,oCAAoC,OAAA;AACpC,sIAAA,6CAA6C,OAAA","sourcesContent":["export { SmartTransactionsController } from './SmartTransactionsController';\nexport type {\n SmartTransactionsControllerMessenger,\n SmartTransactionsControllerState,\n SmartTransactionsControllerGetStateAction,\n SmartTransactionsControllerActions,\n SmartTransactionsControllerStateChangeEvent,\n SmartTransactionsControllerSmartTransactionEvent,\n SmartTransactionsControllerSmartTransactionConfirmationDoneEvent,\n SmartTransactionsControllerEvents,\n} from './SmartTransactionsController';\nexport type {\n Fee,\n Fees,\n IndividualTxFees,\n FeatureFlags,\n SmartTransactionMinedTx,\n SmartTransaction,\n SmartTransactionCancellationReason,\n SmartTransactionStatuses,\n ClientId,\n} from './types';\nexport { MetaMetricsEventName, MetaMetricsEventCategory } from './constants';\nexport {\n getSmartTransactionMetricsProperties,\n getSmartTransactionMetricsSensitiveProperties,\n} from './utils';\n"]}
26+
\ No newline at end of file
27+
+{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iFAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAWpC,qCAUiB;AAJf,gHAAA,uBAAuB,OAAA;AACvB,2HAAA,kCAAkC,OAAA;AAClC,iHAAA,wBAAwB,OAAA;AACxB,iGAAA,QAAQ,OAAA;AAEV,6CAA6E;AAApE,iHAAA,oBAAoB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AACvD,qCAGiB;AAFf,6HAAA,oCAAoC,OAAA;AACpC,sIAAA,6CAA6C,OAAA","sourcesContent":["export { SmartTransactionsController } from './SmartTransactionsController';\nexport type {\n SmartTransactionsControllerMessenger,\n SmartTransactionsControllerState,\n SmartTransactionsControllerGetStateAction,\n SmartTransactionsControllerActions,\n SmartTransactionsControllerStateChangeEvent,\n SmartTransactionsControllerSmartTransactionEvent,\n SmartTransactionsControllerSmartTransactionConfirmationDoneEvent,\n SmartTransactionsControllerEvents,\n} from './SmartTransactionsController';\nexport {\n type Fee,\n type Fees,\n type IndividualTxFees,\n type FeatureFlags,\n type SmartTransaction,\n SmartTransactionMinedTx,\n SmartTransactionCancellationReason,\n SmartTransactionStatuses,\n ClientId,\n} from './types';\nexport { MetaMetricsEventName, MetaMetricsEventCategory } from './constants';\nexport {\n getSmartTransactionMetricsProperties,\n getSmartTransactionMetricsSensitiveProperties,\n} from './utils';\n"]}
28+
diff --git a/dist/index.d.cts b/dist/index.d.cts
29+
index b01b16cde62f237f9db47978bde7091ac2fcb185..f852590a7e0e9ce4c2eb21663715237ce8f50af2 100644
30+
--- a/dist/index.d.cts
31+
+++ b/dist/index.d.cts
32+
@@ -1,6 +1,6 @@
33+
export { SmartTransactionsController } from "./SmartTransactionsController.cjs";
34+
export type { SmartTransactionsControllerMessenger, SmartTransactionsControllerState, SmartTransactionsControllerGetStateAction, SmartTransactionsControllerActions, SmartTransactionsControllerStateChangeEvent, SmartTransactionsControllerSmartTransactionEvent, SmartTransactionsControllerSmartTransactionConfirmationDoneEvent, SmartTransactionsControllerEvents, } from "./SmartTransactionsController.cjs";
35+
-export type { Fee, Fees, IndividualTxFees, FeatureFlags, SmartTransactionMinedTx, SmartTransaction, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, } from "./types.cjs";
36+
+export { type Fee, type Fees, type IndividualTxFees, type FeatureFlags, type SmartTransaction, SmartTransactionMinedTx, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, } from "./types.cjs";
37+
export { MetaMetricsEventName, MetaMetricsEventCategory } from "./constants.cjs";
38+
export { getSmartTransactionMetricsProperties, getSmartTransactionMetricsSensitiveProperties, } from "./utils.cjs";
39+
//# sourceMappingURL=index.d.cts.map
40+
diff --git a/dist/index.d.cts.map b/dist/index.d.cts.map
41+
index d6d259e8414e833ff9cc3826837ff5f06acd13d1..ed052d1d4995aca3b200a4dabad9b0ff6ad494cc 100644
42+
--- a/dist/index.d.cts.map
43+
+++ b/dist/index.d.cts.map
44+
@@ -1 +1 @@
45+
-{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0CAAsC;AAC5E,YAAY,EACV,oCAAoC,EACpC,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,EAC3C,gDAAgD,EAChD,gEAAgE,EAChE,iCAAiC,GAClC,0CAAsC;AACvC,YAAY,EACV,GAAG,EACH,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,wBAAwB,EACxB,QAAQ,GACT,oBAAgB;AACjB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAoB;AAC7E,OAAO,EACL,oCAAoC,EACpC,6CAA6C,GAC9C,oBAAgB"}
46+
\ No newline at end of file
47+
+{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0CAAsC;AAC5E,YAAY,EACV,oCAAoC,EACpC,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,EAC3C,gDAAgD,EAChD,gEAAgE,EAChE,iCAAiC,GAClC,0CAAsC;AACvC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,kCAAkC,EAClC,wBAAwB,EACxB,QAAQ,GACT,oBAAgB;AACjB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAoB;AAC7E,OAAO,EACL,oCAAoC,EACpC,6CAA6C,GAC9C,oBAAgB"}
48+
diff --git a/dist/index.d.mts b/dist/index.d.mts
49+
index cfe50b1e3683546fe6f100fac90165c82f3bd1da..1b0b5ff487e3bce7937f0f5497f76c2f6f9dad2e 100644
50+
--- a/dist/index.d.mts
51+
+++ b/dist/index.d.mts
52+
@@ -1,6 +1,6 @@
53+
export { SmartTransactionsController } from "./SmartTransactionsController.mjs";
54+
export type { SmartTransactionsControllerMessenger, SmartTransactionsControllerState, SmartTransactionsControllerGetStateAction, SmartTransactionsControllerActions, SmartTransactionsControllerStateChangeEvent, SmartTransactionsControllerSmartTransactionEvent, SmartTransactionsControllerSmartTransactionConfirmationDoneEvent, SmartTransactionsControllerEvents, } from "./SmartTransactionsController.mjs";
55+
-export type { Fee, Fees, IndividualTxFees, FeatureFlags, SmartTransactionMinedTx, SmartTransaction, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, } from "./types.mjs";
56+
+export { type Fee, type Fees, type IndividualTxFees, type FeatureFlags, type SmartTransaction, SmartTransactionMinedTx, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, } from "./types.mjs";
57+
export { MetaMetricsEventName, MetaMetricsEventCategory } from "./constants.mjs";
58+
export { getSmartTransactionMetricsProperties, getSmartTransactionMetricsSensitiveProperties, } from "./utils.mjs";
59+
//# sourceMappingURL=index.d.mts.map
60+
diff --git a/dist/index.d.mts.map b/dist/index.d.mts.map
61+
index 5ff69d9f260740ff094aaa829582026fe53a36cc..acfee60fd40081a1d0d2a592ada8543aee95bfdc 100644
62+
--- a/dist/index.d.mts.map
63+
+++ b/dist/index.d.mts.map
64+
@@ -1 +1 @@
65+
-{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0CAAsC;AAC5E,YAAY,EACV,oCAAoC,EACpC,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,EAC3C,gDAAgD,EAChD,gEAAgE,EAChE,iCAAiC,GAClC,0CAAsC;AACvC,YAAY,EACV,GAAG,EACH,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,wBAAwB,EACxB,QAAQ,GACT,oBAAgB;AACjB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAoB;AAC7E,OAAO,EACL,oCAAoC,EACpC,6CAA6C,GAC9C,oBAAgB"}
66+
\ No newline at end of file
67+
+{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0CAAsC;AAC5E,YAAY,EACV,oCAAoC,EACpC,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,EAC3C,gDAAgD,EAChD,gEAAgE,EAChE,iCAAiC,GAClC,0CAAsC;AACvC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,kCAAkC,EAClC,wBAAwB,EACxB,QAAQ,GACT,oBAAgB;AACjB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAoB;AAC7E,OAAO,EACL,oCAAoC,EACpC,6CAA6C,GAC9C,oBAAgB"}
68+
diff --git a/dist/index.mjs b/dist/index.mjs
69+
index e5fd115ddbb368f60e9d4c63fc8bef3136a9a0c7..3dd5581f281fcc3fb0c355ecdf1a2c1c1eceb107 100644
70+
--- a/dist/index.mjs
71+
+++ b/dist/index.mjs
72+
@@ -1,4 +1,5 @@
73+
export { SmartTransactionsController } from "./SmartTransactionsController.mjs";
74+
+export { SmartTransactionMinedTx, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId } from "./types.mjs";
75+
export { MetaMetricsEventName, MetaMetricsEventCategory } from "./constants.mjs";
76+
export { getSmartTransactionMetricsProperties, getSmartTransactionMetricsSensitiveProperties } from "./utils.mjs";
77+
//# sourceMappingURL=index.mjs.map

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
"@metamask/selected-network-controller": "^24.0.0",
347347
"@metamask/shield-controller": "^0.1.1",
348348
"@metamask/signature-controller": "^33.0.0",
349-
"@metamask/smart-transactions-controller": "^19.1.0",
349+
"@metamask/smart-transactions-controller": "patch:@metamask/smart-transactions-controller@npm%3A19.2.0#~/.yarn/patches/@metamask-smart-transactions-controller-npm-19.2.0-eb37c8ab17.patch",
350350
"@metamask/snaps-controllers": "^14.2.2",
351351
"@metamask/snaps-execution-environments": "^10.2.1",
352352
"@metamask/snaps-rpc-methods": "^13.5.1",

yarn.lock

Lines changed: 49 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7229,9 +7229,9 @@ __metadata:
72297229
languageName: node
72307230
linkType: hard
72317231

7232-
"@metamask/smart-transactions-controller@npm:^19.1.0":
7233-
version: 19.1.0
7234-
resolution: "@metamask/smart-transactions-controller@npm:19.1.0"
7232+
"@metamask/smart-transactions-controller@npm:19.2.0":
7233+
version: 19.2.0
7234+
resolution: "@metamask/smart-transactions-controller@npm:19.2.0"
72357235
dependencies:
72367236
"@babel/runtime": "npm:^7.24.1"
72377237
"@ethereumjs/tx": "npm:^5.2.1"
@@ -7261,7 +7261,43 @@ __metadata:
72617261
optional: true
72627262
"@metamask/remote-feature-flag-controller":
72637263
optional: true
7264-
checksum: 10/b9bd01a7214711e1b81358d7a520a865ec8843db5c3c6c9c1552c7b1036d28c0729aff2e7fcca8c4496702fc6bc28d47e8f4ef41438e469e03726dc4b52c5c0c
7264+
checksum: 10/8eddc3c03bdfc5a4585c508b514eef84fd5db70aced0d74bce5cf21734797c41a122e68058002c81cd8fd41a2cb71dd9fe8a1742ad966e1e5dd07bd49b7183ca
7265+
languageName: node
7266+
linkType: hard
7267+
7268+
"@metamask/smart-transactions-controller@patch:@metamask/smart-transactions-controller@npm%3A19.2.0#~/.yarn/patches/@metamask-smart-transactions-controller-npm-19.2.0-eb37c8ab17.patch":
7269+
version: 19.2.0
7270+
resolution: "@metamask/smart-transactions-controller@patch:@metamask/smart-transactions-controller@npm%3A19.2.0#~/.yarn/patches/@metamask-smart-transactions-controller-npm-19.2.0-eb37c8ab17.patch::version=19.2.0&hash=c9ccec"
7271+
dependencies:
7272+
"@babel/runtime": "npm:^7.24.1"
7273+
"@ethereumjs/tx": "npm:^5.2.1"
7274+
"@ethereumjs/util": "npm:^9.0.2"
7275+
"@ethersproject/bytes": "npm:^5.7.0"
7276+
"@ethersproject/keccak256": "npm:^5.8.0"
7277+
"@ethersproject/transactions": "npm:^5.7.0"
7278+
"@metamask/base-controller": "npm:^8.3.0"
7279+
"@metamask/controller-utils": "npm:^11.0.0"
7280+
"@metamask/eth-json-rpc-provider": "npm:^4.1.6"
7281+
"@metamask/eth-query": "npm:^4.0.0"
7282+
"@metamask/polling-controller": "npm:^14.0.0"
7283+
bignumber.js: "npm:^9.0.1"
7284+
fast-json-patch: "npm:^3.1.0"
7285+
lodash: "npm:^4.17.21"
7286+
peerDependencies:
7287+
"@metamask/network-controller": ^24.0.0
7288+
"@metamask/transaction-controller": ^60.4.0
7289+
peerDependenciesMeta:
7290+
"@metamask/accounts-controller":
7291+
optional: true
7292+
"@metamask/approval-controller":
7293+
optional: true
7294+
"@metamask/eth-block-tracker":
7295+
optional: true
7296+
"@metamask/gas-fee-controller":
7297+
optional: true
7298+
"@metamask/remote-feature-flag-controller":
7299+
optional: true
7300+
checksum: 10/0486b2ddaabb087828e11c140854a8e16b01530550454f3bda73795fe4e5846834550078137e8ff1c239a536f2d6fe8ea0ecb3824c3871b88adbbb7313e5784a
72657301
languageName: node
72667302
linkType: hard
72677303

@@ -7566,9 +7602,9 @@ __metadata:
75667602
languageName: node
75677603
linkType: hard
75687604

7569-
"@metamask/transaction-controller@npm:^60.2.0":
7570-
version: 60.2.0
7571-
resolution: "@metamask/transaction-controller@npm:60.2.0"
7605+
"@metamask/transaction-controller@npm:^60.2.0, @metamask/transaction-controller@npm:^60.4.0":
7606+
version: 60.4.0
7607+
resolution: "@metamask/transaction-controller@npm:60.4.0"
75727608
dependencies:
75737609
"@ethereumjs/common": "npm:^4.4.0"
75747610
"@ethereumjs/tx": "npm:^5.4.0"
@@ -7577,13 +7613,13 @@ __metadata:
75777613
"@ethersproject/contracts": "npm:^5.7.0"
75787614
"@ethersproject/providers": "npm:^5.7.0"
75797615
"@ethersproject/wallet": "npm:^5.7.0"
7580-
"@metamask/base-controller": "npm:^8.2.0"
7581-
"@metamask/controller-utils": "npm:^11.12.0"
7616+
"@metamask/base-controller": "npm:^8.4.0"
7617+
"@metamask/controller-utils": "npm:^11.14.0"
75827618
"@metamask/eth-query": "npm:^4.0.0"
75837619
"@metamask/metamask-eth-abis": "npm:^3.1.1"
75847620
"@metamask/nonce-tracker": "npm:^6.0.0"
75857621
"@metamask/rpc-errors": "npm:^7.0.2"
7586-
"@metamask/utils": "npm:^11.4.2"
7622+
"@metamask/utils": "npm:^11.8.0"
75877623
async-mutex: "npm:^0.5.0"
75887624
bn.js: "npm:^5.2.1"
75897625
eth-method-registry: "npm:^4.0.0"
@@ -7598,7 +7634,7 @@ __metadata:
75987634
"@metamask/gas-fee-controller": ^24.0.0
75997635
"@metamask/network-controller": ^24.0.0
76007636
"@metamask/remote-feature-flag-controller": ^1.5.0
7601-
checksum: 10/e60cfeb3893951bee5947e3aaeae4542f79a623a59f10b10270dea2ec051a28db8b24be7dc9d2f00284c97ddbf4664432f8b61cc8e5601d1a08c7e7dd2d5f519
7637+
checksum: 10/17606a99425b1a3d6afe2c34820e456ed4101cc9c874551aef04f8308f3f795420adc5ee6199f5bb331b5e1f3defda1325cb3a48d865e6b11759b3d70938a654
76027638
languageName: node
76037639
linkType: hard
76047640

@@ -31858,7 +31894,7 @@ __metadata:
3185831894
"@metamask/selected-network-controller": "npm:^24.0.0"
3185931895
"@metamask/shield-controller": "npm:^0.1.1"
3186031896
"@metamask/signature-controller": "npm:^33.0.0"
31861-
"@metamask/smart-transactions-controller": "npm:^19.1.0"
31897+
"@metamask/smart-transactions-controller": "patch:@metamask/smart-transactions-controller@npm%3A19.2.0#~/.yarn/patches/@metamask-smart-transactions-controller-npm-19.2.0-eb37c8ab17.patch"
3186231898
"@metamask/snaps-controllers": "npm:^14.2.2"
3186331899
"@metamask/snaps-execution-environments": "npm:^10.2.1"
3186431900
"@metamask/snaps-rpc-methods": "npm:^13.5.1"
@@ -31873,7 +31909,7 @@ __metadata:
3187331909
"@metamask/test-dapp": "npm:9.3.0"
3187431910
"@metamask/test-dapp-multichain": "npm:^0.17.0"
3187531911
"@metamask/test-dapp-solana": "npm:^0.3.1"
31876-
"@metamask/transaction-controller": "npm:^60.2.0"
31912+
"@metamask/transaction-controller": "npm:^60.4.0"
3187731913
"@metamask/user-operation-controller": "npm:^39.0.0"
3187831914
"@metamask/utils": "npm:^11.4.2"
3187931915
"@ngraveio/bc-ur": "npm:^1.1.13"

0 commit comments

Comments
 (0)