From 5125ebf7c973bb86598cdfdc843cbb6b7351ffcd Mon Sep 17 00:00:00 2001 From: Antonio Regadas Date: Wed, 22 Jul 2026 15:59:31 +0100 Subject: [PATCH 1/5] chore: pass marketcap --- packages/social-controllers/CHANGELOG.md | 6 ++++++ packages/social-controllers/package.json | 2 +- packages/social-controllers/src/social-types.ts | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/social-controllers/CHANGELOG.md b/packages/social-controllers/CHANGELOG.md index 58cde501931..46edeb4edcc 100644 --- a/packages/social-controllers/CHANGELOG.md +++ b/packages/social-controllers/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.6.0] + +### Added + +- Add optional `marketCap` to the `Trade` type (and `TradeStruct`) — historical token market cap at trade time from the social API ([#TBD](https://github.com/MetaMask/core/pull/TBD)) + ## [2.5.0] ### Added diff --git a/packages/social-controllers/package.json b/packages/social-controllers/package.json index a27c64ad182..deab1d9db91 100644 --- a/packages/social-controllers/package.json +++ b/packages/social-controllers/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/social-controllers", - "version": "2.5.0", + "version": "2.6.0", "description": "A collection of social related controllers", "keywords": [ "Ethereum", diff --git a/packages/social-controllers/src/social-types.ts b/packages/social-controllers/src/social-types.ts index 91d803e4672..3bf4b5b7880 100644 --- a/packages/social-controllers/src/social-types.ts +++ b/packages/social-controllers/src/social-types.ts @@ -50,6 +50,8 @@ export const TradeStruct = structType({ perpLeverage: optional(nullable(number())), tokenAmount: number(), usdCost: number(), + /** Token market cap in USD at trade time. `null` when Clicker has no mark. */ + marketCap: optional(nullable(number())), timestamp: number(), transactionHash: string(), }); From 57181b65cef17800bc529d6492a568c4be3339aa Mon Sep 17 00:00:00 2001 From: Antonio Regadas Date: Wed, 22 Jul 2026 16:03:17 +0100 Subject: [PATCH 2/5] chore: update changelog --- packages/social-controllers/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/social-controllers/CHANGELOG.md b/packages/social-controllers/CHANGELOG.md index 46edeb4edcc..51571fea16e 100644 --- a/packages/social-controllers/CHANGELOG.md +++ b/packages/social-controllers/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add optional `marketCap` to the `Trade` type (and `TradeStruct`) — historical token market cap at trade time from the social API ([#TBD](https://github.com/MetaMask/core/pull/TBD)) +- Add optional `marketCap` to the `Trade` type (and `TradeStruct`) — historical token market cap at trade time from the social API ([#9605](https://github.com/MetaMask/core/pull/9605)) ## [2.5.0] From 1f30ee692148d55606ab69877b95c3479497c0ac Mon Sep 17 00:00:00 2001 From: Antonio Regadas Date: Wed, 22 Jul 2026 16:09:39 +0100 Subject: [PATCH 3/5] chore: undo change and cleanup --- packages/social-controllers/CHANGELOG.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/social-controllers/CHANGELOG.md b/packages/social-controllers/CHANGELOG.md index 51571fea16e..58cde501931 100644 --- a/packages/social-controllers/CHANGELOG.md +++ b/packages/social-controllers/CHANGELOG.md @@ -7,12 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [2.6.0] - -### Added - -- Add optional `marketCap` to the `Trade` type (and `TradeStruct`) — historical token market cap at trade time from the social API ([#9605](https://github.com/MetaMask/core/pull/9605)) - ## [2.5.0] ### Added From 30bbd4b90f70a0f04b0c05792ba296407fd7a391 Mon Sep 17 00:00:00 2001 From: Antonio Regadas Date: Wed, 22 Jul 2026 16:10:54 +0100 Subject: [PATCH 4/5] chore: cleanup --- packages/social-controllers/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/social-controllers/CHANGELOG.md b/packages/social-controllers/CHANGELOG.md index 58cde501931..10507ede569 100644 --- a/packages/social-controllers/CHANGELOG.md +++ b/packages/social-controllers/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add optional `marketCap` to the `Trade` type (and `TradeStruct`) — historical token market cap at trade time from the social API ([#9605](https://github.com/MetaMask/core/pull/9605)) + ## [2.5.0] ### Added From eab250d0dfe9dcdcab51cd71a6be5004b9b818fd Mon Sep 17 00:00:00 2001 From: Antonio Regadas Date: Wed, 22 Jul 2026 16:11:46 +0100 Subject: [PATCH 5/5] chore: cleanup --- packages/social-controllers/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/social-controllers/package.json b/packages/social-controllers/package.json index deab1d9db91..a27c64ad182 100644 --- a/packages/social-controllers/package.json +++ b/packages/social-controllers/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/social-controllers", - "version": "2.6.0", + "version": "2.5.0", "description": "A collection of social related controllers", "keywords": [ "Ethereum",