Skip to content

Commit

Permalink
add perp market configs and remove buffer layout library
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Dec 19, 2024
1 parent 973c753 commit b99c766
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/constants/perpMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type PerpMarketConfig = {
oracle: PublicKey;
oracleSource: OracleSource;
pythFeedId?: string;
pythLazerId?: number;
};

export const DevnetPerpMarkets: PerpMarketConfig[] = [
Expand All @@ -38,6 +39,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
pythLazerId: 1,
},
{
fullName: 'Ethereum',
Expand All @@ -50,6 +52,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
pythLazerId: 2,
},
{
fullName: 'Aptos',
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/constants/spotMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type SpotMarketConfig = {
openbookMarket?: PublicKey;
launchTs?: number;
pythFeedId?: string;
pythLazerId?: number;
};

export const WRAPPED_SOL_MINT = new PublicKey(
Expand All @@ -43,6 +44,7 @@ export const DevnetSpotMarkets: SpotMarketConfig[] = [
precisionExp: SIX,
pythFeedId:
'0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
pythLazerId: 7,
},
{
symbol: 'SOL',
Expand Down
2 changes: 1 addition & 1 deletion sdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit b99c766

Please sign in to comment.