From 9a690db6851b28c503a61f9a9791f1d0a127b1f6 Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Wed, 4 Dec 2024 20:18:46 -0500 Subject: [PATCH] sdk: udpate idl --- sdk/src/idl/drift.json | 146 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 141 insertions(+), 5 deletions(-) diff --git a/sdk/src/idl/drift.json b/sdk/src/idl/drift.json index d50710c7b..c295d11ac 100644 --- a/sdk/src/idl/drift.json +++ b/sdk/src/idl/drift.json @@ -1457,6 +1457,41 @@ } ] }, + { + "name": "updateUserProtectedMakerOrders", + "accounts": [ + { + "name": "state", + "isMut": false, + "isSigner": false + }, + { + "name": "user", + "isMut": true, + "isSigner": false + }, + { + "name": "authority", + "isMut": false, + "isSigner": true + }, + { + "name": "protectedMakerModeConfig", + "isMut": true, + "isSigner": false + } + ], + "args": [ + { + "name": "subAccountId", + "type": "u16" + }, + { + "name": "protectedMakerOrders", + "type": "bool" + } + ] + }, { "name": "deleteUser", "accounts": [ @@ -6466,6 +6501,72 @@ "type": "bool" } ] + }, + { + "name": "initializeProtectedMakerModeConfig", + "accounts": [ + { + "name": "admin", + "isMut": true, + "isSigner": true + }, + { + "name": "protectedMakerModeConfig", + "isMut": true, + "isSigner": false + }, + { + "name": "state", + "isMut": false, + "isSigner": false + }, + { + "name": "rent", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [ + { + "name": "maxUsers", + "type": "u32" + } + ] + }, + { + "name": "updateProtectedMakerModeConfig", + "accounts": [ + { + "name": "admin", + "isMut": true, + "isSigner": true + }, + { + "name": "protectedMakerModeConfig", + "isMut": true, + "isSigner": false + }, + { + "name": "state", + "isMut": false, + "isSigner": false + } + ], + "args": [ + { + "name": "maxUsers", + "type": "u32" + }, + { + "name": "reduceOnly", + "type": "bool" + } + ] } ], "accounts": [ @@ -7113,6 +7214,35 @@ ] } }, + { + "name": "ProtectedMakerModeConfig", + "type": { + "kind": "struct", + "fields": [ + { + "name": "maxUsers", + "type": "u32" + }, + { + "name": "currentUsers", + "type": "u32" + }, + { + "name": "reduceOnly", + "type": "u8" + }, + { + "name": "padding", + "type": { + "array": [ + "u8", + 31 + ] + } + } + ] + } + }, { "name": "RFQUser", "type": { @@ -9026,9 +9156,7 @@ { "name": "policy", "type": { - "option": { - "defined": "ModifyOrderPolicy" - } + "option": "u8" } } ] @@ -11075,10 +11203,10 @@ "kind": "enum", "variants": [ { - "name": "TryModify" + "name": "MustModify" }, { - "name": "MustModify" + "name": "ExcludePreviousFill" } ] } @@ -11394,6 +11522,9 @@ }, { "name": "AdvancedLp" + }, + { + "name": "ProtectedMakerOrders" } ] } @@ -14153,6 +14284,11 @@ "code": 6302, "name": "InvalidPoolId", "msg": "Invalid pool id" + }, + { + "code": 6303, + "name": "InvalidProtectedMakerModeConfig", + "msg": "Invalid Protected Maker Mode Config" } ], "metadata": {