@drift-labs/sdk 2.124.0-beta.13 → 2.124.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.124.0-beta.13
1
+ 2.124.0-beta.15
@@ -501,9 +501,9 @@ class AdminClient extends driftClient_1.DriftClient {
501
501
  async getUpdatePerpMarketCurveUpdateIntensityIx(perpMarketIndex, curveUpdateIntensity) {
502
502
  return await this.program.instruction.updatePerpMarketCurveUpdateIntensity(curveUpdateIntensity, {
503
503
  accounts: {
504
- admin: this.isSubscribed
505
- ? this.getStateAccount().admin
506
- : this.wallet.publicKey,
504
+ admin: this.useHotWalletAdmin
505
+ ? this.wallet.publicKey
506
+ : this.getStateAccount().admin,
507
507
  state: await this.getStatePublicKey(),
508
508
  perpMarket: await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex),
509
509
  },
@@ -627,9 +627,9 @@ class AdminClient extends driftClient_1.DriftClient {
627
627
  async getUpdateAmmJitIntensityIx(perpMarketIndex, ammJitIntensity) {
628
628
  return await this.program.instruction.updateAmmJitIntensity(ammJitIntensity, {
629
629
  accounts: {
630
- admin: this.isSubscribed
631
- ? this.getStateAccount().admin
632
- : this.wallet.publicKey,
630
+ admin: this.useHotWalletAdmin
631
+ ? this.wallet.publicKey
632
+ : this.getStateAccount().admin,
633
633
  state: await this.getStatePublicKey(),
634
634
  perpMarket: await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex),
635
635
  },
@@ -1808,9 +1808,9 @@ class AdminClient extends driftClient_1.DriftClient {
1808
1808
  const perpMarketPublicKey = await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex);
1809
1809
  return await this.program.instruction.updatePerpMarketTakerSpeedBumpOverride(takerSpeedBumpOverride, {
1810
1810
  accounts: {
1811
- admin: this.isSubscribed
1812
- ? this.getStateAccount().admin
1813
- : this.wallet.publicKey,
1811
+ admin: this.useHotWalletAdmin
1812
+ ? this.wallet.publicKey
1813
+ : this.getStateAccount().admin,
1814
1814
  state: await this.getStatePublicKey(),
1815
1815
  perpMarket: perpMarketPublicKey,
1816
1816
  },
@@ -1826,9 +1826,9 @@ class AdminClient extends driftClient_1.DriftClient {
1826
1826
  const perpMarketPublicKey = await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex);
1827
1827
  return await this.program.instruction.updatePerpMarketAmmSpreadAdjustment(ammSpreadAdjustment, {
1828
1828
  accounts: {
1829
- admin: this.isSubscribed
1830
- ? this.getStateAccount().admin
1831
- : this.wallet.publicKey,
1829
+ admin: this.useHotWalletAdmin
1830
+ ? this.wallet.publicKey
1831
+ : this.getStateAccount().admin,
1832
1832
  state: await this.getStatePublicKey(),
1833
1833
  perpMarket: perpMarketPublicKey,
1834
1834
  },
@@ -6691,6 +6691,32 @@
6691
6691
  }
6692
6692
  ]
6693
6693
  },
6694
+ {
6695
+ "name": "updatePerpMarketOracleSlotDelayOverride",
6696
+ "accounts": [
6697
+ {
6698
+ "name": "admin",
6699
+ "isMut": false,
6700
+ "isSigner": true
6701
+ },
6702
+ {
6703
+ "name": "state",
6704
+ "isMut": false,
6705
+ "isSigner": false
6706
+ },
6707
+ {
6708
+ "name": "perpMarket",
6709
+ "isMut": true,
6710
+ "isSigner": false
6711
+ }
6712
+ ],
6713
+ "args": [
6714
+ {
6715
+ "name": "oracleSlotDelayOverride",
6716
+ "type": "i8"
6717
+ }
6718
+ ]
6719
+ },
6694
6720
  {
6695
6721
  "name": "updateSpotMarketFuel",
6696
6722
  "accounts": [
@@ -10934,8 +10960,8 @@
10934
10960
  "type": "i8"
10935
10961
  },
10936
10962
  {
10937
- "name": "padding1",
10938
- "type": "u8"
10963
+ "name": "oracleSlotDelayOverride",
10964
+ "type": "i8"
10939
10965
  },
10940
10966
  {
10941
10967
  "name": "totalFeeEarnedPerLp",
@@ -501,9 +501,9 @@ class AdminClient extends driftClient_1.DriftClient {
501
501
  async getUpdatePerpMarketCurveUpdateIntensityIx(perpMarketIndex, curveUpdateIntensity) {
502
502
  return await this.program.instruction.updatePerpMarketCurveUpdateIntensity(curveUpdateIntensity, {
503
503
  accounts: {
504
- admin: this.isSubscribed
505
- ? this.getStateAccount().admin
506
- : this.wallet.publicKey,
504
+ admin: this.useHotWalletAdmin
505
+ ? this.wallet.publicKey
506
+ : this.getStateAccount().admin,
507
507
  state: await this.getStatePublicKey(),
508
508
  perpMarket: await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex),
509
509
  },
@@ -627,9 +627,9 @@ class AdminClient extends driftClient_1.DriftClient {
627
627
  async getUpdateAmmJitIntensityIx(perpMarketIndex, ammJitIntensity) {
628
628
  return await this.program.instruction.updateAmmJitIntensity(ammJitIntensity, {
629
629
  accounts: {
630
- admin: this.isSubscribed
631
- ? this.getStateAccount().admin
632
- : this.wallet.publicKey,
630
+ admin: this.useHotWalletAdmin
631
+ ? this.wallet.publicKey
632
+ : this.getStateAccount().admin,
633
633
  state: await this.getStatePublicKey(),
634
634
  perpMarket: await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex),
635
635
  },
@@ -1808,9 +1808,9 @@ class AdminClient extends driftClient_1.DriftClient {
1808
1808
  const perpMarketPublicKey = await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex);
1809
1809
  return await this.program.instruction.updatePerpMarketTakerSpeedBumpOverride(takerSpeedBumpOverride, {
1810
1810
  accounts: {
1811
- admin: this.isSubscribed
1812
- ? this.getStateAccount().admin
1813
- : this.wallet.publicKey,
1811
+ admin: this.useHotWalletAdmin
1812
+ ? this.wallet.publicKey
1813
+ : this.getStateAccount().admin,
1814
1814
  state: await this.getStatePublicKey(),
1815
1815
  perpMarket: perpMarketPublicKey,
1816
1816
  },
@@ -1826,9 +1826,9 @@ class AdminClient extends driftClient_1.DriftClient {
1826
1826
  const perpMarketPublicKey = await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex);
1827
1827
  return await this.program.instruction.updatePerpMarketAmmSpreadAdjustment(ammSpreadAdjustment, {
1828
1828
  accounts: {
1829
- admin: this.isSubscribed
1830
- ? this.getStateAccount().admin
1831
- : this.wallet.publicKey,
1829
+ admin: this.useHotWalletAdmin
1830
+ ? this.wallet.publicKey
1831
+ : this.getStateAccount().admin,
1832
1832
  state: await this.getStatePublicKey(),
1833
1833
  perpMarket: perpMarketPublicKey,
1834
1834
  },
@@ -6691,6 +6691,32 @@
6691
6691
  }
6692
6692
  ]
6693
6693
  },
6694
+ {
6695
+ "name": "updatePerpMarketOracleSlotDelayOverride",
6696
+ "accounts": [
6697
+ {
6698
+ "name": "admin",
6699
+ "isMut": false,
6700
+ "isSigner": true
6701
+ },
6702
+ {
6703
+ "name": "state",
6704
+ "isMut": false,
6705
+ "isSigner": false
6706
+ },
6707
+ {
6708
+ "name": "perpMarket",
6709
+ "isMut": true,
6710
+ "isSigner": false
6711
+ }
6712
+ ],
6713
+ "args": [
6714
+ {
6715
+ "name": "oracleSlotDelayOverride",
6716
+ "type": "i8"
6717
+ }
6718
+ ]
6719
+ },
6694
6720
  {
6695
6721
  "name": "updateSpotMarketFuel",
6696
6722
  "accounts": [
@@ -10934,8 +10960,8 @@
10934
10960
  "type": "i8"
10935
10961
  },
10936
10962
  {
10937
- "name": "padding1",
10938
- "type": "u8"
10963
+ "name": "oracleSlotDelayOverride",
10964
+ "type": "i8"
10939
10965
  },
10940
10966
  {
10941
10967
  "name": "totalFeeEarnedPerLp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.124.0-beta.13",
3
+ "version": "2.124.0-beta.15",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -1131,9 +1131,9 @@ export class AdminClient extends DriftClient {
1131
1131
  curveUpdateIntensity,
1132
1132
  {
1133
1133
  accounts: {
1134
- admin: this.isSubscribed
1135
- ? this.getStateAccount().admin
1136
- : this.wallet.publicKey,
1134
+ admin: this.useHotWalletAdmin
1135
+ ? this.wallet.publicKey
1136
+ : this.getStateAccount().admin,
1137
1137
  state: await this.getStatePublicKey(),
1138
1138
  perpMarket: await getPerpMarketPublicKey(
1139
1139
  this.program.programId,
@@ -1429,9 +1429,9 @@ export class AdminClient extends DriftClient {
1429
1429
  ammJitIntensity,
1430
1430
  {
1431
1431
  accounts: {
1432
- admin: this.isSubscribed
1433
- ? this.getStateAccount().admin
1434
- : this.wallet.publicKey,
1432
+ admin: this.useHotWalletAdmin
1433
+ ? this.wallet.publicKey
1434
+ : this.getStateAccount().admin,
1435
1435
  state: await this.getStatePublicKey(),
1436
1436
  perpMarket: await getPerpMarketPublicKey(
1437
1437
  this.program.programId,
@@ -3950,9 +3950,9 @@ export class AdminClient extends DriftClient {
3950
3950
  takerSpeedBumpOverride,
3951
3951
  {
3952
3952
  accounts: {
3953
- admin: this.isSubscribed
3954
- ? this.getStateAccount().admin
3955
- : this.wallet.publicKey,
3953
+ admin: this.useHotWalletAdmin
3954
+ ? this.wallet.publicKey
3955
+ : this.getStateAccount().admin,
3956
3956
  state: await this.getStatePublicKey(),
3957
3957
  perpMarket: perpMarketPublicKey,
3958
3958
  },
@@ -3990,9 +3990,9 @@ export class AdminClient extends DriftClient {
3990
3990
  ammSpreadAdjustment,
3991
3991
  {
3992
3992
  accounts: {
3993
- admin: this.isSubscribed
3994
- ? this.getStateAccount().admin
3995
- : this.wallet.publicKey,
3993
+ admin: this.useHotWalletAdmin
3994
+ ? this.wallet.publicKey
3995
+ : this.getStateAccount().admin,
3996
3996
  state: await this.getStatePublicKey(),
3997
3997
  perpMarket: perpMarketPublicKey,
3998
3998
  },
@@ -6691,6 +6691,32 @@
6691
6691
  }
6692
6692
  ]
6693
6693
  },
6694
+ {
6695
+ "name": "updatePerpMarketOracleSlotDelayOverride",
6696
+ "accounts": [
6697
+ {
6698
+ "name": "admin",
6699
+ "isMut": false,
6700
+ "isSigner": true
6701
+ },
6702
+ {
6703
+ "name": "state",
6704
+ "isMut": false,
6705
+ "isSigner": false
6706
+ },
6707
+ {
6708
+ "name": "perpMarket",
6709
+ "isMut": true,
6710
+ "isSigner": false
6711
+ }
6712
+ ],
6713
+ "args": [
6714
+ {
6715
+ "name": "oracleSlotDelayOverride",
6716
+ "type": "i8"
6717
+ }
6718
+ ]
6719
+ },
6694
6720
  {
6695
6721
  "name": "updateSpotMarketFuel",
6696
6722
  "accounts": [
@@ -10934,8 +10960,8 @@
10934
10960
  "type": "i8"
10935
10961
  },
10936
10962
  {
10937
- "name": "padding1",
10938
- "type": "u8"
10963
+ "name": "oracleSlotDelayOverride",
10964
+ "type": "i8"
10939
10965
  },
10940
10966
  {
10941
10967
  "name": "totalFeeEarnedPerLp",