Skip to content

Commit

Permalink
feat: add externalLinkClicked to TransactionMetaBase type (#3828)
Browse files Browse the repository at this point in the history
## Explanation

This prop is used to pass a value used to be added as a transaction
metametric fragment prop.

## References

<!--
Are there any issues that this pull request is tied to? Are there other
links that reviewers should consult to understand these changes better?

For example:

-->

Fixes MetaMask/MetaMask-planning#1756
Related to MetaMask/metamask-extension#22631

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

### `@metamask/transaction-controller`

- **feat**: Adds `externalLinkClicked` prop to TransactionMetaBase type

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
  • Loading branch information
digiwand authored Jan 25, 2024
1 parent df6e4e5 commit 1dadf04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/transaction-controller/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ type TransactionMetaBase = {
*/
estimateUsed?: string;

/**
* Description of the link clicked associated with the transaction
*/
externalLinkClicked?: string;

/**
* The chosen amount which will be the same as the originally proposed token
* amount if the user does not edit the amount or will be a custom token
Expand Down

0 comments on commit 1dadf04

Please sign in to comment.