@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 +1 -1
- package/lib/browser/adminClient.js +6 -6
- package/lib/browser/idl/drift.json +28 -2
- package/lib/node/adminClient.js +6 -6
- package/lib/node/idl/drift.json +28 -2
- package/package.json +1 -1
- package/src/adminClient.ts +6 -6
- package/src/idl/drift.json +28 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.124.0-beta.
|
|
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.
|
|
505
|
-
? this.
|
|
506
|
-
: this.
|
|
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.
|
|
631
|
-
? this.
|
|
632
|
-
: this.
|
|
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": "
|
|
10938
|
-
"type": "
|
|
10963
|
+
"name": "oracleSlotDelayOverride",
|
|
10964
|
+
"type": "i8"
|
|
10939
10965
|
},
|
|
10940
10966
|
{
|
|
10941
10967
|
"name": "totalFeeEarnedPerLp",
|
package/lib/node/adminClient.js
CHANGED
|
@@ -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.
|
|
505
|
-
? this.
|
|
506
|
-
: this.
|
|
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.
|
|
631
|
-
? this.
|
|
632
|
-
: this.
|
|
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
|
},
|
package/lib/node/idl/drift.json
CHANGED
|
@@ -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": "
|
|
10938
|
-
"type": "
|
|
10963
|
+
"name": "oracleSlotDelayOverride",
|
|
10964
|
+
"type": "i8"
|
|
10939
10965
|
},
|
|
10940
10966
|
{
|
|
10941
10967
|
"name": "totalFeeEarnedPerLp",
|
package/package.json
CHANGED
package/src/adminClient.ts
CHANGED
|
@@ -1131,9 +1131,9 @@ export class AdminClient extends DriftClient {
|
|
|
1131
1131
|
curveUpdateIntensity,
|
|
1132
1132
|
{
|
|
1133
1133
|
accounts: {
|
|
1134
|
-
admin: this.
|
|
1135
|
-
? this.
|
|
1136
|
-
: this.
|
|
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.
|
|
1433
|
-
? this.
|
|
1434
|
-
: this.
|
|
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,
|
package/src/idl/drift.json
CHANGED
|
@@ -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": "
|
|
10938
|
-
"type": "
|
|
10963
|
+
"name": "oracleSlotDelayOverride",
|
|
10964
|
+
"type": "i8"
|
|
10939
10965
|
},
|
|
10940
10966
|
{
|
|
10941
10967
|
"name": "totalFeeEarnedPerLp",
|