From 665308905a66108397c45ee5a404da2c0372024a Mon Sep 17 00:00:00 2001 From: sina <20732540+SinaKhalili@users.noreply.github.com> Date: Tue, 24 Sep 2024 03:07:55 -0700 Subject: [PATCH] Update idl --- src/driftpy/idl/drift.json | 68 +++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/src/driftpy/idl/drift.json b/src/driftpy/idl/drift.json index c7ac9b38..98bf266a 100644 --- a/src/driftpy/idl/drift.json +++ b/src/driftpy/idl/drift.json @@ -1,5 +1,5 @@ { - "version": "2.89.0", + "version": "2.95.0", "name": "drift", "instructions": [ { @@ -1606,15 +1606,20 @@ { "name": "settleExpiredMarket", "accounts": [ + { + "name": "admin", + "isMut": false, + "isSigner": true + }, { "name": "state", "isMut": false, "isSigner": false }, { - "name": "authority", - "isMut": false, - "isSigner": true + "name": "perpMarket", + "isMut": true, + "isSigner": false } ], "args": [ @@ -1881,6 +1886,27 @@ } ] }, + { + "name": "setUserStatusToBeingLiquidated", + "accounts": [ + { + "name": "state", + "isMut": false, + "isSigner": false + }, + { + "name": "user", + "isMut": true, + "isSigner": false + }, + { + "name": "authority", + "isMut": false, + "isSigner": true + } + ], + "args": [] + }, { "name": "resolvePerpPnlDeficit", "accounts": [ @@ -2259,7 +2285,7 @@ }, { "name": "spotMarket", - "isMut": false, + "isMut": true, "isSigner": false }, { @@ -2273,7 +2299,7 @@ "isSigner": false }, { - "name": "authority", + "name": "signer", "isMut": false, "isSigner": true }, @@ -2295,7 +2321,7 @@ }, { "name": "spotMarket", - "isMut": false, + "isMut": true, "isSigner": false }, { @@ -2309,7 +2335,7 @@ "isSigner": false }, { - "name": "authority", + "name": "signer", "isMut": false, "isSigner": true }, @@ -3403,6 +3429,27 @@ } ] }, + { + "name": "initializePredictionMarket", + "accounts": [ + { + "name": "admin", + "isMut": false, + "isSigner": true + }, + { + "name": "state", + "isMut": false, + "isSigner": false + }, + { + "name": "perpMarket", + "isMut": true, + "isSigner": false + } + ], + "args": [] + }, { "name": "deleteInitializedPerpMarket", "accounts": [ @@ -12906,6 +12953,11 @@ "code": 6283, "name": "LiquidationOrderFailedToFill", "msg": "Liquidation order failed to fill" + }, + { + "code": 6284, + "name": "InvalidPredictionMarketOrder", + "msg": "Invalid prediction market order" } ] } \ No newline at end of file