Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/bridge-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add action types for all public `BridgeController` methods ([#8367](https://github.com/MetaMask/core/pull/8367))
- The following types are now available:
- `BridgeControllerUpdateBridgeQuoteRequestParamsAction`
- `BridgeControllerFetchQuotesAction`
- `BridgeControllerStopPollingForQuotesAction`
- `BridgeControllerSetLocationAction`
- `BridgeControllerResetStateAction`
- `BridgeControllerSetChainIntervalLengthAction`
- `BridgeControllerTrackUnifiedSwapBridgeEventAction`

### Changed

- Bump `@metamask/accounts-controller` from `^37.1.1` to `^37.2.0` ([#8363](https://github.com/MetaMask/core/pull/8363))
- Bump `@metamask/messenger` from `^1.0.0` to `^1.1.0` ([#8364](https://github.com/MetaMask/core/pull/8364))

### Deprecated

- Deprecate `BridgeControllerAction`, `BridgeUserAction` and `BridgeBackgroundAction` in favor of separate action types ([#8367](https://github.com/MetaMask/core/pull/8367))

## [70.0.1]

### Changed
Expand Down
2 changes: 2 additions & 0 deletions packages/bridge-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"build:docs": "typedoc",
"changelog:update": "../../scripts/update-changelog.sh @metamask/bridge-controller",
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/bridge-controller",
"generate-method-action-types": "tsx ../../packages/messenger/src/generate-action-types/cli.ts",
"since-latest-release": "../../scripts/since-latest-release.sh",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
Expand Down Expand Up @@ -85,6 +86,7 @@
"lodash": "^4.17.21",
"nock": "^13.3.1",
"ts-jest": "^29.2.5",
"tsx": "^4.20.5",
"typedoc": "^0.25.13",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~5.3.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* This file is auto generated.
* Do not edit manually.
*/

import type { BridgeController } from './bridge-controller';

export type BridgeControllerUpdateBridgeQuoteRequestParamsAction = {
type: `BridgeController:updateBridgeQuoteRequestParams`;
handler: BridgeController['updateBridgeQuoteRequestParams'];
};

export type BridgeControllerFetchQuotesAction = {
type: `BridgeController:fetchQuotes`;
handler: BridgeController['fetchQuotes'];
};

export type BridgeControllerStopPollingForQuotesAction = {
type: `BridgeController:stopPollingForQuotes`;
handler: BridgeController['stopPollingForQuotes'];
};

export type BridgeControllerSetLocationAction = {
type: `BridgeController:setLocation`;
handler: BridgeController['setLocation'];
};

export type BridgeControllerResetStateAction = {
type: `BridgeController:resetState`;
handler: BridgeController['resetState'];
};

export type BridgeControllerSetChainIntervalLengthAction = {
type: `BridgeController:setChainIntervalLength`;
handler: BridgeController['setChainIntervalLength'];
};

export type BridgeControllerTrackUnifiedSwapBridgeEventAction = {
type: `BridgeController:trackUnifiedSwapBridgeEvent`;
handler: BridgeController['trackUnifiedSwapBridgeEvent'];
};

/**
* Union of all BridgeController action types.
*/
export type BridgeControllerMethodActions =
| BridgeControllerUpdateBridgeQuoteRequestParamsAction
| BridgeControllerFetchQuotesAction
| BridgeControllerStopPollingForQuotesAction
| BridgeControllerSetLocationAction
| BridgeControllerResetStateAction
| BridgeControllerSetChainIntervalLengthAction
| BridgeControllerTrackUnifiedSwapBridgeEventAction;
Loading
Loading