@drift-labs/sdk-browser 2.124.0-beta.14 → 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.14
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
  },
@@ -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
  },
@@ -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-browser",
3
- "version": "2.124.0-beta.14",
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,
@@ -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",