@drift-labs/sdk 2.110.0-beta.8 → 2.110.0-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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.110.0-beta.
|
|
1
|
+
2.110.0-beta.9
|
|
@@ -93,6 +93,7 @@ class SwiftOrderSubscriber {
|
|
|
93
93
|
async getPlaceAndMakeSwiftOrderIxs(orderMessageRaw, swiftOrderParamsMessage, makerOrderParams) {
|
|
94
94
|
const swiftOrderParamsBuf = Buffer.from(orderMessageRaw['order_message'], 'hex');
|
|
95
95
|
const takerAuthority = new web3_js_1.PublicKey(orderMessageRaw['taker_authority']);
|
|
96
|
+
const signingAuthority = new web3_js_1.PublicKey(orderMessageRaw['signing_authority']);
|
|
96
97
|
const takerUserPubkey = await (0, __1.getUserAccountPublicKey)(this.driftClient.program.programId, takerAuthority, swiftOrderParamsMessage.subAccountId);
|
|
97
98
|
const takerUserAccount = (await this.userMap.mustGet(takerUserPubkey.toString())).getUserAccount();
|
|
98
99
|
const ixs = await this.driftClient.getPlaceAndMakeSwiftPerpOrderIxs({
|
|
@@ -102,7 +103,7 @@ class SwiftOrderSubscriber {
|
|
|
102
103
|
taker: takerUserPubkey,
|
|
103
104
|
takerUserAccount,
|
|
104
105
|
takerStats: (0, __1.getUserStatsAccountPublicKey)(this.driftClient.program.programId, takerUserAccount.authority),
|
|
105
|
-
signingAuthority:
|
|
106
|
+
signingAuthority: signingAuthority,
|
|
106
107
|
}, Object.assign({}, makerOrderParams, {
|
|
107
108
|
postOnly: __1.PostOnlyParams.MUST_POST_ONLY,
|
|
108
109
|
immediateOrCancel: true,
|
|
@@ -93,6 +93,7 @@ class SwiftOrderSubscriber {
|
|
|
93
93
|
async getPlaceAndMakeSwiftOrderIxs(orderMessageRaw, swiftOrderParamsMessage, makerOrderParams) {
|
|
94
94
|
const swiftOrderParamsBuf = Buffer.from(orderMessageRaw['order_message'], 'hex');
|
|
95
95
|
const takerAuthority = new web3_js_1.PublicKey(orderMessageRaw['taker_authority']);
|
|
96
|
+
const signingAuthority = new web3_js_1.PublicKey(orderMessageRaw['signing_authority']);
|
|
96
97
|
const takerUserPubkey = await (0, __1.getUserAccountPublicKey)(this.driftClient.program.programId, takerAuthority, swiftOrderParamsMessage.subAccountId);
|
|
97
98
|
const takerUserAccount = (await this.userMap.mustGet(takerUserPubkey.toString())).getUserAccount();
|
|
98
99
|
const ixs = await this.driftClient.getPlaceAndMakeSwiftPerpOrderIxs({
|
|
@@ -102,7 +103,7 @@ class SwiftOrderSubscriber {
|
|
|
102
103
|
taker: takerUserPubkey,
|
|
103
104
|
takerUserAccount,
|
|
104
105
|
takerStats: (0, __1.getUserStatsAccountPublicKey)(this.driftClient.program.programId, takerUserAccount.authority),
|
|
105
|
-
signingAuthority:
|
|
106
|
+
signingAuthority: signingAuthority,
|
|
106
107
|
}, Object.assign({}, makerOrderParams, {
|
|
107
108
|
postOnly: __1.PostOnlyParams.MUST_POST_ONLY,
|
|
108
109
|
immediateOrCancel: true,
|
package/package.json
CHANGED
|
@@ -161,6 +161,9 @@ export class SwiftOrderSubscriber {
|
|
|
161
161
|
'hex'
|
|
162
162
|
);
|
|
163
163
|
const takerAuthority = new PublicKey(orderMessageRaw['taker_authority']);
|
|
164
|
+
const signingAuthority = new PublicKey(
|
|
165
|
+
orderMessageRaw['signing_authority']
|
|
166
|
+
);
|
|
164
167
|
const takerUserPubkey = await getUserAccountPublicKey(
|
|
165
168
|
this.driftClient.program.programId,
|
|
166
169
|
takerAuthority,
|
|
@@ -182,7 +185,7 @@ export class SwiftOrderSubscriber {
|
|
|
182
185
|
this.driftClient.program.programId,
|
|
183
186
|
takerUserAccount.authority
|
|
184
187
|
),
|
|
185
|
-
signingAuthority:
|
|
188
|
+
signingAuthority: signingAuthority,
|
|
186
189
|
},
|
|
187
190
|
Object.assign({}, makerOrderParams, {
|
|
188
191
|
postOnly: PostOnlyParams.MUST_POST_ONLY,
|