Skip to content

Commit 221177a

Browse files
committed
feat(STX-433): add submissionMethod to transaction metadata
1 parent 63a855e commit 221177a

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/transaction-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add optional `submissionMethod` property and `TransactionSubmissionMethod` enum to `TransactionMeta` ([#8375](https://github.com/MetaMask/core/pull/8375))
13+
1014
### Changed
1115

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

packages/transaction-controller/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export {
123123
TransactionContainerType,
124124
TransactionEnvelopeType,
125125
TransactionStatus,
126+
TransactionSubmissionMethod,
126127
TransactionType,
127128
UserFeeLevel,
128129
WalletDevice,

packages/transaction-controller/src/types.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ export type TransactionMeta = {
574574
error: string;
575575
message: string;
576576
};
577+
578+
/**
579+
* The method used to submit the transaction to the network.
580+
*/
581+
submissionMethod?: TransactionSubmissionMethod;
577582
};
578583

579584
/**
@@ -640,6 +645,14 @@ export type SendFlowHistoryEntry = {
640645
timestamp: number;
641646
};
642647

648+
/**
649+
* The method used to submit a transaction to the network.
650+
*/
651+
export enum TransactionSubmissionMethod {
652+
SentinelStx = 'sentinel_stx',
653+
SentinelRelay = 'sentinel_relay',
654+
}
655+
643656
/**
644657
* Represents the status of a transaction within the wallet.
645658
* Each status reflects the state of the transaction internally,

0 commit comments

Comments
 (0)