diff --git a/sdk/package.json b/sdk/package.json index 7fbcd62c4..eae566a1e 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -45,7 +45,6 @@ "@pythnetwork/client": "2.5.3", "@pythnetwork/price-service-sdk": "1.7.1", "@pythnetwork/pyth-solana-receiver": "0.7.0", - "@solana/buffer-layout": "4.0.1", "@solana/spl-token": "0.3.7", "@solana/web3.js": "1.92.3", "@switchboard-xyz/on-demand": "1.2.42", diff --git a/sdk/src/constants/perpMarkets.ts b/sdk/src/constants/perpMarkets.ts index a67b938f4..756eec254 100644 --- a/sdk/src/constants/perpMarkets.ts +++ b/sdk/src/constants/perpMarkets.ts @@ -12,6 +12,7 @@ export type PerpMarketConfig = { oracle: PublicKey; oracleSource: OracleSource; pythFeedId?: string; + pythLazerId?: number; }; export const DevnetPerpMarkets: PerpMarketConfig[] = [ @@ -38,6 +39,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [ oracleSource: OracleSource.PYTH_PULL, pythFeedId: '0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43', + pythLazerId: 1, }, { fullName: 'Ethereum', @@ -50,6 +52,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [ oracleSource: OracleSource.PYTH_PULL, pythFeedId: '0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace', + pythLazerId: 2, }, { fullName: 'Aptos', diff --git a/sdk/src/constants/spotMarkets.ts b/sdk/src/constants/spotMarkets.ts index 30f2ac151..7315c348b 100644 --- a/sdk/src/constants/spotMarkets.ts +++ b/sdk/src/constants/spotMarkets.ts @@ -25,6 +25,7 @@ export type SpotMarketConfig = { openbookMarket?: PublicKey; launchTs?: number; pythFeedId?: string; + pythLazerId?: number; }; export const WRAPPED_SOL_MINT = new PublicKey( @@ -43,6 +44,7 @@ export const DevnetSpotMarkets: SpotMarketConfig[] = [ precisionExp: SIX, pythFeedId: '0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a', + pythLazerId: 7, }, { symbol: 'SOL', diff --git a/sdk/yarn.lock b/sdk/yarn.lock index 80317ef1b..85fb9e30f 100644 --- a/sdk/yarn.lock +++ b/sdk/yarn.lock @@ -493,7 +493,7 @@ bigint-buffer "^1.1.5" bignumber.js "^9.0.1" -"@solana/buffer-layout@4.0.1", "@solana/buffer-layout@^4.0.0", "@solana/buffer-layout@^4.0.1": +"@solana/buffer-layout@^4.0.0", "@solana/buffer-layout@^4.0.1": version "4.0.1" resolved "https://registry.yarnpkg.com/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz#b996235eaec15b1e0b5092a8ed6028df77fa6c15" integrity sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==