diff --git a/protocol-v2 b/protocol-v2 index c1ae3038..b7d232bc 160000 --- a/protocol-v2 +++ b/protocol-v2 @@ -1 +1 @@ -Subproject commit c1ae303829f670b5030834b7fdbaf46c51fb636c +Subproject commit b7d232bc66bbbbe1529dd59c6d4d265c1e65e87b diff --git a/src/driftpy/idl/drift.json b/src/driftpy/idl/drift.json index 509c47f7..4fd310fb 100644 --- a/src/driftpy/idl/drift.json +++ b/src/driftpy/idl/drift.json @@ -1,5 +1,5 @@ { - "version": "2.42.0", + "version": "2.47.0", "name": "drift", "instructions": [ { @@ -4098,6 +4098,27 @@ } ] }, + { + "name": "updateLiquidationMarginBufferRatio", + "accounts": [ + { + "name": "admin", + "isMut": false, + "isSigner": true + }, + { + "name": "state", + "isMut": true, + "isSigner": false + } + ], + "args": [ + { + "name": "liquidationMarginBufferRatio", + "type": "u32" + } + ] + }, { "name": "updateOracleGuardRails", "accounts": [ @@ -4142,6 +4163,27 @@ } ] }, + { + "name": "updateStateMaxNumberOfSubAccounts", + "accounts": [ + { + "name": "admin", + "isMut": false, + "isSigner": true + }, + { + "name": "state", + "isMut": true, + "isSigner": false + } + ], + "args": [ + { + "name": "maxNumberOfSubAccounts", + "type": "u16" + } + ] + }, { "name": "updatePerpMarketOracle", "accounts": [ @@ -5701,12 +5743,16 @@ "name": "initialPctToLiquidate", "type": "u16" }, + { + "name": "maxNumberOfSubAccounts", + "type": "u16" + }, { "name": "padding", "type": { "array": [ "u8", - 14 + 12 ] } } @@ -10877,7 +10923,7 @@ { "code": 6221, "name": "SpotFulfillmentConfigDisabled", - "msg": "Spot Fulfullment Config Disabled" + "msg": "Spot Fulfillment Config Disabled" }, { "code": 6222, diff --git a/src/driftpy/types.py b/src/driftpy/types.py index 1116b551..59d9cf63 100644 --- a/src/driftpy/types.py +++ b/src/driftpy/types.py @@ -738,6 +738,7 @@ class StateAccount: exchange_status: int liquidation_duration: int initial_pct_to_liquidate: int + max_number_of_sub_accounts: int padding: list[int]