@metamask/bridge-status-controller 70.0.5 → 71.0.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +46 -8
  2. package/dist/bridge-status-controller-method-action-types.cjs +7 -0
  3. package/dist/bridge-status-controller-method-action-types.cjs.map +1 -0
  4. package/dist/bridge-status-controller-method-action-types.d.cts +38 -0
  5. package/dist/bridge-status-controller-method-action-types.d.cts.map +1 -0
  6. package/dist/bridge-status-controller-method-action-types.d.mts +38 -0
  7. package/dist/bridge-status-controller-method-action-types.d.mts.map +1 -0
  8. package/dist/bridge-status-controller-method-action-types.mjs +6 -0
  9. package/dist/bridge-status-controller-method-action-types.mjs.map +1 -0
  10. package/dist/bridge-status-controller.cjs +209 -121
  11. package/dist/bridge-status-controller.cjs.map +1 -1
  12. package/dist/bridge-status-controller.d.cts.map +1 -1
  13. package/dist/bridge-status-controller.d.mts.map +1 -1
  14. package/dist/bridge-status-controller.mjs +214 -126
  15. package/dist/bridge-status-controller.mjs.map +1 -1
  16. package/dist/constants.cjs +2 -1
  17. package/dist/constants.cjs.map +1 -1
  18. package/dist/constants.d.cts +1 -0
  19. package/dist/constants.d.cts.map +1 -1
  20. package/dist/constants.d.mts +1 -0
  21. package/dist/constants.d.mts.map +1 -1
  22. package/dist/constants.mjs +1 -0
  23. package/dist/constants.mjs.map +1 -1
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +2 -1
  26. package/dist/index.d.cts.map +1 -1
  27. package/dist/index.d.mts +2 -1
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/types.cjs +4 -0
  31. package/dist/types.cjs.map +1 -1
  32. package/dist/types.d.cts +12 -18
  33. package/dist/types.d.cts.map +1 -1
  34. package/dist/types.d.mts +12 -18
  35. package/dist/types.d.mts.map +1 -1
  36. package/dist/types.mjs +4 -0
  37. package/dist/types.mjs.map +1 -1
  38. package/dist/utils/accounts.d.cts +1 -1
  39. package/dist/utils/accounts.d.mts +1 -1
  40. package/dist/utils/bridge-status.cjs +49 -2
  41. package/dist/utils/bridge-status.cjs.map +1 -1
  42. package/dist/utils/bridge-status.d.cts +2 -1
  43. package/dist/utils/bridge-status.d.cts.map +1 -1
  44. package/dist/utils/bridge-status.d.mts +2 -1
  45. package/dist/utils/bridge-status.d.mts.map +1 -1
  46. package/dist/utils/bridge-status.mjs +48 -2
  47. package/dist/utils/bridge-status.mjs.map +1 -1
  48. package/dist/utils/feature-flags.cjs +12 -0
  49. package/dist/utils/feature-flags.cjs.map +1 -0
  50. package/dist/utils/feature-flags.d.cts +3 -0
  51. package/dist/utils/feature-flags.d.cts.map +1 -0
  52. package/dist/utils/feature-flags.d.mts +3 -0
  53. package/dist/utils/feature-flags.d.mts.map +1 -0
  54. package/dist/utils/feature-flags.mjs +8 -0
  55. package/dist/utils/feature-flags.mjs.map +1 -0
  56. package/dist/utils/history.cjs +44 -2
  57. package/dist/utils/history.cjs.map +1 -1
  58. package/dist/utils/history.d.cts +19 -1
  59. package/dist/utils/history.d.cts.map +1 -1
  60. package/dist/utils/history.d.mts +19 -1
  61. package/dist/utils/history.d.mts.map +1 -1
  62. package/dist/utils/history.mjs +41 -2
  63. package/dist/utils/history.mjs.map +1 -1
  64. package/dist/utils/intent-api.cjs.map +1 -1
  65. package/dist/utils/intent-api.d.cts +1 -1
  66. package/dist/utils/intent-api.d.cts.map +1 -1
  67. package/dist/utils/intent-api.d.mts +1 -1
  68. package/dist/utils/intent-api.d.mts.map +1 -1
  69. package/dist/utils/intent-api.mjs.map +1 -1
  70. package/dist/utils/metrics.cjs +39 -8
  71. package/dist/utils/metrics.cjs.map +1 -1
  72. package/dist/utils/metrics.d.cts +31 -5
  73. package/dist/utils/metrics.d.cts.map +1 -1
  74. package/dist/utils/metrics.d.mts +31 -5
  75. package/dist/utils/metrics.d.mts.map +1 -1
  76. package/dist/utils/metrics.mjs +38 -8
  77. package/dist/utils/metrics.mjs.map +1 -1
  78. package/dist/utils/network.cjs +7 -1
  79. package/dist/utils/network.cjs.map +1 -1
  80. package/dist/utils/network.d.cts +4 -2
  81. package/dist/utils/network.d.cts.map +1 -1
  82. package/dist/utils/network.d.mts +4 -2
  83. package/dist/utils/network.d.mts.map +1 -1
  84. package/dist/utils/network.mjs +5 -0
  85. package/dist/utils/network.mjs.map +1 -1
  86. package/dist/utils/transaction.cjs +10 -9
  87. package/dist/utils/transaction.cjs.map +1 -1
  88. package/dist/utils/transaction.d.cts +3 -0
  89. package/dist/utils/transaction.d.cts.map +1 -1
  90. package/dist/utils/transaction.d.mts +3 -0
  91. package/dist/utils/transaction.d.mts.map +1 -1
  92. package/dist/utils/transaction.mjs +8 -8
  93. package/dist/utils/transaction.mjs.map +1 -1
  94. package/dist/utils/validators.d.cts +2 -2
  95. package/dist/utils/validators.d.mts +2 -2
  96. package/package.json +22 -20
package/CHANGELOG.md CHANGED
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [71.0.0]
11
+
12
+ ### Added
13
+
14
+ - Remove stale bridge transactions from `txHistory` to prevent excessive polling. Once a history item exceeds the configured maximum age, the status is fetched once, then the src tx hash's receipt is retrieved. If there is no receipt, the history item's hash is presumed to be invalid and the entry is deleted from state. ([#8479](https://github.com/MetaMask/core/pull/8479))
15
+ - Add missing action types for public `BridgeStatusController` methods ([#8367](https://github.com/MetaMask/core/pull/8367))
16
+ - The following types are now available:
17
+ - `BridgeStatusControllerSubmitTxAction`
18
+ - `BridgeStatusControllerSubmitIntentAction`
19
+ - `BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction`
20
+
21
+ ### Changed
22
+
23
+ - **BREAKING:** Replace `transactionFailed` and `transactionConfirmed` event subscriptions with `TransactionController:transactionStatusUpdated` ([#8479](https://github.com/MetaMask/core/pull/8479))
24
+ - **BREAKING:** Add `RemoteFeatureFlags:getState` to allowed actions to retrieve max history item age config ([#8479](https://github.com/MetaMask/core/pull/8479))
25
+ - Add `account_hardware_type` field to all cross-chain swap analytics events ([#8503](https://github.com/MetaMask/core/pull/8503))
26
+ - `account_hardware_type` carries the specific hardware wallet brand (e.g. `'Ledger'`, `'QR Hardware'`) or `null` for software wallets
27
+ - `is_hardware_wallet` is now derived from `account_hardware_type !== null`, keeping both fields in sync
28
+ - `getEVMTxPropertiesFromTransactionMeta` now accepts an optional `account` parameter to populate `account_hardware_type` for `TransactionController:transactionFailed` events ([#8503](https://github.com/MetaMask/core/pull/8503))
29
+ - Bump `@metamask/accounts-controller` from `^37.1.1` to `^37.2.0` ([#8363](https://github.com/MetaMask/core/pull/8363))
30
+ - Bump `@metamask/keyring-controller` from `^25.1.1` to `^25.2.0` ([#8363](https://github.com/MetaMask/core/pull/8363))
31
+ - Bump `@metamask/messenger` from `^1.0.0` to `^1.1.1` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373))
32
+ - Bump `@metamask/transaction-controller` from `^64.0.0` to `^64.3.0` ([#8432](https://github.com/MetaMask/core/pull/8432), [#8447](https://github.com/MetaMask/core/pull/8447), [#8482](https://github.com/MetaMask/core/pull/8482))
33
+ - Bump `@metamask/base-controller` from `^9.0.1` to `^9.1.0` ([#8457](https://github.com/MetaMask/core/pull/8457))
34
+ - Bump `@metamask/bridge-controller` from `^70.0.1` to `^70.2.0` ([#8466](https://github.com/MetaMask/core/pull/8466), [#8474](https://github.com/MetaMask/core/pull/8474), [#8571](https://github.com/MetaMask/core/pull/8571))
35
+
36
+ ### Fixed
37
+
38
+ - Prevent invalid src hashes from being persisted in `txHistory` ([#8479](https://github.com/MetaMask/core/pull/8479))
39
+ - Make transaction status subscribers generic so that `txHistory` items get updated if there are any transaction updates matching by actionId, txMetaId, hash or type
40
+ - Skip saving smart transaction hashes on transaction submission. This used to make it possible for invalid src hashes to be stored in state and polled indefinitely. Instead, the txHistory item will now be updated with the confirmed tx hash when the `transactionStatusUpdated` event is published
41
+ - If there is no srcTxHash in state, attempt to set it based on the local TransactionController state
42
+
10
43
  ## [70.0.5]
11
44
 
12
45
  ### Changed
@@ -16,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
49
  - Add missing `@metamask/messenger` dependency ([#8318](https://github.com/MetaMask/core/pull/8318))
17
50
  - Bump `@metamask/controller-utils` from `^11.19.0` to `^11.20.0` ([#8344](https://github.com/MetaMask/core/pull/8344))
18
51
 
52
+ ### Deprecated
53
+
54
+ - Deprecate `BridgeStatusAction` in favor of separate action types ([#8367](https://github.com/MetaMask/core/pull/8367))
55
+
19
56
  ## [70.0.4]
20
57
 
21
58
  ### Changed
@@ -106,7 +143,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
106
143
 
107
144
  ### Changed
108
145
 
109
- - Bump `@metamask/transaction-controller` from `^62.19.0` to `^62.21.0` ([#8104](https://github.com/MetaMask/core/pull/8104)), ([#8140](https://github.com/MetaMask/core/pull/8140))
146
+ - Bump `@metamask/transaction-controller` from `^62.19.0` to `^62.21.0`, ([#8104](https://github.com/MetaMask/core/pull/8104), [#8140](https://github.com/MetaMask/core/pull/8140))
110
147
  - Bump `@metamask/accounts-controller` from `^36.0.1` to `^37.0.0` ([8140](https://github.com/MetaMask/core/pull/8140))
111
148
  - Bump `@metamask/bridge-controller` from `^68.0.0` to `^69.0.0` ([8140](https://github.com/MetaMask/core/pull/8140))
112
149
 
@@ -171,8 +208,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
171
208
  ### Changed
172
209
 
173
210
  - Bump `@metamask/accounts-controller` from `^35.0.2` to `^36.0.0` ([#7897](https://github.com/MetaMask/core/pull/7897))
174
- - Bump `@metamask/bridge-controller` from `^65.3.0` to `^66.1.0` ([#7862](https://github.com/MetaMask/core/pull/7862)), ([#7897](https://github.com/MetaMask/core/pull/7897))
175
- - Bump `@metamask/transaction-controller` from `^62.14.0` to `^62.17.0` ([#7854](https://github.com/MetaMask/core/pull/7854), [#7872](https://github.com/MetaMask/core/pull/7872)), ([#7897](https://github.com/MetaMask/core/pull/7897))
211
+ - Bump `@metamask/bridge-controller` from `^65.3.0` to `^66.1.0`, ([#7862](https://github.com/MetaMask/core/pull/7862), [#7897](https://github.com/MetaMask/core/pull/7897))
212
+ - Bump `@metamask/transaction-controller` from `^62.14.0` to `^62.17.0`, ([#7854](https://github.com/MetaMask/core/pull/7854), [#7872](https://github.com/MetaMask/core/pull/7872), [#7897](https://github.com/MetaMask/core/pull/7897))
176
213
 
177
214
  ## [66.0.0]
178
215
 
@@ -537,7 +574,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
537
574
 
538
575
  ### Changed
539
576
 
540
- - Bump `@metamask/bridge-controller` from `^44.0.1` to `^45.0.0` ([#6716](https://github.com/MetaMask/core/pull/6716), [#6629](https://github.com/MetaMask/core/pull/6716))
577
+ - Bump `@metamask/bridge-controller` from `^44.0.1` to `^45.0.0` ([#6716](https://github.com/MetaMask/core/pull/6716), [#6629](https://github.com/MetaMask/core/pull/6629))
541
578
 
542
579
  ## [44.1.0]
543
580
 
@@ -678,7 +715,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
678
715
 
679
716
  - **BREAKING:** Bump peer dependency `@metamask/accounts-controller` to `^32.0.0` ([#6171](https://github.com/MetaMask/core/pull/6171))
680
717
  - **BREAKING:** Bump peer dependency `@metamask/bridge-controller` to `^37.0.0` ([#6171](https://github.com/MetaMask/core/pull/6171))
681
- - **BREAKING:** Bump peer dependency `@metamask/transaction-controller` to `^59.0.0` ([#6171](https://github.com/MetaMask/core/pull/6171)), ([#6027](https://github.com/MetaMask/core/pull/6027))
718
+ - **BREAKING:** Bump peer dependency `@metamask/transaction-controller` to `^59.0.0`, ([#6171](https://github.com/MetaMask/core/pull/6171), [#6027](https://github.com/MetaMask/core/pull/6027))
682
719
 
683
720
  ## [36.1.0]
684
721
 
@@ -993,7 +1030,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
993
1030
 
994
1031
  ### Changed
995
1032
 
996
- - **BREAKING** Change `@metamask/bridge-controller` from dependency to peer dependency and bump to `^16.0.0` ([#5657](https://github.com/MetaMask/core/pull/5657), [#5665](https://github.com/MetaMask/core/pull/5665), [#5643](https://github.com/MetaMask/core/pull/5643) [#5672](https://github.com/MetaMask/core/pull/5672))
1033
+ - **BREAKING** Change `@metamask/bridge-controller` from dependency to peer dependency and bump to `^16.0.0` ([#5657](https://github.com/MetaMask/core/pull/5657), [#5665](https://github.com/MetaMask/core/pull/5665), [#5643](https://github.com/MetaMask/core/pull/5643), [#5672](https://github.com/MetaMask/core/pull/5672))
997
1034
  - Add optional config.customBridgeApiBaseUrl constructor arg to set the bridge-api base URL ([#5634](https://github.com/MetaMask/core/pull/5634))
998
1035
  - Add required `addTransactionFn` and `estimateGasFeeFn` args to the BridgeStatusController constructor to enable calling TransactionController's methods from `submitTx` ([#5643](https://github.com/MetaMask/core/pull/5643))
999
1036
  - Add optional `addUserOperationFromTransactionFn` arg to the BridgeStatusController constructor to enable submitting txs from smart accounts using the UserOperationController's addUserOperationFromTransaction method ([#5643](https://github.com/MetaMask/core/pull/5643))
@@ -1020,7 +1057,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1020
1057
 
1021
1058
  - **BREAKING:** Bump `@metamask/transaction-controller` peer dependency to `^53.0.0` ([#5585](https://github.com/MetaMask/core/pull/5585))
1022
1059
  - Bump `@metamask/bridge-controller` dependency to `^11.0.0` ([#5525](https://github.com/MetaMask/core/pull/5525))
1023
- - **BREAKING:** Change controller to fetch multichain address instead of EVM ([#5554](https://github.com/MetaMask/core/pull/5540))
1060
+ - **BREAKING:** Change controller to fetch multichain address instead of EVM ([#5554](https://github.com/MetaMask/core/pull/5554))
1024
1061
 
1025
1062
  ## [10.0.0]
1026
1063
 
@@ -1098,7 +1135,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1098
1135
 
1099
1136
  - Initial release ([#5317](https://github.com/MetaMask/core/pull/5317))
1100
1137
 
1101
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@70.0.5...HEAD
1138
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@71.0.0...HEAD
1139
+ [71.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@70.0.5...@metamask/bridge-status-controller@71.0.0
1102
1140
  [70.0.5]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@70.0.4...@metamask/bridge-status-controller@70.0.5
1103
1141
  [70.0.4]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@70.0.3...@metamask/bridge-status-controller@70.0.4
1104
1142
  [70.0.3]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@70.0.2...@metamask/bridge-status-controller@70.0.3
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * This file is auto generated.
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=bridge-status-controller-method-action-types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-status-controller-method-action-types.cjs","sourceRoot":"","sources":["../src/bridge-status-controller-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { BridgeStatusController } from './bridge-status-controller';\n\nexport type BridgeStatusControllerStartPollingForBridgeTxStatusAction = {\n type: `BridgeStatusController:startPollingForBridgeTxStatus`;\n handler: BridgeStatusController['startPollingForBridgeTxStatus'];\n};\n\nexport type BridgeStatusControllerWipeBridgeStatusAction = {\n type: `BridgeStatusController:wipeBridgeStatus`;\n handler: BridgeStatusController['wipeBridgeStatus'];\n};\n\nexport type BridgeStatusControllerResetStateAction = {\n type: `BridgeStatusController:resetState`;\n handler: BridgeStatusController['resetState'];\n};\n\nexport type BridgeStatusControllerSubmitTxAction = {\n type: `BridgeStatusController:submitTx`;\n handler: BridgeStatusController['submitTx'];\n};\n\nexport type BridgeStatusControllerSubmitIntentAction = {\n type: `BridgeStatusController:submitIntent`;\n handler: BridgeStatusController['submitIntent'];\n};\n\nexport type BridgeStatusControllerRestartPollingForFailedAttemptsAction = {\n type: `BridgeStatusController:restartPollingForFailedAttempts`;\n handler: BridgeStatusController['restartPollingForFailedAttempts'];\n};\n\nexport type BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction = {\n type: `BridgeStatusController:getBridgeHistoryItemByTxMetaId`;\n handler: BridgeStatusController['getBridgeHistoryItemByTxMetaId'];\n};\n\n/**\n * Union of all BridgeStatusController action types.\n */\nexport type BridgeStatusControllerMethodActions =\n | BridgeStatusControllerStartPollingForBridgeTxStatusAction\n | BridgeStatusControllerWipeBridgeStatusAction\n | BridgeStatusControllerResetStateAction\n | BridgeStatusControllerSubmitTxAction\n | BridgeStatusControllerSubmitIntentAction\n | BridgeStatusControllerRestartPollingForFailedAttemptsAction\n | BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction;\n"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ import type { BridgeStatusController } from "./bridge-status-controller.cjs";
6
+ export type BridgeStatusControllerStartPollingForBridgeTxStatusAction = {
7
+ type: `BridgeStatusController:startPollingForBridgeTxStatus`;
8
+ handler: BridgeStatusController['startPollingForBridgeTxStatus'];
9
+ };
10
+ export type BridgeStatusControllerWipeBridgeStatusAction = {
11
+ type: `BridgeStatusController:wipeBridgeStatus`;
12
+ handler: BridgeStatusController['wipeBridgeStatus'];
13
+ };
14
+ export type BridgeStatusControllerResetStateAction = {
15
+ type: `BridgeStatusController:resetState`;
16
+ handler: BridgeStatusController['resetState'];
17
+ };
18
+ export type BridgeStatusControllerSubmitTxAction = {
19
+ type: `BridgeStatusController:submitTx`;
20
+ handler: BridgeStatusController['submitTx'];
21
+ };
22
+ export type BridgeStatusControllerSubmitIntentAction = {
23
+ type: `BridgeStatusController:submitIntent`;
24
+ handler: BridgeStatusController['submitIntent'];
25
+ };
26
+ export type BridgeStatusControllerRestartPollingForFailedAttemptsAction = {
27
+ type: `BridgeStatusController:restartPollingForFailedAttempts`;
28
+ handler: BridgeStatusController['restartPollingForFailedAttempts'];
29
+ };
30
+ export type BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction = {
31
+ type: `BridgeStatusController:getBridgeHistoryItemByTxMetaId`;
32
+ handler: BridgeStatusController['getBridgeHistoryItemByTxMetaId'];
33
+ };
34
+ /**
35
+ * Union of all BridgeStatusController action types.
36
+ */
37
+ export type BridgeStatusControllerMethodActions = BridgeStatusControllerStartPollingForBridgeTxStatusAction | BridgeStatusControllerWipeBridgeStatusAction | BridgeStatusControllerResetStateAction | BridgeStatusControllerSubmitTxAction | BridgeStatusControllerSubmitIntentAction | BridgeStatusControllerRestartPollingForFailedAttemptsAction | BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction;
38
+ //# sourceMappingURL=bridge-status-controller-method-action-types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-status-controller-method-action-types.d.cts","sourceRoot":"","sources":["../src/bridge-status-controller-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAmC;AAEzE,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,sBAAsB,CAAC,+BAA+B,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,qCAAqC,CAAC;IAC5C,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,2DAA2D,GAAG;IACxE,IAAI,EAAE,wDAAwD,CAAC;IAC/D,OAAO,EAAE,sBAAsB,CAAC,iCAAiC,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,0DAA0D,GAAG;IACvE,IAAI,EAAE,uDAAuD,CAAC;IAC9D,OAAO,EAAE,sBAAsB,CAAC,gCAAgC,CAAC,CAAC;CACnE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAC3C,yDAAyD,GACzD,4CAA4C,GAC5C,sCAAsC,GACtC,oCAAoC,GACpC,wCAAwC,GACxC,2DAA2D,GAC3D,0DAA0D,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ import type { BridgeStatusController } from "./bridge-status-controller.mjs";
6
+ export type BridgeStatusControllerStartPollingForBridgeTxStatusAction = {
7
+ type: `BridgeStatusController:startPollingForBridgeTxStatus`;
8
+ handler: BridgeStatusController['startPollingForBridgeTxStatus'];
9
+ };
10
+ export type BridgeStatusControllerWipeBridgeStatusAction = {
11
+ type: `BridgeStatusController:wipeBridgeStatus`;
12
+ handler: BridgeStatusController['wipeBridgeStatus'];
13
+ };
14
+ export type BridgeStatusControllerResetStateAction = {
15
+ type: `BridgeStatusController:resetState`;
16
+ handler: BridgeStatusController['resetState'];
17
+ };
18
+ export type BridgeStatusControllerSubmitTxAction = {
19
+ type: `BridgeStatusController:submitTx`;
20
+ handler: BridgeStatusController['submitTx'];
21
+ };
22
+ export type BridgeStatusControllerSubmitIntentAction = {
23
+ type: `BridgeStatusController:submitIntent`;
24
+ handler: BridgeStatusController['submitIntent'];
25
+ };
26
+ export type BridgeStatusControllerRestartPollingForFailedAttemptsAction = {
27
+ type: `BridgeStatusController:restartPollingForFailedAttempts`;
28
+ handler: BridgeStatusController['restartPollingForFailedAttempts'];
29
+ };
30
+ export type BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction = {
31
+ type: `BridgeStatusController:getBridgeHistoryItemByTxMetaId`;
32
+ handler: BridgeStatusController['getBridgeHistoryItemByTxMetaId'];
33
+ };
34
+ /**
35
+ * Union of all BridgeStatusController action types.
36
+ */
37
+ export type BridgeStatusControllerMethodActions = BridgeStatusControllerStartPollingForBridgeTxStatusAction | BridgeStatusControllerWipeBridgeStatusAction | BridgeStatusControllerResetStateAction | BridgeStatusControllerSubmitTxAction | BridgeStatusControllerSubmitIntentAction | BridgeStatusControllerRestartPollingForFailedAttemptsAction | BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction;
38
+ //# sourceMappingURL=bridge-status-controller-method-action-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-status-controller-method-action-types.d.mts","sourceRoot":"","sources":["../src/bridge-status-controller-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAmC;AAEzE,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,sBAAsB,CAAC,+BAA+B,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,qCAAqC,CAAC;IAC5C,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,2DAA2D,GAAG;IACxE,IAAI,EAAE,wDAAwD,CAAC;IAC/D,OAAO,EAAE,sBAAsB,CAAC,iCAAiC,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,0DAA0D,GAAG;IACvE,IAAI,EAAE,uDAAuD,CAAC;IAC9D,OAAO,EAAE,sBAAsB,CAAC,gCAAgC,CAAC,CAAC;CACnE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAC3C,yDAAyD,GACzD,4CAA4C,GAC5C,sCAAsC,GACtC,oCAAoC,GACpC,wCAAwC,GACxC,2DAA2D,GAC3D,0DAA0D,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=bridge-status-controller-method-action-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-status-controller-method-action-types.mjs","sourceRoot":"","sources":["../src/bridge-status-controller-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { BridgeStatusController } from './bridge-status-controller';\n\nexport type BridgeStatusControllerStartPollingForBridgeTxStatusAction = {\n type: `BridgeStatusController:startPollingForBridgeTxStatus`;\n handler: BridgeStatusController['startPollingForBridgeTxStatus'];\n};\n\nexport type BridgeStatusControllerWipeBridgeStatusAction = {\n type: `BridgeStatusController:wipeBridgeStatus`;\n handler: BridgeStatusController['wipeBridgeStatus'];\n};\n\nexport type BridgeStatusControllerResetStateAction = {\n type: `BridgeStatusController:resetState`;\n handler: BridgeStatusController['resetState'];\n};\n\nexport type BridgeStatusControllerSubmitTxAction = {\n type: `BridgeStatusController:submitTx`;\n handler: BridgeStatusController['submitTx'];\n};\n\nexport type BridgeStatusControllerSubmitIntentAction = {\n type: `BridgeStatusController:submitIntent`;\n handler: BridgeStatusController['submitIntent'];\n};\n\nexport type BridgeStatusControllerRestartPollingForFailedAttemptsAction = {\n type: `BridgeStatusController:restartPollingForFailedAttempts`;\n handler: BridgeStatusController['restartPollingForFailedAttempts'];\n};\n\nexport type BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction = {\n type: `BridgeStatusController:getBridgeHistoryItemByTxMetaId`;\n handler: BridgeStatusController['getBridgeHistoryItemByTxMetaId'];\n};\n\n/**\n * Union of all BridgeStatusController action types.\n */\nexport type BridgeStatusControllerMethodActions =\n | BridgeStatusControllerStartPollingForBridgeTxStatusAction\n | BridgeStatusControllerWipeBridgeStatusAction\n | BridgeStatusControllerResetStateAction\n | BridgeStatusControllerSubmitTxAction\n | BridgeStatusControllerSubmitIntentAction\n | BridgeStatusControllerRestartPollingForFailedAttemptsAction\n | BridgeStatusControllerGetBridgeHistoryItemByTxMetaIdAction;\n"]}