chore(trading): upgrade pennant to v1.10.0 (#4331)

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
This commit is contained in:
John Walley 2023-07-26 15:35:57 +01:00 committed by GitHub
parent 90dda20891
commit 6f4ea68778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 25 deletions

View File

@ -127,7 +127,7 @@ describe(
{ {
name: 'Price monitoring bounds', name: 'Price monitoring bounds',
infoText: infoText:
'Price Monitoring Bounds: Min 162.56291Max 182.96869Reference 172.47489', 'Price Monitoring Bounds 1: Min 162.56291Max 182.96869Reference 172.47489',
}, },
]; ];

View File

@ -110,25 +110,22 @@ export class VegaDataSource implements DataSource {
this._decimalPlaces = data.market.decimalPlaces; this._decimalPlaces = data.market.decimalPlaces;
this._positionDecimalPlaces = data.market.positionDecimalPlaces; this._positionDecimalPlaces = data.market.positionDecimalPlaces;
let priceMonitoringBounds: PriceMonitoringBounds | undefined; let priceMonitoringBounds: PriceMonitoringBounds[] | undefined;
if ( if (data.market.data.priceMonitoringBounds) {
data.market.data.priceMonitoringBounds && priceMonitoringBounds = data.market.data.priceMonitoringBounds.map(
data.market.data.priceMonitoringBounds.length > 0 (bounds) => ({
) { maxValidPrice: Number(
const bounds = data.market.data.priceMonitoringBounds[0]; addDecimal(bounds.maxValidPrice, this._decimalPlaces)
),
priceMonitoringBounds = { minValidPrice: Number(
maxValidPrice: Number( addDecimal(bounds.minValidPrice, this._decimalPlaces)
addDecimal(bounds.maxValidPrice, this._decimalPlaces) ),
), referencePrice: Number(
minValidPrice: Number( addDecimal(bounds.referencePrice, this._decimalPlaces)
addDecimal(bounds.minValidPrice, this._decimalPlaces) ),
), })
referencePrice: Number( );
addDecimal(bounds.referencePrice, this._decimalPlaces)
),
};
} }
return { return {

View File

@ -69,7 +69,7 @@
"js-sha3": "^0.8.0", "js-sha3": "^0.8.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"next": "13.3.0", "next": "13.3.0",
"pennant": "1.9.0", "pennant": "1.10.0",
"react": "18.2.0", "react": "18.2.0",
"react-copy-to-clipboard": "^5.0.4", "react-copy-to-clipboard": "^5.0.4",
"react-dom": "18.2.0", "react-dom": "18.2.0",

View File

@ -9714,6 +9714,18 @@ allotment@1.18.1:
lodash.isequal "^4.5.0" lodash.isequal "^4.5.0"
use-resize-observer "^9.0.0" use-resize-observer "^9.0.0"
allotment@1.19.0:
version "1.19.0"
resolved "https://registry.yarnpkg.com/allotment/-/allotment-1.19.0.tgz#8241a2e3db45e6b1e23f6ade29e392eab4297958"
integrity sha512-qL/1faHUoCOvMstCFGkaGSK/nVoSAVN6NLFuIW4P6D5fvKdgxV8/KNfMFeuQUXReodILp4I6z+5a9zmuqK5t4g==
dependencies:
classnames "^2.3.0"
eventemitter3 "^5.0.0"
lodash.clamp "^4.0.0"
lodash.debounce "^4.0.0"
lodash.isequal "^4.5.0"
use-resize-observer "^9.0.0"
alpha-lyrae@vegaprotocol/alpha-lyrae: alpha-lyrae@vegaprotocol/alpha-lyrae:
version "1.0.0" version "1.0.0"
resolved "https://codeload.github.com/vegaprotocol/alpha-lyrae/tar.gz/d7d51ca6945aebeca57077320535362a959b2ca8" resolved "https://codeload.github.com/vegaprotocol/alpha-lyrae/tar.gz/d7d51ca6945aebeca57077320535362a959b2ca8"
@ -19975,10 +19987,10 @@ pend@~1.2.0:
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
pennant@1.9.0: pennant@1.10.0:
version "1.9.0" version "1.10.0"
resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.9.0.tgz#d7332548e17d5140e6655905e41bd6671bd37fc3" resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.10.0.tgz#c30bcc62f1da5a166785b9bce87727715fa28455"
integrity sha512-HgM82NnjH94Hc0dhq9knZMOyGT0QyMfMsGFtB4S6UMe2wlSxMpnmQKjtVYmug4PYAkXXprqPrb+mUhjcsPtm5g== integrity sha512-y3Oi2c8QdW6ovH+NeSwtGcEPZNr7rrHGhDIpWnYulCTEC5RvUUzRyPfOpVM2jL/D3iPUQvkSdC9hZ0jNHCyiuw==
dependencies: dependencies:
"@babel/runtime" "^7.13.10" "@babel/runtime" "^7.13.10"
"@d3fc/d3fc-technical-indicator" "^8.0.1" "@d3fc/d3fc-technical-indicator" "^8.0.1"
@ -19999,7 +20011,7 @@ pennant@1.9.0:
"@types/react" "^18.0.14" "@types/react" "^18.0.14"
"@types/react-dom" "^18.0.5" "@types/react-dom" "^18.0.5"
"@types/react-virtualized-auto-sizer" "^1.0.0" "@types/react-virtualized-auto-sizer" "^1.0.0"
allotment "1.18.1" allotment "1.19.0"
chroma-js "^2.4.2" chroma-js "^2.4.2"
classnames "^2.2.6" classnames "^2.2.6"
d3-array "2.8.0" d3-array "2.8.0"