@drift-labs/sdk 0.2.0-master.42 → 0.2.0-master.43
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/lib/driftClient.js +1 -1
- package/lib/idl/drift.json +4 -4
- package/package.json +1 -1
- package/src/driftClient.ts +1 -1
- package/src/idl/drift.json +4 -4
package/lib/driftClient.js
CHANGED
|
@@ -852,7 +852,7 @@ class DriftClient {
|
|
|
852
852
|
toUser,
|
|
853
853
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
854
854
|
state: await this.getStatePublicKey(),
|
|
855
|
-
spotMarketVault: this.
|
|
855
|
+
spotMarketVault: this.getSpotMarketAccount(marketIndex).vault,
|
|
856
856
|
},
|
|
857
857
|
remainingAccounts,
|
|
858
858
|
});
|
package/lib/idl/drift.json
CHANGED
|
@@ -3717,14 +3717,14 @@
|
|
|
3717
3717
|
"name": "lastWithdrawRequestTs",
|
|
3718
3718
|
"type": "i64"
|
|
3719
3719
|
},
|
|
3720
|
-
{
|
|
3721
|
-
"name": "marketIndex",
|
|
3722
|
-
"type": "u16"
|
|
3723
|
-
},
|
|
3724
3720
|
{
|
|
3725
3721
|
"name": "costBasis",
|
|
3726
3722
|
"type": "i64"
|
|
3727
3723
|
},
|
|
3724
|
+
{
|
|
3725
|
+
"name": "marketIndex",
|
|
3726
|
+
"type": "u16"
|
|
3727
|
+
},
|
|
3728
3728
|
{
|
|
3729
3729
|
"name": "padding",
|
|
3730
3730
|
"type": {
|
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED
|
@@ -1453,7 +1453,7 @@ export class DriftClient {
|
|
|
1453
1453
|
toUser,
|
|
1454
1454
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
1455
1455
|
state: await this.getStatePublicKey(),
|
|
1456
|
-
spotMarketVault: this.
|
|
1456
|
+
spotMarketVault: this.getSpotMarketAccount(marketIndex).vault,
|
|
1457
1457
|
},
|
|
1458
1458
|
remainingAccounts,
|
|
1459
1459
|
});
|
package/src/idl/drift.json
CHANGED
|
@@ -3717,14 +3717,14 @@
|
|
|
3717
3717
|
"name": "lastWithdrawRequestTs",
|
|
3718
3718
|
"type": "i64"
|
|
3719
3719
|
},
|
|
3720
|
-
{
|
|
3721
|
-
"name": "marketIndex",
|
|
3722
|
-
"type": "u16"
|
|
3723
|
-
},
|
|
3724
3720
|
{
|
|
3725
3721
|
"name": "costBasis",
|
|
3726
3722
|
"type": "i64"
|
|
3727
3723
|
},
|
|
3724
|
+
{
|
|
3725
|
+
"name": "marketIndex",
|
|
3726
|
+
"type": "u16"
|
|
3727
|
+
},
|
|
3728
3728
|
{
|
|
3729
3729
|
"name": "padding",
|
|
3730
3730
|
"type": {
|