Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/social-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `positionId` field to `Position` type and `PositionStruct` validation schema ([#8576](https://github.com/MetaMask/core/pull/8576))

## [2.0.0]

### Changed
Expand Down
1 change: 1 addition & 0 deletions packages/social-controllers/src/SocialService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const mockTrade = {
};

const mockPosition = {
positionId: 'position-1',
tokenSymbol: 'ETH',
tokenName: 'Ethereum',
tokenAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
Expand Down
1 change: 1 addition & 0 deletions packages/social-controllers/src/SocialService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const ProfileSummaryStruct = structType({
});

const PositionStruct = structType({
positionId: string(),
tokenSymbol: string(),
tokenName: string(),
tokenAddress: string(),
Expand Down
1 change: 1 addition & 0 deletions packages/social-controllers/src/social-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export type TraderProfileResponse = {
// ---------------------------------------------------------------------------

export type Position = {
positionId: string;
tokenSymbol: string;
tokenName: string;
tokenAddress: string;
Expand Down
Loading