From d8819e136f8669171ebd588e658c0bbc2f53ccb3 Mon Sep 17 00:00:00 2001 From: ameliejyc Date: Mon, 28 Sep 2026 18:26:21 +0100 Subject: [PATCH 1/2] feat: add securityData to rwa types --- packages/assets-controllers/CHANGELOG.md | 5 +++++ packages/assets-controllers/src/token-service.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 25259b7829c..385b42ee41f 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add optional `securityData` property to `RwaToken`, populated when `includeTokenSecurityData` is requested ([#PR_NUMBER](https://github.com/MetaMask/core/pull/PR_NUMBER)) +- Add optional `includeTokenSecurityData` property to `FetchRwasParams` ([#PR_NUMBER](https://github.com/MetaMask/core/pull/PR_NUMBER)) + ### Changed - Bump `immer` from `^9.0.21` to `^11.1.18` ([#10382](https://github.com/MetaMask/core/pull/10382)) diff --git a/packages/assets-controllers/src/token-service.ts b/packages/assets-controllers/src/token-service.ts index 206c33fc7a7..3843a0e6863 100644 --- a/packages/assets-controllers/src/token-service.ts +++ b/packages/assets-controllers/src/token-service.ts @@ -422,6 +422,7 @@ export type RwaToken = { decimals: number; name: string; rwaData: RwaTokenData; + securityData?: TokenSecurityData; }; export type RwasResponse = { @@ -461,6 +462,7 @@ export type FetchRwasParams = { | 'utilities' | 'energy' | 'real estate'; + includeTokenSecurityData?: boolean; [key: string]: string | number | boolean | string[] | undefined; }; From 2ad458a2d8d13f2c772998b84e4a02458104c3df Mon Sep 17 00:00:00 2001 From: ameliejyc Date: Mon, 28 Sep 2026 18:36:20 +0100 Subject: [PATCH 2/2] chore: update changelog --- packages/assets-controllers/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 385b42ee41f..649ebd50350 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add optional `securityData` property to `RwaToken`, populated when `includeTokenSecurityData` is requested ([#PR_NUMBER](https://github.com/MetaMask/core/pull/PR_NUMBER)) -- Add optional `includeTokenSecurityData` property to `FetchRwasParams` ([#PR_NUMBER](https://github.com/MetaMask/core/pull/PR_NUMBER)) +- Add optional `securityData` property to `RwaToken`, populated when `includeTokenSecurityData` is requested ([#10542](https://github.com/MetaMask/core/pull/10542)) +- Add optional `includeTokenSecurityData` property to `FetchRwasParams` ([#10542](https://github.com/MetaMask/core/pull/10542)) ### Changed