@drift-labs/sdk 2.36.1-beta.7 → 2.36.1-beta.9
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/driftClient.js +3 -3
- package/lib/idl/drift.json +4 -4
- package/package.json +1 -1
- package/src/driftClient.ts +12 -15
- package/src/idl/drift.json +4 -4
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.36.1-beta.
|
|
1
|
+
2.36.1-beta.9
|
package/lib/driftClient.js
CHANGED
|
@@ -2832,7 +2832,7 @@ class DriftClient {
|
|
|
2832
2832
|
isSigner: false,
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
|
-
return await this.program.instruction.updatePerpBidAskTwap(
|
|
2835
|
+
return await this.program.instruction.updatePerpBidAskTwap({
|
|
2836
2836
|
accounts: {
|
|
2837
2837
|
state: await this.getStatePublicKey(),
|
|
2838
2838
|
perpMarket: perpMarket.pubkey,
|
|
@@ -3099,10 +3099,10 @@ class DriftClient {
|
|
|
3099
3099
|
const tx = await this.program.transaction.depositIntoSpotMarketRevenuePool(amount, {
|
|
3100
3100
|
accounts: {
|
|
3101
3101
|
state: await this.getStatePublicKey(),
|
|
3102
|
-
spotMarket: spotMarket.
|
|
3103
|
-
userTokenAccount: userTokenAccountPublicKey,
|
|
3102
|
+
spotMarket: spotMarket.pubkey,
|
|
3104
3103
|
authority: this.wallet.publicKey,
|
|
3105
3104
|
spotMarketVault: spotMarket.vault,
|
|
3105
|
+
userTokenAccount: userTokenAccountPublicKey,
|
|
3106
3106
|
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
|
3107
3107
|
},
|
|
3108
3108
|
});
|
package/lib/idl/drift.json
CHANGED
|
@@ -2968,13 +2968,13 @@
|
|
|
2968
2968
|
"name": "depositIntoSpotMarketRevenuePool",
|
|
2969
2969
|
"accounts": [
|
|
2970
2970
|
{
|
|
2971
|
-
"name": "
|
|
2972
|
-
"isMut":
|
|
2971
|
+
"name": "state",
|
|
2972
|
+
"isMut": false,
|
|
2973
2973
|
"isSigner": false
|
|
2974
2974
|
},
|
|
2975
2975
|
{
|
|
2976
|
-
"name": "
|
|
2977
|
-
"isMut":
|
|
2976
|
+
"name": "spotMarket",
|
|
2977
|
+
"isMut": true,
|
|
2978
2978
|
"isSigner": false
|
|
2979
2979
|
},
|
|
2980
2980
|
{
|
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED
|
@@ -5109,19 +5109,16 @@ export class DriftClient {
|
|
|
5109
5109
|
});
|
|
5110
5110
|
}
|
|
5111
5111
|
|
|
5112
|
-
return await this.program.instruction.updatePerpBidAskTwap(
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
remainingAccounts,
|
|
5123
|
-
}
|
|
5124
|
-
);
|
|
5112
|
+
return await this.program.instruction.updatePerpBidAskTwap({
|
|
5113
|
+
accounts: {
|
|
5114
|
+
state: await this.getStatePublicKey(),
|
|
5115
|
+
perpMarket: perpMarket.pubkey,
|
|
5116
|
+
oracle: perpMarket.amm.oracle,
|
|
5117
|
+
authority: this.wallet.publicKey,
|
|
5118
|
+
keeperStats: this.getUserStatsAccountPublicKey(),
|
|
5119
|
+
},
|
|
5120
|
+
remainingAccounts,
|
|
5121
|
+
});
|
|
5125
5122
|
}
|
|
5126
5123
|
|
|
5127
5124
|
public async settleFundingPayment(
|
|
@@ -5598,10 +5595,10 @@ export class DriftClient {
|
|
|
5598
5595
|
{
|
|
5599
5596
|
accounts: {
|
|
5600
5597
|
state: await this.getStatePublicKey(),
|
|
5601
|
-
spotMarket: spotMarket.
|
|
5602
|
-
userTokenAccount: userTokenAccountPublicKey,
|
|
5598
|
+
spotMarket: spotMarket.pubkey,
|
|
5603
5599
|
authority: this.wallet.publicKey,
|
|
5604
5600
|
spotMarketVault: spotMarket.vault,
|
|
5601
|
+
userTokenAccount: userTokenAccountPublicKey,
|
|
5605
5602
|
tokenProgram: TOKEN_PROGRAM_ID,
|
|
5606
5603
|
},
|
|
5607
5604
|
}
|
package/src/idl/drift.json
CHANGED
|
@@ -2968,13 +2968,13 @@
|
|
|
2968
2968
|
"name": "depositIntoSpotMarketRevenuePool",
|
|
2969
2969
|
"accounts": [
|
|
2970
2970
|
{
|
|
2971
|
-
"name": "
|
|
2972
|
-
"isMut":
|
|
2971
|
+
"name": "state",
|
|
2972
|
+
"isMut": false,
|
|
2973
2973
|
"isSigner": false
|
|
2974
2974
|
},
|
|
2975
2975
|
{
|
|
2976
|
-
"name": "
|
|
2977
|
-
"isMut":
|
|
2976
|
+
"name": "spotMarket",
|
|
2977
|
+
"isMut": true,
|
|
2978
2978
|
"isSigner": false
|
|
2979
2979
|
},
|
|
2980
2980
|
{
|