Skip to content

Commit 592281e

Browse files
committed
chore: add support for predict deposit and order
1 parent 0382a83 commit 592281e

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

packages/transaction-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Add `predictDepositAndOrder` to `TransactionType` ([#XXXX](https://github.com/MetaMask/core/pull/XXXX))
1213
- Add `perpsAcrossDeposit` and `predictAcrossDeposit` transaction types for Across MetaMask Pay submissions ([#7886](https://github.com/MetaMask/core/pull/7886))
1314

1415
## [62.20.0]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { TransactionType } from './types';
2+
3+
describe('TransactionType', () => {
4+
it('includes predictDepositAndOrder', () => {
5+
expect(TransactionType.predictDepositAndOrder).toBe(
6+
'predictDepositAndOrder',
7+
);
8+
});
9+
});

packages/transaction-controller/src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,11 @@ export enum TransactionType {
833833
*/
834834
predictDeposit = 'predictDeposit',
835835

836+
/**
837+
* Deposit funds and place an order via Predict.
838+
*/
839+
predictDepositAndOrder = 'predictDepositAndOrder',
840+
836841
/**
837842
* Sell a position via Predict.
838843
*

0 commit comments

Comments
 (0)