@metamask/smart-transactions-controller 13.1.0 → 13.2.0

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 CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [13.2.0]
10
+ ### Added
11
+ - Add metrics events for Receive and Request ([#429](https://github.com/MetaMask/smart-transactions-controller/pull/429))
12
+ - Add `ReceiveRequest` variant to `MetaMetricsEvents` enum
13
+ - Add `Navigation` variant to `MetaMetricsEventCategory` enum
14
+
9
15
  ## [13.1.0]
10
16
  ### Changed
11
17
  - Emit a new "smartTransactionConfirmationDone" event ([#424](https://github.com/MetaMask/smart-transactions-controller/pull/424))
@@ -350,7 +356,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
350
356
  - Add initial SmartTransactionsController ([#1](https://github.com/MetaMask/smart-transactions-controller/pull/1))
351
357
  - Initial commit
352
358
 
353
- [Unreleased]: https://github.com/MetaMask/smart-transactions-controller/compare/v13.1.0...HEAD
359
+ [Unreleased]: https://github.com/MetaMask/smart-transactions-controller/compare/v13.2.0...HEAD
360
+ [13.2.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v13.1.0...v13.2.0
354
361
  [13.1.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v13.0.0...v13.1.0
355
362
  [13.0.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v12.0.1...v13.0.0
356
363
  [12.0.1]: https://github.com/MetaMask/smart-transactions-controller/compare/v12.0.0...v12.0.1
@@ -6,9 +6,11 @@ export declare const SENTINEL_API_BASE_URL_MAP: SentinelApiBaseUrlMap;
6
6
  export declare enum MetaMetricsEventName {
7
7
  StxStatusUpdated = "STX Status Updated",
8
8
  StxConfirmed = "STX Confirmed",
9
- StxConfirmationFailed = "STX Confirmation Failed"
9
+ StxConfirmationFailed = "STX Confirmation Failed",
10
+ ReceiveRequest = "Receive Request"
10
11
  }
11
12
  export declare enum MetaMetricsEventCategory {
12
- Transactions = "Transactions"
13
+ Transactions = "Transactions",
14
+ Navigation = "Navigation"
13
15
  }
14
16
  export {};
package/dist/constants.js CHANGED
@@ -12,9 +12,11 @@ var MetaMetricsEventName;
12
12
  MetaMetricsEventName["StxStatusUpdated"] = "STX Status Updated";
13
13
  MetaMetricsEventName["StxConfirmed"] = "STX Confirmed";
14
14
  MetaMetricsEventName["StxConfirmationFailed"] = "STX Confirmation Failed";
15
+ MetaMetricsEventName["ReceiveRequest"] = "Receive Request";
15
16
  })(MetaMetricsEventName = exports.MetaMetricsEventName || (exports.MetaMetricsEventName = {}));
16
17
  var MetaMetricsEventCategory;
17
18
  (function (MetaMetricsEventCategory) {
18
19
  MetaMetricsEventCategory["Transactions"] = "Transactions";
20
+ MetaMetricsEventCategory["Navigation"] = "Navigation";
19
21
  })(MetaMetricsEventCategory = exports.MetaMetricsEventCategory || (exports.MetaMetricsEventCategory = {}));
20
22
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,wCAAwC,CAAC;AAMrE,6BAA6B;AAChB,QAAA,yBAAyB,GAA0B;IAC9D,CAAC,EAAE,yDAAyD;IAC5D,QAAQ,EAAE,yDAAyD;CACpE,CAAC;AAEF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,+DAAuC,CAAA;IACvC,sDAA8B,CAAA;IAC9B,yEAAiD,CAAA;AACnD,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IAClC,yDAA6B,CAAA;AAC/B,CAAC,EAFW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAEnC","sourcesContent":["export const API_BASE_URL = 'https://transaction.api.cx.metamask.io';\n\ntype SentinelApiBaseUrlMap = {\n [key: number]: string;\n};\n\n// The map with types applied\nexport const SENTINEL_API_BASE_URL_MAP: SentinelApiBaseUrlMap = {\n 1: 'https://tx-sentinel-ethereum-mainnet.api.cx.metamask.io',\n 11155111: 'https://tx-sentinel-ethereum-sepolia.api.cx.metamask.io',\n};\n\nexport enum MetaMetricsEventName {\n StxStatusUpdated = 'STX Status Updated',\n StxConfirmed = 'STX Confirmed',\n StxConfirmationFailed = 'STX Confirmation Failed',\n}\n\nexport enum MetaMetricsEventCategory {\n Transactions = 'Transactions',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,wCAAwC,CAAC;AAMrE,6BAA6B;AAChB,QAAA,yBAAyB,GAA0B;IAC9D,CAAC,EAAE,yDAAyD;IAC5D,QAAQ,EAAE,yDAAyD;CACpE,CAAC;AAEF,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,+DAAuC,CAAA;IACvC,sDAA8B,CAAA;IAC9B,yEAAiD,CAAA;IACjD,0DAAkC,CAAA;AACpC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,yDAA6B,CAAA;IAC7B,qDAAyB,CAAA;AAC3B,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC","sourcesContent":["export const API_BASE_URL = 'https://transaction.api.cx.metamask.io';\n\ntype SentinelApiBaseUrlMap = {\n [key: number]: string;\n};\n\n// The map with types applied\nexport const SENTINEL_API_BASE_URL_MAP: SentinelApiBaseUrlMap = {\n 1: 'https://tx-sentinel-ethereum-mainnet.api.cx.metamask.io',\n 11155111: 'https://tx-sentinel-ethereum-sepolia.api.cx.metamask.io',\n};\n\nexport enum MetaMetricsEventName {\n StxStatusUpdated = 'STX Status Updated',\n StxConfirmed = 'STX Confirmed',\n StxConfirmationFailed = 'STX Confirmation Failed',\n ReceiveRequest = 'Receive Request',\n}\n\nexport enum MetaMetricsEventCategory {\n Transactions = 'Transactions',\n Navigation = 'Navigation',\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/smart-transactions-controller",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
4
4
  "description": "Improves success rates for swaps by trialing transactions privately and finding minimum fees",
5
5
  "repository": {
6
6
  "type": "git",