@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/src/driftClient.ts
CHANGED
|
@@ -3029,7 +3029,9 @@ export class DriftClient {
|
|
|
3029
3029
|
await this.program.instruction.settleExpiredMarketPoolsToRevenuePool({
|
|
3030
3030
|
accounts: {
|
|
3031
3031
|
state: await this.getStatePublicKey(),
|
|
3032
|
-
admin: this.
|
|
3032
|
+
admin: this.isSubscribed
|
|
3033
|
+
? this.getStateAccount().admin
|
|
3034
|
+
: this.wallet.publicKey,
|
|
3033
3035
|
spotMarket: spotMarketPublicKey,
|
|
3034
3036
|
perpMarket: perpMarketPublicKey,
|
|
3035
3037
|
},
|
package/src/idl/drift.json
CHANGED