@drift-labs/sdk 2.74.0-beta.12 → 2.74.0-beta.14
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/adminClient.d.ts +9 -8
- package/lib/adminClient.js +269 -100
- package/lib/driftClient.js +3 -1
- package/lib/idl/drift.json +6 -0
- package/package.json +1 -1
- package/src/adminClient.ts +275 -107
- package/src/driftClient.ts +3 -1
- package/src/idl/drift.json +6 -0
package/lib/driftClient.js
CHANGED
|
@@ -1673,7 +1673,9 @@ class DriftClient {
|
|
|
1673
1673
|
const ix = await this.program.instruction.settleExpiredMarketPoolsToRevenuePool({
|
|
1674
1674
|
accounts: {
|
|
1675
1675
|
state: await this.getStatePublicKey(),
|
|
1676
|
-
admin: this.
|
|
1676
|
+
admin: this.isSubscribed
|
|
1677
|
+
? this.getStateAccount().admin
|
|
1678
|
+
: this.wallet.publicKey,
|
|
1677
1679
|
spotMarket: spotMarketPublicKey,
|
|
1678
1680
|
perpMarket: perpMarketPublicKey,
|
|
1679
1681
|
},
|
package/lib/idl/drift.json
CHANGED