Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion sdk/src/constants/perpMarkets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PublicKey } from '@solana/web3.js';
import { OracleSource } from '../types';
import { MarketStatus, OracleSource } from '../types';
import { DriftEnv } from '../config';

export type PerpMarketConfig = {
Expand All @@ -13,6 +13,7 @@ export type PerpMarketConfig = {
oracleSource: OracleSource;
pythFeedId?: string;
pythLazerId?: number;
marketStatus?: MarketStatus;
};

export const DevnetPerpMarkets: PerpMarketConfig[] = [
Expand Down Expand Up @@ -615,6 +616,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0x2f2d17abbc1e781bd87b4a5d52c8b2856886f5c482fa3593cebf6795040ab0b6',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'Pyth',
Expand Down Expand Up @@ -719,6 +721,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0xa9f3b2a89c6f85a6c20a9518abde39b944e839ca49a0c92307c65974d3f14a57',
pythLazerId: 83,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'BITTENSOR',
Expand Down Expand Up @@ -810,6 +813,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x82595d1509b770fa52681e260af4dda9752b87316d7c048535d8ead3fa856eb1',
pythLazerId: 90,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'ZEX',
Expand All @@ -822,6 +826,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0x3d63be09d1b88f6dffe6585d0170670592124fd9fa4e0fe8a09ff18464f05e3a',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'POPCAT',
Expand All @@ -847,6 +852,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_1K_PULL,
pythFeedId:
'0x5169491cd7e2a44c98353b779d5eb612e4ac32e073f5cc534303d86307c2f1bc',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'TRUMP-WIN-2024-BET',
Expand All @@ -857,6 +863,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('7YrQUxmxGdbk8pvns9KcL5ojbZSL2eHj62hxRqggtEUR'),
launchTs: 1723996800000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'KAMALA-POPULAR-VOTE-2024-BET',
Expand All @@ -867,6 +874,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('AowFw1dCVjS8kngvTCoT3oshiUyL69k7P1uxqXwteWH4'),
launchTs: 1723996800000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'FED-CUT-50-SEPT-2024-BET',
Expand All @@ -877,6 +885,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('5QzgqAbEhJ1cPnLX4tSZEXezmW7sz7PPVVg2VanGi8QQ'),
launchTs: 1724250126000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'REPUBLICAN-POPULAR-AND-WIN-BET',
Expand All @@ -887,6 +896,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('BtUUSUc9rZSzBmmKhQq4no65zHQTzMFeVYss7xcMRD53'),
launchTs: 1724250126000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'BREAKPOINT-IGGYERIC-BET',
Expand All @@ -897,6 +907,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('2ftYxoSupperd4ULxy9xyS2Az38wfAe7Lm8FCAPwjjVV'),
launchTs: 1724250126000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'DEMOCRATS-WIN-MICHIGAN-BET',
Expand All @@ -907,6 +918,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('8HTDLjhb2esGU5mu11v3pq3eWeFqmvKPkQNCnTTwKAyB'),
launchTs: 1725551484000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'TON',
Expand All @@ -930,6 +942,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('DpJz7rjTJLxxnuqrqZTUjMWtnaMFAEfZUv5ATdb9HTh1'),
launchTs: 1726646453000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'MOTHER',
Expand All @@ -943,6 +956,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x62742a997d01f7524f791fdb2dd43aaf0e567d765ebf8fd0406a994239e874d4',
pythLazerId: 501,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'MOODENG',
Expand All @@ -956,6 +970,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0xffff73128917a90950cd0473fd2551d7cd274fd5a6cc45641881bbcc6ee73417',
pythLazerId: 500,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'WARWICK-FIGHT-WIN-BET',
Expand All @@ -966,6 +981,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('Dz5Nvxo1hv7Zfyu11hy8e97twLMRKk6heTWCDGXytj7N'),
launchTs: 1727965864000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'DeBridge',
Expand All @@ -978,6 +994,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xf788488fe2df341b10a498e0a789f03209c0938d9ed04bc521f8224748d6d236',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'WLF-5B-1W',
Expand All @@ -988,6 +1005,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('7LpRfPaWR7cQqN7CMkCmZjEQpWyqso5LGuKCvDXH5ZAr'),
launchTs: 1728574493000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'VRSTPN-WIN-F1-24-DRVRS-CHMP',
Expand All @@ -998,6 +1016,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('E36rvXEwysWeiToXCpWfHVADd8bzzyR4w83ZSSwxAxqG'),
launchTs: 1729209600000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'LNDO-WIN-F1-24-US-GP',
Expand All @@ -1008,6 +1027,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('6AVy1y9SnJECnosQaiK2uY1kcT4ZEBf1F4DMvhxgvhUo'),
launchTs: 1729209600000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: '1KMEW',
Expand All @@ -1021,6 +1041,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x514aed52ca5294177f20187ae883cec4a018619772ddce41efcc36a6448f5d5d',
pythLazerId: 137,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'MICHI',
Expand All @@ -1033,6 +1054,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0x63a45218d6b13ffd28ca04748615511bf70eff80a3411c97d96b8ed74a6decab',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'GOAT',
Expand All @@ -1046,6 +1068,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0xf7731dc812590214d3eb4343bfb13d1b4cfa9b1d4e020644b5d5d8e07d60c66c',
pythLazerId: 437,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'FWOG',
Expand All @@ -1058,6 +1081,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0x656cc2a39dd795bdecb59de810d4f4d1e74c25fe4c42d0bf1c65a38d74df48e9',
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'PNUT',
Expand All @@ -1071,6 +1095,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x116da895807f81f6b5c5f01b109376e7f6834dc8b51365ab7cdfa66634340e54',
pythLazerId: 77,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'RAY',
Expand All @@ -1094,6 +1119,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('GfTeKKnBxeLSB1Hm24ArjduQM4yqaAgoGgiC99gq5E2P'),
launchTs: 1732721897000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'SUPERBOWL-LIX-CHIEFS',
Expand All @@ -1104,6 +1130,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('EdB17Nyu4bnEBiSEfFrwvp4VCUvtq9eDJHc6Ujys3Jwd'),
launchTs: 1732721897000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'Hyperliquid',
Expand Down Expand Up @@ -1169,6 +1196,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x2551eca7784671173def2c41e6f3e51e11cd87494863f1d208fdd8c64a1f85ae',
pythLazerId: 171,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'TRUMP',
Expand All @@ -1195,6 +1223,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
pythFeedId:
'0x8fef7d52c7f4e3a6258d663f9d27e64a1b6fd95ab5f7d545dbf9a515353d0064',
pythLazerId: 145,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'BERA',
Expand All @@ -1218,6 +1247,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('HieNNSAy9tjtU2mLEcGtgCMViCeZ1881fX7tfezL7wdV'),
launchTs: 1739463226000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'NBAFINALS25-BOS',
Expand All @@ -1228,6 +1258,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('HorrnsG8RBMv7dhzbgPX4wqcWbUTV5NwV8r59UwTu4CJ'),
launchTs: 1739463226000,
oracleSource: OracleSource.Prelaunch,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'KAITO',
Expand Down Expand Up @@ -1297,6 +1328,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
oracle: new PublicKey('GAzR3C5cn7gGVvuqJB57wSYTPWP3n2Lw4mRJRxvTvqYy'),
launchTs: 1747318237000,
oracleSource: OracleSource.PYTH_LAZER,
marketStatus: MarketStatus.DELISTED,
},
{
fullName: 'PUMP',
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 @@ -12,6 +12,7 @@ import {
import { OracleSource } from '../types';
import { BN } from '@coral-xyz/anchor';
import { DriftEnv } from '../config';
import { MarketStatus } from '@ellipsis-labs/phoenix-sdk';

export type SpotMarketConfig = {
symbol: string;
Expand All @@ -28,6 +29,7 @@ export type SpotMarketConfig = {
launchTs?: number;
pythFeedId?: string;
pythLazerId?: number;
marketStatus?: MarketStatus;
};

export const WRAPPED_SOL_MINT = new PublicKey(
Expand Down
Loading