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

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.14
@@ -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
  },
@@ -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
  },
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.14",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -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
  },