Skip to content

Commit a92f9b1

Browse files
committed
chore: rename bridgePriceData -> priceData
1 parent 6570002 commit a92f9b1

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

packages/bridge-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+
### Changed
11+
12+
- **BREAKING** Rename `QuoteResponse.bridgePriceData` to `priceData`
13+
1014
## [22.0.0]
1115

1216
### Changed

packages/bridge-controller/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export type Quote = {
276276
bridges: string[];
277277
steps: Step[];
278278
refuel?: RefuelData;
279-
bridgePriceData?: {
279+
priceData?: {
280280
totalFromAmountUsd?: string;
281281
totalToAmountUsd?: string;
282282
priceImpact?: string;

packages/bridge-controller/tests/mock-quotes-sol-erc20.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"destAmount": "143291269234176100000"
138138
}
139139
],
140-
"bridgePriceData": {
140+
"priceData": {
141141
"totalFromAmountUsd": "124.9200",
142142
"totalToAmountUsd": "123.9469",
143143
"priceImpact": "0.007789785462696144"
@@ -284,7 +284,7 @@
284284
"destAmount": "141450025181571360000"
285285
}
286286
],
287-
"bridgePriceData": {
287+
"priceData": {
288288
"totalFromAmountUsd": "124.9200",
289289
"totalToAmountUsd": "122.3543",
290290
"priceImpact": "0.020538744796669922"

packages/bridge-status-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+
### Changed
11+
12+
- Replace `bridgePriceData` with `priceData` from QuoteResponse object
13+
1014
## [19.0.0]
1115

1216
### Changed

packages/bridge-status-controller/src/bridge-status-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ export class BridgeStatusController extends StaticIntervalPollingController<Brid
850850
...getFinalizedTxProperties(historyItem),
851851
error_message: 'error_message',
852852
price_impact: Number(
853-
historyItem.quote.bridgePriceData?.priceImpact ?? '0',
853+
historyItem.quote.priceData?.priceImpact ?? '0',
854854
),
855855
};
856856
}

0 commit comments

Comments
 (0)