- Add
messageSentfield toPriceData - Add
maxLatencyfield toPriceData
- Upgrade
@coral-xyz/anchorto^0.28.1-beta.1 - Upgrade
@coral-xyz/borshto^0.28.0
- Optimize Solana RPC calls
- Rename initPrice to
setExponentfor clarity
- Remove
pythtestand addpythtest-crosschainandpythtest-conformance. There are now two oracle instances.
- Fix import of
@coral-xyz/borsh
- Export
PythClusterandgetPythClusterApiUrlglobally
- Add method to fetch individual prices specified by user
- Add
PriceStatus.Ignored
- Add
@coral-xyz/anchorto deps - ``ProductData.priceAccountKey
wasPublicKey` becomes `PublicKey | null` if the product account doesn't yet have a price account - Anchor client now support
updProduct
- Add
localnettoPythCluster - Add
PermissiontoAccountType - Fix error in idl and make it support
permissionsAccount
- Add Anchor client
- Added
onPriceChangeVerbosecallback toPythConnectionto support getting account keys and slots on each price update.
- Added pythtest-conformance program key and cluster url
- Updated examples to work with pythtest-conformance
Moved solana/web3 to peerDependencies
Added timestamp fields (overwriting existing reserved space)
- Renamed websocket usage example to
example_ws_usage.ts - Updated documentation to describe usage for
PythHttpClient
- Example code for using the http client in
example_http_usage.ts
- Changed TWAP to EMAP and TWAC to EMAC
- Checks current slot when parsing a Price account and set status to unknown if price is stale. Being stale means it is not updated in
MAX_SLOT_DIFFERENCEslots (currently 25). - Adds status field in PriceData to access the current status (considering price getting stale) easier.
- Converts Some type/status structs to enums to be able to use them in a cleaner way. It's backward compatible.
Updated tests for Pyth symbology change
Improved error message when passing an invalid cluster name to pythProgramKeyForCluster
Restructure drv2 field in PriceData to minPublishers and other future drv values
Product only define price and confidence fields if it currently has a valid price
Memory leak in an underlying library
PythConnection
numQuoters
Support new twap and twac
Types
Support for v2 account structure
Support for v1 account structure
allow nextPriceAccountKey to be null
Updated README.md
Respect size when parsing product metadata
Gatsby support
Do not rely on Buffer's readBig(U)Int64LE
Repository url
Parse price as BigInt64
Initial release