Skip to content

Commit 8bb0244

Browse files
authored
optional status for delisted markets in constants files (#2011)
* optional status for delisted markets in constants files * remove some assets that are actually listed * commit more changes
1 parent 9cf2c3b commit 8bb0244

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

sdk/src/constants/perpMarkets.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PublicKey } from '@solana/web3.js';
2-
import { OracleSource } from '../types';
2+
import { MarketStatus, OracleSource } from '../types';
33
import { DriftEnv } from '../config';
44

55
export type PerpMarketConfig = {
@@ -13,6 +13,7 @@ export type PerpMarketConfig = {
1313
oracleSource: OracleSource;
1414
pythFeedId?: string;
1515
pythLazerId?: number;
16+
marketStatus?: MarketStatus;
1617
};
1718

1819
export const DevnetPerpMarkets: PerpMarketConfig[] = [
@@ -615,6 +616,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
615616
oracleSource: OracleSource.PYTH_PULL,
616617
pythFeedId:
617618
'0x2f2d17abbc1e781bd87b4a5d52c8b2856886f5c482fa3593cebf6795040ab0b6',
619+
marketStatus: MarketStatus.DELISTED,
618620
},
619621
{
620622
fullName: 'Pyth',
@@ -719,6 +721,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
719721
pythFeedId:
720722
'0xa9f3b2a89c6f85a6c20a9518abde39b944e839ca49a0c92307c65974d3f14a57',
721723
pythLazerId: 83,
724+
marketStatus: MarketStatus.DELISTED,
722725
},
723726
{
724727
fullName: 'BITTENSOR',
@@ -810,6 +813,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
810813
pythFeedId:
811814
'0x82595d1509b770fa52681e260af4dda9752b87316d7c048535d8ead3fa856eb1',
812815
pythLazerId: 90,
816+
marketStatus: MarketStatus.DELISTED,
813817
},
814818
{
815819
fullName: 'ZEX',
@@ -822,6 +826,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
822826
oracleSource: OracleSource.PYTH_PULL,
823827
pythFeedId:
824828
'0x3d63be09d1b88f6dffe6585d0170670592124fd9fa4e0fe8a09ff18464f05e3a',
829+
marketStatus: MarketStatus.DELISTED,
825830
},
826831
{
827832
fullName: 'POPCAT',
@@ -847,6 +852,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
847852
oracleSource: OracleSource.PYTH_1K_PULL,
848853
pythFeedId:
849854
'0x5169491cd7e2a44c98353b779d5eb612e4ac32e073f5cc534303d86307c2f1bc',
855+
marketStatus: MarketStatus.DELISTED,
850856
},
851857
{
852858
fullName: 'TRUMP-WIN-2024-BET',
@@ -857,6 +863,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
857863
oracle: new PublicKey('7YrQUxmxGdbk8pvns9KcL5ojbZSL2eHj62hxRqggtEUR'),
858864
launchTs: 1723996800000,
859865
oracleSource: OracleSource.Prelaunch,
866+
marketStatus: MarketStatus.DELISTED,
860867
},
861868
{
862869
fullName: 'KAMALA-POPULAR-VOTE-2024-BET',
@@ -867,6 +874,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
867874
oracle: new PublicKey('AowFw1dCVjS8kngvTCoT3oshiUyL69k7P1uxqXwteWH4'),
868875
launchTs: 1723996800000,
869876
oracleSource: OracleSource.Prelaunch,
877+
marketStatus: MarketStatus.DELISTED,
870878
},
871879
{
872880
fullName: 'FED-CUT-50-SEPT-2024-BET',
@@ -877,6 +885,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
877885
oracle: new PublicKey('5QzgqAbEhJ1cPnLX4tSZEXezmW7sz7PPVVg2VanGi8QQ'),
878886
launchTs: 1724250126000,
879887
oracleSource: OracleSource.Prelaunch,
888+
marketStatus: MarketStatus.DELISTED,
880889
},
881890
{
882891
fullName: 'REPUBLICAN-POPULAR-AND-WIN-BET',
@@ -887,6 +896,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
887896
oracle: new PublicKey('BtUUSUc9rZSzBmmKhQq4no65zHQTzMFeVYss7xcMRD53'),
888897
launchTs: 1724250126000,
889898
oracleSource: OracleSource.Prelaunch,
899+
marketStatus: MarketStatus.DELISTED,
890900
},
891901
{
892902
fullName: 'BREAKPOINT-IGGYERIC-BET',
@@ -897,6 +907,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
897907
oracle: new PublicKey('2ftYxoSupperd4ULxy9xyS2Az38wfAe7Lm8FCAPwjjVV'),
898908
launchTs: 1724250126000,
899909
oracleSource: OracleSource.Prelaunch,
910+
marketStatus: MarketStatus.DELISTED,
900911
},
901912
{
902913
fullName: 'DEMOCRATS-WIN-MICHIGAN-BET',
@@ -907,6 +918,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
907918
oracle: new PublicKey('8HTDLjhb2esGU5mu11v3pq3eWeFqmvKPkQNCnTTwKAyB'),
908919
launchTs: 1725551484000,
909920
oracleSource: OracleSource.Prelaunch,
921+
marketStatus: MarketStatus.DELISTED,
910922
},
911923
{
912924
fullName: 'TON',
@@ -930,6 +942,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
930942
oracle: new PublicKey('DpJz7rjTJLxxnuqrqZTUjMWtnaMFAEfZUv5ATdb9HTh1'),
931943
launchTs: 1726646453000,
932944
oracleSource: OracleSource.Prelaunch,
945+
marketStatus: MarketStatus.DELISTED,
933946
},
934947
{
935948
fullName: 'MOTHER',
@@ -943,6 +956,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
943956
pythFeedId:
944957
'0x62742a997d01f7524f791fdb2dd43aaf0e567d765ebf8fd0406a994239e874d4',
945958
pythLazerId: 501,
959+
marketStatus: MarketStatus.DELISTED,
946960
},
947961
{
948962
fullName: 'MOODENG',
@@ -956,6 +970,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
956970
pythFeedId:
957971
'0xffff73128917a90950cd0473fd2551d7cd274fd5a6cc45641881bbcc6ee73417',
958972
pythLazerId: 500,
973+
marketStatus: MarketStatus.DELISTED,
959974
},
960975
{
961976
fullName: 'WARWICK-FIGHT-WIN-BET',
@@ -966,6 +981,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
966981
oracle: new PublicKey('Dz5Nvxo1hv7Zfyu11hy8e97twLMRKk6heTWCDGXytj7N'),
967982
launchTs: 1727965864000,
968983
oracleSource: OracleSource.Prelaunch,
984+
marketStatus: MarketStatus.DELISTED,
969985
},
970986
{
971987
fullName: 'DeBridge',
@@ -978,6 +994,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
978994
oracleSource: OracleSource.PYTH_PULL,
979995
pythFeedId:
980996
'0xf788488fe2df341b10a498e0a789f03209c0938d9ed04bc521f8224748d6d236',
997+
marketStatus: MarketStatus.DELISTED,
981998
},
982999
{
9831000
fullName: 'WLF-5B-1W',
@@ -988,6 +1005,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
9881005
oracle: new PublicKey('7LpRfPaWR7cQqN7CMkCmZjEQpWyqso5LGuKCvDXH5ZAr'),
9891006
launchTs: 1728574493000,
9901007
oracleSource: OracleSource.Prelaunch,
1008+
marketStatus: MarketStatus.DELISTED,
9911009
},
9921010
{
9931011
fullName: 'VRSTPN-WIN-F1-24-DRVRS-CHMP',
@@ -998,6 +1016,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
9981016
oracle: new PublicKey('E36rvXEwysWeiToXCpWfHVADd8bzzyR4w83ZSSwxAxqG'),
9991017
launchTs: 1729209600000,
10001018
oracleSource: OracleSource.Prelaunch,
1019+
marketStatus: MarketStatus.DELISTED,
10011020
},
10021021
{
10031022
fullName: 'LNDO-WIN-F1-24-US-GP',
@@ -1008,6 +1027,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10081027
oracle: new PublicKey('6AVy1y9SnJECnosQaiK2uY1kcT4ZEBf1F4DMvhxgvhUo'),
10091028
launchTs: 1729209600000,
10101029
oracleSource: OracleSource.Prelaunch,
1030+
marketStatus: MarketStatus.DELISTED,
10111031
},
10121032
{
10131033
fullName: '1KMEW',
@@ -1021,6 +1041,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10211041
pythFeedId:
10221042
'0x514aed52ca5294177f20187ae883cec4a018619772ddce41efcc36a6448f5d5d',
10231043
pythLazerId: 137,
1044+
marketStatus: MarketStatus.DELISTED,
10241045
},
10251046
{
10261047
fullName: 'MICHI',
@@ -1033,6 +1054,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10331054
oracleSource: OracleSource.PYTH_PULL,
10341055
pythFeedId:
10351056
'0x63a45218d6b13ffd28ca04748615511bf70eff80a3411c97d96b8ed74a6decab',
1057+
marketStatus: MarketStatus.DELISTED,
10361058
},
10371059
{
10381060
fullName: 'GOAT',
@@ -1046,6 +1068,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10461068
pythFeedId:
10471069
'0xf7731dc812590214d3eb4343bfb13d1b4cfa9b1d4e020644b5d5d8e07d60c66c',
10481070
pythLazerId: 437,
1071+
marketStatus: MarketStatus.DELISTED,
10491072
},
10501073
{
10511074
fullName: 'FWOG',
@@ -1058,6 +1081,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10581081
oracleSource: OracleSource.PYTH_PULL,
10591082
pythFeedId:
10601083
'0x656cc2a39dd795bdecb59de810d4f4d1e74c25fe4c42d0bf1c65a38d74df48e9',
1084+
marketStatus: MarketStatus.DELISTED,
10611085
},
10621086
{
10631087
fullName: 'PNUT',
@@ -1071,6 +1095,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10711095
pythFeedId:
10721096
'0x116da895807f81f6b5c5f01b109376e7f6834dc8b51365ab7cdfa66634340e54',
10731097
pythLazerId: 77,
1098+
marketStatus: MarketStatus.DELISTED,
10741099
},
10751100
{
10761101
fullName: 'RAY',
@@ -1094,6 +1119,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
10941119
oracle: new PublicKey('GfTeKKnBxeLSB1Hm24ArjduQM4yqaAgoGgiC99gq5E2P'),
10951120
launchTs: 1732721897000,
10961121
oracleSource: OracleSource.Prelaunch,
1122+
marketStatus: MarketStatus.DELISTED,
10971123
},
10981124
{
10991125
fullName: 'SUPERBOWL-LIX-CHIEFS',
@@ -1104,6 +1130,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
11041130
oracle: new PublicKey('EdB17Nyu4bnEBiSEfFrwvp4VCUvtq9eDJHc6Ujys3Jwd'),
11051131
launchTs: 1732721897000,
11061132
oracleSource: OracleSource.Prelaunch,
1133+
marketStatus: MarketStatus.DELISTED,
11071134
},
11081135
{
11091136
fullName: 'Hyperliquid',
@@ -1169,6 +1196,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
11691196
pythFeedId:
11701197
'0x2551eca7784671173def2c41e6f3e51e11cd87494863f1d208fdd8c64a1f85ae',
11711198
pythLazerId: 171,
1199+
marketStatus: MarketStatus.DELISTED,
11721200
},
11731201
{
11741202
fullName: 'TRUMP',
@@ -1195,6 +1223,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
11951223
pythFeedId:
11961224
'0x8fef7d52c7f4e3a6258d663f9d27e64a1b6fd95ab5f7d545dbf9a515353d0064',
11971225
pythLazerId: 145,
1226+
marketStatus: MarketStatus.DELISTED,
11981227
},
11991228
{
12001229
fullName: 'BERA',
@@ -1218,6 +1247,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
12181247
oracle: new PublicKey('HieNNSAy9tjtU2mLEcGtgCMViCeZ1881fX7tfezL7wdV'),
12191248
launchTs: 1739463226000,
12201249
oracleSource: OracleSource.Prelaunch,
1250+
marketStatus: MarketStatus.DELISTED,
12211251
},
12221252
{
12231253
fullName: 'NBAFINALS25-BOS',
@@ -1228,6 +1258,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
12281258
oracle: new PublicKey('HorrnsG8RBMv7dhzbgPX4wqcWbUTV5NwV8r59UwTu4CJ'),
12291259
launchTs: 1739463226000,
12301260
oracleSource: OracleSource.Prelaunch,
1261+
marketStatus: MarketStatus.DELISTED,
12311262
},
12321263
{
12331264
fullName: 'KAITO',
@@ -1297,6 +1328,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
12971328
oracle: new PublicKey('GAzR3C5cn7gGVvuqJB57wSYTPWP3n2Lw4mRJRxvTvqYy'),
12981329
launchTs: 1747318237000,
12991330
oracleSource: OracleSource.PYTH_LAZER,
1331+
marketStatus: MarketStatus.DELISTED,
13001332
},
13011333
{
13021334
fullName: 'PUMP',

sdk/src/constants/spotMarkets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
import { OracleSource } from '../types';
1313
import { BN } from '@coral-xyz/anchor';
1414
import { DriftEnv } from '../config';
15+
import { MarketStatus } from '@ellipsis-labs/phoenix-sdk';
1516

1617
export type SpotMarketConfig = {
1718
symbol: string;
@@ -28,6 +29,7 @@ export type SpotMarketConfig = {
2829
launchTs?: number;
2930
pythFeedId?: string;
3031
pythLazerId?: number;
32+
marketStatus?: MarketStatus;
3133
};
3234

3335
export const WRAPPED_SOL_MINT = new PublicKey(

0 commit comments

Comments
 (0)